Documentation ¶
Index ¶
- type BuiltInFunctionExecutableStub
- func (b *BuiltInFunctionExecutableStub) CheckIsExecutable(senderAddr []byte, value *big.Int, receiverAddr []byte, ...) error
- func (b *BuiltInFunctionExecutableStub) IsActive() bool
- func (b *BuiltInFunctionExecutableStub) IsInterfaceNil() bool
- func (b *BuiltInFunctionExecutableStub) ProcessBuiltinFunction(acntSnd, acntDst vmcommon.UserAccountHandler, ...) (*vmcommon.VMOutput, error)
- func (b *BuiltInFunctionExecutableStub) SetNewGasConfig(gasCost *vmcommon.GasCost)
- type UserAccountStub
- func (uas *UserAccountStub) AccountDataHandler() vmcommon.AccountDataHandler
- func (uas *UserAccountStub) AddToBalance(value *big.Int) error
- func (uas *UserAccountStub) AddressBytes() []byte
- func (uas *UserAccountStub) ChangeOwnerAddress(sndAddress []byte, newAddress []byte) error
- func (uas *UserAccountStub) ClaimDeveloperRewards(sndAddress []byte) (*big.Int, error)
- func (uas *UserAccountStub) GetBalance() *big.Int
- func (uas *UserAccountStub) GetCodeHash() []byte
- func (uas *UserAccountStub) GetCodeMetadata() []byte
- func (uas *UserAccountStub) GetDeveloperReward() *big.Int
- func (uas *UserAccountStub) GetNonce() uint64
- func (uas *UserAccountStub) GetOwnerAddress() []byte
- func (uas *UserAccountStub) GetRootHash() []byte
- func (uas *UserAccountStub) GetUserName() []byte
- func (uas *UserAccountStub) IncreaseNonce(nonce uint64)
- func (uas *UserAccountStub) IsInterfaceNil() bool
- func (uas *UserAccountStub) SetCodeMetadata(codeMetaData []byte)
- func (uas *UserAccountStub) SetOwnerAddress(address []byte)
- func (uas *UserAccountStub) SetUserName(userName []byte)
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) 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) 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 -
Click to show internal directories.
Click to hide internal directories.