services

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) GetBestBlock

func (_m *Client) GetBestBlock(_a0 context.Context) (int64, error)

GetBestBlock provides a mock function with given fields: _a0

func (*Client) GetHashFromIndex

func (_m *Client) GetHashFromIndex(_a0 context.Context, _a1 int64) (string, error)

GetBestBlock provides a mock function with given fields: _a0, _a1

func (*Client) GetPeers

func (_m *Client) GetPeers(_a0 context.Context) ([]*types.Peer, error)

GetPeers provides a mock function with given fields: _a0

func (*Client) RawMempool

func (_m *Client) RawMempool(_a0 context.Context) ([]string, error)

RawMempool provides a mock function with given fields: _a0

func (*Client) SendRawTransaction

func (_m *Client) SendRawTransaction(_a0 context.Context, _a1 string) (string, error)

SendRawTransaction provides a mock function with given fields: _a0, _a1

func (*Client) SuggestedFeeRate

func (_m *Client) SuggestedFeeRate(_a0 context.Context, _a1 int64) (float64, error)

SuggestedFeeRate provides a mock function with given fields: _a0, _a1

type Indexer

type Indexer struct {
	mock.Mock
}

Indexer is an autogenerated mock type for the Indexer type

func (*Indexer) GetBalance

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

GetCoins provides a mock function with given fields: _a0, _a1

func (*Indexer) GetScriptPubKeys

func (_m *Indexer) GetScriptPubKeys(_a0 context.Context, _a1 []*types.Coin) ([]*bitcoin.ScriptPubKey, error)

GetScriptPubKeys provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL