Documentation
¶
Index ¶
- type CustomTransaction
- type NetworkTransactions
- type RemoteView
- func (v *RemoteView) AllRegisters() []flow.RegisterID
- func (v *RemoteView) Delete(owner, key string) error
- func (v *RemoteView) DropDelta()
- func (v *RemoteView) Get(owner, key string) (flow.RegisterValue, error)
- func (v *RemoteView) MergeView(o state.View) error
- func (v *RemoteView) NewChild() state.View
- func (v *RemoteView) RegisterUpdates() ([]flow.RegisterID, []flow.RegisterValue)
- func (v *RemoteView) Set(owner, key string, value flow.RegisterValue) error
- func (v *RemoteView) Touch(owner, key string) error
- type TransactionResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTransaction ¶
type CustomTransaction struct { Tx *flow.TransactionBody Height uint64 }
CustomTransaction implements transaction resolver that returns a transaction that was provided on the initialization, used for custom transactions you manually build.
func (*CustomTransaction) BlockHeight ¶
func (c *CustomTransaction) BlockHeight() (uint64, error)
func (*CustomTransaction) TransactionBody ¶
func (c *CustomTransaction) TransactionBody() (*flow.TransactionBody, error)
type NetworkTransactions ¶
type NetworkTransactions struct { Client dps.APIClient ID flow.Identifier }
NetworkTransactions implements transaction resolver that fetches existing transaction from the Flow network using the archive node client.
func (*NetworkTransactions) BlockHeight ¶
func (n *NetworkTransactions) BlockHeight() (uint64, error)
func (*NetworkTransactions) TransactionBody ¶
func (n *NetworkTransactions) TransactionBody() (*flow.TransactionBody, error)
type RemoteView ¶
type RemoteView struct { Parent *RemoteView Delta map[string]flow.RegisterValue // contains filtered or unexported fields }
func NewRemoteView ¶
func NewRemoteView(reader registers.RegisterGetRegisterFunc) *RemoteView
func (*RemoteView) AllRegisters ¶
func (v *RemoteView) AllRegisters() []flow.RegisterID
returns all the registers that has been touched
func (*RemoteView) Delete ¶
func (v *RemoteView) Delete(owner, key string) error
func (*RemoteView) DropDelta ¶
func (v *RemoteView) DropDelta()
func (*RemoteView) Get ¶
func (v *RemoteView) Get(owner, key string) (flow.RegisterValue, error)
func (*RemoteView) NewChild ¶
func (v *RemoteView) NewChild() state.View
func (*RemoteView) RegisterUpdates ¶
func (v *RemoteView) RegisterUpdates() ([]flow.RegisterID, []flow.RegisterValue)
func (*RemoteView) Set ¶
func (v *RemoteView) Set(owner, key string, value flow.RegisterValue) error
func (*RemoteView) Touch ¶
func (v *RemoteView) Touch(owner, key string) error
type TransactionResolver ¶
type TransactionResolver interface { TransactionBody() (*flow.TransactionBody, error) BlockHeight() (uint64, error) }
Click to show internal directories.
Click to hide internal directories.