Versions in this module Expand all Collapse all v1 v1.4.0 Jul 14, 2022 v1.3.0 Jun 29, 2022 v1.2.15 Jun 9, 2022 v1.2.14 Jun 2, 2022 v1.2.13 Apr 29, 2022 v1.2.12 Mar 30, 2022 Changes in this version + var LegacyChainKey = []byte + var LegacyMigrationKey = []byte("swap/migrated") + var LegacySwapKey = []byte + var LegacySwapV2Key = []byte v1.2.10 Feb 14, 2022 v1.2.9 Feb 4, 2022 v1.2.8 Jan 26, 2022 v1.2.7 Jan 21, 2022 v1.2.6 Jan 18, 2022 v1.2.5 Dec 14, 2021 v1.2.4 Dec 2, 2021 v1.2.3 Nov 15, 2021 v1.2.2 Nov 10, 2021 v1.2.1 Oct 28, 2021 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 ChainActivatorAddress + const CheckingAddress + const CodeAlreadyRedeemed + const CodeAlreadyRefunded + const CodeChainNotExist + const CodeDeprecated + const CodeExpired + const CodeFromFieldNotEqual + const CodeInsufficientPoolFunds + const CodeInvalidServiceAddress + const CodeInvalidTransactionNumber + const CodeNotExpired + const CodeSwapAlreadyExist + const CodeSwapNotFound + const CodeWrongSecret + const DefaultCodespace + const DefaultLockedTimeIn + const DefaultLockedTimeOut + const ModuleName + const PoolName + const QuerierRoute + const QueryActiveSwaps + const QueryPool + const QuerySwap + const RouterKey + const ServiceAddress + const StoreKey + const TransferTypeIn + const TransferTypeOut + const TypeMsgChainActivate + const TypeMsgChainDeactivate + const TypeMsgHTLT + const TypeMsgRedeem + const TypeMsgRedeemV2 + const TypeMsgRefund + const TypeMsgSwapInitialize + var ChainKey = []byte + var KeyLockedTimeIn = []byte("LockedTimeIn") + var KeyLockedTimeOut = []byte("LockedTimeOut") + var ModuleCdc *codec.Codec + var ServiceAccAddress = sdk.AccAddressFromBech32("dx1jqx7chw0faswfmw78cdejzzery5akzmk5zc5x5") + var SwapKey = []byte + var SwapV2Key = []byte + func Ecrecover(sighash [32]byte, R, S, Vb *big.Int) (ethcmn.Address, error) + func ErrAlreadyRedeemed() *sdkerrors.Error + func ErrAlreadyRefunded() *sdkerrors.Error + func ErrChainNotExist(chain string) *sdkerrors.Error + func ErrDeprecated() *sdkerrors.Error + func ErrExpired() *sdkerrors.Error + func ErrFromFieldNotEqual(fromMsg string, fromSwap string) *sdkerrors.Error + func ErrInsufficientPoolFunds(want string, exists string) *sdkerrors.Error + func ErrInvalidServiceAddress(want string, receive string) *sdkerrors.Error + func ErrInvalidTransactionNumber() *sdkerrors.Error + func ErrNotExpired() *sdkerrors.Error + func ErrSwapAlreadyExist(hash string) *sdkerrors.Error + func ErrSwapNotFound() *sdkerrors.Error + func ErrWrongSecret() *sdkerrors.Error + func GetChainKey(chain int) []byte + func GetSwapKey(hash [32]byte) []byte + func GetSwapV2Key(hash [32]byte) []byte + func RegisterCodec(cdc *codec.Codec) + type Chain struct + Active bool + Name string + func NewChain(name string, active bool) Chain + type CodeType = uint32 + type GenesisState struct + Params Params + Swaps Swaps + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, swaps Swaps) GenesisState + type Hash [32]byte + func GetHash(transactionNumber sdk.Int, tokenSymbol string, amount sdk.Int, ...) (Hash, error) + func (h *Hash) UnmarshalJSON(b []byte) error + func (h Hash) MarshalJSON() ([]byte, error) + type MsgChainActivate struct + ChainName string + ChainNumber int + From sdk.AccAddress + func NewMsgChainActivate(from sdk.AccAddress, chainNumber int, chainName string) MsgChainActivate + func (msg MsgChainActivate) GetSignBytes() []byte + func (msg MsgChainActivate) GetSigners() []sdk.AccAddress + func (msg MsgChainActivate) Route() string + func (msg MsgChainActivate) Type() string + func (msg MsgChainActivate) ValidateBasic() error + type MsgChainDeactivate struct + ChainNumber int + From sdk.AccAddress + func NewMsgChainDeactivate(from sdk.AccAddress, chainNumber int) MsgChainDeactivate + func (msg MsgChainDeactivate) GetSignBytes() []byte + func (msg MsgChainDeactivate) GetSigners() []sdk.AccAddress + func (msg MsgChainDeactivate) Route() string + func (msg MsgChainDeactivate) Type() string + func (msg MsgChainDeactivate) ValidateBasic() error + type MsgHTLT struct + Amount sdk.Coins + From sdk.AccAddress + HashedSecret Hash + Recipient string + TransferType TransferType + func NewMsgHTLT(transferType TransferType, from sdk.AccAddress, recipient string, ...) MsgHTLT + func (msg MsgHTLT) GetSignBytes() []byte + func (msg MsgHTLT) GetSigners() []sdk.AccAddress + func (msg MsgHTLT) Route() string + func (msg MsgHTLT) Type() string + func (msg MsgHTLT) ValidateBasic() error + type MsgRedeem struct + From sdk.AccAddress + Secret Secret + func NewMsgRedeem(from sdk.AccAddress, secret Secret) MsgRedeem + func (msg MsgRedeem) GetSignBytes() []byte + func (msg MsgRedeem) GetSigners() []sdk.AccAddress + func (msg MsgRedeem) Route() string + func (msg MsgRedeem) Type() string + func (msg MsgRedeem) ValidateBasic() error + type MsgRedeemV2 struct + Amount sdk.Int + DestChain int + From string + FromChain int + R Hash + Recipient sdk.AccAddress + S Hash + Sender sdk.AccAddress + TokenSymbol string + TransactionNumber string + V uint8 + func NewMsgRedeemV2(sender, recipient sdk.AccAddress, from string, amount sdk.Int, ...) MsgRedeemV2 + func (msg MsgRedeemV2) GetSignBytes() []byte + func (msg MsgRedeemV2) GetSigners() []sdk.AccAddress + func (msg MsgRedeemV2) Route() string + func (msg MsgRedeemV2) Type() string + func (msg MsgRedeemV2) ValidateBasic() error + type MsgRefund struct + From sdk.AccAddress + HashedSecret Hash + func NewMsgRefund(from sdk.AccAddress, hash [32]byte) MsgRefund + func (msg MsgRefund) GetSignBytes() []byte + func (msg MsgRefund) GetSigners() []sdk.AccAddress + func (msg MsgRefund) Route() string + func (msg MsgRefund) Type() string + func (msg MsgRefund) ValidateBasic() error + type MsgSwapInitialize struct + Amount sdk.Int + DestChain int + From sdk.AccAddress + FromChain int + Recipient string + TokenSymbol string + TransactionNumber string + func NewMsgSwapInitialize(from sdk.AccAddress, recipient string, amount sdk.Int, ...) MsgSwapInitialize + func (msg MsgSwapInitialize) GetSignBytes() []byte + func (msg MsgSwapInitialize) GetSigners() []sdk.AccAddress + func (msg MsgSwapInitialize) Route() string + func (msg MsgSwapInitialize) Type() string + func (msg MsgSwapInitialize) ValidateBasic() error + type ParamSubspace interface + Get func(ctx sdk.Context, key []byte, ptr interface{}) + GetParamSet func(ctx sdk.Context, ps params.ParamSet) + SetParamSet func(ctx sdk.Context, ps params.ParamSet) + WithKeyTable func(table params.KeyTable) params.Subspace + type Params struct + LockedTimeIn time.Duration + LockedTimeOut time.Duration + func DefaultParams() Params + func NewParams(lockedTimeOut, lockedTimeIn time.Duration) Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) Validate() error + type QuerySwapParams struct + HashedSecret Hash + func NewQuerySwapParams(hashedSecret Hash) QuerySwapParams + type Secret []byte + func (s *Secret) UnmarshalJSON(b []byte) error + func (s Secret) MarshalJSON() ([]byte, error) + type Swap struct + Amount sdk.Coins + From sdk.AccAddress + HashedSecret Hash + Recipient string + Redeemed bool + Refunded bool + Timestamp uint64 + TransferType TransferType + func NewSwap(transferType TransferType, hash Hash, from sdk.AccAddress, recipient string, ...) Swap + type Swaps []Swap + type TransferType int + func TransferTypeFromString(transferType string) (TransferType, error) + func (t TransferType) String() string