bank

package
v8.0.0-...-3fb7b35 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

func NewPrecompiledContract

func NewPrecompiledContract(
	bankKeeper types.BankKeeper,
	erc20Keeper types.Erc20Keeper,
	govKeeper types.GovKeeper,
) *Contract

func (*Contract) Address

func (c *Contract) Address() common.Address

func (*Contract) IsStateful

func (c *Contract) IsStateful() bool

func (*Contract) RequiredGas

func (c *Contract) RequiredGas(input []byte) uint64

func (*Contract) Run

func (c *Contract) Run(evm *vm.EVM, vmContract *vm.Contract, readonly bool) (ret []byte, err error)

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(bankKeeper types.BankKeeper, erc20Keeper types.Erc20Keeper) *Keeper

func (*Keeper) TransferFromAccountToModule

func (k *Keeper) TransferFromAccountToModule(ctx sdk.Context, args *contract.TransferFromAccountToModuleArgs) error

func (*Keeper) TransferFromModuleToAccount

func (k *Keeper) TransferFromModuleToAccount(ctx sdk.Context, args *contract.TransferFromModuleToAccountArgs) error

type TransferFromAccountToModuleABI

type TransferFromAccountToModuleABI struct {
	abi.Method
}

func NewTransferFromAccountToModuleABI

func NewTransferFromAccountToModuleABI() TransferFromAccountToModuleABI

func (TransferFromAccountToModuleABI) PackInput

func (TransferFromAccountToModuleABI) PackOutput

func (m TransferFromAccountToModuleABI) PackOutput(result bool) ([]byte, error)

func (TransferFromAccountToModuleABI) UnpackInput

func (TransferFromAccountToModuleABI) UnpackOutput

func (m TransferFromAccountToModuleABI) UnpackOutput(data []byte) (bool, error)

type TransferFromAccountToModuleMethod

type TransferFromAccountToModuleMethod struct {
	*Keeper
	TransferFromAccountToModuleABI
}

func NewTransferFromAccountToModuleMethod

func NewTransferFromAccountToModuleMethod(keeper *Keeper) *TransferFromAccountToModuleMethod

func (*TransferFromAccountToModuleMethod) GetMethodId

func (m *TransferFromAccountToModuleMethod) GetMethodId() []byte

func (*TransferFromAccountToModuleMethod) IsReadonly

func (m *TransferFromAccountToModuleMethod) IsReadonly() bool

func (*TransferFromAccountToModuleMethod) RequiredGas

func (m *TransferFromAccountToModuleMethod) RequiredGas() uint64

func (*TransferFromAccountToModuleMethod) Run

func (m *TransferFromAccountToModuleMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

type TransferFromModuleToAccountABI

type TransferFromModuleToAccountABI struct {
	abi.Method
}

func NewTransferFromModuleToAccountABI

func NewTransferFromModuleToAccountABI() TransferFromModuleToAccountABI

func (TransferFromModuleToAccountABI) PackInput

func (TransferFromModuleToAccountABI) PackOutput

func (m TransferFromModuleToAccountABI) PackOutput(result bool) ([]byte, error)

func (TransferFromModuleToAccountABI) UnpackInput

func (TransferFromModuleToAccountABI) UnpackOutput

func (m TransferFromModuleToAccountABI) UnpackOutput(data []byte) (bool, error)

type TransferFromModuleToAccountMethod

type TransferFromModuleToAccountMethod struct {
	*Keeper
	TransferFromModuleToAccountABI
}

func NewTransferFromModuleToAccountMethod

func NewTransferFromModuleToAccountMethod(keeper *Keeper) *TransferFromModuleToAccountMethod

func (*TransferFromModuleToAccountMethod) GetMethodId

func (m *TransferFromModuleToAccountMethod) GetMethodId() []byte

func (*TransferFromModuleToAccountMethod) IsReadonly

func (m *TransferFromModuleToAccountMethod) IsReadonly() bool

func (*TransferFromModuleToAccountMethod) RequiredGas

func (m *TransferFromModuleToAccountMethod) RequiredGas() uint64

func (*TransferFromModuleToAccountMethod) Run

func (m *TransferFromModuleToAccountMethod) Run(evm *vm.EVM, contract *vm.Contract) ([]byte, error)

Jump to

Keyboard shortcuts

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