evmtest

package
v1.1.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Overview

Package evmtest contains solo tests for the evm core contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallFnResult

type CallFnResult struct {
	EVMReceipt *types.Receipt
	ISCReceipt *isc.Receipt
	// contains filtered or unexported fields
}

type EVMContractInstance

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

func (*EVMContractInstance) CallFn

func (e *EVMContractInstance) CallFn(opts []ethCallOptions, fnName string, args ...interface{}) (CallFnResult, error)

func (*EVMContractInstance) CallFnExpectEvent

func (e *EVMContractInstance) CallFnExpectEvent(opts []ethCallOptions, eventName string, v interface{}, fnName string, args ...interface{}) CallFnResult

type IscContractInstance

type IscContractInstance struct {
	*EVMContractInstance
}

type SoloChainEnv

type SoloChainEnv struct {
	Chain *solo.Chain
	// contains filtered or unexported fields
}

func InitEVM

func InitEVM(t testing.TB, deployMagicWrap bool, nativeContracts ...*coreutil.ContractProcessor) *SoloChainEnv

func InitEVMWithSolo

func InitEVMWithSolo(t testing.TB, env *solo.Solo, deployMagicWrap bool) *SoloChainEnv

func (*SoloChainEnv) DeployContract

func (e *SoloChainEnv) DeployContract(creator *ecdsa.PrivateKey, abiJSON string, bytecode []byte, args ...interface{}) *EVMContractInstance

func (*SoloChainEnv) ERC20BaseTokens

func (e *SoloChainEnv) ERC20BaseTokens(defaultSender *ecdsa.PrivateKey) *IscContractInstance

func (*SoloChainEnv) ERC20ExternalNativeTokens

func (e *SoloChainEnv) ERC20ExternalNativeTokens(defaultSender *ecdsa.PrivateKey, addr common.Address) *IscContractInstance

func (*SoloChainEnv) ERC20NativeTokens

func (e *SoloChainEnv) ERC20NativeTokens(defaultSender *ecdsa.PrivateKey, foundrySN uint32) *IscContractInstance

func (*SoloChainEnv) ERC721NFTCollection

func (e *SoloChainEnv) ERC721NFTCollection(defaultSender *ecdsa.PrivateKey, collectionID iotago.NFTID) *IscContractInstance

func (*SoloChainEnv) ERC721NFTs

func (e *SoloChainEnv) ERC721NFTs(defaultSender *ecdsa.PrivateKey) *IscContractInstance

func (*SoloChainEnv) ISCMagicAccounts

func (e *SoloChainEnv) ISCMagicAccounts(defaultSender *ecdsa.PrivateKey) *IscContractInstance

func (*SoloChainEnv) ISCMagicPrivileged

func (e *SoloChainEnv) ISCMagicPrivileged(defaultSender *ecdsa.PrivateKey) *IscContractInstance

func (*SoloChainEnv) ISCMagicSandbox

func (e *SoloChainEnv) ISCMagicSandbox(defaultSender *ecdsa.PrivateKey) *IscContractInstance

func (*SoloChainEnv) ISCMagicUtil

func (e *SoloChainEnv) ISCMagicUtil(defaultSender *ecdsa.PrivateKey) *IscContractInstance

Jump to

Keyboard shortcuts

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