Documentation ¶
Index ¶
- Constants
- type Gateway
- func (_m *Gateway) ExecuteScript(_a0 context.Context, _a1 []byte, _a2 []cadence.Value) (cadence.Value, error)
- func (_m *Gateway) ExecuteScriptAtHeight(_a0 context.Context, _a1 []byte, _a2 []cadence.Value, _a3 uint64) (cadence.Value, error)
- func (_m *Gateway) ExecuteScriptAtID(_a0 context.Context, _a1 []byte, _a2 []cadence.Value, _a3 flow.Identifier) (cadence.Value, error)
- func (_m *Gateway) GetAccount(_a0 context.Context, _a1 flow.Address) (*flow.Account, error)
- func (_m *Gateway) GetBlockByHeight(_a0 context.Context, _a1 uint64) (*flow.Block, error)
- func (_m *Gateway) GetBlockByID(_a0 context.Context, _a1 flow.Identifier) (*flow.Block, error)
- func (_m *Gateway) GetCollection(_a0 context.Context, _a1 flow.Identifier) (*flow.Collection, error)
- func (_m *Gateway) GetEvents(_a0 context.Context, _a1 string, _a2 uint64, _a3 uint64) ([]flow.BlockEvents, error)
- func (_m *Gateway) GetLatestBlock(_a0 context.Context) (*flow.Block, error)
- func (_m *Gateway) GetLatestProtocolStateSnapshot(_a0 context.Context) ([]byte, error)
- func (_m *Gateway) GetTransaction(_a0 context.Context, _a1 flow.Identifier) (*flow.Transaction, error)
- func (_m *Gateway) GetTransactionResult(_a0 context.Context, _a1 flow.Identifier, _a2 bool) (*flow.TransactionResult, error)
- func (_m *Gateway) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionResult, error)
- func (_m *Gateway) GetTransactionsByBlockID(_a0 context.Context, _a1 flow.Identifier) ([]*flow.Transaction, error)
- func (_m *Gateway) Ping() error
- func (_m *Gateway) SecureConnection() bool
- func (_m *Gateway) SendSignedTransaction(_a0 context.Context, _a1 *flow.Transaction) (*flow.Transaction, error)
- func (_m *Gateway) WaitServer(_a0 context.Context) error
- type TestGateway
Constants ¶
const ( GetAccountFunc = "GetAccount" SendSignedTransactionFunc = "SendSignedTransaction" GetCollectionFunc = "GetCollection" GetTransactionResultFunc = "GetTransactionResult" GetEventsFunc = "GetEvents" GetLatestBlockFunc = "GetLatestBlock" GetBlockByHeightFunc = "GetBlockByHeight" GetBlockByIDFunc = "GetBlockByID" ExecuteScriptFunc = "ExecuteScript" GetTransactionFunc = "GetTransaction" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
Gateway is an autogenerated mock type for the Gateway type
func NewGateway ¶
NewGateway creates a new instance of Gateway. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Gateway) ExecuteScript ¶
func (_m *Gateway) ExecuteScript(_a0 context.Context, _a1 []byte, _a2 []cadence.Value) (cadence.Value, error)
ExecuteScript provides a mock function with given fields: _a0, _a1, _a2
func (*Gateway) ExecuteScriptAtHeight ¶
func (_m *Gateway) ExecuteScriptAtHeight(_a0 context.Context, _a1 []byte, _a2 []cadence.Value, _a3 uint64) (cadence.Value, error)
ExecuteScriptAtHeight provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Gateway) ExecuteScriptAtID ¶
func (_m *Gateway) ExecuteScriptAtID(_a0 context.Context, _a1 []byte, _a2 []cadence.Value, _a3 flow.Identifier) (cadence.Value, error)
ExecuteScriptAtID provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Gateway) GetAccount ¶
GetAccount provides a mock function with given fields: _a0, _a1
func (*Gateway) GetBlockByHeight ¶
GetBlockByHeight provides a mock function with given fields: _a0, _a1
func (*Gateway) GetBlockByID ¶
GetBlockByID provides a mock function with given fields: _a0, _a1
func (*Gateway) GetCollection ¶
func (_m *Gateway) GetCollection(_a0 context.Context, _a1 flow.Identifier) (*flow.Collection, error)
GetCollection provides a mock function with given fields: _a0, _a1
func (*Gateway) GetEvents ¶
func (_m *Gateway) GetEvents(_a0 context.Context, _a1 string, _a2 uint64, _a3 uint64) ([]flow.BlockEvents, error)
GetEvents provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Gateway) GetLatestBlock ¶
GetLatestBlock provides a mock function with given fields: _a0
func (*Gateway) GetLatestProtocolStateSnapshot ¶
GetLatestProtocolStateSnapshot provides a mock function with given fields: _a0
func (*Gateway) GetTransaction ¶
func (_m *Gateway) GetTransaction(_a0 context.Context, _a1 flow.Identifier) (*flow.Transaction, error)
GetTransaction provides a mock function with given fields: _a0, _a1
func (*Gateway) GetTransactionResult ¶
func (_m *Gateway) GetTransactionResult(_a0 context.Context, _a1 flow.Identifier, _a2 bool) (*flow.TransactionResult, error)
GetTransactionResult provides a mock function with given fields: _a0, _a1, _a2
func (*Gateway) GetTransactionResultsByBlockID ¶
func (_m *Gateway) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionResult, error)
GetTransactionResultsByBlockID provides a mock function with given fields: ctx, blockID
func (*Gateway) GetTransactionsByBlockID ¶
func (_m *Gateway) GetTransactionsByBlockID(_a0 context.Context, _a1 flow.Identifier) ([]*flow.Transaction, error)
GetTransactionsByBlockID provides a mock function with given fields: _a0, _a1
func (*Gateway) SecureConnection ¶
SecureConnection provides a mock function with given fields:
func (*Gateway) SendSignedTransaction ¶
func (_m *Gateway) SendSignedTransaction(_a0 context.Context, _a1 *flow.Transaction) (*flow.Transaction, error)
SendSignedTransaction provides a mock function with given fields: _a0, _a1
type TestGateway ¶
type TestGateway struct { Mock *Gateway SendSignedTransaction *mock.Call GetAccount *mock.Call GetCollection *mock.Call GetTransactionResult *mock.Call GetEvents *mock.Call GetLatestBlock *mock.Call GetBlockByHeight *mock.Call GetBlockByID *mock.Call ExecuteScript *mock.Call GetTransaction *mock.Call GetTransactionResultsByBlockID *mock.Call GetTransactionsByBlockID *mock.Call GetLatestProtocolStateSnapshot *mock.Call Ping *mock.Call SecureConnection *mock.Call }
func DefaultMockGateway ¶
func DefaultMockGateway() *TestGateway