Documentation ¶
Index ¶
- type Client
- func (_m *Client) GetPeers(_a0 context.Context) ([]*types.Peer, error)
- func (_m *Client) GetRawTransaction(_a0 context.Context, _a1 string, _a2 string) (*defichain.Transaction, error)
- func (_m *Client) RawMempool(_a0 context.Context) ([]string, error)
- func (_m *Client) SendRawTransaction(_a0 context.Context, _a1 string) (string, error)
- func (_m *Client) SuggestedFeeRate(_a0 context.Context, _a1 int64) (float64, error)
- type Indexer
- func (_m *Indexer) GetBalance(_a0 context.Context, _a1 *types.AccountIdentifier, _a2 *types.Currency, ...) (*types.Amount, *types.BlockIdentifier, error)
- func (_m *Indexer) GetBlockLazy(_a0 context.Context, _a1 *types.PartialBlockIdentifier) (*types.BlockResponse, error)
- func (_m *Indexer) GetBlockTransaction(_a0 context.Context, _a1 *types.BlockIdentifier, ...) (*types.Transaction, error)
- func (_m *Indexer) GetCoins(_a0 context.Context, _a1 *types.AccountIdentifier) ([]*types.Coin, *types.BlockIdentifier, error)
- func (_m *Indexer) GetScriptPubKeys(_a0 context.Context, _a1 []*types.Coin) ([]*defichain.ScriptPubKey, error)
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 (*Client) GetRawTransaction ¶
func (_m *Client) GetRawTransaction(_a0 context.Context, _a1 string, _a2 string) (*defichain.Transaction, error)
GetRawTransaction provides a mock function with given fields: _a0, _a1, _a2
func (*Client) RawMempool ¶
RawMempool provides a mock function with given fields: _a0
func (*Client) SendRawTransaction ¶
SendRawTransaction provides a mock function with given fields: _a0, _a1
type Indexer ¶
Indexer is an autogenerated mock type for the Indexer type
func (*Indexer) GetBalance ¶
func (_m *Indexer) GetBalance(_a0 context.Context, _a1 *types.AccountIdentifier, _a2 *types.Currency, _a3 *types.PartialBlockIdentifier) (*types.Amount, *types.BlockIdentifier, error)
GetBalance provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Indexer) GetBlockLazy ¶
func (_m *Indexer) GetBlockLazy(_a0 context.Context, _a1 *types.PartialBlockIdentifier) (*types.BlockResponse, error)
GetBlockLazy provides a mock function with given fields: _a0, _a1
func (*Indexer) GetBlockTransaction ¶
func (_m *Indexer) GetBlockTransaction(_a0 context.Context, _a1 *types.BlockIdentifier, _a2 *types.TransactionIdentifier) (*types.Transaction, error)
GetBlockTransaction provides a mock function with given fields: _a0, _a1, _a2
func (*Indexer) GetCoins ¶
func (_m *Indexer) GetCoins(_a0 context.Context, _a1 *types.AccountIdentifier) ([]*types.Coin, *types.BlockIdentifier, error)
GetCoins provides a mock function with given fields: _a0, _a1
func (*Indexer) GetScriptPubKeys ¶
func (_m *Indexer) GetScriptPubKeys(_a0 context.Context, _a1 []*types.Coin) ([]*defichain.ScriptPubKey, error)
GetScriptPubKeys provides a mock function with given fields: _a0, _a1