Documentation ¶
Overview ¶
NOTE: Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remains solely for migration purposes and will be removed in a future release. [#3621](https://github.com/cosmos/ibc-go/issues/3621)
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDenomPrefix(portID, channelID string) string
- func GetEscrowAddress(portID, channelID string) sdk.AccAddress
- func GetPrefixedDenom(portID, channelID, baseDenom string) string
- func GetTransferCoin(portID, channelID, baseDenom string, amount sdkmath.Int) sdk.Coin
- func ParamKeyTable() paramtypes.KeyTable
- func ParseHexHash(hexHash string) (tmbytes.HexBytes, error)
- func ReceiverChainIsSource(sourcePort, sourceChannel, denom string) bool
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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)
- func SenderChainIsSource(sourcePort, sourceChannel, denom string) bool
- func TotalEscrowForDenomKey(denom string) []byte
- func UnboundedSpendLimit() sdkmath.Int
- func ValidateIBCDenom(denom string) error
- func ValidatePrefixedDenom(denom string) error
- type AccountKeeper
- type Allocation
- func (*Allocation) Descriptor() ([]byte, []int)
- func (m *Allocation) GetAllowList() []string
- func (m *Allocation) GetAllowedPacketData() []string
- func (m *Allocation) GetSourceChannel() string
- func (m *Allocation) GetSourcePort() string
- func (m *Allocation) GetSpendLimit() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Allocation) Marshal() (dAtA []byte, err error)
- func (m *Allocation) MarshalTo(dAtA []byte) (int, error)
- func (m *Allocation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Allocation) ProtoMessage()
- func (m *Allocation) Reset()
- func (m *Allocation) Size() (n int)
- func (m *Allocation) String() string
- func (m *Allocation) Unmarshal(dAtA []byte) error
- func (m *Allocation) XXX_DiscardUnknown()
- func (m *Allocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Allocation) XXX_Merge(src proto.Message)
- func (m *Allocation) XXX_Size() int
- func (m *Allocation) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type ChannelKeeper
- type ClientKeeper
- type ConnectionKeeper
- type DenomTrace
- func (*DenomTrace) Descriptor() ([]byte, []int)
- func (m *DenomTrace) GetBaseDenom() string
- func (dt DenomTrace) GetFullDenomPath() string
- func (m *DenomTrace) GetPath() string
- func (dt DenomTrace) GetPrefix() string
- func (dt DenomTrace) Hash() tmbytes.HexBytes
- func (dt DenomTrace) IBCDenom() string
- func (dt DenomTrace) IsNativeDenom() bool
- func (m *DenomTrace) Marshal() (dAtA []byte, err error)
- func (m *DenomTrace) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomTrace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomTrace) ProtoMessage()
- func (m *DenomTrace) Reset()
- func (m *DenomTrace) Size() (n int)
- func (m *DenomTrace) String() string
- func (m *DenomTrace) Unmarshal(dAtA []byte) error
- func (dt DenomTrace) Validate() error
- func (m *DenomTrace) XXX_DiscardUnknown()
- func (m *DenomTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomTrace) XXX_Merge(src proto.Message)
- func (m *DenomTrace) XXX_Size() int
- func (m *DenomTrace) XXX_Unmarshal(b []byte) error
- type FungibleTokenPacketData
- func (*FungibleTokenPacketData) Descriptor() ([]byte, []int)
- func (m *FungibleTokenPacketData) GetAmount() string
- func (ftpd FungibleTokenPacketData) GetBytes() []byte
- func (ftpd FungibleTokenPacketData) GetCustomPacketData(key string) interface{}
- func (m *FungibleTokenPacketData) GetDenom() string
- func (m *FungibleTokenPacketData) GetMemo() string
- func (ftpd FungibleTokenPacketData) GetPacketSender(sourcePortID string) string
- func (m *FungibleTokenPacketData) GetReceiver() string
- func (m *FungibleTokenPacketData) GetSender() string
- func (m *FungibleTokenPacketData) Marshal() (dAtA []byte, err error)
- func (m *FungibleTokenPacketData) MarshalTo(dAtA []byte) (int, error)
- func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FungibleTokenPacketData) ProtoMessage()
- func (m *FungibleTokenPacketData) Reset()
- func (m *FungibleTokenPacketData) Size() (n int)
- func (m *FungibleTokenPacketData) String() string
- func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error
- func (ftpd FungibleTokenPacketData) ValidateBasic() error
- func (m *FungibleTokenPacketData) XXX_DiscardUnknown()
- func (m *FungibleTokenPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FungibleTokenPacketData) XXX_Merge(src proto.Message)
- func (m *FungibleTokenPacketData) XXX_Size() int
- func (m *FungibleTokenPacketData) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDenomTraces() Traces
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPortId() string
- func (m *GenesisState) GetTotalEscrowed() github_com_cosmos_cosmos_sdk_types.Coins
- 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 MsgClient
- type MsgServer
- type MsgTransfer
- func (*MsgTransfer) Descriptor() ([]byte, []int)
- func (msg MsgTransfer) GetSigners() []sdk.AccAddress
- func (m *MsgTransfer) Marshal() (dAtA []byte, err error)
- func (m *MsgTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransfer) ProtoMessage()
- func (m *MsgTransfer) Reset()
- func (m *MsgTransfer) Size() (n int)
- func (m *MsgTransfer) String() string
- func (m *MsgTransfer) Unmarshal(dAtA []byte) error
- func (msg MsgTransfer) ValidateBasic() error
- func (m *MsgTransfer) XXX_DiscardUnknown()
- func (m *MsgTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransfer) XXX_Merge(src proto.Message)
- func (m *MsgTransfer) XXX_Size() int
- func (m *MsgTransfer) XXX_Unmarshal(b []byte) error
- type MsgTransferResponse
- func (*MsgTransferResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferResponse) ProtoMessage()
- func (m *MsgTransferResponse) Reset()
- func (m *MsgTransferResponse) Size() (n int)
- func (m *MsgTransferResponse) String() string
- func (m *MsgTransferResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferResponse) XXX_DiscardUnknown()
- func (m *MsgTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferResponse) XXX_Size() int
- func (m *MsgTransferResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetReceiveEnabled() bool
- func (m *Params) GetSendEnabled() bool
- 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 (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) 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 QueryClient
- type QueryDenomHashRequest
- func (*QueryDenomHashRequest) Descriptor() ([]byte, []int)
- func (m *QueryDenomHashRequest) GetTrace() string
- func (m *QueryDenomHashRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomHashRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomHashRequest) ProtoMessage()
- func (m *QueryDenomHashRequest) Reset()
- func (m *QueryDenomHashRequest) Size() (n int)
- func (m *QueryDenomHashRequest) String() string
- func (m *QueryDenomHashRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDenomHashRequest) XXX_DiscardUnknown()
- func (m *QueryDenomHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomHashRequest) XXX_Merge(src proto.Message)
- func (m *QueryDenomHashRequest) XXX_Size() int
- func (m *QueryDenomHashRequest) XXX_Unmarshal(b []byte) error
- type QueryDenomHashResponse
- func (*QueryDenomHashResponse) Descriptor() ([]byte, []int)
- func (m *QueryDenomHashResponse) GetHash() string
- func (m *QueryDenomHashResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomHashResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomHashResponse) ProtoMessage()
- func (m *QueryDenomHashResponse) Reset()
- func (m *QueryDenomHashResponse) Size() (n int)
- func (m *QueryDenomHashResponse) String() string
- func (m *QueryDenomHashResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDenomHashResponse) XXX_DiscardUnknown()
- func (m *QueryDenomHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomHashResponse) XXX_Merge(src proto.Message)
- func (m *QueryDenomHashResponse) XXX_Size() int
- func (m *QueryDenomHashResponse) XXX_Unmarshal(b []byte) error
- type QueryDenomTraceRequest
- func (*QueryDenomTraceRequest) Descriptor() ([]byte, []int)
- func (m *QueryDenomTraceRequest) GetHash() string
- func (m *QueryDenomTraceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomTraceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomTraceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomTraceRequest) ProtoMessage()
- func (m *QueryDenomTraceRequest) Reset()
- func (m *QueryDenomTraceRequest) Size() (n int)
- func (m *QueryDenomTraceRequest) String() string
- func (m *QueryDenomTraceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDenomTraceRequest) XXX_DiscardUnknown()
- func (m *QueryDenomTraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomTraceRequest) XXX_Merge(src proto.Message)
- func (m *QueryDenomTraceRequest) XXX_Size() int
- func (m *QueryDenomTraceRequest) XXX_Unmarshal(b []byte) error
- type QueryDenomTraceResponse
- func (*QueryDenomTraceResponse) Descriptor() ([]byte, []int)
- func (m *QueryDenomTraceResponse) GetDenomTrace() *DenomTrace
- func (m *QueryDenomTraceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomTraceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomTraceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomTraceResponse) ProtoMessage()
- func (m *QueryDenomTraceResponse) Reset()
- func (m *QueryDenomTraceResponse) Size() (n int)
- func (m *QueryDenomTraceResponse) String() string
- func (m *QueryDenomTraceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDenomTraceResponse) XXX_DiscardUnknown()
- func (m *QueryDenomTraceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomTraceResponse) XXX_Merge(src proto.Message)
- func (m *QueryDenomTraceResponse) XXX_Size() int
- func (m *QueryDenomTraceResponse) XXX_Unmarshal(b []byte) error
- type QueryDenomTracesRequest
- func (*QueryDenomTracesRequest) Descriptor() ([]byte, []int)
- func (m *QueryDenomTracesRequest) GetPagination() *query.PageRequest
- func (m *QueryDenomTracesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomTracesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomTracesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomTracesRequest) ProtoMessage()
- func (m *QueryDenomTracesRequest) Reset()
- func (m *QueryDenomTracesRequest) Size() (n int)
- func (m *QueryDenomTracesRequest) String() string
- func (m *QueryDenomTracesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDenomTracesRequest) XXX_DiscardUnknown()
- func (m *QueryDenomTracesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomTracesRequest) XXX_Merge(src proto.Message)
- func (m *QueryDenomTracesRequest) XXX_Size() int
- func (m *QueryDenomTracesRequest) XXX_Unmarshal(b []byte) error
- type QueryDenomTracesResponse
- func (*QueryDenomTracesResponse) Descriptor() ([]byte, []int)
- func (m *QueryDenomTracesResponse) GetDenomTraces() Traces
- func (m *QueryDenomTracesResponse) GetPagination() *query.PageResponse
- func (m *QueryDenomTracesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomTracesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomTracesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomTracesResponse) ProtoMessage()
- func (m *QueryDenomTracesResponse) Reset()
- func (m *QueryDenomTracesResponse) Size() (n int)
- func (m *QueryDenomTracesResponse) String() string
- func (m *QueryDenomTracesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDenomTracesResponse) XXX_DiscardUnknown()
- func (m *QueryDenomTracesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomTracesResponse) XXX_Merge(src proto.Message)
- func (m *QueryDenomTracesResponse) XXX_Size() int
- func (m *QueryDenomTracesResponse) XXX_Unmarshal(b []byte) error
- type QueryEscrowAddressRequest
- func (*QueryEscrowAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryEscrowAddressRequest) GetChannelId() string
- func (m *QueryEscrowAddressRequest) GetPortId() string
- func (m *QueryEscrowAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEscrowAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEscrowAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEscrowAddressRequest) ProtoMessage()
- func (m *QueryEscrowAddressRequest) Reset()
- func (m *QueryEscrowAddressRequest) Size() (n int)
- func (m *QueryEscrowAddressRequest) String() string
- func (m *QueryEscrowAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEscrowAddressRequest) XXX_DiscardUnknown()
- func (m *QueryEscrowAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEscrowAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryEscrowAddressRequest) XXX_Size() int
- func (m *QueryEscrowAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryEscrowAddressResponse
- func (*QueryEscrowAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryEscrowAddressResponse) GetEscrowAddress() string
- func (m *QueryEscrowAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEscrowAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEscrowAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEscrowAddressResponse) ProtoMessage()
- func (m *QueryEscrowAddressResponse) Reset()
- func (m *QueryEscrowAddressResponse) Size() (n int)
- func (m *QueryEscrowAddressResponse) String() string
- func (m *QueryEscrowAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEscrowAddressResponse) XXX_DiscardUnknown()
- func (m *QueryEscrowAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEscrowAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryEscrowAddressResponse) XXX_Size() int
- func (m *QueryEscrowAddressResponse) XXX_Unmarshal(b []byte) error
- 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) GetParams() *Params
- 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 QueryTotalEscrowForDenomRequest
- func (*QueryTotalEscrowForDenomRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalEscrowForDenomRequest) GetDenom() string
- func (m *QueryTotalEscrowForDenomRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalEscrowForDenomRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalEscrowForDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalEscrowForDenomRequest) ProtoMessage()
- func (m *QueryTotalEscrowForDenomRequest) Reset()
- func (m *QueryTotalEscrowForDenomRequest) Size() (n int)
- func (m *QueryTotalEscrowForDenomRequest) String() string
- func (m *QueryTotalEscrowForDenomRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalEscrowForDenomRequest) XXX_DiscardUnknown()
- func (m *QueryTotalEscrowForDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalEscrowForDenomRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalEscrowForDenomRequest) XXX_Size() int
- func (m *QueryTotalEscrowForDenomRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalEscrowForDenomResponse
- func (*QueryTotalEscrowForDenomResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalEscrowForDenomResponse) GetAmount() types.Coin
- func (m *QueryTotalEscrowForDenomResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalEscrowForDenomResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalEscrowForDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalEscrowForDenomResponse) ProtoMessage()
- func (m *QueryTotalEscrowForDenomResponse) Reset()
- func (m *QueryTotalEscrowForDenomResponse) Size() (n int)
- func (m *QueryTotalEscrowForDenomResponse) String() string
- func (m *QueryTotalEscrowForDenomResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalEscrowForDenomResponse) XXX_DiscardUnknown()
- func (m *QueryTotalEscrowForDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalEscrowForDenomResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalEscrowForDenomResponse) XXX_Size() int
- func (m *QueryTotalEscrowForDenomResponse) XXX_Unmarshal(b []byte) error
- type Traces
- type TransferAuthorization
- func (a TransferAuthorization) Accept(ctx context.Context, msg proto.Message) (authz.AcceptResponse, error)
- func (*TransferAuthorization) Descriptor() ([]byte, []int)
- func (m *TransferAuthorization) GetAllocations() []Allocation
- func (m *TransferAuthorization) Marshal() (dAtA []byte, err error)
- func (m *TransferAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *TransferAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (TransferAuthorization) MsgTypeURL() string
- func (*TransferAuthorization) ProtoMessage()
- func (m *TransferAuthorization) Reset()
- func (m *TransferAuthorization) Size() (n int)
- func (m *TransferAuthorization) String() string
- func (m *TransferAuthorization) Unmarshal(dAtA []byte) error
- func (a TransferAuthorization) ValidateBasic() error
- func (m *TransferAuthorization) XXX_DiscardUnknown()
- func (m *TransferAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransferAuthorization) XXX_Merge(src proto.Message)
- func (m *TransferAuthorization) XXX_Size() int
- func (m *TransferAuthorization) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) DenomHash(ctx context.Context, req *QueryDenomHashRequest) (*QueryDenomHashResponse, error)
- func (*UnimplementedQueryServer) DenomTrace(ctx context.Context, req *QueryDenomTraceRequest) (*QueryDenomTraceResponse, error)
- func (*UnimplementedQueryServer) DenomTraces(ctx context.Context, req *QueryDenomTracesRequest) (*QueryDenomTracesResponse, error)
- func (*UnimplementedQueryServer) EscrowAddress(ctx context.Context, req *QueryEscrowAddressRequest) (*QueryEscrowAddressResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TotalEscrowForDenom(ctx context.Context, req *QueryTotalEscrowForDenomRequest) (*QueryTotalEscrowForDenomResponse, error)
Constants ¶
const ( EventTypeTimeout = "timeout" EventTypePacket = "fungible_token_packet" EventTypeTransfer = "ibc_transfer" EventTypeChannelClose = "channel_closed" EventTypeDenomTrace = "denomination_trace" AttributeKeyReceiver = "receiver" AttributeKeyDenom = "denom" AttributeKeyAmount = "amount" AttributeKeyRefundReceiver = "refund_receiver" AttributeKeyRefundDenom = "refund_denom" AttributeKeyRefundAmount = "refund_amount" AttributeKeyAckSuccess = "success" AttributeKeyAck = "acknowledgement" AttributeKeyAckError = "error" AttributeKeyTraceHash = "trace_hash" AttributeKeyMemo = "memo" )
IBC transfer events
const ( // ModuleName defines the IBC transfer name ModuleName = "transfer" // Version defines the current version the IBC tranfer // module supports Version = "ics20-1" // PortID is the default port id that transfer module binds to PortID = "transfer" // StoreKey is the store key string for IBC transfer StoreKey = ModuleName // RouterKey is the message route for IBC transfer RouterKey = ModuleName // QuerierRoute is the querier route for IBC transfer QuerierRoute = ModuleName // DenomPrefix is the prefix used for internal SDK coin representation. DenomPrefix = "ibc" // AllowAllPacketDataKeys holds the string key that allows all packet data keys in authz transfer messages AllowAllPacketDataKeys = "*" KeyTotalEscrowPrefix = "totalEscrowForDenom" ParamsKey = "params" )
const ( MaximumReceiverLength = 2048 // maximum length of the receiver address in bytes (value chosen arbitrarily) MaximumMemoLength = 32768 // maximum length of the memo in bytes (value chosen arbitrarily) )
const ( // DefaultSendEnabled enabled DefaultSendEnabled = true // DefaultReceiveEnabled enabled DefaultReceiveEnabled = true )
Variables ¶
var ( ErrInvalidLengthAuthz = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuthz = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidPacketTimeout = errorsmod.Register(ModuleName, 2, "invalid packet timeout") ErrInvalidDenomForTransfer = errorsmod.Register(ModuleName, 3, "invalid denomination for cross-chain transfer") ErrInvalidVersion = errorsmod.Register(ModuleName, 4, "invalid ICS20 version") ErrInvalidAmount = errorsmod.Register(ModuleName, 5, "invalid token amount") ErrTraceNotFound = errorsmod.Register(ModuleName, 6, "denomination trace not found") ErrSendDisabled = errorsmod.Register(ModuleName, 7, "fungible token transfers from this chain are disabled") ErrReceiveDisabled = errorsmod.Register(ModuleName, 8, "fungible token transfers to this chain are disabled") ErrMaxTransferChannels = errorsmod.Register(ModuleName, 9, "max transfer channels") ErrInvalidAuthorization = errorsmod.Register(ModuleName, 10, "invalid transfer authorization") ErrInvalidMemo = errorsmod.Register(ModuleName, 11, "invalid memo") )
IBC transfer sentinel 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 ( // PortKey defines the key to store the port ID in store PortKey = []byte{0x01} // DenomTraceKey defines the key to store the denomination trace info in store DenomTraceKey = []byte{0x02} )
var ( // DefaultRelativePacketTimeoutHeight is the default packet timeout height (in blocks) relative // to the current block height of the counterparty chain provided by the client state. The // timeout is disabled when set to 0. DefaultRelativePacketTimeoutHeight = "0-1000" // DefaultRelativePacketTimeoutTimestamp is the default packet timeout timestamp (in nanoseconds) // relative to the current block timestamp of the counterparty chain provided by the client // state. The timeout is disabled when set to 0. The default is currently set to a 10 minute // timeout. DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) )
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 ( // KeySendEnabled is store's key for SendEnabled Params KeySendEnabled = []byte("SendEnabled") // KeyReceiveEnabled is store's key for ReceiveEnabled Params KeyReceiveEnabled = []byte("ReceiveEnabled") )
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 ( ErrInvalidLengthTransfer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTransfer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTransfer = 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 ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
ModuleCdc references the global x/ibc-transfer module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.
The actual codec used for serialization should be provided to x/ibc transfer and defined at the application level.
Functions ¶
func GetDenomPrefix ¶
GetDenomPrefix returns the receiving denomination prefix
func GetEscrowAddress ¶
func GetEscrowAddress(portID, channelID string) sdk.AccAddress
GetEscrowAddress returns the escrow address for the specified channel. The escrow address follows the format as outlined in ADR 028: https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-028-public-key-addresses.md
func GetPrefixedDenom ¶
GetPrefixedDenom returns the denomination with the portID and channelID prefixed
func GetTransferCoin ¶
GetTransferCoin creates a transfer coin with the port ID and channel ID prefixed to the base denom.
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable type declaration for parameters
func ParseHexHash ¶
ParseHexHash parses a hex hash in string format to bytes and validates its correctness.
func ReceiverChainIsSource ¶
ReceiverChainIsSource returns true if the denomination originally came from the receiving chain and false otherwise.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the ibc transfer module interfaces to protobuf Any.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
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)
func SenderChainIsSource ¶
SenderChainIsSource returns false if the denomination originally came from the receiving chain and true otherwise.
func TotalEscrowForDenomKey ¶
TotalEscrowForDenomKey returns the store key of under which the total amout of source chain tokens in escrow is stored.
func UnboundedSpendLimit ¶
UnboundedSpendLimit returns the sentinel value that can be used as the amount for a denomination's spend limit for which spend limit updating should be disabled. Please note that using this sentinel value means that a grantee will be granted the privilege to do ICS20 token transfers for the total amount of the denomination available at the granter's account.
func ValidateIBCDenom ¶
ValidateIBCDenom validates that the given denomination is either:
- A valid base denomination (eg: 'uatom' or 'gamm/pool/1' as in https://github.com/cosmos/ibc-go/issues/894)
- A valid fungible token representation (i.e 'ibc/{hash}') per ADR 001 https://github.com/cosmos/ibc-go/blob/main/docs/architecture/adr-001-coin-source-tracing.md
func ValidatePrefixedDenom ¶
ValidatePrefixedDenom checks that the denomination for an IBC fungible token packet denom is correctly prefixed. The function will return no error if the given string follows one of the two formats:
- Prefixed denomination: '{portIDN}/{channelIDN}/.../{portID0}/{channelID0}/baseDenom'
- Unprefixed denomination: 'baseDenom'
'baseDenom' may or may not contain '/'s
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx context.Context, name string) sdk.ModuleAccountI }
AccountKeeper defines the contract required for account APIs.
type Allocation ¶
type Allocation struct { // the port on which the packet will be sent SourcePort string `protobuf:"bytes,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` // the channel by which the packet will be sent SourceChannel string `protobuf:"bytes,2,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"` // spend limitation on the channel SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `` /* 135-byte string literal not displayed */ // allow list of receivers, an empty allow list permits any receiver address AllowList []string `protobuf:"bytes,4,rep,name=allow_list,json=allowList,proto3" json:"allow_list,omitempty"` // allow list of packet data keys, an empty list prohibits all packet data keys; // a list only with "*" permits any packet data key AllowedPacketData []string `protobuf:"bytes,5,rep,name=allowed_packet_data,json=allowedPacketData,proto3" json:"allowed_packet_data,omitempty"` }
Allocation defines the spend limit for a particular port and channel
func (*Allocation) Descriptor ¶
func (*Allocation) Descriptor() ([]byte, []int)
func (*Allocation) GetAllowList ¶
func (m *Allocation) GetAllowList() []string
func (*Allocation) GetAllowedPacketData ¶ added in v8.1.0
func (m *Allocation) GetAllowedPacketData() []string
func (*Allocation) GetSourceChannel ¶
func (m *Allocation) GetSourceChannel() string
func (*Allocation) GetSourcePort ¶
func (m *Allocation) GetSourcePort() string
func (*Allocation) GetSpendLimit ¶
func (m *Allocation) GetSpendLimit() github_com_cosmos_cosmos_sdk_types.Coins
func (*Allocation) Marshal ¶
func (m *Allocation) Marshal() (dAtA []byte, err error)
func (*Allocation) MarshalToSizedBuffer ¶
func (m *Allocation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Allocation) ProtoMessage ¶
func (*Allocation) ProtoMessage()
func (*Allocation) Reset ¶
func (m *Allocation) Reset()
func (*Allocation) Size ¶
func (m *Allocation) Size() (n int)
func (*Allocation) String ¶
func (m *Allocation) String() string
func (*Allocation) Unmarshal ¶
func (m *Allocation) Unmarshal(dAtA []byte) error
func (*Allocation) XXX_DiscardUnknown ¶
func (m *Allocation) XXX_DiscardUnknown()
func (*Allocation) XXX_Marshal ¶
func (m *Allocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Allocation) XXX_Merge ¶
func (m *Allocation) XXX_Merge(src proto.Message)
func (*Allocation) XXX_Size ¶
func (m *Allocation) XXX_Size() int
func (*Allocation) XXX_Unmarshal ¶
func (m *Allocation) XXX_Unmarshal(b []byte) error
type BankKeeper ¶
type BankKeeper interface { SendCoins(ctx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error BlockedAddr(addr sdk.AccAddress) bool IsSendEnabledCoin(ctx context.Context, coin sdk.Coin) bool HasDenomMetaData(ctx context.Context, denom string) bool SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata) GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper defines the expected bank keeper
type ChannelKeeper ¶
type ChannelKeeper interface { GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) GetAllChannelsWithPortPrefix(ctx sdk.Context, portPrefix string) []channeltypes.IdentifiedChannel }
ChannelKeeper defines the expected IBC channel keeper
type ClientKeeper ¶
type ClientKeeper interface {
GetClientConsensusState(ctx sdk.Context, clientID string) (connection ibcexported.ConsensusState, found bool)
}
ClientKeeper defines the expected IBC client keeper
type ConnectionKeeper ¶
type ConnectionKeeper interface {
GetConnection(ctx sdk.Context, connectionID string) (connection connectiontypes.ConnectionEnd, found bool)
}
ConnectionKeeper defines the expected IBC connection keeper
type DenomTrace ¶
type DenomTrace struct { // path defines the chain of port/channel identifiers used for tracing the // source of the fungible token. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // base denomination of the relayed fungible token. BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` }
DenomTrace contains the base denomination for ICS20 fungible tokens and the source tracing information path.
func ParseDenomTrace ¶
func ParseDenomTrace(rawDenom string) DenomTrace
ParseDenomTrace parses a string with the ibc prefix (denom trace) and the base denomination into a DenomTrace type.
Examples:
- "portidone/channel-0/uatom" => DenomTrace{Path: "portidone/channel-0", BaseDenom: "uatom"} - "portidone/channel-0/portidtwo/channel-1/uatom" => DenomTrace{Path: "portidone/channel-0/portidtwo/channel-1", BaseDenom: "uatom"} - "portidone/channel-0/gamm/pool/1" => DenomTrace{Path: "portidone/channel-0", BaseDenom: "gamm/pool/1"} - "gamm/pool/1" => DenomTrace{Path: "", BaseDenom: "gamm/pool/1"} - "uatom" => DenomTrace{Path: "", BaseDenom: "uatom"}
func (*DenomTrace) Descriptor ¶
func (*DenomTrace) Descriptor() ([]byte, []int)
func (*DenomTrace) GetBaseDenom ¶
func (m *DenomTrace) GetBaseDenom() string
func (DenomTrace) GetFullDenomPath ¶
func (dt DenomTrace) GetFullDenomPath() string
GetFullDenomPath returns the full denomination according to the ICS20 specification: tracePath + "/" + baseDenom If there exists no trace then the base denomination is returned.
func (*DenomTrace) GetPath ¶
func (m *DenomTrace) GetPath() string
func (DenomTrace) GetPrefix ¶
func (dt DenomTrace) GetPrefix() string
GetPrefix returns the receiving denomination prefix composed by the trace info and a separator.
func (DenomTrace) Hash ¶
func (dt DenomTrace) Hash() tmbytes.HexBytes
Hash returns the hex bytes of the SHA256 hash of the DenomTrace fields using the following formula:
hash = sha256(tracePath + "/" + baseDenom)
func (DenomTrace) IBCDenom ¶
func (dt DenomTrace) IBCDenom() string
IBCDenom a coin denomination for an ICS20 fungible token in the format 'ibc/{hash(tracePath + baseDenom)}'. If the trace is empty, it will return the base denomination.
func (DenomTrace) IsNativeDenom ¶
func (dt DenomTrace) IsNativeDenom() bool
IsNativeDenom returns true if the denomination is native, thus containing no trace history.
func (*DenomTrace) Marshal ¶
func (m *DenomTrace) Marshal() (dAtA []byte, err error)
func (*DenomTrace) MarshalToSizedBuffer ¶
func (m *DenomTrace) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomTrace) ProtoMessage ¶
func (*DenomTrace) ProtoMessage()
func (*DenomTrace) Reset ¶
func (m *DenomTrace) Reset()
func (*DenomTrace) Size ¶
func (m *DenomTrace) Size() (n int)
func (*DenomTrace) String ¶
func (m *DenomTrace) String() string
func (*DenomTrace) Unmarshal ¶
func (m *DenomTrace) Unmarshal(dAtA []byte) error
func (DenomTrace) Validate ¶
func (dt DenomTrace) Validate() error
Validate performs a basic validation of the DenomTrace fields.
func (*DenomTrace) XXX_DiscardUnknown ¶
func (m *DenomTrace) XXX_DiscardUnknown()
func (*DenomTrace) XXX_Marshal ¶
func (m *DenomTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomTrace) XXX_Merge ¶
func (m *DenomTrace) XXX_Merge(src proto.Message)
func (*DenomTrace) XXX_Size ¶
func (m *DenomTrace) XXX_Size() int
func (*DenomTrace) XXX_Unmarshal ¶
func (m *DenomTrace) XXX_Unmarshal(b []byte) error
type FungibleTokenPacketData ¶
type FungibleTokenPacketData struct { // the token denomination to be transferred Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // the token amount to be transferred Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // the sender address Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` // the recipient address on the destination chain Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` // optional memo Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` }
FungibleTokenPacketData defines a struct for the packet payload See FungibleTokenPacketData spec: https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
func NewFungibleTokenPacketData ¶
func NewFungibleTokenPacketData( denom string, amount string, sender, receiver string, memo string, ) FungibleTokenPacketData
NewFungibleTokenPacketData contructs a new FungibleTokenPacketData instance
func (*FungibleTokenPacketData) Descriptor ¶
func (*FungibleTokenPacketData) Descriptor() ([]byte, []int)
func (*FungibleTokenPacketData) GetAmount ¶
func (m *FungibleTokenPacketData) GetAmount() string
func (FungibleTokenPacketData) GetBytes ¶
func (ftpd FungibleTokenPacketData) GetBytes() []byte
GetBytes is a helper for serialising
func (FungibleTokenPacketData) GetCustomPacketData ¶
func (ftpd FungibleTokenPacketData) GetCustomPacketData(key string) interface{}
GetCustomPacketData interprets the memo field of the packet data as a JSON object and returns the value associated with the given key. If the key is missing or the memo is not properly formatted, then nil is returned.
func (*FungibleTokenPacketData) GetDenom ¶
func (m *FungibleTokenPacketData) GetDenom() string
func (*FungibleTokenPacketData) GetMemo ¶
func (m *FungibleTokenPacketData) GetMemo() string
func (FungibleTokenPacketData) GetPacketSender ¶
func (ftpd FungibleTokenPacketData) GetPacketSender(sourcePortID string) string
GetPacketSender returns the sender address embedded in the packet data.
NOTE:
- The sender address is set by the module which requested the packet to be sent, and this module may not have validated the sender address by a signature check.
- The sender address must only be used by modules on the sending chain.
- sourcePortID is not used in this implementation.
func (*FungibleTokenPacketData) GetReceiver ¶
func (m *FungibleTokenPacketData) GetReceiver() string
func (*FungibleTokenPacketData) GetSender ¶
func (m *FungibleTokenPacketData) GetSender() string
func (*FungibleTokenPacketData) Marshal ¶
func (m *FungibleTokenPacketData) Marshal() (dAtA []byte, err error)
func (*FungibleTokenPacketData) MarshalTo ¶
func (m *FungibleTokenPacketData) MarshalTo(dAtA []byte) (int, error)
func (*FungibleTokenPacketData) MarshalToSizedBuffer ¶
func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FungibleTokenPacketData) ProtoMessage ¶
func (*FungibleTokenPacketData) ProtoMessage()
func (*FungibleTokenPacketData) Reset ¶
func (m *FungibleTokenPacketData) Reset()
func (*FungibleTokenPacketData) Size ¶
func (m *FungibleTokenPacketData) Size() (n int)
func (*FungibleTokenPacketData) String ¶
func (m *FungibleTokenPacketData) String() string
func (*FungibleTokenPacketData) Unmarshal ¶
func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error
func (FungibleTokenPacketData) ValidateBasic ¶
func (ftpd FungibleTokenPacketData) ValidateBasic() error
ValidateBasic is used for validating the token transfer. NOTE: The addresses formats are not validated as the sender and recipient can have different formats defined by their corresponding chains that are not known to IBC.
func (*FungibleTokenPacketData) XXX_DiscardUnknown ¶
func (m *FungibleTokenPacketData) XXX_DiscardUnknown()
func (*FungibleTokenPacketData) XXX_Marshal ¶
func (m *FungibleTokenPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FungibleTokenPacketData) XXX_Merge ¶
func (m *FungibleTokenPacketData) XXX_Merge(src proto.Message)
func (*FungibleTokenPacketData) XXX_Size ¶
func (m *FungibleTokenPacketData) XXX_Size() int
func (*FungibleTokenPacketData) XXX_Unmarshal ¶
func (m *FungibleTokenPacketData) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` DenomTraces Traces `protobuf:"bytes,2,rep,name=denom_traces,json=denomTraces,proto3,castrepeated=Traces" json:"denom_traces"` Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` // total_escrowed contains the total amount of tokens escrowed // by the transfer module TotalEscrowed github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */ }
GenesisState defines the ibc-transfer genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a GenesisState with "transfer" as the default PortID.
func NewGenesisState ¶
func NewGenesisState(portID string, denomTraces Traces, params Params, totalEscrowed sdk.Coins) *GenesisState
NewGenesisState creates a new ibc-transfer GenesisState instance.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDenomTraces ¶
func (m *GenesisState) GetDenomTraces() Traces
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPortId ¶
func (m *GenesisState) GetPortId() string
func (*GenesisState) GetTotalEscrowed ¶
func (m *GenesisState) GetTotalEscrowed() github_com_cosmos_cosmos_sdk_types.Coins
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 MsgClient ¶
type MsgClient interface { // Transfer defines a rpc handler method for MsgTransfer. Transfer(ctx context.Context, in *MsgTransfer, opts ...grpc.CallOption) (*MsgTransferResponse, error) // UpdateParams defines a rpc handler for MsgUpdateParams. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgServer ¶
type MsgServer interface { // Transfer defines a rpc handler method for MsgTransfer. Transfer(context.Context, *MsgTransfer) (*MsgTransferResponse, error) // UpdateParams defines a rpc handler for MsgUpdateParams. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgTransfer ¶
type MsgTransfer struct { // the port on which the packet will be sent SourcePort string `protobuf:"bytes,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"` // the channel by which the packet will be sent SourceChannel string `protobuf:"bytes,2,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"` // the tokens to be transferred Token types.Coin `protobuf:"bytes,3,opt,name=token,proto3" json:"token"` // the sender address Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` // the recipient address on the destination chain Receiver string `protobuf:"bytes,5,opt,name=receiver,proto3" json:"receiver,omitempty"` // Timeout height relative to the current block height. // The timeout is disabled when set to 0. TimeoutHeight types1.Height `protobuf:"bytes,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height"` // Timeout timestamp in absolute nanoseconds since unix epoch. // The timeout is disabled when set to 0. TimeoutTimestamp uint64 `protobuf:"varint,7,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty"` // optional memo Memo string `protobuf:"bytes,8,opt,name=memo,proto3" json:"memo,omitempty"` }
MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between ICS20 enabled chains. See ICS Spec here: https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
func NewMsgTransfer ¶
func NewMsgTransfer( sourcePort, sourceChannel string, token sdk.Coin, sender, receiver string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, memo string, ) *MsgTransfer
NewMsgTransfer creates a new MsgTransfer instance
func (*MsgTransfer) Descriptor ¶
func (*MsgTransfer) Descriptor() ([]byte, []int)
func (MsgTransfer) GetSigners ¶
func (msg MsgTransfer) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgTransfer) Marshal ¶
func (m *MsgTransfer) Marshal() (dAtA []byte, err error)
func (*MsgTransfer) MarshalToSizedBuffer ¶
func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransfer) ProtoMessage ¶
func (*MsgTransfer) ProtoMessage()
func (*MsgTransfer) Reset ¶
func (m *MsgTransfer) Reset()
func (*MsgTransfer) Size ¶
func (m *MsgTransfer) Size() (n int)
func (*MsgTransfer) String ¶
func (m *MsgTransfer) String() string
func (*MsgTransfer) Unmarshal ¶
func (m *MsgTransfer) Unmarshal(dAtA []byte) error
func (MsgTransfer) ValidateBasic ¶
func (msg MsgTransfer) ValidateBasic() error
ValidateBasic performs a basic check of the MsgTransfer fields. NOTE: timeout height or timestamp values can be 0 to disable the timeout. NOTE: The recipient addresses format is not validated as the format defined by the chain is not known to IBC.
func (*MsgTransfer) XXX_DiscardUnknown ¶
func (m *MsgTransfer) XXX_DiscardUnknown()
func (*MsgTransfer) XXX_Marshal ¶
func (m *MsgTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransfer) XXX_Merge ¶
func (m *MsgTransfer) XXX_Merge(src proto.Message)
func (*MsgTransfer) XXX_Size ¶
func (m *MsgTransfer) XXX_Size() int
func (*MsgTransfer) XXX_Unmarshal ¶
func (m *MsgTransfer) XXX_Unmarshal(b []byte) error
type MsgTransferResponse ¶
type MsgTransferResponse struct { // sequence number of the transfer packet sent Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` }
MsgTransferResponse defines the Msg/Transfer response type.
func (*MsgTransferResponse) Descriptor ¶
func (*MsgTransferResponse) Descriptor() ([]byte, []int)
func (*MsgTransferResponse) Marshal ¶
func (m *MsgTransferResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferResponse) MarshalTo ¶
func (m *MsgTransferResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferResponse) ProtoMessage ¶
func (*MsgTransferResponse) ProtoMessage()
func (*MsgTransferResponse) Reset ¶
func (m *MsgTransferResponse) Reset()
func (*MsgTransferResponse) Size ¶
func (m *MsgTransferResponse) Size() (n int)
func (*MsgTransferResponse) String ¶
func (m *MsgTransferResponse) String() string
func (*MsgTransferResponse) Unmarshal ¶
func (m *MsgTransferResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferResponse) XXX_DiscardUnknown()
func (*MsgTransferResponse) XXX_Marshal ¶
func (m *MsgTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferResponse) XXX_Merge ¶
func (m *MsgTransferResponse) XXX_Merge(src proto.Message)
func (*MsgTransferResponse) XXX_Size ¶
func (m *MsgTransferResponse) XXX_Size() int
func (*MsgTransferResponse) XXX_Unmarshal ¶
func (m *MsgTransferResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct { // signer address Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` // params defines the transfer parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func NewMsgUpdateParams ¶
func NewMsgUpdateParams(signer string, params Params) *MsgUpdateParams
NewMsgUpdateParams creates a new MsgUpdateParams instance
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (MsgUpdateParams) GetSigners ¶
func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (MsgUpdateParams) ValidateBasic ¶
func (msg MsgUpdateParams) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface {
GetParamSet(ctx sdk.Context, ps paramtypes.ParamSet)
}
ParamSubspace defines the expected Subspace interface for module parameters.
type Params ¶
type Params struct { // send_enabled enables or disables all cross-chain token transfers from this // chain. SendEnabled bool `protobuf:"varint,1,opt,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty"` // receive_enabled enables or disables all cross-chain token transfers to this // chain. ReceiveEnabled bool `protobuf:"varint,2,opt,name=receive_enabled,json=receiveEnabled,proto3" json:"receive_enabled,omitempty"` }
Params defines the set of IBC transfer parameters. NOTE: To prevent a single token from being transferred, set the TransfersEnabled parameter to true and then set the bank module's SendEnabled parameter for the denomination to false.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default parameter configuration for the ibc-transfer module
func (*Params) Descriptor ¶
func (*Params) GetReceiveEnabled ¶
func (*Params) GetSendEnabled ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements 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 QueryClient ¶
type QueryClient interface { // DenomTraces queries all denomination traces. DenomTraces(ctx context.Context, in *QueryDenomTracesRequest, opts ...grpc.CallOption) (*QueryDenomTracesResponse, error) // DenomTrace queries a denomination trace information. DenomTrace(ctx context.Context, in *QueryDenomTraceRequest, opts ...grpc.CallOption) (*QueryDenomTraceResponse, error) // Params queries all parameters of the ibc-transfer module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // DenomHash queries a denomination hash information. DenomHash(ctx context.Context, in *QueryDenomHashRequest, opts ...grpc.CallOption) (*QueryDenomHashResponse, error) // EscrowAddress returns the escrow address for a particular port and channel id. EscrowAddress(ctx context.Context, in *QueryEscrowAddressRequest, opts ...grpc.CallOption) (*QueryEscrowAddressResponse, error) // TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom. TotalEscrowForDenom(ctx context.Context, in *QueryTotalEscrowForDenomRequest, opts ...grpc.CallOption) (*QueryTotalEscrowForDenomResponse, 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 QueryDenomHashRequest ¶
type QueryDenomHashRequest struct { // The denomination trace ([port_id]/[channel_id])+/[denom] Trace string `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"` }
QueryDenomHashRequest is the request type for the Query/DenomHash RPC method
func (*QueryDenomHashRequest) Descriptor ¶
func (*QueryDenomHashRequest) Descriptor() ([]byte, []int)
func (*QueryDenomHashRequest) GetTrace ¶
func (m *QueryDenomHashRequest) GetTrace() string
func (*QueryDenomHashRequest) Marshal ¶
func (m *QueryDenomHashRequest) Marshal() (dAtA []byte, err error)
func (*QueryDenomHashRequest) MarshalTo ¶
func (m *QueryDenomHashRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomHashRequest) MarshalToSizedBuffer ¶
func (m *QueryDenomHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomHashRequest) ProtoMessage ¶
func (*QueryDenomHashRequest) ProtoMessage()
func (*QueryDenomHashRequest) Reset ¶
func (m *QueryDenomHashRequest) Reset()
func (*QueryDenomHashRequest) Size ¶
func (m *QueryDenomHashRequest) Size() (n int)
func (*QueryDenomHashRequest) String ¶
func (m *QueryDenomHashRequest) String() string
func (*QueryDenomHashRequest) Unmarshal ¶
func (m *QueryDenomHashRequest) Unmarshal(dAtA []byte) error
func (*QueryDenomHashRequest) XXX_DiscardUnknown ¶
func (m *QueryDenomHashRequest) XXX_DiscardUnknown()
func (*QueryDenomHashRequest) XXX_Marshal ¶
func (m *QueryDenomHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomHashRequest) XXX_Merge ¶
func (m *QueryDenomHashRequest) XXX_Merge(src proto.Message)
func (*QueryDenomHashRequest) XXX_Size ¶
func (m *QueryDenomHashRequest) XXX_Size() int
func (*QueryDenomHashRequest) XXX_Unmarshal ¶
func (m *QueryDenomHashRequest) XXX_Unmarshal(b []byte) error
type QueryDenomHashResponse ¶
type QueryDenomHashResponse struct { // hash (in hex format) of the denomination trace information. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` }
QueryDenomHashResponse is the response type for the Query/DenomHash RPC method.
func (*QueryDenomHashResponse) Descriptor ¶
func (*QueryDenomHashResponse) Descriptor() ([]byte, []int)
func (*QueryDenomHashResponse) GetHash ¶
func (m *QueryDenomHashResponse) GetHash() string
func (*QueryDenomHashResponse) Marshal ¶
func (m *QueryDenomHashResponse) Marshal() (dAtA []byte, err error)
func (*QueryDenomHashResponse) MarshalTo ¶
func (m *QueryDenomHashResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomHashResponse) MarshalToSizedBuffer ¶
func (m *QueryDenomHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomHashResponse) ProtoMessage ¶
func (*QueryDenomHashResponse) ProtoMessage()
func (*QueryDenomHashResponse) Reset ¶
func (m *QueryDenomHashResponse) Reset()
func (*QueryDenomHashResponse) Size ¶
func (m *QueryDenomHashResponse) Size() (n int)
func (*QueryDenomHashResponse) String ¶
func (m *QueryDenomHashResponse) String() string
func (*QueryDenomHashResponse) Unmarshal ¶
func (m *QueryDenomHashResponse) Unmarshal(dAtA []byte) error
func (*QueryDenomHashResponse) XXX_DiscardUnknown ¶
func (m *QueryDenomHashResponse) XXX_DiscardUnknown()
func (*QueryDenomHashResponse) XXX_Marshal ¶
func (m *QueryDenomHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomHashResponse) XXX_Merge ¶
func (m *QueryDenomHashResponse) XXX_Merge(src proto.Message)
func (*QueryDenomHashResponse) XXX_Size ¶
func (m *QueryDenomHashResponse) XXX_Size() int
func (*QueryDenomHashResponse) XXX_Unmarshal ¶
func (m *QueryDenomHashResponse) XXX_Unmarshal(b []byte) error
type QueryDenomTraceRequest ¶
type QueryDenomTraceRequest struct { // hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` }
QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC method
func (*QueryDenomTraceRequest) Descriptor ¶
func (*QueryDenomTraceRequest) Descriptor() ([]byte, []int)
func (*QueryDenomTraceRequest) GetHash ¶
func (m *QueryDenomTraceRequest) GetHash() string
func (*QueryDenomTraceRequest) Marshal ¶
func (m *QueryDenomTraceRequest) Marshal() (dAtA []byte, err error)
func (*QueryDenomTraceRequest) MarshalTo ¶
func (m *QueryDenomTraceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomTraceRequest) MarshalToSizedBuffer ¶
func (m *QueryDenomTraceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomTraceRequest) ProtoMessage ¶
func (*QueryDenomTraceRequest) ProtoMessage()
func (*QueryDenomTraceRequest) Reset ¶
func (m *QueryDenomTraceRequest) Reset()
func (*QueryDenomTraceRequest) Size ¶
func (m *QueryDenomTraceRequest) Size() (n int)
func (*QueryDenomTraceRequest) String ¶
func (m *QueryDenomTraceRequest) String() string
func (*QueryDenomTraceRequest) Unmarshal ¶
func (m *QueryDenomTraceRequest) Unmarshal(dAtA []byte) error
func (*QueryDenomTraceRequest) XXX_DiscardUnknown ¶
func (m *QueryDenomTraceRequest) XXX_DiscardUnknown()
func (*QueryDenomTraceRequest) XXX_Marshal ¶
func (m *QueryDenomTraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomTraceRequest) XXX_Merge ¶
func (m *QueryDenomTraceRequest) XXX_Merge(src proto.Message)
func (*QueryDenomTraceRequest) XXX_Size ¶
func (m *QueryDenomTraceRequest) XXX_Size() int
func (*QueryDenomTraceRequest) XXX_Unmarshal ¶
func (m *QueryDenomTraceRequest) XXX_Unmarshal(b []byte) error
type QueryDenomTraceResponse ¶
type QueryDenomTraceResponse struct { // denom_trace returns the requested denomination trace information. DenomTrace *DenomTrace `protobuf:"bytes,1,opt,name=denom_trace,json=denomTrace,proto3" json:"denom_trace,omitempty"` }
QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC method.
func (*QueryDenomTraceResponse) Descriptor ¶
func (*QueryDenomTraceResponse) Descriptor() ([]byte, []int)
func (*QueryDenomTraceResponse) GetDenomTrace ¶
func (m *QueryDenomTraceResponse) GetDenomTrace() *DenomTrace
func (*QueryDenomTraceResponse) Marshal ¶
func (m *QueryDenomTraceResponse) Marshal() (dAtA []byte, err error)
func (*QueryDenomTraceResponse) MarshalTo ¶
func (m *QueryDenomTraceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomTraceResponse) MarshalToSizedBuffer ¶
func (m *QueryDenomTraceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomTraceResponse) ProtoMessage ¶
func (*QueryDenomTraceResponse) ProtoMessage()
func (*QueryDenomTraceResponse) Reset ¶
func (m *QueryDenomTraceResponse) Reset()
func (*QueryDenomTraceResponse) Size ¶
func (m *QueryDenomTraceResponse) Size() (n int)
func (*QueryDenomTraceResponse) String ¶
func (m *QueryDenomTraceResponse) String() string
func (*QueryDenomTraceResponse) Unmarshal ¶
func (m *QueryDenomTraceResponse) Unmarshal(dAtA []byte) error
func (*QueryDenomTraceResponse) XXX_DiscardUnknown ¶
func (m *QueryDenomTraceResponse) XXX_DiscardUnknown()
func (*QueryDenomTraceResponse) XXX_Marshal ¶
func (m *QueryDenomTraceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomTraceResponse) XXX_Merge ¶
func (m *QueryDenomTraceResponse) XXX_Merge(src proto.Message)
func (*QueryDenomTraceResponse) XXX_Size ¶
func (m *QueryDenomTraceResponse) XXX_Size() int
func (*QueryDenomTraceResponse) XXX_Unmarshal ¶
func (m *QueryDenomTraceResponse) XXX_Unmarshal(b []byte) error
type QueryDenomTracesRequest ¶
type QueryDenomTracesRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryConnectionsRequest is the request type for the Query/DenomTraces RPC method
func (*QueryDenomTracesRequest) Descriptor ¶
func (*QueryDenomTracesRequest) Descriptor() ([]byte, []int)
func (*QueryDenomTracesRequest) GetPagination ¶
func (m *QueryDenomTracesRequest) GetPagination() *query.PageRequest
func (*QueryDenomTracesRequest) Marshal ¶
func (m *QueryDenomTracesRequest) Marshal() (dAtA []byte, err error)
func (*QueryDenomTracesRequest) MarshalTo ¶
func (m *QueryDenomTracesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomTracesRequest) MarshalToSizedBuffer ¶
func (m *QueryDenomTracesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomTracesRequest) ProtoMessage ¶
func (*QueryDenomTracesRequest) ProtoMessage()
func (*QueryDenomTracesRequest) Reset ¶
func (m *QueryDenomTracesRequest) Reset()
func (*QueryDenomTracesRequest) Size ¶
func (m *QueryDenomTracesRequest) Size() (n int)
func (*QueryDenomTracesRequest) String ¶
func (m *QueryDenomTracesRequest) String() string
func (*QueryDenomTracesRequest) Unmarshal ¶
func (m *QueryDenomTracesRequest) Unmarshal(dAtA []byte) error
func (*QueryDenomTracesRequest) XXX_DiscardUnknown ¶
func (m *QueryDenomTracesRequest) XXX_DiscardUnknown()
func (*QueryDenomTracesRequest) XXX_Marshal ¶
func (m *QueryDenomTracesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomTracesRequest) XXX_Merge ¶
func (m *QueryDenomTracesRequest) XXX_Merge(src proto.Message)
func (*QueryDenomTracesRequest) XXX_Size ¶
func (m *QueryDenomTracesRequest) XXX_Size() int
func (*QueryDenomTracesRequest) XXX_Unmarshal ¶
func (m *QueryDenomTracesRequest) XXX_Unmarshal(b []byte) error
type QueryDenomTracesResponse ¶
type QueryDenomTracesResponse struct { // denom_traces returns all denominations trace information. DenomTraces Traces `protobuf:"bytes,1,rep,name=denom_traces,json=denomTraces,proto3,castrepeated=Traces" json:"denom_traces"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryConnectionsResponse is the response type for the Query/DenomTraces RPC method.
func (*QueryDenomTracesResponse) Descriptor ¶
func (*QueryDenomTracesResponse) Descriptor() ([]byte, []int)
func (*QueryDenomTracesResponse) GetDenomTraces ¶
func (m *QueryDenomTracesResponse) GetDenomTraces() Traces
func (*QueryDenomTracesResponse) GetPagination ¶
func (m *QueryDenomTracesResponse) GetPagination() *query.PageResponse
func (*QueryDenomTracesResponse) Marshal ¶
func (m *QueryDenomTracesResponse) Marshal() (dAtA []byte, err error)
func (*QueryDenomTracesResponse) MarshalTo ¶
func (m *QueryDenomTracesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomTracesResponse) MarshalToSizedBuffer ¶
func (m *QueryDenomTracesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomTracesResponse) ProtoMessage ¶
func (*QueryDenomTracesResponse) ProtoMessage()
func (*QueryDenomTracesResponse) Reset ¶
func (m *QueryDenomTracesResponse) Reset()
func (*QueryDenomTracesResponse) Size ¶
func (m *QueryDenomTracesResponse) Size() (n int)
func (*QueryDenomTracesResponse) String ¶
func (m *QueryDenomTracesResponse) String() string
func (*QueryDenomTracesResponse) Unmarshal ¶
func (m *QueryDenomTracesResponse) Unmarshal(dAtA []byte) error
func (*QueryDenomTracesResponse) XXX_DiscardUnknown ¶
func (m *QueryDenomTracesResponse) XXX_DiscardUnknown()
func (*QueryDenomTracesResponse) XXX_Marshal ¶
func (m *QueryDenomTracesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomTracesResponse) XXX_Merge ¶
func (m *QueryDenomTracesResponse) XXX_Merge(src proto.Message)
func (*QueryDenomTracesResponse) XXX_Size ¶
func (m *QueryDenomTracesResponse) XXX_Size() int
func (*QueryDenomTracesResponse) XXX_Unmarshal ¶
func (m *QueryDenomTracesResponse) XXX_Unmarshal(b []byte) error
type QueryEscrowAddressRequest ¶
type QueryEscrowAddressRequest struct { // unique port identifier PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` // unique channel identifier ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` }
QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method.
func (*QueryEscrowAddressRequest) Descriptor ¶
func (*QueryEscrowAddressRequest) Descriptor() ([]byte, []int)
func (*QueryEscrowAddressRequest) GetChannelId ¶
func (m *QueryEscrowAddressRequest) GetChannelId() string
func (*QueryEscrowAddressRequest) GetPortId ¶
func (m *QueryEscrowAddressRequest) GetPortId() string
func (*QueryEscrowAddressRequest) Marshal ¶
func (m *QueryEscrowAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryEscrowAddressRequest) MarshalTo ¶
func (m *QueryEscrowAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryEscrowAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryEscrowAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEscrowAddressRequest) ProtoMessage ¶
func (*QueryEscrowAddressRequest) ProtoMessage()
func (*QueryEscrowAddressRequest) Reset ¶
func (m *QueryEscrowAddressRequest) Reset()
func (*QueryEscrowAddressRequest) Size ¶
func (m *QueryEscrowAddressRequest) Size() (n int)
func (*QueryEscrowAddressRequest) String ¶
func (m *QueryEscrowAddressRequest) String() string
func (*QueryEscrowAddressRequest) Unmarshal ¶
func (m *QueryEscrowAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryEscrowAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryEscrowAddressRequest) XXX_DiscardUnknown()
func (*QueryEscrowAddressRequest) XXX_Marshal ¶
func (m *QueryEscrowAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEscrowAddressRequest) XXX_Merge ¶
func (m *QueryEscrowAddressRequest) XXX_Merge(src proto.Message)
func (*QueryEscrowAddressRequest) XXX_Size ¶
func (m *QueryEscrowAddressRequest) XXX_Size() int
func (*QueryEscrowAddressRequest) XXX_Unmarshal ¶
func (m *QueryEscrowAddressRequest) XXX_Unmarshal(b []byte) error
type QueryEscrowAddressResponse ¶
type QueryEscrowAddressResponse struct { // the escrow account address EscrowAddress string `protobuf:"bytes,1,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"` }
QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method.
func (*QueryEscrowAddressResponse) Descriptor ¶
func (*QueryEscrowAddressResponse) Descriptor() ([]byte, []int)
func (*QueryEscrowAddressResponse) GetEscrowAddress ¶
func (m *QueryEscrowAddressResponse) GetEscrowAddress() string
func (*QueryEscrowAddressResponse) Marshal ¶
func (m *QueryEscrowAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryEscrowAddressResponse) MarshalTo ¶
func (m *QueryEscrowAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryEscrowAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryEscrowAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEscrowAddressResponse) ProtoMessage ¶
func (*QueryEscrowAddressResponse) ProtoMessage()
func (*QueryEscrowAddressResponse) Reset ¶
func (m *QueryEscrowAddressResponse) Reset()
func (*QueryEscrowAddressResponse) Size ¶
func (m *QueryEscrowAddressResponse) Size() (n int)
func (*QueryEscrowAddressResponse) String ¶
func (m *QueryEscrowAddressResponse) String() string
func (*QueryEscrowAddressResponse) Unmarshal ¶
func (m *QueryEscrowAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryEscrowAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryEscrowAddressResponse) XXX_DiscardUnknown()
func (*QueryEscrowAddressResponse) XXX_Marshal ¶
func (m *QueryEscrowAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEscrowAddressResponse) XXX_Merge ¶
func (m *QueryEscrowAddressResponse) XXX_Merge(src proto.Message)
func (*QueryEscrowAddressResponse) XXX_Size ¶
func (m *QueryEscrowAddressResponse) XXX_Size() int
func (*QueryEscrowAddressResponse) XXX_Unmarshal ¶
func (m *QueryEscrowAddressResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
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 defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
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 { // DenomTraces queries all denomination traces. DenomTraces(context.Context, *QueryDenomTracesRequest) (*QueryDenomTracesResponse, error) // DenomTrace queries a denomination trace information. DenomTrace(context.Context, *QueryDenomTraceRequest) (*QueryDenomTraceResponse, error) // Params queries all parameters of the ibc-transfer module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // DenomHash queries a denomination hash information. DenomHash(context.Context, *QueryDenomHashRequest) (*QueryDenomHashResponse, error) // EscrowAddress returns the escrow address for a particular port and channel id. EscrowAddress(context.Context, *QueryEscrowAddressRequest) (*QueryEscrowAddressResponse, error) // TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom. TotalEscrowForDenom(context.Context, *QueryTotalEscrowForDenomRequest) (*QueryTotalEscrowForDenomResponse, error) }
QueryServer is the server API for Query service.
type QueryTotalEscrowForDenomRequest ¶
type QueryTotalEscrowForDenomRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method.
func (*QueryTotalEscrowForDenomRequest) Descriptor ¶
func (*QueryTotalEscrowForDenomRequest) Descriptor() ([]byte, []int)
func (*QueryTotalEscrowForDenomRequest) GetDenom ¶
func (m *QueryTotalEscrowForDenomRequest) GetDenom() string
func (*QueryTotalEscrowForDenomRequest) Marshal ¶
func (m *QueryTotalEscrowForDenomRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalEscrowForDenomRequest) MarshalTo ¶
func (m *QueryTotalEscrowForDenomRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalEscrowForDenomRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalEscrowForDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalEscrowForDenomRequest) ProtoMessage ¶
func (*QueryTotalEscrowForDenomRequest) ProtoMessage()
func (*QueryTotalEscrowForDenomRequest) Reset ¶
func (m *QueryTotalEscrowForDenomRequest) Reset()
func (*QueryTotalEscrowForDenomRequest) Size ¶
func (m *QueryTotalEscrowForDenomRequest) Size() (n int)
func (*QueryTotalEscrowForDenomRequest) String ¶
func (m *QueryTotalEscrowForDenomRequest) String() string
func (*QueryTotalEscrowForDenomRequest) Unmarshal ¶
func (m *QueryTotalEscrowForDenomRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalEscrowForDenomRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalEscrowForDenomRequest) XXX_DiscardUnknown()
func (*QueryTotalEscrowForDenomRequest) XXX_Marshal ¶
func (m *QueryTotalEscrowForDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalEscrowForDenomRequest) XXX_Merge ¶
func (m *QueryTotalEscrowForDenomRequest) XXX_Merge(src proto.Message)
func (*QueryTotalEscrowForDenomRequest) XXX_Size ¶
func (m *QueryTotalEscrowForDenomRequest) XXX_Size() int
func (*QueryTotalEscrowForDenomRequest) XXX_Unmarshal ¶
func (m *QueryTotalEscrowForDenomRequest) XXX_Unmarshal(b []byte) error
type QueryTotalEscrowForDenomResponse ¶
type QueryTotalEscrowForDenomResponse struct {
Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"`
}
QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method.
func (*QueryTotalEscrowForDenomResponse) Descriptor ¶
func (*QueryTotalEscrowForDenomResponse) Descriptor() ([]byte, []int)
func (*QueryTotalEscrowForDenomResponse) GetAmount ¶
func (m *QueryTotalEscrowForDenomResponse) GetAmount() types.Coin
func (*QueryTotalEscrowForDenomResponse) Marshal ¶
func (m *QueryTotalEscrowForDenomResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalEscrowForDenomResponse) MarshalTo ¶
func (m *QueryTotalEscrowForDenomResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalEscrowForDenomResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalEscrowForDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalEscrowForDenomResponse) ProtoMessage ¶
func (*QueryTotalEscrowForDenomResponse) ProtoMessage()
func (*QueryTotalEscrowForDenomResponse) Reset ¶
func (m *QueryTotalEscrowForDenomResponse) Reset()
func (*QueryTotalEscrowForDenomResponse) Size ¶
func (m *QueryTotalEscrowForDenomResponse) Size() (n int)
func (*QueryTotalEscrowForDenomResponse) String ¶
func (m *QueryTotalEscrowForDenomResponse) String() string
func (*QueryTotalEscrowForDenomResponse) Unmarshal ¶
func (m *QueryTotalEscrowForDenomResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalEscrowForDenomResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalEscrowForDenomResponse) XXX_DiscardUnknown()
func (*QueryTotalEscrowForDenomResponse) XXX_Marshal ¶
func (m *QueryTotalEscrowForDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalEscrowForDenomResponse) XXX_Merge ¶
func (m *QueryTotalEscrowForDenomResponse) XXX_Merge(src proto.Message)
func (*QueryTotalEscrowForDenomResponse) XXX_Size ¶
func (m *QueryTotalEscrowForDenomResponse) XXX_Size() int
func (*QueryTotalEscrowForDenomResponse) XXX_Unmarshal ¶
func (m *QueryTotalEscrowForDenomResponse) XXX_Unmarshal(b []byte) error
type Traces ¶
type Traces []DenomTrace
Traces defines a wrapper type for a slice of DenomTrace.
type TransferAuthorization ¶
type TransferAuthorization struct { // port and channel amounts Allocations []Allocation `protobuf:"bytes,1,rep,name=allocations,proto3" json:"allocations"` }
TransferAuthorization allows the grantee to spend up to spend_limit coins from the granter's account for ibc transfer on a specific channel
func NewTransferAuthorization ¶
func NewTransferAuthorization(allocations ...Allocation) *TransferAuthorization
NewTransferAuthorization creates a new TransferAuthorization object.
func (TransferAuthorization) Accept ¶
func (a TransferAuthorization) Accept(ctx context.Context, msg proto.Message) (authz.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*TransferAuthorization) Descriptor ¶
func (*TransferAuthorization) Descriptor() ([]byte, []int)
func (*TransferAuthorization) GetAllocations ¶
func (m *TransferAuthorization) GetAllocations() []Allocation
func (*TransferAuthorization) Marshal ¶
func (m *TransferAuthorization) Marshal() (dAtA []byte, err error)
func (*TransferAuthorization) MarshalTo ¶
func (m *TransferAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*TransferAuthorization) MarshalToSizedBuffer ¶
func (m *TransferAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (TransferAuthorization) MsgTypeURL ¶
func (TransferAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (*TransferAuthorization) ProtoMessage ¶
func (*TransferAuthorization) ProtoMessage()
func (*TransferAuthorization) Reset ¶
func (m *TransferAuthorization) Reset()
func (*TransferAuthorization) Size ¶
func (m *TransferAuthorization) Size() (n int)
func (*TransferAuthorization) String ¶
func (m *TransferAuthorization) String() string
func (*TransferAuthorization) Unmarshal ¶
func (m *TransferAuthorization) Unmarshal(dAtA []byte) error
func (TransferAuthorization) ValidateBasic ¶
func (a TransferAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*TransferAuthorization) XXX_DiscardUnknown ¶
func (m *TransferAuthorization) XXX_DiscardUnknown()
func (*TransferAuthorization) XXX_Marshal ¶
func (m *TransferAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferAuthorization) XXX_Merge ¶
func (m *TransferAuthorization) XXX_Merge(src proto.Message)
func (*TransferAuthorization) XXX_Size ¶
func (m *TransferAuthorization) XXX_Size() int
func (*TransferAuthorization) XXX_Unmarshal ¶
func (m *TransferAuthorization) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Transfer ¶
func (*UnimplementedMsgServer) Transfer(ctx context.Context, req *MsgTransfer) (*MsgTransferResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) DenomHash ¶
func (*UnimplementedQueryServer) DenomHash(ctx context.Context, req *QueryDenomHashRequest) (*QueryDenomHashResponse, error)
func (*UnimplementedQueryServer) DenomTrace ¶
func (*UnimplementedQueryServer) DenomTrace(ctx context.Context, req *QueryDenomTraceRequest) (*QueryDenomTraceResponse, error)
func (*UnimplementedQueryServer) DenomTraces ¶
func (*UnimplementedQueryServer) DenomTraces(ctx context.Context, req *QueryDenomTracesRequest) (*QueryDenomTracesResponse, error)
func (*UnimplementedQueryServer) EscrowAddress ¶
func (*UnimplementedQueryServer) EscrowAddress(ctx context.Context, req *QueryEscrowAddressRequest) (*QueryEscrowAddressResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TotalEscrowForDenom ¶
func (*UnimplementedQueryServer) TotalEscrowForDenom(ctx context.Context, req *QueryTotalEscrowForDenomRequest) (*QueryTotalEscrowForDenomResponse, error)