mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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 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 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) BroadcastStakingOperation

func (_m *StakeAPI) BroadcastStakingOperation(ctx context.Context, walletId string, addressId string, stakingOperationId string) client.ApiBroadcastStakingOperationRequest

BroadcastStakingOperation provides a mock function with given fields: ctx, walletId, addressId, stakingOperationId

func (*StakeAPI) BroadcastStakingOperationExecute

func (_m *StakeAPI) BroadcastStakingOperationExecute(r client.ApiBroadcastStakingOperationRequest) (*client.StakingOperation, *http.Response, error)

BroadcastStakingOperationExecute provides a mock function with given fields: r

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) CreateStakingOperation

func (_m *StakeAPI) CreateStakingOperation(ctx context.Context, walletId string, addressId string) client.ApiCreateStakingOperationRequest

CreateStakingOperation provides a mock function with given fields: ctx, walletId, addressId

func (*StakeAPI) CreateStakingOperationExecute

func (_m *StakeAPI) CreateStakingOperationExecute(r client.ApiCreateStakingOperationRequest) (*client.StakingOperation, *http.Response, error)

CreateStakingOperationExecute 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) GetStakingOperation

func (_m *StakeAPI) GetStakingOperation(ctx context.Context, walletId string, addressId string, stakingOperationId string) client.ApiGetStakingOperationRequest

GetStakingOperation provides a mock function with given fields: ctx, walletId, addressId, stakingOperationId

func (*StakeAPI) GetStakingOperationExecute

func (_m *StakeAPI) GetStakingOperationExecute(r client.ApiGetStakingOperationRequest) (*client.StakingOperation, *http.Response, error)

GetStakingOperationExecute provides a mock function with given fields: r

type ValidatorsAPI added in v0.0.2

type ValidatorsAPI struct {
	mock.Mock
}

ValidatorsAPI is an autogenerated mock type for the ValidatorsAPI type

func NewValidatorsAPI added in v0.0.2

func NewValidatorsAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *ValidatorsAPI

NewValidatorsAPI creates a new instance of ValidatorsAPI. 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 (*ValidatorsAPI) GetValidator added in v0.0.2

func (_m *ValidatorsAPI) 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 (*ValidatorsAPI) GetValidatorExecute added in v0.0.2

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

GetValidatorExecute provides a mock function with given fields: r

func (*ValidatorsAPI) ListValidators added in v0.0.2

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

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

func (*ValidatorsAPI) ListValidatorsExecute added in v0.0.2

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