Versions in this module Expand all Collapse all v0 v0.2.1 Dec 27, 2022 v0.2.0 Dec 13, 2022 v0.1.1 Dec 27, 2022 v0.1.0 Dec 13, 2022 v0.0.8 Nov 1, 2022 Changes in this version + const AttributeKeyAmount + const AttributeKeyDestChain + const AttributeKeyFrom + const AttributeKeyHashedSecret + const AttributeKeyRecipient + const AttributeKeySecret + const AttributeKeyTimeLocked + const AttributeKeyTokenSymbol + const AttributeKeyTransactionNumber + const AttributeKeyTransferType + const AttributeValueCategory + const DefaultCheckingAddress + const DefaultLockedTimeIn + const DefaultLockedTimeOut + const DefaultSwapServiceAddress + const MemStoreKey + const ModuleName + const QuerierRoute + const QueryPool + const RouterKey + const StoreKey + const SwapPool + const TypeMsgChainActivate + const TypeMsgChainDeactivate + const TypeMsgSwapInitialize + const TypeMsgSwapRedeem + var ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var KeyCheckingAddress = []byte("CheckingAddress") + var KeyLockedTimeIn = []byte("LockedTimeIn") + var KeyLockedTimeOut = []byte("LockedTimeOut") + var KeyPrefixChain = []byte("chain") + var KeyPrefixSwap = []byte("swap") + var KeyServiceAddress = []byte("ServiceAddress") + var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) + 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 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 struct + Active bool + Id uint32 + Name string + func NewChain(id uint32, name string, active bool) Chain + func (*Chain) Descriptor() ([]byte, []int) + func (*Chain) ProtoMessage() + 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 (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 struct + ID uint32 + Name string + Sender string + func (*EventActivateChain) Descriptor() ([]byte, []int) + func (*EventActivateChain) ProtoMessage() + 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 (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 struct + ID uint32 + Sender string + func (*EventDeactivateChain) Descriptor() ([]byte, []int) + func (*EventDeactivateChain) ProtoMessage() + 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 (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 struct + Amount string + DestChain uint32 + FromChain uint32 + Recipient string + Sender string + TokenSymbol string + TransactionNumber string + func (*EventInitializeSwap) Descriptor() ([]byte, []int) + func (*EventInitializeSwap) ProtoMessage() + 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 (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 struct + Amount string + DestChain uint32 + From string + FromChain uint32 + HashRedeem string + R string + Recipient string + S string + Sender string + TokenSymbol string + TransactionNumber string + V string + func (*EventRedeemSwap) Descriptor() ([]byte, []int) + func (*EventRedeemSwap) ProtoMessage() + 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 (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 + Chains []Chain + func DefaultGenesisState() *GenesisState + func NewGenesisState(params Params, swaps []Swap, chains []Chain) GenesisState + func (gs *GenesisState) Validate() error + func (m *GenesisState) GetChains() []Chain type Hash + func GetHash(transactionNumber math.Int, tokenSymbol string, amount math.Int, ...) (Hash, error) + func (h *Hash) Copy() *Hash + func (h Hash) String() string + type MsgActivateChain struct + ID uint32 + Name string + Sender string + func NewMsgActivateChain(sender sdk.AccAddress, id uint32, name string) *MsgActivateChain + func (*MsgActivateChain) Descriptor() ([]byte, []int) + func (*MsgActivateChain) ProtoMessage() + func (m *MsgActivateChain) GetID() uint32 + func (m *MsgActivateChain) GetName() string + func (m *MsgActivateChain) GetSender() string + 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 (m *MsgActivateChain) Reset() + func (m *MsgActivateChain) Size() (n int) + func (m *MsgActivateChain) String() string + func (m *MsgActivateChain) Unmarshal(dAtA []byte) 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 + func (msg *MsgActivateChain) GetSignBytes() []byte + func (msg MsgActivateChain) GetSigners() []sdk.AccAddress + func (msg MsgActivateChain) Route() string + func (msg MsgActivateChain) Type() string + func (msg MsgActivateChain) ValidateBasic() error + type MsgActivateChainResponse struct + func (*MsgActivateChainResponse) Descriptor() ([]byte, []int) + func (*MsgActivateChainResponse) ProtoMessage() + 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 (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 + ActivateChain func(ctx context.Context, in *MsgActivateChain, opts ...grpc.CallOption) (*MsgActivateChainResponse, error) + DeactivateChain func(ctx context.Context, in *MsgDeactivateChain, opts ...grpc.CallOption) (*MsgDeactivateChainResponse, error) + InitializeSwap func(ctx context.Context, in *MsgInitializeSwap, opts ...grpc.CallOption) (*MsgInitializeSwapResponse, error) + RedeemSwap func(ctx context.Context, in *MsgRedeemSwap, opts ...grpc.CallOption) (*MsgRedeemSwapResponse, error) + type MsgDeactivateChain struct + ID uint32 + Sender string + func NewMsgDeactivateChain(sender sdk.AccAddress, id uint32) *MsgDeactivateChain + func (*MsgDeactivateChain) Descriptor() ([]byte, []int) + func (*MsgDeactivateChain) ProtoMessage() + func (m *MsgDeactivateChain) GetID() uint32 + func (m *MsgDeactivateChain) GetSender() string + 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 (m *MsgDeactivateChain) Reset() + func (m *MsgDeactivateChain) Size() (n int) + func (m *MsgDeactivateChain) String() string + func (m *MsgDeactivateChain) Unmarshal(dAtA []byte) 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 + func (msg *MsgDeactivateChain) GetSignBytes() []byte + func (msg MsgDeactivateChain) GetSigners() []sdk.AccAddress + func (msg MsgDeactivateChain) Route() string + func (msg MsgDeactivateChain) Type() string + func (msg MsgDeactivateChain) ValidateBasic() error + type MsgDeactivateChainResponse struct + func (*MsgDeactivateChainResponse) Descriptor() ([]byte, []int) + func (*MsgDeactivateChainResponse) ProtoMessage() + 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 (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 struct + Amount cosmossdk_io_math.Int + DestChain uint32 + FromChain uint32 + Recipient string + Sender string + TokenSymbol string + TransactionNumber string + func NewMsgInitializeSwap(sender sdk.AccAddress, recipient string, amount math.Int, tokenSymbol string, ...) *MsgInitializeSwap + func (*MsgInitializeSwap) Descriptor() ([]byte, []int) + func (*MsgInitializeSwap) ProtoMessage() + 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 (m *MsgInitializeSwap) Reset() + func (m *MsgInitializeSwap) Size() (n int) + func (m *MsgInitializeSwap) String() string + func (m *MsgInitializeSwap) Unmarshal(dAtA []byte) 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 + func (msg *MsgInitializeSwap) GetSignBytes() []byte + func (msg MsgInitializeSwap) GetSigners() []sdk.AccAddress + func (msg MsgInitializeSwap) Route() string + func (msg MsgInitializeSwap) Type() string + func (msg MsgInitializeSwap) ValidateBasic() error + type MsgInitializeSwapResponse struct + func (*MsgInitializeSwapResponse) Descriptor() ([]byte, []int) + func (*MsgInitializeSwapResponse) ProtoMessage() + 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 (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 struct + Amount cosmossdk_io_math.Int + DestChain uint32 + From string + FromChain uint32 + R string + Recipient string + S string + Sender string + TokenSymbol string + TransactionNumber string + V uint32 + func NewMsgRedeemSwap(sender sdk.AccAddress, from string, recipient string, amount math.Int, ...) *MsgRedeemSwap + func (*MsgRedeemSwap) Descriptor() ([]byte, []int) + func (*MsgRedeemSwap) ProtoMessage() + 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 (m *MsgRedeemSwap) Reset() + func (m *MsgRedeemSwap) Size() (n int) + func (m *MsgRedeemSwap) String() string + func (m *MsgRedeemSwap) Unmarshal(dAtA []byte) 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 + func (msg *MsgRedeemSwap) GetSignBytes() []byte + func (msg MsgRedeemSwap) GetSigners() []sdk.AccAddress + func (msg MsgRedeemSwap) Route() string + func (msg MsgRedeemSwap) Type() string + func (msg MsgRedeemSwap) ValidateBasic() error + type MsgRedeemSwapResponse struct + func (*MsgRedeemSwapResponse) Descriptor() ([]byte, []int) + func (*MsgRedeemSwapResponse) ProtoMessage() + 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 (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 + ActivateChain func(context.Context, *MsgActivateChain) (*MsgActivateChainResponse, error) + DeactivateChain func(context.Context, *MsgDeactivateChain) (*MsgDeactivateChainResponse, error) + InitializeSwap func(context.Context, *MsgInitializeSwap) (*MsgInitializeSwapResponse, error) + RedeemSwap func(context.Context, *MsgRedeemSwap) (*MsgRedeemSwapResponse, error) type Params + CheckingAddress string + ServiceAddress string + func DefaultParams() Params + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + func (p Params) Validate() error + func (this *Params) Equal(that interface{}) bool + type QueryActiveSwapsRequest struct + func (*QueryActiveSwapsRequest) Descriptor() ([]byte, []int) + func (*QueryActiveSwapsRequest) ProtoMessage() + 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 (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 struct + Swaps []Swap + func (*QueryActiveSwapsResponse) Descriptor() ([]byte, []int) + func (*QueryActiveSwapsResponse) ProtoMessage() + 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 (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 interface + ActiveSwaps func(ctx context.Context, in *QueryActiveSwapsRequest, opts ...grpc.CallOption) (*QueryActiveSwapsResponse, error) + Pool func(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) + Swap func(ctx context.Context, in *QuerySwapRequest, opts ...grpc.CallOption) (*QuerySwapResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryPoolRequest struct + func (*QueryPoolRequest) Descriptor() ([]byte, []int) + func (*QueryPoolRequest) ProtoMessage() + 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 (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 struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + func (*QueryPoolResponse) Descriptor() ([]byte, []int) + func (*QueryPoolResponse) ProtoMessage() + 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 (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 interface + ActiveSwaps func(context.Context, *QueryActiveSwapsRequest) (*QueryActiveSwapsResponse, error) + Pool func(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) + Swap func(context.Context, *QuerySwapRequest) (*QuerySwapResponse, error) + type QuerySwapRequest struct + HashedSecret string + func (*QuerySwapRequest) Descriptor() ([]byte, []int) + func (*QuerySwapRequest) ProtoMessage() + 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 (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 struct + Swap Swap + func (*QuerySwapResponse) Descriptor() ([]byte, []int) + func (*QuerySwapResponse) ProtoMessage() + 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 (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 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 struct + 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) v0.0.7 Aug 11, 2022 Changes in this version + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowSwap = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthSwap = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupSwap = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var TransferType_name = map[int32]string + var TransferType_value = map[string]int32 + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + type GenesisState struct + Params Params + Swaps []Swap + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + 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 (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) 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 [32]byte + func (h *Hash) Size() int + func (h *Hash) UnmarshalJSON(b []byte) error + func (h Hash) MarshalJSON() ([]byte, error) + func (h Hash) MarshalTo(bytes []byte) ([]byte, error) + func (h Hash) Unmarshal(bytes []byte) error + type MsgClient interface + HTLT func(ctx context.Context, in *MsgHTLT, opts ...grpc.CallOption) (*MsgHTLTResponse, error) + Redeem func(ctx context.Context, in *MsgRedeem, opts ...grpc.CallOption) (*MsgRedeemResponse, error) + Refund func(ctx context.Context, in *MsgRefund, opts ...grpc.CallOption) (*MsgRefundResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgHTLT struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + From string + HashedSecret Hash + Recipient string + Secret []byte + TransferType TransferType + func (*MsgHTLT) Descriptor() ([]byte, []int) + func (*MsgHTLT) ProtoMessage() + func (m *MsgHTLT) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins + func (m *MsgHTLT) GetFrom() string + func (m *MsgHTLT) GetRecipient() string + func (m *MsgHTLT) GetSecret() []byte + func (m *MsgHTLT) GetTransferType() TransferType + func (m *MsgHTLT) Marshal() (dAtA []byte, err error) + func (m *MsgHTLT) MarshalTo(dAtA []byte) (int, error) + func (m *MsgHTLT) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgHTLT) Reset() + func (m *MsgHTLT) Size() (n int) + func (m *MsgHTLT) String() string + func (m *MsgHTLT) Unmarshal(dAtA []byte) error + func (m *MsgHTLT) XXX_DiscardUnknown() + func (m *MsgHTLT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgHTLT) XXX_Merge(src proto.Message) + func (m *MsgHTLT) XXX_Size() int + func (m *MsgHTLT) XXX_Unmarshal(b []byte) error + type MsgHTLTResponse struct + func (*MsgHTLTResponse) Descriptor() ([]byte, []int) + func (*MsgHTLTResponse) ProtoMessage() + func (m *MsgHTLTResponse) Marshal() (dAtA []byte, err error) + func (m *MsgHTLTResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgHTLTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgHTLTResponse) Reset() + func (m *MsgHTLTResponse) Size() (n int) + func (m *MsgHTLTResponse) String() string + func (m *MsgHTLTResponse) Unmarshal(dAtA []byte) error + func (m *MsgHTLTResponse) XXX_DiscardUnknown() + func (m *MsgHTLTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgHTLTResponse) XXX_Merge(src proto.Message) + func (m *MsgHTLTResponse) XXX_Size() int + func (m *MsgHTLTResponse) XXX_Unmarshal(b []byte) error + type MsgRedeem struct + From string + Secret []byte + func (*MsgRedeem) Descriptor() ([]byte, []int) + func (*MsgRedeem) ProtoMessage() + func (m *MsgRedeem) Marshal() (dAtA []byte, err error) + func (m *MsgRedeem) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRedeem) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRedeem) Reset() + func (m *MsgRedeem) Size() (n int) + func (m *MsgRedeem) String() string + func (m *MsgRedeem) Unmarshal(dAtA []byte) error + func (m *MsgRedeem) XXX_DiscardUnknown() + func (m *MsgRedeem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRedeem) XXX_Merge(src proto.Message) + func (m *MsgRedeem) XXX_Size() int + func (m *MsgRedeem) XXX_Unmarshal(b []byte) error + type MsgRedeemResponse struct + func (*MsgRedeemResponse) Descriptor() ([]byte, []int) + func (*MsgRedeemResponse) ProtoMessage() + func (m *MsgRedeemResponse) Marshal() (dAtA []byte, err error) + func (m *MsgRedeemResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRedeemResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRedeemResponse) Reset() + func (m *MsgRedeemResponse) Size() (n int) + func (m *MsgRedeemResponse) String() string + func (m *MsgRedeemResponse) Unmarshal(dAtA []byte) error + func (m *MsgRedeemResponse) XXX_DiscardUnknown() + func (m *MsgRedeemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRedeemResponse) XXX_Merge(src proto.Message) + func (m *MsgRedeemResponse) XXX_Size() int + func (m *MsgRedeemResponse) XXX_Unmarshal(b []byte) error + type MsgRefund struct + From string + HashedSecret Hash + func (*MsgRefund) Descriptor() ([]byte, []int) + func (*MsgRefund) ProtoMessage() + func (m *MsgRefund) Marshal() (dAtA []byte, err error) + func (m *MsgRefund) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRefund) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRefund) Reset() + func (m *MsgRefund) Size() (n int) + func (m *MsgRefund) String() string + func (m *MsgRefund) Unmarshal(dAtA []byte) error + func (m *MsgRefund) XXX_DiscardUnknown() + func (m *MsgRefund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRefund) XXX_Merge(src proto.Message) + func (m *MsgRefund) XXX_Size() int + func (m *MsgRefund) XXX_Unmarshal(b []byte) error + type MsgRefundResponse struct + func (*MsgRefundResponse) Descriptor() ([]byte, []int) + func (*MsgRefundResponse) ProtoMessage() + func (m *MsgRefundResponse) Marshal() (dAtA []byte, err error) + func (m *MsgRefundResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRefundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRefundResponse) Reset() + func (m *MsgRefundResponse) Size() (n int) + func (m *MsgRefundResponse) String() string + func (m *MsgRefundResponse) Unmarshal(dAtA []byte) error + func (m *MsgRefundResponse) XXX_DiscardUnknown() + func (m *MsgRefundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRefundResponse) XXX_Merge(src proto.Message) + func (m *MsgRefundResponse) XXX_Size() int + func (m *MsgRefundResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + HTLT func(context.Context, *MsgHTLT) (*MsgHTLTResponse, error) + Redeem func(context.Context, *MsgRedeem) (*MsgRedeemResponse, error) + Refund func(context.Context, *MsgRefund) (*MsgRefundResponse, error) + type Params struct + LockedTimeIn time.Duration + LockedTimeOut time.Duration + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + func (m *Params) GetLockedTimeIn() time.Duration + func (m *Params) GetLockedTimeOut() time.Duration + 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 (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 Secret []byte + func (s *Secret) UnmarshalJSON(b []byte) error + func (s Secret) MarshalJSON() ([]byte, error) + func (s Secret) MarshalTo(bytes []byte) ([]byte, error) + func (s Secret) Size() int + func (s Secret) Unmarshal(bytes []byte) error + type Swap struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + From string + HashedSecret *Hash + Recipient string + Redeemed bool + Refunded bool + Timestamp uint64 + TransferType TransferType + func (*Swap) Descriptor() ([]byte, []int) + func (*Swap) ProtoMessage() + func (m *Swap) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins + 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) GetTransferType() TransferType + 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 (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 TransferType int32 + const TransferType_TransferTypeIn + const TransferType_TransferTypeOut + func (TransferType) EnumDescriptor() ([]byte, []int) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) HTLT(ctx context.Context, req *MsgHTLT) (*MsgHTLTResponse, error) + func (*UnimplementedMsgServer) Redeem(ctx context.Context, req *MsgRedeem) (*MsgRedeemResponse, error) + func (*UnimplementedMsgServer) Refund(ctx context.Context, req *MsgRefund) (*MsgRefundResponse, error)