vmcommonMocks

package
v1.6.10-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuiltInFunctionExecutableStub added in v1.5.3

type BuiltInFunctionExecutableStub struct {
	ProcessBuiltinFunctionCalled func(acntSnd, acntDst vmcommon.UserAccountHandler, vmInput *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error)
	SetNewGasConfigCalled        func(gasCost *vmcommon.GasCost)
	IsActiveCalled               func() bool
	CheckIsExecutableCalled      func(senderAddr []byte, value *big.Int, receiverAddr []byte, gasProvidedForCall uint64, arguments [][]byte) error
}

BuiltInFunctionExecutableStub -

func (*BuiltInFunctionExecutableStub) CheckIsExecutable added in v1.5.3

func (b *BuiltInFunctionExecutableStub) CheckIsExecutable(senderAddr []byte, value *big.Int, receiverAddr []byte, gasProvidedForCall uint64, arguments [][]byte) error

CheckIsExecutable -

func (*BuiltInFunctionExecutableStub) IsActive added in v1.5.3

func (b *BuiltInFunctionExecutableStub) IsActive() bool

IsActive -

func (*BuiltInFunctionExecutableStub) IsInterfaceNil added in v1.5.3

func (b *BuiltInFunctionExecutableStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*BuiltInFunctionExecutableStub) ProcessBuiltinFunction added in v1.5.3

func (b *BuiltInFunctionExecutableStub) ProcessBuiltinFunction(acntSnd, acntDst vmcommon.UserAccountHandler, vmInput *vmcommon.ContractCallInput) (*vmcommon.VMOutput, error)

ProcessBuiltinFunction -

func (*BuiltInFunctionExecutableStub) SetNewGasConfig added in v1.5.3

func (b *BuiltInFunctionExecutableStub) SetNewGasConfig(gasCost *vmcommon.GasCost)

SetNewGasConfig -

type UserAccountStub

type UserAccountStub struct {
	GetCodeMetadataCalled       func() []byte
	SetCodeMetadataCalled       func(codeMetadata []byte)
	GetCodeHashCalled           func() []byte
	GetRootHashCalled           func() []byte
	AccountDataHandlerCalled    func() vmcommon.AccountDataHandler
	AddToBalanceCalled          func(value *big.Int) error
	GetBalanceCalled            func() *big.Int
	ClaimDeveloperRewardsCalled func([]byte) (*big.Int, error)
	GetDeveloperRewardCalled    func() *big.Int
	ChangeOwnerAddressCalled    func([]byte, []byte) error
	SetOwnerAddressCalled       func([]byte)
	GetOwnerAddressCalled       func() []byte
	SetUserNameCalled           func(userName []byte)
	GetUserNameCalled           func() []byte
	AddressBytesCalled          func() []byte
	IncreaseNonceCalled         func(nonce uint64)
	GetNonceCalled              func() uint64
}

UserAccountStub -

func (*UserAccountStub) AccountDataHandler

func (uas *UserAccountStub) AccountDataHandler() vmcommon.AccountDataHandler

AccountDataHandler -

func (*UserAccountStub) AddToBalance

func (uas *UserAccountStub) AddToBalance(value *big.Int) error

AddToBalance -

func (*UserAccountStub) AddressBytes

func (uas *UserAccountStub) AddressBytes() []byte

AddressBytes -

func (*UserAccountStub) ChangeOwnerAddress

func (uas *UserAccountStub) ChangeOwnerAddress(sndAddress []byte, newAddress []byte) error

ChangeOwnerAddress -

func (*UserAccountStub) ClaimDeveloperRewards

func (uas *UserAccountStub) ClaimDeveloperRewards(sndAddress []byte) (*big.Int, error)

ClaimDeveloperRewards -

func (*UserAccountStub) GetBalance

func (uas *UserAccountStub) GetBalance() *big.Int

GetBalance -

func (*UserAccountStub) GetCodeHash

func (uas *UserAccountStub) GetCodeHash() []byte

GetCodeHash -

func (*UserAccountStub) GetCodeMetadata

func (uas *UserAccountStub) GetCodeMetadata() []byte

GetCodeMetadata -

func (*UserAccountStub) GetDeveloperReward

func (uas *UserAccountStub) GetDeveloperReward() *big.Int

GetDeveloperReward -

func (*UserAccountStub) GetNonce

func (uas *UserAccountStub) GetNonce() uint64

GetNonce -

func (*UserAccountStub) GetOwnerAddress

func (uas *UserAccountStub) GetOwnerAddress() []byte

GetOwnerAddress -

func (*UserAccountStub) GetRootHash

func (uas *UserAccountStub) GetRootHash() []byte

GetRootHash -

func (*UserAccountStub) GetUserName

func (uas *UserAccountStub) GetUserName() []byte

GetUserName -

func (*UserAccountStub) IncreaseNonce

func (uas *UserAccountStub) IncreaseNonce(nonce uint64)

IncreaseNonce -

func (*UserAccountStub) IsInterfaceNil

func (uas *UserAccountStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*UserAccountStub) SetCodeMetadata

func (uas *UserAccountStub) SetCodeMetadata(codeMetaData []byte)

SetCodeMetadata -

func (*UserAccountStub) SetOwnerAddress

func (uas *UserAccountStub) SetOwnerAddress(address []byte)

SetOwnerAddress -

func (*UserAccountStub) SetUserName

func (uas *UserAccountStub) SetUserName(userName []byte)

SetUserName -

Jump to

Keyboard shortcuts

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