contract

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
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 Bool

func Bool(v []byte) bool

func InitGenesis

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

InitGenesis inits genesis

func Int16

func Int16(v []byte) int16

func Int32

func Int32(v []byte) int32

func Int64

func Int64(v []byte) int64

func Int8

func Int8(v []byte) int8

func NewHandler

func NewHandler(k Keeper, contractHandler cross.ContractHandler) sdk.Handler

NewHandler returns a handler

func ToBytes

func ToBytes(v interface{}) []byte

func UInt16

func UInt16(v []byte) uint16

func UInt32

func UInt32(v []byte) uint32

func UInt64

func UInt64(v []byte) uint64

func UInt8

func UInt8(v []byte) uint8

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

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) Name

func (AppModule) Name() string

Name returns module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns new Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns new Querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute returns module name

func (AppModule) RegisterInvariants

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

RegisterInvariants is empty

func (AppModule) Route

func (am AppModule) Route() string

Route returns RouterKey

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) Name

func (AppModuleBasic) Name() string

Name returns module name

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 Context

type Context = keeper.Context

type Contract

type Contract = keeper.Contract

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 Keeper

type Keeper = keeper.Keeper

type Method

type Method = keeper.Method

type MsgContractCall

type MsgContractCall = types.MsgContractCall

type StateProvider

type StateProvider = keeper.StateProvider

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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