mocks

package
v0.0.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsAPI

type AssetsAPI struct {
	mock.Mock
}

AssetsAPI is an autogenerated mock type for the AssetsAPI type

func NewAssetsAPI

func NewAssetsAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetsAPI

NewAssetsAPI creates a new instance of AssetsAPI. 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 (*AssetsAPI) GetAsset

func (_m *AssetsAPI) GetAsset(ctx context.Context, networkId string, assetId string) client.ApiGetAssetRequest

GetAsset provides a mock function with given fields: ctx, networkId, assetId

func (*AssetsAPI) GetAssetExecute

func (_m *AssetsAPI) GetAssetExecute(r client.ApiGetAssetRequest) (*client.Asset, *http.Response, error)

GetAssetExecute provides a mock function with given fields: r

type Signable added in v0.0.10

type Signable struct {
	mock.Mock
}

Signable is an autogenerated mock type for the Signable type

func NewSignable added in v0.0.10

func NewSignable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Signable

NewSignable creates a new instance of Signable. 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 (*Signable) IsSigned added in v0.0.10

func (_m *Signable) IsSigned() bool

IsSigned provides a mock function with given fields:

func (*Signable) Raw added in v0.0.10

func (_m *Signable) Raw() interface{}

Raw provides a mock function with given fields:

func (*Signable) Sign added in v0.0.10

func (_m *Signable) Sign(_a0 crypto.Signer) (string, error)

Sign provides a mock function with given fields: _a0

type StakeAPI

type StakeAPI struct {
	mock.Mock
}

StakeAPI is an autogenerated mock type for the StakeAPI type

func NewStakeAPI

func NewStakeAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *StakeAPI

NewStakeAPI creates a new instance of StakeAPI. 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 (*StakeAPI) BuildStakingOperation

func (_m *StakeAPI) BuildStakingOperation(ctx context.Context) client.ApiBuildStakingOperationRequest

BuildStakingOperation provides a mock function with given fields: ctx

func (*StakeAPI) BuildStakingOperationExecute

func (_m *StakeAPI) BuildStakingOperationExecute(r client.ApiBuildStakingOperationRequest) (*client.StakingOperation, *http.Response, error)

BuildStakingOperationExecute provides a mock function with given fields: r

func (*StakeAPI) FetchHistoricalStakingBalances

func (_m *StakeAPI) FetchHistoricalStakingBalances(ctx context.Context, networkId string, addressId string) client.ApiFetchHistoricalStakingBalancesRequest

FetchHistoricalStakingBalances provides a mock function with given fields: ctx, networkId, addressId

func (*StakeAPI) FetchHistoricalStakingBalancesExecute

FetchHistoricalStakingBalancesExecute provides a mock function with given fields: r

func (*StakeAPI) FetchStakingRewards

func (_m *StakeAPI) FetchStakingRewards(ctx context.Context) client.ApiFetchStakingRewardsRequest

FetchStakingRewards provides a mock function with given fields: ctx

func (*StakeAPI) FetchStakingRewardsExecute

FetchStakingRewardsExecute provides a mock function with given fields: r

func (*StakeAPI) GetExternalStakingOperation

func (_m *StakeAPI) GetExternalStakingOperation(ctx context.Context, networkId string, addressId string, stakingOperationId string) client.ApiGetExternalStakingOperationRequest

GetExternalStakingOperation provides a mock function with given fields: ctx, networkId, addressId, stakingOperationId

func (*StakeAPI) GetExternalStakingOperationExecute

func (_m *StakeAPI) GetExternalStakingOperationExecute(r client.ApiGetExternalStakingOperationRequest) (*client.StakingOperation, *http.Response, error)

GetExternalStakingOperationExecute provides a mock function with given fields: r

func (*StakeAPI) GetStakingContext

func (_m *StakeAPI) GetStakingContext(ctx context.Context) client.ApiGetStakingContextRequest

GetStakingContext provides a mock function with given fields: ctx

func (*StakeAPI) GetStakingContextExecute

func (_m *StakeAPI) GetStakingContextExecute(r client.ApiGetStakingContextRequest) (*client.StakingContext, *http.Response, error)

GetStakingContextExecute provides a mock function with given fields: r

func (*StakeAPI) GetValidator added in v0.0.13

func (_m *StakeAPI) GetValidator(ctx context.Context, networkId string, assetId string, validatorId string) client.ApiGetValidatorRequest

GetValidator provides a mock function with given fields: ctx, networkId, assetId, validatorId

func (*StakeAPI) GetValidatorExecute added in v0.0.13

func (_m *StakeAPI) GetValidatorExecute(r client.ApiGetValidatorRequest) (*client.Validator, *http.Response, error)

GetValidatorExecute provides a mock function with given fields: r

func (*StakeAPI) ListValidators added in v0.0.13

func (_m *StakeAPI) ListValidators(ctx context.Context, networkId string, assetId string) client.ApiListValidatorsRequest

ListValidators provides a mock function with given fields: ctx, networkId, assetId

func (*StakeAPI) ListValidatorsExecute added in v0.0.13

func (_m *StakeAPI) ListValidatorsExecute(r client.ApiListValidatorsRequest) (*client.ValidatorList, *http.Response, error)

ListValidatorsExecute provides a mock function with given fields: r

Jump to

Keyboard shortcuts

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