wasmd

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstantiateMethod  = "instantiate"
	ExecuteMethod      = "execute"
	ExecuteBatchMethod = "execute_batch"
	QueryMethod        = "query"
)
View Source
const WasmdAddress = "0x0000000000000000000000000000000000001002"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteMsg

type ExecuteMsg struct {
	ContractAddress string `json:"contractAddress"`
	Msg             []byte `json:"msg"`
	Coins           []byte `json:"coins"`
}

type Precompile

type Precompile struct {
	pcommon.Precompile

	InstantiateID  []byte
	ExecuteID      []byte
	ExecuteBatchID []byte
	QueryID        []byte
	// contains filtered or unexported fields
}

func NewPrecompile

func NewPrecompile(evmKeeper pcommon.EVMKeeper, wasmdKeeper pcommon.WasmdKeeper, wasmdViewKeeper pcommon.WasmdViewKeeper, bankKeeper pcommon.BankKeeper) (*Precompile, error)

func (Precompile) Address

func (p Precompile) Address() common.Address

func (Precompile) GetName

func (p Precompile) GetName() string

func (Precompile) IsTransaction

func (Precompile) IsTransaction(method string) bool

func (Precompile) RequiredGas

func (p Precompile) RequiredGas(input []byte) uint64

RequiredGas returns the required bare minimum gas to execute the precompile.

func (Precompile) Run

func (Precompile) RunAndCalculateGas

func (p Precompile) RunAndCalculateGas(evm *vm.EVM, caller common.Address, callingContract common.Address, input []byte, suppliedGas uint64, value *big.Int, _ *tracing.Hooks, readOnly bool) (ret []byte, remainingGas uint64, err error)

Jump to

Keyboard shortcuts

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