Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CreateCoins(denom string, amount sdk.Int) sdk.Coins
- func KeyPrefix(p string) []byte
- func NewRegisterChangeBurningFundAddressProposal(title, description string, address string) govtypes.Content
- func NewRegisterChangeReserveFundAddressProposal(title, description string, address string) govtypes.Content
- func NewRegisterPairProposal(title, description string, amountInDenom banktypes.Metadata, ...) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AllPairsRequest
- func (*AllPairsRequest) Descriptor() ([]byte, []int)
- func (m *AllPairsRequest) Marshal() (dAtA []byte, err error)
- func (m *AllPairsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AllPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllPairsRequest) ProtoMessage()
- func (m *AllPairsRequest) Reset()
- func (m *AllPairsRequest) Size() (n int)
- func (m *AllPairsRequest) String() string
- func (m *AllPairsRequest) Unmarshal(dAtA []byte) error
- func (m *AllPairsRequest) XXX_DiscardUnknown()
- func (m *AllPairsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllPairsRequest) XXX_Merge(src proto.Message)
- func (m *AllPairsRequest) XXX_Size() int
- func (m *AllPairsRequest) XXX_Unmarshal(b []byte) error
- type AllPairsResponse
- func (*AllPairsResponse) Descriptor() ([]byte, []int)
- func (m *AllPairsResponse) GetPairs() []*Pair
- func (m *AllPairsResponse) Marshal() (dAtA []byte, err error)
- func (m *AllPairsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AllPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllPairsResponse) ProtoMessage()
- func (m *AllPairsResponse) Reset()
- func (m *AllPairsResponse) Size() (n int)
- func (m *AllPairsResponse) String() string
- func (m *AllPairsResponse) Unmarshal(dAtA []byte) error
- func (m *AllPairsResponse) XXX_DiscardUnknown()
- func (m *AllPairsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllPairsResponse) XXX_Merge(src proto.Message)
- func (m *AllPairsResponse) XXX_Size() int
- func (m *AllPairsResponse) XXX_Unmarshal(b []byte) error
- type AmountOutResponse
- func (*AmountOutResponse) Descriptor() ([]byte, []int)
- func (m *AmountOutResponse) GetAmountOut() uint64
- func (m *AmountOutResponse) GetDenom() string
- func (m *AmountOutResponse) GetPairId() string
- func (m *AmountOutResponse) Marshal() (dAtA []byte, err error)
- func (m *AmountOutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AmountOutResponse) ProtoMessage()
- func (m *AmountOutResponse) Reset()
- func (m *AmountOutResponse) Size() (n int)
- func (m *AmountOutResponse) String() string
- func (m *AmountOutResponse) Unmarshal(dAtA []byte) error
- func (m *AmountOutResponse) XXX_DiscardUnknown()
- func (m *AmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AmountOutResponse) XXX_Merge(src proto.Message)
- func (m *AmountOutResponse) XXX_Size() int
- func (m *AmountOutResponse) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type ChannelKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBurningFundAddress() string
- func (m *GenesisState) GetPairs() []Pair
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPortId() string
- func (m *GenesisState) GetReserveFundAddress() string
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GetAmountOutByAmountInRequest
- func (*GetAmountOutByAmountInRequest) Descriptor() ([]byte, []int)
- func (m *GetAmountOutByAmountInRequest) GetAction() string
- func (m *GetAmountOutByAmountInRequest) GetAmountIn() uint64
- func (m *GetAmountOutByAmountInRequest) GetPairId() string
- func (m *GetAmountOutByAmountInRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAmountOutByAmountInRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAmountOutByAmountInRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAmountOutByAmountInRequest) ProtoMessage()
- func (m *GetAmountOutByAmountInRequest) Reset()
- func (m *GetAmountOutByAmountInRequest) Size() (n int)
- func (m *GetAmountOutByAmountInRequest) String() string
- func (m *GetAmountOutByAmountInRequest) Unmarshal(dAtA []byte) error
- func (m *GetAmountOutByAmountInRequest) XXX_DiscardUnknown()
- func (m *GetAmountOutByAmountInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAmountOutByAmountInRequest) XXX_Merge(src proto.Message)
- func (m *GetAmountOutByAmountInRequest) XXX_Size() int
- func (m *GetAmountOutByAmountInRequest) XXX_Unmarshal(b []byte) error
- type GetAmountOutByAmountInResponse
- func (*GetAmountOutByAmountInResponse) Descriptor() ([]byte, []int)
- func (m *GetAmountOutByAmountInResponse) GetAction() string
- func (m *GetAmountOutByAmountInResponse) GetAmountOut() uint64
- func (m *GetAmountOutByAmountInResponse) GetPairId() string
- func (m *GetAmountOutByAmountInResponse) Marshal() (dAtA []byte, err error)
- func (m *GetAmountOutByAmountInResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAmountOutByAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAmountOutByAmountInResponse) ProtoMessage()
- func (m *GetAmountOutByAmountInResponse) Reset()
- func (m *GetAmountOutByAmountInResponse) Size() (n int)
- func (m *GetAmountOutByAmountInResponse) String() string
- func (m *GetAmountOutByAmountInResponse) Unmarshal(dAtA []byte) error
- func (m *GetAmountOutByAmountInResponse) XXX_DiscardUnknown()
- func (m *GetAmountOutByAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAmountOutByAmountInResponse) XXX_Merge(src proto.Message)
- func (m *GetAmountOutByAmountInResponse) XXX_Size() int
- func (m *GetAmountOutByAmountInResponse) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (m *MsgBurn) GetAmountIn() string
- func (m *MsgBurn) GetCreator() string
- func (m *MsgBurn) GetDenomOut() string
- func (msg *MsgBurn) GetSignBytes() []byte
- func (msg *MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (msg *MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (msg *MsgBurn) Type() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (msg *MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) GetAmountIn() string
- func (m *MsgBurnResponse) GetAmountOut() string
- func (m *MsgBurnResponse) GetCreator() string
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m *MsgMint) GetAmountIn() string
- func (m *MsgMint) GetCreator() string
- func (m *MsgMint) GetDenomOut() string
- func (msg *MsgMint) GetSignBytes() []byte
- func (msg *MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (msg *MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (msg *MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (msg *MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) GetAmountIn() string
- func (m *MsgMintResponse) GetAmountOut() string
- func (m *MsgMintResponse) GetCreator() string
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type NoData
- func (*NoData) Descriptor() ([]byte, []int)
- func (m *NoData) Marshal() (dAtA []byte, err error)
- func (m *NoData) MarshalTo(dAtA []byte) (int, error)
- func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NoData) ProtoMessage()
- func (m *NoData) Reset()
- func (m *NoData) Size() (n int)
- func (m *NoData) String() string
- func (m *NoData) Unmarshal(dAtA []byte) error
- func (m *NoData) XXX_DiscardUnknown()
- func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NoData) XXX_Merge(src proto.Message)
- func (m *NoData) XXX_Size() int
- func (m *NoData) XXX_Unmarshal(b []byte) error
- type OracleKeeper
- type Pair
- func (*Pair) Descriptor() ([]byte, []int)
- func (m *Pair) GetAmountInMetadata() types.Metadata
- func (m *Pair) GetAmountOutMetadata() types.Metadata
- func (m *Pair) GetId() uint64
- func (m *Pair) GetMinAmountIn() string
- func (m *Pair) GetMinAmountOut() string
- func (m *Pair) GetPairId() string
- func (m *Pair) Marshal() (dAtA []byte, err error)
- func (m *Pair) MarshalTo(dAtA []byte) (int, error)
- func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pair) ProtoMessage()
- func (m *Pair) Reset()
- func (m *Pair) Size() (n int)
- func (m *Pair) String() string
- func (m *Pair) Unmarshal(dAtA []byte) error
- func (m *Pair) XXX_DiscardUnknown()
- func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pair) XXX_Merge(src proto.Message)
- func (m *Pair) XXX_Size() int
- func (m *Pair) XXX_Unmarshal(b []byte) error
- type PairByIdRequest
- func (*PairByIdRequest) Descriptor() ([]byte, []int)
- func (m *PairByIdRequest) GetId() uint64
- func (m *PairByIdRequest) Marshal() (dAtA []byte, err error)
- func (m *PairByIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PairByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PairByIdRequest) ProtoMessage()
- func (m *PairByIdRequest) Reset()
- func (m *PairByIdRequest) Size() (n int)
- func (m *PairByIdRequest) String() string
- func (m *PairByIdRequest) Unmarshal(dAtA []byte) error
- func (m *PairByIdRequest) XXX_DiscardUnknown()
- func (m *PairByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PairByIdRequest) XXX_Merge(src proto.Message)
- func (m *PairByIdRequest) XXX_Size() int
- func (m *PairByIdRequest) XXX_Unmarshal(b []byte) error
- type PairByPairIdRequest
- func (*PairByPairIdRequest) Descriptor() ([]byte, []int)
- func (m *PairByPairIdRequest) GetPairId() string
- func (m *PairByPairIdRequest) Marshal() (dAtA []byte, err error)
- func (m *PairByPairIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PairByPairIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PairByPairIdRequest) ProtoMessage()
- func (m *PairByPairIdRequest) Reset()
- func (m *PairByPairIdRequest) Size() (n int)
- func (m *PairByPairIdRequest) String() string
- func (m *PairByPairIdRequest) Unmarshal(dAtA []byte) error
- func (m *PairByPairIdRequest) XXX_DiscardUnknown()
- func (m *PairByPairIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PairByPairIdRequest) XXX_Merge(src proto.Message)
- func (m *PairByPairIdRequest) XXX_Size() int
- func (m *PairByPairIdRequest) XXX_Unmarshal(b []byte) error
- type PairRequestResponse
- func (*PairRequestResponse) Descriptor() ([]byte, []int)
- func (m *PairRequestResponse) GetAmountInMetadata() types.Metadata
- func (m *PairRequestResponse) GetAmountOutMetadata() types.Metadata
- func (m *PairRequestResponse) GetBackingRatio() uint64
- func (m *PairRequestResponse) GetBurningFee() uint64
- func (m *PairRequestResponse) GetMinAmountIn() string
- func (m *PairRequestResponse) GetMinAmountOut() string
- func (m *PairRequestResponse) GetMintingFee() uint64
- func (m *PairRequestResponse) GetPairId() string
- func (m *PairRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *PairRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PairRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PairRequestResponse) ProtoMessage()
- func (m *PairRequestResponse) Reset()
- func (m *PairRequestResponse) Size() (n int)
- func (m *PairRequestResponse) String() string
- func (m *PairRequestResponse) Unmarshal(dAtA []byte) error
- func (m *PairRequestResponse) XXX_DiscardUnknown()
- func (m *PairRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PairRequestResponse) XXX_Merge(src proto.Message)
- func (m *PairRequestResponse) XXX_Size() int
- func (m *PairRequestResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PortKeeper
- type ProposalMetadata
- func (*ProposalMetadata) Descriptor() ([]byte, []int)
- func (m *ProposalMetadata) GetAmountInMetadata() types.Metadata
- func (m *ProposalMetadata) GetAmountOutMetadata() types.Metadata
- func (m *ProposalMetadata) GetMinAmountIn() string
- func (m *ProposalMetadata) GetMinAmountOut() string
- func (m *ProposalMetadata) Marshal() (dAtA []byte, err error)
- func (m *ProposalMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProposalMetadata) ProtoMessage()
- func (m *ProposalMetadata) Reset()
- func (m *ProposalMetadata) Size() (n int)
- func (m *ProposalMetadata) String() string
- func (m *ProposalMetadata) Unmarshal(dAtA []byte) error
- func (m *ProposalMetadata) XXX_DiscardUnknown()
- func (m *ProposalMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalMetadata) XXX_Merge(src proto.Message)
- func (m *ProposalMetadata) XXX_Size() int
- func (m *ProposalMetadata) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetBurningFundAddress() string
- func (m *QueryParamsResponse) GetReserveFundAddress() string
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RegisterChangeBurningFundAddressProposal
- func (*RegisterChangeBurningFundAddressProposal) Descriptor() ([]byte, []int)
- func (m *RegisterChangeBurningFundAddressProposal) GetAddress() string
- func (m *RegisterChangeBurningFundAddressProposal) GetDescription() string
- func (m *RegisterChangeBurningFundAddressProposal) GetTitle() string
- func (m *RegisterChangeBurningFundAddressProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterChangeBurningFundAddressProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterChangeBurningFundAddressProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterChangeBurningFundAddressProposal) ProposalRoute() string
- func (*RegisterChangeBurningFundAddressProposal) ProposalType() string
- func (*RegisterChangeBurningFundAddressProposal) ProtoMessage()
- func (m *RegisterChangeBurningFundAddressProposal) Reset()
- func (m *RegisterChangeBurningFundAddressProposal) Size() (n int)
- func (m *RegisterChangeBurningFundAddressProposal) String() string
- func (m *RegisterChangeBurningFundAddressProposal) Unmarshal(dAtA []byte) error
- func (rtbp *RegisterChangeBurningFundAddressProposal) ValidateBasic() error
- func (m *RegisterChangeBurningFundAddressProposal) XXX_DiscardUnknown()
- func (m *RegisterChangeBurningFundAddressProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterChangeBurningFundAddressProposal) XXX_Merge(src proto.Message)
- func (m *RegisterChangeBurningFundAddressProposal) XXX_Size() int
- func (m *RegisterChangeBurningFundAddressProposal) XXX_Unmarshal(b []byte) error
- type RegisterChangeReserveFundAddressProposal
- func (*RegisterChangeReserveFundAddressProposal) Descriptor() ([]byte, []int)
- func (m *RegisterChangeReserveFundAddressProposal) GetAddress() string
- func (m *RegisterChangeReserveFundAddressProposal) GetDescription() string
- func (m *RegisterChangeReserveFundAddressProposal) GetTitle() string
- func (m *RegisterChangeReserveFundAddressProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterChangeReserveFundAddressProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterChangeReserveFundAddressProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterChangeReserveFundAddressProposal) ProposalRoute() string
- func (*RegisterChangeReserveFundAddressProposal) ProposalType() string
- func (*RegisterChangeReserveFundAddressProposal) ProtoMessage()
- func (m *RegisterChangeReserveFundAddressProposal) Reset()
- func (m *RegisterChangeReserveFundAddressProposal) Size() (n int)
- func (m *RegisterChangeReserveFundAddressProposal) String() string
- func (m *RegisterChangeReserveFundAddressProposal) Unmarshal(dAtA []byte) error
- func (rtbp *RegisterChangeReserveFundAddressProposal) ValidateBasic() error
- func (m *RegisterChangeReserveFundAddressProposal) XXX_DiscardUnknown()
- func (m *RegisterChangeReserveFundAddressProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterChangeReserveFundAddressProposal) XXX_Merge(src proto.Message)
- func (m *RegisterChangeReserveFundAddressProposal) XXX_Size() int
- func (m *RegisterChangeReserveFundAddressProposal) XXX_Unmarshal(b []byte) error
- type RegisterPairProposal
- func (*RegisterPairProposal) Descriptor() ([]byte, []int)
- func (m *RegisterPairProposal) GetAmountInMetadata() types.Metadata
- func (m *RegisterPairProposal) GetAmountOutMetadata() types.Metadata
- func (m *RegisterPairProposal) GetDescription() string
- func (m *RegisterPairProposal) GetMinAmountIn() string
- func (m *RegisterPairProposal) GetMinAmountOut() string
- func (m *RegisterPairProposal) GetTitle() string
- func (m *RegisterPairProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterPairProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterPairProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterPairProposal) ProposalRoute() string
- func (*RegisterPairProposal) ProposalType() string
- func (*RegisterPairProposal) ProtoMessage()
- func (m *RegisterPairProposal) Reset()
- func (m *RegisterPairProposal) Size() (n int)
- func (m *RegisterPairProposal) String() string
- func (m *RegisterPairProposal) Unmarshal(dAtA []byte) error
- func (rtbp *RegisterPairProposal) ValidateBasic() error
- func (m *RegisterPairProposal) XXX_DiscardUnknown()
- func (m *RegisterPairProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterPairProposal) XXX_Merge(src proto.Message)
- func (m *RegisterPairProposal) XXX_Size() int
- func (m *RegisterPairProposal) XXX_Unmarshal(b []byte) error
- type ScopedKeeper
- type StablePacketData
- func (*StablePacketData) Descriptor() ([]byte, []int)
- func (m *StablePacketData) GetNoData() *NoData
- func (m *StablePacketData) GetPacket() isStablePacketData_Packet
- func (m *StablePacketData) Marshal() (dAtA []byte, err error)
- func (m *StablePacketData) MarshalTo(dAtA []byte) (int, error)
- func (m *StablePacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StablePacketData) ProtoMessage()
- func (m *StablePacketData) Reset()
- func (m *StablePacketData) Size() (n int)
- func (m *StablePacketData) String() string
- func (m *StablePacketData) Unmarshal(dAtA []byte) error
- func (m *StablePacketData) XXX_DiscardUnknown()
- func (m *StablePacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StablePacketData) XXX_Merge(src proto.Message)
- func (*StablePacketData) XXX_OneofWrappers() []interface{}
- func (m *StablePacketData) XXX_Size() int
- func (m *StablePacketData) XXX_Unmarshal(b []byte) error
- type StablePacketData_NoData
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllPairs(ctx context.Context, req *AllPairsRequest) (*AllPairsResponse, error)
- func (*UnimplementedQueryServer) GetAmountOutByAmountIn(ctx context.Context, req *GetAmountOutByAmountInRequest) (*GetAmountOutByAmountInResponse, error)
- func (*UnimplementedQueryServer) PairById(ctx context.Context, req *PairByIdRequest) (*PairRequestResponse, error)
- func (*UnimplementedQueryServer) PairByPairId(ctx context.Context, req *PairByPairIdRequest) (*PairRequestResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventRegisterCreateNewPairProposal = "register_create_new_pair_proposal" EventRegisterChangeBurningFundAddressProposal = "register_change_burning_fund_address_proposal" EventRegisterChangeReserveFundAddressProposal = "register_change_reserve_fund_address_proposal" AttributeValueCategory = ModuleName AttributeKeyActionMint = "mint" AttributeKeyActionBurn = "burn" )
const ( EventTypeTimeout = "timeout" AttributeKeyAckSuccess = "success" AttributeKeyAck = "acknowledgement" AttributeKeyAckError = "error" )
IBC events
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" )
const ( PairKey = "Pair/value/" PairCountKey = "Pair/count/" )
const ( ProposalTypeRegisterPairProposal string = "RegisterPairProposal" ProposalTypeRegisterChangeBurningFundAddressProposal string = "RegisterChangeBurningFundAddressProposal" ProposalTypeRegisterChangeReserveFundAddressProposal string = "RegisterChangeReserveFundAddressProposal" )
constants
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const TypeMsgBurn = "burn"
const TypeMsgMint = "mint"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
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
var ( ErrMintBlocked = sdkerrors.Register(ModuleName, 100, "Backing Ration >= 140%") ErrBurnBlocked = sdkerrors.Register(ModuleName, 101, "Backing Ration < 85%") )
GMB errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
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)) )
var ( ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPair = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPair = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPair = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ErrUnrecognizedPacketType = sdkerrors.Register(ModuleName, 15, "unrecognized packet type")
)
var ( // PortKey defines the key to store the port ID in store PortKey = KeyPrefix("stable-port-") )
Functions ¶
func NewRegisterChangeReserveFundAddressProposal ¶ added in v0.1.1
func NewRegisterPairProposal ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 ¶
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"` ReserveFundAddress string `protobuf:"bytes,4,opt,name=reserveFundAddress,proto3" json:"reserveFundAddress,omitempty"` BurningFundAddress string `protobuf:"bytes,5,opt,name=burningFundAddress,proto3" json:"burningFundAddress,omitempty"` }
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 (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBurningFundAddress ¶ added in v0.1.1
func (m *GenesisState) GetBurningFundAddress() string
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) GetReserveFundAddress ¶ added in v0.1.1
func (m *GenesisState) GetReserveFundAddress() string
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 (m *GetAmountOutByAmountInRequest) String() string
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 (m *GetAmountOutByAmountInResponse) String() string
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 (*MsgBurn) Descriptor ¶
func (*MsgBurn) GetAmountIn ¶
func (*MsgBurn) GetCreator ¶
func (*MsgBurn) GetDenomOut ¶
func (*MsgBurn) GetSignBytes ¶
func (*MsgBurn) GetSigners ¶
func (msg *MsgBurn) GetSigners() []sdk.AccAddress
func (*MsgBurn) MarshalToSizedBuffer ¶
func (*MsgBurn) ProtoMessage ¶
func (*MsgBurn) ProtoMessage()
func (*MsgBurn) ValidateBasic ¶
func (*MsgBurn) XXX_DiscardUnknown ¶
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶
func (*MsgBurn) XXX_Unmarshal ¶
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) 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 (*MsgMint) Descriptor ¶
func (*MsgMint) GetAmountIn ¶
func (*MsgMint) GetCreator ¶
func (*MsgMint) GetDenomOut ¶
func (*MsgMint) GetSignBytes ¶
func (*MsgMint) GetSigners ¶
func (msg *MsgMint) GetSigners() []sdk.AccAddress
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (*MsgMint) ValidateBasic ¶
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
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) 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) MarshalToSizedBuffer ¶
func (*NoData) ProtoMessage ¶
func (*NoData) ProtoMessage()
func (*NoData) XXX_DiscardUnknown ¶
func (m *NoData) XXX_DiscardUnknown()
func (*NoData) XXX_Marshal ¶
func (*NoData) XXX_Unmarshal ¶
type OracleKeeper ¶
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"` }
func (*Pair) Descriptor ¶
func (*Pair) GetAmountInMetadata ¶
func (*Pair) GetAmountOutMetadata ¶
func (*Pair) GetMinAmountIn ¶
func (*Pair) GetMinAmountOut ¶ added in v0.0.2
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) XXX_DiscardUnknown ¶
func (m *Pair) XXX_DiscardUnknown()
func (*Pair) XXX_Unmarshal ¶
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) 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"` Qm github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,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,5,opt,name=ar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ar" yaml:"ar"` MinAmountIn string `protobuf:"bytes,6,opt,name=minAmountIn,proto3" json:"minAmountIn,omitempty"` MinAmountOut string `protobuf:"bytes,7,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) 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 { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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) 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 { ReserveFundAddress string `protobuf:"bytes,1,opt,name=ReserveFundAddress,proto3" json:"ReserveFundAddress,omitempty"` BurningFundAddress string `protobuf:"bytes,2,opt,name=BurningFundAddress,proto3" json:"BurningFundAddress,omitempty"` }
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetBurningFundAddress ¶ added in v0.1.3
func (m *QueryParamsResponse) GetBurningFundAddress() string
func (*QueryParamsResponse) GetReserveFundAddress ¶ added in v0.1.3
func (m *QueryParamsResponse) GetReserveFundAddress() string
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 (m *RegisterChangeBurningFundAddressProposal) GetAddress() string
func (*RegisterChangeBurningFundAddressProposal) GetDescription ¶
func (m *RegisterChangeBurningFundAddressProposal) GetDescription() string
func (*RegisterChangeBurningFundAddressProposal) GetTitle ¶
func (m *RegisterChangeBurningFundAddressProposal) GetTitle() string
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) ProposalRoute() string
func (*RegisterChangeBurningFundAddressProposal) ProposalType ¶
func (*RegisterChangeBurningFundAddressProposal) ProposalType() string
func (*RegisterChangeBurningFundAddressProposal) ProtoMessage ¶
func (*RegisterChangeBurningFundAddressProposal) ProtoMessage()
func (*RegisterChangeBurningFundAddressProposal) Reset ¶
func (m *RegisterChangeBurningFundAddressProposal) Reset()
func (*RegisterChangeBurningFundAddressProposal) Size ¶
func (m *RegisterChangeBurningFundAddressProposal) Size() (n int)
func (*RegisterChangeBurningFundAddressProposal) String ¶
func (m *RegisterChangeBurningFundAddressProposal) String() string
func (*RegisterChangeBurningFundAddressProposal) Unmarshal ¶
func (m *RegisterChangeBurningFundAddressProposal) Unmarshal(dAtA []byte) error
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 (m *RegisterChangeBurningFundAddressProposal) XXX_Merge(src proto.Message)
func (*RegisterChangeBurningFundAddressProposal) XXX_Size ¶
func (m *RegisterChangeBurningFundAddressProposal) XXX_Size() int
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 (m *RegisterChangeReserveFundAddressProposal) GetAddress() string
func (*RegisterChangeReserveFundAddressProposal) GetDescription ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) GetDescription() string
func (*RegisterChangeReserveFundAddressProposal) GetTitle ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) GetTitle() string
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) ProposalRoute() string
func (*RegisterChangeReserveFundAddressProposal) ProposalType ¶ added in v0.1.1
func (*RegisterChangeReserveFundAddressProposal) ProposalType() string
func (*RegisterChangeReserveFundAddressProposal) ProtoMessage ¶ added in v0.1.1
func (*RegisterChangeReserveFundAddressProposal) ProtoMessage()
func (*RegisterChangeReserveFundAddressProposal) Reset ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) Reset()
func (*RegisterChangeReserveFundAddressProposal) Size ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) Size() (n int)
func (*RegisterChangeReserveFundAddressProposal) String ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) String() string
func (*RegisterChangeReserveFundAddressProposal) Unmarshal ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) Unmarshal(dAtA []byte) error
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 (m *RegisterChangeReserveFundAddressProposal) XXX_Merge(src proto.Message)
func (*RegisterChangeReserveFundAddressProposal) XXX_Size ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) XXX_Size() int
func (*RegisterChangeReserveFundAddressProposal) XXX_Unmarshal ¶ added in v0.1.1
func (m *RegisterChangeReserveFundAddressProposal) 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) 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) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllPairs ¶ added in v0.1.2
func (*UnimplementedQueryServer) AllPairs(ctx context.Context, req *AllPairsRequest) (*AllPairsResponse, error)
func (*UnimplementedQueryServer) GetAmountOutByAmountIn ¶ added in v0.1.1
func (*UnimplementedQueryServer) GetAmountOutByAmountIn(ctx context.Context, req *GetAmountOutByAmountInRequest) (*GetAmountOutByAmountInResponse, error)
func (*UnimplementedQueryServer) PairById ¶
func (*UnimplementedQueryServer) PairById(ctx context.Context, req *PairByIdRequest) (*PairRequestResponse, error)
func (*UnimplementedQueryServer) PairByPairId ¶
func (*UnimplementedQueryServer) PairByPairId(ctx context.Context, req *PairByPairIdRequest) (*PairRequestResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)