Documentation ¶
Overview ¶
Package evmtest contains solo tests for the evm core contract.
Index ¶
- type CallFnResult
- type EVMContractInstance
- type IscContractInstance
- type SoloChainEnv
- func (e *SoloChainEnv) DeployContract(creator *ecdsa.PrivateKey, abiJSON string, bytecode []byte, ...) *EVMContractInstance
- func (e *SoloChainEnv) ERC20BaseTokens(defaultSender *ecdsa.PrivateKey) *IscContractInstance
- func (e *SoloChainEnv) ERC20ExternalNativeTokens(defaultSender *ecdsa.PrivateKey, addr common.Address) *IscContractInstance
- func (e *SoloChainEnv) ERC20NativeTokens(defaultSender *ecdsa.PrivateKey, foundrySN uint32) *IscContractInstance
- func (e *SoloChainEnv) ERC721NFTCollection(defaultSender *ecdsa.PrivateKey, collectionID iotago.NFTID) *IscContractInstance
- func (e *SoloChainEnv) ERC721NFTs(defaultSender *ecdsa.PrivateKey) *IscContractInstance
- func (e *SoloChainEnv) ISCMagicAccounts(defaultSender *ecdsa.PrivateKey) *IscContractInstance
- func (e *SoloChainEnv) ISCMagicPrivileged(defaultSender *ecdsa.PrivateKey) *IscContractInstance
- func (e *SoloChainEnv) ISCMagicSandbox(defaultSender *ecdsa.PrivateKey) *IscContractInstance
- func (e *SoloChainEnv) ISCMagicUtil(defaultSender *ecdsa.PrivateKey) *IscContractInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallFnResult ¶
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 ¶
func InitEVM ¶
func InitEVM(t testing.TB, deployMagicWrap bool, nativeContracts ...*coreutil.ContractProcessor) *SoloChainEnv
func InitEVMWithSolo ¶
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
Click to show internal directories.
Click to hide internal directories.