Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func Ecrecover(sighash [32]byte, R, S, Vb *big.Int) (ethcmn.Address, error)
- func GetChainKey(chain uint32) []byte
- func GetSwapKey(hash Hash) []byte
- func ParamKeyTable() paramtypes.KeyTable
- 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 Chain
- func (*Chain) Descriptor() ([]byte, []int)
- func (m *Chain) GetActive() bool
- func (m *Chain) GetId() uint32
- func (m *Chain) GetName() string
- func (m *Chain) Marshal() (dAtA []byte, err error)
- func (m *Chain) MarshalTo(dAtA []byte) (int, error)
- func (m *Chain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Chain) ProtoMessage()
- func (m *Chain) Reset()
- func (m *Chain) Size() (n int)
- func (m *Chain) String() string
- func (m *Chain) Unmarshal(dAtA []byte) error
- func (m *Chain) XXX_DiscardUnknown()
- func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Chain) XXX_Merge(src proto.Message)
- func (m *Chain) XXX_Size() int
- func (m *Chain) XXX_Unmarshal(b []byte) error
- type EventActivateChain
- func (*EventActivateChain) Descriptor() ([]byte, []int)
- func (m *EventActivateChain) GetID() uint32
- func (m *EventActivateChain) GetName() string
- func (m *EventActivateChain) GetSender() string
- func (m *EventActivateChain) Marshal() (dAtA []byte, err error)
- func (m *EventActivateChain) MarshalTo(dAtA []byte) (int, error)
- func (m *EventActivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventActivateChain) ProtoMessage()
- func (m *EventActivateChain) Reset()
- func (m *EventActivateChain) Size() (n int)
- func (m *EventActivateChain) String() string
- func (m *EventActivateChain) Unmarshal(dAtA []byte) error
- func (m *EventActivateChain) XXX_DiscardUnknown()
- func (m *EventActivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventActivateChain) XXX_Merge(src proto.Message)
- func (m *EventActivateChain) XXX_Size() int
- func (m *EventActivateChain) XXX_Unmarshal(b []byte) error
- type EventDeactivateChain
- func (*EventDeactivateChain) Descriptor() ([]byte, []int)
- func (m *EventDeactivateChain) GetID() uint32
- func (m *EventDeactivateChain) GetSender() string
- func (m *EventDeactivateChain) Marshal() (dAtA []byte, err error)
- func (m *EventDeactivateChain) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDeactivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDeactivateChain) ProtoMessage()
- func (m *EventDeactivateChain) Reset()
- func (m *EventDeactivateChain) Size() (n int)
- func (m *EventDeactivateChain) String() string
- func (m *EventDeactivateChain) Unmarshal(dAtA []byte) error
- func (m *EventDeactivateChain) XXX_DiscardUnknown()
- func (m *EventDeactivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDeactivateChain) XXX_Merge(src proto.Message)
- func (m *EventDeactivateChain) XXX_Size() int
- func (m *EventDeactivateChain) XXX_Unmarshal(b []byte) error
- type EventInitializeSwap
- func (*EventInitializeSwap) Descriptor() ([]byte, []int)
- func (m *EventInitializeSwap) GetAmount() string
- func (m *EventInitializeSwap) GetDestChain() uint32
- func (m *EventInitializeSwap) GetFromChain() uint32
- func (m *EventInitializeSwap) GetRecipient() string
- func (m *EventInitializeSwap) GetSender() string
- func (m *EventInitializeSwap) GetTokenSymbol() string
- func (m *EventInitializeSwap) GetTransactionNumber() string
- func (m *EventInitializeSwap) Marshal() (dAtA []byte, err error)
- func (m *EventInitializeSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *EventInitializeSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventInitializeSwap) ProtoMessage()
- func (m *EventInitializeSwap) Reset()
- func (m *EventInitializeSwap) Size() (n int)
- func (m *EventInitializeSwap) String() string
- func (m *EventInitializeSwap) Unmarshal(dAtA []byte) error
- func (m *EventInitializeSwap) XXX_DiscardUnknown()
- func (m *EventInitializeSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventInitializeSwap) XXX_Merge(src proto.Message)
- func (m *EventInitializeSwap) XXX_Size() int
- func (m *EventInitializeSwap) XXX_Unmarshal(b []byte) error
- type EventRedeemSwap
- func (*EventRedeemSwap) Descriptor() ([]byte, []int)
- func (m *EventRedeemSwap) GetAmount() string
- func (m *EventRedeemSwap) GetDestChain() uint32
- func (m *EventRedeemSwap) GetFrom() string
- func (m *EventRedeemSwap) GetFromChain() uint32
- func (m *EventRedeemSwap) GetHashRedeem() string
- func (m *EventRedeemSwap) GetR() string
- func (m *EventRedeemSwap) GetRecipient() string
- func (m *EventRedeemSwap) GetS() string
- func (m *EventRedeemSwap) GetSender() string
- func (m *EventRedeemSwap) GetTokenSymbol() string
- func (m *EventRedeemSwap) GetTransactionNumber() string
- func (m *EventRedeemSwap) GetV() string
- func (m *EventRedeemSwap) Marshal() (dAtA []byte, err error)
- func (m *EventRedeemSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRedeemSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRedeemSwap) ProtoMessage()
- func (m *EventRedeemSwap) Reset()
- func (m *EventRedeemSwap) Size() (n int)
- func (m *EventRedeemSwap) String() string
- func (m *EventRedeemSwap) Unmarshal(dAtA []byte) error
- func (m *EventRedeemSwap) XXX_DiscardUnknown()
- func (m *EventRedeemSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRedeemSwap) XXX_Merge(src proto.Message)
- func (m *EventRedeemSwap) XXX_Size() int
- func (m *EventRedeemSwap) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetChains() []Chain
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSwaps() []Swap
- 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 Hash
- type MsgActivateChain
- func (*MsgActivateChain) Descriptor() ([]byte, []int)
- func (m *MsgActivateChain) GetID() uint32
- func (m *MsgActivateChain) GetName() string
- func (m *MsgActivateChain) GetSender() string
- func (msg *MsgActivateChain) GetSignBytes() []byte
- func (msg MsgActivateChain) GetSigners() []sdk.AccAddress
- func (m *MsgActivateChain) Marshal() (dAtA []byte, err error)
- func (m *MsgActivateChain) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgActivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgActivateChain) ProtoMessage()
- func (m *MsgActivateChain) Reset()
- func (msg MsgActivateChain) Route() string
- func (m *MsgActivateChain) Size() (n int)
- func (m *MsgActivateChain) String() string
- func (msg MsgActivateChain) Type() string
- func (m *MsgActivateChain) Unmarshal(dAtA []byte) error
- func (msg MsgActivateChain) ValidateBasic() error
- func (m *MsgActivateChain) XXX_DiscardUnknown()
- func (m *MsgActivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgActivateChain) XXX_Merge(src proto.Message)
- func (m *MsgActivateChain) XXX_Size() int
- func (m *MsgActivateChain) XXX_Unmarshal(b []byte) error
- type MsgActivateChainResponse
- func (*MsgActivateChainResponse) Descriptor() ([]byte, []int)
- func (m *MsgActivateChainResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgActivateChainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgActivateChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgActivateChainResponse) ProtoMessage()
- func (m *MsgActivateChainResponse) Reset()
- func (m *MsgActivateChainResponse) Size() (n int)
- func (m *MsgActivateChainResponse) String() string
- func (m *MsgActivateChainResponse) Unmarshal(dAtA []byte) error
- func (m *MsgActivateChainResponse) XXX_DiscardUnknown()
- func (m *MsgActivateChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgActivateChainResponse) XXX_Merge(src proto.Message)
- func (m *MsgActivateChainResponse) XXX_Size() int
- func (m *MsgActivateChainResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeactivateChain
- func (*MsgDeactivateChain) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateChain) GetID() uint32
- func (m *MsgDeactivateChain) GetSender() string
- func (msg *MsgDeactivateChain) GetSignBytes() []byte
- func (msg MsgDeactivateChain) GetSigners() []sdk.AccAddress
- func (m *MsgDeactivateChain) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateChain) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeactivateChain) ProtoMessage()
- func (m *MsgDeactivateChain) Reset()
- func (msg MsgDeactivateChain) Route() string
- func (m *MsgDeactivateChain) Size() (n int)
- func (m *MsgDeactivateChain) String() string
- func (msg MsgDeactivateChain) Type() string
- func (m *MsgDeactivateChain) Unmarshal(dAtA []byte) error
- func (msg MsgDeactivateChain) ValidateBasic() error
- func (m *MsgDeactivateChain) XXX_DiscardUnknown()
- func (m *MsgDeactivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateChain) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateChain) XXX_Size() int
- func (m *MsgDeactivateChain) XXX_Unmarshal(b []byte) error
- type MsgDeactivateChainResponse
- func (*MsgDeactivateChainResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateChainResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateChainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeactivateChainResponse) ProtoMessage()
- func (m *MsgDeactivateChainResponse) Reset()
- func (m *MsgDeactivateChainResponse) Size() (n int)
- func (m *MsgDeactivateChainResponse) String() string
- func (m *MsgDeactivateChainResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeactivateChainResponse) XXX_DiscardUnknown()
- func (m *MsgDeactivateChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateChainResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateChainResponse) XXX_Size() int
- func (m *MsgDeactivateChainResponse) XXX_Unmarshal(b []byte) error
- type MsgInitializeSwap
- func (*MsgInitializeSwap) Descriptor() ([]byte, []int)
- func (msg *MsgInitializeSwap) GetSignBytes() []byte
- func (msg MsgInitializeSwap) GetSigners() []sdk.AccAddress
- func (m *MsgInitializeSwap) Marshal() (dAtA []byte, err error)
- func (m *MsgInitializeSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInitializeSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInitializeSwap) ProtoMessage()
- func (m *MsgInitializeSwap) Reset()
- func (msg MsgInitializeSwap) Route() string
- func (m *MsgInitializeSwap) Size() (n int)
- func (m *MsgInitializeSwap) String() string
- func (msg MsgInitializeSwap) Type() string
- func (m *MsgInitializeSwap) Unmarshal(dAtA []byte) error
- func (msg MsgInitializeSwap) ValidateBasic() error
- func (m *MsgInitializeSwap) XXX_DiscardUnknown()
- func (m *MsgInitializeSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInitializeSwap) XXX_Merge(src proto.Message)
- func (m *MsgInitializeSwap) XXX_Size() int
- func (m *MsgInitializeSwap) XXX_Unmarshal(b []byte) error
- type MsgInitializeSwapResponse
- func (*MsgInitializeSwapResponse) Descriptor() ([]byte, []int)
- func (m *MsgInitializeSwapResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInitializeSwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInitializeSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInitializeSwapResponse) ProtoMessage()
- func (m *MsgInitializeSwapResponse) Reset()
- func (m *MsgInitializeSwapResponse) Size() (n int)
- func (m *MsgInitializeSwapResponse) String() string
- func (m *MsgInitializeSwapResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInitializeSwapResponse) XXX_DiscardUnknown()
- func (m *MsgInitializeSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInitializeSwapResponse) XXX_Merge(src proto.Message)
- func (m *MsgInitializeSwapResponse) XXX_Size() int
- func (m *MsgInitializeSwapResponse) XXX_Unmarshal(b []byte) error
- type MsgRedeemSwap
- func (*MsgRedeemSwap) Descriptor() ([]byte, []int)
- func (msg *MsgRedeemSwap) GetSignBytes() []byte
- func (msg MsgRedeemSwap) GetSigners() []sdk.AccAddress
- func (m *MsgRedeemSwap) Marshal() (dAtA []byte, err error)
- func (m *MsgRedeemSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedeemSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedeemSwap) ProtoMessage()
- func (m *MsgRedeemSwap) Reset()
- func (msg MsgRedeemSwap) Route() string
- func (m *MsgRedeemSwap) Size() (n int)
- func (m *MsgRedeemSwap) String() string
- func (msg MsgRedeemSwap) Type() string
- func (m *MsgRedeemSwap) Unmarshal(dAtA []byte) error
- func (msg MsgRedeemSwap) ValidateBasic() error
- func (m *MsgRedeemSwap) XXX_DiscardUnknown()
- func (m *MsgRedeemSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedeemSwap) XXX_Merge(src proto.Message)
- func (m *MsgRedeemSwap) XXX_Size() int
- func (m *MsgRedeemSwap) XXX_Unmarshal(b []byte) error
- type MsgRedeemSwapResponse
- func (*MsgRedeemSwapResponse) Descriptor() ([]byte, []int)
- func (m *MsgRedeemSwapResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRedeemSwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedeemSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedeemSwapResponse) ProtoMessage()
- func (m *MsgRedeemSwapResponse) Reset()
- func (m *MsgRedeemSwapResponse) Size() (n int)
- func (m *MsgRedeemSwapResponse) String() string
- func (m *MsgRedeemSwapResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRedeemSwapResponse) XXX_DiscardUnknown()
- func (m *MsgRedeemSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedeemSwapResponse) XXX_Merge(src proto.Message)
- func (m *MsgRedeemSwapResponse) XXX_Size() int
- func (m *MsgRedeemSwapResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) 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 (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 QueryActiveSwapsRequest
- func (*QueryActiveSwapsRequest) Descriptor() ([]byte, []int)
- func (m *QueryActiveSwapsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActiveSwapsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActiveSwapsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActiveSwapsRequest) ProtoMessage()
- func (m *QueryActiveSwapsRequest) Reset()
- func (m *QueryActiveSwapsRequest) Size() (n int)
- func (m *QueryActiveSwapsRequest) String() string
- func (m *QueryActiveSwapsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActiveSwapsRequest) XXX_DiscardUnknown()
- func (m *QueryActiveSwapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActiveSwapsRequest) XXX_Merge(src proto.Message)
- func (m *QueryActiveSwapsRequest) XXX_Size() int
- func (m *QueryActiveSwapsRequest) XXX_Unmarshal(b []byte) error
- type QueryActiveSwapsResponse
- func (*QueryActiveSwapsResponse) Descriptor() ([]byte, []int)
- func (m *QueryActiveSwapsResponse) GetSwaps() []Swap
- func (m *QueryActiveSwapsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActiveSwapsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActiveSwapsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActiveSwapsResponse) ProtoMessage()
- func (m *QueryActiveSwapsResponse) Reset()
- func (m *QueryActiveSwapsResponse) Size() (n int)
- func (m *QueryActiveSwapsResponse) String() string
- func (m *QueryActiveSwapsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActiveSwapsResponse) XXX_DiscardUnknown()
- func (m *QueryActiveSwapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActiveSwapsResponse) XXX_Merge(src proto.Message)
- func (m *QueryActiveSwapsResponse) XXX_Size() int
- func (m *QueryActiveSwapsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryPoolRequest
- func (*QueryPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolRequest) ProtoMessage()
- func (m *QueryPoolRequest) Reset()
- func (m *QueryPoolRequest) Size() (n int)
- func (m *QueryPoolRequest) String() string
- func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolRequest) XXX_DiscardUnknown()
- func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolRequest) XXX_Size() int
- func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolResponse
- func (*QueryPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolResponse) ProtoMessage()
- func (m *QueryPoolResponse) Reset()
- func (m *QueryPoolResponse) Size() (n int)
- func (m *QueryPoolResponse) String() string
- func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolResponse) XXX_DiscardUnknown()
- func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolResponse) XXX_Size() int
- func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySwapRequest
- func (*QuerySwapRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapRequest) GetHashedSecret() string
- func (m *QuerySwapRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapRequest) ProtoMessage()
- func (m *QuerySwapRequest) Reset()
- func (m *QuerySwapRequest) Size() (n int)
- func (m *QuerySwapRequest) String() string
- func (m *QuerySwapRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwapRequest) XXX_DiscardUnknown()
- func (m *QuerySwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwapRequest) XXX_Size() int
- func (m *QuerySwapRequest) XXX_Unmarshal(b []byte) error
- type QuerySwapResponse
- func (*QuerySwapResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwapResponse) GetSwap() Swap
- func (m *QuerySwapResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapResponse) ProtoMessage()
- func (m *QuerySwapResponse) Reset()
- func (m *QuerySwapResponse) Size() (n int)
- func (m *QuerySwapResponse) String() string
- func (m *QuerySwapResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwapResponse) XXX_DiscardUnknown()
- func (m *QuerySwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwapResponse) XXX_Size() int
- func (m *QuerySwapResponse) XXX_Unmarshal(b []byte) error
- type Swap
- func (*Swap) Descriptor() ([]byte, []int)
- func (m *Swap) GetFrom() string
- func (m *Swap) GetRecipient() string
- func (m *Swap) GetRedeemed() bool
- func (m *Swap) GetRefunded() bool
- func (m *Swap) GetTimestamp() uint64
- func (m *Swap) Marshal() (dAtA []byte, err error)
- func (m *Swap) MarshalTo(dAtA []byte) (int, error)
- func (m *Swap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Swap) ProtoMessage()
- func (m *Swap) Reset()
- func (m *Swap) Size() (n int)
- func (m *Swap) String() string
- func (m *Swap) Unmarshal(dAtA []byte) error
- func (m *Swap) XXX_DiscardUnknown()
- func (m *Swap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Swap) XXX_Merge(src proto.Message)
- func (m *Swap) XXX_Size() int
- func (m *Swap) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ActivateChain(ctx context.Context, req *MsgActivateChain) (*MsgActivateChainResponse, error)
- func (*UnimplementedMsgServer) DeactivateChain(ctx context.Context, req *MsgDeactivateChain) (*MsgDeactivateChainResponse, error)
- func (*UnimplementedMsgServer) InitializeSwap(ctx context.Context, req *MsgInitializeSwap) (*MsgInitializeSwapResponse, error)
- func (*UnimplementedMsgServer) RedeemSwap(ctx context.Context, req *MsgRedeemSwap) (*MsgRedeemSwapResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ActiveSwaps(ctx context.Context, req *QueryActiveSwapsRequest) (*QueryActiveSwapsResponse, error)
- func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error)
- func (*UnimplementedQueryServer) Swap(ctx context.Context, req *QuerySwapRequest) (*QuerySwapResponse, error)
Constants ¶
const ( DefaultLockedTimeOut = time.Hour * 24 DefaultLockedTimeIn = time.Hour * 12 )
const ( AttributeValueCategory = "swap" AttributeKeyTimeLocked = "time_locked" AttributeKeyTransferType = "transfer_type" AttributeKeyHashedSecret = "hashed_secret" AttributeKeyRecipient = "recipient" AttributeKeyAmount = "amount" AttributeKeySecret = "secret" AttributeKeyTokenSymbol = "token_symbol" AttributeKeyTransactionNumber = "transaction_number" AttributeKeyFrom = "from" AttributeKeyDestChain = "dest_chain" )
const ( // ModuleName defines the module name ModuleName = "swap" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_" + ModuleName // RouterKey defines module's messages routing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( TypeMsgSwapInitialize = "swap_initialize" TypeMsgSwapRedeem = "swap_redeem" TypeMsgChainActivate = "chain_activate" TypeMsgChainDeactivate = "chain_deactivate" )
const DefaultCheckingAddress = "18fa71ffcf736d5ec0d06f2330a33b4f85a6d69f"
const DefaultSwapServiceAddress = "d01rra8rl70wdk4asxsdu3npgemf7z6d45lx4sppy"
TODO: actualize for new addresses const ChainActivatorAddress = "dx16aeq4ypsx5ar4076v507ch5z8ryd6usx32tnru"
const (
QueryPool = "coins" // 'custom/swap/pool'
)
const SwapPool = "atomic_swap_pool"
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( KeyPrefixSwap = []byte("swap") KeyPrefixChain = []byte("chain") )
KVStore key prefixes
var ( KeyLockedTimeOut = []byte("LockedTimeOut") KeyLockedTimeIn = []byte("LockedTimeIn") KeyServiceAddress = []byte("ServiceAddress") KeyCheckingAddress = []byte("CheckingAddress") )
Parameter store keys.
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSwap = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSwap = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSwap = 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(cdctypes.NewInterfaceRegistry())
ModuleCdc references the global swap 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 modules/swap and defined at the application level.
Functions ¶
func GetChainKey ¶ added in v0.0.8
func GetSwapKey ¶ added in v0.0.8
func ParamKeyTable ¶ added in v0.0.8
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module.
func RegisterInterfaces ¶ added in v0.0.8
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers concrete implementations of specific interfaces.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶ added in v0.0.8
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Chain ¶ added in v0.0.8
type Chain struct { // id defines the chain number ID. Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // name defines the chain name. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // active defines status of the chain. Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` }
Chain defines a chain.
func (*Chain) Descriptor ¶ added in v0.0.8
func (*Chain) MarshalToSizedBuffer ¶ added in v0.0.8
func (*Chain) ProtoMessage ¶ added in v0.0.8
func (*Chain) ProtoMessage()
func (*Chain) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *Chain) XXX_DiscardUnknown()
func (*Chain) XXX_Marshal ¶ added in v0.0.8
func (*Chain) XXX_Unmarshal ¶ added in v0.0.8
type EventActivateChain ¶ added in v0.0.8
type EventActivateChain struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` }
EventActivateChain defines event emitted when chain is activated for swaps.
func (*EventActivateChain) Descriptor ¶ added in v0.0.8
func (*EventActivateChain) Descriptor() ([]byte, []int)
func (*EventActivateChain) GetID ¶ added in v0.0.8
func (m *EventActivateChain) GetID() uint32
func (*EventActivateChain) GetName ¶ added in v0.0.8
func (m *EventActivateChain) GetName() string
func (*EventActivateChain) GetSender ¶ added in v0.0.8
func (m *EventActivateChain) GetSender() string
func (*EventActivateChain) Marshal ¶ added in v0.0.8
func (m *EventActivateChain) Marshal() (dAtA []byte, err error)
func (*EventActivateChain) MarshalTo ¶ added in v0.0.8
func (m *EventActivateChain) MarshalTo(dAtA []byte) (int, error)
func (*EventActivateChain) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventActivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventActivateChain) ProtoMessage ¶ added in v0.0.8
func (*EventActivateChain) ProtoMessage()
func (*EventActivateChain) Reset ¶ added in v0.0.8
func (m *EventActivateChain) Reset()
func (*EventActivateChain) Size ¶ added in v0.0.8
func (m *EventActivateChain) Size() (n int)
func (*EventActivateChain) String ¶ added in v0.0.8
func (m *EventActivateChain) String() string
func (*EventActivateChain) Unmarshal ¶ added in v0.0.8
func (m *EventActivateChain) Unmarshal(dAtA []byte) error
func (*EventActivateChain) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventActivateChain) XXX_DiscardUnknown()
func (*EventActivateChain) XXX_Marshal ¶ added in v0.0.8
func (m *EventActivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventActivateChain) XXX_Merge ¶ added in v0.0.8
func (m *EventActivateChain) XXX_Merge(src proto.Message)
func (*EventActivateChain) XXX_Size ¶ added in v0.0.8
func (m *EventActivateChain) XXX_Size() int
func (*EventActivateChain) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventActivateChain) XXX_Unmarshal(b []byte) error
type EventDeactivateChain ¶ added in v0.0.8
type EventDeactivateChain struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` }
EventDeactivateChain defines event emitted when chain is deactivated for swaps.
func (*EventDeactivateChain) Descriptor ¶ added in v0.0.8
func (*EventDeactivateChain) Descriptor() ([]byte, []int)
func (*EventDeactivateChain) GetID ¶ added in v0.0.8
func (m *EventDeactivateChain) GetID() uint32
func (*EventDeactivateChain) GetSender ¶ added in v0.0.8
func (m *EventDeactivateChain) GetSender() string
func (*EventDeactivateChain) Marshal ¶ added in v0.0.8
func (m *EventDeactivateChain) Marshal() (dAtA []byte, err error)
func (*EventDeactivateChain) MarshalTo ¶ added in v0.0.8
func (m *EventDeactivateChain) MarshalTo(dAtA []byte) (int, error)
func (*EventDeactivateChain) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventDeactivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDeactivateChain) ProtoMessage ¶ added in v0.0.8
func (*EventDeactivateChain) ProtoMessage()
func (*EventDeactivateChain) Reset ¶ added in v0.0.8
func (m *EventDeactivateChain) Reset()
func (*EventDeactivateChain) Size ¶ added in v0.0.8
func (m *EventDeactivateChain) Size() (n int)
func (*EventDeactivateChain) String ¶ added in v0.0.8
func (m *EventDeactivateChain) String() string
func (*EventDeactivateChain) Unmarshal ¶ added in v0.0.8
func (m *EventDeactivateChain) Unmarshal(dAtA []byte) error
func (*EventDeactivateChain) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventDeactivateChain) XXX_DiscardUnknown()
func (*EventDeactivateChain) XXX_Marshal ¶ added in v0.0.8
func (m *EventDeactivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDeactivateChain) XXX_Merge ¶ added in v0.0.8
func (m *EventDeactivateChain) XXX_Merge(src proto.Message)
func (*EventDeactivateChain) XXX_Size ¶ added in v0.0.8
func (m *EventDeactivateChain) XXX_Size() int
func (*EventDeactivateChain) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventDeactivateChain) XXX_Unmarshal(b []byte) error
type EventInitializeSwap ¶ added in v0.0.8
type EventInitializeSwap struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Recipient string `protobuf:"bytes,5,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` TokenSymbol string `protobuf:"bytes,8,opt,name=token_symbol,json=tokenSymbol,proto3" json:"token_symbol,omitempty"` TransactionNumber string `protobuf:"bytes,7,opt,name=transaction_number,json=transactionNumber,proto3" json:"transaction_number,omitempty"` FromChain uint32 `protobuf:"varint,3,opt,name=from_chain,json=fromChain,proto3" json:"from_chain,omitempty"` DestChain uint32 `protobuf:"varint,4,opt,name=dest_chain,json=destChain,proto3" json:"dest_chain,omitempty"` }
EventInitializeSwap defines event emitted when cross-chain swap is initialized.
func (*EventInitializeSwap) Descriptor ¶ added in v0.0.8
func (*EventInitializeSwap) Descriptor() ([]byte, []int)
func (*EventInitializeSwap) GetAmount ¶ added in v0.0.8
func (m *EventInitializeSwap) GetAmount() string
func (*EventInitializeSwap) GetDestChain ¶ added in v0.0.8
func (m *EventInitializeSwap) GetDestChain() uint32
func (*EventInitializeSwap) GetFromChain ¶ added in v0.0.8
func (m *EventInitializeSwap) GetFromChain() uint32
func (*EventInitializeSwap) GetRecipient ¶ added in v0.0.8
func (m *EventInitializeSwap) GetRecipient() string
func (*EventInitializeSwap) GetSender ¶ added in v0.0.8
func (m *EventInitializeSwap) GetSender() string
func (*EventInitializeSwap) GetTokenSymbol ¶ added in v0.0.8
func (m *EventInitializeSwap) GetTokenSymbol() string
func (*EventInitializeSwap) GetTransactionNumber ¶ added in v0.0.8
func (m *EventInitializeSwap) GetTransactionNumber() string
func (*EventInitializeSwap) Marshal ¶ added in v0.0.8
func (m *EventInitializeSwap) Marshal() (dAtA []byte, err error)
func (*EventInitializeSwap) MarshalTo ¶ added in v0.0.8
func (m *EventInitializeSwap) MarshalTo(dAtA []byte) (int, error)
func (*EventInitializeSwap) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventInitializeSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventInitializeSwap) ProtoMessage ¶ added in v0.0.8
func (*EventInitializeSwap) ProtoMessage()
func (*EventInitializeSwap) Reset ¶ added in v0.0.8
func (m *EventInitializeSwap) Reset()
func (*EventInitializeSwap) Size ¶ added in v0.0.8
func (m *EventInitializeSwap) Size() (n int)
func (*EventInitializeSwap) String ¶ added in v0.0.8
func (m *EventInitializeSwap) String() string
func (*EventInitializeSwap) Unmarshal ¶ added in v0.0.8
func (m *EventInitializeSwap) Unmarshal(dAtA []byte) error
func (*EventInitializeSwap) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventInitializeSwap) XXX_DiscardUnknown()
func (*EventInitializeSwap) XXX_Marshal ¶ added in v0.0.8
func (m *EventInitializeSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventInitializeSwap) XXX_Merge ¶ added in v0.0.8
func (m *EventInitializeSwap) XXX_Merge(src proto.Message)
func (*EventInitializeSwap) XXX_Size ¶ added in v0.0.8
func (m *EventInitializeSwap) XXX_Size() int
func (*EventInitializeSwap) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventInitializeSwap) XXX_Unmarshal(b []byte) error
type EventRedeemSwap ¶ added in v0.0.8
type EventRedeemSwap struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` TokenSymbol string `protobuf:"bytes,5,opt,name=token_symbol,json=tokenSymbol,proto3" json:"token_symbol,omitempty"` TransactionNumber string `protobuf:"bytes,6,opt,name=transaction_number,json=transactionNumber,proto3" json:"transaction_number,omitempty"` FromChain uint32 `protobuf:"varint,7,opt,name=from_chain,json=fromChain,proto3" json:"from_chain,omitempty"` DestChain uint32 `protobuf:"varint,8,opt,name=dest_chain,json=destChain,proto3" json:"dest_chain,omitempty"` HashRedeem string `protobuf:"bytes,9,opt,name=hash_redeem,json=hashRedeem,proto3" json:"hash_redeem,omitempty"` V string `protobuf:"bytes,10,opt,name=v,proto3" json:"v,omitempty"` R string `protobuf:"bytes,11,opt,name=r,proto3" json:"r,omitempty"` S string `protobuf:"bytes,12,opt,name=s,proto3" json:"s,omitempty"` }
EventRedeemSwap defines event emitted when cross-chain swap is redeemed.
func (*EventRedeemSwap) Descriptor ¶ added in v0.0.8
func (*EventRedeemSwap) Descriptor() ([]byte, []int)
func (*EventRedeemSwap) GetAmount ¶ added in v0.0.8
func (m *EventRedeemSwap) GetAmount() string
func (*EventRedeemSwap) GetDestChain ¶ added in v0.0.8
func (m *EventRedeemSwap) GetDestChain() uint32
func (*EventRedeemSwap) GetFrom ¶ added in v0.0.8
func (m *EventRedeemSwap) GetFrom() string
func (*EventRedeemSwap) GetFromChain ¶ added in v0.0.8
func (m *EventRedeemSwap) GetFromChain() uint32
func (*EventRedeemSwap) GetHashRedeem ¶ added in v0.0.8
func (m *EventRedeemSwap) GetHashRedeem() string
func (*EventRedeemSwap) GetR ¶ added in v0.0.8
func (m *EventRedeemSwap) GetR() string
func (*EventRedeemSwap) GetRecipient ¶ added in v0.0.8
func (m *EventRedeemSwap) GetRecipient() string
func (*EventRedeemSwap) GetS ¶ added in v0.0.8
func (m *EventRedeemSwap) GetS() string
func (*EventRedeemSwap) GetSender ¶ added in v0.0.8
func (m *EventRedeemSwap) GetSender() string
func (*EventRedeemSwap) GetTokenSymbol ¶ added in v0.0.8
func (m *EventRedeemSwap) GetTokenSymbol() string
func (*EventRedeemSwap) GetTransactionNumber ¶ added in v0.0.8
func (m *EventRedeemSwap) GetTransactionNumber() string
func (*EventRedeemSwap) GetV ¶ added in v0.0.8
func (m *EventRedeemSwap) GetV() string
func (*EventRedeemSwap) Marshal ¶ added in v0.0.8
func (m *EventRedeemSwap) Marshal() (dAtA []byte, err error)
func (*EventRedeemSwap) MarshalTo ¶ added in v0.0.8
func (m *EventRedeemSwap) MarshalTo(dAtA []byte) (int, error)
func (*EventRedeemSwap) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventRedeemSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRedeemSwap) ProtoMessage ¶ added in v0.0.8
func (*EventRedeemSwap) ProtoMessage()
func (*EventRedeemSwap) Reset ¶ added in v0.0.8
func (m *EventRedeemSwap) Reset()
func (*EventRedeemSwap) Size ¶ added in v0.0.8
func (m *EventRedeemSwap) Size() (n int)
func (*EventRedeemSwap) String ¶ added in v0.0.8
func (m *EventRedeemSwap) String() string
func (*EventRedeemSwap) Unmarshal ¶ added in v0.0.8
func (m *EventRedeemSwap) Unmarshal(dAtA []byte) error
func (*EventRedeemSwap) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventRedeemSwap) XXX_DiscardUnknown()
func (*EventRedeemSwap) XXX_Marshal ¶ added in v0.0.8
func (m *EventRedeemSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRedeemSwap) XXX_Merge ¶ added in v0.0.8
func (m *EventRedeemSwap) XXX_Merge(src proto.Message)
func (*EventRedeemSwap) XXX_Size ¶ added in v0.0.8
func (m *EventRedeemSwap) XXX_Size() int
func (*EventRedeemSwap) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventRedeemSwap) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // chains defines the blockchain networks active at genesis. Chains []Chain `protobuf:"bytes,1,rep,name=chains,proto3" json:"chains"` // swaps defines the swaps active at genesis. Swaps []Swap `protobuf:"bytes,2,rep,name=swaps,proto3" json:"swaps"` // params defines all the module's parameters. Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` }
GenesisState defines the module's genesis state.
func DefaultGenesisState ¶ added in v0.0.8
func DefaultGenesisState() *GenesisState
get raw genesis raw message for testing
func NewGenesisState ¶ added in v0.0.8
func NewGenesisState(params Params, swaps []Swap, chains []Chain) GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetChains ¶ added in v0.0.8
func (m *GenesisState) GetChains() []Chain
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSwaps ¶
func (m *GenesisState) GetSwaps() []Swap
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 ¶ added in v0.0.8
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 Hash ¶
type Hash [32]byte
func (Hash) MarshalJSON ¶
func (*Hash) UnmarshalJSON ¶
type MsgActivateChain ¶ added in v0.0.8
type MsgActivateChain struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` }
MsgActivateChain defines a SDK message for activating chain to enable cross-chain swaps.
func NewMsgActivateChain ¶ added in v0.0.8
func NewMsgActivateChain( sender sdk.AccAddress, id uint32, name string, ) *MsgActivateChain
func (*MsgActivateChain) Descriptor ¶ added in v0.0.8
func (*MsgActivateChain) Descriptor() ([]byte, []int)
func (*MsgActivateChain) GetID ¶ added in v0.0.8
func (m *MsgActivateChain) GetID() uint32
func (*MsgActivateChain) GetName ¶ added in v0.0.8
func (m *MsgActivateChain) GetName() string
func (*MsgActivateChain) GetSender ¶ added in v0.0.8
func (m *MsgActivateChain) GetSender() string
func (*MsgActivateChain) GetSignBytes ¶ added in v0.0.8
func (msg *MsgActivateChain) GetSignBytes() []byte
func (MsgActivateChain) GetSigners ¶ added in v0.0.8
func (msg MsgActivateChain) GetSigners() []sdk.AccAddress
func (*MsgActivateChain) Marshal ¶ added in v0.0.8
func (m *MsgActivateChain) Marshal() (dAtA []byte, err error)
func (*MsgActivateChain) MarshalTo ¶ added in v0.0.8
func (m *MsgActivateChain) MarshalTo(dAtA []byte) (int, error)
func (*MsgActivateChain) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgActivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgActivateChain) ProtoMessage ¶ added in v0.0.8
func (*MsgActivateChain) ProtoMessage()
func (*MsgActivateChain) Reset ¶ added in v0.0.8
func (m *MsgActivateChain) Reset()
func (MsgActivateChain) Route ¶ added in v0.0.8
func (msg MsgActivateChain) Route() string
func (*MsgActivateChain) Size ¶ added in v0.0.8
func (m *MsgActivateChain) Size() (n int)
func (*MsgActivateChain) String ¶ added in v0.0.8
func (m *MsgActivateChain) String() string
func (MsgActivateChain) Type ¶ added in v0.0.8
func (msg MsgActivateChain) Type() string
func (*MsgActivateChain) Unmarshal ¶ added in v0.0.8
func (m *MsgActivateChain) Unmarshal(dAtA []byte) error
func (MsgActivateChain) ValidateBasic ¶ added in v0.0.8
func (msg MsgActivateChain) ValidateBasic() error
func (*MsgActivateChain) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgActivateChain) XXX_DiscardUnknown()
func (*MsgActivateChain) XXX_Marshal ¶ added in v0.0.8
func (m *MsgActivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgActivateChain) XXX_Merge ¶ added in v0.0.8
func (m *MsgActivateChain) XXX_Merge(src proto.Message)
func (*MsgActivateChain) XXX_Size ¶ added in v0.0.8
func (m *MsgActivateChain) XXX_Size() int
func (*MsgActivateChain) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgActivateChain) XXX_Unmarshal(b []byte) error
type MsgActivateChainResponse ¶ added in v0.0.8
type MsgActivateChainResponse struct { }
MsgActivateChainResponse defines the Msg/ActivateChain response type.
func (*MsgActivateChainResponse) Descriptor ¶ added in v0.0.8
func (*MsgActivateChainResponse) Descriptor() ([]byte, []int)
func (*MsgActivateChainResponse) Marshal ¶ added in v0.0.8
func (m *MsgActivateChainResponse) Marshal() (dAtA []byte, err error)
func (*MsgActivateChainResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgActivateChainResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgActivateChainResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgActivateChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgActivateChainResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgActivateChainResponse) ProtoMessage()
func (*MsgActivateChainResponse) Reset ¶ added in v0.0.8
func (m *MsgActivateChainResponse) Reset()
func (*MsgActivateChainResponse) Size ¶ added in v0.0.8
func (m *MsgActivateChainResponse) Size() (n int)
func (*MsgActivateChainResponse) String ¶ added in v0.0.8
func (m *MsgActivateChainResponse) String() string
func (*MsgActivateChainResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgActivateChainResponse) Unmarshal(dAtA []byte) error
func (*MsgActivateChainResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgActivateChainResponse) XXX_DiscardUnknown()
func (*MsgActivateChainResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgActivateChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgActivateChainResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgActivateChainResponse) XXX_Merge(src proto.Message)
func (*MsgActivateChainResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgActivateChainResponse) XXX_Size() int
func (*MsgActivateChainResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgActivateChainResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // ActivateChain defines message for activating chain to enable cross-chain swaps. ActivateChain(ctx context.Context, in *MsgActivateChain, opts ...grpc.CallOption) (*MsgActivateChainResponse, error) // DeactivateChain defines message for deactivating chain to disable cross-chain swaps. DeactivateChain(ctx context.Context, in *MsgDeactivateChain, opts ...grpc.CallOption) (*MsgDeactivateChainResponse, error) // InitializeSwap defines message for initializing the cross-chain swap. InitializeSwap(ctx context.Context, in *MsgInitializeSwap, opts ...grpc.CallOption) (*MsgInitializeSwapResponse, error) // RedeemSwap defines message for redeeming the cross-chain swap initialized before in sorce chain. RedeemSwap(ctx context.Context, in *MsgRedeemSwap, opts ...grpc.CallOption) (*MsgRedeemSwapResponse, 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 MsgDeactivateChain ¶ added in v0.0.8
type MsgDeactivateChain struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` }
MsgMintToken defines a SDK message for deactivating chain to disable cross-chain swaps.
func NewMsgDeactivateChain ¶ added in v0.0.8
func NewMsgDeactivateChain( sender sdk.AccAddress, id uint32, ) *MsgDeactivateChain
func (*MsgDeactivateChain) Descriptor ¶ added in v0.0.8
func (*MsgDeactivateChain) Descriptor() ([]byte, []int)
func (*MsgDeactivateChain) GetID ¶ added in v0.0.8
func (m *MsgDeactivateChain) GetID() uint32
func (*MsgDeactivateChain) GetSender ¶ added in v0.0.8
func (m *MsgDeactivateChain) GetSender() string
func (*MsgDeactivateChain) GetSignBytes ¶ added in v0.0.8
func (msg *MsgDeactivateChain) GetSignBytes() []byte
func (MsgDeactivateChain) GetSigners ¶ added in v0.0.8
func (msg MsgDeactivateChain) GetSigners() []sdk.AccAddress
func (*MsgDeactivateChain) Marshal ¶ added in v0.0.8
func (m *MsgDeactivateChain) Marshal() (dAtA []byte, err error)
func (*MsgDeactivateChain) MarshalTo ¶ added in v0.0.8
func (m *MsgDeactivateChain) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeactivateChain) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgDeactivateChain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeactivateChain) ProtoMessage ¶ added in v0.0.8
func (*MsgDeactivateChain) ProtoMessage()
func (*MsgDeactivateChain) Reset ¶ added in v0.0.8
func (m *MsgDeactivateChain) Reset()
func (MsgDeactivateChain) Route ¶ added in v0.0.8
func (msg MsgDeactivateChain) Route() string
func (*MsgDeactivateChain) Size ¶ added in v0.0.8
func (m *MsgDeactivateChain) Size() (n int)
func (*MsgDeactivateChain) String ¶ added in v0.0.8
func (m *MsgDeactivateChain) String() string
func (MsgDeactivateChain) Type ¶ added in v0.0.8
func (msg MsgDeactivateChain) Type() string
func (*MsgDeactivateChain) Unmarshal ¶ added in v0.0.8
func (m *MsgDeactivateChain) Unmarshal(dAtA []byte) error
func (MsgDeactivateChain) ValidateBasic ¶ added in v0.0.8
func (msg MsgDeactivateChain) ValidateBasic() error
func (*MsgDeactivateChain) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgDeactivateChain) XXX_DiscardUnknown()
func (*MsgDeactivateChain) XXX_Marshal ¶ added in v0.0.8
func (m *MsgDeactivateChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeactivateChain) XXX_Merge ¶ added in v0.0.8
func (m *MsgDeactivateChain) XXX_Merge(src proto.Message)
func (*MsgDeactivateChain) XXX_Size ¶ added in v0.0.8
func (m *MsgDeactivateChain) XXX_Size() int
func (*MsgDeactivateChain) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgDeactivateChain) XXX_Unmarshal(b []byte) error
type MsgDeactivateChainResponse ¶ added in v0.0.8
type MsgDeactivateChainResponse struct { }
MsgDeactivateChainResponse defines the Msg/DeactivateChain response type.
func (*MsgDeactivateChainResponse) Descriptor ¶ added in v0.0.8
func (*MsgDeactivateChainResponse) Descriptor() ([]byte, []int)
func (*MsgDeactivateChainResponse) Marshal ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeactivateChainResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeactivateChainResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeactivateChainResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgDeactivateChainResponse) ProtoMessage()
func (*MsgDeactivateChainResponse) Reset ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) Reset()
func (*MsgDeactivateChainResponse) Size ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) Size() (n int)
func (*MsgDeactivateChainResponse) String ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) String() string
func (*MsgDeactivateChainResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) Unmarshal(dAtA []byte) error
func (*MsgDeactivateChainResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) XXX_DiscardUnknown()
func (*MsgDeactivateChainResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeactivateChainResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) XXX_Merge(src proto.Message)
func (*MsgDeactivateChainResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) XXX_Size() int
func (*MsgDeactivateChainResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgDeactivateChainResponse) XXX_Unmarshal(b []byte) error
type MsgInitializeSwap ¶ added in v0.0.8
type MsgInitializeSwap struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` TokenSymbol string `protobuf:"bytes,4,opt,name=token_symbol,json=tokenSymbol,proto3" json:"token_symbol,omitempty"` TransactionNumber string `protobuf:"bytes,5,opt,name=transaction_number,json=transactionNumber,proto3" json:"transaction_number,omitempty"` FromChain uint32 `protobuf:"varint,6,opt,name=from_chain,json=fromChain,proto3" json:"from_chain,omitempty"` DestChain uint32 `protobuf:"varint,7,opt,name=dest_chain,json=destChain,proto3" json:"dest_chain,omitempty"` }
MsgMintToken defines a SDK message for .
func NewMsgInitializeSwap ¶ added in v0.0.8
func NewMsgInitializeSwap( sender sdk.AccAddress, recipient string, amount math.Int, tokenSymbol string, transactionNumber string, fromChain uint32, destChain uint32, ) *MsgInitializeSwap
NewMsgInitializeSwap creates a new instance of MsgInitializeSwap.
func (*MsgInitializeSwap) Descriptor ¶ added in v0.0.8
func (*MsgInitializeSwap) Descriptor() ([]byte, []int)
func (*MsgInitializeSwap) GetSignBytes ¶ added in v0.0.8
func (msg *MsgInitializeSwap) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (MsgInitializeSwap) GetSigners ¶ added in v0.0.8
func (msg MsgInitializeSwap) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgInitializeSwap) Marshal ¶ added in v0.0.8
func (m *MsgInitializeSwap) Marshal() (dAtA []byte, err error)
func (*MsgInitializeSwap) MarshalTo ¶ added in v0.0.8
func (m *MsgInitializeSwap) MarshalTo(dAtA []byte) (int, error)
func (*MsgInitializeSwap) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgInitializeSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInitializeSwap) ProtoMessage ¶ added in v0.0.8
func (*MsgInitializeSwap) ProtoMessage()
func (*MsgInitializeSwap) Reset ¶ added in v0.0.8
func (m *MsgInitializeSwap) Reset()
func (MsgInitializeSwap) Route ¶ added in v0.0.8
func (msg MsgInitializeSwap) Route() string
Route should return the name of the module.
func (*MsgInitializeSwap) Size ¶ added in v0.0.8
func (m *MsgInitializeSwap) Size() (n int)
func (*MsgInitializeSwap) String ¶ added in v0.0.8
func (m *MsgInitializeSwap) String() string
func (MsgInitializeSwap) Type ¶ added in v0.0.8
func (msg MsgInitializeSwap) Type() string
Type should return the action.
func (*MsgInitializeSwap) Unmarshal ¶ added in v0.0.8
func (m *MsgInitializeSwap) Unmarshal(dAtA []byte) error
func (MsgInitializeSwap) ValidateBasic ¶ added in v0.0.8
func (msg MsgInitializeSwap) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgInitializeSwap) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgInitializeSwap) XXX_DiscardUnknown()
func (*MsgInitializeSwap) XXX_Marshal ¶ added in v0.0.8
func (m *MsgInitializeSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInitializeSwap) XXX_Merge ¶ added in v0.0.8
func (m *MsgInitializeSwap) XXX_Merge(src proto.Message)
func (*MsgInitializeSwap) XXX_Size ¶ added in v0.0.8
func (m *MsgInitializeSwap) XXX_Size() int
func (*MsgInitializeSwap) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgInitializeSwap) XXX_Unmarshal(b []byte) error
type MsgInitializeSwapResponse ¶ added in v0.0.8
type MsgInitializeSwapResponse struct { }
MsgInitializeSwapResponse defines the Msg/InitializeSwap response type.
func (*MsgInitializeSwapResponse) Descriptor ¶ added in v0.0.8
func (*MsgInitializeSwapResponse) Descriptor() ([]byte, []int)
func (*MsgInitializeSwapResponse) Marshal ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) Marshal() (dAtA []byte, err error)
func (*MsgInitializeSwapResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgInitializeSwapResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInitializeSwapResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgInitializeSwapResponse) ProtoMessage()
func (*MsgInitializeSwapResponse) Reset ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) Reset()
func (*MsgInitializeSwapResponse) Size ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) Size() (n int)
func (*MsgInitializeSwapResponse) String ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) String() string
func (*MsgInitializeSwapResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) Unmarshal(dAtA []byte) error
func (*MsgInitializeSwapResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) XXX_DiscardUnknown()
func (*MsgInitializeSwapResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInitializeSwapResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) XXX_Merge(src proto.Message)
func (*MsgInitializeSwapResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) XXX_Size() int
func (*MsgInitializeSwapResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgInitializeSwapResponse) XXX_Unmarshal(b []byte) error
type MsgRedeemSwap ¶ added in v0.0.8
type MsgRedeemSwap struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` TokenSymbol string `protobuf:"bytes,5,opt,name=token_symbol,json=tokenSymbol,proto3" json:"token_symbol,omitempty"` TransactionNumber string `protobuf:"bytes,6,opt,name=transaction_number,json=transactionNumber,proto3" json:"transaction_number,omitempty"` FromChain uint32 `protobuf:"varint,7,opt,name=from_chain,json=fromChain,proto3" json:"from_chain,omitempty"` DestChain uint32 `protobuf:"varint,8,opt,name=dest_chain,json=destChain,proto3" json:"dest_chain,omitempty"` V uint32 `protobuf:"varint,9,opt,name=v,proto3" json:"v,omitempty"` R string `protobuf:"bytes,10,opt,name=r,proto3" json:"r,omitempty"` S string `protobuf:"bytes,11,opt,name=s,proto3" json:"s,omitempty"` }
MsgMintToken defines a SDK message for .
func NewMsgRedeemSwap ¶ added in v0.0.8
func (*MsgRedeemSwap) Descriptor ¶ added in v0.0.8
func (*MsgRedeemSwap) Descriptor() ([]byte, []int)
func (*MsgRedeemSwap) GetSignBytes ¶ added in v0.0.8
func (msg *MsgRedeemSwap) GetSignBytes() []byte
func (MsgRedeemSwap) GetSigners ¶ added in v0.0.8
func (msg MsgRedeemSwap) GetSigners() []sdk.AccAddress
func (*MsgRedeemSwap) Marshal ¶ added in v0.0.8
func (m *MsgRedeemSwap) Marshal() (dAtA []byte, err error)
func (*MsgRedeemSwap) MarshalTo ¶ added in v0.0.8
func (m *MsgRedeemSwap) MarshalTo(dAtA []byte) (int, error)
func (*MsgRedeemSwap) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgRedeemSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedeemSwap) ProtoMessage ¶ added in v0.0.8
func (*MsgRedeemSwap) ProtoMessage()
func (*MsgRedeemSwap) Reset ¶ added in v0.0.8
func (m *MsgRedeemSwap) Reset()
func (MsgRedeemSwap) Route ¶ added in v0.0.8
func (msg MsgRedeemSwap) Route() string
func (*MsgRedeemSwap) Size ¶ added in v0.0.8
func (m *MsgRedeemSwap) Size() (n int)
func (*MsgRedeemSwap) String ¶ added in v0.0.8
func (m *MsgRedeemSwap) String() string
func (MsgRedeemSwap) Type ¶ added in v0.0.8
func (msg MsgRedeemSwap) Type() string
func (*MsgRedeemSwap) Unmarshal ¶ added in v0.0.8
func (m *MsgRedeemSwap) Unmarshal(dAtA []byte) error
func (MsgRedeemSwap) ValidateBasic ¶ added in v0.0.8
func (msg MsgRedeemSwap) ValidateBasic() error
func (*MsgRedeemSwap) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgRedeemSwap) XXX_DiscardUnknown()
func (*MsgRedeemSwap) XXX_Marshal ¶ added in v0.0.8
func (m *MsgRedeemSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedeemSwap) XXX_Merge ¶ added in v0.0.8
func (m *MsgRedeemSwap) XXX_Merge(src proto.Message)
func (*MsgRedeemSwap) XXX_Size ¶ added in v0.0.8
func (m *MsgRedeemSwap) XXX_Size() int
func (*MsgRedeemSwap) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgRedeemSwap) XXX_Unmarshal(b []byte) error
type MsgRedeemSwapResponse ¶ added in v0.0.8
type MsgRedeemSwapResponse struct { }
MsgRedeemSwapResponse defines the Msg/RedeemSwap response type.
func (*MsgRedeemSwapResponse) Descriptor ¶ added in v0.0.8
func (*MsgRedeemSwapResponse) Descriptor() ([]byte, []int)
func (*MsgRedeemSwapResponse) Marshal ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) Marshal() (dAtA []byte, err error)
func (*MsgRedeemSwapResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRedeemSwapResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedeemSwapResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgRedeemSwapResponse) ProtoMessage()
func (*MsgRedeemSwapResponse) Reset ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) Reset()
func (*MsgRedeemSwapResponse) Size ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) Size() (n int)
func (*MsgRedeemSwapResponse) String ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) String() string
func (*MsgRedeemSwapResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) Unmarshal(dAtA []byte) error
func (*MsgRedeemSwapResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) XXX_DiscardUnknown()
func (*MsgRedeemSwapResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedeemSwapResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) XXX_Merge(src proto.Message)
func (*MsgRedeemSwapResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) XXX_Size() int
func (*MsgRedeemSwapResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgRedeemSwapResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // ActivateChain defines message for activating chain to enable cross-chain swaps. ActivateChain(context.Context, *MsgActivateChain) (*MsgActivateChainResponse, error) // DeactivateChain defines message for deactivating chain to disable cross-chain swaps. DeactivateChain(context.Context, *MsgDeactivateChain) (*MsgDeactivateChainResponse, error) // InitializeSwap defines message for initializing the cross-chain swap. InitializeSwap(context.Context, *MsgInitializeSwap) (*MsgInitializeSwapResponse, error) // RedeemSwap defines message for redeeming the cross-chain swap initialized before in sorce chain. RedeemSwap(context.Context, *MsgRedeemSwap) (*MsgRedeemSwapResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { // locked_time_out defines somewhat we are only expecting to find out... TODO LockedTimeOut time.Duration `` /* 126-byte string literal not displayed */ // locked_time_in defines somewhat we are only expecting to find out... TODO LockedTimeIn time.Duration `protobuf:"varint,2,opt,name=locked_time_in,json=lockedTimeIn,proto3,casttype=time.Duration" json:"locked_time_in,omitempty"` // service_address defines somewhat we are only expecting to find out... TODO ServiceAddress string `protobuf:"bytes,3,opt,name=service_address,json=serviceAddress,proto3" json:"service_address,omitempty"` // checking_address defines somewhat we are only expecting to find out... TODO CheckingAddress string `protobuf:"bytes,4,opt,name=checking_address,json=checkingAddress,proto3" json:"checking_address,omitempty"` }
Params defines the parameters for the module.
func DefaultParams ¶ added in v0.0.8
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶ added in v0.0.8
func (p *Params) ParamSetPairs() paramtypes.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 QueryActiveSwapsRequest ¶ added in v0.0.8
type QueryActiveSwapsRequest struct { }
QueryActiveSwapsRequest is request type for the Query/ActiveSwaps RPC method.
func (*QueryActiveSwapsRequest) Descriptor ¶ added in v0.0.8
func (*QueryActiveSwapsRequest) Descriptor() ([]byte, []int)
func (*QueryActiveSwapsRequest) Marshal ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) Marshal() (dAtA []byte, err error)
func (*QueryActiveSwapsRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryActiveSwapsRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActiveSwapsRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryActiveSwapsRequest) ProtoMessage()
func (*QueryActiveSwapsRequest) Reset ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) Reset()
func (*QueryActiveSwapsRequest) Size ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) Size() (n int)
func (*QueryActiveSwapsRequest) String ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) String() string
func (*QueryActiveSwapsRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) Unmarshal(dAtA []byte) error
func (*QueryActiveSwapsRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) XXX_DiscardUnknown()
func (*QueryActiveSwapsRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActiveSwapsRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) XXX_Merge(src proto.Message)
func (*QueryActiveSwapsRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) XXX_Size() int
func (*QueryActiveSwapsRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryActiveSwapsRequest) XXX_Unmarshal(b []byte) error
type QueryActiveSwapsResponse ¶ added in v0.0.8
type QueryActiveSwapsResponse struct {
Swaps []Swap `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps"`
}
QueryActiveSwapsResponse is response type for the Query/ActiveSwaps RPC method.
func (*QueryActiveSwapsResponse) Descriptor ¶ added in v0.0.8
func (*QueryActiveSwapsResponse) Descriptor() ([]byte, []int)
func (*QueryActiveSwapsResponse) GetSwaps ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) GetSwaps() []Swap
func (*QueryActiveSwapsResponse) Marshal ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) Marshal() (dAtA []byte, err error)
func (*QueryActiveSwapsResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryActiveSwapsResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActiveSwapsResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryActiveSwapsResponse) ProtoMessage()
func (*QueryActiveSwapsResponse) Reset ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) Reset()
func (*QueryActiveSwapsResponse) Size ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) Size() (n int)
func (*QueryActiveSwapsResponse) String ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) String() string
func (*QueryActiveSwapsResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) Unmarshal(dAtA []byte) error
func (*QueryActiveSwapsResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) XXX_DiscardUnknown()
func (*QueryActiveSwapsResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActiveSwapsResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) XXX_Merge(src proto.Message)
func (*QueryActiveSwapsResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) XXX_Size() int
func (*QueryActiveSwapsResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryActiveSwapsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶ added in v0.0.8
type QueryClient interface { // ActiveSwaps queries all active cross-chain swaps. ActiveSwaps(ctx context.Context, in *QueryActiveSwapsRequest, opts ...grpc.CallOption) (*QueryActiveSwapsResponse, error) // Swap queries existing cross-chain swap by hashed secret. Swap(ctx context.Context, in *QuerySwapRequest, opts ...grpc.CallOption) (*QuerySwapResponse, error) // Pool queries amount of coins stored in the swap pool. Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, 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 ¶ added in v0.0.8
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryPoolRequest ¶ added in v0.0.8
type QueryPoolRequest struct { }
QueryPoolRequest is request type for the Query/Pool RPC method.
func (*QueryPoolRequest) Descriptor ¶ added in v0.0.8
func (*QueryPoolRequest) Descriptor() ([]byte, []int)
func (*QueryPoolRequest) Marshal ¶ added in v0.0.8
func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryPoolRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryPoolRequest) ProtoMessage()
func (*QueryPoolRequest) Reset ¶ added in v0.0.8
func (m *QueryPoolRequest) Reset()
func (*QueryPoolRequest) Size ¶ added in v0.0.8
func (m *QueryPoolRequest) Size() (n int)
func (*QueryPoolRequest) String ¶ added in v0.0.8
func (m *QueryPoolRequest) String() string
func (*QueryPoolRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryPoolRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryPoolRequest) XXX_DiscardUnknown()
func (*QueryPoolRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
func (*QueryPoolRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryPoolRequest) XXX_Size() int
func (*QueryPoolRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
type QueryPoolResponse ¶ added in v0.0.8
type QueryPoolResponse struct {
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}
QueryPoolResponse is response type for the Query/Pool RPC method.
func (*QueryPoolResponse) Descriptor ¶ added in v0.0.8
func (*QueryPoolResponse) Descriptor() ([]byte, []int)
func (*QueryPoolResponse) GetAmount ¶ added in v0.0.8
func (m *QueryPoolResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryPoolResponse) Marshal ¶ added in v0.0.8
func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryPoolResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryPoolResponse) ProtoMessage()
func (*QueryPoolResponse) Reset ¶ added in v0.0.8
func (m *QueryPoolResponse) Reset()
func (*QueryPoolResponse) Size ¶ added in v0.0.8
func (m *QueryPoolResponse) Size() (n int)
func (*QueryPoolResponse) String ¶ added in v0.0.8
func (m *QueryPoolResponse) String() string
func (*QueryPoolResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryPoolResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryPoolResponse) XXX_DiscardUnknown()
func (*QueryPoolResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
func (*QueryPoolResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryPoolResponse) XXX_Size() int
func (*QueryPoolResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.0.8
type QueryServer interface { // ActiveSwaps queries all active cross-chain swaps. ActiveSwaps(context.Context, *QueryActiveSwapsRequest) (*QueryActiveSwapsResponse, error) // Swap queries existing cross-chain swap by hashed secret. Swap(context.Context, *QuerySwapRequest) (*QuerySwapResponse, error) // Pool queries amount of coins stored in the swap pool. Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) }
QueryServer is the server API for Query service.
type QuerySwapRequest ¶ added in v0.0.8
type QuerySwapRequest struct {
HashedSecret string `protobuf:"bytes,1,opt,name=hashed_secret,json=hashedSecret,proto3" json:"hashed_secret,omitempty"`
}
QuerySwapRequest is request type for the Query/Swap RPC method.
func (*QuerySwapRequest) Descriptor ¶ added in v0.0.8
func (*QuerySwapRequest) Descriptor() ([]byte, []int)
func (*QuerySwapRequest) GetHashedSecret ¶ added in v0.0.8
func (m *QuerySwapRequest) GetHashedSecret() string
func (*QuerySwapRequest) Marshal ¶ added in v0.0.8
func (m *QuerySwapRequest) Marshal() (dAtA []byte, err error)
func (*QuerySwapRequest) MarshalTo ¶ added in v0.0.8
func (m *QuerySwapRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QuerySwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapRequest) ProtoMessage ¶ added in v0.0.8
func (*QuerySwapRequest) ProtoMessage()
func (*QuerySwapRequest) Reset ¶ added in v0.0.8
func (m *QuerySwapRequest) Reset()
func (*QuerySwapRequest) Size ¶ added in v0.0.8
func (m *QuerySwapRequest) Size() (n int)
func (*QuerySwapRequest) String ¶ added in v0.0.8
func (m *QuerySwapRequest) String() string
func (*QuerySwapRequest) Unmarshal ¶ added in v0.0.8
func (m *QuerySwapRequest) Unmarshal(dAtA []byte) error
func (*QuerySwapRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QuerySwapRequest) XXX_DiscardUnknown()
func (*QuerySwapRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QuerySwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapRequest) XXX_Merge ¶ added in v0.0.8
func (m *QuerySwapRequest) XXX_Merge(src proto.Message)
func (*QuerySwapRequest) XXX_Size ¶ added in v0.0.8
func (m *QuerySwapRequest) XXX_Size() int
func (*QuerySwapRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QuerySwapRequest) XXX_Unmarshal(b []byte) error
type QuerySwapResponse ¶ added in v0.0.8
type QuerySwapResponse struct {
Swap Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap"`
}
QuerySwapResponse is response type for the Query/Swap RPC method.
func (*QuerySwapResponse) Descriptor ¶ added in v0.0.8
func (*QuerySwapResponse) Descriptor() ([]byte, []int)
func (*QuerySwapResponse) GetSwap ¶ added in v0.0.8
func (m *QuerySwapResponse) GetSwap() Swap
func (*QuerySwapResponse) Marshal ¶ added in v0.0.8
func (m *QuerySwapResponse) Marshal() (dAtA []byte, err error)
func (*QuerySwapResponse) MarshalTo ¶ added in v0.0.8
func (m *QuerySwapResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QuerySwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapResponse) ProtoMessage ¶ added in v0.0.8
func (*QuerySwapResponse) ProtoMessage()
func (*QuerySwapResponse) Reset ¶ added in v0.0.8
func (m *QuerySwapResponse) Reset()
func (*QuerySwapResponse) Size ¶ added in v0.0.8
func (m *QuerySwapResponse) Size() (n int)
func (*QuerySwapResponse) String ¶ added in v0.0.8
func (m *QuerySwapResponse) String() string
func (*QuerySwapResponse) Unmarshal ¶ added in v0.0.8
func (m *QuerySwapResponse) Unmarshal(dAtA []byte) error
func (*QuerySwapResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QuerySwapResponse) XXX_DiscardUnknown()
func (*QuerySwapResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QuerySwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapResponse) XXX_Merge ¶ added in v0.0.8
func (m *QuerySwapResponse) XXX_Merge(src proto.Message)
func (*QuerySwapResponse) XXX_Size ¶ added in v0.0.8
func (m *QuerySwapResponse) XXX_Size() int
func (*QuerySwapResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QuerySwapResponse) XXX_Unmarshal(b []byte) error
type Swap ¶
type Swap struct { // hashed_secret defines the hash of secret used during cross-chain swap. HashedSecret *Hash `protobuf:"bytes,1,opt,name=hashed_secret,json=hashedSecret,proto3,customtype=Hash" json:"hashed_secret,omitempty"` // from defines address used to initialize swap. From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // recipient defines address of the recipient swapped coins. Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` // amount defines amount of coins the swap initialized. Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` // timestamp defines time moment when the swap was initialized. Timestamp uint64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // redeemed defines if the swap was redeemed. Redeemed bool `protobuf:"varint,6,opt,name=redeemed,proto3" json:"redeemed,omitempty"` // refunded defines if the swap was refunded. Refunded bool `protobuf:"varint,7,opt,name=refunded,proto3" json:"refunded,omitempty"` }
Swap defines a cross-chain swap.
func (*Swap) Descriptor ¶
func (*Swap) GetRecipient ¶
func (*Swap) GetRedeemed ¶
func (*Swap) GetRefunded ¶
func (*Swap) GetTimestamp ¶
func (*Swap) ProtoMessage ¶
func (*Swap) ProtoMessage()
func (*Swap) XXX_DiscardUnknown ¶
func (m *Swap) XXX_DiscardUnknown()
func (*Swap) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ActivateChain ¶ added in v0.0.8
func (*UnimplementedMsgServer) ActivateChain(ctx context.Context, req *MsgActivateChain) (*MsgActivateChainResponse, error)
func (*UnimplementedMsgServer) DeactivateChain ¶ added in v0.0.8
func (*UnimplementedMsgServer) DeactivateChain(ctx context.Context, req *MsgDeactivateChain) (*MsgDeactivateChainResponse, error)
func (*UnimplementedMsgServer) InitializeSwap ¶ added in v0.0.8
func (*UnimplementedMsgServer) InitializeSwap(ctx context.Context, req *MsgInitializeSwap) (*MsgInitializeSwapResponse, error)
func (*UnimplementedMsgServer) RedeemSwap ¶ added in v0.0.8
func (*UnimplementedMsgServer) RedeemSwap(ctx context.Context, req *MsgRedeemSwap) (*MsgRedeemSwapResponse, error)
type UnimplementedQueryServer ¶ added in v0.0.8
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ActiveSwaps ¶ added in v0.0.8
func (*UnimplementedQueryServer) ActiveSwaps(ctx context.Context, req *QueryActiveSwapsRequest) (*QueryActiveSwapsResponse, error)
func (*UnimplementedQueryServer) Pool ¶ added in v0.0.8
func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error)
func (*UnimplementedQueryServer) Swap ¶ added in v0.0.8
func (*UnimplementedQueryServer) Swap(ctx context.Context, req *QuerySwapRequest) (*QuerySwapResponse, error)