types

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventRegisterCreateNewPairProposal            = "register_create_new_pair_proposal"
	EventRegisterChangeBurningFundAddressProposal = "register_change_burning_fund_address_proposal"
	EventRegisterChangeReserveFundAddressProposal = "register_change_reserve_fund_address_proposal"
	EventRegisterDeletePairProposal               = "register_delete_pair_proposal"
	AttributeValueCategory                        = ModuleName
	AttributeKeyActionMint                        = "mint"
	AttributeKeyActionBurn                        = "burn"
)
View Source
const (
	EventTypeTimeout = "timeout"

	AttributeKeyAckSuccess = "success"
	AttributeKeyAck        = "acknowledgement"
	AttributeKeyAckError   = "error"
)

IBC events

View Source
const (
	// ModuleName defines the module name
	ModuleName = "stable"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_stable"

	// Version defines the current version the IBC module supports
	Version = "stable-1"

	// PortID is the default port id that module binds to
	PortID = "stable"
)
View Source
const (
	PairKey      = "Pair/value/"
	PairCountKey = "Pair/count/"
)
View Source
const (
	DefaultReserveAddress = "qube13zq340zzjgua9h98pltzwv0ga5r0kkn0ryjz4v"
	DefaultBurningAddress = "qube19r3sd4r4708v48kxr7mr3dlzr3uyvrqyle6f6k"
)

Default parameter values

View Source
const (
	ProposalTypeRegisterPairProposal                     string = "RegisterPairProposal"
	ProposalTypeRegisterChangeBurningFundAddressProposal string = "RegisterChangeBurningFundAddressProposal"
	ProposalTypeRegisterChangeReserveFundAddressProposal string = "RegisterChangeReserveFundAddressProposal"
	ProposalTypeRegisterDeletePairProposal               string = "RegisterDeletePairProposal"
)

constants

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgBurn = "burn"
View Source
const TypeMsgMint = "mint"

Variables

View Source
var (
	ErrSample                          = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrSdkIntError                     = sdkerrors.Register(ModuleName, 1101, "sdk.Int error")
	ErrInvalidLength                   = sdkerrors.Register(ModuleName, 1102, "invalid length")
	ErrInvalidPacketTimeout            = sdkerrors.Register(ModuleName, 1500, "invalid packet timeout")
	ErrInvalidVersion                  = sdkerrors.Register(ModuleName, 1501, "invalid version")
	ErrAfpNegative                     = sdkerrors.Register(ModuleName, 1200, "AFP negative")
	ErrArNegative                      = sdkerrors.Register(ModuleName, 1201, "AR negative")
	ErrQmNegative                      = sdkerrors.Register(ModuleName, 1202, "QM negative")
	ErrARAlreadyInit                   = sdkerrors.Register(ModuleName, 1203, "ErrARAlreadyInit")
	ErrBackingRatioNegative            = sdkerrors.Register(ModuleName, 1204, "BackingRatio negative")
	ErrBackingRatioNil                 = sdkerrors.Register(ModuleName, 1205, "BackingRatio nil")
	ErrQMAlreadyInit                   = sdkerrors.Register(ModuleName, 1206, "ErrQMAlreadyInit")
	ErrCalculateMintingFee             = sdkerrors.Register(ModuleName, 1301, "CalculateMintingFee err")
	ErrCalculateBurningFee             = sdkerrors.Register(ModuleName, 1302, "CalculateBurningFee err")
	ErrInvalidCoins                    = sdkerrors.Register(ModuleName, 500, "ErrInvalidCoins err")
	ErrAtomPriceNil                    = sdkerrors.Register(ModuleName, 1000, "ErrAtomPriceNil err")
	ErrMultipleCoinsLockupNotSupported = sdkerrors.Register(ModuleName, 1600, "ErrMultipleCoinsLockupNotSupported multiple coins lockup is not supported")
	ErrSendBaseTokenDenom              = sdkerrors.Register(ModuleName, 1601, "ErrSendBaseTokenDenom err")
	ErrSendSendTokenDenom              = sdkerrors.Register(ModuleName, 1602, "ErrSendSendTokenDenom err")
	ErrPairNotFound                    = sdkerrors.Register(ModuleName, 1701, "ErrPairNotFound err")
	ErrAmountInGTEminAmountIn          = sdkerrors.Register(ModuleName, 1801, "ErrAmountInGTEminAmountIn err")
	ErrAmountOutGTEminAmountOut        = sdkerrors.Register(ModuleName, 1802, "ErrAmountOutGTEminAmountOut err")
	ErrReserveFundAddressEmpty         = sdkerrors.Register(ModuleName, 1900, "ErrReserveFundAddressEmpty err")
	ErrBurningFundAddressEmpty         = sdkerrors.Register(ModuleName, 1901, "ErrBurningFundAddressEmpty err")
)

x/stable module sentinel errors

View Source
var (
	ErrMintBlocked = sdkerrors.Register(ModuleName, 100, "Backing Ration >= 140%")
	ErrBurnBlocked = sdkerrors.Register(ModuleName, 101, "Backing Ration < 85%")
)

GMB errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	Multiplier        sdk.Int = sdk.NewInt(int64(10000))
	SdkMultiplier     sdk.Int = sdk.NewInt(int64(1000000))
	FeeMultiplier     sdk.Int = sdk.NewInt(int64(100000))
	MintUsqMultiplier sdk.Int = sdk.NewInt(int64(1000))
	BurnUsqMultiplier sdk.Int = sdk.NewInt(int64(1000000000))
)
View Source
var (
	ErrInvalidLengthPacket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPacket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPair        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPair          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPair = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyReserveFundAddress = []byte("ReserveFundAddress")
	KeyBurningFundAddress = []byte("BurningFundAddress")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrUnrecognizedPacketType = sdkerrors.Register(ModuleName, 15, "unrecognized packet type")
)
View Source
var (
	// PortKey defines the key to store the port ID in store
	PortKey = KeyPrefix("stable-port-")
)

Functions

func CreateCoins

func CreateCoins(denom string, amount sdk.Int) sdk.Coins

func KeyPrefix

func KeyPrefix(p string) []byte

func NewRegisterChangeBurningFundAddressProposal

func NewRegisterChangeBurningFundAddressProposal(title, description string, address string) govtypes.Content

func NewRegisterChangeReserveFundAddressProposal added in v0.1.1

func NewRegisterChangeReserveFundAddressProposal(title, description string, address string) govtypes.Content

func NewRegisterDeletePairProposal added in v0.2.0

func NewRegisterDeletePairProposal(title, description string, pairId string) govtypes.Content

func NewRegisterPairProposal

func NewRegisterPairProposal(title, description string, amountInDenom banktypes.Metadata, amountOutDenom banktypes.Metadata, minAmountIn string, minAmountOut string) govtypes.Content

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type AllPairsRequest added in v0.1.2

type AllPairsRequest struct {
}

func (*AllPairsRequest) Descriptor added in v0.1.2

func (*AllPairsRequest) Descriptor() ([]byte, []int)

func (*AllPairsRequest) Marshal added in v0.1.2

func (m *AllPairsRequest) Marshal() (dAtA []byte, err error)

func (*AllPairsRequest) MarshalTo added in v0.1.2

func (m *AllPairsRequest) MarshalTo(dAtA []byte) (int, error)

func (*AllPairsRequest) MarshalToSizedBuffer added in v0.1.2

func (m *AllPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllPairsRequest) ProtoMessage added in v0.1.2

func (*AllPairsRequest) ProtoMessage()

func (*AllPairsRequest) Reset added in v0.1.2

func (m *AllPairsRequest) Reset()

func (*AllPairsRequest) Size added in v0.1.2

func (m *AllPairsRequest) Size() (n int)

func (*AllPairsRequest) String added in v0.1.2

func (m *AllPairsRequest) String() string

func (*AllPairsRequest) Unmarshal added in v0.1.2

func (m *AllPairsRequest) Unmarshal(dAtA []byte) error

func (*AllPairsRequest) XXX_DiscardUnknown added in v0.1.2

func (m *AllPairsRequest) XXX_DiscardUnknown()

func (*AllPairsRequest) XXX_Marshal added in v0.1.2

func (m *AllPairsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllPairsRequest) XXX_Merge added in v0.1.2

func (m *AllPairsRequest) XXX_Merge(src proto.Message)

func (*AllPairsRequest) XXX_Size added in v0.1.2

func (m *AllPairsRequest) XXX_Size() int

func (*AllPairsRequest) XXX_Unmarshal added in v0.1.2

func (m *AllPairsRequest) XXX_Unmarshal(b []byte) error

type AllPairsResponse added in v0.1.2

type AllPairsResponse struct {
	Pairs []*Pair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs,omitempty"`
}

func (*AllPairsResponse) Descriptor added in v0.1.2

func (*AllPairsResponse) Descriptor() ([]byte, []int)

func (*AllPairsResponse) GetPairs added in v0.1.2

func (m *AllPairsResponse) GetPairs() []*Pair

func (*AllPairsResponse) Marshal added in v0.1.2

func (m *AllPairsResponse) Marshal() (dAtA []byte, err error)

func (*AllPairsResponse) MarshalTo added in v0.1.2

func (m *AllPairsResponse) MarshalTo(dAtA []byte) (int, error)

func (*AllPairsResponse) MarshalToSizedBuffer added in v0.1.2

func (m *AllPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllPairsResponse) ProtoMessage added in v0.1.2

func (*AllPairsResponse) ProtoMessage()

func (*AllPairsResponse) Reset added in v0.1.2

func (m *AllPairsResponse) Reset()

func (*AllPairsResponse) Size added in v0.1.2

func (m *AllPairsResponse) Size() (n int)

func (*AllPairsResponse) String added in v0.1.2

func (m *AllPairsResponse) String() string

func (*AllPairsResponse) Unmarshal added in v0.1.2

func (m *AllPairsResponse) Unmarshal(dAtA []byte) error

func (*AllPairsResponse) XXX_DiscardUnknown added in v0.1.2

func (m *AllPairsResponse) XXX_DiscardUnknown()

func (*AllPairsResponse) XXX_Marshal added in v0.1.2

func (m *AllPairsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllPairsResponse) XXX_Merge added in v0.1.2

func (m *AllPairsResponse) XXX_Merge(src proto.Message)

func (*AllPairsResponse) XXX_Size added in v0.1.2

func (m *AllPairsResponse) XXX_Size() int

func (*AllPairsResponse) XXX_Unmarshal added in v0.1.2

func (m *AllPairsResponse) XXX_Unmarshal(b []byte) error

type AmountOutResponse added in v0.0.2

type AmountOutResponse struct {
	PairId    string `protobuf:"bytes,1,opt,name=pairId,proto3" json:"pairId,omitempty"`
	AmountOut uint64 `protobuf:"varint,2,opt,name=amountOut,proto3" json:"amountOut,omitempty"`
	Denom     string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*AmountOutResponse) Descriptor added in v0.0.2

func (*AmountOutResponse) Descriptor() ([]byte, []int)

func (*AmountOutResponse) GetAmountOut added in v0.0.2

func (m *AmountOutResponse) GetAmountOut() uint64

func (*AmountOutResponse) GetDenom added in v0.0.2

func (m *AmountOutResponse) GetDenom() string

func (*AmountOutResponse) GetPairId added in v0.0.2

func (m *AmountOutResponse) GetPairId() string

func (*AmountOutResponse) Marshal added in v0.0.2

func (m *AmountOutResponse) Marshal() (dAtA []byte, err error)

func (*AmountOutResponse) MarshalTo added in v0.0.2

func (m *AmountOutResponse) MarshalTo(dAtA []byte) (int, error)

func (*AmountOutResponse) MarshalToSizedBuffer added in v0.0.2

func (m *AmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AmountOutResponse) ProtoMessage added in v0.0.2

func (*AmountOutResponse) ProtoMessage()

func (*AmountOutResponse) Reset added in v0.0.2

func (m *AmountOutResponse) Reset()

func (*AmountOutResponse) Size added in v0.0.2

func (m *AmountOutResponse) Size() (n int)

func (*AmountOutResponse) String added in v0.0.2

func (m *AmountOutResponse) String() string

func (*AmountOutResponse) Unmarshal added in v0.0.2

func (m *AmountOutResponse) Unmarshal(dAtA []byte) error

func (*AmountOutResponse) XXX_DiscardUnknown added in v0.0.2

func (m *AmountOutResponse) XXX_DiscardUnknown()

func (*AmountOutResponse) XXX_Marshal added in v0.0.2

func (m *AmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AmountOutResponse) XXX_Merge added in v0.0.2

func (m *AmountOutResponse) XXX_Merge(src proto.Message)

func (*AmountOutResponse) XXX_Size added in v0.0.2

func (m *AmountOutResponse) XXX_Size() int

func (*AmountOutResponse) XXX_Unmarshal added in v0.0.2

func (m *AmountOutResponse) XXX_Unmarshal(b []byte) error

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	HasSupply(ctx sdk.Context, denom string) bool
	IsSendEnabledCoin(ctx sdk.Context, coin sdk.Coin) bool
	BlockedAddr(addr sdk.AccAddress) bool
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

BankKeeper defines the expected interface needed to retrieve account balances.

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	SendPacket(
		ctx sdk.Context,
		channelCap *capabilitytypes.Capability,
		packet exported.PacketI,
	) error
	ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
}

ChannelKeeper defines the expected IBC channel keeper.

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	Pairs  []Pair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs"`
}

GenesisState defines the stable module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func NewGenesisState added in v0.0.2

func NewGenesisState(params Params, portID string, pairs []Pair) GenesisState

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetPairs added in v0.0.2

func (m *GenesisState) GetPairs() []Pair

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() string

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type GetAmountOutByAmountInRequest added in v0.1.1

type GetAmountOutByAmountInRequest struct {
	PairId   string `protobuf:"bytes,1,opt,name=pairId,proto3" json:"pairId,omitempty"`
	AmountIn uint64 `protobuf:"varint,2,opt,name=amountIn,proto3" json:"amountIn,omitempty"`
	Action   string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
}

func (*GetAmountOutByAmountInRequest) Descriptor added in v0.1.1

func (*GetAmountOutByAmountInRequest) Descriptor() ([]byte, []int)

func (*GetAmountOutByAmountInRequest) GetAction added in v0.1.1

func (m *GetAmountOutByAmountInRequest) GetAction() string

func (*GetAmountOutByAmountInRequest) GetAmountIn added in v0.1.1

func (m *GetAmountOutByAmountInRequest) GetAmountIn() uint64

func (*GetAmountOutByAmountInRequest) GetPairId added in v0.1.1

func (m *GetAmountOutByAmountInRequest) GetPairId() string

func (*GetAmountOutByAmountInRequest) Marshal added in v0.1.1

func (m *GetAmountOutByAmountInRequest) Marshal() (dAtA []byte, err error)

func (*GetAmountOutByAmountInRequest) MarshalTo added in v0.1.1

func (m *GetAmountOutByAmountInRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetAmountOutByAmountInRequest) MarshalToSizedBuffer added in v0.1.1

func (m *GetAmountOutByAmountInRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetAmountOutByAmountInRequest) ProtoMessage added in v0.1.1

func (*GetAmountOutByAmountInRequest) ProtoMessage()

func (*GetAmountOutByAmountInRequest) Reset added in v0.1.1

func (m *GetAmountOutByAmountInRequest) Reset()

func (*GetAmountOutByAmountInRequest) Size added in v0.1.1

func (m *GetAmountOutByAmountInRequest) Size() (n int)

func (*GetAmountOutByAmountInRequest) String added in v0.1.1

func (*GetAmountOutByAmountInRequest) Unmarshal added in v0.1.1

func (m *GetAmountOutByAmountInRequest) Unmarshal(dAtA []byte) error

func (*GetAmountOutByAmountInRequest) XXX_DiscardUnknown added in v0.1.1

func (m *GetAmountOutByAmountInRequest) XXX_DiscardUnknown()

func (*GetAmountOutByAmountInRequest) XXX_Marshal added in v0.1.1

func (m *GetAmountOutByAmountInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAmountOutByAmountInRequest) XXX_Merge added in v0.1.1

func (m *GetAmountOutByAmountInRequest) XXX_Merge(src proto.Message)

func (*GetAmountOutByAmountInRequest) XXX_Size added in v0.1.1

func (m *GetAmountOutByAmountInRequest) XXX_Size() int

func (*GetAmountOutByAmountInRequest) XXX_Unmarshal added in v0.1.1

func (m *GetAmountOutByAmountInRequest) XXX_Unmarshal(b []byte) error

type GetAmountOutByAmountInResponse added in v0.1.1

type GetAmountOutByAmountInResponse struct {
	PairId    string `protobuf:"bytes,1,opt,name=pairId,proto3" json:"pairId,omitempty"`
	AmountOut uint64 `protobuf:"varint,2,opt,name=amountOut,proto3" json:"amountOut,omitempty"`
	Action    string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
}

func (*GetAmountOutByAmountInResponse) Descriptor added in v0.1.1

func (*GetAmountOutByAmountInResponse) Descriptor() ([]byte, []int)

func (*GetAmountOutByAmountInResponse) GetAction added in v0.1.1

func (m *GetAmountOutByAmountInResponse) GetAction() string

func (*GetAmountOutByAmountInResponse) GetAmountOut added in v0.1.1

func (m *GetAmountOutByAmountInResponse) GetAmountOut() uint64

func (*GetAmountOutByAmountInResponse) GetPairId added in v0.1.1

func (m *GetAmountOutByAmountInResponse) GetPairId() string

func (*GetAmountOutByAmountInResponse) Marshal added in v0.1.1

func (m *GetAmountOutByAmountInResponse) Marshal() (dAtA []byte, err error)

func (*GetAmountOutByAmountInResponse) MarshalTo added in v0.1.1

func (m *GetAmountOutByAmountInResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetAmountOutByAmountInResponse) MarshalToSizedBuffer added in v0.1.1

func (m *GetAmountOutByAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetAmountOutByAmountInResponse) ProtoMessage added in v0.1.1

func (*GetAmountOutByAmountInResponse) ProtoMessage()

func (*GetAmountOutByAmountInResponse) Reset added in v0.1.1

func (m *GetAmountOutByAmountInResponse) Reset()

func (*GetAmountOutByAmountInResponse) Size added in v0.1.1

func (m *GetAmountOutByAmountInResponse) Size() (n int)

func (*GetAmountOutByAmountInResponse) String added in v0.1.1

func (*GetAmountOutByAmountInResponse) Unmarshal added in v0.1.1

func (m *GetAmountOutByAmountInResponse) Unmarshal(dAtA []byte) error

func (*GetAmountOutByAmountInResponse) XXX_DiscardUnknown added in v0.1.1

func (m *GetAmountOutByAmountInResponse) XXX_DiscardUnknown()

func (*GetAmountOutByAmountInResponse) XXX_Marshal added in v0.1.1

func (m *GetAmountOutByAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAmountOutByAmountInResponse) XXX_Merge added in v0.1.1

func (m *GetAmountOutByAmountInResponse) XXX_Merge(src proto.Message)

func (*GetAmountOutByAmountInResponse) XXX_Size added in v0.1.1

func (m *GetAmountOutByAmountInResponse) XXX_Size() int

func (*GetAmountOutByAmountInResponse) XXX_Unmarshal added in v0.1.1

func (m *GetAmountOutByAmountInResponse) XXX_Unmarshal(b []byte) error

type MsgBurn

type MsgBurn struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	DenomOut string `protobuf:"bytes,3,opt,name=denomOut,proto3" json:"denomOut,omitempty"`
}

func NewMsgBurn

func NewMsgBurn(creator string, amountIn string, denomOut string) *MsgBurn

func (*MsgBurn) Descriptor

func (*MsgBurn) Descriptor() ([]byte, []int)

func (*MsgBurn) GetAmountIn

func (m *MsgBurn) GetAmountIn() string

func (*MsgBurn) GetCreator

func (m *MsgBurn) GetCreator() string

func (*MsgBurn) GetDenomOut

func (m *MsgBurn) GetDenomOut() string

func (*MsgBurn) GetSignBytes

func (msg *MsgBurn) GetSignBytes() []byte

func (*MsgBurn) GetSigners

func (msg *MsgBurn) GetSigners() []sdk.AccAddress

func (*MsgBurn) Marshal

func (m *MsgBurn) Marshal() (dAtA []byte, err error)

func (*MsgBurn) MarshalTo

func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurn) MarshalToSizedBuffer

func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurn) ProtoMessage

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset

func (m *MsgBurn) Reset()

func (*MsgBurn) Route

func (msg *MsgBurn) Route() string

func (*MsgBurn) Size

func (m *MsgBurn) Size() (n int)

func (*MsgBurn) String

func (m *MsgBurn) String() string

func (*MsgBurn) Type

func (msg *MsgBurn) Type() string

func (*MsgBurn) Unmarshal

func (m *MsgBurn) Unmarshal(dAtA []byte) error

func (*MsgBurn) ValidateBasic

func (msg *MsgBurn) ValidateBasic() error

func (*MsgBurn) XXX_DiscardUnknown

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal

func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurn) XXX_Merge

func (m *MsgBurn) XXX_Merge(src proto.Message)

func (*MsgBurn) XXX_Size

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal

func (m *MsgBurn) XXX_Unmarshal(b []byte) error

type MsgBurnResponse

type MsgBurnResponse struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn  string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	AmountOut string `protobuf:"bytes,3,opt,name=amountOut,proto3" json:"amountOut,omitempty"`
}

func (*MsgBurnResponse) Descriptor

func (*MsgBurnResponse) Descriptor() ([]byte, []int)

func (*MsgBurnResponse) GetAmountIn

func (m *MsgBurnResponse) GetAmountIn() string

func (*MsgBurnResponse) GetAmountOut

func (m *MsgBurnResponse) GetAmountOut() string

func (*MsgBurnResponse) GetCreator

func (m *MsgBurnResponse) GetCreator() string

func (*MsgBurnResponse) Marshal

func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)

func (*MsgBurnResponse) MarshalTo

func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnResponse) MarshalToSizedBuffer

func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnResponse) ProtoMessage

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size

func (m *MsgBurnResponse) Size() (n int)

func (*MsgBurnResponse) String

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal

func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error

func (*MsgBurnResponse) XXX_DiscardUnknown

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal

func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnResponse) XXX_Merge

func (m *MsgBurnResponse) XXX_Merge(src proto.Message)

func (*MsgBurnResponse) XXX_Size

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal

func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
	Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgMint

type MsgMint struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	DenomOut string `protobuf:"bytes,3,opt,name=denomOut,proto3" json:"denomOut,omitempty"`
}

func NewMsgMint

func NewMsgMint(creator string, amountIn string, denomOut string) *MsgMint

func (*MsgMint) Descriptor

func (*MsgMint) Descriptor() ([]byte, []int)

func (*MsgMint) GetAmountIn

func (m *MsgMint) GetAmountIn() string

func (*MsgMint) GetCreator

func (m *MsgMint) GetCreator() string

func (*MsgMint) GetDenomOut

func (m *MsgMint) GetDenomOut() string

func (*MsgMint) GetSignBytes

func (msg *MsgMint) GetSignBytes() []byte

func (*MsgMint) GetSigners

func (msg *MsgMint) GetSigners() []sdk.AccAddress

func (*MsgMint) Marshal

func (m *MsgMint) Marshal() (dAtA []byte, err error)

func (*MsgMint) MarshalTo

func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)

func (*MsgMint) MarshalToSizedBuffer

func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMint) ProtoMessage

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset

func (m *MsgMint) Reset()

func (*MsgMint) Route

func (msg *MsgMint) Route() string

func (*MsgMint) Size

func (m *MsgMint) Size() (n int)

func (*MsgMint) String

func (m *MsgMint) String() string

func (*MsgMint) Type

func (msg *MsgMint) Type() string

func (*MsgMint) Unmarshal

func (m *MsgMint) Unmarshal(dAtA []byte) error

func (*MsgMint) ValidateBasic

func (msg *MsgMint) ValidateBasic() error

func (*MsgMint) XXX_DiscardUnknown

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal

func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMint) XXX_Merge

func (m *MsgMint) XXX_Merge(src proto.Message)

func (*MsgMint) XXX_Size

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal

func (m *MsgMint) XXX_Unmarshal(b []byte) error

type MsgMintResponse

type MsgMintResponse struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	AmountIn  string `protobuf:"bytes,2,opt,name=amountInt,proto3" json:"amountInt,omitempty"`
	AmountOut string `protobuf:"bytes,3,opt,name=amountOut,proto3" json:"amountOut,omitempty"`
}

func (*MsgMintResponse) Descriptor

func (*MsgMintResponse) Descriptor() ([]byte, []int)

func (*MsgMintResponse) GetAmountIn

func (m *MsgMintResponse) GetAmountIn() string

func (*MsgMintResponse) GetAmountOut

func (m *MsgMintResponse) GetAmountOut() string

func (*MsgMintResponse) GetCreator

func (m *MsgMintResponse) GetCreator() string

func (*MsgMintResponse) Marshal

func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)

func (*MsgMintResponse) MarshalTo

func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgMintResponse) MarshalToSizedBuffer

func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMintResponse) ProtoMessage

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size

func (m *MsgMintResponse) Size() (n int)

func (*MsgMintResponse) String

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal

func (m *MsgMintResponse) Unmarshal(dAtA []byte) error

func (*MsgMintResponse) XXX_DiscardUnknown

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal

func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMintResponse) XXX_Merge

func (m *MsgMintResponse) XXX_Merge(src proto.Message)

func (*MsgMintResponse) XXX_Size

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal

func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
	Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
}

MsgServer is the server API for Msg service.

type NoData

type NoData struct {
}

func (*NoData) Descriptor

func (*NoData) Descriptor() ([]byte, []int)

func (*NoData) Marshal

func (m *NoData) Marshal() (dAtA []byte, err error)

func (*NoData) MarshalTo

func (m *NoData) MarshalTo(dAtA []byte) (int, error)

func (*NoData) MarshalToSizedBuffer

func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NoData) ProtoMessage

func (*NoData) ProtoMessage()

func (*NoData) Reset

func (m *NoData) Reset()

func (*NoData) Size

func (m *NoData) Size() (n int)

func (*NoData) String

func (m *NoData) String() string

func (*NoData) Unmarshal

func (m *NoData) Unmarshal(dAtA []byte) error

func (*NoData) XXX_DiscardUnknown

func (m *NoData) XXX_DiscardUnknown()

func (*NoData) XXX_Marshal

func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NoData) XXX_Merge

func (m *NoData) XXX_Merge(src proto.Message)

func (*NoData) XXX_Size

func (m *NoData) XXX_Size() int

func (*NoData) XXX_Unmarshal

func (m *NoData) XXX_Unmarshal(b []byte) error

type OracleKeeper

type OracleKeeper interface {
	GetExchangeRate(ctx sdk.Context, denom string) (sdk.Dec, error)
}

type Pair

type Pair struct {
	Id                uint64                                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PairId            string                                 `protobuf:"bytes,2,opt,name=pairId,proto3" json:"pairId,omitempty"`
	AmountInMetadata  types.Metadata                         `protobuf:"bytes,3,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata                         `protobuf:"bytes,4,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	Qm                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=qm,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"qm" yaml:"qm"`
	Ar                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=ar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ar" yaml:"ar"`
	MinAmountIn       string                                 `protobuf:"bytes,7,opt,name=minAmountIn,proto3" json:"minAmountIn,omitempty"`
	MinAmountOut      string                                 `protobuf:"bytes,8,opt,name=minAmountOut,proto3" json:"minAmountOut,omitempty"`
	Model             string                                 `protobuf:"bytes,9,opt,name=model,proto3" json:"model,omitempty"`
}

func (*Pair) Descriptor

func (*Pair) Descriptor() ([]byte, []int)

func (*Pair) GetAmountInMetadata

func (m *Pair) GetAmountInMetadata() types.Metadata

func (*Pair) GetAmountOutMetadata

func (m *Pair) GetAmountOutMetadata() types.Metadata

func (*Pair) GetId

func (m *Pair) GetId() uint64

func (*Pair) GetMinAmountIn

func (m *Pair) GetMinAmountIn() string

func (*Pair) GetMinAmountOut added in v0.0.2

func (m *Pair) GetMinAmountOut() string

func (*Pair) GetModel added in v0.2.1

func (m *Pair) GetModel() string

func (*Pair) GetPairId

func (m *Pair) GetPairId() string

func (*Pair) Marshal

func (m *Pair) Marshal() (dAtA []byte, err error)

func (*Pair) MarshalTo

func (m *Pair) MarshalTo(dAtA []byte) (int, error)

func (*Pair) MarshalToSizedBuffer

func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) Reset

func (m *Pair) Reset()

func (*Pair) Size

func (m *Pair) Size() (n int)

func (*Pair) String

func (m *Pair) String() string

func (*Pair) Unmarshal

func (m *Pair) Unmarshal(dAtA []byte) error

func (*Pair) XXX_DiscardUnknown

func (m *Pair) XXX_DiscardUnknown()

func (*Pair) XXX_Marshal

func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pair) XXX_Merge

func (m *Pair) XXX_Merge(src proto.Message)

func (*Pair) XXX_Size

func (m *Pair) XXX_Size() int

func (*Pair) XXX_Unmarshal

func (m *Pair) XXX_Unmarshal(b []byte) error

type PairByIdRequest

type PairByIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*PairByIdRequest) Descriptor

func (*PairByIdRequest) Descriptor() ([]byte, []int)

func (*PairByIdRequest) GetId

func (m *PairByIdRequest) GetId() uint64

func (*PairByIdRequest) Marshal

func (m *PairByIdRequest) Marshal() (dAtA []byte, err error)

func (*PairByIdRequest) MarshalTo

func (m *PairByIdRequest) MarshalTo(dAtA []byte) (int, error)

func (*PairByIdRequest) MarshalToSizedBuffer

func (m *PairByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PairByIdRequest) ProtoMessage

func (*PairByIdRequest) ProtoMessage()

func (*PairByIdRequest) Reset

func (m *PairByIdRequest) Reset()

func (*PairByIdRequest) Size

func (m *PairByIdRequest) Size() (n int)

func (*PairByIdRequest) String

func (m *PairByIdRequest) String() string

func (*PairByIdRequest) Unmarshal

func (m *PairByIdRequest) Unmarshal(dAtA []byte) error

func (*PairByIdRequest) XXX_DiscardUnknown

func (m *PairByIdRequest) XXX_DiscardUnknown()

func (*PairByIdRequest) XXX_Marshal

func (m *PairByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PairByIdRequest) XXX_Merge

func (m *PairByIdRequest) XXX_Merge(src proto.Message)

func (*PairByIdRequest) XXX_Size

func (m *PairByIdRequest) XXX_Size() int

func (*PairByIdRequest) XXX_Unmarshal

func (m *PairByIdRequest) XXX_Unmarshal(b []byte) error

type PairByPairIdRequest

type PairByPairIdRequest struct {
	PairId string `protobuf:"bytes,1,opt,name=pairId,proto3" json:"pairId,omitempty"`
}

func (*PairByPairIdRequest) Descriptor

func (*PairByPairIdRequest) Descriptor() ([]byte, []int)

func (*PairByPairIdRequest) GetPairId

func (m *PairByPairIdRequest) GetPairId() string

func (*PairByPairIdRequest) Marshal

func (m *PairByPairIdRequest) Marshal() (dAtA []byte, err error)

func (*PairByPairIdRequest) MarshalTo

func (m *PairByPairIdRequest) MarshalTo(dAtA []byte) (int, error)

func (*PairByPairIdRequest) MarshalToSizedBuffer

func (m *PairByPairIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PairByPairIdRequest) ProtoMessage

func (*PairByPairIdRequest) ProtoMessage()

func (*PairByPairIdRequest) Reset

func (m *PairByPairIdRequest) Reset()

func (*PairByPairIdRequest) Size

func (m *PairByPairIdRequest) Size() (n int)

func (*PairByPairIdRequest) String

func (m *PairByPairIdRequest) String() string

func (*PairByPairIdRequest) Unmarshal

func (m *PairByPairIdRequest) Unmarshal(dAtA []byte) error

func (*PairByPairIdRequest) XXX_DiscardUnknown

func (m *PairByPairIdRequest) XXX_DiscardUnknown()

func (*PairByPairIdRequest) XXX_Marshal

func (m *PairByPairIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PairByPairIdRequest) XXX_Merge

func (m *PairByPairIdRequest) XXX_Merge(src proto.Message)

func (*PairByPairIdRequest) XXX_Size

func (m *PairByPairIdRequest) XXX_Size() int

func (*PairByPairIdRequest) XXX_Unmarshal

func (m *PairByPairIdRequest) XXX_Unmarshal(b []byte) error

type PairRequestResponse

type PairRequestResponse struct {
	PairId            string                                 `protobuf:"bytes,1,opt,name=pairId,proto3" json:"pairId,omitempty"`
	AmountInMetadata  types.Metadata                         `protobuf:"bytes,2,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata                         `protobuf:"bytes,3,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	Model             string                                 `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"`
	Qm                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=qm,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"qm" yaml:"qm"`
	Ar                github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=ar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ar" yaml:"ar"`
	MinAmountIn       string                                 `protobuf:"bytes,7,opt,name=minAmountIn,proto3" json:"minAmountIn,omitempty"`
	MinAmountOut      string                                 `protobuf:"bytes,8,opt,name=minAmountOut,proto3" json:"minAmountOut,omitempty"`
	BackingRatio      uint64                                 `protobuf:"varint,9,opt,name=backing_ratio,json=backingRatio,proto3" json:"backing_ratio,omitempty"`
	MintingFee        uint64                                 `protobuf:"varint,10,opt,name=minting_fee,json=mintingFee,proto3" json:"minting_fee,omitempty"`
	BurningFee        uint64                                 `protobuf:"varint,11,opt,name=burning_fee,json=burningFee,proto3" json:"burning_fee,omitempty"`
}

func (*PairRequestResponse) Descriptor

func (*PairRequestResponse) Descriptor() ([]byte, []int)

func (*PairRequestResponse) GetAmountInMetadata

func (m *PairRequestResponse) GetAmountInMetadata() types.Metadata

func (*PairRequestResponse) GetAmountOutMetadata

func (m *PairRequestResponse) GetAmountOutMetadata() types.Metadata

func (*PairRequestResponse) GetBackingRatio added in v0.1.1

func (m *PairRequestResponse) GetBackingRatio() uint64

func (*PairRequestResponse) GetBurningFee added in v0.1.1

func (m *PairRequestResponse) GetBurningFee() uint64

func (*PairRequestResponse) GetMinAmountIn

func (m *PairRequestResponse) GetMinAmountIn() string

func (*PairRequestResponse) GetMinAmountOut added in v0.0.2

func (m *PairRequestResponse) GetMinAmountOut() string

func (*PairRequestResponse) GetMintingFee added in v0.1.1

func (m *PairRequestResponse) GetMintingFee() uint64

func (*PairRequestResponse) GetModel added in v0.2.1

func (m *PairRequestResponse) GetModel() string

func (*PairRequestResponse) GetPairId

func (m *PairRequestResponse) GetPairId() string

func (*PairRequestResponse) Marshal

func (m *PairRequestResponse) Marshal() (dAtA []byte, err error)

func (*PairRequestResponse) MarshalTo

func (m *PairRequestResponse) MarshalTo(dAtA []byte) (int, error)

func (*PairRequestResponse) MarshalToSizedBuffer

func (m *PairRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PairRequestResponse) ProtoMessage

func (*PairRequestResponse) ProtoMessage()

func (*PairRequestResponse) Reset

func (m *PairRequestResponse) Reset()

func (*PairRequestResponse) Size

func (m *PairRequestResponse) Size() (n int)

func (*PairRequestResponse) String

func (m *PairRequestResponse) String() string

func (*PairRequestResponse) Unmarshal

func (m *PairRequestResponse) Unmarshal(dAtA []byte) error

func (*PairRequestResponse) XXX_DiscardUnknown

func (m *PairRequestResponse) XXX_DiscardUnknown()

func (*PairRequestResponse) XXX_Marshal

func (m *PairRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PairRequestResponse) XXX_Merge

func (m *PairRequestResponse) XXX_Merge(src proto.Message)

func (*PairRequestResponse) XXX_Size

func (m *PairRequestResponse) XXX_Size() int

func (*PairRequestResponse) XXX_Unmarshal

func (m *PairRequestResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	BurningFundAddress string `protobuf:"bytes,1,opt,name=BurningFundAddress,proto3" json:"BurningFundAddress,omitempty"`
	ReserveFundAddress string `protobuf:"bytes,2,opt,name=ReserveFundAddress,proto3" json:"ReserveFundAddress,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetBurningFundAddress added in v0.2.0

func (m *Params) GetBurningFundAddress() string

func (*Params) GetReserveFundAddress added in v0.2.0

func (m *Params) GetReserveFundAddress() string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

TODO

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type PortKeeper

type PortKeeper interface {
	BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
}

PortKeeper defines the expected IBC port keeper.

type ProposalMetadata

type ProposalMetadata struct {
	AmountInMetadata  types.Metadata `protobuf:"bytes,1,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata `protobuf:"bytes,2,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	MinAmountIn       string         `protobuf:"bytes,3,opt,name=minAmountIn,proto3" json:"minAmountIn,omitempty"`
	MinAmountOut      string         `protobuf:"bytes,4,opt,name=minAmountOut,proto3" json:"minAmountOut,omitempty"`
}

func (*ProposalMetadata) Descriptor

func (*ProposalMetadata) Descriptor() ([]byte, []int)

func (*ProposalMetadata) GetAmountInMetadata

func (m *ProposalMetadata) GetAmountInMetadata() types.Metadata

func (*ProposalMetadata) GetAmountOutMetadata

func (m *ProposalMetadata) GetAmountOutMetadata() types.Metadata

func (*ProposalMetadata) GetMinAmountIn

func (m *ProposalMetadata) GetMinAmountIn() string

func (*ProposalMetadata) GetMinAmountOut added in v0.0.2

func (m *ProposalMetadata) GetMinAmountOut() string

func (*ProposalMetadata) Marshal

func (m *ProposalMetadata) Marshal() (dAtA []byte, err error)

func (*ProposalMetadata) MarshalTo

func (m *ProposalMetadata) MarshalTo(dAtA []byte) (int, error)

func (*ProposalMetadata) MarshalToSizedBuffer

func (m *ProposalMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProposalMetadata) ProtoMessage

func (*ProposalMetadata) ProtoMessage()

func (*ProposalMetadata) Reset

func (m *ProposalMetadata) Reset()

func (*ProposalMetadata) Size

func (m *ProposalMetadata) Size() (n int)

func (*ProposalMetadata) String

func (m *ProposalMetadata) String() string

func (*ProposalMetadata) Unmarshal

func (m *ProposalMetadata) Unmarshal(dAtA []byte) error

func (*ProposalMetadata) XXX_DiscardUnknown

func (m *ProposalMetadata) XXX_DiscardUnknown()

func (*ProposalMetadata) XXX_Marshal

func (m *ProposalMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalMetadata) XXX_Merge

func (m *ProposalMetadata) XXX_Merge(src proto.Message)

func (*ProposalMetadata) XXX_Size

func (m *ProposalMetadata) XXX_Size() int

func (*ProposalMetadata) XXX_Unmarshal

func (m *ProposalMetadata) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	PairByPairId(ctx context.Context, in *PairByPairIdRequest, opts ...grpc.CallOption) (*PairRequestResponse, error)
	PairById(ctx context.Context, in *PairByIdRequest, opts ...grpc.CallOption) (*PairRequestResponse, error)
	GetAmountOutByAmountIn(ctx context.Context, in *GetAmountOutByAmountInRequest, opts ...grpc.CallOption) (*GetAmountOutByAmountInResponse, error)
	AllPairs(ctx context.Context, in *AllPairsRequest, opts ...grpc.CallOption) (*AllPairsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	PairByPairId(context.Context, *PairByPairIdRequest) (*PairRequestResponse, error)
	PairById(context.Context, *PairByIdRequest) (*PairRequestResponse, error)
	GetAmountOutByAmountIn(context.Context, *GetAmountOutByAmountInRequest) (*GetAmountOutByAmountInResponse, error)
	AllPairs(context.Context, *AllPairsRequest) (*AllPairsResponse, error)
}

QueryServer is the server API for Query service.

type RegisterChangeBurningFundAddressProposal

type RegisterChangeBurningFundAddressProposal struct {
	// title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Address     string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func (*RegisterChangeBurningFundAddressProposal) Descriptor

func (*RegisterChangeBurningFundAddressProposal) Descriptor() ([]byte, []int)

func (*RegisterChangeBurningFundAddressProposal) GetAddress

func (*RegisterChangeBurningFundAddressProposal) GetDescription

func (*RegisterChangeBurningFundAddressProposal) GetTitle

func (*RegisterChangeBurningFundAddressProposal) Marshal

func (m *RegisterChangeBurningFundAddressProposal) Marshal() (dAtA []byte, err error)

func (*RegisterChangeBurningFundAddressProposal) MarshalTo

func (m *RegisterChangeBurningFundAddressProposal) MarshalTo(dAtA []byte) (int, error)

func (*RegisterChangeBurningFundAddressProposal) MarshalToSizedBuffer

func (m *RegisterChangeBurningFundAddressProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegisterChangeBurningFundAddressProposal) ProposalRoute

func (*RegisterChangeBurningFundAddressProposal) ProposalType

func (*RegisterChangeBurningFundAddressProposal) ProtoMessage

func (*RegisterChangeBurningFundAddressProposal) Reset

func (*RegisterChangeBurningFundAddressProposal) Size

func (*RegisterChangeBurningFundAddressProposal) String

func (*RegisterChangeBurningFundAddressProposal) Unmarshal

func (*RegisterChangeBurningFundAddressProposal) ValidateBasic

func (rtbp *RegisterChangeBurningFundAddressProposal) ValidateBasic() error

func (*RegisterChangeBurningFundAddressProposal) XXX_DiscardUnknown

func (m *RegisterChangeBurningFundAddressProposal) XXX_DiscardUnknown()

func (*RegisterChangeBurningFundAddressProposal) XXX_Marshal

func (m *RegisterChangeBurningFundAddressProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterChangeBurningFundAddressProposal) XXX_Merge

func (*RegisterChangeBurningFundAddressProposal) XXX_Size

func (*RegisterChangeBurningFundAddressProposal) XXX_Unmarshal

func (m *RegisterChangeBurningFundAddressProposal) XXX_Unmarshal(b []byte) error

type RegisterChangeReserveFundAddressProposal added in v0.1.1

type RegisterChangeReserveFundAddressProposal struct {
	// title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Address     string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func (*RegisterChangeReserveFundAddressProposal) Descriptor added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) Descriptor() ([]byte, []int)

func (*RegisterChangeReserveFundAddressProposal) GetAddress added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) GetDescription added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) GetTitle added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) Marshal added in v0.1.1

func (m *RegisterChangeReserveFundAddressProposal) Marshal() (dAtA []byte, err error)

func (*RegisterChangeReserveFundAddressProposal) MarshalTo added in v0.1.1

func (m *RegisterChangeReserveFundAddressProposal) MarshalTo(dAtA []byte) (int, error)

func (*RegisterChangeReserveFundAddressProposal) MarshalToSizedBuffer added in v0.1.1

func (m *RegisterChangeReserveFundAddressProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegisterChangeReserveFundAddressProposal) ProposalRoute added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) ProposalType added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) ProtoMessage added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) Reset added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) Size added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) String added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) Unmarshal added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) ValidateBasic added in v0.1.1

func (rtbp *RegisterChangeReserveFundAddressProposal) ValidateBasic() error

func (*RegisterChangeReserveFundAddressProposal) XXX_DiscardUnknown added in v0.1.1

func (m *RegisterChangeReserveFundAddressProposal) XXX_DiscardUnknown()

func (*RegisterChangeReserveFundAddressProposal) XXX_Marshal added in v0.1.1

func (m *RegisterChangeReserveFundAddressProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterChangeReserveFundAddressProposal) XXX_Merge added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) XXX_Size added in v0.1.1

func (*RegisterChangeReserveFundAddressProposal) XXX_Unmarshal added in v0.1.1

func (m *RegisterChangeReserveFundAddressProposal) XXX_Unmarshal(b []byte) error

type RegisterDeletePairProposal added in v0.2.0

type RegisterDeletePairProposal struct {
	// title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PairId      string `protobuf:"bytes,3,opt,name=pairId,proto3" json:"pairId,omitempty"`
}

func (*RegisterDeletePairProposal) Descriptor added in v0.2.0

func (*RegisterDeletePairProposal) Descriptor() ([]byte, []int)

func (*RegisterDeletePairProposal) GetDescription added in v0.2.0

func (m *RegisterDeletePairProposal) GetDescription() string

func (*RegisterDeletePairProposal) GetPairId added in v0.2.0

func (m *RegisterDeletePairProposal) GetPairId() string

func (*RegisterDeletePairProposal) GetTitle added in v0.2.0

func (m *RegisterDeletePairProposal) GetTitle() string

func (*RegisterDeletePairProposal) Marshal added in v0.2.0

func (m *RegisterDeletePairProposal) Marshal() (dAtA []byte, err error)

func (*RegisterDeletePairProposal) MarshalTo added in v0.2.0

func (m *RegisterDeletePairProposal) MarshalTo(dAtA []byte) (int, error)

func (*RegisterDeletePairProposal) MarshalToSizedBuffer added in v0.2.0

func (m *RegisterDeletePairProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegisterDeletePairProposal) ProposalRoute added in v0.2.0

func (*RegisterDeletePairProposal) ProposalRoute() string

func (*RegisterDeletePairProposal) ProposalType added in v0.2.0

func (*RegisterDeletePairProposal) ProposalType() string

func (*RegisterDeletePairProposal) ProtoMessage added in v0.2.0

func (*RegisterDeletePairProposal) ProtoMessage()

func (*RegisterDeletePairProposal) Reset added in v0.2.0

func (m *RegisterDeletePairProposal) Reset()

func (*RegisterDeletePairProposal) Size added in v0.2.0

func (m *RegisterDeletePairProposal) Size() (n int)

func (*RegisterDeletePairProposal) String added in v0.2.0

func (m *RegisterDeletePairProposal) String() string

func (*RegisterDeletePairProposal) Unmarshal added in v0.2.0

func (m *RegisterDeletePairProposal) Unmarshal(dAtA []byte) error

func (*RegisterDeletePairProposal) ValidateBasic added in v0.2.0

func (rtbp *RegisterDeletePairProposal) ValidateBasic() error

func (*RegisterDeletePairProposal) XXX_DiscardUnknown added in v0.2.0

func (m *RegisterDeletePairProposal) XXX_DiscardUnknown()

func (*RegisterDeletePairProposal) XXX_Marshal added in v0.2.0

func (m *RegisterDeletePairProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterDeletePairProposal) XXX_Merge added in v0.2.0

func (m *RegisterDeletePairProposal) XXX_Merge(src proto.Message)

func (*RegisterDeletePairProposal) XXX_Size added in v0.2.0

func (m *RegisterDeletePairProposal) XXX_Size() int

func (*RegisterDeletePairProposal) XXX_Unmarshal added in v0.2.0

func (m *RegisterDeletePairProposal) XXX_Unmarshal(b []byte) error

type RegisterPairProposal

type RegisterPairProposal struct {
	// title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// metadata slice of the native Cosmos coins
	AmountInMetadata  types.Metadata `protobuf:"bytes,3,opt,name=amountInMetadata,proto3" json:"amountInMetadata" yaml:"amountInMetadata"`
	AmountOutMetadata types.Metadata `protobuf:"bytes,4,opt,name=amountOutMetadata,proto3" json:"amountOutMetadata" yaml:"amountOutMetadata"`
	MinAmountIn       string         `protobuf:"bytes,5,opt,name=minAmountIn,proto3" json:"minAmountIn,omitempty"`
	MinAmountOut      string         `protobuf:"bytes,6,opt,name=minAmountOut,proto3" json:"minAmountOut,omitempty"`
}

func (*RegisterPairProposal) Descriptor

func (*RegisterPairProposal) Descriptor() ([]byte, []int)

func (*RegisterPairProposal) GetAmountInMetadata

func (m *RegisterPairProposal) GetAmountInMetadata() types.Metadata

func (*RegisterPairProposal) GetAmountOutMetadata

func (m *RegisterPairProposal) GetAmountOutMetadata() types.Metadata

func (*RegisterPairProposal) GetDescription

func (m *RegisterPairProposal) GetDescription() string

func (*RegisterPairProposal) GetMinAmountIn

func (m *RegisterPairProposal) GetMinAmountIn() string

func (*RegisterPairProposal) GetMinAmountOut added in v0.0.2

func (m *RegisterPairProposal) GetMinAmountOut() string

func (*RegisterPairProposal) GetTitle

func (m *RegisterPairProposal) GetTitle() string

func (*RegisterPairProposal) Marshal

func (m *RegisterPairProposal) Marshal() (dAtA []byte, err error)

func (*RegisterPairProposal) MarshalTo

func (m *RegisterPairProposal) MarshalTo(dAtA []byte) (int, error)

func (*RegisterPairProposal) MarshalToSizedBuffer

func (m *RegisterPairProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegisterPairProposal) ProposalRoute

func (*RegisterPairProposal) ProposalRoute() string

func (*RegisterPairProposal) ProposalType

func (*RegisterPairProposal) ProposalType() string

func (*RegisterPairProposal) ProtoMessage

func (*RegisterPairProposal) ProtoMessage()

func (*RegisterPairProposal) Reset

func (m *RegisterPairProposal) Reset()

func (*RegisterPairProposal) Size

func (m *RegisterPairProposal) Size() (n int)

func (*RegisterPairProposal) String

func (m *RegisterPairProposal) String() string

func (*RegisterPairProposal) Unmarshal

func (m *RegisterPairProposal) Unmarshal(dAtA []byte) error

func (*RegisterPairProposal) ValidateBasic

func (rtbp *RegisterPairProposal) ValidateBasic() error

func (*RegisterPairProposal) XXX_DiscardUnknown

func (m *RegisterPairProposal) XXX_DiscardUnknown()

func (*RegisterPairProposal) XXX_Marshal

func (m *RegisterPairProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterPairProposal) XXX_Merge

func (m *RegisterPairProposal) XXX_Merge(src proto.Message)

func (*RegisterPairProposal) XXX_Size

func (m *RegisterPairProposal) XXX_Size() int

func (*RegisterPairProposal) XXX_Unmarshal

func (m *RegisterPairProposal) XXX_Unmarshal(b []byte) error

type ScopedKeeper

type ScopedKeeper interface {
	GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool)
	AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
	ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
}

ScopedKeeper defines the expected IBC scoped keeper.

type StablePacketData

type StablePacketData struct {
	// Types that are valid to be assigned to Packet:
	//	*StablePacketData_NoData
	Packet isStablePacketData_Packet `protobuf_oneof:"packet"`
}

func (*StablePacketData) Descriptor

func (*StablePacketData) Descriptor() ([]byte, []int)

func (*StablePacketData) GetNoData

func (m *StablePacketData) GetNoData() *NoData

func (*StablePacketData) GetPacket

func (m *StablePacketData) GetPacket() isStablePacketData_Packet

func (*StablePacketData) Marshal

func (m *StablePacketData) Marshal() (dAtA []byte, err error)

func (*StablePacketData) MarshalTo

func (m *StablePacketData) MarshalTo(dAtA []byte) (int, error)

func (*StablePacketData) MarshalToSizedBuffer

func (m *StablePacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StablePacketData) ProtoMessage

func (*StablePacketData) ProtoMessage()

func (*StablePacketData) Reset

func (m *StablePacketData) Reset()

func (*StablePacketData) Size

func (m *StablePacketData) Size() (n int)

func (*StablePacketData) String

func (m *StablePacketData) String() string

func (*StablePacketData) Unmarshal

func (m *StablePacketData) Unmarshal(dAtA []byte) error

func (*StablePacketData) XXX_DiscardUnknown

func (m *StablePacketData) XXX_DiscardUnknown()

func (*StablePacketData) XXX_Marshal

func (m *StablePacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StablePacketData) XXX_Merge

func (m *StablePacketData) XXX_Merge(src proto.Message)

func (*StablePacketData) XXX_OneofWrappers

func (*StablePacketData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*StablePacketData) XXX_Size

func (m *StablePacketData) XXX_Size() int

func (*StablePacketData) XXX_Unmarshal

func (m *StablePacketData) XXX_Unmarshal(b []byte) error

type StablePacketData_NoData

type StablePacketData_NoData struct {
	NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"`
}

func (*StablePacketData_NoData) MarshalTo

func (m *StablePacketData_NoData) MarshalTo(dAtA []byte) (int, error)

func (*StablePacketData_NoData) MarshalToSizedBuffer

func (m *StablePacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StablePacketData_NoData) Size

func (m *StablePacketData_NoData) Size() (n int)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) Mint

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllPairs added in v0.1.2

func (*UnimplementedQueryServer) GetAmountOutByAmountIn added in v0.1.1

func (*UnimplementedQueryServer) PairById

func (*UnimplementedQueryServer) PairByPairId

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL