mocks

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedClient

type CombinedClient struct {
	mock.Mock
}

CombinedClient is an autogenerated mock type for the CombinedClient type

func NewCombinedClient

func NewCombinedClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CombinedClient

NewCombinedClient creates a new instance of CombinedClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CombinedClient) BroadcastTransaction

func (_m *CombinedClient) BroadcastTransaction(reqBody *common.Transaction) (*fullnode.BroadcastResponse, error)

BroadcastTransaction provides a mock function with given fields: reqBody

func (*CombinedClient) DeployContract

func (_m *CombinedClient) DeployContract(ownerAddress address.Address, contractName string, abiJson string, bytecode string, oeLimit int, curPercent int, feeLimit int, params []interface{}) (*fullnode.DeployContractResponse, error)

DeployContract provides a mock function with given fields: ownerAddress, contractName, abiJson, bytecode, oeLimit, curPercent, feeLimit, params

func (*CombinedClient) EstimateEnergy

func (_m *CombinedClient) EstimateEnergy(from address.Address, contractAddress address.Address, method string, params []interface{}, tAmount int64) (*soliditynode.EnergyEstimateResult, error)

EstimateEnergy provides a mock function with given fields: from, contractAddress, method, params, tAmount

func (*CombinedClient) FullNodeClient

func (_m *CombinedClient) FullNodeClient() *fullnode.Client

FullNodeClient provides a mock function with no fields

func (*CombinedClient) GetAccount

func (_m *CombinedClient) GetAccount(accountAddress address.Address) (*soliditynode.GetAccountResponse, error)

GetAccount provides a mock function with given fields: accountAddress

func (*CombinedClient) GetAccountFullNode

func (_m *CombinedClient) GetAccountFullNode(accountAddress address.Address) (*soliditynode.GetAccountResponse, error)

GetAccountFullNode provides a mock function with given fields: accountAddress

func (*CombinedClient) GetBlockByNum

func (_m *CombinedClient) GetBlockByNum(num int32) (*soliditynode.Block, error)

GetBlockByNum provides a mock function with given fields: num

func (*CombinedClient) GetBlockByNumFullNode

func (_m *CombinedClient) GetBlockByNumFullNode(num int32) (*soliditynode.Block, error)

GetBlockByNumFullNode provides a mock function with given fields: num

func (*CombinedClient) GetContract

GetContract provides a mock function with given fields: _a0

func (*CombinedClient) GetEnergyPrices

func (_m *CombinedClient) GetEnergyPrices() (*fullnode.EnergyPrices, error)

GetEnergyPrices provides a mock function with no fields

func (*CombinedClient) GetNowBlock

func (_m *CombinedClient) GetNowBlock() (*soliditynode.Block, error)

GetNowBlock provides a mock function with no fields

func (*CombinedClient) GetNowBlockFullNode

func (_m *CombinedClient) GetNowBlockFullNode() (*soliditynode.Block, error)

GetNowBlockFullNode provides a mock function with no fields

func (*CombinedClient) GetTransactionInfoById

func (_m *CombinedClient) GetTransactionInfoById(txhash string) (*soliditynode.TransactionInfo, error)

GetTransactionInfoById provides a mock function with given fields: txhash

func (*CombinedClient) GetTransactionInfoByIdFullNode

func (_m *CombinedClient) GetTransactionInfoByIdFullNode(txhash string) (*soliditynode.TransactionInfo, error)

GetTransactionInfoByIdFullNode provides a mock function with given fields: txhash

func (*CombinedClient) SolidityClient

func (_m *CombinedClient) SolidityClient() *soliditynode.Client

SolidityClient provides a mock function with no fields

func (*CombinedClient) Transfer

func (_m *CombinedClient) Transfer(fromAddress address.Address, toAddress address.Address, amount int64) (*common.Transaction, error)

Transfer provides a mock function with given fields: fromAddress, toAddress, amount

func (*CombinedClient) TriggerConstantContract

func (_m *CombinedClient) TriggerConstantContract(from address.Address, contractAddress address.Address, method string, params []interface{}) (*soliditynode.TriggerConstantContractResponse, error)

TriggerConstantContract provides a mock function with given fields: from, contractAddress, method, params

func (*CombinedClient) TriggerConstantContractFullNode

func (_m *CombinedClient) TriggerConstantContractFullNode(from address.Address, contractAddress address.Address, method string, params []interface{}) (*soliditynode.TriggerConstantContractResponse, error)

TriggerConstantContractFullNode provides a mock function with given fields: from, contractAddress, method, params

func (*CombinedClient) TriggerSmartContract

func (_m *CombinedClient) TriggerSmartContract(from address.Address, contractAddress address.Address, method string, params []interface{}, feeLimit int32, tAmount int64) (*fullnode.TriggerSmartContractResponse, error)

TriggerSmartContract provides a mock function with given fields: from, contractAddress, method, params, feeLimit, tAmount

type FullNodeClient

type FullNodeClient struct {
	mock.Mock
}

FullNodeClient is an autogenerated mock type for the FullNodeClient type

func NewFullNodeClient

func NewFullNodeClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *FullNodeClient

NewFullNodeClient creates a new instance of FullNodeClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FullNodeClient) BroadcastTransaction

func (_m *FullNodeClient) BroadcastTransaction(reqBody *common.Transaction) (*fullnode.BroadcastResponse, error)

BroadcastTransaction provides a mock function with given fields: reqBody

func (*FullNodeClient) DeployContract

func (_m *FullNodeClient) DeployContract(ownerAddress address.Address, contractName string, abiJson string, bytecode string, oeLimit int, curPercent int, feeLimit int, params []interface{}) (*fullnode.DeployContractResponse, error)

DeployContract provides a mock function with given fields: ownerAddress, contractName, abiJson, bytecode, oeLimit, curPercent, feeLimit, params

func (*FullNodeClient) EstimateEnergy

func (_m *FullNodeClient) EstimateEnergy(from address.Address, contractAddress address.Address, method string, params []interface{}, tAmount int64) (*soliditynode.EnergyEstimateResult, error)

EstimateEnergy provides a mock function with given fields: from, contractAddress, method, params, tAmount

func (*FullNodeClient) GetAccount

func (_m *FullNodeClient) GetAccount(accountAddress address.Address) (*soliditynode.GetAccountResponse, error)

GetAccount provides a mock function with given fields: accountAddress

func (*FullNodeClient) GetBlockByNum

func (_m *FullNodeClient) GetBlockByNum(num int32) (*soliditynode.Block, error)

GetBlockByNum provides a mock function with given fields: num

func (*FullNodeClient) GetContract

GetContract provides a mock function with given fields: _a0

func (*FullNodeClient) GetEnergyPrices

func (_m *FullNodeClient) GetEnergyPrices() (*fullnode.EnergyPrices, error)

GetEnergyPrices provides a mock function with no fields

func (*FullNodeClient) GetNowBlock

func (_m *FullNodeClient) GetNowBlock() (*soliditynode.Block, error)

GetNowBlock provides a mock function with no fields

func (*FullNodeClient) GetTransactionInfoById

func (_m *FullNodeClient) GetTransactionInfoById(txhash string) (*soliditynode.TransactionInfo, error)

GetTransactionInfoById provides a mock function with given fields: txhash

func (*FullNodeClient) Transfer

func (_m *FullNodeClient) Transfer(fromAddress address.Address, toAddress address.Address, amount int64) (*common.Transaction, error)

Transfer provides a mock function with given fields: fromAddress, toAddress, amount

func (*FullNodeClient) TriggerConstantContract

func (_m *FullNodeClient) TriggerConstantContract(from address.Address, contractAddress address.Address, method string, params []interface{}) (*soliditynode.TriggerConstantContractResponse, error)

TriggerConstantContract provides a mock function with given fields: from, contractAddress, method, params

func (*FullNodeClient) TriggerSmartContract

func (_m *FullNodeClient) TriggerSmartContract(from address.Address, contractAddress address.Address, method string, params []interface{}, feeLimit int32, tAmount int64) (*fullnode.TriggerSmartContractResponse, error)

TriggerSmartContract provides a mock function with given fields: from, contractAddress, method, params, feeLimit, tAmount

type OCR2Reader

type OCR2Reader struct {
	mock.Mock
}

OCR2Reader is an autogenerated mock type for the OCR2Reader type

func NewOCR2Reader

func NewOCR2Reader(t interface {
	mock.TestingT
	Cleanup(func())
}) *OCR2Reader

NewOCR2Reader creates a new instance of OCR2Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OCR2Reader) BaseReader

func (_m *OCR2Reader) BaseReader() reader.Reader

BaseReader provides a mock function with given fields:

func (*OCR2Reader) BillingDetails

func (_m *OCR2Reader) BillingDetails(_a0 context.Context, _a1 address.Address) (ocr2.BillingDetails, error)

BillingDetails provides a mock function with given fields: _a0, _a1

func (*OCR2Reader) ConfigFromEventAt

func (_m *OCR2Reader) ConfigFromEventAt(_a0 context.Context, _a1 address.Address, _a2 uint64) (ocr2.ContractConfig, error)

ConfigFromEventAt provides a mock function with given fields: _a0, _a1, _a2

func (*OCR2Reader) LatestConfigDetails

func (_m *OCR2Reader) LatestConfigDetails(_a0 context.Context, _a1 address.Address) (ocr2.ContractConfigDetails, error)

LatestConfigDetails provides a mock function with given fields: _a0, _a1

func (*OCR2Reader) LatestRoundData

func (_m *OCR2Reader) LatestRoundData(_a0 context.Context, _a1 address.Address) (ocr2.RoundData, error)

LatestRoundData provides a mock function with given fields: _a0, _a1

func (*OCR2Reader) LatestTransmissionDetails

func (_m *OCR2Reader) LatestTransmissionDetails(_a0 context.Context, _a1 address.Address) (ocr2.TransmissionDetails, error)

LatestTransmissionDetails provides a mock function with given fields: _a0, _a1

func (*OCR2Reader) LinkAvailableForPayment

func (_m *OCR2Reader) LinkAvailableForPayment(_a0 context.Context, _a1 address.Address) (*big.Int, error)

LinkAvailableForPayment provides a mock function with given fields: _a0, _a1

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Reader) BaseClient

func (_m *Reader) BaseClient() sdk.CombinedClient

BaseClient provides a mock function with no fields

func (*Reader) CallContract

func (_m *Reader) CallContract(contractAddress address.Address, method string, params []interface{}) (map[string]interface{}, error)

CallContract provides a mock function with given fields: contractAddress, method, params

func (*Reader) CallContractFullNode

func (_m *Reader) CallContractFullNode(contractAddress address.Address, method string, params []interface{}) (map[string]interface{}, error)

CallContractFullNode provides a mock function with given fields: contractAddress, method, params

func (*Reader) GetEventsFromBlock

func (_m *Reader) GetEventsFromBlock(contractAddress address.Address, eventName string, blockNum uint64) ([]map[string]interface{}, error)

GetEventsFromBlock provides a mock function with given fields: contractAddress, eventName, blockNum

func (*Reader) LatestBlockHeight

func (_m *Reader) LatestBlockHeight() (uint64, error)

LatestBlockHeight provides a mock function with no fields

Jump to

Keyboard shortcuts

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