mocks

package
v0.0.0-...-127b1e4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: OSL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnection

type MockConnection struct {
	// contains filtered or unexported fields
}

MockConnection is a mock of Connection interface

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance

func (*MockConnection) CallContract

func (m *MockConnection) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract mocks base method

func (*MockConnection) CodeAt

func (m *MockConnection) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt mocks base method

func (*MockConnection) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockConnection) EstimateGas

func (m *MockConnection) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas mocks base method

func (*MockConnection) FilterLogs

func (m *MockConnection) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

FilterLogs mocks base method

func (*MockConnection) PendingCodeAt

func (m *MockConnection) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt mocks base method

func (*MockConnection) PendingNonceAt

func (m *MockConnection) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt mocks base method

func (*MockConnection) SendTransaction

func (m *MockConnection) SendTransaction(ctx context.Context, tx *types.Transaction) error

SendTransaction mocks base method

func (*MockConnection) SubscribeFilterLogs

func (m *MockConnection) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

SubscribeFilterLogs mocks base method

func (*MockConnection) SuggestGasPrice

func (m *MockConnection) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice mocks base method

func (*MockConnection) TransactionReceipt

func (m *MockConnection) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt mocks base method

type MockConnectionMockRecorder

type MockConnectionMockRecorder struct {
	// contains filtered or unexported fields
}

MockConnectionMockRecorder is the mock recorder for MockConnection

func (*MockConnectionMockRecorder) CallContract

func (mr *MockConnectionMockRecorder) CallContract(ctx, call, blockNumber interface{}) *gomock.Call

CallContract indicates an expected call of CallContract

func (*MockConnectionMockRecorder) CodeAt

func (mr *MockConnectionMockRecorder) CodeAt(ctx, contract, blockNumber interface{}) *gomock.Call

CodeAt indicates an expected call of CodeAt

func (*MockConnectionMockRecorder) EstimateGas

func (mr *MockConnectionMockRecorder) EstimateGas(ctx, call interface{}) *gomock.Call

EstimateGas indicates an expected call of EstimateGas

func (*MockConnectionMockRecorder) FilterLogs

func (mr *MockConnectionMockRecorder) FilterLogs(ctx, query interface{}) *gomock.Call

FilterLogs indicates an expected call of FilterLogs

func (*MockConnectionMockRecorder) PendingCodeAt

func (mr *MockConnectionMockRecorder) PendingCodeAt(ctx, account interface{}) *gomock.Call

PendingCodeAt indicates an expected call of PendingCodeAt

func (*MockConnectionMockRecorder) PendingNonceAt

func (mr *MockConnectionMockRecorder) PendingNonceAt(ctx, account interface{}) *gomock.Call

PendingNonceAt indicates an expected call of PendingNonceAt

func (*MockConnectionMockRecorder) SendTransaction

func (mr *MockConnectionMockRecorder) SendTransaction(ctx, tx interface{}) *gomock.Call

SendTransaction indicates an expected call of SendTransaction

func (*MockConnectionMockRecorder) SubscribeFilterLogs

func (mr *MockConnectionMockRecorder) SubscribeFilterLogs(ctx, query, ch interface{}) *gomock.Call

SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs

func (*MockConnectionMockRecorder) SuggestGasPrice

func (mr *MockConnectionMockRecorder) SuggestGasPrice(ctx interface{}) *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice

func (*MockConnectionMockRecorder) TransactionReceipt

func (mr *MockConnectionMockRecorder) TransactionReceipt(ctx, txHash interface{}) *gomock.Call

TransactionReceipt indicates an expected call of TransactionReceipt

type MockDRSContract

type MockDRSContract struct {
	// contains filtered or unexported fields
}

MockDRSContract is a mock of DRSContract interface

func NewMockDRSContract

func NewMockDRSContract(ctrl *gomock.Controller) *MockDRSContract

NewMockDRSContract creates a new mock instance

func (*MockDRSContract) CollateralHealthCheck

func (m *MockDRSContract) CollateralHealthCheck(opts *bind.CallOpts, assetCode string) (common.Address, [32]byte, *big.Int, *big.Int, error)

CollateralHealthCheck mocks base method

func (*MockDRSContract) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDRSContract) GetExchange

func (m *MockDRSContract) GetExchange(opts *bind.CallOpts, assetCode string) (string, [32]byte, *big.Int, error)

GetExchange mocks base method

func (*MockDRSContract) MintFromCollateralAmount

func (m *MockDRSContract) MintFromCollateralAmount(opts *bind.TransactOpts, netCollateralAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromCollateralAmount mocks base method

func (*MockDRSContract) MintFromStableCreditAmount

func (m *MockDRSContract) MintFromStableCreditAmount(opts *bind.TransactOpts, mintAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromStableCreditAmount mocks base method

func (*MockDRSContract) Rebalance

func (m *MockDRSContract) Rebalance(opts *bind.TransactOpts, assetCode string) (*types.Transaction, error)

Rebalance mocks base method

func (*MockDRSContract) Redeem

func (m *MockDRSContract) Redeem(opts *bind.TransactOpts, stableCreditAmount *big.Int, assetCode string) (*types.Transaction, error)

Redeem mocks base method

func (*MockDRSContract) Setup

func (m *MockDRSContract) Setup(opts *bind.TransactOpts, collateralAssetCode, peggedCurrency [32]byte, assetCode string, peggedValue *big.Int) (*types.Transaction, error)

Setup mocks base method

type MockDRSContractMockRecorder

type MockDRSContractMockRecorder struct {
	// contains filtered or unexported fields
}

MockDRSContractMockRecorder is the mock recorder for MockDRSContract

func (*MockDRSContractMockRecorder) CollateralHealthCheck

func (mr *MockDRSContractMockRecorder) CollateralHealthCheck(opts, assetCode interface{}) *gomock.Call

CollateralHealthCheck indicates an expected call of CollateralHealthCheck

func (*MockDRSContractMockRecorder) GetExchange

func (mr *MockDRSContractMockRecorder) GetExchange(opts, assetCode interface{}) *gomock.Call

GetExchange indicates an expected call of GetExchange

func (*MockDRSContractMockRecorder) MintFromCollateralAmount

func (mr *MockDRSContractMockRecorder) MintFromCollateralAmount(opts, netCollateralAmount, assetCode interface{}) *gomock.Call

MintFromCollateralAmount indicates an expected call of MintFromCollateralAmount

func (*MockDRSContractMockRecorder) MintFromStableCreditAmount

func (mr *MockDRSContractMockRecorder) MintFromStableCreditAmount(opts, mintAmount, assetCode interface{}) *gomock.Call

MintFromStableCreditAmount indicates an expected call of MintFromStableCreditAmount

func (*MockDRSContractMockRecorder) Rebalance

func (mr *MockDRSContractMockRecorder) Rebalance(opts, assetCode interface{}) *gomock.Call

Rebalance indicates an expected call of Rebalance

func (*MockDRSContractMockRecorder) Redeem

func (mr *MockDRSContractMockRecorder) Redeem(opts, stableCreditAmount, assetCode interface{}) *gomock.Call

Redeem indicates an expected call of Redeem

func (*MockDRSContractMockRecorder) Setup

func (mr *MockDRSContractMockRecorder) Setup(opts, collateralAssetCode, peggedCurrency, assetCode, peggedValue interface{}) *gomock.Call

Setup indicates an expected call of Setup

type MockHeartContract

type MockHeartContract struct {
	// contains filtered or unexported fields
}

MockHeartContract is a mock of HeartContract interface

func NewMockHeartContract

func NewMockHeartContract(ctrl *gomock.Controller) *MockHeartContract

NewMockHeartContract creates a new mock instance

func (*MockHeartContract) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockHeartContract) GetNextStableCredit

func (m *MockHeartContract) GetNextStableCredit(opts *bind.CallOpts, stableCreditId [32]byte) (common.Address, error)

GetNextStableCredit mocks base method

func (*MockHeartContract) GetRecentStableCredit

func (m *MockHeartContract) GetRecentStableCredit(opts *bind.CallOpts) (common.Address, error)

GetRecentStableCredit mocks base method

func (*MockHeartContract) GetStableCreditCount

func (m *MockHeartContract) GetStableCreditCount(opts *bind.CallOpts) (uint8, error)

GetStableCreditCount mocks base method

func (*MockHeartContract) IsGovernor

func (m *MockHeartContract) IsGovernor(opts *bind.CallOpts, addr common.Address) (bool, error)

IsGovernor mocks base method

func (*MockHeartContract) IsTrustedPartner

func (m *MockHeartContract) IsTrustedPartner(opts *bind.CallOpts, addr common.Address) (bool, error)

IsTrustedPartner mocks base method

func (*MockHeartContract) SetGovernor

func (m *MockHeartContract) SetGovernor(opts *bind.TransactOpts, address common.Address) (*types.Transaction, error)

SetGovernor mocks base method

func (*MockHeartContract) SetTrustedPartner

func (m *MockHeartContract) SetTrustedPartner(opts *bind.TransactOpts, address common.Address) (*types.Transaction, error)

SetTrustedPartner mocks base method

type MockHeartContractMockRecorder

type MockHeartContractMockRecorder struct {
	// contains filtered or unexported fields
}

MockHeartContractMockRecorder is the mock recorder for MockHeartContract

func (*MockHeartContractMockRecorder) GetNextStableCredit

func (mr *MockHeartContractMockRecorder) GetNextStableCredit(opts, stableCreditId interface{}) *gomock.Call

GetNextStableCredit indicates an expected call of GetNextStableCredit

func (*MockHeartContractMockRecorder) GetRecentStableCredit

func (mr *MockHeartContractMockRecorder) GetRecentStableCredit(opts interface{}) *gomock.Call

GetRecentStableCredit indicates an expected call of GetRecentStableCredit

func (*MockHeartContractMockRecorder) GetStableCreditCount

func (mr *MockHeartContractMockRecorder) GetStableCreditCount(opts interface{}) *gomock.Call

GetStableCreditCount indicates an expected call of GetStableCreditCount

func (*MockHeartContractMockRecorder) IsGovernor

func (mr *MockHeartContractMockRecorder) IsGovernor(opts, addr interface{}) *gomock.Call

IsGovernor indicates an expected call of IsGovernor

func (*MockHeartContractMockRecorder) IsTrustedPartner

func (mr *MockHeartContractMockRecorder) IsTrustedPartner(opts, addr interface{}) *gomock.Call

IsTrustedPartner indicates an expected call of IsTrustedPartner

func (*MockHeartContractMockRecorder) SetGovernor

func (mr *MockHeartContractMockRecorder) SetGovernor(opts, address interface{}) *gomock.Call

SetGovernor indicates an expected call of SetGovernor

func (*MockHeartContractMockRecorder) SetTrustedPartner

func (mr *MockHeartContractMockRecorder) SetTrustedPartner(opts, address interface{}) *gomock.Call

SetTrustedPartner indicates an expected call of SetTrustedPartner

type MockStableCreditContract

type MockStableCreditContract struct {
	// contains filtered or unexported fields
}

MockStableCreditContract is a mock of StableCreditContract interface

func NewMockStableCreditContract

func NewMockStableCreditContract(ctrl *gomock.Controller) *MockStableCreditContract

NewMockStableCreditContract creates a new mock instance

func (*MockStableCreditContract) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStableCreditContract) StableCreditAssetCode

func (m *MockStableCreditContract) StableCreditAssetCode(opts *bind.CallOpts) (string, error)

StableCreditAssetCode mocks base method

type MockStableCreditContractMockRecorder

type MockStableCreditContractMockRecorder struct {
	// contains filtered or unexported fields
}

MockStableCreditContractMockRecorder is the mock recorder for MockStableCreditContract

func (*MockStableCreditContractMockRecorder) StableCreditAssetCode

func (mr *MockStableCreditContractMockRecorder) StableCreditAssetCode(opts interface{}) *gomock.Call

StableCreditAssetCode indicates an expected call of StableCreditAssetCode

type MockTxHelper

type MockTxHelper struct {
	// contains filtered or unexported fields
}

MockTxHelper is a mock of TxHelper interface

func NewMockTxHelper

func NewMockTxHelper(ctrl *gomock.Controller) *MockTxHelper

NewMockTxHelper creates a new mock instance

func (*MockTxHelper) ConfirmTx

func (m *MockTxHelper) ConfirmTx(ctx context.Context, tx *types.Transaction, from common.Address) (*types.Receipt, error)

ConfirmTx mocks base method

func (*MockTxHelper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTxHelper) ExtractMintEvent

func (m *MockTxHelper) ExtractMintEvent(eventName string, log *types.Log) (*vabi.DigitalReserveSystemMint, error)

ExtractMintEvent mocks base method

func (*MockTxHelper) ExtractRebalanceEvent

func (m *MockTxHelper) ExtractRebalanceEvent(eventName string, log *types.Log) (*vabi.DigitalReserveSystemRebalance, error)

ExtractRebalanceEvent mocks base method

func (*MockTxHelper) ExtractRedeemEvent

func (m *MockTxHelper) ExtractRedeemEvent(eventName string, log *types.Log) (*vabi.DigitalReserveSystemRedeem, error)

ExtractRedeemEvent mocks base method

func (*MockTxHelper) ExtractSetupEvent

func (m *MockTxHelper) ExtractSetupEvent(eventName string, log *types.Log) (*vabi.DigitalReserveSystemSetup, error)

ExtractSetupEvent mocks base method

func (*MockTxHelper) StableCreditAssetCode

func (m *MockTxHelper) StableCreditAssetCode(addr common.Address) (*string, *[32]byte, error)

StableCreditAssetCode mocks base method

type MockTxHelperMockRecorder

type MockTxHelperMockRecorder struct {
	// contains filtered or unexported fields
}

MockTxHelperMockRecorder is the mock recorder for MockTxHelper

func (*MockTxHelperMockRecorder) ConfirmTx

func (mr *MockTxHelperMockRecorder) ConfirmTx(ctx, tx, from interface{}) *gomock.Call

ConfirmTx indicates an expected call of ConfirmTx

func (*MockTxHelperMockRecorder) ExtractMintEvent

func (mr *MockTxHelperMockRecorder) ExtractMintEvent(eventName, log interface{}) *gomock.Call

ExtractMintEvent indicates an expected call of ExtractMintEvent

func (*MockTxHelperMockRecorder) ExtractRebalanceEvent

func (mr *MockTxHelperMockRecorder) ExtractRebalanceEvent(eventName, log interface{}) *gomock.Call

ExtractRebalanceEvent indicates an expected call of ExtractRebalanceEvent

func (*MockTxHelperMockRecorder) ExtractRedeemEvent

func (mr *MockTxHelperMockRecorder) ExtractRedeemEvent(eventName, log interface{}) *gomock.Call

ExtractRedeemEvent indicates an expected call of ExtractRedeemEvent

func (*MockTxHelperMockRecorder) ExtractSetupEvent

func (mr *MockTxHelperMockRecorder) ExtractSetupEvent(eventName, log interface{}) *gomock.Call

ExtractSetupEvent indicates an expected call of ExtractSetupEvent

func (*MockTxHelperMockRecorder) StableCreditAssetCode

func (mr *MockTxHelperMockRecorder) StableCreditAssetCode(addr interface{}) *gomock.Call

StableCreditAssetCode indicates an expected call of StableCreditAssetCode

Jump to

Keyboard shortcuts

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