Documentation ¶
Index ¶
- type AccountFreezer
- type AccountInterface
- func (_m *AccountInterface) AddAccountKey(address common.Address, publicKey *stdlib.PublicKey, ...) (*stdlib.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) (*stdlib.AccountKey, error)
- func (_m *AccountInterface) RevokeAccountKey(address common.Address, keyIndex int) (*stdlib.AccountKey, error)
- type Blocks
- type BootstrapProcedureOption
- type MeterInterface
- type NewSpanT
- type Option
- type Procedure
- func (_m *Procedure) ComputationLimit(ctx fvm.Context) uint64
- func (_m *Procedure) ExecutionTime() programs.LogicalTime
- func (_m *Procedure) InitialSnapshotTime() programs.LogicalTime
- func (_m *Procedure) MemoryLimit(ctx fvm.Context) uint64
- func (_m *Procedure) Run(ctx fvm.Context, txnState *state.TransactionState, ...) error
- func (_m *Procedure) ShouldDisableMemoryAndInteractionLimits(ctx fvm.Context) bool
- func (_m *Procedure) Type() fvm.ProcedureType
- 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 StandardLibraryInterface
- type TransactionProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountFreezer ¶ added in v0.28.0
AccountFreezer is an autogenerated mock type for the AccountFreezer type
func NewAccountFreezer ¶ added in v0.28.0
func NewAccountFreezer(t mockConstructorTestingTNewAccountFreezer) *AccountFreezer
NewAccountFreezer creates a new instance of AccountFreezer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccountFreezer) SetAccountFrozen ¶ added in v0.28.0
func (_m *AccountFreezer) SetAccountFrozen(_a0 common.Address, _a1 bool) error
SetAccountFrozen provides a mock function with given fields: _a0, _a1
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 *stdlib.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*stdlib.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) (*stdlib.AccountKey, error)
GetAccountKey provides a mock function with given fields: address, keyIndex
func (*AccountInterface) RevokeAccountKey ¶ added in v0.27.0
func (_m *AccountInterface) RevokeAccountKey(address common.Address, keyIndex int) (*stdlib.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 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) ExecutionTime ¶ added in v0.28.0
func (_m *Procedure) ExecutionTime() programs.LogicalTime
ExecutionTime provides a mock function with given fields:
func (*Procedure) InitialSnapshotTime ¶ added in v0.28.0
func (_m *Procedure) InitialSnapshotTime() programs.LogicalTime
InitialSnapshotTime provides a mock function with given fields:
func (*Procedure) MemoryLimit ¶ added in v0.25.2
MemoryLimit provides a mock function with given fields: ctx
func (*Procedure) Run ¶
func (_m *Procedure) Run(ctx fvm.Context, txnState *state.TransactionState, _a2 *programs.TransactionPrograms) error
Run provides a mock function with given fields: ctx, txnState, _a2
func (*Procedure) ShouldDisableMemoryAndInteractionLimits ¶ added in v0.28.0
ShouldDisableMemoryAndInteractionLimits provides a mock function with given fields: ctx
func (*Procedure) Type ¶ added in v0.28.0
func (_m *Procedure) Type() fvm.ProcedureType
Type provides a mock function with given fields:
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.Context, _a1 *fvm.ScriptProcedure, _a2 *state.TransactionState, _a3 *programs.TransactionPrograms) error
Process provides a mock function with given fields: _a0, _a1, _a2, _a3
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 StandardLibraryInterface ¶ added in v0.28.0
StandardLibraryInterface is an autogenerated mock type for the StandardLibraryInterface type
func NewStandardLibraryInterface ¶ added in v0.28.0
func NewStandardLibraryInterface(t mockConstructorTestingTNewStandardLibraryInterface) *StandardLibraryInterface
NewStandardLibraryInterface creates a new instance of StandardLibraryInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StandardLibraryInterface) SetAccountFrozen ¶ added in v0.28.0
func (_m *StandardLibraryInterface) SetAccountFrozen(address common.Address, frozen bool) error
SetAccountFrozen provides a mock function with given fields: address, frozen
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.Context, _a1 *fvm.TransactionProcedure, _a2 *state.TransactionState, _a3 *programs.TransactionPrograms) error
Process provides a mock function with given fields: _a0, _a1, _a2, _a3