Documentation ¶
Index ¶
- type GasEstimatorAPI
- type TransactionsAPI
- func (_m *TransactionsAPI) GetTxByHash(ctx context.Context, protocol string, network string, hash string) ubiquity.ApiGetTxByHashRequest
- func (_m *TransactionsAPI) GetTxByHashExecute(r ubiquity.ApiGetTxByHashRequest) (ubiquity.Tx, *http.Response, error)
- func (_m *TransactionsAPI) GetTxConfirmations(ctx context.Context, protocol string, network string, hash string) ubiquity.ApiGetTxConfirmationsRequest
- func (_m *TransactionsAPI) GetTxConfirmationsExecute(r ubiquity.ApiGetTxConfirmationsRequest) (ubiquity.TxConfirmation, *http.Response, error)
- func (_m *TransactionsAPI) GetTxOutputByHashAndIndex(ctx context.Context, protocol string, network string, hash string, index int32) ubiquity.ApiGetTxOutputByHashAndIndexRequest
- func (_m *TransactionsAPI) GetTxOutputByHashAndIndexExecute(r ubiquity.ApiGetTxOutputByHashAndIndexRequest) (ubiquity.TxOutput, *http.Response, error)
- func (_m *TransactionsAPI) GetTxs(ctx context.Context, protocol string, network string) ubiquity.ApiGetTxsRequest
- func (_m *TransactionsAPI) GetTxsExecute(r ubiquity.ApiGetTxsRequest) (ubiquity.TxPage, *http.Response, error)
- func (_m *TransactionsAPI) TxCreate(ctx context.Context, protocol string, network string) ubiquity.ApiTxCreateRequest
- func (_m *TransactionsAPI) TxCreateExecute(r ubiquity.ApiTxCreateRequest) (ubiquity.UnsignedTx, *http.Response, error)
- func (_m *TransactionsAPI) TxSend(ctx context.Context, protocol string, network string) ubiquity.ApiTxSendRequest
- func (_m *TransactionsAPI) TxSendExecute(r ubiquity.ApiTxSendRequest) (ubiquity.TxReceipt, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GasEstimatorAPI ¶ added in v1.3.0
GasEstimatorAPI is an autogenerated mock type for the GasEstimatorAPI type
func NewGasEstimatorAPI ¶ added in v1.3.0
func NewGasEstimatorAPI(t mockConstructorTestingTNewGasEstimatorAPI) *GasEstimatorAPI
NewGasEstimatorAPI creates a new instance of GasEstimatorAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GasEstimatorAPI) GetGasFeeEstimate ¶ added in v1.3.0
func (_m *GasEstimatorAPI) GetGasFeeEstimate(ctx context.Context, protocol string, network string) ubiquity.ApiGetGasFeeEstimateRequest
GetGasFeeEstimate provides a mock function with given fields: ctx, protocol, network
func (*GasEstimatorAPI) GetGasFeeEstimateExecute ¶ added in v1.3.0
func (_m *GasEstimatorAPI) GetGasFeeEstimateExecute(r ubiquity.ApiGetGasFeeEstimateRequest) (ubiquity.FeeEstimate, *http.Response, error)
GetGasFeeEstimateExecute provides a mock function with given fields: r
type TransactionsAPI ¶
TransactionsAPI is an autogenerated mock type for the TransactionsAPI type
func NewTransactionsAPI ¶ added in v1.1.0
func NewTransactionsAPI(t mockConstructorTestingTNewTransactionsAPI) *TransactionsAPI
NewTransactionsAPI creates a new instance of TransactionsAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionsAPI) GetTxByHash ¶ added in v1.3.0
func (_m *TransactionsAPI) GetTxByHash(ctx context.Context, protocol string, network string, hash string) ubiquity.ApiGetTxByHashRequest
GetTxByHash provides a mock function with given fields: ctx, protocol, network, hash
func (*TransactionsAPI) GetTxByHashExecute ¶ added in v1.3.0
func (_m *TransactionsAPI) GetTxByHashExecute(r ubiquity.ApiGetTxByHashRequest) (ubiquity.Tx, *http.Response, error)
GetTxByHashExecute provides a mock function with given fields: r
func (*TransactionsAPI) GetTxConfirmations ¶
func (_m *TransactionsAPI) GetTxConfirmations(ctx context.Context, protocol string, network string, hash string) ubiquity.ApiGetTxConfirmationsRequest
GetTxConfirmations provides a mock function with given fields: ctx, protocol, network, hash
func (*TransactionsAPI) GetTxConfirmationsExecute ¶
func (_m *TransactionsAPI) GetTxConfirmationsExecute(r ubiquity.ApiGetTxConfirmationsRequest) (ubiquity.TxConfirmation, *http.Response, error)
GetTxConfirmationsExecute provides a mock function with given fields: r
func (*TransactionsAPI) GetTxOutputByHashAndIndex ¶ added in v1.3.0
func (_m *TransactionsAPI) GetTxOutputByHashAndIndex(ctx context.Context, protocol string, network string, hash string, index int32) ubiquity.ApiGetTxOutputByHashAndIndexRequest
GetTxOutputByHashAndIndex provides a mock function with given fields: ctx, protocol, network, hash, index
func (*TransactionsAPI) GetTxOutputByHashAndIndexExecute ¶ added in v1.3.0
func (_m *TransactionsAPI) GetTxOutputByHashAndIndexExecute(r ubiquity.ApiGetTxOutputByHashAndIndexRequest) (ubiquity.TxOutput, *http.Response, error)
GetTxOutputByHashAndIndexExecute provides a mock function with given fields: r
func (*TransactionsAPI) GetTxs ¶
func (_m *TransactionsAPI) GetTxs(ctx context.Context, protocol string, network string) ubiquity.ApiGetTxsRequest
GetTxs provides a mock function with given fields: ctx, protocol, network
func (*TransactionsAPI) GetTxsExecute ¶
func (_m *TransactionsAPI) GetTxsExecute(r ubiquity.ApiGetTxsRequest) (ubiquity.TxPage, *http.Response, error)
GetTxsExecute provides a mock function with given fields: r
func (*TransactionsAPI) TxCreate ¶ added in v1.3.0
func (_m *TransactionsAPI) TxCreate(ctx context.Context, protocol string, network string) ubiquity.ApiTxCreateRequest
TxCreate provides a mock function with given fields: ctx, protocol, network
func (*TransactionsAPI) TxCreateExecute ¶ added in v1.3.0
func (_m *TransactionsAPI) TxCreateExecute(r ubiquity.ApiTxCreateRequest) (ubiquity.UnsignedTx, *http.Response, error)
TxCreateExecute provides a mock function with given fields: r
func (*TransactionsAPI) TxSend ¶
func (_m *TransactionsAPI) TxSend(ctx context.Context, protocol string, network string) ubiquity.ApiTxSendRequest
TxSend provides a mock function with given fields: ctx, protocol, network
func (*TransactionsAPI) TxSendExecute ¶
func (_m *TransactionsAPI) TxSendExecute(r ubiquity.ApiTxSendRequest) (ubiquity.TxReceipt, *http.Response, error)
TxSendExecute provides a mock function with given fields: r