Documentation ¶
Overview ¶
nolint:nakedret
Package transfer is a generated GoMock package.
nolint:dupl,nakedret
nolint:dupl,nakedret
Index ¶
- Constants
- Variables
- type Manager
- func (tm *Manager) ApproveFullBalanceSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ApproveFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ApproveFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ApproveFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ApproveSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ApproveSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ApproveWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ApproveWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelFullBalanceSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CancelWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateFullBalanceSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) CreateWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) DirectTransfer(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) DirectTransferAsync(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ExpireTransfersAsync(ctx context.Context, ids []string) (*models.TransferResponseObj, error)
- func (tm *Manager) FrameTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) FrameTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) FullBalanceQuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) FullBalanceQuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) GetTransfer(ctx context.Context, transferID string) (*contracts.ReceiptTransfer, error)
- func (tm *Manager) GetTransferByIndex(ctx context.Context, index *big.Int) (*contracts.ReceiptTransfer, error)
- func (tm *Manager) GetTransferState(ctx context.Context, transferID string) (uint8, error)
- func (tm *Manager) QuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) QuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) Ready() bool
- func (tm *Manager) ServiceFeeTransfer(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) ServiceFeeTransferAsync(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
- func (tm *Manager) Stop() error
- func (tm *Manager) Stopped() bool
- func (tm *Manager) TransferExists(ctx context.Context, transferID string) (bool, error)
- func (tm *Manager) WaitReady(exit chan struct{}) bool
- type MockAssetboxManager
- func (m *MockAssetboxManager) DeleteAssetbox(ctx context.Context, req *dto.DeleteAssetboxRequest) error
- func (m *MockAssetboxManager) EXPECT() *MockAssetboxManagerMockRecorder
- func (m *MockAssetboxManager) PrepareAssetbox(ctx context.Context) (*models.Assetbox, error)
- func (m *MockAssetboxManager) PrepareAssetboxes(ctx context.Context, count uint64) ([]*models.Assetbox, error)
- func (m *MockAssetboxManager) SetPublicAssetboxInfo(ctx context.Context, req *dto.SetPublicAssetboxInfoRequest) error
- func (m *MockAssetboxManager) SetPublicAssetboxInfos(ctx context.Context, assetboxes []*contracts.Assetbox) error
- type MockAssetboxManagerMockRecorder
- func (mr *MockAssetboxManagerMockRecorder) DeleteAssetbox(ctx, req interface{}) *gomock.Call
- func (mr *MockAssetboxManagerMockRecorder) PrepareAssetbox(ctx interface{}) *gomock.Call
- func (mr *MockAssetboxManagerMockRecorder) PrepareAssetboxes(ctx, count interface{}) *gomock.Call
- func (mr *MockAssetboxManagerMockRecorder) SetPublicAssetboxInfo(ctx, req interface{}) *gomock.Call
- func (mr *MockAssetboxManagerMockRecorder) SetPublicAssetboxInfos(ctx, assetboxes interface{}) *gomock.Call
- type MockContractManager
- func (m *MockContractManager) AddMiningAgent(ctx context.Context, address common.Address, key *ecdsa.PrivateKey) error
- func (m *MockContractManager) ApproveFullBalanceSafeTransfer(ctx context.Context, transferID, protectionCode, extraData []byte, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) ApproveFullBalanceWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) ApproveSafeTransfer(ctx context.Context, transferID, protectionCode, extraData []byte, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) ApproveWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) BalanceOfLocked(ctx context.Context, addr common.Address) (*big.Int, error)
- func (m *MockContractManager) CancelFullBalanceSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) CancelFullBalanceWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) CancelSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) CancelWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) CreateFullBalanceSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
- func (m *MockContractManager) CreateFullBalanceWPCSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
- func (m *MockContractManager) CreateSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
- func (m *MockContractManager) CreateWPCSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
- func (m *MockContractManager) DeleteAssetboxInfo(ctx context.Context, key *ecdsa.PrivateKey) error
- func (m *MockContractManager) DirectTransfer(ctx context.Context, from, to common.Address, value *big.Int, extraData []byte, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) EXPECT() *MockContractManagerMockRecorder
- func (m *MockContractManager) EmitEther(ctx context.Context, to common.Address, value *big.Int, nonce *uint64) error
- func (m *MockContractManager) ExpireSafeTransfers(ctx context.Context, ids [][32]byte, key *ecdsa.PrivateKey) (uint64, common.Hash, error)
- func (m *MockContractManager) FrameTransfer(ctx context.Context, to common.Address, value *big.Int, extraData []byte, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) FullBalanceQuickTransfer(ctx context.Context, to common.Address, extraData []byte, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) GetAllMiningAgents(ctx context.Context) ([]common.Address, error)
- func (m *MockContractManager) GetAsseboxesMiningState(ctx context.Context, address common.Address) (bool, error)
- func (m *MockContractManager) GetAssetboxBalance(ctx context.Context, addr common.Address) (*big.Int, error)
- func (m *MockContractManager) GetAssetboxBalances(ctx context.Context, addresses []common.Address) (map[common.Address]*big.Int, error)
- func (m *MockContractManager) GetAssetboxBalancesSum(ctx context.Context, addresses []common.Address) (*big.Int, error)
- func (m *MockContractManager) GetAssetboxInfo(ctx context.Context, addr common.Address) (*contracts.Assetbox, error)
- func (m *MockContractManager) GetAssetboxInfoByAlias(ctx context.Context, alias string) (*contracts.Assetbox, error)
- func (m *MockContractManager) GetContractAddressAccessStorage() (common.Address, error)
- func (m *MockContractManager) GetContractAddressAssetbox() (common.Address, error)
- func (m *MockContractManager) GetContractAddressAssetboxInfo() (common.Address, error)
- func (m *MockContractManager) GetContractAddressBitbon() (common.Address, error)
- func (m *MockContractManager) GetContractAddressBitbonStorage() (common.Address, error)
- func (m *MockContractManager) GetContractAddressBitbonSupport() (common.Address, error)
- func (m *MockContractManager) GetContractAddressDistributionStorage() (common.Address, error)
- func (m *MockContractManager) GetContractAddressMiningAgentStorage() (common.Address, error)
- func (m *MockContractManager) GetContractAddressSafeTransferStorage() (common.Address, error)
- func (m *MockContractManager) GetContractAddressTransfer() (common.Address, error)
- func (m *MockContractManager) GetContractAddresses() map[contract_snapshot.ContractType]common.Address
- func (m *MockContractManager) GetContractStorageAddress() (common.Address, error)
- func (m *MockContractManager) GetCurrentContractAbiInfo(version dto.ContractVersion) ([]*dto.AbiInfo, error)
- func (m *MockContractManager) GetCurrentDistribution(ctx context.Context) (map[string]uint64, error)
- func (m *MockContractManager) GetEthAPIWrapper() *contracts.EthApiWrapper
- func (m *MockContractManager) GetExpiredTransfers(ctx context.Context, firstTransfer, lastTransfer *big.Int) ([][32]byte, error)
- func (m *MockContractManager) GetFee(ctx context.Context, opType dto.OperationType) (*big.Int, error)
- func (m *MockContractManager) GetFeeDistributionAccounts(ctx context.Context, operationType *big.Int) ([]common.Address, error)
- func (m *MockContractManager) GetFeeDistributionAmounts(ctx context.Context, operationType *big.Int) ([]*big.Int, error)
- func (m *MockContractManager) GetFeeValueSettings(ctx context.Context) ([]*big.Int, []*big.Int, error)
- func (m *MockContractManager) GetNoncer() *noncer.Noncer
- func (m *MockContractManager) GetOldestPending(ctx context.Context) (*big.Int, error)
- func (m *MockContractManager) GetTransfer(ctx context.Context, transferID []byte) (*contracts.ReceiptTransfer, error)
- func (m *MockContractManager) GetTransferByIndex(ctx context.Context, index *big.Int) (*contracts.ReceiptTransfer, error)
- func (m *MockContractManager) GetTransferLength(ctx context.Context) (*big.Int, error)
- func (m *MockContractManager) GetTransferState(ctx context.Context, transferID []byte) (uint8, error)
- func (m *MockContractManager) IsMiningAgent(ctx context.Context, address common.Address) (bool, error)
- func (m *MockContractManager) ProposeDistribution(ctx context.Context, distribution map[string]uint64, key *ecdsa.PrivateKey) error
- func (m *MockContractManager) QuickTransfer(ctx context.Context, to common.Address, value *big.Int, extraData []byte, ...) (uint64, common.Hash, error)
- func (m *MockContractManager) Ready() bool
- func (m *MockContractManager) RemoveMiningAgent(ctx context.Context, address common.Address, key *ecdsa.PrivateKey) error
- func (m *MockContractManager) SaveContractStorageAddress(addr common.Address) error
- func (m *MockContractManager) SearchOldestPending(ctx context.Context, firstTransfer, lastTransfer *big.Int) (*big.Int, bool, error)
- func (m *MockContractManager) ServiceFeeTransfer(ctx context.Context, params dto.ServiceFeeTransferParams, async bool) (uint64, common.Hash, error)
- func (m *MockContractManager) SetAssetboxInfo(ctx context.Context, a *contracts.Assetbox, key *ecdsa.PrivateKey) error
- func (m *MockContractManager) SetAssetboxInfos(ctx context.Context, a []*contracts.Assetbox, key *ecdsa.PrivateKey) error
- func (m *MockContractManager) SetOldestPending(ctx context.Context, pendingIndex *big.Int, key *ecdsa.PrivateKey) error
- func (m *MockContractManager) Stop() error
- func (m *MockContractManager) Stopped() bool
- func (m *MockContractManager) TransferExists(ctx context.Context, transferID []byte) (bool, error)
- func (m *MockContractManager) WaitReady(exit chan struct{}) bool
- func (m *MockContractManager) WatchAssetboxInfoDeleted(sink chan<- *contracts.Assetbox) error
- func (m *MockContractManager) WatchAssetboxInfoSet(sink chan<- *contracts.Assetbox) error
- func (m *MockContractManager) WatchBitbonBalanceChanged(sink chan<- *contracts.Balance) error
- func (m *MockContractManager) WatchBitbonBalanceLocked(sink chan<- *contracts.Balance) error
- func (m *MockContractManager) WatchBitbonBalanceUnLocked(sink chan<- *contracts.Balance) error
- func (m *MockContractManager) WatchExceptionalAccountsChanged(sink chan<- *contracts.ExceptionalAccountsChanged) error
- func (m *MockContractManager) WatchFeeDistributionSettingsChanged(sink chan<- *contracts.DistributionSettingsChanged) error
- func (m *MockContractManager) WatchFeeValueChanged(sink chan<- *contracts.FeeValueChanged) error
- func (m *MockContractManager) WatchTransferExpired(sink chan<- *contracts.TransferExpired) error
- type MockContractManagerMockRecorder
- func (mr *MockContractManagerMockRecorder) AddMiningAgent(ctx, address, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) ApproveFullBalanceSafeTransfer(ctx, transferID, protectionCode, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) ApproveFullBalanceWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) ApproveSafeTransfer(ctx, transferID, protectionCode, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) ApproveWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) BalanceOfLocked(ctx, addr interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CancelFullBalanceSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CancelFullBalanceWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CancelSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CancelWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CreateFullBalanceSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CreateFullBalanceWPCSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CreateSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) CreateWPCSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) DeleteAssetboxInfo(ctx, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) DirectTransfer(ctx, from, to, value, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) EmitEther(ctx, to, value, nonce interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) ExpireSafeTransfers(ctx, ids, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) FrameTransfer(ctx, to, value, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) FullBalanceQuickTransfer(ctx, to, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetAllMiningAgents(ctx interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetAsseboxesMiningState(ctx, address interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetAssetboxBalance(ctx, addr interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetAssetboxBalances(ctx, addresses interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetAssetboxBalancesSum(ctx, addresses interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetAssetboxInfo(ctx, addr interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetAssetboxInfoByAlias(ctx, alias interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressAccessStorage() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressAssetbox() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressAssetboxInfo() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressBitbon() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressBitbonStorage() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressBitbonSupport() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressDistributionStorage() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressMiningAgentStorage() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressSafeTransferStorage() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddressTransfer() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractAddresses() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetContractStorageAddress() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetCurrentContractAbiInfo(version interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetCurrentDistribution(ctx interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetEthAPIWrapper() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetExpiredTransfers(ctx, firstTransfer, lastTransfer interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetFee(ctx, opType interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetFeeDistributionAccounts(ctx, operationType interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetFeeDistributionAmounts(ctx, operationType interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetFeeValueSettings(ctx interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetNoncer() *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetOldestPending(ctx interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetTransfer(ctx, transferID interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetTransferByIndex(ctx, index interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetTransferLength(ctx interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) GetTransferState(ctx, transferID interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) IsMiningAgent(ctx, address interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) ProposeDistribution(ctx, distribution, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) QuickTransfer(ctx, to, value, extraData, key, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) Ready() *gomock.Call
- func (mr *MockContractManagerMockRecorder) RemoveMiningAgent(ctx, address, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) SaveContractStorageAddress(addr interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) SearchOldestPending(ctx, firstTransfer, lastTransfer interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) ServiceFeeTransfer(ctx, params, async interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) SetAssetboxInfo(ctx, a, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) SetAssetboxInfos(ctx, a, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) SetOldestPending(ctx, pendingIndex, key interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) Stop() *gomock.Call
- func (mr *MockContractManagerMockRecorder) Stopped() *gomock.Call
- func (mr *MockContractManagerMockRecorder) TransferExists(ctx, transferID interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WaitReady(exit interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchAssetboxInfoDeleted(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchAssetboxInfoSet(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchBitbonBalanceChanged(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchBitbonBalanceLocked(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchBitbonBalanceUnLocked(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchExceptionalAccountsChanged(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchFeeDistributionSettingsChanged(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchFeeValueChanged(sink interface{}) *gomock.Call
- func (mr *MockContractManagerMockRecorder) WatchTransferExpired(sink interface{}) *gomock.Call
- type MockFeeManager
- func (m *MockFeeManager) EXPECT() *MockFeeManagerMockRecorder
- func (m *MockFeeManager) GetFee(ctx context.Context, opType dto.OperationType) (*big.Int, error)
- func (m *MockFeeManager) GetFeeDistributionAccounts(ctx context.Context, operationType *big.Int) ([]common.Address, error)
- func (m *MockFeeManager) GetFeeDistributionAmounts(ctx context.Context, operationType *big.Int) ([]*big.Int, error)
- func (m *MockFeeManager) GetFeeSettings(ctx context.Context) (*models.FeeSettingsResponseObj, error)
- type MockFeeManagerMockRecorder
- func (mr *MockFeeManagerMockRecorder) GetFee(ctx, opType interface{}) *gomock.Call
- func (mr *MockFeeManagerMockRecorder) GetFeeDistributionAccounts(ctx, operationType interface{}) *gomock.Call
- func (mr *MockFeeManagerMockRecorder) GetFeeDistributionAmounts(ctx, operationType interface{}) *gomock.Call
- func (mr *MockFeeManagerMockRecorder) GetFeeSettings(ctx interface{}) *gomock.Call
- type MockMiningAgent
- func (m *MockMiningAgent) AddMiningAgent(ctx context.Context, address common.Address) error
- func (m *MockMiningAgent) EXPECT() *MockMiningAgentMockRecorder
- func (m *MockMiningAgent) GetAllMiningAgents(ctx context.Context) ([]common.Address, error)
- func (m *MockMiningAgent) GetCurrentDistribution(ctx context.Context) (map[string]uint64, error)
- func (m *MockMiningAgent) IsMiningAgent(ctx context.Context, address common.Address) (bool, error)
- func (m *MockMiningAgent) ProposeDistribution(ctx context.Context, req dto.ProposeDistributionRequest) error
- func (m *MockMiningAgent) RemoveMiningAgent(ctx context.Context, address common.Address) error
- type MockMiningAgentMockRecorder
- func (mr *MockMiningAgentMockRecorder) AddMiningAgent(ctx, address interface{}) *gomock.Call
- func (mr *MockMiningAgentMockRecorder) GetAllMiningAgents(ctx interface{}) *gomock.Call
- func (mr *MockMiningAgentMockRecorder) GetCurrentDistribution(ctx interface{}) *gomock.Call
- func (mr *MockMiningAgentMockRecorder) IsMiningAgent(ctx, address interface{}) *gomock.Call
- func (mr *MockMiningAgentMockRecorder) ProposeDistribution(ctx, req interface{}) *gomock.Call
- func (mr *MockMiningAgentMockRecorder) RemoveMiningAgent(ctx, address interface{}) *gomock.Call
- type MockPkEncryptor
- type MockPkEncryptorMockRecorder
- type MockTransferManager
- func (m *MockTransferManager) ApproveFullBalanceSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ApproveFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ApproveFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ApproveFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ApproveSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ApproveSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ApproveWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ApproveWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelFullBalanceSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CancelWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateFullBalanceSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) CreateWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) DirectTransfer(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) DirectTransferAsync(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) EXPECT() *MockTransferManagerMockRecorder
- func (m *MockTransferManager) ExpireTransfersAsync(ctx context.Context, ids []string) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) FrameTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) FrameTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) FullBalanceQuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) FullBalanceQuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) GetTransfer(ctx context.Context, transferID string) (*contracts.ReceiptTransfer, error)
- func (m *MockTransferManager) GetTransferByIndex(ctx context.Context, index *big.Int) (*contracts.ReceiptTransfer, error)
- func (m *MockTransferManager) QuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) QuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ServiceFeeTransfer(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) ServiceFeeTransferAsync(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
- func (m *MockTransferManager) Stop() error
- func (m *MockTransferManager) TransferExists(ctx context.Context, transferID string) (bool, error)
- type MockTransferManagerMockRecorder
- func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ApproveSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ApproveSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ApproveWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ApproveWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelFullBalanceSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelFullBalanceSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelFullBalanceWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelFullBalanceWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CancelWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateFullBalanceSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateFullBalanceSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateFullBalanceWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateFullBalanceWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) CreateWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) DirectTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) DirectTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ExpireTransfersAsync(ctx, ids interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) FrameTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) FrameTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) FullBalanceQuickTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) FullBalanceQuickTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) GetTransfer(ctx, transferID interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) GetTransferByIndex(ctx, index interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) QuickTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) QuickTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ServiceFeeTransfer(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) ServiceFeeTransferAsync(ctx, transfer interface{}) *gomock.Call
- func (mr *MockTransferManagerMockRecorder) Stop() *gomock.Call
- func (mr *MockTransferManagerMockRecorder) TransferExists(ctx, transferID interface{}) *gomock.Call
Constants ¶
const ( BitbonTransferStateUndefined = iota BitbonTransferStatePending BitbonTransferStateExecuted BitbonTransferStateExpired BitbonTransferStateCancelled BitbonTransferStateFailed )
Variables ¶
var ( ErrAlreadyStopped = errors.New("already stopped") ErrZkSnarkProofEmpty = errors.New("empty ZK-snark proof") ErrTransferNotReady = errors.New("transfer manager is not ready") ErrFromRequire = errors.New("from is required") ErrToRequire = errors.New("to is required") ErrSameAccount = errors.New("transfer to the same account (From equals To)") ErrValueRequire = errors.New("value is required") ErrAssetboxNotAssigned = errors.New("assetbox is not assigned to any account") ErrLowAssetboxBalance = errors.New("assetbox balance to low to perform transfer") ErrTransferIDRequire = errors.New("transferID is required") ErrProtectionCodeRequire = errors.New("protectionCode is required") ErrExpireAtPassed = errors.New("expiresAt has already passed") ErrAddressRequire = errors.New("address is required") ErrFromNotAssigned = errors.New("assetbox From is not assigned to any account") ErrToNotAssigned = errors.New("assetbox To is not assign to any account") ErrRetriesRequired = errors.New("retries must be greater than 0") ErrMsgGettingAssetbox = "error getting decrypted assetbox" ErrMsgGettingSourceAssetbox = "error getting decrypted assetbox From" ErrMsgGettingDestinationAssetbox = "error getting decrypted assetbox To" SourceAssetboxTag = "From" DestinationAssetboxTag = "To" EmptyAssetboxTag = "" )
var ( ErrTransferIsNotPending = errors.New("transfer is not pending for approval") ErrWrongProtectionCode = errors.New("transfer approve failed. Status is 'wrong protection code'") ErrProtectionCodeLimitExceeded = errors. New("transfer approve failed. Status is 'wrong protection code limit exceeded'") ErrFailedToParseKey = errors. New("error decrypting assetbox wallet: invalid character 'S' looking for beginning of value") ErrWrongPassphrase = errors. New("error decrypting assetbox wallet: could not decrypt key with given password") ErrAssetboxIsNotOwnerOfWallet = errors.New("assetbox is not owner of wallet") ErrHasLockedBalanceError = errors.New("assetbox has locked balance") )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewTransferManager ¶
NewTransferManager create a new TransferManager instance.
func (*Manager) ApproveFullBalanceSafeTransfer ¶
func (tm *Manager) ApproveFullBalanceSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ApproveFullBalanceSafeTransferAsync ¶
func (tm *Manager) ApproveFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ApproveFullBalanceWPCSafeTransfer ¶
func (tm *Manager) ApproveFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ApproveFullBalanceWPCSafeTransferAsync ¶
func (tm *Manager) ApproveFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ApproveSafeTransfer ¶
func (tm *Manager) ApproveSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ApproveSafeTransferAsync ¶
func (tm *Manager) ApproveSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ApproveWPCSafeTransfer ¶
func (tm *Manager) ApproveWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ApproveWPCSafeTransferAsync ¶
func (tm *Manager) ApproveWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelFullBalanceSafeTransfer ¶
func (tm *Manager) CancelFullBalanceSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelFullBalanceSafeTransferAsync ¶
func (tm *Manager) CancelFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelFullBalanceWPCSafeTransfer ¶
func (tm *Manager) CancelFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelFullBalanceWPCSafeTransferAsync ¶
func (tm *Manager) CancelFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelSafeTransfer ¶
func (tm *Manager) CancelSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelSafeTransferAsync ¶
func (tm *Manager) CancelSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelWPCSafeTransfer ¶
func (tm *Manager) CancelWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CancelWPCSafeTransferAsync ¶
func (tm *Manager) CancelWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateFullBalanceSafeTransfer ¶
func (tm *Manager) CreateFullBalanceSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateFullBalanceSafeTransferAsync ¶
func (tm *Manager) CreateFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateFullBalanceWPCSafeTransfer ¶
func (tm *Manager) CreateFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateFullBalanceWPCSafeTransferAsync ¶
func (tm *Manager) CreateFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateSafeTransfer ¶
func (tm *Manager) CreateSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateSafeTransferAsync ¶
func (tm *Manager) CreateSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateWPCSafeTransfer ¶
func (tm *Manager) CreateWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) CreateWPCSafeTransferAsync ¶
func (tm *Manager) CreateWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
func (*Manager) DirectTransfer ¶
func (tm *Manager) DirectTransfer(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
func (*Manager) DirectTransferAsync ¶
func (tm *Manager) DirectTransferAsync(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ExpireTransfersAsync ¶
func (tm *Manager) ExpireTransfersAsync(ctx context.Context, ids []string) (*models.TransferResponseObj, error)
nolint:godox
func (*Manager) FrameTransfer ¶
func (tm *Manager) FrameTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
Public methods for different type of transfers
func (*Manager) FrameTransferAsync ¶
func (tm *Manager) FrameTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
func (*Manager) FullBalanceQuickTransfer ¶
func (tm *Manager) FullBalanceQuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
func (*Manager) FullBalanceQuickTransferAsync ¶
func (tm *Manager) FullBalanceQuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
func (*Manager) GetTransfer ¶
func (*Manager) GetTransferByIndex ¶
func (*Manager) GetTransferState ¶
func (*Manager) QuickTransfer ¶
func (tm *Manager) QuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
Public methods for different type of transfers
func (*Manager) QuickTransferAsync ¶
func (tm *Manager) QuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ServiceFeeTransfer ¶
func (tm *Manager) ServiceFeeTransfer(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
func (*Manager) ServiceFeeTransferAsync ¶
func (tm *Manager) ServiceFeeTransferAsync(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
func (*Manager) TransferExists ¶
type MockAssetboxManager ¶
type MockAssetboxManager struct {
// contains filtered or unexported fields
}
MockAssetboxManager is a mock of AssetboxManager interface.
func NewMockAssetboxManager ¶
func NewMockAssetboxManager(ctrl *gomock.Controller) *MockAssetboxManager
NewMockAssetboxManager creates a new mock instance.
func (*MockAssetboxManager) DeleteAssetbox ¶
func (m *MockAssetboxManager) DeleteAssetbox(ctx context.Context, req *dto.DeleteAssetboxRequest) error
DeleteAssetbox mocks base method.
func (*MockAssetboxManager) EXPECT ¶
func (m *MockAssetboxManager) EXPECT() *MockAssetboxManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAssetboxManager) PrepareAssetbox ¶
PrepareAssetbox mocks base method.
func (*MockAssetboxManager) PrepareAssetboxes ¶
func (m *MockAssetboxManager) PrepareAssetboxes(ctx context.Context, count uint64) ([]*models.Assetbox, error)
PrepareAssetboxes mocks base method.
func (*MockAssetboxManager) SetPublicAssetboxInfo ¶
func (m *MockAssetboxManager) SetPublicAssetboxInfo(ctx context.Context, req *dto.SetPublicAssetboxInfoRequest) error
SetPublicAssetboxInfo mocks base method.
func (*MockAssetboxManager) SetPublicAssetboxInfos ¶
func (m *MockAssetboxManager) SetPublicAssetboxInfos(ctx context.Context, assetboxes []*contracts.Assetbox) error
SetPublicAssetboxInfos mocks base method.
type MockAssetboxManagerMockRecorder ¶
type MockAssetboxManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockAssetboxManagerMockRecorder is the mock recorder for MockAssetboxManager.
func (*MockAssetboxManagerMockRecorder) DeleteAssetbox ¶
func (mr *MockAssetboxManagerMockRecorder) DeleteAssetbox(ctx, req interface{}) *gomock.Call
DeleteAssetbox indicates an expected call of DeleteAssetbox.
func (*MockAssetboxManagerMockRecorder) PrepareAssetbox ¶
func (mr *MockAssetboxManagerMockRecorder) PrepareAssetbox(ctx interface{}) *gomock.Call
PrepareAssetbox indicates an expected call of PrepareAssetbox.
func (*MockAssetboxManagerMockRecorder) PrepareAssetboxes ¶
func (mr *MockAssetboxManagerMockRecorder) PrepareAssetboxes(ctx, count interface{}) *gomock.Call
PrepareAssetboxes indicates an expected call of PrepareAssetboxes.
func (*MockAssetboxManagerMockRecorder) SetPublicAssetboxInfo ¶
func (mr *MockAssetboxManagerMockRecorder) SetPublicAssetboxInfo(ctx, req interface{}) *gomock.Call
SetPublicAssetboxInfo indicates an expected call of SetPublicAssetboxInfo.
func (*MockAssetboxManagerMockRecorder) SetPublicAssetboxInfos ¶
func (mr *MockAssetboxManagerMockRecorder) SetPublicAssetboxInfos(ctx, assetboxes interface{}) *gomock.Call
SetPublicAssetboxInfos indicates an expected call of SetPublicAssetboxInfos.
type MockContractManager ¶
type MockContractManager struct {
// contains filtered or unexported fields
}
MockContractManager is a mock of ContractManager interface.
func NewMockContractManager ¶
func NewMockContractManager(ctrl *gomock.Controller) *MockContractManager
NewMockContractManager creates a new mock instance.
func (*MockContractManager) AddMiningAgent ¶
func (m *MockContractManager) AddMiningAgent(ctx context.Context, address common.Address, key *ecdsa.PrivateKey) error
AddMiningAgent mocks base method.
func (*MockContractManager) ApproveFullBalanceSafeTransfer ¶
func (m *MockContractManager) ApproveFullBalanceSafeTransfer(ctx context.Context, transferID, protectionCode, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
ApproveFullBalanceSafeTransfer mocks base method.
func (*MockContractManager) ApproveFullBalanceWPCSafeTransfer ¶
func (m *MockContractManager) ApproveFullBalanceWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
ApproveFullBalanceWPCSafeTransfer mocks base method.
func (*MockContractManager) ApproveSafeTransfer ¶
func (m *MockContractManager) ApproveSafeTransfer(ctx context.Context, transferID, protectionCode, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
ApproveSafeTransfer mocks base method.
func (*MockContractManager) ApproveWPCSafeTransfer ¶
func (m *MockContractManager) ApproveWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
ApproveWPCSafeTransfer mocks base method.
func (*MockContractManager) BalanceOfLocked ¶
func (m *MockContractManager) BalanceOfLocked(ctx context.Context, addr common.Address) (*big.Int, error)
BalanceOfLocked mocks base method.
func (*MockContractManager) CancelFullBalanceSafeTransfer ¶
func (m *MockContractManager) CancelFullBalanceSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CancelFullBalanceSafeTransfer mocks base method.
func (*MockContractManager) CancelFullBalanceWPCSafeTransfer ¶
func (m *MockContractManager) CancelFullBalanceWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CancelFullBalanceWPCSafeTransfer mocks base method.
func (*MockContractManager) CancelSafeTransfer ¶
func (m *MockContractManager) CancelSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CancelSafeTransfer mocks base method.
func (*MockContractManager) CancelWPCSafeTransfer ¶
func (m *MockContractManager) CancelWPCSafeTransfer(ctx context.Context, transferID, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CancelWPCSafeTransfer mocks base method.
func (*MockContractManager) CreateFullBalanceSafeTransfer ¶
func (m *MockContractManager) CreateFullBalanceSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CreateFullBalanceSafeTransfer mocks base method.
func (*MockContractManager) CreateFullBalanceWPCSafeTransfer ¶
func (m *MockContractManager) CreateFullBalanceWPCSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CreateFullBalanceWPCSafeTransfer mocks base method.
func (*MockContractManager) CreateSafeTransfer ¶
func (m *MockContractManager) CreateSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CreateSafeTransfer mocks base method.
func (*MockContractManager) CreateWPCSafeTransfer ¶
func (m *MockContractManager) CreateWPCSafeTransfer(ctx context.Context, t *contracts.Transfer, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
CreateWPCSafeTransfer mocks base method.
func (*MockContractManager) DeleteAssetboxInfo ¶
func (m *MockContractManager) DeleteAssetboxInfo(ctx context.Context, key *ecdsa.PrivateKey) error
DeleteAssetboxInfo mocks base method.
func (*MockContractManager) DirectTransfer ¶
func (m *MockContractManager) DirectTransfer(ctx context.Context, from, to common.Address, value *big.Int, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
DirectTransfer mocks base method.
func (*MockContractManager) EXPECT ¶
func (m *MockContractManager) EXPECT() *MockContractManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContractManager) EmitEther ¶
func (m *MockContractManager) EmitEther(ctx context.Context, to common.Address, value *big.Int, nonce *uint64) error
EmitEther mocks base method.
func (*MockContractManager) ExpireSafeTransfers ¶
func (m *MockContractManager) ExpireSafeTransfers(ctx context.Context, ids [][32]byte, key *ecdsa.PrivateKey) (uint64, common.Hash, error)
ExpireSafeTransfers mocks base method.
func (*MockContractManager) FrameTransfer ¶
func (m *MockContractManager) FrameTransfer(ctx context.Context, to common.Address, value *big.Int, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
FrameTransfer mocks base method.
func (*MockContractManager) FullBalanceQuickTransfer ¶
func (m *MockContractManager) FullBalanceQuickTransfer(ctx context.Context, to common.Address, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
FullBalanceQuickTransfer mocks base method.
func (*MockContractManager) GetAllMiningAgents ¶
GetAllMiningAgents mocks base method.
func (*MockContractManager) GetAsseboxesMiningState ¶
func (m *MockContractManager) GetAsseboxesMiningState(ctx context.Context, address common.Address) (bool, error)
GetAsseboxesMiningState mocks base method.
func (*MockContractManager) GetAssetboxBalance ¶
func (m *MockContractManager) GetAssetboxBalance(ctx context.Context, addr common.Address) (*big.Int, error)
GetAssetboxBalance mocks base method.
func (*MockContractManager) GetAssetboxBalances ¶
func (m *MockContractManager) GetAssetboxBalances(ctx context.Context, addresses []common.Address) (map[common.Address]*big.Int, error)
GetAssetboxBalances mocks base method.
func (*MockContractManager) GetAssetboxBalancesSum ¶
func (m *MockContractManager) GetAssetboxBalancesSum(ctx context.Context, addresses []common.Address) (*big.Int, error)
GetAssetboxBalancesSum mocks base method.
func (*MockContractManager) GetAssetboxInfo ¶
func (m *MockContractManager) GetAssetboxInfo(ctx context.Context, addr common.Address) (*contracts.Assetbox, error)
GetAssetboxInfo mocks base method.
func (*MockContractManager) GetAssetboxInfoByAlias ¶
func (m *MockContractManager) GetAssetboxInfoByAlias(ctx context.Context, alias string) (*contracts.Assetbox, error)
GetAssetboxInfoByAlias mocks base method.
func (*MockContractManager) GetContractAddressAccessStorage ¶
func (m *MockContractManager) GetContractAddressAccessStorage() (common.Address, error)
GetContractAddressAccessStorage mocks base method.
func (*MockContractManager) GetContractAddressAssetbox ¶
func (m *MockContractManager) GetContractAddressAssetbox() (common.Address, error)
GetContractAddressAssetbox mocks base method.
func (*MockContractManager) GetContractAddressAssetboxInfo ¶
func (m *MockContractManager) GetContractAddressAssetboxInfo() (common.Address, error)
GetContractAddressAssetboxInfo mocks base method.
func (*MockContractManager) GetContractAddressBitbon ¶
func (m *MockContractManager) GetContractAddressBitbon() (common.Address, error)
GetContractAddressBitbon mocks base method.
func (*MockContractManager) GetContractAddressBitbonStorage ¶
func (m *MockContractManager) GetContractAddressBitbonStorage() (common.Address, error)
GetContractAddressBitbonStorage mocks base method.
func (*MockContractManager) GetContractAddressBitbonSupport ¶
func (m *MockContractManager) GetContractAddressBitbonSupport() (common.Address, error)
GetContractAddressBitbonSupport mocks base method.
func (*MockContractManager) GetContractAddressDistributionStorage ¶
func (m *MockContractManager) GetContractAddressDistributionStorage() (common.Address, error)
GetContractAddressDistributionStorage mocks base method.
func (*MockContractManager) GetContractAddressMiningAgentStorage ¶
func (m *MockContractManager) GetContractAddressMiningAgentStorage() (common.Address, error)
GetContractAddressMiningAgentStorage mocks base method.
func (*MockContractManager) GetContractAddressSafeTransferStorage ¶
func (m *MockContractManager) GetContractAddressSafeTransferStorage() (common.Address, error)
GetContractAddressSafeTransferStorage mocks base method.
func (*MockContractManager) GetContractAddressTransfer ¶
func (m *MockContractManager) GetContractAddressTransfer() (common.Address, error)
GetContractAddressTransfer mocks base method.
func (*MockContractManager) GetContractAddresses ¶
func (m *MockContractManager) GetContractAddresses() map[contract_snapshot.ContractType]common.Address
GetContractAddresses mocks base method.
func (*MockContractManager) GetContractStorageAddress ¶
func (m *MockContractManager) GetContractStorageAddress() (common.Address, error)
GetContractStorageAddress mocks base method.
func (*MockContractManager) GetCurrentContractAbiInfo ¶
func (m *MockContractManager) GetCurrentContractAbiInfo(version dto.ContractVersion) ([]*dto.AbiInfo, error)
GetCurrentContractAbiInfo mocks base method.
func (*MockContractManager) GetCurrentDistribution ¶
func (m *MockContractManager) GetCurrentDistribution(ctx context.Context) (map[string]uint64, error)
GetCurrentDistribution mocks base method.
func (*MockContractManager) GetEthAPIWrapper ¶
func (m *MockContractManager) GetEthAPIWrapper() *contracts.EthApiWrapper
GetEthAPIWrapper mocks base method.
func (*MockContractManager) GetExpiredTransfers ¶
func (m *MockContractManager) GetExpiredTransfers(ctx context.Context, firstTransfer, lastTransfer *big.Int) ([][32]byte, error)
GetExpiredTransfers mocks base method.
func (*MockContractManager) GetFee ¶
func (m *MockContractManager) GetFee(ctx context.Context, opType dto.OperationType) (*big.Int, error)
GetFee mocks base method.
func (*MockContractManager) GetFeeDistributionAccounts ¶
func (m *MockContractManager) GetFeeDistributionAccounts(ctx context.Context, operationType *big.Int) ([]common.Address, error)
GetFeeDistributionAccounts mocks base method.
func (*MockContractManager) GetFeeDistributionAmounts ¶
func (m *MockContractManager) GetFeeDistributionAmounts(ctx context.Context, operationType *big.Int) ([]*big.Int, error)
GetFeeDistributionAmounts mocks base method.
func (*MockContractManager) GetFeeValueSettings ¶
func (m *MockContractManager) GetFeeValueSettings(ctx context.Context) ([]*big.Int, []*big.Int, error)
GetFeeValueSettings mocks base method.
func (*MockContractManager) GetNoncer ¶
func (m *MockContractManager) GetNoncer() *noncer.Noncer
GetNoncer mocks base method.
func (*MockContractManager) GetOldestPending ¶
GetOldestPending mocks base method.
func (*MockContractManager) GetTransfer ¶
func (m *MockContractManager) GetTransfer(ctx context.Context, transferID []byte) (*contracts.ReceiptTransfer, error)
GetTransfer mocks base method.
func (*MockContractManager) GetTransferByIndex ¶
func (m *MockContractManager) GetTransferByIndex(ctx context.Context, index *big.Int) (*contracts.ReceiptTransfer, error)
GetTransferByIndex mocks base method.
func (*MockContractManager) GetTransferLength ¶
GetTransferLength mocks base method.
func (*MockContractManager) GetTransferState ¶
func (m *MockContractManager) GetTransferState(ctx context.Context, transferID []byte) (uint8, error)
GetTransferState mocks base method.
func (*MockContractManager) IsMiningAgent ¶
func (m *MockContractManager) IsMiningAgent(ctx context.Context, address common.Address) (bool, error)
IsMiningAgent mocks base method.
func (*MockContractManager) ProposeDistribution ¶
func (m *MockContractManager) ProposeDistribution(ctx context.Context, distribution map[string]uint64, key *ecdsa.PrivateKey) error
ProposeDistribution mocks base method.
func (*MockContractManager) QuickTransfer ¶
func (m *MockContractManager) QuickTransfer(ctx context.Context, to common.Address, value *big.Int, extraData []byte, key *ecdsa.PrivateKey, async bool) (uint64, common.Hash, error)
QuickTransfer mocks base method.
func (*MockContractManager) Ready ¶
func (m *MockContractManager) Ready() bool
Ready mocks base method.
func (*MockContractManager) RemoveMiningAgent ¶
func (m *MockContractManager) RemoveMiningAgent(ctx context.Context, address common.Address, key *ecdsa.PrivateKey) error
RemoveMiningAgent mocks base method.
func (*MockContractManager) SaveContractStorageAddress ¶
func (m *MockContractManager) SaveContractStorageAddress(addr common.Address) error
SaveContractStorageAddress mocks base method.
func (*MockContractManager) SearchOldestPending ¶
func (m *MockContractManager) SearchOldestPending(ctx context.Context, firstTransfer, lastTransfer *big.Int) (*big.Int, bool, error)
SearchOldestPending mocks base method.
func (*MockContractManager) ServiceFeeTransfer ¶
func (m *MockContractManager) ServiceFeeTransfer(ctx context.Context, params dto.ServiceFeeTransferParams, async bool) (uint64, common.Hash, error)
ServiceFeeTransfer mocks base method.
func (*MockContractManager) SetAssetboxInfo ¶
func (m *MockContractManager) SetAssetboxInfo(ctx context.Context, a *contracts.Assetbox, key *ecdsa.PrivateKey) error
SetAssetboxInfo mocks base method.
func (*MockContractManager) SetAssetboxInfos ¶
func (m *MockContractManager) SetAssetboxInfos(ctx context.Context, a []*contracts.Assetbox, key *ecdsa.PrivateKey) error
SetAssetboxInfos mocks base method.
func (*MockContractManager) SetOldestPending ¶
func (m *MockContractManager) SetOldestPending(ctx context.Context, pendingIndex *big.Int, key *ecdsa.PrivateKey) error
SetOldestPending mocks base method.
func (*MockContractManager) Stop ¶
func (m *MockContractManager) Stop() error
Stop mocks base method.
func (*MockContractManager) Stopped ¶
func (m *MockContractManager) Stopped() bool
Stopped mocks base method.
func (*MockContractManager) TransferExists ¶
TransferExists mocks base method.
func (*MockContractManager) WaitReady ¶
func (m *MockContractManager) WaitReady(exit chan struct{}) bool
WaitReady mocks base method.
func (*MockContractManager) WatchAssetboxInfoDeleted ¶
func (m *MockContractManager) WatchAssetboxInfoDeleted(sink chan<- *contracts.Assetbox) error
WatchAssetboxInfoDeleted mocks base method.
func (*MockContractManager) WatchAssetboxInfoSet ¶
func (m *MockContractManager) WatchAssetboxInfoSet(sink chan<- *contracts.Assetbox) error
WatchAssetboxInfoSet mocks base method.
func (*MockContractManager) WatchBitbonBalanceChanged ¶
func (m *MockContractManager) WatchBitbonBalanceChanged(sink chan<- *contracts.Balance) error
WatchBitbonBalanceChanged mocks base method.
func (*MockContractManager) WatchBitbonBalanceLocked ¶
func (m *MockContractManager) WatchBitbonBalanceLocked(sink chan<- *contracts.Balance) error
WatchBitbonBalanceLocked mocks base method.
func (*MockContractManager) WatchBitbonBalanceUnLocked ¶
func (m *MockContractManager) WatchBitbonBalanceUnLocked(sink chan<- *contracts.Balance) error
WatchBitbonBalanceUnLocked mocks base method.
func (*MockContractManager) WatchExceptionalAccountsChanged ¶
func (m *MockContractManager) WatchExceptionalAccountsChanged(sink chan<- *contracts.ExceptionalAccountsChanged) error
WatchExceptionalAccountsChanged mocks base method.
func (*MockContractManager) WatchFeeDistributionSettingsChanged ¶
func (m *MockContractManager) WatchFeeDistributionSettingsChanged(sink chan<- *contracts.DistributionSettingsChanged) error
WatchFeeDistributionSettingsChanged mocks base method.
func (*MockContractManager) WatchFeeValueChanged ¶
func (m *MockContractManager) WatchFeeValueChanged(sink chan<- *contracts.FeeValueChanged) error
WatchFeeValueChanged mocks base method.
func (*MockContractManager) WatchTransferExpired ¶
func (m *MockContractManager) WatchTransferExpired(sink chan<- *contracts.TransferExpired) error
WatchTransferExpired mocks base method.
type MockContractManagerMockRecorder ¶
type MockContractManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockContractManagerMockRecorder is the mock recorder for MockContractManager.
func (*MockContractManagerMockRecorder) AddMiningAgent ¶
func (mr *MockContractManagerMockRecorder) AddMiningAgent(ctx, address, key interface{}) *gomock.Call
AddMiningAgent indicates an expected call of AddMiningAgent.
func (*MockContractManagerMockRecorder) ApproveFullBalanceSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) ApproveFullBalanceSafeTransfer(ctx, transferID, protectionCode, extraData, key, async interface{}) *gomock.Call
ApproveFullBalanceSafeTransfer indicates an expected call of ApproveFullBalanceSafeTransfer.
func (*MockContractManagerMockRecorder) ApproveFullBalanceWPCSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) ApproveFullBalanceWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
ApproveFullBalanceWPCSafeTransfer indicates an expected call of ApproveFullBalanceWPCSafeTransfer.
func (*MockContractManagerMockRecorder) ApproveSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) ApproveSafeTransfer(ctx, transferID, protectionCode, extraData, key, async interface{}) *gomock.Call
ApproveSafeTransfer indicates an expected call of ApproveSafeTransfer.
func (*MockContractManagerMockRecorder) ApproveWPCSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) ApproveWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
ApproveWPCSafeTransfer indicates an expected call of ApproveWPCSafeTransfer.
func (*MockContractManagerMockRecorder) BalanceOfLocked ¶
func (mr *MockContractManagerMockRecorder) BalanceOfLocked(ctx, addr interface{}) *gomock.Call
BalanceOfLocked indicates an expected call of BalanceOfLocked.
func (*MockContractManagerMockRecorder) CancelFullBalanceSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CancelFullBalanceSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
CancelFullBalanceSafeTransfer indicates an expected call of CancelFullBalanceSafeTransfer.
func (*MockContractManagerMockRecorder) CancelFullBalanceWPCSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CancelFullBalanceWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
CancelFullBalanceWPCSafeTransfer indicates an expected call of CancelFullBalanceWPCSafeTransfer.
func (*MockContractManagerMockRecorder) CancelSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CancelSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
CancelSafeTransfer indicates an expected call of CancelSafeTransfer.
func (*MockContractManagerMockRecorder) CancelWPCSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CancelWPCSafeTransfer(ctx, transferID, extraData, key, async interface{}) *gomock.Call
CancelWPCSafeTransfer indicates an expected call of CancelWPCSafeTransfer.
func (*MockContractManagerMockRecorder) CreateFullBalanceSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CreateFullBalanceSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
CreateFullBalanceSafeTransfer indicates an expected call of CreateFullBalanceSafeTransfer.
func (*MockContractManagerMockRecorder) CreateFullBalanceWPCSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CreateFullBalanceWPCSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
CreateFullBalanceWPCSafeTransfer indicates an expected call of CreateFullBalanceWPCSafeTransfer.
func (*MockContractManagerMockRecorder) CreateSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CreateSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
CreateSafeTransfer indicates an expected call of CreateSafeTransfer.
func (*MockContractManagerMockRecorder) CreateWPCSafeTransfer ¶
func (mr *MockContractManagerMockRecorder) CreateWPCSafeTransfer(ctx, t, key, async interface{}) *gomock.Call
CreateWPCSafeTransfer indicates an expected call of CreateWPCSafeTransfer.
func (*MockContractManagerMockRecorder) DeleteAssetboxInfo ¶
func (mr *MockContractManagerMockRecorder) DeleteAssetboxInfo(ctx, key interface{}) *gomock.Call
DeleteAssetboxInfo indicates an expected call of DeleteAssetboxInfo.
func (*MockContractManagerMockRecorder) DirectTransfer ¶
func (mr *MockContractManagerMockRecorder) DirectTransfer(ctx, from, to, value, extraData, key, async interface{}) *gomock.Call
DirectTransfer indicates an expected call of DirectTransfer.
func (*MockContractManagerMockRecorder) EmitEther ¶
func (mr *MockContractManagerMockRecorder) EmitEther(ctx, to, value, nonce interface{}) *gomock.Call
EmitEther indicates an expected call of EmitEther.
func (*MockContractManagerMockRecorder) ExpireSafeTransfers ¶
func (mr *MockContractManagerMockRecorder) ExpireSafeTransfers(ctx, ids, key interface{}) *gomock.Call
ExpireSafeTransfers indicates an expected call of ExpireSafeTransfers.
func (*MockContractManagerMockRecorder) FrameTransfer ¶
func (mr *MockContractManagerMockRecorder) FrameTransfer(ctx, to, value, extraData, key, async interface{}) *gomock.Call
FrameTransfer indicates an expected call of FrameTransfer.
func (*MockContractManagerMockRecorder) FullBalanceQuickTransfer ¶
func (mr *MockContractManagerMockRecorder) FullBalanceQuickTransfer(ctx, to, extraData, key, async interface{}) *gomock.Call
FullBalanceQuickTransfer indicates an expected call of FullBalanceQuickTransfer.
func (*MockContractManagerMockRecorder) GetAllMiningAgents ¶
func (mr *MockContractManagerMockRecorder) GetAllMiningAgents(ctx interface{}) *gomock.Call
GetAllMiningAgents indicates an expected call of GetAllMiningAgents.
func (*MockContractManagerMockRecorder) GetAsseboxesMiningState ¶
func (mr *MockContractManagerMockRecorder) GetAsseboxesMiningState(ctx, address interface{}) *gomock.Call
GetAsseboxesMiningState indicates an expected call of GetAsseboxesMiningState.
func (*MockContractManagerMockRecorder) GetAssetboxBalance ¶
func (mr *MockContractManagerMockRecorder) GetAssetboxBalance(ctx, addr interface{}) *gomock.Call
GetAssetboxBalance indicates an expected call of GetAssetboxBalance.
func (*MockContractManagerMockRecorder) GetAssetboxBalances ¶
func (mr *MockContractManagerMockRecorder) GetAssetboxBalances(ctx, addresses interface{}) *gomock.Call
GetAssetboxBalances indicates an expected call of GetAssetboxBalances.
func (*MockContractManagerMockRecorder) GetAssetboxBalancesSum ¶
func (mr *MockContractManagerMockRecorder) GetAssetboxBalancesSum(ctx, addresses interface{}) *gomock.Call
GetAssetboxBalancesSum indicates an expected call of GetAssetboxBalancesSum.
func (*MockContractManagerMockRecorder) GetAssetboxInfo ¶
func (mr *MockContractManagerMockRecorder) GetAssetboxInfo(ctx, addr interface{}) *gomock.Call
GetAssetboxInfo indicates an expected call of GetAssetboxInfo.
func (*MockContractManagerMockRecorder) GetAssetboxInfoByAlias ¶
func (mr *MockContractManagerMockRecorder) GetAssetboxInfoByAlias(ctx, alias interface{}) *gomock.Call
GetAssetboxInfoByAlias indicates an expected call of GetAssetboxInfoByAlias.
func (*MockContractManagerMockRecorder) GetContractAddressAccessStorage ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressAccessStorage() *gomock.Call
GetContractAddressAccessStorage indicates an expected call of GetContractAddressAccessStorage.
func (*MockContractManagerMockRecorder) GetContractAddressAssetbox ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressAssetbox() *gomock.Call
GetContractAddressAssetbox indicates an expected call of GetContractAddressAssetbox.
func (*MockContractManagerMockRecorder) GetContractAddressAssetboxInfo ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressAssetboxInfo() *gomock.Call
GetContractAddressAssetboxInfo indicates an expected call of GetContractAddressAssetboxInfo.
func (*MockContractManagerMockRecorder) GetContractAddressBitbon ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressBitbon() *gomock.Call
GetContractAddressBitbon indicates an expected call of GetContractAddressBitbon.
func (*MockContractManagerMockRecorder) GetContractAddressBitbonStorage ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressBitbonStorage() *gomock.Call
GetContractAddressBitbonStorage indicates an expected call of GetContractAddressBitbonStorage.
func (*MockContractManagerMockRecorder) GetContractAddressBitbonSupport ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressBitbonSupport() *gomock.Call
GetContractAddressBitbonSupport indicates an expected call of GetContractAddressBitbonSupport.
func (*MockContractManagerMockRecorder) GetContractAddressDistributionStorage ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressDistributionStorage() *gomock.Call
GetContractAddressDistributionStorage indicates an expected call of GetContractAddressDistributionStorage.
func (*MockContractManagerMockRecorder) GetContractAddressMiningAgentStorage ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressMiningAgentStorage() *gomock.Call
GetContractAddressMiningAgentStorage indicates an expected call of GetContractAddressMiningAgentStorage.
func (*MockContractManagerMockRecorder) GetContractAddressSafeTransferStorage ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressSafeTransferStorage() *gomock.Call
GetContractAddressSafeTransferStorage indicates an expected call of GetContractAddressSafeTransferStorage.
func (*MockContractManagerMockRecorder) GetContractAddressTransfer ¶
func (mr *MockContractManagerMockRecorder) GetContractAddressTransfer() *gomock.Call
GetContractAddressTransfer indicates an expected call of GetContractAddressTransfer.
func (*MockContractManagerMockRecorder) GetContractAddresses ¶
func (mr *MockContractManagerMockRecorder) GetContractAddresses() *gomock.Call
GetContractAddresses indicates an expected call of GetContractAddresses.
func (*MockContractManagerMockRecorder) GetContractStorageAddress ¶
func (mr *MockContractManagerMockRecorder) GetContractStorageAddress() *gomock.Call
GetContractStorageAddress indicates an expected call of GetContractStorageAddress.
func (*MockContractManagerMockRecorder) GetCurrentContractAbiInfo ¶
func (mr *MockContractManagerMockRecorder) GetCurrentContractAbiInfo(version interface{}) *gomock.Call
GetCurrentContractAbiInfo indicates an expected call of GetCurrentContractAbiInfo.
func (*MockContractManagerMockRecorder) GetCurrentDistribution ¶
func (mr *MockContractManagerMockRecorder) GetCurrentDistribution(ctx interface{}) *gomock.Call
GetCurrentDistribution indicates an expected call of GetCurrentDistribution.
func (*MockContractManagerMockRecorder) GetEthAPIWrapper ¶
func (mr *MockContractManagerMockRecorder) GetEthAPIWrapper() *gomock.Call
GetEthAPIWrapper indicates an expected call of GetEthAPIWrapper.
func (*MockContractManagerMockRecorder) GetExpiredTransfers ¶
func (mr *MockContractManagerMockRecorder) GetExpiredTransfers(ctx, firstTransfer, lastTransfer interface{}) *gomock.Call
GetExpiredTransfers indicates an expected call of GetExpiredTransfers.
func (*MockContractManagerMockRecorder) GetFee ¶
func (mr *MockContractManagerMockRecorder) GetFee(ctx, opType interface{}) *gomock.Call
GetFee indicates an expected call of GetFee.
func (*MockContractManagerMockRecorder) GetFeeDistributionAccounts ¶
func (mr *MockContractManagerMockRecorder) GetFeeDistributionAccounts(ctx, operationType interface{}) *gomock.Call
GetFeeDistributionAccounts indicates an expected call of GetFeeDistributionAccounts.
func (*MockContractManagerMockRecorder) GetFeeDistributionAmounts ¶
func (mr *MockContractManagerMockRecorder) GetFeeDistributionAmounts(ctx, operationType interface{}) *gomock.Call
GetFeeDistributionAmounts indicates an expected call of GetFeeDistributionAmounts.
func (*MockContractManagerMockRecorder) GetFeeValueSettings ¶
func (mr *MockContractManagerMockRecorder) GetFeeValueSettings(ctx interface{}) *gomock.Call
GetFeeValueSettings indicates an expected call of GetFeeValueSettings.
func (*MockContractManagerMockRecorder) GetNoncer ¶
func (mr *MockContractManagerMockRecorder) GetNoncer() *gomock.Call
GetNoncer indicates an expected call of GetNoncer.
func (*MockContractManagerMockRecorder) GetOldestPending ¶
func (mr *MockContractManagerMockRecorder) GetOldestPending(ctx interface{}) *gomock.Call
GetOldestPending indicates an expected call of GetOldestPending.
func (*MockContractManagerMockRecorder) GetTransfer ¶
func (mr *MockContractManagerMockRecorder) GetTransfer(ctx, transferID interface{}) *gomock.Call
GetTransfer indicates an expected call of GetTransfer.
func (*MockContractManagerMockRecorder) GetTransferByIndex ¶
func (mr *MockContractManagerMockRecorder) GetTransferByIndex(ctx, index interface{}) *gomock.Call
GetTransferByIndex indicates an expected call of GetTransferByIndex.
func (*MockContractManagerMockRecorder) GetTransferLength ¶
func (mr *MockContractManagerMockRecorder) GetTransferLength(ctx interface{}) *gomock.Call
GetTransferLength indicates an expected call of GetTransferLength.
func (*MockContractManagerMockRecorder) GetTransferState ¶
func (mr *MockContractManagerMockRecorder) GetTransferState(ctx, transferID interface{}) *gomock.Call
GetTransferState indicates an expected call of GetTransferState.
func (*MockContractManagerMockRecorder) IsMiningAgent ¶
func (mr *MockContractManagerMockRecorder) IsMiningAgent(ctx, address interface{}) *gomock.Call
IsMiningAgent indicates an expected call of IsMiningAgent.
func (*MockContractManagerMockRecorder) ProposeDistribution ¶
func (mr *MockContractManagerMockRecorder) ProposeDistribution(ctx, distribution, key interface{}) *gomock.Call
ProposeDistribution indicates an expected call of ProposeDistribution.
func (*MockContractManagerMockRecorder) QuickTransfer ¶
func (mr *MockContractManagerMockRecorder) QuickTransfer(ctx, to, value, extraData, key, async interface{}) *gomock.Call
QuickTransfer indicates an expected call of QuickTransfer.
func (*MockContractManagerMockRecorder) Ready ¶
func (mr *MockContractManagerMockRecorder) Ready() *gomock.Call
Ready indicates an expected call of Ready.
func (*MockContractManagerMockRecorder) RemoveMiningAgent ¶
func (mr *MockContractManagerMockRecorder) RemoveMiningAgent(ctx, address, key interface{}) *gomock.Call
RemoveMiningAgent indicates an expected call of RemoveMiningAgent.
func (*MockContractManagerMockRecorder) SaveContractStorageAddress ¶
func (mr *MockContractManagerMockRecorder) SaveContractStorageAddress(addr interface{}) *gomock.Call
SaveContractStorageAddress indicates an expected call of SaveContractStorageAddress.
func (*MockContractManagerMockRecorder) SearchOldestPending ¶
func (mr *MockContractManagerMockRecorder) SearchOldestPending(ctx, firstTransfer, lastTransfer interface{}) *gomock.Call
SearchOldestPending indicates an expected call of SearchOldestPending.
func (*MockContractManagerMockRecorder) ServiceFeeTransfer ¶
func (mr *MockContractManagerMockRecorder) ServiceFeeTransfer(ctx, params, async interface{}) *gomock.Call
ServiceFeeTransfer indicates an expected call of ServiceFeeTransfer.
func (*MockContractManagerMockRecorder) SetAssetboxInfo ¶
func (mr *MockContractManagerMockRecorder) SetAssetboxInfo(ctx, a, key interface{}) *gomock.Call
SetAssetboxInfo indicates an expected call of SetAssetboxInfo.
func (*MockContractManagerMockRecorder) SetAssetboxInfos ¶
func (mr *MockContractManagerMockRecorder) SetAssetboxInfos(ctx, a, key interface{}) *gomock.Call
SetAssetboxInfos indicates an expected call of SetAssetboxInfos.
func (*MockContractManagerMockRecorder) SetOldestPending ¶
func (mr *MockContractManagerMockRecorder) SetOldestPending(ctx, pendingIndex, key interface{}) *gomock.Call
SetOldestPending indicates an expected call of SetOldestPending.
func (*MockContractManagerMockRecorder) Stop ¶
func (mr *MockContractManagerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockContractManagerMockRecorder) Stopped ¶
func (mr *MockContractManagerMockRecorder) Stopped() *gomock.Call
Stopped indicates an expected call of Stopped.
func (*MockContractManagerMockRecorder) TransferExists ¶
func (mr *MockContractManagerMockRecorder) TransferExists(ctx, transferID interface{}) *gomock.Call
TransferExists indicates an expected call of TransferExists.
func (*MockContractManagerMockRecorder) WaitReady ¶
func (mr *MockContractManagerMockRecorder) WaitReady(exit interface{}) *gomock.Call
WaitReady indicates an expected call of WaitReady.
func (*MockContractManagerMockRecorder) WatchAssetboxInfoDeleted ¶
func (mr *MockContractManagerMockRecorder) WatchAssetboxInfoDeleted(sink interface{}) *gomock.Call
WatchAssetboxInfoDeleted indicates an expected call of WatchAssetboxInfoDeleted.
func (*MockContractManagerMockRecorder) WatchAssetboxInfoSet ¶
func (mr *MockContractManagerMockRecorder) WatchAssetboxInfoSet(sink interface{}) *gomock.Call
WatchAssetboxInfoSet indicates an expected call of WatchAssetboxInfoSet.
func (*MockContractManagerMockRecorder) WatchBitbonBalanceChanged ¶
func (mr *MockContractManagerMockRecorder) WatchBitbonBalanceChanged(sink interface{}) *gomock.Call
WatchBitbonBalanceChanged indicates an expected call of WatchBitbonBalanceChanged.
func (*MockContractManagerMockRecorder) WatchBitbonBalanceLocked ¶
func (mr *MockContractManagerMockRecorder) WatchBitbonBalanceLocked(sink interface{}) *gomock.Call
WatchBitbonBalanceLocked indicates an expected call of WatchBitbonBalanceLocked.
func (*MockContractManagerMockRecorder) WatchBitbonBalanceUnLocked ¶
func (mr *MockContractManagerMockRecorder) WatchBitbonBalanceUnLocked(sink interface{}) *gomock.Call
WatchBitbonBalanceUnLocked indicates an expected call of WatchBitbonBalanceUnLocked.
func (*MockContractManagerMockRecorder) WatchExceptionalAccountsChanged ¶
func (mr *MockContractManagerMockRecorder) WatchExceptionalAccountsChanged(sink interface{}) *gomock.Call
WatchExceptionalAccountsChanged indicates an expected call of WatchExceptionalAccountsChanged.
func (*MockContractManagerMockRecorder) WatchFeeDistributionSettingsChanged ¶
func (mr *MockContractManagerMockRecorder) WatchFeeDistributionSettingsChanged(sink interface{}) *gomock.Call
WatchFeeDistributionSettingsChanged indicates an expected call of WatchFeeDistributionSettingsChanged.
func (*MockContractManagerMockRecorder) WatchFeeValueChanged ¶
func (mr *MockContractManagerMockRecorder) WatchFeeValueChanged(sink interface{}) *gomock.Call
WatchFeeValueChanged indicates an expected call of WatchFeeValueChanged.
func (*MockContractManagerMockRecorder) WatchTransferExpired ¶
func (mr *MockContractManagerMockRecorder) WatchTransferExpired(sink interface{}) *gomock.Call
WatchTransferExpired indicates an expected call of WatchTransferExpired.
type MockFeeManager ¶
type MockFeeManager struct {
// contains filtered or unexported fields
}
MockFeeManager is a mock of FeeManager interface.
func NewMockFeeManager ¶
func NewMockFeeManager(ctrl *gomock.Controller) *MockFeeManager
NewMockFeeManager creates a new mock instance.
func (*MockFeeManager) EXPECT ¶
func (m *MockFeeManager) EXPECT() *MockFeeManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFeeManager) GetFee ¶
func (m *MockFeeManager) GetFee(ctx context.Context, opType dto.OperationType) (*big.Int, error)
GetFee mocks base method.
func (*MockFeeManager) GetFeeDistributionAccounts ¶
func (m *MockFeeManager) GetFeeDistributionAccounts(ctx context.Context, operationType *big.Int) ([]common.Address, error)
GetFeeDistributionAccounts mocks base method.
func (*MockFeeManager) GetFeeDistributionAmounts ¶
func (m *MockFeeManager) GetFeeDistributionAmounts(ctx context.Context, operationType *big.Int) ([]*big.Int, error)
GetFeeDistributionAmounts mocks base method.
func (*MockFeeManager) GetFeeSettings ¶
func (m *MockFeeManager) GetFeeSettings(ctx context.Context) (*models.FeeSettingsResponseObj, error)
GetFeeSettings mocks base method.
type MockFeeManagerMockRecorder ¶
type MockFeeManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockFeeManagerMockRecorder is the mock recorder for MockFeeManager.
func (*MockFeeManagerMockRecorder) GetFee ¶
func (mr *MockFeeManagerMockRecorder) GetFee(ctx, opType interface{}) *gomock.Call
GetFee indicates an expected call of GetFee.
func (*MockFeeManagerMockRecorder) GetFeeDistributionAccounts ¶
func (mr *MockFeeManagerMockRecorder) GetFeeDistributionAccounts(ctx, operationType interface{}) *gomock.Call
GetFeeDistributionAccounts indicates an expected call of GetFeeDistributionAccounts.
func (*MockFeeManagerMockRecorder) GetFeeDistributionAmounts ¶
func (mr *MockFeeManagerMockRecorder) GetFeeDistributionAmounts(ctx, operationType interface{}) *gomock.Call
GetFeeDistributionAmounts indicates an expected call of GetFeeDistributionAmounts.
func (*MockFeeManagerMockRecorder) GetFeeSettings ¶
func (mr *MockFeeManagerMockRecorder) GetFeeSettings(ctx interface{}) *gomock.Call
GetFeeSettings indicates an expected call of GetFeeSettings.
type MockMiningAgent ¶
type MockMiningAgent struct {
// contains filtered or unexported fields
}
MockMiningAgent is a mock of MiningAgent interface.
func NewMockMiningAgent ¶
func NewMockMiningAgent(ctrl *gomock.Controller) *MockMiningAgent
NewMockMiningAgent creates a new mock instance.
func (*MockMiningAgent) AddMiningAgent ¶
AddMiningAgent mocks base method.
func (*MockMiningAgent) EXPECT ¶
func (m *MockMiningAgent) EXPECT() *MockMiningAgentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMiningAgent) GetAllMiningAgents ¶
GetAllMiningAgents mocks base method.
func (*MockMiningAgent) GetCurrentDistribution ¶
GetCurrentDistribution mocks base method.
func (*MockMiningAgent) IsMiningAgent ¶
IsMiningAgent mocks base method.
func (*MockMiningAgent) ProposeDistribution ¶
func (m *MockMiningAgent) ProposeDistribution(ctx context.Context, req dto.ProposeDistributionRequest) error
ProposeDistribution mocks base method.
func (*MockMiningAgent) RemoveMiningAgent ¶
RemoveMiningAgent mocks base method.
type MockMiningAgentMockRecorder ¶
type MockMiningAgentMockRecorder struct {
// contains filtered or unexported fields
}
MockMiningAgentMockRecorder is the mock recorder for MockMiningAgent.
func (*MockMiningAgentMockRecorder) AddMiningAgent ¶
func (mr *MockMiningAgentMockRecorder) AddMiningAgent(ctx, address interface{}) *gomock.Call
AddMiningAgent indicates an expected call of AddMiningAgent.
func (*MockMiningAgentMockRecorder) GetAllMiningAgents ¶
func (mr *MockMiningAgentMockRecorder) GetAllMiningAgents(ctx interface{}) *gomock.Call
GetAllMiningAgents indicates an expected call of GetAllMiningAgents.
func (*MockMiningAgentMockRecorder) GetCurrentDistribution ¶
func (mr *MockMiningAgentMockRecorder) GetCurrentDistribution(ctx interface{}) *gomock.Call
GetCurrentDistribution indicates an expected call of GetCurrentDistribution.
func (*MockMiningAgentMockRecorder) IsMiningAgent ¶
func (mr *MockMiningAgentMockRecorder) IsMiningAgent(ctx, address interface{}) *gomock.Call
IsMiningAgent indicates an expected call of IsMiningAgent.
func (*MockMiningAgentMockRecorder) ProposeDistribution ¶
func (mr *MockMiningAgentMockRecorder) ProposeDistribution(ctx, req interface{}) *gomock.Call
ProposeDistribution indicates an expected call of ProposeDistribution.
func (*MockMiningAgentMockRecorder) RemoveMiningAgent ¶
func (mr *MockMiningAgentMockRecorder) RemoveMiningAgent(ctx, address interface{}) *gomock.Call
RemoveMiningAgent indicates an expected call of RemoveMiningAgent.
type MockPkEncryptor ¶
type MockPkEncryptor struct {
// contains filtered or unexported fields
}
MockPkEncryptor is a mock of PkEncryptor interface.
func NewMockPkEncryptor ¶
func NewMockPkEncryptor(ctrl *gomock.Controller) *MockPkEncryptor
NewMockPkEncryptor creates a new mock instance.
func (*MockPkEncryptor) Decrypt ¶
func (m *MockPkEncryptor) Decrypt(data, key []byte) ([]byte, error)
Decrypt mocks base method.
func (*MockPkEncryptor) EXPECT ¶
func (m *MockPkEncryptor) EXPECT() *MockPkEncryptorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPkEncryptorMockRecorder ¶
type MockPkEncryptorMockRecorder struct {
// contains filtered or unexported fields
}
MockPkEncryptorMockRecorder is the mock recorder for MockPkEncryptor.
func (*MockPkEncryptorMockRecorder) Decrypt ¶
func (mr *MockPkEncryptorMockRecorder) Decrypt(data, key interface{}) *gomock.Call
Decrypt indicates an expected call of Decrypt.
func (*MockPkEncryptorMockRecorder) Encrypt ¶
func (mr *MockPkEncryptorMockRecorder) Encrypt(data, key interface{}) *gomock.Call
Encrypt indicates an expected call of Encrypt.
type MockTransferManager ¶
type MockTransferManager struct {
// contains filtered or unexported fields
}
MockTransferManager is a mock of TransferManager interface.
func NewMockTransferManager ¶
func NewMockTransferManager(ctrl *gomock.Controller) *MockTransferManager
NewMockTransferManager creates a new mock instance.
func (*MockTransferManager) ApproveFullBalanceSafeTransfer ¶
func (m *MockTransferManager) ApproveFullBalanceSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveFullBalanceSafeTransfer mocks base method.
func (*MockTransferManager) ApproveFullBalanceSafeTransferAsync ¶
func (m *MockTransferManager) ApproveFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveFullBalanceSafeTransferAsync mocks base method.
func (*MockTransferManager) ApproveFullBalanceWPCSafeTransfer ¶
func (m *MockTransferManager) ApproveFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveFullBalanceWPCSafeTransfer mocks base method.
func (*MockTransferManager) ApproveFullBalanceWPCSafeTransferAsync ¶
func (m *MockTransferManager) ApproveFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveFullBalanceWPCSafeTransferAsync mocks base method.
func (*MockTransferManager) ApproveSafeTransfer ¶
func (m *MockTransferManager) ApproveSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveSafeTransfer mocks base method.
func (*MockTransferManager) ApproveSafeTransferAsync ¶
func (m *MockTransferManager) ApproveSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveSafeTransferAsync mocks base method.
func (*MockTransferManager) ApproveWPCSafeTransfer ¶
func (m *MockTransferManager) ApproveWPCSafeTransfer(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveWPCSafeTransfer mocks base method.
func (*MockTransferManager) ApproveWPCSafeTransferAsync ¶
func (m *MockTransferManager) ApproveWPCSafeTransferAsync(ctx context.Context, transfer *models.ApproveTransferObj) (*models.TransferResponseObj, error)
ApproveWPCSafeTransferAsync mocks base method.
func (*MockTransferManager) CancelFullBalanceSafeTransfer ¶
func (m *MockTransferManager) CancelFullBalanceSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelFullBalanceSafeTransfer mocks base method.
func (*MockTransferManager) CancelFullBalanceSafeTransferAsync ¶
func (m *MockTransferManager) CancelFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelFullBalanceSafeTransferAsync mocks base method.
func (*MockTransferManager) CancelFullBalanceWPCSafeTransfer ¶
func (m *MockTransferManager) CancelFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelFullBalanceWPCSafeTransfer mocks base method.
func (*MockTransferManager) CancelFullBalanceWPCSafeTransferAsync ¶
func (m *MockTransferManager) CancelFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelFullBalanceWPCSafeTransferAsync mocks base method.
func (*MockTransferManager) CancelSafeTransfer ¶
func (m *MockTransferManager) CancelSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelSafeTransfer mocks base method.
func (*MockTransferManager) CancelSafeTransferAsync ¶
func (m *MockTransferManager) CancelSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelSafeTransferAsync mocks base method.
func (*MockTransferManager) CancelWPCSafeTransfer ¶
func (m *MockTransferManager) CancelWPCSafeTransfer(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelWPCSafeTransfer mocks base method.
func (*MockTransferManager) CancelWPCSafeTransferAsync ¶
func (m *MockTransferManager) CancelWPCSafeTransferAsync(ctx context.Context, transfer *models.CancelTransferObj) (*models.TransferResponseObj, error)
CancelWPCSafeTransferAsync mocks base method.
func (*MockTransferManager) CreateFullBalanceSafeTransfer ¶
func (m *MockTransferManager) CreateFullBalanceSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateFullBalanceSafeTransfer mocks base method.
func (*MockTransferManager) CreateFullBalanceSafeTransferAsync ¶
func (m *MockTransferManager) CreateFullBalanceSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateFullBalanceSafeTransferAsync mocks base method.
func (*MockTransferManager) CreateFullBalanceWPCSafeTransfer ¶
func (m *MockTransferManager) CreateFullBalanceWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateFullBalanceWPCSafeTransfer mocks base method.
func (*MockTransferManager) CreateFullBalanceWPCSafeTransferAsync ¶
func (m *MockTransferManager) CreateFullBalanceWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateFullBalanceWPCSafeTransferAsync mocks base method.
func (*MockTransferManager) CreateSafeTransfer ¶
func (m *MockTransferManager) CreateSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateSafeTransfer mocks base method.
func (*MockTransferManager) CreateSafeTransferAsync ¶
func (m *MockTransferManager) CreateSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateSafeTransferAsync mocks base method.
func (*MockTransferManager) CreateWPCSafeTransfer ¶
func (m *MockTransferManager) CreateWPCSafeTransfer(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateWPCSafeTransfer mocks base method.
func (*MockTransferManager) CreateWPCSafeTransferAsync ¶
func (m *MockTransferManager) CreateWPCSafeTransferAsync(ctx context.Context, transfer *models.CreateTransferObj) (*models.TransferResponseObj, error)
CreateWPCSafeTransferAsync mocks base method.
func (*MockTransferManager) DirectTransfer ¶
func (m *MockTransferManager) DirectTransfer(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
DirectTransfer mocks base method.
func (*MockTransferManager) DirectTransferAsync ¶
func (m *MockTransferManager) DirectTransferAsync(ctx context.Context, transfer *models.DirectTransferObj) (*models.TransferResponseObj, error)
DirectTransferAsync mocks base method.
func (*MockTransferManager) EXPECT ¶
func (m *MockTransferManager) EXPECT() *MockTransferManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransferManager) ExpireTransfersAsync ¶
func (m *MockTransferManager) ExpireTransfersAsync(ctx context.Context, ids []string) (*models.TransferResponseObj, error)
ExpireTransfersAsync mocks base method.
func (*MockTransferManager) FrameTransfer ¶
func (m *MockTransferManager) FrameTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
FrameTransfer mocks base method.
func (*MockTransferManager) FrameTransferAsync ¶
func (m *MockTransferManager) FrameTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
FrameTransferAsync mocks base method.
func (*MockTransferManager) FullBalanceQuickTransfer ¶
func (m *MockTransferManager) FullBalanceQuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
FullBalanceQuickTransfer mocks base method.
func (*MockTransferManager) FullBalanceQuickTransferAsync ¶
func (m *MockTransferManager) FullBalanceQuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
FullBalanceQuickTransferAsync mocks base method.
func (*MockTransferManager) GetTransfer ¶
func (m *MockTransferManager) GetTransfer(ctx context.Context, transferID string) (*contracts.ReceiptTransfer, error)
GetTransfer mocks base method.
func (*MockTransferManager) GetTransferByIndex ¶
func (m *MockTransferManager) GetTransferByIndex(ctx context.Context, index *big.Int) (*contracts.ReceiptTransfer, error)
GetTransferByIndex mocks base method.
func (*MockTransferManager) QuickTransfer ¶
func (m *MockTransferManager) QuickTransfer(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
QuickTransfer mocks base method.
func (*MockTransferManager) QuickTransferAsync ¶
func (m *MockTransferManager) QuickTransferAsync(ctx context.Context, transfer *models.QuickTransferObj) (*models.TransferResponseObj, error)
QuickTransferAsync mocks base method.
func (*MockTransferManager) ServiceFeeTransfer ¶
func (m *MockTransferManager) ServiceFeeTransfer(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
ServiceFeeTransfer mocks base method.
func (*MockTransferManager) ServiceFeeTransferAsync ¶
func (m *MockTransferManager) ServiceFeeTransferAsync(ctx context.Context, transfer *models.ServiceFeeTransferObj) (*models.TransferResponseObj, error)
ServiceFeeTransferAsync mocks base method.
func (*MockTransferManager) Stop ¶
func (m *MockTransferManager) Stop() error
Stop mocks base method.
func (*MockTransferManager) TransferExists ¶
TransferExists mocks base method.
type MockTransferManagerMockRecorder ¶
type MockTransferManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockTransferManagerMockRecorder is the mock recorder for MockTransferManager.
func (*MockTransferManagerMockRecorder) ApproveFullBalanceSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceSafeTransfer(ctx, transfer interface{}) *gomock.Call
ApproveFullBalanceSafeTransfer indicates an expected call of ApproveFullBalanceSafeTransfer.
func (*MockTransferManagerMockRecorder) ApproveFullBalanceSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
ApproveFullBalanceSafeTransferAsync indicates an expected call of ApproveFullBalanceSafeTransferAsync.
func (*MockTransferManagerMockRecorder) ApproveFullBalanceWPCSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
ApproveFullBalanceWPCSafeTransfer indicates an expected call of ApproveFullBalanceWPCSafeTransfer.
func (*MockTransferManagerMockRecorder) ApproveFullBalanceWPCSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) ApproveFullBalanceWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
ApproveFullBalanceWPCSafeTransferAsync indicates an expected call of ApproveFullBalanceWPCSafeTransferAsync.
func (*MockTransferManagerMockRecorder) ApproveSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) ApproveSafeTransfer(ctx, transfer interface{}) *gomock.Call
ApproveSafeTransfer indicates an expected call of ApproveSafeTransfer.
func (*MockTransferManagerMockRecorder) ApproveSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) ApproveSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
ApproveSafeTransferAsync indicates an expected call of ApproveSafeTransferAsync.
func (*MockTransferManagerMockRecorder) ApproveWPCSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) ApproveWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
ApproveWPCSafeTransfer indicates an expected call of ApproveWPCSafeTransfer.
func (*MockTransferManagerMockRecorder) ApproveWPCSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) ApproveWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
ApproveWPCSafeTransferAsync indicates an expected call of ApproveWPCSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CancelFullBalanceSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CancelFullBalanceSafeTransfer(ctx, transfer interface{}) *gomock.Call
CancelFullBalanceSafeTransfer indicates an expected call of CancelFullBalanceSafeTransfer.
func (*MockTransferManagerMockRecorder) CancelFullBalanceSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CancelFullBalanceSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CancelFullBalanceSafeTransferAsync indicates an expected call of CancelFullBalanceSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CancelFullBalanceWPCSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CancelFullBalanceWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
CancelFullBalanceWPCSafeTransfer indicates an expected call of CancelFullBalanceWPCSafeTransfer.
func (*MockTransferManagerMockRecorder) CancelFullBalanceWPCSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CancelFullBalanceWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CancelFullBalanceWPCSafeTransferAsync indicates an expected call of CancelFullBalanceWPCSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CancelSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CancelSafeTransfer(ctx, transfer interface{}) *gomock.Call
CancelSafeTransfer indicates an expected call of CancelSafeTransfer.
func (*MockTransferManagerMockRecorder) CancelSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CancelSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CancelSafeTransferAsync indicates an expected call of CancelSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CancelWPCSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CancelWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
CancelWPCSafeTransfer indicates an expected call of CancelWPCSafeTransfer.
func (*MockTransferManagerMockRecorder) CancelWPCSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CancelWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CancelWPCSafeTransferAsync indicates an expected call of CancelWPCSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CreateFullBalanceSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CreateFullBalanceSafeTransfer(ctx, transfer interface{}) *gomock.Call
CreateFullBalanceSafeTransfer indicates an expected call of CreateFullBalanceSafeTransfer.
func (*MockTransferManagerMockRecorder) CreateFullBalanceSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CreateFullBalanceSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CreateFullBalanceSafeTransferAsync indicates an expected call of CreateFullBalanceSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CreateFullBalanceWPCSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CreateFullBalanceWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
CreateFullBalanceWPCSafeTransfer indicates an expected call of CreateFullBalanceWPCSafeTransfer.
func (*MockTransferManagerMockRecorder) CreateFullBalanceWPCSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CreateFullBalanceWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CreateFullBalanceWPCSafeTransferAsync indicates an expected call of CreateFullBalanceWPCSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CreateSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CreateSafeTransfer(ctx, transfer interface{}) *gomock.Call
CreateSafeTransfer indicates an expected call of CreateSafeTransfer.
func (*MockTransferManagerMockRecorder) CreateSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CreateSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CreateSafeTransferAsync indicates an expected call of CreateSafeTransferAsync.
func (*MockTransferManagerMockRecorder) CreateWPCSafeTransfer ¶
func (mr *MockTransferManagerMockRecorder) CreateWPCSafeTransfer(ctx, transfer interface{}) *gomock.Call
CreateWPCSafeTransfer indicates an expected call of CreateWPCSafeTransfer.
func (*MockTransferManagerMockRecorder) CreateWPCSafeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) CreateWPCSafeTransferAsync(ctx, transfer interface{}) *gomock.Call
CreateWPCSafeTransferAsync indicates an expected call of CreateWPCSafeTransferAsync.
func (*MockTransferManagerMockRecorder) DirectTransfer ¶
func (mr *MockTransferManagerMockRecorder) DirectTransfer(ctx, transfer interface{}) *gomock.Call
DirectTransfer indicates an expected call of DirectTransfer.
func (*MockTransferManagerMockRecorder) DirectTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) DirectTransferAsync(ctx, transfer interface{}) *gomock.Call
DirectTransferAsync indicates an expected call of DirectTransferAsync.
func (*MockTransferManagerMockRecorder) ExpireTransfersAsync ¶
func (mr *MockTransferManagerMockRecorder) ExpireTransfersAsync(ctx, ids interface{}) *gomock.Call
ExpireTransfersAsync indicates an expected call of ExpireTransfersAsync.
func (*MockTransferManagerMockRecorder) FrameTransfer ¶
func (mr *MockTransferManagerMockRecorder) FrameTransfer(ctx, transfer interface{}) *gomock.Call
FrameTransfer indicates an expected call of FrameTransfer.
func (*MockTransferManagerMockRecorder) FrameTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) FrameTransferAsync(ctx, transfer interface{}) *gomock.Call
FrameTransferAsync indicates an expected call of FrameTransferAsync.
func (*MockTransferManagerMockRecorder) FullBalanceQuickTransfer ¶
func (mr *MockTransferManagerMockRecorder) FullBalanceQuickTransfer(ctx, transfer interface{}) *gomock.Call
FullBalanceQuickTransfer indicates an expected call of FullBalanceQuickTransfer.
func (*MockTransferManagerMockRecorder) FullBalanceQuickTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) FullBalanceQuickTransferAsync(ctx, transfer interface{}) *gomock.Call
FullBalanceQuickTransferAsync indicates an expected call of FullBalanceQuickTransferAsync.
func (*MockTransferManagerMockRecorder) GetTransfer ¶
func (mr *MockTransferManagerMockRecorder) GetTransfer(ctx, transferID interface{}) *gomock.Call
GetTransfer indicates an expected call of GetTransfer.
func (*MockTransferManagerMockRecorder) GetTransferByIndex ¶
func (mr *MockTransferManagerMockRecorder) GetTransferByIndex(ctx, index interface{}) *gomock.Call
GetTransferByIndex indicates an expected call of GetTransferByIndex.
func (*MockTransferManagerMockRecorder) QuickTransfer ¶
func (mr *MockTransferManagerMockRecorder) QuickTransfer(ctx, transfer interface{}) *gomock.Call
QuickTransfer indicates an expected call of QuickTransfer.
func (*MockTransferManagerMockRecorder) QuickTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) QuickTransferAsync(ctx, transfer interface{}) *gomock.Call
QuickTransferAsync indicates an expected call of QuickTransferAsync.
func (*MockTransferManagerMockRecorder) ServiceFeeTransfer ¶
func (mr *MockTransferManagerMockRecorder) ServiceFeeTransfer(ctx, transfer interface{}) *gomock.Call
ServiceFeeTransfer indicates an expected call of ServiceFeeTransfer.
func (*MockTransferManagerMockRecorder) ServiceFeeTransferAsync ¶
func (mr *MockTransferManagerMockRecorder) ServiceFeeTransferAsync(ctx, transfer interface{}) *gomock.Call
ServiceFeeTransferAsync indicates an expected call of ServiceFeeTransferAsync.
func (*MockTransferManagerMockRecorder) Stop ¶
func (mr *MockTransferManagerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockTransferManagerMockRecorder) TransferExists ¶
func (mr *MockTransferManagerMockRecorder) TransferExists(ctx, transferID interface{}) *gomock.Call
TransferExists indicates an expected call of TransferExists.