mocks

package
v0.93.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAptosRpcClient

type MockAptosRpcClient struct {
	mock.Mock
}

MockAptosRpcClient is an autogenerated mock type for the AptosRpcClient type

func NewMockAptosRpcClient

func NewMockAptosRpcClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAptosRpcClient

NewMockAptosRpcClient creates a new instance of MockAptosRpcClient. 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 (*MockAptosRpcClient) Account

func (_mock *MockAptosRpcClient) Account(address aptos.AccountAddress, ledgerVersion ...uint64) (aptos.AccountInfo, error)

Account provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) AccountAPTBalance

func (_mock *MockAptosRpcClient) AccountAPTBalance(address aptos.AccountAddress, ledgerVersion ...uint64) (uint64, error)

AccountAPTBalance provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) AccountModule

func (_mock *MockAptosRpcClient) AccountModule(address aptos.AccountAddress, moduleName string, ledgerVersion ...uint64) (*api.MoveBytecode, error)

AccountModule provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) AccountResource

func (_mock *MockAptosRpcClient) AccountResource(address aptos.AccountAddress, resourceType string, ledgerVersion ...uint64) (map[string]any, error)

AccountResource provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) AccountResources

func (_mock *MockAptosRpcClient) AccountResources(address aptos.AccountAddress, ledgerVersion ...uint64) ([]aptos.AccountResourceInfo, error)

AccountResources provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) AccountResourcesBCS

func (_mock *MockAptosRpcClient) AccountResourcesBCS(address aptos.AccountAddress, ledgerVersion ...uint64) ([]aptos.AccountResourceRecord, error)

AccountResourcesBCS provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) AccountTransactions

func (_mock *MockAptosRpcClient) AccountTransactions(address aptos.AccountAddress, start *uint64, limit *uint64) ([]*api.CommittedTransaction, error)

AccountTransactions provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) BatchSubmitTransaction

func (_mock *MockAptosRpcClient) BatchSubmitTransaction(signedTxns []*aptos.SignedTransaction) (*api.BatchSubmitTransactionResponse, error)

BatchSubmitTransaction provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) BlockByHeight

func (_mock *MockAptosRpcClient) BlockByHeight(blockHeight uint64, withTransactions bool) (*api.Block, error)

BlockByHeight provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) BlockByVersion

func (_mock *MockAptosRpcClient) BlockByVersion(ledgerVersion uint64, withTransactions bool) (*api.Block, error)

BlockByVersion provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) BuildSignAndSubmitTransaction

func (_mock *MockAptosRpcClient) BuildSignAndSubmitTransaction(sender aptos.TransactionSigner, payload aptos.TransactionPayload, options ...any) (*api.SubmitTransactionResponse, error)

BuildSignAndSubmitTransaction provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) BuildTransaction

func (_mock *MockAptosRpcClient) BuildTransaction(sender aptos.AccountAddress, payload aptos.TransactionPayload, options ...any) (*aptos.RawTransaction, error)

BuildTransaction provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) BuildTransactionMultiAgent

func (_mock *MockAptosRpcClient) BuildTransactionMultiAgent(sender aptos.AccountAddress, payload aptos.TransactionPayload, options ...any) (*aptos.RawTransactionWithData, error)

BuildTransactionMultiAgent provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) EXPECT

func (*MockAptosRpcClient) EntryFunctionWithArgs

func (_mock *MockAptosRpcClient) EntryFunctionWithArgs(moduleAddress aptos.AccountAddress, moduleName string, functionName string, typeArgs []any, args []any, options ...any) (*aptos.EntryFunction, error)

EntryFunctionWithArgs provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) EstimateGasPrice

func (_mock *MockAptosRpcClient) EstimateGasPrice() (aptos.EstimateGasInfo, error)

EstimateGasPrice provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) EventsByCreationNumber

func (_mock *MockAptosRpcClient) EventsByCreationNumber(account aptos.AccountAddress, creationNumber string, start *uint64, limit *uint64) ([]*api.Event, error)

EventsByCreationNumber provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) EventsByHandle

func (_mock *MockAptosRpcClient) EventsByHandle(account aptos.AccountAddress, eventHandle string, fieldName string, start *uint64, limit *uint64) ([]*api.Event, error)

EventsByHandle provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) GetChainId

func (_mock *MockAptosRpcClient) GetChainId() (uint8, error)

GetChainId provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) Info

func (_mock *MockAptosRpcClient) Info() (aptos.NodeInfo, error)

Info provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) NodeAPIHealthCheck

func (_mock *MockAptosRpcClient) NodeAPIHealthCheck(durationSecs ...uint64) (api.HealthCheckResponse, error)

NodeAPIHealthCheck provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) PollForTransaction

func (_mock *MockAptosRpcClient) PollForTransaction(hash string, options ...any) (*api.UserTransaction, error)

PollForTransaction provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) PollForTransactions

func (_mock *MockAptosRpcClient) PollForTransactions(txnHashes []string, options ...any) error

PollForTransactions provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) RemoveHeader

func (_mock *MockAptosRpcClient) RemoveHeader(key string)

RemoveHeader provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) SetHeader

func (_mock *MockAptosRpcClient) SetHeader(key string, value string)

SetHeader provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) SetTimeout

func (_mock *MockAptosRpcClient) SetTimeout(timeout time.Duration)

SetTimeout provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) SimulateTransaction

func (_mock *MockAptosRpcClient) SimulateTransaction(rawTxn *aptos.RawTransaction, sender aptos.TransactionSigner, options ...any) ([]*api.UserTransaction, error)

SimulateTransaction provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) SimulateTransactionMultiAgent

func (_mock *MockAptosRpcClient) SimulateTransactionMultiAgent(rawTxn *aptos.RawTransactionWithData, sender aptos.TransactionSigner, options ...any) ([]*api.UserTransaction, error)

SimulateTransactionMultiAgent provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) SubmitTransaction

func (_mock *MockAptosRpcClient) SubmitTransaction(signedTransaction *aptos.SignedTransaction) (*api.SubmitTransactionResponse, error)

SubmitTransaction provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) TransactionByHash

func (_mock *MockAptosRpcClient) TransactionByHash(txnHash string) (*api.Transaction, error)

TransactionByHash provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) TransactionByVersion

func (_mock *MockAptosRpcClient) TransactionByVersion(version uint64) (*api.CommittedTransaction, error)

TransactionByVersion provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) Transactions

func (_mock *MockAptosRpcClient) Transactions(start *uint64, limit *uint64) ([]*api.CommittedTransaction, error)

Transactions provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) View

func (_mock *MockAptosRpcClient) View(payload *aptos.ViewPayload, ledgerVersion ...uint64) ([]any, error)

View provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) WaitForTransaction

func (_mock *MockAptosRpcClient) WaitForTransaction(txnHash string, options ...any) (*api.UserTransaction, error)

WaitForTransaction provides a mock function for the type MockAptosRpcClient

func (*MockAptosRpcClient) WaitTransactionByHash

func (_mock *MockAptosRpcClient) WaitTransactionByHash(txnHash string) (*api.Transaction, error)

WaitTransactionByHash provides a mock function for the type MockAptosRpcClient

type MockAptosRpcClient_AccountAPTBalance_Call

type MockAptosRpcClient_AccountAPTBalance_Call struct {
	*mock.Call
}

MockAptosRpcClient_AccountAPTBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountAPTBalance'

func (*MockAptosRpcClient_AccountAPTBalance_Call) Return

func (*MockAptosRpcClient_AccountAPTBalance_Call) Run

func (*MockAptosRpcClient_AccountAPTBalance_Call) RunAndReturn

type MockAptosRpcClient_AccountModule_Call

type MockAptosRpcClient_AccountModule_Call struct {
	*mock.Call
}

MockAptosRpcClient_AccountModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountModule'

func (*MockAptosRpcClient_AccountModule_Call) Return

func (*MockAptosRpcClient_AccountModule_Call) Run

func (_c *MockAptosRpcClient_AccountModule_Call) Run(run func(address aptos.AccountAddress, moduleName string, ledgerVersion ...uint64)) *MockAptosRpcClient_AccountModule_Call

func (*MockAptosRpcClient_AccountModule_Call) RunAndReturn

func (_c *MockAptosRpcClient_AccountModule_Call) RunAndReturn(run func(address aptos.AccountAddress, moduleName string, ledgerVersion ...uint64) (*api.MoveBytecode, error)) *MockAptosRpcClient_AccountModule_Call

type MockAptosRpcClient_AccountResource_Call

type MockAptosRpcClient_AccountResource_Call struct {
	*mock.Call
}

MockAptosRpcClient_AccountResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountResource'

func (*MockAptosRpcClient_AccountResource_Call) Return

func (*MockAptosRpcClient_AccountResource_Call) Run

func (_c *MockAptosRpcClient_AccountResource_Call) Run(run func(address aptos.AccountAddress, resourceType string, ledgerVersion ...uint64)) *MockAptosRpcClient_AccountResource_Call

func (*MockAptosRpcClient_AccountResource_Call) RunAndReturn

func (_c *MockAptosRpcClient_AccountResource_Call) RunAndReturn(run func(address aptos.AccountAddress, resourceType string, ledgerVersion ...uint64) (map[string]any, error)) *MockAptosRpcClient_AccountResource_Call

type MockAptosRpcClient_AccountResourcesBCS_Call

type MockAptosRpcClient_AccountResourcesBCS_Call struct {
	*mock.Call
}

MockAptosRpcClient_AccountResourcesBCS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountResourcesBCS'

func (*MockAptosRpcClient_AccountResourcesBCS_Call) Return

func (*MockAptosRpcClient_AccountResourcesBCS_Call) Run

func (*MockAptosRpcClient_AccountResourcesBCS_Call) RunAndReturn

type MockAptosRpcClient_AccountResources_Call

type MockAptosRpcClient_AccountResources_Call struct {
	*mock.Call
}

MockAptosRpcClient_AccountResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountResources'

func (*MockAptosRpcClient_AccountResources_Call) Return

func (*MockAptosRpcClient_AccountResources_Call) Run

func (*MockAptosRpcClient_AccountResources_Call) RunAndReturn

type MockAptosRpcClient_AccountTransactions_Call

type MockAptosRpcClient_AccountTransactions_Call struct {
	*mock.Call
}

MockAptosRpcClient_AccountTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountTransactions'

func (*MockAptosRpcClient_AccountTransactions_Call) Return

func (*MockAptosRpcClient_AccountTransactions_Call) Run

func (*MockAptosRpcClient_AccountTransactions_Call) RunAndReturn

type MockAptosRpcClient_Account_Call

type MockAptosRpcClient_Account_Call struct {
	*mock.Call
}

MockAptosRpcClient_Account_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Account'

func (*MockAptosRpcClient_Account_Call) Return

func (*MockAptosRpcClient_Account_Call) Run

func (_c *MockAptosRpcClient_Account_Call) Run(run func(address aptos.AccountAddress, ledgerVersion ...uint64)) *MockAptosRpcClient_Account_Call

func (*MockAptosRpcClient_Account_Call) RunAndReturn

func (_c *MockAptosRpcClient_Account_Call) RunAndReturn(run func(address aptos.AccountAddress, ledgerVersion ...uint64) (aptos.AccountInfo, error)) *MockAptosRpcClient_Account_Call

type MockAptosRpcClient_BatchSubmitTransaction_Call

type MockAptosRpcClient_BatchSubmitTransaction_Call struct {
	*mock.Call
}

MockAptosRpcClient_BatchSubmitTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchSubmitTransaction'

func (*MockAptosRpcClient_BatchSubmitTransaction_Call) Return

func (*MockAptosRpcClient_BatchSubmitTransaction_Call) Run

func (*MockAptosRpcClient_BatchSubmitTransaction_Call) RunAndReturn

type MockAptosRpcClient_BlockByHeight_Call

type MockAptosRpcClient_BlockByHeight_Call struct {
	*mock.Call
}

MockAptosRpcClient_BlockByHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHeight'

func (*MockAptosRpcClient_BlockByHeight_Call) Return

func (*MockAptosRpcClient_BlockByHeight_Call) Run

func (_c *MockAptosRpcClient_BlockByHeight_Call) Run(run func(blockHeight uint64, withTransactions bool)) *MockAptosRpcClient_BlockByHeight_Call

func (*MockAptosRpcClient_BlockByHeight_Call) RunAndReturn

func (_c *MockAptosRpcClient_BlockByHeight_Call) RunAndReturn(run func(blockHeight uint64, withTransactions bool) (*api.Block, error)) *MockAptosRpcClient_BlockByHeight_Call

type MockAptosRpcClient_BlockByVersion_Call

type MockAptosRpcClient_BlockByVersion_Call struct {
	*mock.Call
}

MockAptosRpcClient_BlockByVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByVersion'

func (*MockAptosRpcClient_BlockByVersion_Call) Return

func (*MockAptosRpcClient_BlockByVersion_Call) Run

func (_c *MockAptosRpcClient_BlockByVersion_Call) Run(run func(ledgerVersion uint64, withTransactions bool)) *MockAptosRpcClient_BlockByVersion_Call

func (*MockAptosRpcClient_BlockByVersion_Call) RunAndReturn

func (_c *MockAptosRpcClient_BlockByVersion_Call) RunAndReturn(run func(ledgerVersion uint64, withTransactions bool) (*api.Block, error)) *MockAptosRpcClient_BlockByVersion_Call

type MockAptosRpcClient_BuildSignAndSubmitTransaction_Call

type MockAptosRpcClient_BuildSignAndSubmitTransaction_Call struct {
	*mock.Call
}

MockAptosRpcClient_BuildSignAndSubmitTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildSignAndSubmitTransaction'

func (*MockAptosRpcClient_BuildSignAndSubmitTransaction_Call) Return

func (*MockAptosRpcClient_BuildSignAndSubmitTransaction_Call) Run

func (*MockAptosRpcClient_BuildSignAndSubmitTransaction_Call) RunAndReturn

type MockAptosRpcClient_BuildTransactionMultiAgent_Call

type MockAptosRpcClient_BuildTransactionMultiAgent_Call struct {
	*mock.Call
}

MockAptosRpcClient_BuildTransactionMultiAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildTransactionMultiAgent'

func (*MockAptosRpcClient_BuildTransactionMultiAgent_Call) Return

func (*MockAptosRpcClient_BuildTransactionMultiAgent_Call) Run

func (*MockAptosRpcClient_BuildTransactionMultiAgent_Call) RunAndReturn

type MockAptosRpcClient_BuildTransaction_Call

type MockAptosRpcClient_BuildTransaction_Call struct {
	*mock.Call
}

MockAptosRpcClient_BuildTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildTransaction'

func (*MockAptosRpcClient_BuildTransaction_Call) Return

func (*MockAptosRpcClient_BuildTransaction_Call) Run

func (*MockAptosRpcClient_BuildTransaction_Call) RunAndReturn

type MockAptosRpcClient_EntryFunctionWithArgs_Call

type MockAptosRpcClient_EntryFunctionWithArgs_Call struct {
	*mock.Call
}

MockAptosRpcClient_EntryFunctionWithArgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EntryFunctionWithArgs'

func (*MockAptosRpcClient_EntryFunctionWithArgs_Call) Return

func (*MockAptosRpcClient_EntryFunctionWithArgs_Call) Run

func (_c *MockAptosRpcClient_EntryFunctionWithArgs_Call) Run(run func(moduleAddress aptos.AccountAddress, moduleName string, functionName string, typeArgs []any, args []any, options ...any)) *MockAptosRpcClient_EntryFunctionWithArgs_Call

func (*MockAptosRpcClient_EntryFunctionWithArgs_Call) RunAndReturn

func (_c *MockAptosRpcClient_EntryFunctionWithArgs_Call) RunAndReturn(run func(moduleAddress aptos.AccountAddress, moduleName string, functionName string, typeArgs []any, args []any, options ...any) (*aptos.EntryFunction, error)) *MockAptosRpcClient_EntryFunctionWithArgs_Call

type MockAptosRpcClient_EstimateGasPrice_Call

type MockAptosRpcClient_EstimateGasPrice_Call struct {
	*mock.Call
}

MockAptosRpcClient_EstimateGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGasPrice'

func (*MockAptosRpcClient_EstimateGasPrice_Call) Return

func (*MockAptosRpcClient_EstimateGasPrice_Call) Run

func (*MockAptosRpcClient_EstimateGasPrice_Call) RunAndReturn

type MockAptosRpcClient_EventsByCreationNumber_Call

type MockAptosRpcClient_EventsByCreationNumber_Call struct {
	*mock.Call
}

MockAptosRpcClient_EventsByCreationNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EventsByCreationNumber'

func (*MockAptosRpcClient_EventsByCreationNumber_Call) Return

func (*MockAptosRpcClient_EventsByCreationNumber_Call) Run

func (*MockAptosRpcClient_EventsByCreationNumber_Call) RunAndReturn

type MockAptosRpcClient_EventsByHandle_Call

type MockAptosRpcClient_EventsByHandle_Call struct {
	*mock.Call
}

MockAptosRpcClient_EventsByHandle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EventsByHandle'

func (*MockAptosRpcClient_EventsByHandle_Call) Return

func (*MockAptosRpcClient_EventsByHandle_Call) Run

func (_c *MockAptosRpcClient_EventsByHandle_Call) Run(run func(account aptos.AccountAddress, eventHandle string, fieldName string, start *uint64, limit *uint64)) *MockAptosRpcClient_EventsByHandle_Call

func (*MockAptosRpcClient_EventsByHandle_Call) RunAndReturn

func (_c *MockAptosRpcClient_EventsByHandle_Call) RunAndReturn(run func(account aptos.AccountAddress, eventHandle string, fieldName string, start *uint64, limit *uint64) ([]*api.Event, error)) *MockAptosRpcClient_EventsByHandle_Call

type MockAptosRpcClient_Expecter

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

func (*MockAptosRpcClient_Expecter) Account

func (_e *MockAptosRpcClient_Expecter) Account(address interface{}, ledgerVersion ...interface{}) *MockAptosRpcClient_Account_Call

Account is a helper method to define mock.On call

  • address aptos.AccountAddress
  • ledgerVersion ...uint64

func (*MockAptosRpcClient_Expecter) AccountAPTBalance

func (_e *MockAptosRpcClient_Expecter) AccountAPTBalance(address interface{}, ledgerVersion ...interface{}) *MockAptosRpcClient_AccountAPTBalance_Call

AccountAPTBalance is a helper method to define mock.On call

  • address aptos.AccountAddress
  • ledgerVersion ...uint64

func (*MockAptosRpcClient_Expecter) AccountModule

func (_e *MockAptosRpcClient_Expecter) AccountModule(address interface{}, moduleName interface{}, ledgerVersion ...interface{}) *MockAptosRpcClient_AccountModule_Call

AccountModule is a helper method to define mock.On call

  • address aptos.AccountAddress
  • moduleName string
  • ledgerVersion ...uint64

func (*MockAptosRpcClient_Expecter) AccountResource

func (_e *MockAptosRpcClient_Expecter) AccountResource(address interface{}, resourceType interface{}, ledgerVersion ...interface{}) *MockAptosRpcClient_AccountResource_Call

AccountResource is a helper method to define mock.On call

  • address aptos.AccountAddress
  • resourceType string
  • ledgerVersion ...uint64

func (*MockAptosRpcClient_Expecter) AccountResources

func (_e *MockAptosRpcClient_Expecter) AccountResources(address interface{}, ledgerVersion ...interface{}) *MockAptosRpcClient_AccountResources_Call

AccountResources is a helper method to define mock.On call

  • address aptos.AccountAddress
  • ledgerVersion ...uint64

func (*MockAptosRpcClient_Expecter) AccountResourcesBCS

func (_e *MockAptosRpcClient_Expecter) AccountResourcesBCS(address interface{}, ledgerVersion ...interface{}) *MockAptosRpcClient_AccountResourcesBCS_Call

AccountResourcesBCS is a helper method to define mock.On call

  • address aptos.AccountAddress
  • ledgerVersion ...uint64

func (*MockAptosRpcClient_Expecter) AccountTransactions

func (_e *MockAptosRpcClient_Expecter) AccountTransactions(address interface{}, start interface{}, limit interface{}) *MockAptosRpcClient_AccountTransactions_Call

AccountTransactions is a helper method to define mock.On call

  • address aptos.AccountAddress
  • start *uint64
  • limit *uint64

func (*MockAptosRpcClient_Expecter) BatchSubmitTransaction

func (_e *MockAptosRpcClient_Expecter) BatchSubmitTransaction(signedTxns interface{}) *MockAptosRpcClient_BatchSubmitTransaction_Call

BatchSubmitTransaction is a helper method to define mock.On call

  • signedTxns []*aptos.SignedTransaction

func (*MockAptosRpcClient_Expecter) BlockByHeight

func (_e *MockAptosRpcClient_Expecter) BlockByHeight(blockHeight interface{}, withTransactions interface{}) *MockAptosRpcClient_BlockByHeight_Call

BlockByHeight is a helper method to define mock.On call

  • blockHeight uint64
  • withTransactions bool

func (*MockAptosRpcClient_Expecter) BlockByVersion

func (_e *MockAptosRpcClient_Expecter) BlockByVersion(ledgerVersion interface{}, withTransactions interface{}) *MockAptosRpcClient_BlockByVersion_Call

BlockByVersion is a helper method to define mock.On call

  • ledgerVersion uint64
  • withTransactions bool

func (*MockAptosRpcClient_Expecter) BuildSignAndSubmitTransaction

func (_e *MockAptosRpcClient_Expecter) BuildSignAndSubmitTransaction(sender interface{}, payload interface{}, options ...interface{}) *MockAptosRpcClient_BuildSignAndSubmitTransaction_Call

BuildSignAndSubmitTransaction is a helper method to define mock.On call

  • sender aptos.TransactionSigner
  • payload aptos.TransactionPayload
  • options ...any

func (*MockAptosRpcClient_Expecter) BuildTransaction

func (_e *MockAptosRpcClient_Expecter) BuildTransaction(sender interface{}, payload interface{}, options ...interface{}) *MockAptosRpcClient_BuildTransaction_Call

BuildTransaction is a helper method to define mock.On call

  • sender aptos.AccountAddress
  • payload aptos.TransactionPayload
  • options ...any

func (*MockAptosRpcClient_Expecter) BuildTransactionMultiAgent

func (_e *MockAptosRpcClient_Expecter) BuildTransactionMultiAgent(sender interface{}, payload interface{}, options ...interface{}) *MockAptosRpcClient_BuildTransactionMultiAgent_Call

BuildTransactionMultiAgent is a helper method to define mock.On call

  • sender aptos.AccountAddress
  • payload aptos.TransactionPayload
  • options ...any

func (*MockAptosRpcClient_Expecter) EntryFunctionWithArgs

func (_e *MockAptosRpcClient_Expecter) EntryFunctionWithArgs(moduleAddress interface{}, moduleName interface{}, functionName interface{}, typeArgs interface{}, args interface{}, options ...interface{}) *MockAptosRpcClient_EntryFunctionWithArgs_Call

EntryFunctionWithArgs is a helper method to define mock.On call

  • moduleAddress aptos.AccountAddress
  • moduleName string
  • functionName string
  • typeArgs []any
  • args []any
  • options ...any

func (*MockAptosRpcClient_Expecter) EstimateGasPrice

EstimateGasPrice is a helper method to define mock.On call

func (*MockAptosRpcClient_Expecter) EventsByCreationNumber

func (_e *MockAptosRpcClient_Expecter) EventsByCreationNumber(account interface{}, creationNumber interface{}, start interface{}, limit interface{}) *MockAptosRpcClient_EventsByCreationNumber_Call

EventsByCreationNumber is a helper method to define mock.On call

  • account aptos.AccountAddress
  • creationNumber string
  • start *uint64
  • limit *uint64

func (*MockAptosRpcClient_Expecter) EventsByHandle

func (_e *MockAptosRpcClient_Expecter) EventsByHandle(account interface{}, eventHandle interface{}, fieldName interface{}, start interface{}, limit interface{}) *MockAptosRpcClient_EventsByHandle_Call

EventsByHandle is a helper method to define mock.On call

  • account aptos.AccountAddress
  • eventHandle string
  • fieldName string
  • start *uint64
  • limit *uint64

func (*MockAptosRpcClient_Expecter) GetChainId

GetChainId is a helper method to define mock.On call

func (*MockAptosRpcClient_Expecter) Info

Info is a helper method to define mock.On call

func (*MockAptosRpcClient_Expecter) NodeAPIHealthCheck

func (_e *MockAptosRpcClient_Expecter) NodeAPIHealthCheck(durationSecs ...interface{}) *MockAptosRpcClient_NodeAPIHealthCheck_Call

NodeAPIHealthCheck is a helper method to define mock.On call

  • durationSecs ...uint64

func (*MockAptosRpcClient_Expecter) PollForTransaction

func (_e *MockAptosRpcClient_Expecter) PollForTransaction(hash interface{}, options ...interface{}) *MockAptosRpcClient_PollForTransaction_Call

PollForTransaction is a helper method to define mock.On call

  • hash string
  • options ...any

func (*MockAptosRpcClient_Expecter) PollForTransactions

func (_e *MockAptosRpcClient_Expecter) PollForTransactions(txnHashes interface{}, options ...interface{}) *MockAptosRpcClient_PollForTransactions_Call

PollForTransactions is a helper method to define mock.On call

  • txnHashes []string
  • options ...any

func (*MockAptosRpcClient_Expecter) RemoveHeader

func (_e *MockAptosRpcClient_Expecter) RemoveHeader(key interface{}) *MockAptosRpcClient_RemoveHeader_Call

RemoveHeader is a helper method to define mock.On call

  • key string

func (*MockAptosRpcClient_Expecter) SetHeader

func (_e *MockAptosRpcClient_Expecter) SetHeader(key interface{}, value interface{}) *MockAptosRpcClient_SetHeader_Call

SetHeader is a helper method to define mock.On call

  • key string
  • value string

func (*MockAptosRpcClient_Expecter) SetTimeout

func (_e *MockAptosRpcClient_Expecter) SetTimeout(timeout interface{}) *MockAptosRpcClient_SetTimeout_Call

SetTimeout is a helper method to define mock.On call

  • timeout time.Duration

func (*MockAptosRpcClient_Expecter) SimulateTransaction

func (_e *MockAptosRpcClient_Expecter) SimulateTransaction(rawTxn interface{}, sender interface{}, options ...interface{}) *MockAptosRpcClient_SimulateTransaction_Call

SimulateTransaction is a helper method to define mock.On call

  • rawTxn *aptos.RawTransaction
  • sender aptos.TransactionSigner
  • options ...any

func (*MockAptosRpcClient_Expecter) SimulateTransactionMultiAgent

func (_e *MockAptosRpcClient_Expecter) SimulateTransactionMultiAgent(rawTxn interface{}, sender interface{}, options ...interface{}) *MockAptosRpcClient_SimulateTransactionMultiAgent_Call

SimulateTransactionMultiAgent is a helper method to define mock.On call

  • rawTxn *aptos.RawTransactionWithData
  • sender aptos.TransactionSigner
  • options ...any

func (*MockAptosRpcClient_Expecter) SubmitTransaction

func (_e *MockAptosRpcClient_Expecter) SubmitTransaction(signedTransaction interface{}) *MockAptosRpcClient_SubmitTransaction_Call

SubmitTransaction is a helper method to define mock.On call

  • signedTransaction *aptos.SignedTransaction

func (*MockAptosRpcClient_Expecter) TransactionByHash

func (_e *MockAptosRpcClient_Expecter) TransactionByHash(txnHash interface{}) *MockAptosRpcClient_TransactionByHash_Call

TransactionByHash is a helper method to define mock.On call

  • txnHash string

func (*MockAptosRpcClient_Expecter) TransactionByVersion

func (_e *MockAptosRpcClient_Expecter) TransactionByVersion(version interface{}) *MockAptosRpcClient_TransactionByVersion_Call

TransactionByVersion is a helper method to define mock.On call

  • version uint64

func (*MockAptosRpcClient_Expecter) Transactions

func (_e *MockAptosRpcClient_Expecter) Transactions(start interface{}, limit interface{}) *MockAptosRpcClient_Transactions_Call

Transactions is a helper method to define mock.On call

  • start *uint64
  • limit *uint64

func (*MockAptosRpcClient_Expecter) View

func (_e *MockAptosRpcClient_Expecter) View(payload interface{}, ledgerVersion ...interface{}) *MockAptosRpcClient_View_Call

View is a helper method to define mock.On call

  • payload *aptos.ViewPayload
  • ledgerVersion ...uint64

func (*MockAptosRpcClient_Expecter) WaitForTransaction

func (_e *MockAptosRpcClient_Expecter) WaitForTransaction(txnHash interface{}, options ...interface{}) *MockAptosRpcClient_WaitForTransaction_Call

WaitForTransaction is a helper method to define mock.On call

  • txnHash string
  • options ...any

func (*MockAptosRpcClient_Expecter) WaitTransactionByHash

func (_e *MockAptosRpcClient_Expecter) WaitTransactionByHash(txnHash interface{}) *MockAptosRpcClient_WaitTransactionByHash_Call

WaitTransactionByHash is a helper method to define mock.On call

  • txnHash string

type MockAptosRpcClient_GetChainId_Call

type MockAptosRpcClient_GetChainId_Call struct {
	*mock.Call
}

MockAptosRpcClient_GetChainId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChainId'

func (*MockAptosRpcClient_GetChainId_Call) Return

func (*MockAptosRpcClient_GetChainId_Call) Run

func (*MockAptosRpcClient_GetChainId_Call) RunAndReturn

type MockAptosRpcClient_Info_Call

type MockAptosRpcClient_Info_Call struct {
	*mock.Call
}

MockAptosRpcClient_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*MockAptosRpcClient_Info_Call) Return

func (*MockAptosRpcClient_Info_Call) Run

func (*MockAptosRpcClient_Info_Call) RunAndReturn

type MockAptosRpcClient_NodeAPIHealthCheck_Call

type MockAptosRpcClient_NodeAPIHealthCheck_Call struct {
	*mock.Call
}

MockAptosRpcClient_NodeAPIHealthCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeAPIHealthCheck'

func (*MockAptosRpcClient_NodeAPIHealthCheck_Call) Return

func (*MockAptosRpcClient_NodeAPIHealthCheck_Call) Run

func (*MockAptosRpcClient_NodeAPIHealthCheck_Call) RunAndReturn

type MockAptosRpcClient_PollForTransaction_Call

type MockAptosRpcClient_PollForTransaction_Call struct {
	*mock.Call
}

MockAptosRpcClient_PollForTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PollForTransaction'

func (*MockAptosRpcClient_PollForTransaction_Call) Return

func (*MockAptosRpcClient_PollForTransaction_Call) Run

func (*MockAptosRpcClient_PollForTransaction_Call) RunAndReturn

type MockAptosRpcClient_PollForTransactions_Call

type MockAptosRpcClient_PollForTransactions_Call struct {
	*mock.Call
}

MockAptosRpcClient_PollForTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PollForTransactions'

func (*MockAptosRpcClient_PollForTransactions_Call) Return

func (*MockAptosRpcClient_PollForTransactions_Call) Run

func (*MockAptosRpcClient_PollForTransactions_Call) RunAndReturn

type MockAptosRpcClient_RemoveHeader_Call

type MockAptosRpcClient_RemoveHeader_Call struct {
	*mock.Call
}

MockAptosRpcClient_RemoveHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveHeader'

func (*MockAptosRpcClient_RemoveHeader_Call) Return

func (*MockAptosRpcClient_RemoveHeader_Call) Run

func (*MockAptosRpcClient_RemoveHeader_Call) RunAndReturn

type MockAptosRpcClient_SetHeader_Call

type MockAptosRpcClient_SetHeader_Call struct {
	*mock.Call
}

MockAptosRpcClient_SetHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeader'

func (*MockAptosRpcClient_SetHeader_Call) Return

func (*MockAptosRpcClient_SetHeader_Call) Run

func (*MockAptosRpcClient_SetHeader_Call) RunAndReturn

func (_c *MockAptosRpcClient_SetHeader_Call) RunAndReturn(run func(key string, value string)) *MockAptosRpcClient_SetHeader_Call

type MockAptosRpcClient_SetTimeout_Call

type MockAptosRpcClient_SetTimeout_Call struct {
	*mock.Call
}

MockAptosRpcClient_SetTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTimeout'

func (*MockAptosRpcClient_SetTimeout_Call) Return

func (*MockAptosRpcClient_SetTimeout_Call) Run

func (*MockAptosRpcClient_SetTimeout_Call) RunAndReturn

type MockAptosRpcClient_SimulateTransactionMultiAgent_Call

type MockAptosRpcClient_SimulateTransactionMultiAgent_Call struct {
	*mock.Call
}

MockAptosRpcClient_SimulateTransactionMultiAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimulateTransactionMultiAgent'

func (*MockAptosRpcClient_SimulateTransactionMultiAgent_Call) Return

func (*MockAptosRpcClient_SimulateTransactionMultiAgent_Call) Run

func (*MockAptosRpcClient_SimulateTransactionMultiAgent_Call) RunAndReturn

type MockAptosRpcClient_SimulateTransaction_Call

type MockAptosRpcClient_SimulateTransaction_Call struct {
	*mock.Call
}

MockAptosRpcClient_SimulateTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimulateTransaction'

func (*MockAptosRpcClient_SimulateTransaction_Call) Return

func (*MockAptosRpcClient_SimulateTransaction_Call) Run

func (*MockAptosRpcClient_SimulateTransaction_Call) RunAndReturn

type MockAptosRpcClient_SubmitTransaction_Call

type MockAptosRpcClient_SubmitTransaction_Call struct {
	*mock.Call
}

MockAptosRpcClient_SubmitTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubmitTransaction'

func (*MockAptosRpcClient_SubmitTransaction_Call) Return

func (*MockAptosRpcClient_SubmitTransaction_Call) Run

func (*MockAptosRpcClient_SubmitTransaction_Call) RunAndReturn

type MockAptosRpcClient_TransactionByHash_Call

type MockAptosRpcClient_TransactionByHash_Call struct {
	*mock.Call
}

MockAptosRpcClient_TransactionByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionByHash'

func (*MockAptosRpcClient_TransactionByHash_Call) Return

func (*MockAptosRpcClient_TransactionByHash_Call) Run

func (*MockAptosRpcClient_TransactionByHash_Call) RunAndReturn

type MockAptosRpcClient_TransactionByVersion_Call

type MockAptosRpcClient_TransactionByVersion_Call struct {
	*mock.Call
}

MockAptosRpcClient_TransactionByVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionByVersion'

func (*MockAptosRpcClient_TransactionByVersion_Call) Return

func (*MockAptosRpcClient_TransactionByVersion_Call) Run

func (*MockAptosRpcClient_TransactionByVersion_Call) RunAndReturn

type MockAptosRpcClient_Transactions_Call

type MockAptosRpcClient_Transactions_Call struct {
	*mock.Call
}

MockAptosRpcClient_Transactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transactions'

func (*MockAptosRpcClient_Transactions_Call) Return

func (*MockAptosRpcClient_Transactions_Call) Run

func (*MockAptosRpcClient_Transactions_Call) RunAndReturn

type MockAptosRpcClient_View_Call

type MockAptosRpcClient_View_Call struct {
	*mock.Call
}

MockAptosRpcClient_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'

func (*MockAptosRpcClient_View_Call) Return

func (*MockAptosRpcClient_View_Call) Run

func (_c *MockAptosRpcClient_View_Call) Run(run func(payload *aptos.ViewPayload, ledgerVersion ...uint64)) *MockAptosRpcClient_View_Call

func (*MockAptosRpcClient_View_Call) RunAndReturn

func (_c *MockAptosRpcClient_View_Call) RunAndReturn(run func(payload *aptos.ViewPayload, ledgerVersion ...uint64) ([]any, error)) *MockAptosRpcClient_View_Call

type MockAptosRpcClient_WaitForTransaction_Call

type MockAptosRpcClient_WaitForTransaction_Call struct {
	*mock.Call
}

MockAptosRpcClient_WaitForTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitForTransaction'

func (*MockAptosRpcClient_WaitForTransaction_Call) Return

func (*MockAptosRpcClient_WaitForTransaction_Call) Run

func (*MockAptosRpcClient_WaitForTransaction_Call) RunAndReturn

type MockAptosRpcClient_WaitTransactionByHash_Call

type MockAptosRpcClient_WaitTransactionByHash_Call struct {
	*mock.Call
}

MockAptosRpcClient_WaitTransactionByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitTransactionByHash'

func (*MockAptosRpcClient_WaitTransactionByHash_Call) Return

func (*MockAptosRpcClient_WaitTransactionByHash_Call) Run

func (*MockAptosRpcClient_WaitTransactionByHash_Call) RunAndReturn

type MockTransactionSigner

type MockTransactionSigner struct {
	mock.Mock
}

MockTransactionSigner is an autogenerated mock type for the TransactionSigner type

func NewMockTransactionSigner

func NewMockTransactionSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTransactionSigner

NewMockTransactionSigner creates a new instance of MockTransactionSigner. 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 (*MockTransactionSigner) AccountAddress

func (_mock *MockTransactionSigner) AccountAddress() aptos.AccountAddress

AccountAddress provides a mock function for the type MockTransactionSigner

func (*MockTransactionSigner) AuthKey

AuthKey provides a mock function for the type MockTransactionSigner

func (*MockTransactionSigner) EXPECT

func (*MockTransactionSigner) PubKey

func (_mock *MockTransactionSigner) PubKey() crypto.PublicKey

PubKey provides a mock function for the type MockTransactionSigner

func (*MockTransactionSigner) Sign

Sign provides a mock function for the type MockTransactionSigner

func (*MockTransactionSigner) SignMessage

func (_mock *MockTransactionSigner) SignMessage(msg []byte) (crypto.Signature, error)

SignMessage provides a mock function for the type MockTransactionSigner

func (*MockTransactionSigner) SimulationAuthenticator

func (_mock *MockTransactionSigner) SimulationAuthenticator() *crypto.AccountAuthenticator

SimulationAuthenticator provides a mock function for the type MockTransactionSigner

type MockTransactionSigner_AccountAddress_Call

type MockTransactionSigner_AccountAddress_Call struct {
	*mock.Call
}

MockTransactionSigner_AccountAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountAddress'

func (*MockTransactionSigner_AccountAddress_Call) Return

func (*MockTransactionSigner_AccountAddress_Call) Run

func (*MockTransactionSigner_AccountAddress_Call) RunAndReturn

type MockTransactionSigner_AuthKey_Call

type MockTransactionSigner_AuthKey_Call struct {
	*mock.Call
}

MockTransactionSigner_AuthKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthKey'

func (*MockTransactionSigner_AuthKey_Call) Return

func (*MockTransactionSigner_AuthKey_Call) Run

func (*MockTransactionSigner_AuthKey_Call) RunAndReturn

type MockTransactionSigner_Expecter

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

func (*MockTransactionSigner_Expecter) AccountAddress

AccountAddress is a helper method to define mock.On call

func (*MockTransactionSigner_Expecter) AuthKey

AuthKey is a helper method to define mock.On call

func (*MockTransactionSigner_Expecter) PubKey

PubKey is a helper method to define mock.On call

func (*MockTransactionSigner_Expecter) Sign

Sign is a helper method to define mock.On call

  • msg []byte

func (*MockTransactionSigner_Expecter) SignMessage

SignMessage is a helper method to define mock.On call

  • msg []byte

func (*MockTransactionSigner_Expecter) SimulationAuthenticator

SimulationAuthenticator is a helper method to define mock.On call

type MockTransactionSigner_PubKey_Call

type MockTransactionSigner_PubKey_Call struct {
	*mock.Call
}

MockTransactionSigner_PubKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PubKey'

func (*MockTransactionSigner_PubKey_Call) Return

func (*MockTransactionSigner_PubKey_Call) Run

func (*MockTransactionSigner_PubKey_Call) RunAndReturn

type MockTransactionSigner_SignMessage_Call

type MockTransactionSigner_SignMessage_Call struct {
	*mock.Call
}

MockTransactionSigner_SignMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignMessage'

func (*MockTransactionSigner_SignMessage_Call) Return

func (*MockTransactionSigner_SignMessage_Call) Run

func (*MockTransactionSigner_SignMessage_Call) RunAndReturn

type MockTransactionSigner_Sign_Call

type MockTransactionSigner_Sign_Call struct {
	*mock.Call
}

MockTransactionSigner_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'

func (*MockTransactionSigner_Sign_Call) Return

func (*MockTransactionSigner_Sign_Call) Run

func (*MockTransactionSigner_Sign_Call) RunAndReturn

type MockTransactionSigner_SimulationAuthenticator_Call

type MockTransactionSigner_SimulationAuthenticator_Call struct {
	*mock.Call
}

MockTransactionSigner_SimulationAuthenticator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimulationAuthenticator'

func (*MockTransactionSigner_SimulationAuthenticator_Call) Return

func (*MockTransactionSigner_SimulationAuthenticator_Call) Run

func (*MockTransactionSigner_SimulationAuthenticator_Call) RunAndReturn

Jump to

Keyboard shortcuts

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