mocks

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 2 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 (*AuthCallback) OnSetupComplete

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

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

type GetBalanceCallback

type GetBalanceCallback struct {
	mock.Mock
}

GetBalanceCallback is an autogenerated mock type for the GetBalanceCallback type

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 (*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 GetUSDInfoCallback

type GetUSDInfoCallback struct {
	mock.Mock
}

GetUSDInfoCallback is an autogenerated mock type for the GetUSDInfoCallback type

func (*GetUSDInfoCallback) OnUSDInfoAvailable

func (_m *GetUSDInfoCallback) OnUSDInfoAvailable(status int, info string, err string)

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

type MSVoteCallback

type MSVoteCallback struct {
	mock.Mock
}

MSVoteCallback is an autogenerated mock type for the MSVoteCallback type

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 TransactionCallback

type TransactionCallback struct {
	mock.Mock
}

TransactionCallback is an autogenerated mock type for the TransactionCallback type

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 TransactionScheme

type TransactionScheme struct {
	mock.Mock
}

TransactionScheme is an autogenerated mock type for the TransactionScheme type

func (*TransactionScheme) CancelAllocation

func (_m *TransactionScheme) CancelAllocation(allocID string, fee int64) error

CancelAllocation provides a mock function with given fields: allocID, fee

func (*TransactionScheme) CreateAllocation

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

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

func (*TransactionScheme) CreateReadPool

func (_m *TransactionScheme) CreateReadPool(fee int64) error

CreateReadPool provides a mock function with given fields: fee

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, jsoninput string, val int64) error

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

func (*TransactionScheme) FinalizeAllocation

func (_m *TransactionScheme) FinalizeAllocation(allocID string, fee int64) error

FinalizeAllocation provides a mock function with given fields: allocID, fee

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

func (_m *TransactionScheme) LockTokens(val int64, durationHr int64, durationMin int) error

LockTokens provides a mock function with given fields: val, durationHr, durationMin

func (*TransactionScheme) MinerSCLock

func (_m *TransactionScheme) MinerSCLock(minerID string, lock int64) error

MinerSCLock provides a mock function with given fields: minerID, lock

func (*TransactionScheme) MinerSCSettings

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

MinerSCSettings provides a mock function with given fields: _a0

func (*TransactionScheme) MinerSCUnlock added in v1.8.4

func (_m *TransactionScheme) MinerSCUnlock(minerID string, poolID string) error

MienrSCUnlock provides a mock function with given fields: minerID, poolID

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 int64, fee int64) error

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

func (*TransactionScheme) ReadPoolUnlock

func (_m *TransactionScheme) ReadPoolUnlock(poolID string, fee int64) error

ReadPoolUnlock provides a mock function with given fields: poolID, fee

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 int64, 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) SetTransactionFee

func (_m *TransactionScheme) SetTransactionFee(txnFee int64) error

SetTransactionFee provides a mock function with given fields: txnFee

func (*TransactionScheme) SetTransactionHash

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

SetTransactionHash provides a mock function with given fields: hash

func (*TransactionScheme) StakePoolLock

func (_m *TransactionScheme) StakePoolLock(blobberID string, lock int64, fee int64) error

StakePoolLock provides a mock function with given fields: blobberID, lock, fee

func (*TransactionScheme) StakePoolUnlock

func (_m *TransactionScheme) StakePoolUnlock(blobberID string, poolID string, fee int64) error

StakePoolUnlock provides a mock function with given fields: blobberID, poolID, fee

func (*TransactionScheme) StoreData

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

StoreData provides a mock function with given fields: data

func (*TransactionScheme) UnlockTokens

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

UnlockTokens provides a mock function with given fields: poolID

func (*TransactionScheme) UpdateAllocation

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

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

func (*TransactionScheme) UpdateBlobberSettings

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

UpdateBlobberSettings provides a mock function with given fields: blobber, fee

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 int64) 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(vscc *zcncore.InputMap) error

VestingUpdateConfig provides a mock function with given fields: vscc

func (*TransactionScheme) WritePoolLock

func (_m *TransactionScheme) WritePoolLock(allocID string, lock int64, fee int64) error

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

func (*TransactionScheme) WritePoolUnlock

func (_m *TransactionScheme) WritePoolUnlock(allocationId string, fee int64) error

WritePoolUnlock provides a mock function with given fields: poolID, fee

type WalletCallback

type WalletCallback struct {
	mock.Mock
}

WalletCallback is an autogenerated mock type for the WalletCallback type

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