Documentation ¶
Index ¶
- func NewAccountCreateResult(address string) *flow.TransactionResult
- func NewAccountWithAddress(address string) *flow.Account
- func NewBlock() *flow.Block
- func NewCollection() *flow.Collection
- func NewEvent(index int, eventId string, fields []cadence.Field, values []cadence.Value) *flow.Event
- func NewMockGateway() gateway.Gateway
- func NewTransaction() *flow.Transaction
- func NewTransactionResult(events []flow.Event) *flow.TransactionResult
- type MockGateway
- func (g *MockGateway) ExecuteScript(script []byte, arguments []cadence.Value) (cadence.Value, error)
- func (g *MockGateway) GetAccount(address flow.Address) (*flow.Account, error)
- func (g *MockGateway) GetBlockByHeight(height uint64) (*flow.Block, error)
- func (g *MockGateway) GetBlockByID(id flow.Identifier) (*flow.Block, error)
- func (g *MockGateway) GetCollection(id flow.Identifier) (*flow.Collection, error)
- func (g *MockGateway) GetEvents(name string, start uint64, end uint64) ([]client.BlockEvents, error)
- func (g *MockGateway) GetLatestBlock() (*flow.Block, error)
- func (g *MockGateway) GetTransaction(id flow.Identifier) (*flow.Transaction, error)
- func (g *MockGateway) GetTransactionResult(tx *flow.Transaction, waitSeal bool) (*flow.TransactionResult, error)
- func (g *MockGateway) Ping() error
- func (g *MockGateway) SendSignedTransaction(tx *project.Transaction) (*flow.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountCreateResult ¶
func NewAccountCreateResult(address string) *flow.TransactionResult
func NewAccountWithAddress ¶
func NewAccountWithAddress(address string) *flow.Account
func NewCollection ¶
func NewCollection() *flow.Collection
func NewMockGateway ¶
func NewTransaction ¶
func NewTransaction() *flow.Transaction
func NewTransactionResult ¶
func NewTransactionResult(events []flow.Event) *flow.TransactionResult
Types ¶
type MockGateway ¶
type MockGateway struct { GetAccountMock func(address flow.Address) (*flow.Account, error) SendTransactionMock func(tx *project.Transaction) (*flow.Transaction, error) PrepareTransactionPayloadMock func(tx *project.Transaction) (*project.Transaction, error) SendSignedTransactionMock func(tx *project.Transaction) (*flow.Transaction, error) GetTransactionResultMock func(tx *flow.Transaction) (*flow.TransactionResult, error) GetTransactionMock func(id flow.Identifier) (*flow.Transaction, error) ExecuteScriptMock func(script []byte, arguments []cadence.Value) (cadence.Value, error) GetLatestBlockMock func() (*flow.Block, error) GetEventsMock func(string, uint64, uint64) ([]client.BlockEvents, error) GetCollectionMock func(id flow.Identifier) (*flow.Collection, error) GetBlockByHeightMock func(uint64) (*flow.Block, error) GetBlockByIDMock func(flow.Identifier) (*flow.Block, error) PingMock func() error }
func (*MockGateway) ExecuteScript ¶
func (*MockGateway) GetAccount ¶
func (g *MockGateway) GetAccount(address flow.Address) (*flow.Account, error)
func (*MockGateway) GetBlockByHeight ¶
func (g *MockGateway) GetBlockByHeight(height uint64) (*flow.Block, error)
func (*MockGateway) GetBlockByID ¶
func (g *MockGateway) GetBlockByID(id flow.Identifier) (*flow.Block, error)
func (*MockGateway) GetCollection ¶
func (g *MockGateway) GetCollection(id flow.Identifier) (*flow.Collection, error)
func (*MockGateway) GetEvents ¶
func (g *MockGateway) GetEvents(name string, start uint64, end uint64) ([]client.BlockEvents, error)
func (*MockGateway) GetLatestBlock ¶
func (g *MockGateway) GetLatestBlock() (*flow.Block, error)
func (*MockGateway) GetTransaction ¶
func (g *MockGateway) GetTransaction(id flow.Identifier) (*flow.Transaction, error)
func (*MockGateway) GetTransactionResult ¶
func (g *MockGateway) GetTransactionResult(tx *flow.Transaction, waitSeal bool) (*flow.TransactionResult, error)
func (*MockGateway) Ping ¶ added in v0.19.0
func (g *MockGateway) Ping() error
func (*MockGateway) SendSignedTransaction ¶ added in v0.18.0
func (g *MockGateway) SendSignedTransaction(tx *project.Transaction) (*flow.Transaction, error)
Click to show internal directories.
Click to hide internal directories.