Documentation ¶
Index ¶
- type AccountCreator
- type AccountInfo
- func (_m *AccountInfo) GetAccount(address flow.Address) (*flow.Account, error)
- func (_m *AccountInfo) GetAccountAvailableBalance(runtimeAddress common.Address) (uint64, error)
- func (_m *AccountInfo) GetAccountBalance(runtimeAddress common.Address) (uint64, error)
- func (_m *AccountInfo) GetStorageCapacity(runtimeAddress common.Address) (uint64, error)
- func (_m *AccountInfo) GetStorageUsed(runtimeaddress common.Address) (uint64, error)
- type AccountKeyReader
- type AccountKeyUpdater
- func (_m *AccountKeyUpdater) AddAccountKey(runtimeAddress common.Address, publicKey *stdlib.PublicKey, ...) (*stdlib.AccountKey, error)
- func (_m *AccountKeyUpdater) AddEncodedAccountKey(runtimeAddress common.Address, publicKey []byte) error
- func (_m *AccountKeyUpdater) RevokeAccountKey(runtimeAddress common.Address, keyIndex int) (*stdlib.AccountKey, error)
- func (_m *AccountKeyUpdater) RevokeEncodedAccountKey(runtimeAddress common.Address, index int) ([]byte, error)
- type AccountLocalIDGenerator
- type Accounts
- func (_m *Accounts) AllocateStorageIndex(address flow.Address) (atree.StorageIndex, error)
- func (_m *Accounts) AppendPublicKey(address flow.Address, key flow.AccountPublicKey) error
- func (_m *Accounts) ContractExists(contractName string, address flow.Address) (bool, error)
- func (_m *Accounts) Create(publicKeys []flow.AccountPublicKey, newAddress flow.Address) error
- func (_m *Accounts) DeleteContract(contractName string, address flow.Address) error
- func (_m *Accounts) Exists(address flow.Address) (bool, error)
- func (_m *Accounts) GenerateAccountLocalID(address flow.Address) (uint64, error)
- func (_m *Accounts) Get(address flow.Address) (*flow.Account, error)
- func (_m *Accounts) GetContract(contractName string, address flow.Address) ([]byte, error)
- func (_m *Accounts) GetContractNames(address flow.Address) ([]string, error)
- func (_m *Accounts) GetPublicKey(address flow.Address, keyIndex uint64) (flow.AccountPublicKey, error)
- func (_m *Accounts) GetPublicKeyCount(address flow.Address) (uint64, error)
- func (_m *Accounts) GetStorageUsed(address flow.Address) (uint64, error)
- func (_m *Accounts) GetValue(id flow.RegisterID) ([]byte, error)
- func (_m *Accounts) SetContract(contractName string, address flow.Address, contract []byte) error
- func (_m *Accounts) SetPublicKey(address flow.Address, keyIndex uint64, publicKey flow.AccountPublicKey) ([]byte, error)
- func (_m *Accounts) SetValue(id flow.RegisterID, value []byte) error
- type AddressGenerator
- type BlockInfo
- type Blocks
- type BootstrapAccountCreator
- type ContractUpdater
- func (_m *ContractUpdater) Commit() (environment.ContractUpdates, error)
- func (_m *ContractUpdater) RemoveAccountContractCode(location common.AddressLocation) error
- func (_m *ContractUpdater) Reset()
- func (_m *ContractUpdater) UpdateAccountContractCode(location common.AddressLocation, code []byte) error
- type ContractUpdaterStubs
- type CryptoLibrary
- func (_m *CryptoLibrary) BLSAggregatePublicKeys(keys []*stdlib.PublicKey) (*stdlib.PublicKey, error)
- func (_m *CryptoLibrary) BLSAggregateSignatures(sigs [][]byte) ([]byte, error)
- func (_m *CryptoLibrary) BLSVerifyPOP(pk *stdlib.PublicKey, sig []byte) (bool, error)
- func (_m *CryptoLibrary) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
- func (_m *CryptoLibrary) ValidatePublicKey(pk *stdlib.PublicKey) error
- func (_m *CryptoLibrary) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, ...) (bool, error)
- type EntropyProvider
- type Environment
- func (_m *Environment) AccountKeysCount(address common.Address) (uint64, error)
- func (_m *Environment) AccountsStorageCapacity(addresses []flow.Address, payer flow.Address, maxTxFees uint64) (cadence.Value, error)
- func (_m *Environment) AddAccountKey(address common.Address, publicKey *stdlib.PublicKey, ...) (*stdlib.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(publicKeys []*stdlib.PublicKey) (*stdlib.PublicKey, error)
- func (_m *Environment) BLSAggregateSignatures(signatures [][]byte) ([]byte, error)
- func (_m *Environment) BLSVerifyPOP(publicKey *stdlib.PublicKey, signature []byte) (bool, error)
- func (_m *Environment) BorrowCadenceRuntime() *runtime.ReusableCadenceRuntime
- func (_m *Environment) CheckPayerBalanceAndGetMaxTxFees(payer flow.Address, inclusionEffort uint64, executionEffort uint64) (cadence.Value, error)
- func (_m *Environment) ComputationAvailable(_a0 common.ComputationKind, _a1 uint) bool
- func (_m *Environment) ComputationIntensities() meter.MeteredComputationIntensities
- func (_m *Environment) ComputationUsed() (uint64, error)
- func (_m *Environment) ConvertedServiceEvents() flow.ServiceEventList
- 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) DeductTransactionFees(payer flow.Address, inclusionEffort uint64, executionEffort uint64) (cadence.Value, error)
- func (_m *Environment) EmitEvent(_a0 cadence.Event) error
- func (_m *Environment) Events() flow.EventsList
- func (_m *Environment) FlushPendingUpdates() (environment.ContractUpdates, error)
- func (_m *Environment) GenerateAccountID(address common.Address) (uint64, error)
- func (_m *Environment) GenerateUUID() (uint64, error)
- func (_m *Environment) GetAccount(address flow.Address) (*flow.Account, error)
- func (_m *Environment) GetAccountAvailableBalance(address common.Address) (uint64, error)
- func (_m *Environment) GetAccountBalance(address common.Address) (uint64, error)
- func (_m *Environment) GetAccountContractCode(location common.AddressLocation) ([]byte, error)
- func (_m *Environment) GetAccountContractNames(address common.Address) ([]string, error)
- func (_m *Environment) GetAccountKey(address common.Address, index int) (*stdlib.AccountKey, error)
- func (_m *Environment) GetBlockAtHeight(height uint64) (stdlib.Block, bool, error)
- func (_m *Environment) GetCode(location common.Location) ([]byte, error)
- func (_m *Environment) GetCurrentBlockHeight() (uint64, error)
- func (_m *Environment) GetInterpreterSharedState() *interpreter.SharedState
- func (_m *Environment) GetOrLoadProgram(location common.Location, load func() (*interpreter.Program, error)) (*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) InteractionUsed() (uint64, error)
- func (_m *Environment) IsServiceAccountAuthorizer() bool
- func (_m *Environment) LimitAccountStorage() bool
- func (_m *Environment) Logger() zerolog.Logger
- func (_m *Environment) Logs() []string
- func (_m *Environment) MemoryUsed() (uint64, error)
- func (_m *Environment) MeterComputation(operationType common.ComputationKind, intensity uint) error
- func (_m *Environment) MeterEmittedEvent(byteSize uint64) error
- func (_m *Environment) MeterMemory(usage common.MemoryUsage) error
- func (_m *Environment) ProgramLog(_a0 string) error
- func (_m *Environment) RandomSourceHistory() ([]byte, error)
- func (_m *Environment) ReadRandom(_a0 []byte) error
- func (_m *Environment) RecordTrace(operation string, location common.Location, duration time.Duration, ...)
- func (_m *Environment) RemoveAccountContractCode(location common.AddressLocation) error
- func (_m *Environment) Reset()
- 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) ReturnCadenceRuntime(_a0 *runtime.ReusableCadenceRuntime)
- func (_m *Environment) RevokeAccountKey(address common.Address, index int) (*stdlib.AccountKey, error)
- func (_m *Environment) RevokeEncodedAccountKey(address common.Address, index int) ([]byte, error)
- func (_m *Environment) ServiceEvents() flow.EventsList
- func (_m *Environment) SetInterpreterSharedState(state *interpreter.SharedState)
- func (_m *Environment) SetValue(owner []byte, key []byte, value []byte) error
- func (_m *Environment) StartChildSpan(name trace.SpanName, options ...oteltrace.SpanStartOption) tracing.TracerSpan
- func (_m *Environment) TotalEmittedEventBytes() uint64
- func (_m *Environment) TransactionFeesEnabled() bool
- func (_m *Environment) TxID() flow.Identifier
- func (_m *Environment) TxIndex() uint32
- func (_m *Environment) UpdateAccountContractCode(location common.AddressLocation, code []byte) error
- func (_m *Environment) ValidatePublicKey(key *stdlib.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 EventEmitter
- type EventEncoder
- type Meter
- func (_m *Meter) ComputationAvailable(_a0 common.ComputationKind, _a1 uint) bool
- func (_m *Meter) ComputationIntensities() meter.MeteredComputationIntensities
- func (_m *Meter) ComputationUsed() (uint64, error)
- func (_m *Meter) InteractionUsed() (uint64, error)
- func (_m *Meter) MemoryUsed() (uint64, error)
- func (_m *Meter) MeterComputation(_a0 common.ComputationKind, _a1 uint) error
- func (_m *Meter) MeterEmittedEvent(byteSize uint64) error
- func (_m *Meter) MeterMemory(usage common.MemoryUsage) error
- func (_m *Meter) TotalEmittedEventBytes() uint64
- type MetricsReporter
- func (_m *MetricsReporter) RuntimeSetNumberOfAccounts(count uint64)
- func (_m *MetricsReporter) RuntimeTransactionChecked(_a0 time.Duration)
- func (_m *MetricsReporter) RuntimeTransactionInterpreted(_a0 time.Duration)
- func (_m *MetricsReporter) RuntimeTransactionParsed(_a0 time.Duration)
- func (_m *MetricsReporter) RuntimeTransactionProgramsCacheHit()
- func (_m *MetricsReporter) RuntimeTransactionProgramsCacheMiss()
- type RandomGenerator
- type RandomSourceHistoryProvider
- type TransactionInfo
- func (_m *TransactionInfo) GetSigningAccounts() ([]common.Address, error)
- func (_m *TransactionInfo) IsServiceAccountAuthorizer() bool
- func (_m *TransactionInfo) LimitAccountStorage() bool
- func (_m *TransactionInfo) TransactionFeesEnabled() bool
- func (_m *TransactionInfo) TxID() flow.Identifier
- func (_m *TransactionInfo) TxIndex() uint32
- type UUIDGenerator
- type ValueStore
- func (_m *ValueStore) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
- func (_m *ValueStore) GetValue(owner []byte, key []byte) ([]byte, error)
- func (_m *ValueStore) SetValue(owner []byte, key []byte, value []byte) error
- func (_m *ValueStore) ValueExists(owner []byte, key []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountCreator ¶
AccountCreator is an autogenerated mock type for the AccountCreator type
func NewAccountCreator ¶
func NewAccountCreator(t mockConstructorTestingTNewAccountCreator) *AccountCreator
NewAccountCreator creates a new instance of AccountCreator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccountCreator) CreateAccount ¶
CreateAccount provides a mock function with given fields: runtimePayer
type AccountInfo ¶
AccountInfo is an autogenerated mock type for the AccountInfo type
func NewAccountInfo ¶
func NewAccountInfo(t mockConstructorTestingTNewAccountInfo) *AccountInfo
NewAccountInfo creates a new instance of AccountInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccountInfo) GetAccount ¶
GetAccount provides a mock function with given fields: address
func (*AccountInfo) GetAccountAvailableBalance ¶
func (_m *AccountInfo) GetAccountAvailableBalance(runtimeAddress common.Address) (uint64, error)
GetAccountAvailableBalance provides a mock function with given fields: runtimeAddress
func (*AccountInfo) GetAccountBalance ¶
func (_m *AccountInfo) GetAccountBalance(runtimeAddress common.Address) (uint64, error)
GetAccountBalance provides a mock function with given fields: runtimeAddress
func (*AccountInfo) GetStorageCapacity ¶
func (_m *AccountInfo) GetStorageCapacity(runtimeAddress common.Address) (uint64, error)
GetStorageCapacity provides a mock function with given fields: runtimeAddress
func (*AccountInfo) GetStorageUsed ¶
func (_m *AccountInfo) GetStorageUsed(runtimeaddress common.Address) (uint64, error)
GetStorageUsed provides a mock function with given fields: runtimeaddress
type AccountKeyReader ¶ added in v0.28.7
AccountKeyReader is an autogenerated mock type for the AccountKeyReader type
func NewAccountKeyReader ¶ added in v0.28.7
func NewAccountKeyReader(t mockConstructorTestingTNewAccountKeyReader) *AccountKeyReader
NewAccountKeyReader creates a new instance of AccountKeyReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccountKeyReader) AccountKeysCount ¶ added in v0.29.0
func (_m *AccountKeyReader) AccountKeysCount(runtimeAddress common.Address) (uint64, error)
AccountKeysCount provides a mock function with given fields: runtimeAddress
func (*AccountKeyReader) GetAccountKey ¶ added in v0.28.7
func (_m *AccountKeyReader) GetAccountKey(runtimeAddress common.Address, keyIndex int) (*stdlib.AccountKey, error)
GetAccountKey provides a mock function with given fields: runtimeAddress, keyIndex
type AccountKeyUpdater ¶
AccountKeyUpdater is an autogenerated mock type for the AccountKeyUpdater type
func NewAccountKeyUpdater ¶
func NewAccountKeyUpdater(t mockConstructorTestingTNewAccountKeyUpdater) *AccountKeyUpdater
NewAccountKeyUpdater creates a new instance of AccountKeyUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccountKeyUpdater) AddAccountKey ¶
func (_m *AccountKeyUpdater) AddAccountKey(runtimeAddress common.Address, publicKey *stdlib.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*stdlib.AccountKey, error)
AddAccountKey provides a mock function with given fields: runtimeAddress, publicKey, hashAlgo, weight
func (*AccountKeyUpdater) AddEncodedAccountKey ¶
func (_m *AccountKeyUpdater) AddEncodedAccountKey(runtimeAddress common.Address, publicKey []byte) error
AddEncodedAccountKey provides a mock function with given fields: runtimeAddress, publicKey
func (*AccountKeyUpdater) RevokeAccountKey ¶
func (_m *AccountKeyUpdater) RevokeAccountKey(runtimeAddress common.Address, keyIndex int) (*stdlib.AccountKey, error)
RevokeAccountKey provides a mock function with given fields: runtimeAddress, keyIndex
func (*AccountKeyUpdater) RevokeEncodedAccountKey ¶
func (_m *AccountKeyUpdater) RevokeEncodedAccountKey(runtimeAddress common.Address, index int) ([]byte, error)
RevokeEncodedAccountKey provides a mock function with given fields: runtimeAddress, index
type AccountLocalIDGenerator ¶ added in v0.31.0
AccountLocalIDGenerator is an autogenerated mock type for the AccountLocalIDGenerator type
func NewAccountLocalIDGenerator ¶ added in v0.31.0
func NewAccountLocalIDGenerator(t mockConstructorTestingTNewAccountLocalIDGenerator) *AccountLocalIDGenerator
NewAccountLocalIDGenerator creates a new instance of AccountLocalIDGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccountLocalIDGenerator) GenerateAccountID ¶ added in v0.31.0
func (_m *AccountLocalIDGenerator) GenerateAccountID(address common.Address) (uint64, error)
GenerateAccountID provides a mock function with given fields: address
type Accounts ¶
Accounts is an autogenerated mock type for the Accounts type
func NewAccounts ¶
func NewAccounts(t mockConstructorTestingTNewAccounts) *Accounts
NewAccounts creates a new instance of Accounts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Accounts) AllocateStorageIndex ¶
AllocateStorageIndex provides a mock function with given fields: address
func (*Accounts) AppendPublicKey ¶
AppendPublicKey provides a mock function with given fields: address, key
func (*Accounts) ContractExists ¶
ContractExists provides a mock function with given fields: contractName, address
func (*Accounts) DeleteContract ¶
DeleteContract provides a mock function with given fields: contractName, address
func (*Accounts) GenerateAccountLocalID ¶ added in v0.31.0
GenerateAccountLocalID provides a mock function with given fields: address
func (*Accounts) GetContract ¶
GetContract provides a mock function with given fields: contractName, address
func (*Accounts) GetContractNames ¶
GetContractNames provides a mock function with given fields: address
func (*Accounts) GetPublicKey ¶
func (_m *Accounts) GetPublicKey(address flow.Address, keyIndex uint64) (flow.AccountPublicKey, error)
GetPublicKey provides a mock function with given fields: address, keyIndex
func (*Accounts) GetPublicKeyCount ¶
GetPublicKeyCount provides a mock function with given fields: address
func (*Accounts) GetStorageUsed ¶
GetStorageUsed provides a mock function with given fields: address
func (*Accounts) GetValue ¶
func (_m *Accounts) GetValue(id flow.RegisterID) ([]byte, error)
GetValue provides a mock function with given fields: id
func (*Accounts) SetContract ¶
SetContract provides a mock function with given fields: contractName, address, contract
func (*Accounts) SetPublicKey ¶
func (_m *Accounts) SetPublicKey(address flow.Address, keyIndex uint64, publicKey flow.AccountPublicKey) ([]byte, error)
SetPublicKey provides a mock function with given fields: address, keyIndex, publicKey
type AddressGenerator ¶
AddressGenerator is an autogenerated mock type for the AddressGenerator type
func NewAddressGenerator ¶
func NewAddressGenerator(t mockConstructorTestingTNewAddressGenerator) *AddressGenerator
NewAddressGenerator creates a new instance of AddressGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AddressGenerator) AddressCount ¶
func (_m *AddressGenerator) AddressCount() uint64
AddressCount provides a mock function with given fields:
func (*AddressGenerator) Bytes ¶
func (_m *AddressGenerator) Bytes() []byte
Bytes provides a mock function with given fields:
func (*AddressGenerator) CurrentAddress ¶
func (_m *AddressGenerator) CurrentAddress() flow.Address
CurrentAddress provides a mock function with given fields:
func (*AddressGenerator) NextAddress ¶
func (_m *AddressGenerator) NextAddress() (flow.Address, error)
NextAddress provides a mock function with given fields:
type BlockInfo ¶ added in v0.28.7
BlockInfo is an autogenerated mock type for the BlockInfo type
func NewBlockInfo ¶ added in v0.28.7
func NewBlockInfo(t mockConstructorTestingTNewBlockInfo) *BlockInfo
NewBlockInfo creates a new instance of BlockInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlockInfo) GetBlockAtHeight ¶ added in v0.28.7
GetBlockAtHeight provides a mock function with given fields: height
func (*BlockInfo) GetCurrentBlockHeight ¶ added in v0.28.7
GetCurrentBlockHeight provides a mock function with given fields:
type Blocks ¶
Blocks is an autogenerated mock type for the Blocks type
type BootstrapAccountCreator ¶
BootstrapAccountCreator is an autogenerated mock type for the BootstrapAccountCreator type
func NewBootstrapAccountCreator ¶
func NewBootstrapAccountCreator(t mockConstructorTestingTNewBootstrapAccountCreator) *BootstrapAccountCreator
NewBootstrapAccountCreator creates a new instance of BootstrapAccountCreator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BootstrapAccountCreator) CreateBootstrapAccount ¶
func (_m *BootstrapAccountCreator) CreateBootstrapAccount(publicKeys []flow.AccountPublicKey) (flow.Address, error)
CreateBootstrapAccount provides a mock function with given fields: publicKeys
type ContractUpdater ¶
ContractUpdater is an autogenerated mock type for the ContractUpdater type
func NewContractUpdater ¶
func NewContractUpdater(t mockConstructorTestingTNewContractUpdater) *ContractUpdater
NewContractUpdater creates a new instance of ContractUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ContractUpdater) Commit ¶
func (_m *ContractUpdater) Commit() (environment.ContractUpdates, error)
Commit provides a mock function with given fields:
func (*ContractUpdater) RemoveAccountContractCode ¶
func (_m *ContractUpdater) RemoveAccountContractCode(location common.AddressLocation) error
RemoveAccountContractCode provides a mock function with given fields: location
func (*ContractUpdater) Reset ¶
func (_m *ContractUpdater) Reset()
Reset provides a mock function with given fields:
func (*ContractUpdater) UpdateAccountContractCode ¶
func (_m *ContractUpdater) UpdateAccountContractCode(location common.AddressLocation, code []byte) error
UpdateAccountContractCode provides a mock function with given fields: location, code
type ContractUpdaterStubs ¶
ContractUpdaterStubs is an autogenerated mock type for the ContractUpdaterStubs type
func NewContractUpdaterStubs ¶
func NewContractUpdaterStubs(t mockConstructorTestingTNewContractUpdaterStubs) *ContractUpdaterStubs
NewContractUpdaterStubs creates a new instance of ContractUpdaterStubs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ContractUpdaterStubs) GetAuthorizedAccounts ¶
func (_m *ContractUpdaterStubs) GetAuthorizedAccounts(path cadence.Path) []flow.Address
GetAuthorizedAccounts provides a mock function with given fields: path
func (*ContractUpdaterStubs) RestrictedDeploymentEnabled ¶
func (_m *ContractUpdaterStubs) RestrictedDeploymentEnabled() bool
RestrictedDeploymentEnabled provides a mock function with given fields:
func (*ContractUpdaterStubs) RestrictedRemovalEnabled ¶
func (_m *ContractUpdaterStubs) RestrictedRemovalEnabled() bool
RestrictedRemovalEnabled provides a mock function with given fields:
type CryptoLibrary ¶ added in v0.28.7
CryptoLibrary is an autogenerated mock type for the CryptoLibrary type
func NewCryptoLibrary ¶ added in v0.28.7
func NewCryptoLibrary(t mockConstructorTestingTNewCryptoLibrary) *CryptoLibrary
NewCryptoLibrary creates a new instance of CryptoLibrary. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CryptoLibrary) BLSAggregatePublicKeys ¶ added in v0.28.7
func (_m *CryptoLibrary) BLSAggregatePublicKeys(keys []*stdlib.PublicKey) (*stdlib.PublicKey, error)
BLSAggregatePublicKeys provides a mock function with given fields: keys
func (*CryptoLibrary) BLSAggregateSignatures ¶ added in v0.28.7
func (_m *CryptoLibrary) BLSAggregateSignatures(sigs [][]byte) ([]byte, error)
BLSAggregateSignatures provides a mock function with given fields: sigs
func (*CryptoLibrary) BLSVerifyPOP ¶ added in v0.28.7
BLSVerifyPOP provides a mock function with given fields: pk, sig
func (*CryptoLibrary) Hash ¶ added in v0.28.7
func (_m *CryptoLibrary) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
Hash provides a mock function with given fields: data, tag, hashAlgorithm
func (*CryptoLibrary) ValidatePublicKey ¶ added in v0.28.7
func (_m *CryptoLibrary) ValidatePublicKey(pk *stdlib.PublicKey) error
ValidatePublicKey provides a mock function with given fields: pk
func (*CryptoLibrary) VerifySignature ¶ added in v0.28.7
func (_m *CryptoLibrary) 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 EntropyProvider ¶ added in v0.32.0
EntropyProvider is an autogenerated mock type for the EntropyProvider type
func NewEntropyProvider ¶ added in v0.32.0
func NewEntropyProvider(t mockConstructorTestingTNewEntropyProvider) *EntropyProvider
NewEntropyProvider creates a new instance of EntropyProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EntropyProvider) RandomSource ¶ added in v0.32.0
func (_m *EntropyProvider) RandomSource() ([]byte, error)
RandomSource provides a mock function with given fields:
type Environment ¶
Environment is an autogenerated mock type for the Environment type
func NewEnvironment ¶
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) AccountKeysCount ¶ added in v0.29.0
func (_m *Environment) AccountKeysCount(address common.Address) (uint64, error)
AccountKeysCount provides a mock function with given fields: address
func (*Environment) AccountsStorageCapacity ¶
func (_m *Environment) AccountsStorageCapacity(addresses []flow.Address, payer flow.Address, maxTxFees uint64) (cadence.Value, error)
AccountsStorageCapacity provides a mock function with given fields: addresses, payer, maxTxFees
func (*Environment) AddAccountKey ¶
func (_m *Environment) 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 (*Environment) AddEncodedAccountKey ¶
func (_m *Environment) AddEncodedAccountKey(address common.Address, publicKey []byte) error
AddEncodedAccountKey provides a mock function with given fields: address, publicKey
func (*Environment) AllocateStorageIndex ¶
func (_m *Environment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
AllocateStorageIndex provides a mock function with given fields: owner
func (*Environment) BLSAggregatePublicKeys ¶
func (_m *Environment) BLSAggregatePublicKeys(publicKeys []*stdlib.PublicKey) (*stdlib.PublicKey, error)
BLSAggregatePublicKeys provides a mock function with given fields: publicKeys
func (*Environment) BLSAggregateSignatures ¶
func (_m *Environment) BLSAggregateSignatures(signatures [][]byte) ([]byte, error)
BLSAggregateSignatures provides a mock function with given fields: signatures
func (*Environment) BLSVerifyPOP ¶
BLSVerifyPOP provides a mock function with given fields: publicKey, signature
func (*Environment) BorrowCadenceRuntime ¶
func (_m *Environment) BorrowCadenceRuntime() *runtime.ReusableCadenceRuntime
BorrowCadenceRuntime provides a mock function with given fields:
func (*Environment) CheckPayerBalanceAndGetMaxTxFees ¶ added in v0.29.0
func (_m *Environment) CheckPayerBalanceAndGetMaxTxFees(payer flow.Address, inclusionEffort uint64, executionEffort uint64) (cadence.Value, error)
CheckPayerBalanceAndGetMaxTxFees provides a mock function with given fields: payer, inclusionEffort, executionEffort
func (*Environment) ComputationAvailable ¶ added in v0.33.1
func (_m *Environment) ComputationAvailable(_a0 common.ComputationKind, _a1 uint) bool
ComputationAvailable provides a mock function with given fields: _a0, _a1
func (*Environment) ComputationIntensities ¶ added in v0.29.0
func (_m *Environment) ComputationIntensities() meter.MeteredComputationIntensities
ComputationIntensities provides a mock function with given fields:
func (*Environment) ComputationUsed ¶
func (_m *Environment) ComputationUsed() (uint64, error)
ComputationUsed provides a mock function with given fields:
func (*Environment) ConvertedServiceEvents ¶ added in v0.30.0
func (_m *Environment) ConvertedServiceEvents() flow.ServiceEventList
ConvertedServiceEvents provides a mock function with given fields:
func (*Environment) CreateAccount ¶
CreateAccount provides a mock function with given fields: payer
func (*Environment) DecodeArgument ¶
func (_m *Environment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)
DecodeArgument provides a mock function with given fields: argument, argumentType
func (*Environment) DeductTransactionFees ¶
func (_m *Environment) DeductTransactionFees(payer flow.Address, inclusionEffort uint64, executionEffort uint64) (cadence.Value, error)
DeductTransactionFees provides a mock function with given fields: payer, inclusionEffort, executionEffort
func (*Environment) EmitEvent ¶
func (_m *Environment) EmitEvent(_a0 cadence.Event) error
EmitEvent provides a mock function with given fields: _a0
func (*Environment) Events ¶
func (_m *Environment) Events() flow.EventsList
Events provides a mock function with given fields:
func (*Environment) FlushPendingUpdates ¶
func (_m *Environment) FlushPendingUpdates() (environment.ContractUpdates, error)
FlushPendingUpdates provides a mock function with given fields:
func (*Environment) GenerateAccountID ¶ added in v0.31.0
func (_m *Environment) GenerateAccountID(address common.Address) (uint64, error)
GenerateAccountID provides a mock function with given fields: address
func (*Environment) GenerateUUID ¶
func (_m *Environment) GenerateUUID() (uint64, error)
GenerateUUID provides a mock function with given fields:
func (*Environment) GetAccount ¶
GetAccount provides a mock function with given fields: address
func (*Environment) GetAccountAvailableBalance ¶
func (_m *Environment) GetAccountAvailableBalance(address common.Address) (uint64, error)
GetAccountAvailableBalance provides a mock function with given fields: address
func (*Environment) GetAccountBalance ¶
func (_m *Environment) GetAccountBalance(address common.Address) (uint64, error)
GetAccountBalance provides a mock function with given fields: address
func (*Environment) GetAccountContractCode ¶
func (_m *Environment) GetAccountContractCode(location common.AddressLocation) ([]byte, error)
GetAccountContractCode provides a mock function with given fields: location
func (*Environment) GetAccountContractNames ¶
func (_m *Environment) GetAccountContractNames(address common.Address) ([]string, error)
GetAccountContractNames provides a mock function with given fields: address
func (*Environment) GetAccountKey ¶
func (_m *Environment) GetAccountKey(address common.Address, index int) (*stdlib.AccountKey, error)
GetAccountKey provides a mock function with given fields: address, index
func (*Environment) GetBlockAtHeight ¶
GetBlockAtHeight provides a mock function with given fields: height
func (*Environment) GetCode ¶
func (_m *Environment) GetCode(location common.Location) ([]byte, error)
GetCode provides a mock function with given fields: location
func (*Environment) GetCurrentBlockHeight ¶
func (_m *Environment) GetCurrentBlockHeight() (uint64, error)
GetCurrentBlockHeight provides a mock function with given fields:
func (*Environment) GetInterpreterSharedState ¶ added in v0.29.0
func (_m *Environment) GetInterpreterSharedState() *interpreter.SharedState
GetInterpreterSharedState provides a mock function with given fields:
func (*Environment) GetOrLoadProgram ¶ added in v0.30.0
func (_m *Environment) GetOrLoadProgram(location common.Location, load func() (*interpreter.Program, error)) (*interpreter.Program, error)
GetOrLoadProgram provides a mock function with given fields: location, load
func (*Environment) GetSigningAccounts ¶
func (_m *Environment) GetSigningAccounts() ([]common.Address, error)
GetSigningAccounts provides a mock function with given fields:
func (*Environment) GetStorageCapacity ¶
func (_m *Environment) GetStorageCapacity(address common.Address) (uint64, error)
GetStorageCapacity provides a mock function with given fields: address
func (*Environment) GetStorageUsed ¶
func (_m *Environment) GetStorageUsed(address common.Address) (uint64, error)
GetStorageUsed provides a mock function with given fields: address
func (*Environment) GetValue ¶
func (_m *Environment) GetValue(owner []byte, key []byte) ([]byte, error)
GetValue provides a mock function with given fields: owner, key
func (*Environment) Hash ¶
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 ¶
func (_m *Environment) ImplementationDebugLog(message string) error
ImplementationDebugLog provides a mock function with given fields: message
func (*Environment) InteractionUsed ¶ added in v0.30.0
func (_m *Environment) InteractionUsed() (uint64, error)
InteractionUsed provides a mock function with given fields:
func (*Environment) IsServiceAccountAuthorizer ¶
func (_m *Environment) IsServiceAccountAuthorizer() bool
IsServiceAccountAuthorizer provides a mock function with given fields:
func (*Environment) LimitAccountStorage ¶
func (_m *Environment) LimitAccountStorage() bool
LimitAccountStorage provides a mock function with given fields:
func (*Environment) Logger ¶
func (_m *Environment) Logger() zerolog.Logger
Logger provides a mock function with given fields:
func (*Environment) Logs ¶
func (_m *Environment) Logs() []string
Logs provides a mock function with given fields:
func (*Environment) MemoryUsed ¶ added in v0.30.0
func (_m *Environment) MemoryUsed() (uint64, error)
MemoryUsed provides a mock function with given fields:
func (*Environment) MeterComputation ¶
func (_m *Environment) MeterComputation(operationType common.ComputationKind, intensity uint) error
MeterComputation provides a mock function with given fields: operationType, intensity
func (*Environment) MeterEmittedEvent ¶
func (_m *Environment) MeterEmittedEvent(byteSize uint64) error
MeterEmittedEvent provides a mock function with given fields: byteSize
func (*Environment) MeterMemory ¶
func (_m *Environment) MeterMemory(usage common.MemoryUsage) error
MeterMemory provides a mock function with given fields: usage
func (*Environment) ProgramLog ¶
func (_m *Environment) ProgramLog(_a0 string) error
ProgramLog provides a mock function with given fields: _a0
func (*Environment) RandomSourceHistory ¶ added in v0.32.2
func (_m *Environment) RandomSourceHistory() ([]byte, error)
RandomSourceHistory provides a mock function with given fields:
func (*Environment) ReadRandom ¶ added in v0.32.0
func (_m *Environment) ReadRandom(_a0 []byte) error
ReadRandom provides a mock function with given fields: _a0
func (*Environment) RecordTrace ¶
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 ¶
func (_m *Environment) RemoveAccountContractCode(location common.AddressLocation) error
RemoveAccountContractCode provides a mock function with given fields: location
func (*Environment) Reset ¶
func (_m *Environment) Reset()
Reset provides a mock function with given fields:
func (*Environment) ResolveLocation ¶
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 ¶
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) ReturnCadenceRuntime ¶
func (_m *Environment) ReturnCadenceRuntime(_a0 *runtime.ReusableCadenceRuntime)
ReturnCadenceRuntime provides a mock function with given fields: _a0
func (*Environment) RevokeAccountKey ¶
func (_m *Environment) RevokeAccountKey(address common.Address, index int) (*stdlib.AccountKey, error)
RevokeAccountKey provides a mock function with given fields: address, index
func (*Environment) RevokeEncodedAccountKey ¶
RevokeEncodedAccountKey provides a mock function with given fields: address, index
func (*Environment) ServiceEvents ¶
func (_m *Environment) ServiceEvents() flow.EventsList
ServiceEvents provides a mock function with given fields:
func (*Environment) SetInterpreterSharedState ¶ added in v0.29.0
func (_m *Environment) SetInterpreterSharedState(state *interpreter.SharedState)
SetInterpreterSharedState provides a mock function with given fields: state
func (*Environment) SetValue ¶
func (_m *Environment) SetValue(owner []byte, key []byte, value []byte) error
SetValue provides a mock function with given fields: owner, key, value
func (*Environment) StartChildSpan ¶ added in v0.30.0
func (_m *Environment) StartChildSpan(name trace.SpanName, options ...oteltrace.SpanStartOption) tracing.TracerSpan
StartChildSpan provides a mock function with given fields: name, options
func (*Environment) TotalEmittedEventBytes ¶
func (_m *Environment) TotalEmittedEventBytes() uint64
TotalEmittedEventBytes provides a mock function with given fields:
func (*Environment) TransactionFeesEnabled ¶
func (_m *Environment) TransactionFeesEnabled() bool
TransactionFeesEnabled provides a mock function with given fields:
func (*Environment) TxID ¶
func (_m *Environment) TxID() flow.Identifier
TxID provides a mock function with given fields:
func (*Environment) TxIndex ¶
func (_m *Environment) TxIndex() uint32
TxIndex provides a mock function with given fields:
func (*Environment) UpdateAccountContractCode ¶
func (_m *Environment) UpdateAccountContractCode(location common.AddressLocation, code []byte) error
UpdateAccountContractCode provides a mock function with given fields: location, code
func (*Environment) ValidatePublicKey ¶
func (_m *Environment) ValidatePublicKey(key *stdlib.PublicKey) error
ValidatePublicKey provides a mock function with given fields: key
func (*Environment) ValueExists ¶
func (_m *Environment) ValueExists(owner []byte, key []byte) (bool, error)
ValueExists provides a mock function with given fields: owner, key
func (*Environment) VerifySignature ¶
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 EventEmitter ¶
EventEmitter is an autogenerated mock type for the EventEmitter type
func NewEventEmitter ¶
func NewEventEmitter(t mockConstructorTestingTNewEventEmitter) *EventEmitter
NewEventEmitter creates a new instance of EventEmitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EventEmitter) ConvertedServiceEvents ¶ added in v0.30.0
func (_m *EventEmitter) ConvertedServiceEvents() flow.ServiceEventList
ConvertedServiceEvents provides a mock function with given fields:
func (*EventEmitter) EmitEvent ¶
func (_m *EventEmitter) EmitEvent(event cadence.Event) error
EmitEvent provides a mock function with given fields: event
func (*EventEmitter) Events ¶
func (_m *EventEmitter) Events() flow.EventsList
Events provides a mock function with given fields:
func (*EventEmitter) Reset ¶
func (_m *EventEmitter) Reset()
Reset provides a mock function with given fields:
func (*EventEmitter) ServiceEvents ¶
func (_m *EventEmitter) ServiceEvents() flow.EventsList
ServiceEvents provides a mock function with given fields:
type EventEncoder ¶ added in v0.29.0
EventEncoder is an autogenerated mock type for the EventEncoder type
func NewEventEncoder ¶ added in v0.29.0
func NewEventEncoder(t mockConstructorTestingTNewEventEncoder) *EventEncoder
NewEventEncoder creates a new instance of EventEncoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Meter ¶
Meter is an autogenerated mock type for the Meter type
func NewMeter ¶
func NewMeter(t mockConstructorTestingTNewMeter) *Meter
NewMeter creates a new instance of Meter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Meter) ComputationAvailable ¶ added in v0.33.1
func (_m *Meter) ComputationAvailable(_a0 common.ComputationKind, _a1 uint) bool
ComputationAvailable provides a mock function with given fields: _a0, _a1
func (*Meter) ComputationIntensities ¶ added in v0.29.0
func (_m *Meter) ComputationIntensities() meter.MeteredComputationIntensities
ComputationIntensities provides a mock function with given fields:
func (*Meter) ComputationUsed ¶
ComputationUsed provides a mock function with given fields:
func (*Meter) InteractionUsed ¶ added in v0.30.0
InteractionUsed provides a mock function with given fields:
func (*Meter) MemoryUsed ¶ added in v0.30.0
MemoryUsed provides a mock function with given fields:
func (*Meter) MeterComputation ¶
func (_m *Meter) MeterComputation(_a0 common.ComputationKind, _a1 uint) error
MeterComputation provides a mock function with given fields: _a0, _a1
func (*Meter) MeterEmittedEvent ¶
MeterEmittedEvent provides a mock function with given fields: byteSize
func (*Meter) MeterMemory ¶
func (_m *Meter) MeterMemory(usage common.MemoryUsage) error
MeterMemory provides a mock function with given fields: usage
func (*Meter) TotalEmittedEventBytes ¶
TotalEmittedEventBytes provides a mock function with given fields:
type MetricsReporter ¶
MetricsReporter is an autogenerated mock type for the MetricsReporter type
func NewMetricsReporter ¶
func NewMetricsReporter(t mockConstructorTestingTNewMetricsReporter) *MetricsReporter
NewMetricsReporter creates a new instance of MetricsReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MetricsReporter) RuntimeSetNumberOfAccounts ¶
func (_m *MetricsReporter) RuntimeSetNumberOfAccounts(count uint64)
RuntimeSetNumberOfAccounts provides a mock function with given fields: count
func (*MetricsReporter) RuntimeTransactionChecked ¶
func (_m *MetricsReporter) RuntimeTransactionChecked(_a0 time.Duration)
RuntimeTransactionChecked provides a mock function with given fields: _a0
func (*MetricsReporter) RuntimeTransactionInterpreted ¶
func (_m *MetricsReporter) RuntimeTransactionInterpreted(_a0 time.Duration)
RuntimeTransactionInterpreted provides a mock function with given fields: _a0
func (*MetricsReporter) RuntimeTransactionParsed ¶
func (_m *MetricsReporter) RuntimeTransactionParsed(_a0 time.Duration)
RuntimeTransactionParsed provides a mock function with given fields: _a0
func (*MetricsReporter) RuntimeTransactionProgramsCacheHit ¶ added in v0.29.17
func (_m *MetricsReporter) RuntimeTransactionProgramsCacheHit()
RuntimeTransactionProgramsCacheHit provides a mock function with given fields:
func (*MetricsReporter) RuntimeTransactionProgramsCacheMiss ¶ added in v0.29.17
func (_m *MetricsReporter) RuntimeTransactionProgramsCacheMiss()
RuntimeTransactionProgramsCacheMiss provides a mock function with given fields:
type RandomGenerator ¶ added in v0.32.0
RandomGenerator is an autogenerated mock type for the RandomGenerator type
func NewRandomGenerator ¶ added in v0.32.0
func NewRandomGenerator(t mockConstructorTestingTNewRandomGenerator) *RandomGenerator
NewRandomGenerator creates a new instance of RandomGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RandomGenerator) ReadRandom ¶ added in v0.32.0
func (_m *RandomGenerator) ReadRandom(_a0 []byte) error
ReadRandom provides a mock function with given fields: _a0
type RandomSourceHistoryProvider ¶ added in v0.32.2
RandomSourceHistoryProvider is an autogenerated mock type for the RandomSourceHistoryProvider type
func NewRandomSourceHistoryProvider ¶ added in v0.32.2
func NewRandomSourceHistoryProvider(t mockConstructorTestingTNewRandomSourceHistoryProvider) *RandomSourceHistoryProvider
NewRandomSourceHistoryProvider creates a new instance of RandomSourceHistoryProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RandomSourceHistoryProvider) RandomSourceHistory ¶ added in v0.32.2
func (_m *RandomSourceHistoryProvider) RandomSourceHistory() ([]byte, error)
RandomSourceHistory provides a mock function with given fields:
type TransactionInfo ¶
TransactionInfo is an autogenerated mock type for the TransactionInfo type
func NewTransactionInfo ¶
func NewTransactionInfo(t mockConstructorTestingTNewTransactionInfo) *TransactionInfo
NewTransactionInfo creates a new instance of TransactionInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionInfo) GetSigningAccounts ¶
func (_m *TransactionInfo) GetSigningAccounts() ([]common.Address, error)
GetSigningAccounts provides a mock function with given fields:
func (*TransactionInfo) IsServiceAccountAuthorizer ¶
func (_m *TransactionInfo) IsServiceAccountAuthorizer() bool
IsServiceAccountAuthorizer provides a mock function with given fields:
func (*TransactionInfo) LimitAccountStorage ¶
func (_m *TransactionInfo) LimitAccountStorage() bool
LimitAccountStorage provides a mock function with given fields:
func (*TransactionInfo) TransactionFeesEnabled ¶
func (_m *TransactionInfo) TransactionFeesEnabled() bool
TransactionFeesEnabled provides a mock function with given fields:
func (*TransactionInfo) TxID ¶
func (_m *TransactionInfo) TxID() flow.Identifier
TxID provides a mock function with given fields:
func (*TransactionInfo) TxIndex ¶
func (_m *TransactionInfo) TxIndex() uint32
TxIndex provides a mock function with given fields:
type UUIDGenerator ¶ added in v0.28.7
UUIDGenerator is an autogenerated mock type for the UUIDGenerator type
func NewUUIDGenerator ¶ added in v0.28.7
func NewUUIDGenerator(t mockConstructorTestingTNewUUIDGenerator) *UUIDGenerator
NewUUIDGenerator creates a new instance of UUIDGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UUIDGenerator) GenerateUUID ¶ added in v0.28.7
func (_m *UUIDGenerator) GenerateUUID() (uint64, error)
GenerateUUID provides a mock function with given fields:
type ValueStore ¶ added in v0.28.7
ValueStore is an autogenerated mock type for the ValueStore type
func NewValueStore ¶ added in v0.28.7
func NewValueStore(t mockConstructorTestingTNewValueStore) *ValueStore
NewValueStore creates a new instance of ValueStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ValueStore) AllocateStorageIndex ¶ added in v0.28.7
func (_m *ValueStore) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
AllocateStorageIndex provides a mock function with given fields: owner
func (*ValueStore) GetValue ¶ added in v0.28.7
func (_m *ValueStore) GetValue(owner []byte, key []byte) ([]byte, error)
GetValue provides a mock function with given fields: owner, key
func (*ValueStore) SetValue ¶ added in v0.28.7
func (_m *ValueStore) SetValue(owner []byte, key []byte, value []byte) error
SetValue provides a mock function with given fields: owner, key, value
func (*ValueStore) ValueExists ¶ added in v0.28.7
func (_m *ValueStore) ValueExists(owner []byte, key []byte) (bool, error)
ValueExists provides a mock function with given fields: owner, key
Source Files ¶
- account_creator.go
- account_info.go
- account_key_reader.go
- account_key_updater.go
- account_local_id_generator.go
- accounts.go
- address_generator.go
- block_info.go
- blocks.go
- bootstrap_account_creator.go
- contract_updater.go
- contract_updater_stubs.go
- crypto_library.go
- entropy_provider.go
- environment.go
- event_emitter.go
- event_encoder.go
- meter.go
- metrics_reporter.go
- random_generator.go
- random_source_history_provider.go
- transaction_info.go
- uuid_generator.go
- value_store.go