Documentation ¶
Index ¶
- type AccountInterface
- func (_m *AccountInterface) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, ...) (*runtime.AccountKey, error)
- func (_m *AccountInterface) AddEncodedAccountKey(address common.Address, publicKey []byte) error
- func (_m *AccountInterface) CreateAccount(address common.Address) (common.Address, error)
- func (_m *AccountInterface) GetAccountKey(address common.Address, keyIndex int) (*runtime.AccountKey, error)
- func (_m *AccountInterface) GetSigningAccounts() ([]common.Address, error)
- func (_m *AccountInterface) RevokeAccountKey(address common.Address, keyIndex int) (*runtime.AccountKey, error)
- type Blocks
- type BootstrapProcedureOption
- type Environment
- func (_m *Environment) AccountFreezeEnabled() bool
- func (_m *Environment) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, ...) (*runtime.AccountKey, error)
- func (_m *Environment) AddEncodedAccountKey(address common.Address, publicKey []byte) error
- func (_m *Environment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
- func (_m *Environment) BLSAggregatePublicKeys(keys []*runtime.PublicKey) (*runtime.PublicKey, error)
- func (_m *Environment) BLSAggregateSignatures(sigs [][]byte) ([]byte, error)
- func (_m *Environment) BLSVerifyPOP(pk *runtime.PublicKey, s []byte) (bool, error)
- func (_m *Environment) Context() *fvm.Context
- func (_m *Environment) CreateAccount(payer common.Address) (common.Address, error)
- func (_m *Environment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)
- func (_m *Environment) EmitEvent(_a0 cadence.Event) error
- func (_m *Environment) GenerateUUID() (uint64, error)
- func (_m *Environment) GetAccountAvailableBalance(address common.Address) (uint64, error)
- func (_m *Environment) GetAccountBalance(address common.Address) (uint64, error)
- func (_m *Environment) GetAccountContractCode(address common.Address, name string) ([]byte, error)
- func (_m *Environment) GetAccountContractNames(address common.Address) ([]string, error)
- func (_m *Environment) GetAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
- func (_m *Environment) GetBlockAtHeight(height uint64) (runtime.Block, bool, error)
- func (_m *Environment) GetCode(location common.Location) ([]byte, error)
- func (_m *Environment) GetCurrentBlockHeight() (uint64, error)
- func (_m *Environment) GetProgram(_a0 common.Location) (*interpreter.Program, error)
- func (_m *Environment) GetSigningAccounts() ([]common.Address, error)
- func (_m *Environment) GetStorageCapacity(address common.Address) (uint64, error)
- func (_m *Environment) GetStorageUsed(address common.Address) (uint64, error)
- func (_m *Environment) GetValue(owner []byte, key []byte) ([]byte, error)
- func (_m *Environment) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
- func (_m *Environment) ImplementationDebugLog(message string) error
- func (_m *Environment) MeterComputation(operationType common.ComputationKind, intensity uint) error
- func (_m *Environment) MeterMemory(usage common.MemoryUsage) error
- func (_m *Environment) ProgramLog(_a0 string) error
- func (_m *Environment) RecordTrace(operation string, location common.Location, duration time.Duration, ...)
- func (_m *Environment) RemoveAccountContractCode(address common.Address, name string) error
- func (_m *Environment) ResolveLocation(identifiers []ast.Identifier, location common.Location) ([]sema.ResolvedLocation, error)
- func (_m *Environment) ResourceOwnerChanged(_a0 *interpreter.Interpreter, resource *interpreter.CompositeValue, ...)
- func (_m *Environment) RevokeAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
- func (_m *Environment) RevokeEncodedAccountKey(address common.Address, index int) ([]byte, error)
- func (_m *Environment) SetProgram(_a0 common.Location, _a1 *interpreter.Program) error
- func (_m *Environment) SetValue(owner []byte, key []byte, value []byte) error
- func (_m *Environment) StartExtensiveTracingSpanFromRoot(name trace.SpanName) oteltrace.Span
- func (_m *Environment) StartSpanFromRoot(name trace.SpanName) oteltrace.Span
- func (_m *Environment) UnsafeRandom() (uint64, error)
- func (_m *Environment) UpdateAccountContractCode(address common.Address, name string, code []byte) error
- func (_m *Environment) VM() *fvm.VirtualMachine
- func (_m *Environment) ValidatePublicKey(key *runtime.PublicKey) error
- func (_m *Environment) ValueExists(owner []byte, key []byte) (bool, error)
- func (_m *Environment) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, ...) (bool, error)
- type MeterInterface
- type NewSpanT
- type Option
- type Procedure
- type ScriptProcessor
- type Span
- func (_m *Span) AddEvent(name string, options ...trace.EventOption)
- func (_m *Span) End(options ...trace.SpanEndOption)
- func (_m *Span) IsRecording() bool
- func (_m *Span) RecordError(err error, options ...trace.EventOption)
- func (_m *Span) SetAttributes(kv ...attribute.KeyValue)
- func (_m *Span) SetName(name string)
- func (_m *Span) SetStatus(code codes.Code, description string)
- func (_m *Span) SpanContext() trace.SpanContext
- func (_m *Span) TracerProvider() trace.TracerProvider
- type TransactionProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInterface ¶ added in v0.27.0
AccountInterface is an autogenerated mock type for the AccountInterface type
func NewAccountInterface ¶ added in v0.27.0
func NewAccountInterface(t mockConstructorTestingTNewAccountInterface) *AccountInterface
NewAccountInterface creates a new instance of AccountInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccountInterface) AddAccountKey ¶ added in v0.27.0
func (_m *AccountInterface) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*runtime.AccountKey, error)
AddAccountKey provides a mock function with given fields: address, publicKey, hashAlgo, weight
func (*AccountInterface) AddEncodedAccountKey ¶ added in v0.27.0
func (_m *AccountInterface) AddEncodedAccountKey(address common.Address, publicKey []byte) error
AddEncodedAccountKey provides a mock function with given fields: address, publicKey
func (*AccountInterface) CreateAccount ¶ added in v0.27.0
CreateAccount provides a mock function with given fields: address
func (*AccountInterface) GetAccountKey ¶ added in v0.27.0
func (_m *AccountInterface) GetAccountKey(address common.Address, keyIndex int) (*runtime.AccountKey, error)
GetAccountKey provides a mock function with given fields: address, keyIndex
func (*AccountInterface) GetSigningAccounts ¶ added in v0.27.0
func (_m *AccountInterface) GetSigningAccounts() ([]common.Address, error)
GetSigningAccounts provides a mock function with given fields:
func (*AccountInterface) RevokeAccountKey ¶ added in v0.27.0
func (_m *AccountInterface) RevokeAccountKey(address common.Address, keyIndex int) (*runtime.AccountKey, error)
RevokeAccountKey provides a mock function with given fields: address, keyIndex
type Blocks ¶
Blocks is an autogenerated mock type for the Blocks type
type BootstrapProcedureOption ¶ added in v0.26.1
BootstrapProcedureOption is an autogenerated mock type for the BootstrapProcedureOption type
func NewBootstrapProcedureOption ¶ added in v0.26.1
func NewBootstrapProcedureOption(t mockConstructorTestingTNewBootstrapProcedureOption) *BootstrapProcedureOption
NewBootstrapProcedureOption creates a new instance of BootstrapProcedureOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BootstrapProcedureOption) Execute ¶ added in v0.26.1
func (_m *BootstrapProcedureOption) Execute(_a0 *fvm.BootstrapProcedure) *fvm.BootstrapProcedure
Execute provides a mock function with given fields: _a0
type Environment ¶ added in v0.22.4
Environment is an autogenerated mock type for the Environment type
func NewEnvironment ¶ added in v0.26.1
func NewEnvironment(t mockConstructorTestingTNewEnvironment) *Environment
NewEnvironment creates a new instance of Environment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Environment) AccountFreezeEnabled ¶ added in v0.27.0
func (_m *Environment) AccountFreezeEnabled() bool
AccountFreezeEnabled provides a mock function with given fields:
func (*Environment) AddAccountKey ¶ added in v0.22.4
func (_m *Environment) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*runtime.AccountKey, error)
AddAccountKey provides a mock function with given fields: address, publicKey, hashAlgo, weight
func (*Environment) AddEncodedAccountKey ¶ added in v0.22.4
func (_m *Environment) AddEncodedAccountKey(address common.Address, publicKey []byte) error
AddEncodedAccountKey provides a mock function with given fields: address, publicKey
func (*Environment) AllocateStorageIndex ¶ added in v0.22.4
func (_m *Environment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
AllocateStorageIndex provides a mock function with given fields: owner
func (*Environment) BLSAggregatePublicKeys ¶ added in v0.25.0
func (_m *Environment) BLSAggregatePublicKeys(keys []*runtime.PublicKey) (*runtime.PublicKey, error)
BLSAggregatePublicKeys provides a mock function with given fields: keys
func (*Environment) BLSAggregateSignatures ¶ added in v0.25.0
func (_m *Environment) BLSAggregateSignatures(sigs [][]byte) ([]byte, error)
BLSAggregateSignatures provides a mock function with given fields: sigs
func (*Environment) BLSVerifyPOP ¶ added in v0.25.0
BLSVerifyPOP provides a mock function with given fields: pk, s
func (*Environment) Context ¶ added in v0.22.4
func (_m *Environment) Context() *fvm.Context
Context provides a mock function with given fields:
func (*Environment) CreateAccount ¶ added in v0.22.4
CreateAccount provides a mock function with given fields: payer
func (*Environment) DecodeArgument ¶ added in v0.22.4
func (_m *Environment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)
DecodeArgument provides a mock function with given fields: argument, argumentType
func (*Environment) EmitEvent ¶ added in v0.22.4
func (_m *Environment) EmitEvent(_a0 cadence.Event) error
EmitEvent provides a mock function with given fields: _a0
func (*Environment) GenerateUUID ¶ added in v0.22.4
func (_m *Environment) GenerateUUID() (uint64, error)
GenerateUUID provides a mock function with given fields:
func (*Environment) GetAccountAvailableBalance ¶ added in v0.22.4
func (_m *Environment) GetAccountAvailableBalance(address common.Address) (uint64, error)
GetAccountAvailableBalance provides a mock function with given fields: address
func (*Environment) GetAccountBalance ¶ added in v0.22.4
func (_m *Environment) GetAccountBalance(address common.Address) (uint64, error)
GetAccountBalance provides a mock function with given fields: address
func (*Environment) GetAccountContractCode ¶ added in v0.22.4
GetAccountContractCode provides a mock function with given fields: address, name
func (*Environment) GetAccountContractNames ¶ added in v0.22.4
func (_m *Environment) GetAccountContractNames(address common.Address) ([]string, error)
GetAccountContractNames provides a mock function with given fields: address
func (*Environment) GetAccountKey ¶ added in v0.22.4
func (_m *Environment) GetAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
GetAccountKey provides a mock function with given fields: address, index
func (*Environment) GetBlockAtHeight ¶ added in v0.22.4
GetBlockAtHeight provides a mock function with given fields: height
func (*Environment) GetCode ¶ added in v0.22.4
func (_m *Environment) GetCode(location common.Location) ([]byte, error)
GetCode provides a mock function with given fields: location
func (*Environment) GetCurrentBlockHeight ¶ added in v0.22.4
func (_m *Environment) GetCurrentBlockHeight() (uint64, error)
GetCurrentBlockHeight provides a mock function with given fields:
func (*Environment) GetProgram ¶ added in v0.22.4
func (_m *Environment) GetProgram(_a0 common.Location) (*interpreter.Program, error)
GetProgram provides a mock function with given fields: _a0
func (*Environment) GetSigningAccounts ¶ added in v0.22.4
func (_m *Environment) GetSigningAccounts() ([]common.Address, error)
GetSigningAccounts provides a mock function with given fields:
func (*Environment) GetStorageCapacity ¶ added in v0.22.4
func (_m *Environment) GetStorageCapacity(address common.Address) (uint64, error)
GetStorageCapacity provides a mock function with given fields: address
func (*Environment) GetStorageUsed ¶ added in v0.22.4
func (_m *Environment) GetStorageUsed(address common.Address) (uint64, error)
GetStorageUsed provides a mock function with given fields: address
func (*Environment) GetValue ¶ added in v0.22.4
func (_m *Environment) GetValue(owner []byte, key []byte) ([]byte, error)
GetValue provides a mock function with given fields: owner, key
func (*Environment) Hash ¶ added in v0.22.4
func (_m *Environment) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
Hash provides a mock function with given fields: data, tag, hashAlgorithm
func (*Environment) ImplementationDebugLog ¶ added in v0.22.4
func (_m *Environment) ImplementationDebugLog(message string) error
ImplementationDebugLog provides a mock function with given fields: message
func (*Environment) MeterComputation ¶ added in v0.25.2
func (_m *Environment) MeterComputation(operationType common.ComputationKind, intensity uint) error
MeterComputation provides a mock function with given fields: operationType, intensity
func (*Environment) MeterMemory ¶ added in v0.26.0
func (_m *Environment) MeterMemory(usage common.MemoryUsage) error
MeterMemory provides a mock function with given fields: usage
func (*Environment) ProgramLog ¶ added in v0.22.4
func (_m *Environment) ProgramLog(_a0 string) error
ProgramLog provides a mock function with given fields: _a0
func (*Environment) RecordTrace ¶ added in v0.25.0
func (_m *Environment) RecordTrace(operation string, location common.Location, duration time.Duration, attrs []attribute.KeyValue)
RecordTrace provides a mock function with given fields: operation, location, duration, attrs
func (*Environment) RemoveAccountContractCode ¶ added in v0.22.4
func (_m *Environment) RemoveAccountContractCode(address common.Address, name string) error
RemoveAccountContractCode provides a mock function with given fields: address, name
func (*Environment) ResolveLocation ¶ added in v0.22.4
func (_m *Environment) ResolveLocation(identifiers []ast.Identifier, location common.Location) ([]sema.ResolvedLocation, error)
ResolveLocation provides a mock function with given fields: identifiers, location
func (*Environment) ResourceOwnerChanged ¶ added in v0.26.0
func (_m *Environment) ResourceOwnerChanged(_a0 *interpreter.Interpreter, resource *interpreter.CompositeValue, oldOwner common.Address, newOwner common.Address)
ResourceOwnerChanged provides a mock function with given fields: _a0, resource, oldOwner, newOwner
func (*Environment) RevokeAccountKey ¶ added in v0.22.4
func (_m *Environment) RevokeAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
RevokeAccountKey provides a mock function with given fields: address, index
func (*Environment) RevokeEncodedAccountKey ¶ added in v0.22.4
RevokeEncodedAccountKey provides a mock function with given fields: address, index
func (*Environment) SetProgram ¶ added in v0.22.4
func (_m *Environment) SetProgram(_a0 common.Location, _a1 *interpreter.Program) error
SetProgram provides a mock function with given fields: _a0, _a1
func (*Environment) SetValue ¶ added in v0.22.4
func (_m *Environment) SetValue(owner []byte, key []byte, value []byte) error
SetValue provides a mock function with given fields: owner, key, value
func (*Environment) StartExtensiveTracingSpanFromRoot ¶ added in v0.27.0
func (_m *Environment) StartExtensiveTracingSpanFromRoot(name trace.SpanName) oteltrace.Span
StartExtensiveTracingSpanFromRoot provides a mock function with given fields: name
func (*Environment) StartSpanFromRoot ¶ added in v0.27.0
func (_m *Environment) StartSpanFromRoot(name trace.SpanName) oteltrace.Span
StartSpanFromRoot provides a mock function with given fields: name
func (*Environment) UnsafeRandom ¶ added in v0.22.4
func (_m *Environment) UnsafeRandom() (uint64, error)
UnsafeRandom provides a mock function with given fields:
func (*Environment) UpdateAccountContractCode ¶ added in v0.22.4
func (_m *Environment) UpdateAccountContractCode(address common.Address, name string, code []byte) error
UpdateAccountContractCode provides a mock function with given fields: address, name, code
func (*Environment) VM ¶ added in v0.22.4
func (_m *Environment) VM() *fvm.VirtualMachine
VM provides a mock function with given fields:
func (*Environment) ValidatePublicKey ¶ added in v0.22.4
func (_m *Environment) ValidatePublicKey(key *runtime.PublicKey) error
ValidatePublicKey provides a mock function with given fields: key
func (*Environment) ValueExists ¶ added in v0.22.4
func (_m *Environment) ValueExists(owner []byte, key []byte) (bool, error)
ValueExists provides a mock function with given fields: owner, key
func (*Environment) VerifySignature ¶ added in v0.22.4
func (_m *Environment) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, signatureAlgorithm sema.SignatureAlgorithm, hashAlgorithm sema.HashAlgorithm) (bool, error)
VerifySignature provides a mock function with given fields: signature, tag, signedData, publicKey, signatureAlgorithm, hashAlgorithm
type MeterInterface ¶ added in v0.27.0
MeterInterface is an autogenerated mock type for the MeterInterface type
func NewMeterInterface ¶ added in v0.27.0
func NewMeterInterface(t mockConstructorTestingTNewMeterInterface) *MeterInterface
NewMeterInterface creates a new instance of MeterInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MeterInterface) Meter ¶ added in v0.27.0
func (_m *MeterInterface) Meter(_a0 common.ComputationKind, _a1 uint) error
Meter provides a mock function with given fields: _a0, _a1
type Option ¶ added in v0.26.1
Option is an autogenerated mock type for the Option type
type Procedure ¶
Procedure is an autogenerated mock type for the Procedure type
func NewProcedure ¶ added in v0.26.1
func NewProcedure(t mockConstructorTestingTNewProcedure) *Procedure
NewProcedure creates a new instance of Procedure. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Procedure) ComputationLimit ¶ added in v0.25.2
ComputationLimit provides a mock function with given fields: ctx
func (*Procedure) MemoryLimit ¶ added in v0.25.2
MemoryLimit provides a mock function with given fields: ctx
type ScriptProcessor ¶
ScriptProcessor is an autogenerated mock type for the ScriptProcessor type
func NewScriptProcessor ¶ added in v0.26.1
func NewScriptProcessor(t mockConstructorTestingTNewScriptProcessor) *ScriptProcessor
NewScriptProcessor creates a new instance of ScriptProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScriptProcessor) Process ¶
func (_m *ScriptProcessor) Process(_a0 *fvm.VirtualMachine, _a1 fvm.Context, _a2 *fvm.ScriptProcedure, _a3 *state.StateHolder, _a4 *programs.Programs) error
Process provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
type Span ¶ added in v0.27.0
Span is an autogenerated mock type for the Span type
func NewSpan ¶ added in v0.27.0
NewSpan creates a new instance of Span. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Span) AddEvent ¶ added in v0.27.0
func (_m *Span) AddEvent(name string, options ...trace.EventOption)
AddEvent provides a mock function with given fields: name, options
func (*Span) End ¶ added in v0.27.0
func (_m *Span) End(options ...trace.SpanEndOption)
End provides a mock function with given fields: options
func (*Span) IsRecording ¶ added in v0.27.0
IsRecording provides a mock function with given fields:
func (*Span) RecordError ¶ added in v0.27.0
func (_m *Span) RecordError(err error, options ...trace.EventOption)
RecordError provides a mock function with given fields: err, options
func (*Span) SetAttributes ¶ added in v0.27.0
SetAttributes provides a mock function with given fields: kv
func (*Span) SetStatus ¶ added in v0.27.0
SetStatus provides a mock function with given fields: code, description
func (*Span) SpanContext ¶ added in v0.27.0
func (_m *Span) SpanContext() trace.SpanContext
SpanContext provides a mock function with given fields:
func (*Span) TracerProvider ¶ added in v0.27.0
func (_m *Span) TracerProvider() trace.TracerProvider
TracerProvider provides a mock function with given fields:
type TransactionProcessor ¶
TransactionProcessor is an autogenerated mock type for the TransactionProcessor type
func NewTransactionProcessor ¶ added in v0.26.1
func NewTransactionProcessor(t mockConstructorTestingTNewTransactionProcessor) *TransactionProcessor
NewTransactionProcessor creates a new instance of TransactionProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionProcessor) Process ¶
func (_m *TransactionProcessor) Process(_a0 *fvm.VirtualMachine, _a1 *fvm.Context, _a2 *fvm.TransactionProcedure, _a3 *state.StateHolder, _a4 *programs.Programs) error
Process provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4