mocks

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCallback

type AuthCallback struct {
	mock.Mock
}

AuthCallback is an autogenerated mock type for the AuthCallback type

func NewAuthCallback added in v1.8.17

func NewAuthCallback(t mockConstructorTestingTNewAuthCallback) *AuthCallback

NewAuthCallback creates a new instance of AuthCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthCallback) OnSetupComplete

func (_m *AuthCallback) OnSetupComplete(status int, err string)

OnSetupComplete provides a mock function with given fields: status, err

type FeeOption added in v1.11.0

type FeeOption struct {
	mock.Mock
}

FeeOption is an autogenerated mock type for the FeeOption type

func NewFeeOption added in v1.11.0

func NewFeeOption(t mockConstructorTestingTNewFeeOption) *FeeOption

NewFeeOption creates a new instance of FeeOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FeeOption) Execute added in v1.11.0

func (_m *FeeOption) Execute(_a0 *zcncore.TxnFeeOption)

Execute provides a mock function with given fields: _a0

type GetBalanceCallback

type GetBalanceCallback struct {
	mock.Mock
}

GetBalanceCallback is an autogenerated mock type for the GetBalanceCallback type

func NewGetBalanceCallback added in v1.8.17

func NewGetBalanceCallback(t mockConstructorTestingTNewGetBalanceCallback) *GetBalanceCallback

NewGetBalanceCallback creates a new instance of GetBalanceCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GetBalanceCallback) OnBalanceAvailable

func (_m *GetBalanceCallback) OnBalanceAvailable(status int, value int64, info string)

OnBalanceAvailable provides a mock function with given fields: status, value, info

type GetInfoCallback

type GetInfoCallback struct {
	mock.Mock
}

GetInfoCallback is an autogenerated mock type for the GetInfoCallback type

func NewGetInfoCallback added in v1.8.17

func NewGetInfoCallback(t mockConstructorTestingTNewGetInfoCallback) *GetInfoCallback

NewGetInfoCallback creates a new instance of GetInfoCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GetInfoCallback) OnInfoAvailable

func (_m *GetInfoCallback) OnInfoAvailable(op int, status int, info string, err string)

OnInfoAvailable provides a mock function with given fields: op, status, info, err

type GetNonceCallback added in v1.11.0

type GetNonceCallback struct {
	mock.Mock
}

GetNonceCallback is an autogenerated mock type for the GetNonceCallback type

func NewGetNonceCallback added in v1.11.0

func NewGetNonceCallback(t mockConstructorTestingTNewGetNonceCallback) *GetNonceCallback

NewGetNonceCallback creates a new instance of GetNonceCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GetNonceCallback) OnNonceAvailable added in v1.11.0

func (_m *GetNonceCallback) OnNonceAvailable(status int, nonce int64, info string)

OnNonceAvailable provides a mock function with given fields: status, nonce, info

type MSVoteCallback

type MSVoteCallback struct {
	mock.Mock
}

MSVoteCallback is an autogenerated mock type for the MSVoteCallback type

func NewMSVoteCallback added in v1.8.17

func NewMSVoteCallback(t mockConstructorTestingTNewMSVoteCallback) *MSVoteCallback

NewMSVoteCallback creates a new instance of MSVoteCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MSVoteCallback) OnVoteComplete

func (_m *MSVoteCallback) OnVoteComplete(status int, proposal string, err string)

OnVoteComplete provides a mock function with given fields: status, proposal, err

type QueryResultHandle added in v1.11.0

type QueryResultHandle struct {
	mock.Mock
}

QueryResultHandle is an autogenerated mock type for the QueryResultHandle type

func NewQueryResultHandle added in v1.11.0

func NewQueryResultHandle(t mockConstructorTestingTNewQueryResultHandle) *QueryResultHandle

NewQueryResultHandle creates a new instance of QueryResultHandle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*QueryResultHandle) Execute added in v1.11.0

func (_m *QueryResultHandle) Execute(result zcncore.QueryResult) bool

Execute provides a mock function with given fields: result

type TransactionCallback

type TransactionCallback struct {
	mock.Mock
}

TransactionCallback is an autogenerated mock type for the TransactionCallback type

func NewTransactionCallback added in v1.8.17

func NewTransactionCallback(t mockConstructorTestingTNewTransactionCallback) *TransactionCallback

NewTransactionCallback creates a new instance of TransactionCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionCallback) OnAuthComplete

func (_m *TransactionCallback) OnAuthComplete(t *zcncore.Transaction, status int)

OnAuthComplete provides a mock function with given fields: t, status

func (*TransactionCallback) OnTransactionComplete

func (_m *TransactionCallback) OnTransactionComplete(t *zcncore.Transaction, status int)

OnTransactionComplete provides a mock function with given fields: t, status

func (*TransactionCallback) OnVerifyComplete

func (_m *TransactionCallback) OnVerifyComplete(t *zcncore.Transaction, status int)

OnVerifyComplete provides a mock function with given fields: t, status

type TransactionCommon added in v1.11.0

type TransactionCommon struct {
	mock.Mock
}

TransactionCommon is an autogenerated mock type for the TransactionCommon type

func NewTransactionCommon added in v1.11.0

func NewTransactionCommon(t mockConstructorTestingTNewTransactionCommon) *TransactionCommon

NewTransactionCommon creates a new instance of TransactionCommon. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionCommon) AddHardfork added in v1.11.7

func (_m *TransactionCommon) AddHardfork(ip *zcncore.InputMap) error

AddHardfork provides a mock function with given fields: ip

func (*TransactionCommon) CancelAllocation added in v1.11.0

func (_m *TransactionCommon) CancelAllocation(allocID string) error

CancelAllocation provides a mock function with given fields: allocID

func (*TransactionCommon) CreateAllocation added in v1.11.0

func (_m *TransactionCommon) CreateAllocation(car *zcncore.CreateAllocationRequest, lock uint64) error

CreateAllocation provides a mock function with given fields: car, lock

func (*TransactionCommon) CreateReadPool added in v1.11.0

func (_m *TransactionCommon) CreateReadPool() error

CreateReadPool provides a mock function with given fields:

func (*TransactionCommon) ExecuteSmartContract added in v1.11.0

func (_m *TransactionCommon) ExecuteSmartContract(address string, methodName string, input interface{}, val uint64, feeOpts ...zcncore.FeeOption) (*transaction.Transaction, error)

ExecuteSmartContract provides a mock function with given fields: address, methodName, input, val, feeOpts

func (*TransactionCommon) FaucetUpdateConfig added in v1.11.0

func (_m *TransactionCommon) FaucetUpdateConfig(_a0 *zcncore.InputMap) error

FaucetUpdateConfig provides a mock function with given fields: _a0

func (*TransactionCommon) FinalizeAllocation added in v1.11.0

func (_m *TransactionCommon) FinalizeAllocation(allocID string) error

FinalizeAllocation provides a mock function with given fields: allocID

func (*TransactionCommon) GetVerifyConfirmationStatus added in v1.11.0

func (_m *TransactionCommon) GetVerifyConfirmationStatus() zcncore.ConfirmationStatus

GetVerifyConfirmationStatus provides a mock function with given fields:

func (*TransactionCommon) MinerSCCollectReward added in v1.11.0

func (_m *TransactionCommon) MinerSCCollectReward(providerID string, providerType zcncore.Provider) error

MinerSCCollectReward provides a mock function with given fields: providerID, providerType

func (*TransactionCommon) MinerSCDeleteMiner added in v1.11.0

func (_m *TransactionCommon) MinerSCDeleteMiner(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCDeleteMiner provides a mock function with given fields: _a0

func (*TransactionCommon) MinerSCDeleteSharder added in v1.11.0

func (_m *TransactionCommon) MinerSCDeleteSharder(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCDeleteSharder provides a mock function with given fields: _a0

func (*TransactionCommon) MinerSCKill added in v1.11.0

func (_m *TransactionCommon) MinerSCKill(providerID string, providerType zcncore.Provider) error

MinerSCKill provides a mock function with given fields: providerID, providerType

func (*TransactionCommon) MinerSCLock added in v1.11.0

func (_m *TransactionCommon) MinerSCLock(providerId string, providerType zcncore.Provider, lock uint64) error

MinerSCLock provides a mock function with given fields: providerId, providerType, lock

func (*TransactionCommon) MinerSCMinerSettings added in v1.11.0

func (_m *TransactionCommon) MinerSCMinerSettings(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCMinerSettings provides a mock function with given fields: _a0

func (*TransactionCommon) MinerSCSharderSettings added in v1.11.0

func (_m *TransactionCommon) MinerSCSharderSettings(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCSharderSettings provides a mock function with given fields: _a0

func (*TransactionCommon) MinerSCUnlock added in v1.11.0

func (_m *TransactionCommon) MinerSCUnlock(providerId string, providerType zcncore.Provider) error

MinerSCUnlock provides a mock function with given fields: providerId, providerType

func (*TransactionCommon) MinerScUpdateConfig added in v1.11.0

func (_m *TransactionCommon) MinerScUpdateConfig(_a0 *zcncore.InputMap) error

MinerScUpdateConfig provides a mock function with given fields: _a0

func (*TransactionCommon) MinerScUpdateGlobals added in v1.11.0

func (_m *TransactionCommon) MinerScUpdateGlobals(_a0 *zcncore.InputMap) error

MinerScUpdateGlobals provides a mock function with given fields: _a0

func (*TransactionCommon) ReadPoolLock added in v1.11.0

func (_m *TransactionCommon) ReadPoolLock(allocID string, blobberID string, duration int64, lock uint64) error

ReadPoolLock provides a mock function with given fields: allocID, blobberID, duration, lock

func (*TransactionCommon) ReadPoolUnlock added in v1.11.0

func (_m *TransactionCommon) ReadPoolUnlock() error

ReadPoolUnlock provides a mock function with given fields:

func (*TransactionCommon) RegisterMultiSig added in v1.11.0

func (_m *TransactionCommon) RegisterMultiSig(walletstr string, mswallet string) error

RegisterMultiSig provides a mock function with given fields: walletstr, mswallet

func (*TransactionCommon) Send added in v1.11.0

func (_m *TransactionCommon) Send(toClientID string, val uint64, desc string) error

Send provides a mock function with given fields: toClientID, val, desc

func (*TransactionCommon) StakePoolLock added in v1.11.0

func (_m *TransactionCommon) StakePoolLock(providerId string, providerType zcncore.Provider, lock uint64) error

StakePoolLock provides a mock function with given fields: providerId, providerType, lock

func (*TransactionCommon) StakePoolUnlock added in v1.11.0

func (_m *TransactionCommon) StakePoolUnlock(providerId string, providerType zcncore.Provider) error

StakePoolUnlock provides a mock function with given fields: providerId, providerType

func (*TransactionCommon) StorageSCCollectReward added in v1.11.0

func (_m *TransactionCommon) StorageSCCollectReward(providerID string, providerType zcncore.Provider) error

StorageSCCollectReward provides a mock function with given fields: providerID, providerType

func (*TransactionCommon) StorageScUpdateConfig added in v1.11.0

func (_m *TransactionCommon) StorageScUpdateConfig(_a0 *zcncore.InputMap) error

StorageScUpdateConfig provides a mock function with given fields: _a0

func (*TransactionCommon) UpdateAllocation added in v1.11.0

func (_m *TransactionCommon) UpdateAllocation(allocID string, sizeDiff int64, expirationDiff int64, lock uint64) error

UpdateAllocation provides a mock function with given fields: allocID, sizeDiff, expirationDiff, lock

func (*TransactionCommon) UpdateBlobberSettings added in v1.11.0

func (_m *TransactionCommon) UpdateBlobberSettings(blobber *zcncore.Blobber) error

UpdateBlobberSettings provides a mock function with given fields: blobber

func (*TransactionCommon) UpdateValidatorSettings added in v1.11.0

func (_m *TransactionCommon) UpdateValidatorSettings(validator *zcncore.Validator) error

UpdateValidatorSettings provides a mock function with given fields: validator

func (*TransactionCommon) VestingAdd added in v1.11.0

func (_m *TransactionCommon) VestingAdd(ar *zcncore.VestingAddRequest, value uint64) error

VestingAdd provides a mock function with given fields: ar, value

func (*TransactionCommon) VestingUpdateConfig added in v1.11.0

func (_m *TransactionCommon) VestingUpdateConfig(_a0 *zcncore.InputMap) error

VestingUpdateConfig provides a mock function with given fields: _a0

func (*TransactionCommon) WritePoolLock added in v1.11.0

func (_m *TransactionCommon) WritePoolLock(allocID string, blobberID string, duration int64, lock uint64) error

WritePoolLock provides a mock function with given fields: allocID, blobberID, duration, lock

func (*TransactionCommon) WritePoolUnlock added in v1.11.0

func (_m *TransactionCommon) WritePoolUnlock(allocID string) error

WritePoolUnlock provides a mock function with given fields: allocID

func (*TransactionCommon) ZCNSCAddAuthorizer added in v1.11.0

func (_m *TransactionCommon) ZCNSCAddAuthorizer(_a0 *zcncore.AddAuthorizerPayload) error

ZCNSCAddAuthorizer provides a mock function with given fields: _a0

func (*TransactionCommon) ZCNSCAuthorizerHealthCheck added in v1.11.0

func (_m *TransactionCommon) ZCNSCAuthorizerHealthCheck(_a0 *zcncore.AuthorizerHealthCheckPayload) error

ZCNSCAuthorizerHealthCheck provides a mock function with given fields: _a0

func (*TransactionCommon) ZCNSCCollectReward added in v1.11.8

func (_m *TransactionCommon) ZCNSCCollectReward(providerID string, providerType zcncore.Provider) error

ZCNSCCollectReward provides a mock function with given fields: providerID, providerType

func (*TransactionCommon) ZCNSCDeleteAuthorizer added in v1.11.0

func (_m *TransactionCommon) ZCNSCDeleteAuthorizer(_a0 *zcncore.DeleteAuthorizerPayload) error

ZCNSCDeleteAuthorizer provides a mock function with given fields: _a0

func (*TransactionCommon) ZCNSCUpdateAuthorizerConfig added in v1.11.0

func (_m *TransactionCommon) ZCNSCUpdateAuthorizerConfig(_a0 *zcncore.AuthorizerNode) error

ZCNSCUpdateAuthorizerConfig provides a mock function with given fields: _a0

func (*TransactionCommon) ZCNSCUpdateGlobalConfig added in v1.11.0

func (_m *TransactionCommon) ZCNSCUpdateGlobalConfig(_a0 *zcncore.InputMap) error

ZCNSCUpdateGlobalConfig provides a mock function with given fields: _a0

type TransactionScheme

type TransactionScheme struct {
	mock.Mock
}

TransactionScheme is an autogenerated mock type for the TransactionScheme type

func NewTransactionScheme added in v1.8.17

func NewTransactionScheme(t mockConstructorTestingTNewTransactionScheme) *TransactionScheme

NewTransactionScheme creates a new instance of TransactionScheme. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionScheme) AddHardfork added in v1.11.7

func (_m *TransactionScheme) AddHardfork(ip *zcncore.InputMap) error

AddHardfork provides a mock function with given fields: ip

func (*TransactionScheme) CancelAllocation

func (_m *TransactionScheme) CancelAllocation(allocID string) error

CancelAllocation provides a mock function with given fields: allocID

func (*TransactionScheme) CreateAllocation

func (_m *TransactionScheme) CreateAllocation(car *zcncore.CreateAllocationRequest, lock uint64) error

CreateAllocation provides a mock function with given fields: car, lock

func (*TransactionScheme) CreateReadPool

func (_m *TransactionScheme) CreateReadPool() error

CreateReadPool provides a mock function with given fields:

func (*TransactionScheme) ExecuteFaucetSCWallet

func (_m *TransactionScheme) ExecuteFaucetSCWallet(walletStr string, methodName string, input []byte) error

ExecuteFaucetSCWallet provides a mock function with given fields: walletStr, methodName, input

func (*TransactionScheme) ExecuteSmartContract

func (_m *TransactionScheme) ExecuteSmartContract(address string, methodName string, input interface{}, val uint64, feeOpts ...zcncore.FeeOption) (*transaction.Transaction, error)

ExecuteSmartContract provides a mock function with given fields: address, methodName, input, val, feeOpts

func (*TransactionScheme) FaucetUpdateConfig added in v1.8.17

func (_m *TransactionScheme) FaucetUpdateConfig(_a0 *zcncore.InputMap) error

FaucetUpdateConfig provides a mock function with given fields: _a0

func (*TransactionScheme) FinalizeAllocation

func (_m *TransactionScheme) FinalizeAllocation(allocID string) error

FinalizeAllocation provides a mock function with given fields: allocID

func (*TransactionScheme) GetTransactionError

func (_m *TransactionScheme) GetTransactionError() string

GetTransactionError provides a mock function with given fields:

func (*TransactionScheme) GetTransactionHash

func (_m *TransactionScheme) GetTransactionHash() string

GetTransactionHash provides a mock function with given fields:

func (*TransactionScheme) GetTransactionNonce added in v1.8.17

func (_m *TransactionScheme) GetTransactionNonce() int64

GetTransactionNonce provides a mock function with given fields:

func (*TransactionScheme) GetVerifyConfirmationStatus added in v1.8.17

func (_m *TransactionScheme) GetVerifyConfirmationStatus() zcncore.ConfirmationStatus

GetVerifyConfirmationStatus provides a mock function with given fields:

func (*TransactionScheme) GetVerifyError

func (_m *TransactionScheme) GetVerifyError() string

GetVerifyError provides a mock function with given fields:

func (*TransactionScheme) GetVerifyOutput

func (_m *TransactionScheme) GetVerifyOutput() string

GetVerifyOutput provides a mock function with given fields:

func (*TransactionScheme) Hash added in v1.8.17

func (_m *TransactionScheme) Hash() string

Hash provides a mock function with given fields:

func (*TransactionScheme) MinerSCCollectReward added in v1.8.17

func (_m *TransactionScheme) MinerSCCollectReward(providerID string, providerType zcncore.Provider) error

MinerSCCollectReward provides a mock function with given fields: providerID, providerType

func (*TransactionScheme) MinerSCDeleteMiner added in v1.8.17

func (_m *TransactionScheme) MinerSCDeleteMiner(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCDeleteMiner provides a mock function with given fields: _a0

func (*TransactionScheme) MinerSCDeleteSharder added in v1.8.17

func (_m *TransactionScheme) MinerSCDeleteSharder(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCDeleteSharder provides a mock function with given fields: _a0

func (*TransactionScheme) MinerSCKill added in v1.8.17

func (_m *TransactionScheme) MinerSCKill(providerID string, providerType zcncore.Provider) error

MinerSCKill provides a mock function with given fields: providerID, providerType

func (*TransactionScheme) MinerSCLock

func (_m *TransactionScheme) MinerSCLock(providerId string, providerType zcncore.Provider, lock uint64) error

MinerSCLock provides a mock function with given fields: providerId, providerType, lock

func (*TransactionScheme) MinerSCMinerSettings added in v1.8.17

func (_m *TransactionScheme) MinerSCMinerSettings(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCMinerSettings provides a mock function with given fields: _a0

func (*TransactionScheme) MinerSCSharderSettings added in v1.8.17

func (_m *TransactionScheme) MinerSCSharderSettings(_a0 *zcncore.MinerSCMinerInfo) error

MinerSCSharderSettings provides a mock function with given fields: _a0

func (*TransactionScheme) MinerSCUnlock added in v1.8.4

func (_m *TransactionScheme) MinerSCUnlock(providerId string, providerType zcncore.Provider) error

MinerSCUnlock provides a mock function with given fields: providerId, providerType

func (*TransactionScheme) MinerScUpdateConfig added in v1.8.17

func (_m *TransactionScheme) MinerScUpdateConfig(_a0 *zcncore.InputMap) error

MinerScUpdateConfig provides a mock function with given fields: _a0

func (*TransactionScheme) MinerScUpdateGlobals added in v1.8.17

func (_m *TransactionScheme) MinerScUpdateGlobals(_a0 *zcncore.InputMap) error

MinerScUpdateGlobals provides a mock function with given fields: _a0

func (*TransactionScheme) Output

func (_m *TransactionScheme) Output() []byte

Output provides a mock function with given fields:

func (*TransactionScheme) ReadPoolLock

func (_m *TransactionScheme) ReadPoolLock(allocID string, blobberID string, duration int64, lock uint64) error

ReadPoolLock provides a mock function with given fields: allocID, blobberID, duration, lock

func (*TransactionScheme) ReadPoolUnlock

func (_m *TransactionScheme) ReadPoolUnlock() error

ReadPoolUnlock provides a mock function with given fields:

func (*TransactionScheme) RegisterMultiSig

func (_m *TransactionScheme) RegisterMultiSig(walletstr string, mswallet string) error

RegisterMultiSig provides a mock function with given fields: walletstr, mswallet

func (*TransactionScheme) Send

func (_m *TransactionScheme) Send(toClientID string, val uint64, desc string) error

Send provides a mock function with given fields: toClientID, val, desc

func (*TransactionScheme) SetTransactionCallback

func (_m *TransactionScheme) SetTransactionCallback(cb zcncore.TransactionCallback) error

SetTransactionCallback provides a mock function with given fields: cb

func (*TransactionScheme) SetTransactionHash

func (_m *TransactionScheme) SetTransactionHash(hash string) error

SetTransactionHash provides a mock function with given fields: hash

func (*TransactionScheme) SetTransactionNonce added in v1.8.17

func (_m *TransactionScheme) SetTransactionNonce(txnNonce int64) error

SetTransactionNonce provides a mock function with given fields: txnNonce

func (*TransactionScheme) StakePoolLock

func (_m *TransactionScheme) StakePoolLock(providerId string, providerType zcncore.Provider, lock uint64) error

StakePoolLock provides a mock function with given fields: providerId, providerType, lock

func (*TransactionScheme) StakePoolUnlock

func (_m *TransactionScheme) StakePoolUnlock(providerId string, providerType zcncore.Provider) error

StakePoolUnlock provides a mock function with given fields: providerId, providerType

func (*TransactionScheme) StorageSCCollectReward added in v1.8.17

func (_m *TransactionScheme) StorageSCCollectReward(providerID string, providerType zcncore.Provider) error

StorageSCCollectReward provides a mock function with given fields: providerID, providerType

func (*TransactionScheme) StorageScUpdateConfig added in v1.8.17

func (_m *TransactionScheme) StorageScUpdateConfig(_a0 *zcncore.InputMap) error

StorageScUpdateConfig provides a mock function with given fields: _a0

func (*TransactionScheme) StoreData

func (_m *TransactionScheme) StoreData(data string) error

StoreData provides a mock function with given fields: data

func (*TransactionScheme) UpdateAllocation

func (_m *TransactionScheme) UpdateAllocation(allocID string, sizeDiff int64, expirationDiff int64, lock uint64) error

UpdateAllocation provides a mock function with given fields: allocID, sizeDiff, expirationDiff, lock

func (*TransactionScheme) UpdateBlobberSettings

func (_m *TransactionScheme) UpdateBlobberSettings(blobber *zcncore.Blobber) error

UpdateBlobberSettings provides a mock function with given fields: blobber

func (*TransactionScheme) UpdateValidatorSettings added in v1.8.17

func (_m *TransactionScheme) UpdateValidatorSettings(validator *zcncore.Validator) error

UpdateValidatorSettings provides a mock function with given fields: validator

func (*TransactionScheme) Verify

func (_m *TransactionScheme) Verify() error

Verify provides a mock function with given fields:

func (*TransactionScheme) VestingAdd

func (_m *TransactionScheme) VestingAdd(ar *zcncore.VestingAddRequest, value uint64) error

VestingAdd provides a mock function with given fields: ar, value

func (*TransactionScheme) VestingDelete

func (_m *TransactionScheme) VestingDelete(poolID string) error

VestingDelete provides a mock function with given fields: poolID

func (*TransactionScheme) VestingStop

func (_m *TransactionScheme) VestingStop(sr *zcncore.VestingStopRequest) error

VestingStop provides a mock function with given fields: sr

func (*TransactionScheme) VestingTrigger

func (_m *TransactionScheme) VestingTrigger(poolID string) error

VestingTrigger provides a mock function with given fields: poolID

func (*TransactionScheme) VestingUnlock

func (_m *TransactionScheme) VestingUnlock(poolID string) error

VestingUnlock provides a mock function with given fields: poolID

func (*TransactionScheme) VestingUpdateConfig

func (_m *TransactionScheme) VestingUpdateConfig(_a0 *zcncore.InputMap) error

VestingUpdateConfig provides a mock function with given fields: _a0

func (*TransactionScheme) WritePoolLock

func (_m *TransactionScheme) WritePoolLock(allocID string, blobberID string, duration int64, lock uint64) error

WritePoolLock provides a mock function with given fields: allocID, blobberID, duration, lock

func (*TransactionScheme) WritePoolUnlock

func (_m *TransactionScheme) WritePoolUnlock(allocID string) error

WritePoolUnlock provides a mock function with given fields: allocID

func (*TransactionScheme) ZCNSCAddAuthorizer added in v1.8.17

func (_m *TransactionScheme) ZCNSCAddAuthorizer(_a0 *zcncore.AddAuthorizerPayload) error

ZCNSCAddAuthorizer provides a mock function with given fields: _a0

func (*TransactionScheme) ZCNSCAuthorizerHealthCheck added in v1.8.17

func (_m *TransactionScheme) ZCNSCAuthorizerHealthCheck(_a0 *zcncore.AuthorizerHealthCheckPayload) error

ZCNSCAuthorizerHealthCheck provides a mock function with given fields: _a0

func (*TransactionScheme) ZCNSCCollectReward added in v1.13.0

func (_m *TransactionScheme) ZCNSCCollectReward(providerID string, providerType zcncore.Provider) error

ZCNSCCollectReward provides a mock function with given fields: providerID, providerType

func (*TransactionScheme) ZCNSCDeleteAuthorizer added in v1.8.17

func (_m *TransactionScheme) ZCNSCDeleteAuthorizer(_a0 *zcncore.DeleteAuthorizerPayload) error

ZCNSCDeleteAuthorizer provides a mock function with given fields: _a0

func (*TransactionScheme) ZCNSCUpdateAuthorizerConfig added in v1.8.17

func (_m *TransactionScheme) ZCNSCUpdateAuthorizerConfig(_a0 *zcncore.AuthorizerNode) error

ZCNSCUpdateAuthorizerConfig provides a mock function with given fields: _a0

func (*TransactionScheme) ZCNSCUpdateGlobalConfig added in v1.8.17

func (_m *TransactionScheme) ZCNSCUpdateGlobalConfig(_a0 *zcncore.InputMap) error

ZCNSCUpdateGlobalConfig provides a mock function with given fields: _a0

type WalletCallback

type WalletCallback struct {
	mock.Mock
}

WalletCallback is an autogenerated mock type for the WalletCallback type

func NewWalletCallback added in v1.8.17

func NewWalletCallback(t mockConstructorTestingTNewWalletCallback) *WalletCallback

NewWalletCallback creates a new instance of WalletCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WalletCallback) OnWalletCreateComplete

func (_m *WalletCallback) OnWalletCreateComplete(status int, wallet string, err string)

OnWalletCreateComplete provides a mock function with given fields: status, wallet, err

Jump to

Keyboard shortcuts

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