Documentation ¶
Overview ¶
nolint DO NOT EDIT - generated by aliasgen tool (github.com/rhuairahrighairidh/aliasgen)
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, k Keeper)
- func InitGenesis(ctx sdk.Context, keeper Keeper, supplyKeeper SupplyKeeper, gs GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type AppModuleSimulation
- type AssetParam
- type AssetParams
- type AssetSupplies
- type AssetSupply
- type AtomicSwap
- type AtomicSwaps
- type CodeType
- type GenesisState
- type Keeper
- type MsgClaimAtomicSwap
- type MsgCreateAtomicSwap
- type MsgRefundAtomicSwap
- type Params
- type QueryAssetSupply
- type QueryAtomicSwapByID
- type QueryAtomicSwaps
- type SupplyKeeper
- type Swap
- type SwapDirection
- type SwapStatus
Constants ¶
const ( AddrByteCount = types.AddrByteCount AttributeKeyAmount = types.AttributeKeyAmount AttributeKeyAtomicSwapID = types.AttributeKeyAtomicSwapID AttributeKeyClaimSender = types.AttributeKeyClaimSender AttributeKeyDirection = types.AttributeKeyDirection AttributeKeyExpectedIncome = types.AttributeKeyExpectedIncome AttributeKeyExpireHeight = types.AttributeKeyExpireHeight AttributeKeyRandomNumber = types.AttributeKeyRandomNumber AttributeKeyRandomNumberHash = types.AttributeKeyRandomNumberHash AttributeKeyRecipient = types.AttributeKeyRecipient AttributeKeyRefundSender = types.AttributeKeyRefundSender AttributeKeySender = types.AttributeKeySender AttributeKeySenderOtherChain = types.AttributeKeySenderOtherChain AttributeKeyTimestamp = types.AttributeKeyTimestamp AttributeValueCategory = types.AttributeValueCategory CalcSwapID = types.CalcSwapID ClaimAtomicSwap = types.ClaimAtomicSwap CodeAssetNotActive = types.CodeAssetNotActive CodeAssetNotSupported = types.CodeAssetNotSupported CodeAssetSupplyNotFound = types.CodeAssetSupplyNotFound CodeAtomicSwapAlreadyExists = types.CodeAtomicSwapAlreadyExists CodeAtomicSwapNotFound = types.CodeAtomicSwapNotFound CodeExceedsAvailableSupply = types.CodeExceedsAvailableSupply CodeExceedsSupplyLimit = types.CodeExceedsSupplyLimit CodeInvalidClaimSecret = types.CodeInvalidClaimSecret CodeInvalidCurrentSupply = types.CodeInvalidCurrentSupply CodeInvalidHeightSpan = types.CodeInvalidHeightSpan CodeInvalidIncomingSupply = types.CodeInvalidIncomingSupply CodeInvalidOutgoingSupply = types.CodeInvalidOutgoingSupply CodeInvalidTimestamp = types.CodeInvalidTimestamp CodeSwapNotClaimable = types.CodeSwapNotClaimable CodeSwapNotRefundable = types.CodeSwapNotRefundable Completed = types.Completed CreateAtomicSwap = types.CreateAtomicSwap DefaultCodespace = types.DefaultCodespace DefaultLongtermStorageDuration = types.DefaultLongtermStorageDuration DefaultParamspace = types.DefaultParamspace DepositAtomicSwap = types.DepositAtomicSwap EventTypeClaimAtomicSwap = types.EventTypeClaimAtomicSwap EventTypeCreateAtomicSwap = types.EventTypeCreateAtomicSwap EventTypeDepositAtomicSwap = types.EventTypeDepositAtomicSwap EventTypeRefundAtomicSwap = types.EventTypeRefundAtomicSwap Expired = types.Expired INVALID = types.INVALID Incoming = types.Incoming Int64Size = types.Int64Size MaxExpectedIncomeLength = types.MaxExpectedIncomeLength MaxOtherChainAddrLength = types.MaxOtherChainAddrLength ModuleName = types.ModuleName NULL = types.NULL Open = types.Open Outgoing = types.Outgoing QuerierRoute = types.QuerierRoute QueryGetAssetSupply = types.QueryGetAssetSupply QueryGetAtomicSwap = types.QueryGetAtomicSwap QueryGetAtomicSwaps = types.QueryGetAtomicSwaps QueryGetParams = types.QueryGetParams RandomNumberHashLength = types.RandomNumberHashLength RandomNumberLength = types.RandomNumberLength RefundAtomicSwap = types.RefundAtomicSwap RouterKey = types.RouterKey StoreKey = types.StoreKey SwapIDLength = types.SwapIDLength )
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier RegisterRoutes = rest.RegisterRoutes BytesToHex = types.BytesToHex CalculateRandomHash = types.CalculateRandomHash CalculateSwapID = types.CalculateSwapID DefaultGenesisState = types.DefaultGenesisState DefaultParams = types.DefaultParams ErrAssetNotActive = types.ErrAssetNotActive ErrAssetNotSupported = types.ErrAssetNotSupported ErrAssetSupplyNotFound = types.ErrAssetSupplyNotFound ErrAtomicSwapAlreadyExists = types.ErrAtomicSwapAlreadyExists ErrAtomicSwapNotFound = types.ErrAtomicSwapNotFound ErrExceedsAvailableSupply = types.ErrExceedsAvailableSupply ErrExceedsSupplyLimit = types.ErrExceedsSupplyLimit ErrInvalidClaimSecret = types.ErrInvalidClaimSecret ErrInvalidCurrentSupply = types.ErrInvalidCurrentSupply ErrInvalidHeightSpan = types.ErrInvalidHeightSpan ErrInvalidIncomingSupply = types.ErrInvalidIncomingSupply ErrInvalidOutgoingSupply = types.ErrInvalidOutgoingSupply ErrInvalidTimestamp = types.ErrInvalidTimestamp ErrSwapNotClaimable = types.ErrSwapNotClaimable ErrSwapNotRefundable = types.ErrSwapNotRefundable GenerateSecureRandomNumber = types.GenerateSecureRandomNumber GetAtomicSwapByHeightKey = types.GetAtomicSwapByHeightKey HexToBytes = types.HexToBytes NewAssetSupply = types.NewAssetSupply NewAtomicSwap = types.NewAtomicSwap NewGenesisState = types.NewGenesisState NewMsgClaimAtomicSwap = types.NewMsgClaimAtomicSwap NewMsgCreateAtomicSwap = types.NewMsgCreateAtomicSwap NewMsgRefundAtomicSwap = types.NewMsgRefundAtomicSwap NewParams = types.NewParams NewQueryAssetSupply = types.NewQueryAssetSupply NewQueryAtomicSwapByID = types.NewQueryAtomicSwapByID NewQueryAtomicSwaps = types.NewQueryAtomicSwaps NewSwapDirectionFromString = types.NewSwapDirectionFromString NewSwapStatusFromString = types.NewSwapStatusFromString ParamKeyTable = types.ParamKeyTable RegisterCodec = types.RegisterCodec Uint64FromBytes = types.Uint64FromBytes Uint64ToBytes = types.Uint64ToBytes // variable aliases AbsoluteMaximumBlockLock = types.AbsoluteMaximumBlockLock AbsoluteMinimumBlockLock = types.AbsoluteMinimumBlockLock AssetSupplyKeyPrefix = types.AssetSupplyKeyPrefix AtomicSwapByBlockPrefix = types.AtomicSwapByBlockPrefix AtomicSwapCoinsAccAddr = types.AtomicSwapCoinsAccAddr AtomicSwapKeyPrefix = types.AtomicSwapKeyPrefix AtomicSwapLongtermStoragePrefix = types.AtomicSwapLongtermStoragePrefix DefaultMaxBlockLock = types.DefaultMaxBlockLock DefaultMinBlockLock = types.DefaultMinBlockLock DefaultSupportedAssets = types.DefaultSupportedAssets KeyBnbDeputyAddress = types.KeyBnbDeputyAddress KeyMaxBlockLock = types.KeyMaxBlockLock KeyMinBlockLock = types.KeyMinBlockLock KeySupportedAssets = types.KeySupportedAssets ModuleCdc = types.ModuleCdc )
Functions ¶
func BeginBlocker ¶
BeginBlocker runs at the start of every block
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, supplyKeeper SupplyKeeper, gs GenesisState)
InitGenesis initializes the store state from a genesis state.
func NewHandler ¶
NewHandler creates an sdk.Handler for all the bep3 type messages
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic AppModuleSimulation // contains filtered or unexported fields }
AppModule implements the sdk.AppModule interface.
func NewAppModule ¶
func NewAppModule(keeper Keeper, supplyKeeper SupplyKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the bep3 module.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the bep3 module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the bep3 module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the bep3 module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the bep3 module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the bep3 module sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the bep3 module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants registers the bep3 module invariants.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the bep3 module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the bep3 module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns no root query command for the bep3 module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the bep3 module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the bep3 module's name.
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the bep3 module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the bep3 module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the bep3 module.
type AppModuleSimulation ¶
type AppModuleSimulation struct{}
AppModuleSimulation defines the module simulation functions used by the auction module.
func (AppModuleSimulation) GenerateGenesisState ¶
func (AppModuleSimulation) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the auction module
func (AppModuleSimulation) RandomizedParams ¶
func (AppModuleSimulation) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams creates randomized auction param changes for the simulator.
func (AppModuleSimulation) RegisterStoreDecoder ¶
func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for auction module's types
type AssetParam ¶
type AssetParam = types.AssetParam
type AssetParams ¶
type AssetParams = types.AssetParams
type AssetSupplies ¶
type AssetSupplies = types.AssetSupplies
type AssetSupply ¶
type AssetSupply = types.AssetSupply
type AtomicSwap ¶
type AtomicSwap = types.AtomicSwap
type AtomicSwaps ¶
type AtomicSwaps = types.AtomicSwaps
type GenesisState ¶
type GenesisState = types.GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) (data GenesisState)
ExportGenesis writes the current store values to a genesis file, which can be imported again with InitGenesis
type MsgClaimAtomicSwap ¶
type MsgClaimAtomicSwap = types.MsgClaimAtomicSwap
type MsgCreateAtomicSwap ¶
type MsgCreateAtomicSwap = types.MsgCreateAtomicSwap
type MsgRefundAtomicSwap ¶
type MsgRefundAtomicSwap = types.MsgRefundAtomicSwap
type QueryAssetSupply ¶
type QueryAssetSupply = types.QueryAssetSupply
type QueryAtomicSwapByID ¶
type QueryAtomicSwapByID = types.QueryAtomicSwapByID
type QueryAtomicSwaps ¶
type QueryAtomicSwaps = types.QueryAtomicSwaps
type SupplyKeeper ¶
type SupplyKeeper = types.SupplyKeeper
type SwapDirection ¶
type SwapDirection = types.SwapDirection
type SwapStatus ¶
type SwapStatus = types.SwapStatus