erc20

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName        = types.ModuleName
	StoreKey          = types.StoreKey
	RouterKey         = types.RouterKey
	DefaultParamspace = types.DefaultParamspace
)

nolint

Variables

View Source
var (
	NewKeeper                = keeper.NewKeeper
	NewIBCTransferHooks      = keeper.NewIBCTransferHooks
	NewSendToIbcEventHandler = keeper.NewSendToIbcEventHandler

	NewSendNative20ToIbcEventHandler = keeper.NewSendNative20ToIbcEventHandler
)

nolint

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) []abci.ValidatorUpdate

InitGenesis initializes genesis state based on exported genesis

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler returns a handler for erc20 type messages.

func NewProposalHandler

func NewProposalHandler(k *Keeper) govTypes.Handler

NewProposalHandler handles "gov" type message in "erc20"

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule implements an application module for the erc20 module.

func NewAppModule

func NewAppModule(k Keeper) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)

BeginBlock function for module at start of each block

func (AppModule) EndBlock

func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock function for module at end of block

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis exports the genesis state to be used by daemon

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis instantiates the genesis state

func (AppModule) Name

func (AppModule) Name() string

Name is module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler sets up a new handler for module

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler sets up new querier handler for module

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute sets up path for queries

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants interface for registering invariants

func (AppModule) Route

func (am AppModule) Route() string

Route specifies path for transactions

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic struct

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis is json default structure

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd Gets the root query command of this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd Gets the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name for app module basic

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers types for module

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes Registers rest routes

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis is the validation check of the Genesis

type GenesisState

type GenesisState = types.GenesisState

nolint

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

ExportGenesis exports genesis state of the erc20 module

type Keeper

type Keeper = keeper.Keeper

nolint

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL