# Functions
CalculateRandomHash calculates the hash of a number and timestamp.
CalculateSwapID calculates the hash of a RandomNumberHash, sdk.AccAddress, and string.
DefaultGenesisState - default GenesisState used by Cosmos Hub.
DefaultParams returns default params for bep3 module.
GenerateSecureRandomNumber generates cryptographically strong pseudo-random number.
GetAtomicSwapByHeightKey is used by the AtomicSwapByBlock index and AtomicSwapLongtermStorage index.
NewAssetParam returns a new AssetParam.
NewAssetSupply initializes a new AssetSupply.
NewAtomicSwap returns a new AtomicSwap.
NewGenesisState creates a new GenesisState object.
No description provided by the author
NewMsgClaimAtomicSwap initializes a new MsgClaimAtomicSwap.
No description provided by the author
NewMsgCreateAtomicSwap initializes a new MsgCreateAtomicSwap.
NewMsgRefundAtomicSwap initializes a new MsgRefundAtomicSwap.
NewParams returns a new params object.
NewQueryAssetSupplies creates a new QueryAssetSupplies.
NewQueryAssetSupply creates a new QueryAssetSupply.
NewQueryAtomicSwapByID creates a new QueryAtomicSwapByID.
NewQueryAtomicSwaps creates a new instance of QueryAtomicSwaps.
No description provided by the author
NewSwapDirectionFromString converts string to SwapDirection type.
NewSwapStatusFromString converts string to SwapStatus type.
ParamKeyTable Key declaration for parameters.
No description provided by the author
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the bep3 module.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
# Constants
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultLongtermStorageDuration is 1 week (assuming a block time of 7 seconds).
DefaultParamspace default namestore.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
Events for bep3 module.
No description provided by the author
No description provided by the author
No description provided by the author
ModuleName is the name of the module.
QuerierRoute is the querier route for bep3.
QueryGetAssetSupplies command for getting a list of asset supplies.
QueryGetAssetSupply command for getting info about an asset's supply.
QueryGetAtomicSwap command for getting info about an atomic swap.
QueryGetAtomicSwaps command for getting a list of atomic swaps.
QueryGetParams command for getting module params.
No description provided by the author
No description provided by the author
No description provided by the author
RouterKey to be used for routing msgs.
StoreKey to be used when creating the KVStore.
SWAP_DIRECTION_INCOMING represents is incoming swap (to the aeth chain).
SWAP_DIRECTION_OUTGOING represents an outgoing swap (from the aeth chain).
SWAP_DIRECTION_UNSPECIFIED represents unspecified or invalid swap direcation.
SWAP_STATUS_COMPLETED represents a completed swap.
SWAP_STATUS_EXPIRED represents an expired swap.
SWAP_STATUS_OPEN represents an open swap.
SWAP_STATUS_UNSPECIFIED represents an unspecified status.
No description provided by the author
# Variables
Key prefixes.
prefix for keys of the AtomicSwapsByBlock index.
ensure Msg interface compliance at compile time.
prefix for keys that store AtomicSwaps.
prefix for keys of the AtomicSwapLongtermStorage index.
0.00001 BNB.
10,000 BNB.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
ErrAssetNotActive error for when an asset is currently inactive.
ErrAssetNotSupported error for when an asset is not supported.
ErrAssetSupplyNotFound error for when an asset's supply is not found in the store.
ErrAtomicSwapAlreadyExists error for when an AtomicSwap with this swapID already exists.
ErrAtomicSwapNotFound error for when an atomic swap is not found.
ErrExceedsAvailableSupply error for when the proposed outgoing amount exceeds the total available supply.
ErrExceedsSupplyLimit error for when the proposed supply increase would put the supply above limit.
ErrExceedsTimeBasedSupplyLimit error for when the proposed supply increase would put the supply above limit for the current time period.
ErrInsufficientAmount error for when a swap's amount cannot cover the deputy's fixed fee.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidAmount error for when a swap's amount is outside acceptable range.
ErrInvalidClaimSecret error when a submitted secret doesn't match an AtomicSwap's swapID.
ErrInvalidCurrentSupply error for when the proposed decrease would result in a negative current supplyx.
ErrInvalidHeightSpan error for when a proposed height span is outside of lock time range.
ErrInvalidIncomingSupply error for when the proposed decrease would result in a negative incoming supply.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidOutgoingSupply error for when the proposed decrease would result in a negative outgoing supply.
ErrInvalidSwapAccount error for when a swap involves an invalid account.
ErrInvalidTimestamp error for when an timestamp is outside of bounds.
ErrSwapNotClaimable error for when an atomic swap is not open and cannot be claimed.
ErrSwapNotRefundable error for when an AtomicSwap has not expired and cannot be refunded.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Parameter keys.
ModuleCdc references the global x/bep3 module codec.
Key prefixes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AssetParam defines parameters for each bep3 asset.
AssetSupply defines information about an asset's supply.
AssetSupplyResponse defines information about an asset's supply.
AtomicSwap defines an atomic swap between chains for the pricefeed module.
AtomicSwapResponse represents the returned atomic swap properties.
GenesisState defines the pricefeed module's genesis state.
LegacyAugmentedAtomicSwap defines an ID and AtomicSwap fields on the top level.
MsgClaimAtomicSwap defines the Msg/ClaimAtomicSwap request type.
MsgClaimAtomicSwapResponse defines the Msg/ClaimAtomicSwap response type.
MsgCreateAtomicSwap defines the Msg/CreateAtomicSwap request type.
MsgCreateAtomicSwapResponse defines the Msg/CreateAtomicSwap response type.
MsgRefundAtomicSwap defines the Msg/RefundAtomicSwap request type.
MsgRefundAtomicSwapResponse defines the Msg/RefundAtomicSwap response type.
Params defines the parameters for the bep3 module.
QueryAssetSupplies contains the params for an AssetSupplies query.
QueryAssetSuppliesRequest is the request type for the Query/AssetSupplies RPC method.
QueryAssetSuppliesResponse is the response type for the Query/AssetSupplies RPC method.
QueryAssetSupply contains the params for query 'custom/bep3/supply'.
QueryAssetSupplyRequest is the request type for the Query/AssetSupply RPC method.
QueryAssetSupplyResponse is the response type for the Query/AssetSupply RPC method.
QueryAtomicSwapByID contains the params for query 'custom/bep3/swap'.
QueryAtomicSwapRequest is the request type for the Query/AtomicSwap RPC method.
QueryAtomicSwapResponse is the response type for the Query/AtomicSwap RPC method.
QueryAtomicSwaps contains the params for an AtomicSwaps query.
QueryAtomicSwapsRequest is the request type for the Query/AtomicSwaps RPC method.
QueryAtomicSwapsResponse is the response type for the Query/AtomicSwaps RPC method.
QueryParamsRequest defines the request type for querying x/bep3 parameters.
QueryParamsResponse defines the response type for querying x/bep3 parameters.
SupplyLimit define the absolute and time-based limits for an assets's supply.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
# Interfaces
AccountKeeper defines the expected account keeper.
BankKeeper defines the expected interface needed to retrieve account balances.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
# Type aliases
AssetParams array of AssetParam.
AssetSupplies is a slice of AssetSupply.
AtomicSwaps is a slice of AtomicSwap.
No description provided by the author
SwapDirection is the direction of an AtomicSwap.
SwapStatus is the status of an AtomicSwap.