Documentation ¶
Index ¶
- type Client
- func (_m *Client) Account(_a0 context.Context, _a1 types.AccAddress) (authtypes.AccountI, error)
- func (_m *Client) Balance(_a0 context.Context, _a1 *rosetta_sdk_gotypes.AccountIdentifier, ...) (*rosetta_sdk_gotypes.AccountBalanceResponse, error)
- func (_m *Client) Block(_a0 context.Context, _a1 *rosetta_sdk_gotypes.PartialBlockIdentifier) (*rosetta_sdk_gotypes.BlockResponse, error)
- func (_m *Client) EstimateGas(_a0 context.Context, _a1 signing.Tx, _a2 float64) (uint64, error)
- func (_m *Client) PostTx(ctx context.Context, txBytes []byte) (*rosetta_sdk_gotypes.TransactionIdentifier, error)
- func (_m *Client) Status(_a0 context.Context) (*rosetta_sdk_gotypes.BlockIdentifier, int64, ...)
- type NewClientT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v1.2.0
func NewClient(t NewClientT) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) Balance ¶
func (_m *Client) Balance(_a0 context.Context, _a1 *rosetta_sdk_gotypes.AccountIdentifier, _a2 *rosetta_sdk_gotypes.PartialBlockIdentifier, _a3 []*rosetta_sdk_gotypes.Currency) (*rosetta_sdk_gotypes.AccountBalanceResponse, error)
Balance provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Client) Block ¶
func (_m *Client) Block(_a0 context.Context, _a1 *rosetta_sdk_gotypes.PartialBlockIdentifier) (*rosetta_sdk_gotypes.BlockResponse, error)
Block provides a mock function with given fields: _a0, _a1
func (*Client) EstimateGas ¶
EstimateGas provides a mock function with given fields: _a0, _a1, _a2
func (*Client) PostTx ¶
func (_m *Client) PostTx(ctx context.Context, txBytes []byte) (*rosetta_sdk_gotypes.TransactionIdentifier, error)
PostTx provides a mock function with given fields: ctx, txBytes
func (*Client) Status ¶
func (_m *Client) Status(_a0 context.Context) (*rosetta_sdk_gotypes.BlockIdentifier, int64, *rosetta_sdk_gotypes.BlockIdentifier, *rosetta_sdk_gotypes.SyncStatus, []*rosetta_sdk_gotypes.Peer, error)
Status provides a mock function with given fields: _a0
type NewClientT ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.