Versions in this module Expand all Collapse all v0 v0.1.3 Jul 5, 2023 v0.1.2-nemo-rc1 Jul 5, 2023 v0.1.1 Jul 3, 2023 v0.1.0 Jul 3, 2023 Changes in this version + const AttributeExpirationBlock + const AttributeKeyAmount + const AttributeKeyAtomicSwapID + const AttributeKeyAtomicSwapIDs + const AttributeKeyClaimSender + const AttributeKeyDirection + const AttributeKeyExpireHeight + const AttributeKeyRandomNumber + const AttributeKeyRandomNumberHash + const AttributeKeyRecipient + const AttributeKeyRefundSender + const AttributeKeySender + const AttributeKeySenderOtherChain + const AttributeKeyTimestamp + const AttributeValueCategory + const CalcSwapID + const ClaimAtomicSwap + const CreateAtomicSwap + const DefaultLongtermStorageDuration + const DefaultParamspace + const EventTypeClaimAtomicSwap + const EventTypeCreateAtomicSwap + const EventTypeRefundAtomicSwap + const EventTypeSwapsExpired + const Int64Size + const MaxExpectedIncomeLength + const MaxOtherChainAddrLength + const ModuleName + const QuerierRoute + const QueryGetAssetSupplies + const QueryGetAssetSupply + const QueryGetAtomicSwap + const QueryGetAtomicSwaps + const QueryGetParams + const RandomNumberHashLength + const RandomNumberLength + const RefundAtomicSwap + const RouterKey + const StoreKey + const SwapIDLength + var AssetSupplyPrefix = []byte + var AtomicSwapByBlockPrefix = []byte + var AtomicSwapCoinsAccAddr = sdk.AccAddress(crypto.AddressHash([]byte("NemoAtomicSwapCoins"))) + var AtomicSwapKeyPrefix = []byte + var AtomicSwapLongtermStoragePrefix = []byte + var DefaultBnbDeputyFixedFee sdkmath.Int = sdkmath.NewInt(1000) + var DefaultMaxAmount sdkmath.Int = sdkmath.NewInt(1000000000000) + var DefaultMaxBlockLock uint64 = 270 + var DefaultMinAmount sdkmath.Int = sdk.ZeroInt() + var DefaultMinBlockLock uint64 = 220 + var DefaultPreviousBlockTime = tmtime.Canonical(time.Unix(1, 0)) + var ErrAssetNotActive = errorsmod.Register(ModuleName, 6, "asset is currently inactive") + var ErrAssetNotSupported = errorsmod.Register(ModuleName, 5, "asset not found") + var ErrAssetSupplyNotFound = errorsmod.Register(ModuleName, 7, "asset supply not found in store") + var ErrAtomicSwapAlreadyExists = errorsmod.Register(ModuleName, 14, "atomic swap already exists") + var ErrAtomicSwapNotFound = errorsmod.Register(ModuleName, 15, "atomic swap not found") + var ErrExceedsAvailableSupply = errorsmod.Register(ModuleName, 9, "outgoing swap exceeds total available supply") + var ErrExceedsSupplyLimit = errorsmod.Register(ModuleName, 8, "asset supply over limit") + var ErrExceedsTimeBasedSupplyLimit = errorsmod.Register(ModuleName, 20, "asset supply over limit for current time period") + var ErrInsufficientAmount = errorsmod.Register(ModuleName, 4, "amount cannot cover the deputy fixed fee") + var ErrIntOverflowBep3 = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidAmount = errorsmod.Register(ModuleName, 18, "amount is outside acceptable range") + var ErrInvalidClaimSecret = errorsmod.Register(ModuleName, 13, "hashed claim attempt does not match") + var ErrInvalidCurrentSupply = errorsmod.Register(ModuleName, 10, "supply decrease puts current asset supply below 0") + var ErrInvalidHeightSpan = errorsmod.Register(ModuleName, 3, "height span is outside acceptable range") + var ErrInvalidIncomingSupply = errorsmod.Register(ModuleName, 11, "supply decrease puts incoming asset supply below 0") + var ErrInvalidLengthBep3 = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidOutgoingSupply = errorsmod.Register(ModuleName, 12, "supply decrease puts outgoing asset supply below 0") + var ErrInvalidSwapAccount = errorsmod.Register(ModuleName, 19, "atomic swap has invalid account") + var ErrInvalidTimestamp = errorsmod.Register(ModuleName, 2, ...) + var ErrSwapNotClaimable = errorsmod.Register(ModuleName, 17, "atomic swap is not claimable") + var ErrSwapNotRefundable = errorsmod.Register(ModuleName, 16, "atomic swap is still active and cannot be refunded") + var ErrUnexpectedEndOfGroupBep3 = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var KeyAssetParams = []byte("AssetParams") + var ModuleCdc = codec.NewAminoCodec(amino) + var PreviousBlockTimeKey = []byte + var SwapDirection_name = map[int32]string + var SwapDirection_value = map[string]int32 + var SwapStatus_name = map[int32]string + var SwapStatus_value = map[string]int32 + func CalculateRandomHash(randomNumber []byte, timestamp int64) []byte + func CalculateSwapID(randomNumberHash []byte, sender sdk.AccAddress, senderOtherChain string) []byte + func GenerateSecureRandomNumber() ([]byte, error) + func GetAtomicSwapByHeightKey(height uint64, swapID []byte) []byte + func ParamKeyTable() paramtypes.KeyTable + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + GetModuleAccount func(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + GetModuleAddressAndPermissions func(moduleName string) (sdk.AccAddress, []string) + NewAccountWithAddress func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + SetAccount func(ctx sdk.Context, acc authtypes.AccountI) + SetModuleAccount func(ctx sdk.Context, macc authtypes.ModuleAccountI) + type AssetParam struct + Active bool + CoinID int64 + Denom string + DeputyAddress github_com_cosmos_cosmos_sdk_types.AccAddress + FixedFee github_com_cosmos_cosmos_sdk_types.Int + MaxBlockLock uint64 + MaxSwapAmount github_com_cosmos_cosmos_sdk_types.Int + MinBlockLock uint64 + MinSwapAmount github_com_cosmos_cosmos_sdk_types.Int + SupplyLimit SupplyLimit + func NewAssetParam(denom string, coinID int64, limit SupplyLimit, active bool, ...) AssetParam + func (*AssetParam) Descriptor() ([]byte, []int) + func (*AssetParam) ProtoMessage() + func (m *AssetParam) GetActive() bool + func (m *AssetParam) GetCoinID() int64 + func (m *AssetParam) GetDenom() string + func (m *AssetParam) GetDeputyAddress() github_com_cosmos_cosmos_sdk_types.AccAddress + func (m *AssetParam) GetMaxBlockLock() uint64 + func (m *AssetParam) GetMinBlockLock() uint64 + func (m *AssetParam) GetSupplyLimit() SupplyLimit + func (m *AssetParam) Marshal() (dAtA []byte, err error) + func (m *AssetParam) MarshalTo(dAtA []byte) (int, error) + func (m *AssetParam) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AssetParam) Reset() + func (m *AssetParam) Size() (n int) + func (m *AssetParam) String() string + func (m *AssetParam) Unmarshal(dAtA []byte) error + func (m *AssetParam) XXX_DiscardUnknown() + func (m *AssetParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AssetParam) XXX_Merge(src proto.Message) + func (m *AssetParam) XXX_Size() int + func (m *AssetParam) XXX_Unmarshal(b []byte) error + type AssetParams []AssetParam + type AssetSupplies []AssetSupply + type AssetSupply struct + CurrentSupply types.Coin + IncomingSupply types.Coin + OutgoingSupply types.Coin + TimeElapsed time.Duration + TimeLimitedCurrentSupply types.Coin + func NewAssetSupply(incomingSupply, outgoingSupply, currentSupply, timeLimitedSupply sdk.Coin, ...) AssetSupply + func (*AssetSupply) Descriptor() ([]byte, []int) + func (*AssetSupply) ProtoMessage() + func (a AssetSupply) Equal(b AssetSupply) bool + func (a AssetSupply) GetDenom() string + func (a AssetSupply) Validate() error + func (m *AssetSupply) GetCurrentSupply() types.Coin + func (m *AssetSupply) GetIncomingSupply() types.Coin + func (m *AssetSupply) GetOutgoingSupply() types.Coin + func (m *AssetSupply) GetTimeElapsed() time.Duration + func (m *AssetSupply) GetTimeLimitedCurrentSupply() types.Coin + func (m *AssetSupply) Marshal() (dAtA []byte, err error) + func (m *AssetSupply) MarshalTo(dAtA []byte) (int, error) + func (m *AssetSupply) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AssetSupply) Reset() + func (m *AssetSupply) Size() (n int) + func (m *AssetSupply) String() string + func (m *AssetSupply) Unmarshal(dAtA []byte) error + func (m *AssetSupply) XXX_DiscardUnknown() + func (m *AssetSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AssetSupply) XXX_Merge(src proto.Message) + func (m *AssetSupply) XXX_Size() int + func (m *AssetSupply) XXX_Unmarshal(b []byte) error + type AssetSupplyResponse struct + CurrentSupply types.Coin + IncomingSupply types.Coin + OutgoingSupply types.Coin + TimeElapsed time.Duration + TimeLimitedCurrentSupply types.Coin + func (*AssetSupplyResponse) Descriptor() ([]byte, []int) + func (*AssetSupplyResponse) ProtoMessage() + func (m *AssetSupplyResponse) GetCurrentSupply() types.Coin + func (m *AssetSupplyResponse) GetIncomingSupply() types.Coin + func (m *AssetSupplyResponse) GetOutgoingSupply() types.Coin + func (m *AssetSupplyResponse) GetTimeElapsed() time.Duration + func (m *AssetSupplyResponse) GetTimeLimitedCurrentSupply() types.Coin + func (m *AssetSupplyResponse) Marshal() (dAtA []byte, err error) + func (m *AssetSupplyResponse) MarshalTo(dAtA []byte) (int, error) + func (m *AssetSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AssetSupplyResponse) Reset() + func (m *AssetSupplyResponse) Size() (n int) + func (m *AssetSupplyResponse) String() string + func (m *AssetSupplyResponse) Unmarshal(dAtA []byte) error + func (m *AssetSupplyResponse) XXX_DiscardUnknown() + func (m *AssetSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AssetSupplyResponse) XXX_Merge(src proto.Message) + func (m *AssetSupplyResponse) XXX_Size() int + func (m *AssetSupplyResponse) XXX_Unmarshal(b []byte) error + type AtomicSwap struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + ClosedBlock int64 + CrossChain bool + Direction SwapDirection + ExpireHeight uint64 + RandomNumberHash github_com_tendermint_tendermint_libs_bytes.HexBytes + Recipient github_com_cosmos_cosmos_sdk_types.AccAddress + RecipientOtherChain string + Sender github_com_cosmos_cosmos_sdk_types.AccAddress + SenderOtherChain string + Status SwapStatus + Timestamp int64 + func NewAtomicSwap(amount sdk.Coins, randomNumberHash tmbytes.HexBytes, expireHeight uint64, ...) AtomicSwap + func (*AtomicSwap) Descriptor() ([]byte, []int) + func (*AtomicSwap) ProtoMessage() + func (a AtomicSwap) GetCoins() sdk.Coins + func (a AtomicSwap) GetSwapID() tmbytes.HexBytes + func (a AtomicSwap) Validate() error + func (m *AtomicSwap) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins + func (m *AtomicSwap) GetClosedBlock() int64 + func (m *AtomicSwap) GetCrossChain() bool + func (m *AtomicSwap) GetDirection() SwapDirection + func (m *AtomicSwap) GetExpireHeight() uint64 + func (m *AtomicSwap) GetRandomNumberHash() github_com_tendermint_tendermint_libs_bytes.HexBytes + func (m *AtomicSwap) GetRecipient() github_com_cosmos_cosmos_sdk_types.AccAddress + func (m *AtomicSwap) GetRecipientOtherChain() string + func (m *AtomicSwap) GetSender() github_com_cosmos_cosmos_sdk_types.AccAddress + func (m *AtomicSwap) GetSenderOtherChain() string + func (m *AtomicSwap) GetStatus() SwapStatus + func (m *AtomicSwap) GetTimestamp() int64 + func (m *AtomicSwap) Marshal() (dAtA []byte, err error) + func (m *AtomicSwap) MarshalTo(dAtA []byte) (int, error) + func (m *AtomicSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AtomicSwap) Reset() + func (m *AtomicSwap) Size() (n int) + func (m *AtomicSwap) String() string + func (m *AtomicSwap) Unmarshal(dAtA []byte) error + func (m *AtomicSwap) XXX_DiscardUnknown() + func (m *AtomicSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AtomicSwap) XXX_Merge(src proto.Message) + func (m *AtomicSwap) XXX_Size() int + func (m *AtomicSwap) XXX_Unmarshal(b []byte) error + type AtomicSwapResponse struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + ClosedBlock int64 + CrossChain bool + Direction SwapDirection + ExpireHeight uint64 + Id string + RandomNumberHash string + Recipient string + RecipientOtherChain string + Sender string + SenderOtherChain string + Status SwapStatus + Timestamp int64 + func (*AtomicSwapResponse) Descriptor() ([]byte, []int) + func (*AtomicSwapResponse) ProtoMessage() + func (m *AtomicSwapResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins + func (m *AtomicSwapResponse) GetClosedBlock() int64 + func (m *AtomicSwapResponse) GetCrossChain() bool + func (m *AtomicSwapResponse) GetDirection() SwapDirection + func (m *AtomicSwapResponse) GetExpireHeight() uint64 + func (m *AtomicSwapResponse) GetId() string + func (m *AtomicSwapResponse) GetRandomNumberHash() string + func (m *AtomicSwapResponse) GetRecipient() string + func (m *AtomicSwapResponse) GetRecipientOtherChain() string + func (m *AtomicSwapResponse) GetSender() string + func (m *AtomicSwapResponse) GetSenderOtherChain() string + func (m *AtomicSwapResponse) GetStatus() SwapStatus + func (m *AtomicSwapResponse) GetTimestamp() int64 + func (m *AtomicSwapResponse) Marshal() (dAtA []byte, err error) + func (m *AtomicSwapResponse) MarshalTo(dAtA []byte) (int, error) + func (m *AtomicSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AtomicSwapResponse) Reset() + func (m *AtomicSwapResponse) Size() (n int) + func (m *AtomicSwapResponse) String() string + func (m *AtomicSwapResponse) Unmarshal(dAtA []byte) error + func (m *AtomicSwapResponse) XXX_DiscardUnknown() + func (m *AtomicSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AtomicSwapResponse) XXX_Merge(src proto.Message) + func (m *AtomicSwapResponse) XXX_Size() int + func (m *AtomicSwapResponse) XXX_Unmarshal(b []byte) error + type AtomicSwaps []AtomicSwap + type BankKeeper interface + BurnCoins func(ctx sdk.Context, name string, amt sdk.Coins) error + MintCoins func(ctx sdk.Context, name string, amt sdk.Coins) error + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + type GenesisState struct + AtomicSwaps AtomicSwaps + Params Params + PreviousBlockTime time.Time + Supplies AssetSupplies + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, swaps AtomicSwaps, supplies AssetSupplies, ...) GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetAtomicSwaps() AtomicSwaps + func (m *GenesisState) GetParams() Params + func (m *GenesisState) GetPreviousBlockTime() time.Time + func (m *GenesisState) GetSupplies() AssetSupplies + 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 LegacyAugmentedAtomicSwap struct + Amount sdk.Coins + ClosedBlock int64 + CrossChain bool + Direction SwapDirection + ExpireHeight uint64 + ID string + RandomNumberHash tmbytes.HexBytes + Recipient sdk.AccAddress + RecipientOtherChain string + Sender sdk.AccAddress + SenderOtherChain string + Status SwapStatus + Timestamp int64 + func NewLegacyAugmentedAtomicSwap(swap AtomicSwap) LegacyAugmentedAtomicSwap + type LegacyAugmentedAtomicSwaps []LegacyAugmentedAtomicSwap + type MsgClaimAtomicSwap struct + From string + RandomNumber string + SwapID string + func NewMsgClaimAtomicSwap(from string, swapID, randomNumber tmbytes.HexBytes) MsgClaimAtomicSwap + func (*MsgClaimAtomicSwap) Descriptor() ([]byte, []int) + func (*MsgClaimAtomicSwap) ProtoMessage() + func (m *MsgClaimAtomicSwap) Marshal() (dAtA []byte, err error) + func (m *MsgClaimAtomicSwap) MarshalTo(dAtA []byte) (int, error) + func (m *MsgClaimAtomicSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgClaimAtomicSwap) Reset() + func (m *MsgClaimAtomicSwap) Size() (n int) + func (m *MsgClaimAtomicSwap) Unmarshal(dAtA []byte) error + func (m *MsgClaimAtomicSwap) XXX_DiscardUnknown() + func (m *MsgClaimAtomicSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgClaimAtomicSwap) XXX_Merge(src proto.Message) + func (m *MsgClaimAtomicSwap) XXX_Size() int + func (m *MsgClaimAtomicSwap) XXX_Unmarshal(b []byte) error + func (msg MsgClaimAtomicSwap) GetInvolvedAddresses() []sdk.AccAddress + func (msg MsgClaimAtomicSwap) GetSignBytes() []byte + func (msg MsgClaimAtomicSwap) GetSigners() []sdk.AccAddress + func (msg MsgClaimAtomicSwap) Route() string + func (msg MsgClaimAtomicSwap) String() string + func (msg MsgClaimAtomicSwap) Type() string + func (msg MsgClaimAtomicSwap) ValidateBasic() error + type MsgClaimAtomicSwapResponse struct + func (*MsgClaimAtomicSwapResponse) Descriptor() ([]byte, []int) + func (*MsgClaimAtomicSwapResponse) ProtoMessage() + func (m *MsgClaimAtomicSwapResponse) Marshal() (dAtA []byte, err error) + func (m *MsgClaimAtomicSwapResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgClaimAtomicSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgClaimAtomicSwapResponse) Reset() + func (m *MsgClaimAtomicSwapResponse) Size() (n int) + func (m *MsgClaimAtomicSwapResponse) String() string + func (m *MsgClaimAtomicSwapResponse) Unmarshal(dAtA []byte) error + func (m *MsgClaimAtomicSwapResponse) XXX_DiscardUnknown() + func (m *MsgClaimAtomicSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgClaimAtomicSwapResponse) XXX_Merge(src proto.Message) + func (m *MsgClaimAtomicSwapResponse) XXX_Size() int + func (m *MsgClaimAtomicSwapResponse) XXX_Unmarshal(b []byte) error + type MsgClient interface + ClaimAtomicSwap func(ctx context.Context, in *MsgClaimAtomicSwap, opts ...grpc.CallOption) (*MsgClaimAtomicSwapResponse, error) + CreateAtomicSwap func(ctx context.Context, in *MsgCreateAtomicSwap, opts ...grpc.CallOption) (*MsgCreateAtomicSwapResponse, error) + RefundAtomicSwap func(ctx context.Context, in *MsgRefundAtomicSwap, opts ...grpc.CallOption) (*MsgRefundAtomicSwapResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgCreateAtomicSwap struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + From string + HeightSpan uint64 + RandomNumberHash string + RecipientOtherChain string + SenderOtherChain string + Timestamp int64 + To string + func NewMsgCreateAtomicSwap(from, to string, recipientOtherChain, senderOtherChain string, ...) MsgCreateAtomicSwap + func (*MsgCreateAtomicSwap) Descriptor() ([]byte, []int) + func (*MsgCreateAtomicSwap) ProtoMessage() + func (m *MsgCreateAtomicSwap) Marshal() (dAtA []byte, err error) + func (m *MsgCreateAtomicSwap) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateAtomicSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateAtomicSwap) Reset() + func (m *MsgCreateAtomicSwap) Size() (n int) + func (m *MsgCreateAtomicSwap) Unmarshal(dAtA []byte) error + func (m *MsgCreateAtomicSwap) XXX_DiscardUnknown() + func (m *MsgCreateAtomicSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateAtomicSwap) XXX_Merge(src proto.Message) + func (m *MsgCreateAtomicSwap) XXX_Size() int + func (m *MsgCreateAtomicSwap) XXX_Unmarshal(b []byte) error + func (msg MsgCreateAtomicSwap) GetInvolvedAddresses() []sdk.AccAddress + func (msg MsgCreateAtomicSwap) GetSignBytes() []byte + func (msg MsgCreateAtomicSwap) GetSigners() []sdk.AccAddress + func (msg MsgCreateAtomicSwap) Route() string + func (msg MsgCreateAtomicSwap) String() string + func (msg MsgCreateAtomicSwap) Type() string + func (msg MsgCreateAtomicSwap) ValidateBasic() error + type MsgCreateAtomicSwapResponse struct + func (*MsgCreateAtomicSwapResponse) Descriptor() ([]byte, []int) + func (*MsgCreateAtomicSwapResponse) ProtoMessage() + func (m *MsgCreateAtomicSwapResponse) Marshal() (dAtA []byte, err error) + func (m *MsgCreateAtomicSwapResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateAtomicSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateAtomicSwapResponse) Reset() + func (m *MsgCreateAtomicSwapResponse) Size() (n int) + func (m *MsgCreateAtomicSwapResponse) String() string + func (m *MsgCreateAtomicSwapResponse) Unmarshal(dAtA []byte) error + func (m *MsgCreateAtomicSwapResponse) XXX_DiscardUnknown() + func (m *MsgCreateAtomicSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateAtomicSwapResponse) XXX_Merge(src proto.Message) + func (m *MsgCreateAtomicSwapResponse) XXX_Size() int + func (m *MsgCreateAtomicSwapResponse) XXX_Unmarshal(b []byte) error + type MsgRefundAtomicSwap struct + From string + SwapID string + func NewMsgRefundAtomicSwap(from string, swapID tmbytes.HexBytes) MsgRefundAtomicSwap + func (*MsgRefundAtomicSwap) Descriptor() ([]byte, []int) + func (*MsgRefundAtomicSwap) ProtoMessage() + func (m *MsgRefundAtomicSwap) Marshal() (dAtA []byte, err error) + func (m *MsgRefundAtomicSwap) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRefundAtomicSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRefundAtomicSwap) Reset() + func (m *MsgRefundAtomicSwap) Size() (n int) + func (m *MsgRefundAtomicSwap) Unmarshal(dAtA []byte) error + func (m *MsgRefundAtomicSwap) XXX_DiscardUnknown() + func (m *MsgRefundAtomicSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRefundAtomicSwap) XXX_Merge(src proto.Message) + func (m *MsgRefundAtomicSwap) XXX_Size() int + func (m *MsgRefundAtomicSwap) XXX_Unmarshal(b []byte) error + func (msg MsgRefundAtomicSwap) GetInvolvedAddresses() []sdk.AccAddress + func (msg MsgRefundAtomicSwap) GetSignBytes() []byte + func (msg MsgRefundAtomicSwap) GetSigners() []sdk.AccAddress + func (msg MsgRefundAtomicSwap) Route() string + func (msg MsgRefundAtomicSwap) String() string + func (msg MsgRefundAtomicSwap) Type() string + func (msg MsgRefundAtomicSwap) ValidateBasic() error + type MsgRefundAtomicSwapResponse struct + func (*MsgRefundAtomicSwapResponse) Descriptor() ([]byte, []int) + func (*MsgRefundAtomicSwapResponse) ProtoMessage() + func (m *MsgRefundAtomicSwapResponse) Marshal() (dAtA []byte, err error) + func (m *MsgRefundAtomicSwapResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRefundAtomicSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRefundAtomicSwapResponse) Reset() + func (m *MsgRefundAtomicSwapResponse) Size() (n int) + func (m *MsgRefundAtomicSwapResponse) String() string + func (m *MsgRefundAtomicSwapResponse) Unmarshal(dAtA []byte) error + func (m *MsgRefundAtomicSwapResponse) XXX_DiscardUnknown() + func (m *MsgRefundAtomicSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRefundAtomicSwapResponse) XXX_Merge(src proto.Message) + func (m *MsgRefundAtomicSwapResponse) XXX_Size() int + func (m *MsgRefundAtomicSwapResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + ClaimAtomicSwap func(context.Context, *MsgClaimAtomicSwap) (*MsgClaimAtomicSwapResponse, error) + CreateAtomicSwap func(context.Context, *MsgCreateAtomicSwap) (*MsgCreateAtomicSwapResponse, error) + RefundAtomicSwap func(context.Context, *MsgRefundAtomicSwap) (*MsgRefundAtomicSwapResponse, error) + type Params struct + AssetParams AssetParams + func DefaultParams() Params + func NewParams(ap []AssetParam) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + func (m *Params) GetAssetParams() AssetParams + 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 + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + func (p Params) Validate() error + type QueryAssetSupplies struct + Limit int + Page int + func NewQueryAssetSupplies(page int, limit int) QueryAssetSupplies + type QueryAssetSuppliesRequest struct + func (*QueryAssetSuppliesRequest) Descriptor() ([]byte, []int) + func (*QueryAssetSuppliesRequest) ProtoMessage() + func (m *QueryAssetSuppliesRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAssetSuppliesRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAssetSuppliesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAssetSuppliesRequest) Reset() + func (m *QueryAssetSuppliesRequest) Size() (n int) + func (m *QueryAssetSuppliesRequest) String() string + func (m *QueryAssetSuppliesRequest) Unmarshal(dAtA []byte) error + func (m *QueryAssetSuppliesRequest) XXX_DiscardUnknown() + func (m *QueryAssetSuppliesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAssetSuppliesRequest) XXX_Merge(src proto.Message) + func (m *QueryAssetSuppliesRequest) XXX_Size() int + func (m *QueryAssetSuppliesRequest) XXX_Unmarshal(b []byte) error + type QueryAssetSuppliesResponse struct + AssetSupplies []AssetSupplyResponse + func (*QueryAssetSuppliesResponse) Descriptor() ([]byte, []int) + func (*QueryAssetSuppliesResponse) ProtoMessage() + func (m *QueryAssetSuppliesResponse) GetAssetSupplies() []AssetSupplyResponse + func (m *QueryAssetSuppliesResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAssetSuppliesResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAssetSuppliesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAssetSuppliesResponse) Reset() + func (m *QueryAssetSuppliesResponse) Size() (n int) + func (m *QueryAssetSuppliesResponse) String() string + func (m *QueryAssetSuppliesResponse) Unmarshal(dAtA []byte) error + func (m *QueryAssetSuppliesResponse) XXX_DiscardUnknown() + func (m *QueryAssetSuppliesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAssetSuppliesResponse) XXX_Merge(src proto.Message) + func (m *QueryAssetSuppliesResponse) XXX_Size() int + func (m *QueryAssetSuppliesResponse) XXX_Unmarshal(b []byte) error + type QueryAssetSupply struct + Denom string + func NewQueryAssetSupply(denom string) QueryAssetSupply + type QueryAssetSupplyRequest struct + Denom string + func (*QueryAssetSupplyRequest) Descriptor() ([]byte, []int) + func (*QueryAssetSupplyRequest) ProtoMessage() + func (m *QueryAssetSupplyRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAssetSupplyRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAssetSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAssetSupplyRequest) Reset() + func (m *QueryAssetSupplyRequest) Size() (n int) + func (m *QueryAssetSupplyRequest) String() string + func (m *QueryAssetSupplyRequest) Unmarshal(dAtA []byte) error + func (m *QueryAssetSupplyRequest) XXX_DiscardUnknown() + func (m *QueryAssetSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAssetSupplyRequest) XXX_Merge(src proto.Message) + func (m *QueryAssetSupplyRequest) XXX_Size() int + func (m *QueryAssetSupplyRequest) XXX_Unmarshal(b []byte) error + type QueryAssetSupplyResponse struct + AssetSupply AssetSupplyResponse + func (*QueryAssetSupplyResponse) Descriptor() ([]byte, []int) + func (*QueryAssetSupplyResponse) ProtoMessage() + func (m *QueryAssetSupplyResponse) GetAssetSupply() AssetSupplyResponse + func (m *QueryAssetSupplyResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAssetSupplyResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAssetSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAssetSupplyResponse) Reset() + func (m *QueryAssetSupplyResponse) Size() (n int) + func (m *QueryAssetSupplyResponse) String() string + func (m *QueryAssetSupplyResponse) Unmarshal(dAtA []byte) error + func (m *QueryAssetSupplyResponse) XXX_DiscardUnknown() + func (m *QueryAssetSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAssetSupplyResponse) XXX_Merge(src proto.Message) + func (m *QueryAssetSupplyResponse) XXX_Size() int + func (m *QueryAssetSupplyResponse) XXX_Unmarshal(b []byte) error + type QueryAtomicSwapByID struct + SwapID tmbytes.HexBytes + func NewQueryAtomicSwapByID(swapBytes tmbytes.HexBytes) QueryAtomicSwapByID + type QueryAtomicSwapRequest struct + SwapId string + func (*QueryAtomicSwapRequest) Descriptor() ([]byte, []int) + func (*QueryAtomicSwapRequest) ProtoMessage() + func (m *QueryAtomicSwapRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAtomicSwapRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAtomicSwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAtomicSwapRequest) Reset() + func (m *QueryAtomicSwapRequest) Size() (n int) + func (m *QueryAtomicSwapRequest) String() string + func (m *QueryAtomicSwapRequest) Unmarshal(dAtA []byte) error + func (m *QueryAtomicSwapRequest) XXX_DiscardUnknown() + func (m *QueryAtomicSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAtomicSwapRequest) XXX_Merge(src proto.Message) + func (m *QueryAtomicSwapRequest) XXX_Size() int + func (m *QueryAtomicSwapRequest) XXX_Unmarshal(b []byte) error + type QueryAtomicSwapResponse struct + AtomicSwap AtomicSwapResponse + func (*QueryAtomicSwapResponse) Descriptor() ([]byte, []int) + func (*QueryAtomicSwapResponse) ProtoMessage() + func (m *QueryAtomicSwapResponse) GetAtomicSwap() AtomicSwapResponse + func (m *QueryAtomicSwapResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAtomicSwapResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAtomicSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAtomicSwapResponse) Reset() + func (m *QueryAtomicSwapResponse) Size() (n int) + func (m *QueryAtomicSwapResponse) String() string + func (m *QueryAtomicSwapResponse) Unmarshal(dAtA []byte) error + func (m *QueryAtomicSwapResponse) XXX_DiscardUnknown() + func (m *QueryAtomicSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAtomicSwapResponse) XXX_Merge(src proto.Message) + func (m *QueryAtomicSwapResponse) XXX_Size() int + func (m *QueryAtomicSwapResponse) XXX_Unmarshal(b []byte) error + type QueryAtomicSwaps struct + Direction SwapDirection + Expiration uint64 + Involve sdk.AccAddress + Limit int + Page int + Status SwapStatus + func NewQueryAtomicSwaps(page, limit int, involve sdk.AccAddress, expiration uint64, status SwapStatus, ...) QueryAtomicSwaps + type QueryAtomicSwapsRequest struct + Direction SwapDirection + Expiration uint64 + Involve string + Pagination *query.PageRequest + Status SwapStatus + func (*QueryAtomicSwapsRequest) Descriptor() ([]byte, []int) + func (*QueryAtomicSwapsRequest) ProtoMessage() + func (m *QueryAtomicSwapsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAtomicSwapsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAtomicSwapsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAtomicSwapsRequest) Reset() + func (m *QueryAtomicSwapsRequest) Size() (n int) + func (m *QueryAtomicSwapsRequest) String() string + func (m *QueryAtomicSwapsRequest) Unmarshal(dAtA []byte) error + func (m *QueryAtomicSwapsRequest) XXX_DiscardUnknown() + func (m *QueryAtomicSwapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAtomicSwapsRequest) XXX_Merge(src proto.Message) + func (m *QueryAtomicSwapsRequest) XXX_Size() int + func (m *QueryAtomicSwapsRequest) XXX_Unmarshal(b []byte) error + type QueryAtomicSwapsResponse struct + AtomicSwaps []AtomicSwapResponse + Pagination *query.PageResponse + func (*QueryAtomicSwapsResponse) Descriptor() ([]byte, []int) + func (*QueryAtomicSwapsResponse) ProtoMessage() + func (m *QueryAtomicSwapsResponse) GetAtomicSwaps() []AtomicSwapResponse + func (m *QueryAtomicSwapsResponse) GetPagination() *query.PageResponse + func (m *QueryAtomicSwapsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAtomicSwapsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAtomicSwapsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAtomicSwapsResponse) Reset() + func (m *QueryAtomicSwapsResponse) Size() (n int) + func (m *QueryAtomicSwapsResponse) String() string + func (m *QueryAtomicSwapsResponse) Unmarshal(dAtA []byte) error + func (m *QueryAtomicSwapsResponse) XXX_DiscardUnknown() + func (m *QueryAtomicSwapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAtomicSwapsResponse) XXX_Merge(src proto.Message) + func (m *QueryAtomicSwapsResponse) XXX_Size() int + func (m *QueryAtomicSwapsResponse) XXX_Unmarshal(b []byte) error + type QueryClient interface + AssetSupplies func(ctx context.Context, in *QueryAssetSuppliesRequest, opts ...grpc.CallOption) (*QueryAssetSuppliesResponse, error) + AssetSupply func(ctx context.Context, in *QueryAssetSupplyRequest, opts ...grpc.CallOption) (*QueryAssetSupplyResponse, error) + AtomicSwap func(ctx context.Context, in *QueryAtomicSwapRequest, opts ...grpc.CallOption) (*QueryAtomicSwapResponse, error) + AtomicSwaps func(ctx context.Context, in *QueryAtomicSwapsRequest, opts ...grpc.CallOption) (*QueryAtomicSwapsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryParamsRequest struct + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsRequest) Reset() + func (m *QueryParamsRequest) Size() (n int) + func (m *QueryParamsRequest) String() string + func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error + func (m *QueryParamsRequest) XXX_DiscardUnknown() + func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsRequest) XXX_Merge(src proto.Message) + func (m *QueryParamsRequest) XXX_Size() int + func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error + type QueryParamsResponse struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + func (m *QueryParamsResponse) GetParams() Params + func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsResponse) Reset() + func (m *QueryParamsResponse) Size() (n int) + func (m *QueryParamsResponse) String() string + func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error + func (m *QueryParamsResponse) XXX_DiscardUnknown() + func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsResponse) XXX_Merge(src proto.Message) + func (m *QueryParamsResponse) XXX_Size() int + func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + AssetSupplies func(context.Context, *QueryAssetSuppliesRequest) (*QueryAssetSuppliesResponse, error) + AssetSupply func(context.Context, *QueryAssetSupplyRequest) (*QueryAssetSupplyResponse, error) + AtomicSwap func(context.Context, *QueryAtomicSwapRequest) (*QueryAtomicSwapResponse, error) + AtomicSwaps func(context.Context, *QueryAtomicSwapsRequest) (*QueryAtomicSwapsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + type SupplyLimit struct + Limit github_com_cosmos_cosmos_sdk_types.Int + TimeBasedLimit github_com_cosmos_cosmos_sdk_types.Int + TimeLimited bool + TimePeriod time.Duration + func (*SupplyLimit) Descriptor() ([]byte, []int) + func (*SupplyLimit) ProtoMessage() + func (m *SupplyLimit) GetTimeLimited() bool + func (m *SupplyLimit) GetTimePeriod() time.Duration + func (m *SupplyLimit) Marshal() (dAtA []byte, err error) + func (m *SupplyLimit) MarshalTo(dAtA []byte) (int, error) + func (m *SupplyLimit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SupplyLimit) Reset() + func (m *SupplyLimit) Size() (n int) + func (m *SupplyLimit) String() string + func (m *SupplyLimit) Unmarshal(dAtA []byte) error + func (m *SupplyLimit) XXX_DiscardUnknown() + func (m *SupplyLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SupplyLimit) XXX_Merge(src proto.Message) + func (m *SupplyLimit) XXX_Size() int + func (m *SupplyLimit) XXX_Unmarshal(b []byte) error + func (sl SupplyLimit) Equals(sl2 SupplyLimit) bool + type SwapDirection int32 + const SWAP_DIRECTION_INCOMING + const SWAP_DIRECTION_OUTGOING + const SWAP_DIRECTION_UNSPECIFIED + func NewSwapDirectionFromString(str string) SwapDirection + func (SwapDirection) EnumDescriptor() ([]byte, []int) + func (direction SwapDirection) IsValid() bool + func (x SwapDirection) String() string + type SwapStatus int32 + const SWAP_STATUS_COMPLETED + const SWAP_STATUS_EXPIRED + const SWAP_STATUS_OPEN + const SWAP_STATUS_UNSPECIFIED + func NewSwapStatusFromString(str string) SwapStatus + func (SwapStatus) EnumDescriptor() ([]byte, []int) + func (status SwapStatus) IsValid() bool + func (x SwapStatus) String() string + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) ClaimAtomicSwap(ctx context.Context, req *MsgClaimAtomicSwap) (*MsgClaimAtomicSwapResponse, error) + func (*UnimplementedMsgServer) CreateAtomicSwap(ctx context.Context, req *MsgCreateAtomicSwap) (*MsgCreateAtomicSwapResponse, error) + func (*UnimplementedMsgServer) RefundAtomicSwap(ctx context.Context, req *MsgRefundAtomicSwap) (*MsgRefundAtomicSwapResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) AssetSupplies(ctx context.Context, req *QueryAssetSuppliesRequest) (*QueryAssetSuppliesResponse, error) + func (*UnimplementedQueryServer) AssetSupply(ctx context.Context, req *QueryAssetSupplyRequest) (*QueryAssetSupplyResponse, error) + func (*UnimplementedQueryServer) AtomicSwap(ctx context.Context, req *QueryAtomicSwapRequest) (*QueryAtomicSwapResponse, error) + func (*UnimplementedQueryServer) AtomicSwaps(ctx context.Context, req *QueryAtomicSwapsRequest) (*QueryAtomicSwapsResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)