Documentation ¶
Index ¶
- Constants
- Variables
- func Bool(v []byte) bool
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
- func Int16(v []byte) int16
- func Int32(v []byte) int32
- func Int64(v []byte) int64
- func Int8(v []byte) int8
- func NewHandler(k Keeper, contractHandler cross.ContractHandler) sdk.Handler
- func ToBytes(v interface{}) []byte
- func UInt16(v []byte) uint16
- func UInt32(v []byte) uint32
- func UInt64(v []byte) uint64
- func UInt8(v []byte) uint8
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, m codec.JSONMarshaler) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, m codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(m codec.JSONMarshaler) 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(m codec.JSONMarshaler, bz json.RawMessage) error
- type Context
- type Contract
- type ContractCallResponse
- type GenesisState
- type Keeper
- type Method
- type MsgContractCall
- type StateProvider
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey )
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier NewContractHandler = keeper.NewContractHandler EncodeContractSignature = types.EncodeContractSignature DecodeContractSignature = types.DecodeContractSignature NewContractCallInfo = types.NewContractCallInfo NewMsgContractCall = types.NewMsgContractCall NewContract = keeper.NewContract ModuleCdc = types.ModuleCdc RegisterCodec = types.RegisterCodec )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
InitGenesis inits genesis
func NewHandler ¶
func NewHandler(k Keeper, contractHandler cross.ContractHandler) sdk.Handler
NewHandler returns a handler
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis checks the Genesis
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule struct
func NewAppModule ¶
func NewAppModule(keeper Keeper, contractHandler cross.ContractHandler) AppModule
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock is a callback function
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock is a callback function
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context, m codec.JSONMarshaler) json.RawMessage
ExportGenesis exports genesis
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, m codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis inits genesis
func (AppModule) NewHandler ¶
NewHandler returns new Handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns new Querier
func (AppModule) QuerierRoute ¶
QuerierRoute returns module name
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants is empty
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is an app module Basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(m codec.JSONMarshaler) json.RawMessage
DefaultGenesis returns default genesis state
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec returns RegisterCodec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes returns rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(m codec.JSONMarshaler, bz json.RawMessage) error
ValidateGenesis checks the Genesis
type ContractCallResponse ¶
type ContractCallResponse = types.ContractCallResponse
type GenesisState ¶
type GenesisState struct { }
GenesisState is genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns default genesis state
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis exports genesis
func NewGenesisState ¶
func NewGenesisState(master string) GenesisState
NewGenesisState is a constructor of GenesisState
type MsgContractCall ¶
type MsgContractCall = types.MsgContractCall
type StateProvider ¶
type StateProvider = keeper.StateProvider