Documentation ¶
Index ¶
- 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) CheckAccountNotFrozen(address flow.Address) 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) 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(address flow.Address, key string) ([]byte, error)
- func (_m *Accounts) SetAccountFrozen(address flow.Address, frozen bool) 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(address flow.Address, key string, value []byte) error
- type Ledger
- type StateOption
- type View
- func (_m *View) AllRegisters() []flow.RegisterID
- func (_m *View) Delete(owner string, key string) error
- func (_m *View) DropDelta()
- func (_m *View) Get(owner string, key string) ([]byte, error)
- func (_m *View) MergeView(child state.View) error
- func (_m *View) NewChild() state.View
- func (_m *View) RegisterUpdates() ([]flow.RegisterID, [][]byte)
- func (_m *View) Set(owner string, key string, value []byte) error
- func (_m *View) Touch(owner string, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶ added in v0.22.4
Accounts is an autogenerated mock type for the Accounts type
func NewAccounts ¶ added in v0.26.1
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 ¶ added in v0.22.4
AllocateStorageIndex provides a mock function with given fields: address
func (*Accounts) AppendPublicKey ¶ added in v0.22.4
AppendPublicKey provides a mock function with given fields: address, key
func (*Accounts) CheckAccountNotFrozen ¶ added in v0.22.4
CheckAccountNotFrozen provides a mock function with given fields: address
func (*Accounts) ContractExists ¶ added in v0.26.0
ContractExists provides a mock function with given fields: contractName, address
func (*Accounts) Create ¶ added in v0.22.4
Create provides a mock function with given fields: publicKeys, newAddress
func (*Accounts) DeleteContract ¶ added in v0.22.4
DeleteContract provides a mock function with given fields: contractName, address
func (*Accounts) Exists ¶ added in v0.22.4
Exists provides a mock function with given fields: address
func (*Accounts) GetContract ¶ added in v0.22.4
GetContract provides a mock function with given fields: contractName, address
func (*Accounts) GetContractNames ¶ added in v0.22.4
GetContractNames provides a mock function with given fields: address
func (*Accounts) GetPublicKey ¶ added in v0.22.4
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 ¶ added in v0.22.4
GetPublicKeyCount provides a mock function with given fields: address
func (*Accounts) GetStorageUsed ¶ added in v0.22.4
GetStorageUsed provides a mock function with given fields: address
func (*Accounts) GetValue ¶ added in v0.22.4
GetValue provides a mock function with given fields: address, key
func (*Accounts) SetAccountFrozen ¶ added in v0.22.4
SetAccountFrozen provides a mock function with given fields: address, frozen
func (*Accounts) SetContract ¶ added in v0.22.4
SetContract provides a mock function with given fields: contractName, address, contract
func (*Accounts) SetPublicKey ¶ added in v0.22.4
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 Ledger ¶
Ledger is an autogenerated mock type for the Ledger type
func NewLedger ¶ added in v0.26.1
func NewLedger(t mockConstructorTestingTNewLedger) *Ledger
NewLedger creates a new instance of Ledger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type StateOption ¶ added in v0.26.1
StateOption is an autogenerated mock type for the StateOption type
func NewStateOption ¶ added in v0.26.1
func NewStateOption(t mockConstructorTestingTNewStateOption) *StateOption
NewStateOption creates a new instance of StateOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type View ¶
View is an autogenerated mock type for the View type
func NewView ¶ added in v0.26.1
func NewView(t mockConstructorTestingTNewView) *View
NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*View) AllRegisters ¶
func (_m *View) AllRegisters() []flow.RegisterID
AllRegisters provides a mock function with given fields:
func (*View) DropDelta ¶
func (_m *View) DropDelta()
DropDelta provides a mock function with given fields:
func (*View) RegisterUpdates ¶
func (_m *View) RegisterUpdates() ([]flow.RegisterID, [][]byte)
RegisterUpdates provides a mock function with given fields: