wasm

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/wasm/internal/keeper ALIASGEN: github.com/terra-project/core/x/wasm/internal/types

nolint:deadcode unused noalias

Index

Constants

View Source
const (
	DefaultFeatures            = types.DefaultFeatures
	ModuleName                 = types.ModuleName
	StoreKey                   = types.StoreKey
	TStoreKey                  = types.TStoreKey
	QuerierRoute               = types.QuerierRoute
	RouterKey                  = types.RouterKey
	WasmMsgParserRouteBank     = types.WasmMsgParserRouteBank
	WasmMsgParserRouteStaking  = types.WasmMsgParserRouteStaking
	WasmMsgParserRouteMarket   = types.WasmMsgParserRouteMarket
	WasmMsgParserRouteWasm     = types.WasmMsgParserRouteWasm
	DefaultParamspace          = types.DefaultParamspace
	EnforcedMaxContractSize    = types.EnforcedMaxContractSize
	EnforcedMaxContractGas     = types.EnforcedMaxContractGas
	EnforcedMaxContractMsgSize = types.EnforcedMaxContractMsgSize
	DefaultMaxContractSize     = types.DefaultMaxContractSize
	DefaultMaxContractGas      = types.DefaultMaxContractGas
	DefaultMaxContractMsgSize  = types.DefaultMaxContractMsgSize
	QueryGetByteCode           = types.QueryGetByteCode
	QueryGetCodeInfo           = types.QueryGetCodeInfo
	QueryGetContractInfo       = types.QueryGetContractInfo
	QueryRawStore              = types.QueryRawStore
	QueryContractStore         = types.QueryContractStore
	WasmQueryRouteBank         = types.WasmQueryRouteBank
	WasmQueryRouteStaking      = types.WasmQueryRouteStaking
	WasmQueryRouteMarket       = types.WasmQueryRouteMarket
	WasmQueryRouteOracle       = types.WasmQueryRouteOracle
	WasmQueryRouteTreasury     = types.WasmQueryRouteTreasury
	WasmQueryRouteWasm         = types.WasmQueryRouteWasm
)

Variables

View Source
var (
	// functions aliases
	NewKeeper                     = keeper.NewKeeper
	NewQuerier                    = keeper.NewQuerier
	NewWasmMsgParser              = keeper.NewWasmMsgParser
	NewWasmQuerier                = keeper.NewWasmQuerier
	RegisterCodec                 = types.RegisterCodec
	ParseEvents                   = types.ParseEvents
	ParseToCoin                   = types.ParseToCoin
	ParseToCoins                  = types.ParseToCoins
	EncodeSdkCoin                 = types.EncodeSdkCoin
	EncodeSdkCoins                = types.EncodeSdkCoins
	NewCodeInfo                   = types.NewCodeInfo
	NewContractInfo               = types.NewContractInfo
	NewWasmAPIParams              = types.NewWasmAPIParams
	NewWasmCoins                  = types.NewWasmCoins
	NewGenesisState               = types.NewGenesisState
	DefaultGenesisState           = types.DefaultGenesisState
	ValidateGenesis               = types.ValidateGenesis
	GetCodeInfoKey                = types.GetCodeInfoKey
	GetContractInfoKey            = types.GetContractInfoKey
	GetContractStoreKey           = types.GetContractStoreKey
	NewMsgStoreCode               = types.NewMsgStoreCode
	NewMsgInstantiateContract     = types.NewMsgInstantiateContract
	NewMsgExecuteContract         = types.NewMsgExecuteContract
	NewMsgMigrateContract         = types.NewMsgMigrateContract
	NewMsgUpdateContractOwner     = types.NewMsgUpdateContractOwner
	NewModuleMsgParser            = types.NewModuleMsgParser
	DefaultParams                 = types.DefaultParams
	ParamKeyTable                 = types.ParamKeyTable
	NewQueryCodeIDParams          = types.NewQueryCodeIDParams
	NewQueryContractAddressParams = types.NewQueryContractAddressParams
	NewQueryRawStoreParams        = types.NewQueryRawStoreParams
	NewQueryContractParams        = types.NewQueryContractParams
	NewModuleQuerier              = types.NewModuleQuerier

	// variable aliases
	ModuleCdc                       = types.ModuleCdc
	ErrStoreCodeFailed              = types.ErrStoreCodeFailed
	ErrAccountExists                = types.ErrAccountExists
	ErrInstantiateFailed            = types.ErrInstantiateFailed
	ErrExecuteFailed                = types.ErrExecuteFailed
	ErrGasLimit                     = types.ErrGasLimit
	ErrInvalidGenesis               = types.ErrInvalidGenesis
	ErrNotFound                     = types.ErrNotFound
	ErrInvalidMsg                   = types.ErrInvalidMsg
	ErrNoRegisteredQuerier          = types.ErrNoRegisteredQuerier
	ErrNoRegisteredParser           = types.ErrNoRegisteredParser
	ErrMigrationFailed              = types.ErrMigrationFailed
	ErrNotMigratable                = types.ErrNotMigratable
	LastCodeIDKey                   = types.LastCodeIDKey
	LastInstanceIDKey               = types.LastInstanceIDKey
	CodeKey                         = types.CodeKey
	ContractInfoKey                 = types.ContractInfoKey
	ContractStoreKey                = types.ContractStoreKey
	ParamStoreKeyMaxContractSize    = types.ParamStoreKeyMaxContractSize
	ParamStoreKeyMaxContractGas     = types.ParamStoreKeyMaxContractGas
	ParamStoreKeyMaxContractMsgSize = types.ParamStoreKeyMaxContractMsgSize
)

Functions

func BeginBlocker added in v0.4.1

func BeginBlocker(ctx sdk.Context, k keeper.Keeper)

BeginBlocker handles softfork over param changes

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState

ExportGenesis returns a GenesisState for a given context and keeper.

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState)

InitGenesis sets wasm information for genesis.

CONTRACT: all types of accounts must have been already initialized/created

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler returns a handler for "wasm" type messages.

Types

type AccountKeeper

type AccountKeeper = types.AccountKeeper

type AppModule

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

AppModule implements an application module for the wasm module.

func NewAppModule

func NewAppModule(keeper Keeper, accountKeeper auth.AccountKeeper, bankKeeper bank.Keeper) 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 wasm module.

func (AppModule) EndBlock

EndBlock returns the end blocker for the wasm 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 wasm module.

func (AppModule) GenerateGenesisState

func (AppModule) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of the distribution module.

func (AppModule) InitGenesis

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

InitGenesis performs genesis initialization for the wasm module. It returns no validator updates.

func (AppModule) Name

func (AppModule) Name() string

Name returns the wasm module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the wasm module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the wasm module sdk.Querier.

func (AppModule) ProposalContents

func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent

ProposalContents returns all the distribution content functions used to simulate governance proposals.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the wasm module's querier route name.

func (AppModule) RandomizedParams

func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange

RandomizedParams creates randomized distribution param changes for the simulator.

func (AppModule) RegisterInvariants

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

RegisterInvariants registers the wasm module invariants.

func (AppModule) RegisterStoreDecoder

func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for distribution module's types

func (AppModule) Route

func (AppModule) Route() string

Route returns the message routing key for the wasm module.

func (AppModule) WeightedOperations

func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation

WeightedOperations returns the all the gov module operations with their respective weights.

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the wasm module.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the wasm module.

func (AppModuleBasic) GetQueryCmd

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

GetQueryCmd returns no root query command for the wasm module.

func (AppModuleBasic) GetTxCmd

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

GetTxCmd returns the root tx command for the wasm module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the wasm module's name.

func (AppModuleBasic) RegisterCodec

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

RegisterCodec registers the wasm 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 wasm module.

func (AppModuleBasic) ValidateGenesis

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

ValidateGenesis performs genesis state validation for the wasm module.

type BankKeeper

type BankKeeper = types.BankKeeper

type Code

type Code = types.Code

type CodeInfo

type CodeInfo = types.CodeInfo

type Contract

type Contract = types.Contract

type ContractInfo

type ContractInfo = types.ContractInfo

type GenesisState

type GenesisState = types.GenesisState

type Keeper

type Keeper = keeper.Keeper

type Model

type Model = types.Model

type MsgExecuteContract

type MsgExecuteContract = types.MsgExecuteContract

type MsgInstantiateContract

type MsgInstantiateContract = types.MsgInstantiateContract

type MsgMigrateContract

type MsgMigrateContract = types.MsgMigrateContract

type MsgParser

type MsgParser = types.MsgParser

type MsgStoreCode

type MsgStoreCode = types.MsgStoreCode

type MsgUpdateContractOwner

type MsgUpdateContractOwner = types.MsgUpdateContractOwner

type Params

type Params = types.Params

type Querier

type Querier = types.Querier

type QueryCodeIDParams

type QueryCodeIDParams = types.QueryCodeIDParams

type QueryContractAddressParams

type QueryContractAddressParams = types.QueryContractAddressParams

type QueryContractParams

type QueryContractParams = types.QueryContractParams

type QueryRawStoreParams

type QueryRawStoreParams = types.QueryRawStoreParams

type TreasuryKeeper

type TreasuryKeeper = types.TreasuryKeeper

type WasmCustomMsg

type WasmCustomMsg = types.WasmCustomMsg

type WasmCustomQuery

type WasmCustomQuery = types.WasmCustomQuery

type WasmMsgParser

type WasmMsgParser = keeper.WasmMsgParser

type WasmMsgParserInterface

type WasmMsgParserInterface = types.WasmMsgParserInterface

type WasmQuerier

type WasmQuerier = keeper.WasmQuerier

type WasmQuerierInterface

type WasmQuerierInterface = types.WasmQuerierInterface

Directories

Path Synopsis
client
cli
nolint
nolint
internal
keeper
nolint:deadcode unused noalias
nolint:deadcode unused noalias
types
noalias
noalias

Jump to

Keyboard shortcuts

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