Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAccountInterface
- func (m *MockAccountInterface) BuildAndEstimateDeployAccountTxn(ctx context.Context, salt, classHash *felt.Felt, ...) (*rpc.BroadcastDeployAccountTxnV3, *felt.Felt, error)
- func (m *MockAccountInterface) BuildAndSendDeclareTxn(ctx context.Context, casmClass *contracts.CasmClass, ...) (*rpc.AddDeclareTransactionResponse, error)
- func (m *MockAccountInterface) BuildAndSendInvokeTxn(ctx context.Context, functionCalls []rpc.InvokeFunctionCall, ...) (*rpc.AddInvokeTransactionResponse, error)
- func (m *MockAccountInterface) EXPECT() *MockAccountInterfaceMockRecorder
- func (m *MockAccountInterface) Nonce(ctx context.Context) (*felt.Felt, error)
- func (m *MockAccountInterface) SendTransaction(ctx context.Context, txn rpc.BroadcastTxn) (*rpc.TransactionResponse, error)
- func (m *MockAccountInterface) Sign(ctx context.Context, msg *felt.Felt) ([]*felt.Felt, error)
- func (m *MockAccountInterface) SignDeclareTransaction(ctx context.Context, tx rpc.DeclareTxnType) error
- func (m *MockAccountInterface) SignDeployAccountTransaction(ctx context.Context, tx rpc.DeployAccountType, precomputeAddress *felt.Felt) error
- func (m *MockAccountInterface) SignInvokeTransaction(ctx context.Context, tx rpc.InvokeTxnType) error
- func (m *MockAccountInterface) TransactionHashDeclare(tx rpc.DeclareTxnType) (*felt.Felt, error)
- func (m *MockAccountInterface) TransactionHashDeployAccount(tx rpc.DeployAccountType, contractAddress *felt.Felt) (*felt.Felt, error)
- func (m *MockAccountInterface) TransactionHashInvoke(invokeTxn rpc.InvokeTxnType) (*felt.Felt, error)
- func (m *MockAccountInterface) WaitForTransactionReceipt(ctx context.Context, transactionHash *felt.Felt, pollInterval time.Duration) (*rpc.TransactionReceiptWithBlockInfo, error)
- type MockAccountInterfaceMockRecorder
- func (mr *MockAccountInterfaceMockRecorder) BuildAndEstimateDeployAccountTxn(ctx, salt, classHash, constructorCalldata, multiplier any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) BuildAndSendDeclareTxn(ctx, casmClass, contractClass, multiplier any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) BuildAndSendInvokeTxn(ctx, functionCalls, multiplier any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) Nonce(ctx any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) SendTransaction(ctx, txn any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) Sign(ctx, msg any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) SignDeclareTransaction(ctx, tx any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) SignDeployAccountTransaction(ctx, tx, precomputeAddress any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) SignInvokeTransaction(ctx, tx any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) TransactionHashDeclare(tx any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) TransactionHashDeployAccount(tx, contractAddress any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) TransactionHashInvoke(invokeTxn any) *gomock.Call
- func (mr *MockAccountInterfaceMockRecorder) WaitForTransactionReceipt(ctx, transactionHash, pollInterval any) *gomock.Call
- type MockRpcProvider
- func (m *MockRpcProvider) AddDeclareTransaction(ctx context.Context, declareTransaction *rpc.BroadcastDeclareTxnV3) (*rpc.AddDeclareTransactionResponse, error)
- func (m *MockRpcProvider) AddDeployAccountTransaction(ctx context.Context, deployAccountTransaction *rpc.BroadcastDeployAccountTxnV3) (*rpc.AddDeployAccountTransactionResponse, error)
- func (m *MockRpcProvider) AddInvokeTransaction(ctx context.Context, invokeTxn *rpc.BroadcastInvokeTxnV3) (*rpc.AddInvokeTransactionResponse, error)
- func (m *MockRpcProvider) BlockHashAndNumber(ctx context.Context) (*rpc.BlockHashAndNumberOutput, error)
- func (m *MockRpcProvider) BlockNumber(ctx context.Context) (uint64, error)
- func (m *MockRpcProvider) BlockTransactionCount(ctx context.Context, blockID rpc.BlockID) (uint64, error)
- func (m *MockRpcProvider) BlockWithReceipts(ctx context.Context, blockID rpc.BlockID) (any, error)
- func (m *MockRpcProvider) BlockWithTxHashes(ctx context.Context, blockID rpc.BlockID) (any, error)
- func (m *MockRpcProvider) BlockWithTxs(ctx context.Context, blockID rpc.BlockID) (any, error)
- func (m *MockRpcProvider) Call(ctx context.Context, call rpc.FunctionCall, block rpc.BlockID) ([]*felt.Felt, error)
- func (m *MockRpcProvider) ChainID(ctx context.Context) (string, error)
- func (m *MockRpcProvider) Class(ctx context.Context, blockID rpc.BlockID, classHash *felt.Felt) (rpc.ClassOutput, error)
- func (m *MockRpcProvider) ClassAt(ctx context.Context, blockID rpc.BlockID, contractAddress *felt.Felt) (rpc.ClassOutput, error)
- func (m *MockRpcProvider) ClassHashAt(ctx context.Context, blockID rpc.BlockID, contractAddress *felt.Felt) (*felt.Felt, error)
- func (m *MockRpcProvider) CompiledCasm(ctx context.Context, classHash *felt.Felt) (*contracts.CasmClass, error)
- func (m *MockRpcProvider) EXPECT() *MockRpcProviderMockRecorder
- func (m *MockRpcProvider) EstimateFee(ctx context.Context, requests []rpc.BroadcastTxn, ...) ([]rpc.FeeEstimation, error)
- func (m *MockRpcProvider) EstimateMessageFee(ctx context.Context, msg rpc.MsgFromL1, blockID rpc.BlockID) (*rpc.FeeEstimation, error)
- func (m *MockRpcProvider) Events(ctx context.Context, input rpc.EventsInput) (*rpc.EventChunk, error)
- func (m *MockRpcProvider) GetMessagesStatus(ctx context.Context, transactionHash rpc.NumAsHex) ([]rpc.MessageStatus, error)
- func (m *MockRpcProvider) GetStorageProof(ctx context.Context, storageProofInput rpc.StorageProofInput) (*rpc.StorageProofResult, error)
- func (m *MockRpcProvider) GetTransactionStatus(ctx context.Context, transactionHash *felt.Felt) (*rpc.TxnStatusResult, error)
- func (m *MockRpcProvider) Nonce(ctx context.Context, blockID rpc.BlockID, contractAddress *felt.Felt) (*felt.Felt, error)
- func (m *MockRpcProvider) SimulateTransactions(ctx context.Context, blockID rpc.BlockID, txns []rpc.BroadcastTxn, ...) ([]rpc.SimulatedTransaction, error)
- func (m *MockRpcProvider) SpecVersion(ctx context.Context) (string, error)
- func (m *MockRpcProvider) StateUpdate(ctx context.Context, blockID rpc.BlockID) (*rpc.StateUpdateOutput, error)
- func (m *MockRpcProvider) StorageAt(ctx context.Context, contractAddress *felt.Felt, key string, ...) (string, error)
- func (m *MockRpcProvider) Syncing(ctx context.Context) (*rpc.SyncStatus, error)
- func (m *MockRpcProvider) TraceBlockTransactions(ctx context.Context, blockID rpc.BlockID) ([]rpc.Trace, error)
- func (m *MockRpcProvider) TraceTransaction(ctx context.Context, transactionHash *felt.Felt) (rpc.TxnTrace, error)
- func (m *MockRpcProvider) TransactionByBlockIdAndIndex(ctx context.Context, blockID rpc.BlockID, index uint64) (*rpc.BlockTransaction, error)
- func (m *MockRpcProvider) TransactionByHash(ctx context.Context, hash *felt.Felt) (*rpc.BlockTransaction, error)
- func (m *MockRpcProvider) TransactionReceipt(ctx context.Context, transactionHash *felt.Felt) (*rpc.TransactionReceiptWithBlockInfo, error)
- type MockRpcProviderMockRecorder
- func (mr *MockRpcProviderMockRecorder) AddDeclareTransaction(ctx, declareTransaction any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) AddDeployAccountTransaction(ctx, deployAccountTransaction any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) AddInvokeTransaction(ctx, invokeTxn any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) BlockHashAndNumber(ctx any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) BlockNumber(ctx any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) BlockTransactionCount(ctx, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) BlockWithReceipts(ctx, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) BlockWithTxHashes(ctx, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) BlockWithTxs(ctx, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) Call(ctx, call, block any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) ChainID(ctx any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) Class(ctx, blockID, classHash any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) ClassAt(ctx, blockID, contractAddress any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) ClassHashAt(ctx, blockID, contractAddress any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) CompiledCasm(ctx, classHash any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) EstimateFee(ctx, requests, simulationFlags, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) EstimateMessageFee(ctx, msg, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) Events(ctx, input any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) GetMessagesStatus(ctx, transactionHash any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) GetStorageProof(ctx, storageProofInput any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) GetTransactionStatus(ctx, transactionHash any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) Nonce(ctx, blockID, contractAddress any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) SimulateTransactions(ctx, blockID, txns, simulationFlags any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) SpecVersion(ctx any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) StateUpdate(ctx, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) StorageAt(ctx, contractAddress, key, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) Syncing(ctx any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) TraceBlockTransactions(ctx, blockID any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) TraceTransaction(ctx, transactionHash any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) TransactionByBlockIdAndIndex(ctx, blockID, index any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) TransactionByHash(ctx, hash any) *gomock.Call
- func (mr *MockRpcProviderMockRecorder) TransactionReceipt(ctx, transactionHash any) *gomock.Call
- type MockWebsocketProvider
- func (m *MockWebsocketProvider) EXPECT() *MockWebsocketProviderMockRecorder
- func (m *MockWebsocketProvider) SubscribeEvents(ctx context.Context, events chan<- *rpc.EmittedEvent, ...) (*client.ClientSubscription, error)
- func (m *MockWebsocketProvider) SubscribeNewHeads(ctx context.Context, headers chan<- *rpc.BlockHeader, blockID rpc.BlockID) (*client.ClientSubscription, error)
- func (m *MockWebsocketProvider) SubscribePendingTransactions(ctx context.Context, pendingTxns chan<- *rpc.PendingTxn, ...) (*client.ClientSubscription, error)
- func (m *MockWebsocketProvider) SubscribeTransactionStatus(ctx context.Context, newStatus chan<- *rpc.NewTxnStatus, ...) (*client.ClientSubscription, error)
- type MockWebsocketProviderMockRecorder
- func (mr *MockWebsocketProviderMockRecorder) SubscribeEvents(ctx, events, options any) *gomock.Call
- func (mr *MockWebsocketProviderMockRecorder) SubscribeNewHeads(ctx, headers, blockID any) *gomock.Call
- func (mr *MockWebsocketProviderMockRecorder) SubscribePendingTransactions(ctx, pendingTxns, options any) *gomock.Call
- func (mr *MockWebsocketProviderMockRecorder) SubscribeTransactionStatus(ctx, newStatus, transactionHash any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccountInterface ¶
type MockAccountInterface struct {
// contains filtered or unexported fields
}
MockAccountInterface is a mock of AccountInterface interface.
func NewMockAccountInterface ¶
func NewMockAccountInterface(ctrl *gomock.Controller) *MockAccountInterface
NewMockAccountInterface creates a new mock instance.
func (*MockAccountInterface) BuildAndEstimateDeployAccountTxn ¶ added in v0.8.0
func (m *MockAccountInterface) BuildAndEstimateDeployAccountTxn(ctx context.Context, salt, classHash *felt.Felt, constructorCalldata []*felt.Felt, multiplier float64) (*rpc.BroadcastDeployAccountTxnV3, *felt.Felt, error)
BuildAndEstimateDeployAccountTxn mocks base method.
func (*MockAccountInterface) BuildAndSendDeclareTxn ¶ added in v0.8.0
func (m *MockAccountInterface) BuildAndSendDeclareTxn(ctx context.Context, casmClass *contracts.CasmClass, contractClass *contracts.ContractClass, multiplier float64) (*rpc.AddDeclareTransactionResponse, error)
BuildAndSendDeclareTxn mocks base method.
func (*MockAccountInterface) BuildAndSendInvokeTxn ¶ added in v0.8.0
func (m *MockAccountInterface) BuildAndSendInvokeTxn(ctx context.Context, functionCalls []rpc.InvokeFunctionCall, multiplier float64) (*rpc.AddInvokeTransactionResponse, error)
BuildAndSendInvokeTxn mocks base method.
func (*MockAccountInterface) EXPECT ¶
func (m *MockAccountInterface) EXPECT() *MockAccountInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountInterface) SendTransaction ¶ added in v0.8.0
func (m *MockAccountInterface) SendTransaction(ctx context.Context, txn rpc.BroadcastTxn) (*rpc.TransactionResponse, error)
SendTransaction mocks base method.
func (*MockAccountInterface) SignDeclareTransaction ¶ added in v0.5.0
func (m *MockAccountInterface) SignDeclareTransaction(ctx context.Context, tx rpc.DeclareTxnType) error
SignDeclareTransaction mocks base method.
func (*MockAccountInterface) SignDeployAccountTransaction ¶ added in v0.5.0
func (m *MockAccountInterface) SignDeployAccountTransaction(ctx context.Context, tx rpc.DeployAccountType, precomputeAddress *felt.Felt) error
SignDeployAccountTransaction mocks base method.
func (*MockAccountInterface) SignInvokeTransaction ¶ added in v0.5.0
func (m *MockAccountInterface) SignInvokeTransaction(ctx context.Context, tx rpc.InvokeTxnType) error
SignInvokeTransaction mocks base method.
func (*MockAccountInterface) TransactionHashDeclare ¶ added in v0.5.0
func (m *MockAccountInterface) TransactionHashDeclare(tx rpc.DeclareTxnType) (*felt.Felt, error)
TransactionHashDeclare mocks base method.
func (*MockAccountInterface) TransactionHashDeployAccount ¶ added in v0.5.0
func (m *MockAccountInterface) TransactionHashDeployAccount(tx rpc.DeployAccountType, contractAddress *felt.Felt) (*felt.Felt, error)
TransactionHashDeployAccount mocks base method.
func (*MockAccountInterface) TransactionHashInvoke ¶ added in v0.5.0
func (m *MockAccountInterface) TransactionHashInvoke(invokeTxn rpc.InvokeTxnType) (*felt.Felt, error)
TransactionHashInvoke mocks base method.
func (*MockAccountInterface) WaitForTransactionReceipt ¶ added in v0.5.0
func (m *MockAccountInterface) WaitForTransactionReceipt(ctx context.Context, transactionHash *felt.Felt, pollInterval time.Duration) (*rpc.TransactionReceiptWithBlockInfo, error)
WaitForTransactionReceipt mocks base method.
type MockAccountInterfaceMockRecorder ¶
type MockAccountInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountInterfaceMockRecorder is the mock recorder for MockAccountInterface.
func (*MockAccountInterfaceMockRecorder) BuildAndEstimateDeployAccountTxn ¶ added in v0.8.0
func (mr *MockAccountInterfaceMockRecorder) BuildAndEstimateDeployAccountTxn(ctx, salt, classHash, constructorCalldata, multiplier any) *gomock.Call
BuildAndEstimateDeployAccountTxn indicates an expected call of BuildAndEstimateDeployAccountTxn.
func (*MockAccountInterfaceMockRecorder) BuildAndSendDeclareTxn ¶ added in v0.8.0
func (mr *MockAccountInterfaceMockRecorder) BuildAndSendDeclareTxn(ctx, casmClass, contractClass, multiplier any) *gomock.Call
BuildAndSendDeclareTxn indicates an expected call of BuildAndSendDeclareTxn.
func (*MockAccountInterfaceMockRecorder) BuildAndSendInvokeTxn ¶ added in v0.8.0
func (mr *MockAccountInterfaceMockRecorder) BuildAndSendInvokeTxn(ctx, functionCalls, multiplier any) *gomock.Call
BuildAndSendInvokeTxn indicates an expected call of BuildAndSendInvokeTxn.
func (*MockAccountInterfaceMockRecorder) Nonce ¶ added in v0.8.0
func (mr *MockAccountInterfaceMockRecorder) Nonce(ctx any) *gomock.Call
Nonce indicates an expected call of Nonce.
func (*MockAccountInterfaceMockRecorder) SendTransaction ¶ added in v0.8.0
func (mr *MockAccountInterfaceMockRecorder) SendTransaction(ctx, txn any) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockAccountInterfaceMockRecorder) Sign ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) Sign(ctx, msg any) *gomock.Call
Sign indicates an expected call of Sign.
func (*MockAccountInterfaceMockRecorder) SignDeclareTransaction ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) SignDeclareTransaction(ctx, tx any) *gomock.Call
SignDeclareTransaction indicates an expected call of SignDeclareTransaction.
func (*MockAccountInterfaceMockRecorder) SignDeployAccountTransaction ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) SignDeployAccountTransaction(ctx, tx, precomputeAddress any) *gomock.Call
SignDeployAccountTransaction indicates an expected call of SignDeployAccountTransaction.
func (*MockAccountInterfaceMockRecorder) SignInvokeTransaction ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) SignInvokeTransaction(ctx, tx any) *gomock.Call
SignInvokeTransaction indicates an expected call of SignInvokeTransaction.
func (*MockAccountInterfaceMockRecorder) TransactionHashDeclare ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) TransactionHashDeclare(tx any) *gomock.Call
TransactionHashDeclare indicates an expected call of TransactionHashDeclare.
func (*MockAccountInterfaceMockRecorder) TransactionHashDeployAccount ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) TransactionHashDeployAccount(tx, contractAddress any) *gomock.Call
TransactionHashDeployAccount indicates an expected call of TransactionHashDeployAccount.
func (*MockAccountInterfaceMockRecorder) TransactionHashInvoke ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) TransactionHashInvoke(invokeTxn any) *gomock.Call
TransactionHashInvoke indicates an expected call of TransactionHashInvoke.
func (*MockAccountInterfaceMockRecorder) WaitForTransactionReceipt ¶ added in v0.5.0
func (mr *MockAccountInterfaceMockRecorder) WaitForTransactionReceipt(ctx, transactionHash, pollInterval any) *gomock.Call
WaitForTransactionReceipt indicates an expected call of WaitForTransactionReceipt.
type MockRpcProvider ¶
type MockRpcProvider struct {
// contains filtered or unexported fields
}
MockRpcProvider is a mock of RpcProvider interface.
func NewMockRpcProvider ¶
func NewMockRpcProvider(ctrl *gomock.Controller) *MockRpcProvider
NewMockRpcProvider creates a new mock instance.
func (*MockRpcProvider) AddDeclareTransaction ¶
func (m *MockRpcProvider) AddDeclareTransaction(ctx context.Context, declareTransaction *rpc.BroadcastDeclareTxnV3) (*rpc.AddDeclareTransactionResponse, error)
AddDeclareTransaction mocks base method.
func (*MockRpcProvider) AddDeployAccountTransaction ¶
func (m *MockRpcProvider) AddDeployAccountTransaction(ctx context.Context, deployAccountTransaction *rpc.BroadcastDeployAccountTxnV3) (*rpc.AddDeployAccountTransactionResponse, error)
AddDeployAccountTransaction mocks base method.
func (*MockRpcProvider) AddInvokeTransaction ¶
func (m *MockRpcProvider) AddInvokeTransaction(ctx context.Context, invokeTxn *rpc.BroadcastInvokeTxnV3) (*rpc.AddInvokeTransactionResponse, error)
AddInvokeTransaction mocks base method.
func (*MockRpcProvider) BlockHashAndNumber ¶
func (m *MockRpcProvider) BlockHashAndNumber(ctx context.Context) (*rpc.BlockHashAndNumberOutput, error)
BlockHashAndNumber mocks base method.
func (*MockRpcProvider) BlockNumber ¶
func (m *MockRpcProvider) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber mocks base method.
func (*MockRpcProvider) BlockTransactionCount ¶
func (m *MockRpcProvider) BlockTransactionCount(ctx context.Context, blockID rpc.BlockID) (uint64, error)
BlockTransactionCount mocks base method.
func (*MockRpcProvider) BlockWithReceipts ¶ added in v0.7.0
BlockWithReceipts mocks base method.
func (*MockRpcProvider) BlockWithTxHashes ¶
BlockWithTxHashes mocks base method.
func (*MockRpcProvider) BlockWithTxs ¶
BlockWithTxs mocks base method.
func (*MockRpcProvider) Call ¶
func (m *MockRpcProvider) Call(ctx context.Context, call rpc.FunctionCall, block rpc.BlockID) ([]*felt.Felt, error)
Call mocks base method.
func (*MockRpcProvider) ChainID ¶
func (m *MockRpcProvider) ChainID(ctx context.Context) (string, error)
ChainID mocks base method.
func (*MockRpcProvider) Class ¶
func (m *MockRpcProvider) Class(ctx context.Context, blockID rpc.BlockID, classHash *felt.Felt) (rpc.ClassOutput, error)
Class mocks base method.
func (*MockRpcProvider) ClassAt ¶
func (m *MockRpcProvider) ClassAt(ctx context.Context, blockID rpc.BlockID, contractAddress *felt.Felt) (rpc.ClassOutput, error)
ClassAt mocks base method.
func (*MockRpcProvider) ClassHashAt ¶
func (m *MockRpcProvider) ClassHashAt(ctx context.Context, blockID rpc.BlockID, contractAddress *felt.Felt) (*felt.Felt, error)
ClassHashAt mocks base method.
func (*MockRpcProvider) CompiledCasm ¶ added in v0.8.0
func (m *MockRpcProvider) CompiledCasm(ctx context.Context, classHash *felt.Felt) (*contracts.CasmClass, error)
CompiledCasm mocks base method.
func (*MockRpcProvider) EXPECT ¶
func (m *MockRpcProvider) EXPECT() *MockRpcProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRpcProvider) EstimateFee ¶
func (m *MockRpcProvider) EstimateFee(ctx context.Context, requests []rpc.BroadcastTxn, simulationFlags []rpc.SimulationFlag, blockID rpc.BlockID) ([]rpc.FeeEstimation, error)
EstimateFee mocks base method.
func (*MockRpcProvider) EstimateMessageFee ¶
func (m *MockRpcProvider) EstimateMessageFee(ctx context.Context, msg rpc.MsgFromL1, blockID rpc.BlockID) (*rpc.FeeEstimation, error)
EstimateMessageFee mocks base method.
func (*MockRpcProvider) Events ¶
func (m *MockRpcProvider) Events(ctx context.Context, input rpc.EventsInput) (*rpc.EventChunk, error)
Events mocks base method.
func (*MockRpcProvider) GetMessagesStatus ¶ added in v0.8.0
func (m *MockRpcProvider) GetMessagesStatus(ctx context.Context, transactionHash rpc.NumAsHex) ([]rpc.MessageStatus, error)
GetMessagesStatus mocks base method.
func (*MockRpcProvider) GetStorageProof ¶ added in v0.8.0
func (m *MockRpcProvider) GetStorageProof(ctx context.Context, storageProofInput rpc.StorageProofInput) (*rpc.StorageProofResult, error)
GetStorageProof mocks base method.
func (*MockRpcProvider) GetTransactionStatus ¶ added in v0.5.0
func (m *MockRpcProvider) GetTransactionStatus(ctx context.Context, transactionHash *felt.Felt) (*rpc.TxnStatusResult, error)
GetTransactionStatus mocks base method.
func (*MockRpcProvider) Nonce ¶
func (m *MockRpcProvider) Nonce(ctx context.Context, blockID rpc.BlockID, contractAddress *felt.Felt) (*felt.Felt, error)
Nonce mocks base method.
func (*MockRpcProvider) SimulateTransactions ¶
func (m *MockRpcProvider) SimulateTransactions(ctx context.Context, blockID rpc.BlockID, txns []rpc.BroadcastTxn, simulationFlags []rpc.SimulationFlag) ([]rpc.SimulatedTransaction, error)
SimulateTransactions mocks base method.
func (*MockRpcProvider) SpecVersion ¶ added in v0.5.0
func (m *MockRpcProvider) SpecVersion(ctx context.Context) (string, error)
SpecVersion mocks base method.
func (*MockRpcProvider) StateUpdate ¶
func (m *MockRpcProvider) StateUpdate(ctx context.Context, blockID rpc.BlockID) (*rpc.StateUpdateOutput, error)
StateUpdate mocks base method.
func (*MockRpcProvider) StorageAt ¶
func (m *MockRpcProvider) StorageAt(ctx context.Context, contractAddress *felt.Felt, key string, blockID rpc.BlockID) (string, error)
StorageAt mocks base method.
func (*MockRpcProvider) Syncing ¶
func (m *MockRpcProvider) Syncing(ctx context.Context) (*rpc.SyncStatus, error)
Syncing mocks base method.
func (*MockRpcProvider) TraceBlockTransactions ¶
func (m *MockRpcProvider) TraceBlockTransactions(ctx context.Context, blockID rpc.BlockID) ([]rpc.Trace, error)
TraceBlockTransactions mocks base method.
func (*MockRpcProvider) TraceTransaction ¶ added in v0.5.0
func (m *MockRpcProvider) TraceTransaction(ctx context.Context, transactionHash *felt.Felt) (rpc.TxnTrace, error)
TraceTransaction mocks base method.
func (*MockRpcProvider) TransactionByBlockIdAndIndex ¶
func (m *MockRpcProvider) TransactionByBlockIdAndIndex(ctx context.Context, blockID rpc.BlockID, index uint64) (*rpc.BlockTransaction, error)
TransactionByBlockIdAndIndex mocks base method.
func (*MockRpcProvider) TransactionByHash ¶
func (m *MockRpcProvider) TransactionByHash(ctx context.Context, hash *felt.Felt) (*rpc.BlockTransaction, error)
TransactionByHash mocks base method.
func (*MockRpcProvider) TransactionReceipt ¶
func (m *MockRpcProvider) TransactionReceipt(ctx context.Context, transactionHash *felt.Felt) (*rpc.TransactionReceiptWithBlockInfo, error)
TransactionReceipt mocks base method.
type MockRpcProviderMockRecorder ¶
type MockRpcProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockRpcProviderMockRecorder is the mock recorder for MockRpcProvider.
func (*MockRpcProviderMockRecorder) AddDeclareTransaction ¶
func (mr *MockRpcProviderMockRecorder) AddDeclareTransaction(ctx, declareTransaction any) *gomock.Call
AddDeclareTransaction indicates an expected call of AddDeclareTransaction.
func (*MockRpcProviderMockRecorder) AddDeployAccountTransaction ¶
func (mr *MockRpcProviderMockRecorder) AddDeployAccountTransaction(ctx, deployAccountTransaction any) *gomock.Call
AddDeployAccountTransaction indicates an expected call of AddDeployAccountTransaction.
func (*MockRpcProviderMockRecorder) AddInvokeTransaction ¶
func (mr *MockRpcProviderMockRecorder) AddInvokeTransaction(ctx, invokeTxn any) *gomock.Call
AddInvokeTransaction indicates an expected call of AddInvokeTransaction.
func (*MockRpcProviderMockRecorder) BlockHashAndNumber ¶
func (mr *MockRpcProviderMockRecorder) BlockHashAndNumber(ctx any) *gomock.Call
BlockHashAndNumber indicates an expected call of BlockHashAndNumber.
func (*MockRpcProviderMockRecorder) BlockNumber ¶
func (mr *MockRpcProviderMockRecorder) BlockNumber(ctx any) *gomock.Call
BlockNumber indicates an expected call of BlockNumber.
func (*MockRpcProviderMockRecorder) BlockTransactionCount ¶
func (mr *MockRpcProviderMockRecorder) BlockTransactionCount(ctx, blockID any) *gomock.Call
BlockTransactionCount indicates an expected call of BlockTransactionCount.
func (*MockRpcProviderMockRecorder) BlockWithReceipts ¶ added in v0.7.0
func (mr *MockRpcProviderMockRecorder) BlockWithReceipts(ctx, blockID any) *gomock.Call
BlockWithReceipts indicates an expected call of BlockWithReceipts.
func (*MockRpcProviderMockRecorder) BlockWithTxHashes ¶
func (mr *MockRpcProviderMockRecorder) BlockWithTxHashes(ctx, blockID any) *gomock.Call
BlockWithTxHashes indicates an expected call of BlockWithTxHashes.
func (*MockRpcProviderMockRecorder) BlockWithTxs ¶
func (mr *MockRpcProviderMockRecorder) BlockWithTxs(ctx, blockID any) *gomock.Call
BlockWithTxs indicates an expected call of BlockWithTxs.
func (*MockRpcProviderMockRecorder) Call ¶
func (mr *MockRpcProviderMockRecorder) Call(ctx, call, block any) *gomock.Call
Call indicates an expected call of Call.
func (*MockRpcProviderMockRecorder) ChainID ¶
func (mr *MockRpcProviderMockRecorder) ChainID(ctx any) *gomock.Call
ChainID indicates an expected call of ChainID.
func (*MockRpcProviderMockRecorder) Class ¶
func (mr *MockRpcProviderMockRecorder) Class(ctx, blockID, classHash any) *gomock.Call
Class indicates an expected call of Class.
func (*MockRpcProviderMockRecorder) ClassAt ¶
func (mr *MockRpcProviderMockRecorder) ClassAt(ctx, blockID, contractAddress any) *gomock.Call
ClassAt indicates an expected call of ClassAt.
func (*MockRpcProviderMockRecorder) ClassHashAt ¶
func (mr *MockRpcProviderMockRecorder) ClassHashAt(ctx, blockID, contractAddress any) *gomock.Call
ClassHashAt indicates an expected call of ClassHashAt.
func (*MockRpcProviderMockRecorder) CompiledCasm ¶ added in v0.8.0
func (mr *MockRpcProviderMockRecorder) CompiledCasm(ctx, classHash any) *gomock.Call
CompiledCasm indicates an expected call of CompiledCasm.
func (*MockRpcProviderMockRecorder) EstimateFee ¶
func (mr *MockRpcProviderMockRecorder) EstimateFee(ctx, requests, simulationFlags, blockID any) *gomock.Call
EstimateFee indicates an expected call of EstimateFee.
func (*MockRpcProviderMockRecorder) EstimateMessageFee ¶
func (mr *MockRpcProviderMockRecorder) EstimateMessageFee(ctx, msg, blockID any) *gomock.Call
EstimateMessageFee indicates an expected call of EstimateMessageFee.
func (*MockRpcProviderMockRecorder) Events ¶
func (mr *MockRpcProviderMockRecorder) Events(ctx, input any) *gomock.Call
Events indicates an expected call of Events.
func (*MockRpcProviderMockRecorder) GetMessagesStatus ¶ added in v0.8.0
func (mr *MockRpcProviderMockRecorder) GetMessagesStatus(ctx, transactionHash any) *gomock.Call
GetMessagesStatus indicates an expected call of GetMessagesStatus.
func (*MockRpcProviderMockRecorder) GetStorageProof ¶ added in v0.8.0
func (mr *MockRpcProviderMockRecorder) GetStorageProof(ctx, storageProofInput any) *gomock.Call
GetStorageProof indicates an expected call of GetStorageProof.
func (*MockRpcProviderMockRecorder) GetTransactionStatus ¶ added in v0.5.0
func (mr *MockRpcProviderMockRecorder) GetTransactionStatus(ctx, transactionHash any) *gomock.Call
GetTransactionStatus indicates an expected call of GetTransactionStatus.
func (*MockRpcProviderMockRecorder) Nonce ¶
func (mr *MockRpcProviderMockRecorder) Nonce(ctx, blockID, contractAddress any) *gomock.Call
Nonce indicates an expected call of Nonce.
func (*MockRpcProviderMockRecorder) SimulateTransactions ¶
func (mr *MockRpcProviderMockRecorder) SimulateTransactions(ctx, blockID, txns, simulationFlags any) *gomock.Call
SimulateTransactions indicates an expected call of SimulateTransactions.
func (*MockRpcProviderMockRecorder) SpecVersion ¶ added in v0.5.0
func (mr *MockRpcProviderMockRecorder) SpecVersion(ctx any) *gomock.Call
SpecVersion indicates an expected call of SpecVersion.
func (*MockRpcProviderMockRecorder) StateUpdate ¶
func (mr *MockRpcProviderMockRecorder) StateUpdate(ctx, blockID any) *gomock.Call
StateUpdate indicates an expected call of StateUpdate.
func (*MockRpcProviderMockRecorder) StorageAt ¶
func (mr *MockRpcProviderMockRecorder) StorageAt(ctx, contractAddress, key, blockID any) *gomock.Call
StorageAt indicates an expected call of StorageAt.
func (*MockRpcProviderMockRecorder) Syncing ¶
func (mr *MockRpcProviderMockRecorder) Syncing(ctx any) *gomock.Call
Syncing indicates an expected call of Syncing.
func (*MockRpcProviderMockRecorder) TraceBlockTransactions ¶
func (mr *MockRpcProviderMockRecorder) TraceBlockTransactions(ctx, blockID any) *gomock.Call
TraceBlockTransactions indicates an expected call of TraceBlockTransactions.
func (*MockRpcProviderMockRecorder) TraceTransaction ¶ added in v0.5.0
func (mr *MockRpcProviderMockRecorder) TraceTransaction(ctx, transactionHash any) *gomock.Call
TraceTransaction indicates an expected call of TraceTransaction.
func (*MockRpcProviderMockRecorder) TransactionByBlockIdAndIndex ¶
func (mr *MockRpcProviderMockRecorder) TransactionByBlockIdAndIndex(ctx, blockID, index any) *gomock.Call
TransactionByBlockIdAndIndex indicates an expected call of TransactionByBlockIdAndIndex.
func (*MockRpcProviderMockRecorder) TransactionByHash ¶
func (mr *MockRpcProviderMockRecorder) TransactionByHash(ctx, hash any) *gomock.Call
TransactionByHash indicates an expected call of TransactionByHash.
func (*MockRpcProviderMockRecorder) TransactionReceipt ¶
func (mr *MockRpcProviderMockRecorder) TransactionReceipt(ctx, transactionHash any) *gomock.Call
TransactionReceipt indicates an expected call of TransactionReceipt.
type MockWebsocketProvider ¶ added in v0.8.0
type MockWebsocketProvider struct {
// contains filtered or unexported fields
}
MockWebsocketProvider is a mock of WebsocketProvider interface.
func NewMockWebsocketProvider ¶ added in v0.8.0
func NewMockWebsocketProvider(ctrl *gomock.Controller) *MockWebsocketProvider
NewMockWebsocketProvider creates a new mock instance.
func (*MockWebsocketProvider) EXPECT ¶ added in v0.8.0
func (m *MockWebsocketProvider) EXPECT() *MockWebsocketProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebsocketProvider) SubscribeEvents ¶ added in v0.8.0
func (m *MockWebsocketProvider) SubscribeEvents(ctx context.Context, events chan<- *rpc.EmittedEvent, options *rpc.EventSubscriptionInput) (*client.ClientSubscription, error)
SubscribeEvents mocks base method.
func (*MockWebsocketProvider) SubscribeNewHeads ¶ added in v0.8.0
func (m *MockWebsocketProvider) SubscribeNewHeads(ctx context.Context, headers chan<- *rpc.BlockHeader, blockID rpc.BlockID) (*client.ClientSubscription, error)
SubscribeNewHeads mocks base method.
func (*MockWebsocketProvider) SubscribePendingTransactions ¶ added in v0.8.0
func (m *MockWebsocketProvider) SubscribePendingTransactions(ctx context.Context, pendingTxns chan<- *rpc.PendingTxn, options *rpc.SubPendingTxnsInput) (*client.ClientSubscription, error)
SubscribePendingTransactions mocks base method.
func (*MockWebsocketProvider) SubscribeTransactionStatus ¶ added in v0.8.0
func (m *MockWebsocketProvider) SubscribeTransactionStatus(ctx context.Context, newStatus chan<- *rpc.NewTxnStatus, transactionHash *felt.Felt) (*client.ClientSubscription, error)
SubscribeTransactionStatus mocks base method.
type MockWebsocketProviderMockRecorder ¶ added in v0.8.0
type MockWebsocketProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockWebsocketProviderMockRecorder is the mock recorder for MockWebsocketProvider.
func (*MockWebsocketProviderMockRecorder) SubscribeEvents ¶ added in v0.8.0
func (mr *MockWebsocketProviderMockRecorder) SubscribeEvents(ctx, events, options any) *gomock.Call
SubscribeEvents indicates an expected call of SubscribeEvents.
func (*MockWebsocketProviderMockRecorder) SubscribeNewHeads ¶ added in v0.8.0
func (mr *MockWebsocketProviderMockRecorder) SubscribeNewHeads(ctx, headers, blockID any) *gomock.Call
SubscribeNewHeads indicates an expected call of SubscribeNewHeads.
func (*MockWebsocketProviderMockRecorder) SubscribePendingTransactions ¶ added in v0.8.0
func (mr *MockWebsocketProviderMockRecorder) SubscribePendingTransactions(ctx, pendingTxns, options any) *gomock.Call
SubscribePendingTransactions indicates an expected call of SubscribePendingTransactions.
func (*MockWebsocketProviderMockRecorder) SubscribeTransactionStatus ¶ added in v0.8.0
func (mr *MockWebsocketProviderMockRecorder) SubscribeTransactionStatus(ctx, newStatus, transactionHash any) *gomock.Call
SubscribeTransactionStatus indicates an expected call of SubscribeTransactionStatus.