Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/juno/blockchain (interfaces: Reader)
Generated by this command:
mockgen -destination=../mocks/mock_blockchain.go -package=mocks github.com/NethermindEth/juno/blockchain Reader
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/juno/rpc (interfaces: Gateway)
Generated by this command:
mockgen -destination=../mocks/mock_gateway_handler.go -package=mocks github.com/NethermindEth/juno/rpc Gateway
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/juno/starknetdata (interfaces: StarknetData)
Generated by this command:
mockgen -destination=../mocks/mock_starknetdata.go -package=mocks github.com/NethermindEth/juno/starknetdata StarknetData
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/juno/core (interfaces: StateHistoryReader)
Generated by this command:
mockgen -destination=../mocks/mock_state.go -package=mocks github.com/NethermindEth/juno/core StateHistoryReader
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/juno/l1 (interfaces: Subscriber)
Generated by this command:
mockgen -destination=../mocks/mock_subscriber.go -package=mocks github.com/NethermindEth/juno/l1 Subscriber
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/juno/sync (interfaces: Reader)
Generated by this command:
mockgen -destination=../mocks/mock_synchronizer.go -package=mocks -mock_names Reader=MockSyncReader github.com/NethermindEth/juno/sync Reader
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/NethermindEth/juno/vm (interfaces: VM)
Generated by this command:
mockgen -destination=../mocks/mock_vm.go -package=mocks github.com/NethermindEth/juno/vm VM
Package mocks is a generated GoMock package.
Index ¶
- type MockGateway
- type MockGatewayMockRecorder
- type MockReader
- func (m *MockReader) BlockByHash(arg0 *felt.Felt) (*core.Block, error)
- func (m *MockReader) BlockByNumber(arg0 uint64) (*core.Block, error)
- func (m *MockReader) BlockCommitmentsByNumber(arg0 uint64) (*core.BlockCommitments, error)
- func (m *MockReader) BlockHeaderByHash(arg0 *felt.Felt) (*core.Header, error)
- func (m *MockReader) BlockHeaderByNumber(arg0 uint64) (*core.Header, error)
- func (m *MockReader) EXPECT() *MockReaderMockRecorder
- func (m *MockReader) EventFilter(arg0 *felt.Felt, arg1 [][]felt.Felt) (*blockchain.EventFilter, error)
- func (m *MockReader) Head() (*core.Block, error)
- func (m *MockReader) HeadState() (core.StateReader, func() error, error)
- func (m *MockReader) HeadsHeader() (*core.Header, error)
- func (m *MockReader) Height() (uint64, error)
- func (m *MockReader) L1Head() (*core.L1Head, error)
- func (m *MockReader) Pending() (blockchain.Pending, error)
- func (m *MockReader) PendingState() (core.StateReader, func() error, error)
- func (m *MockReader) Receipt(arg0 *felt.Felt) (*core.TransactionReceipt, *felt.Felt, uint64, error)
- func (m *MockReader) StateAtBlockHash(arg0 *felt.Felt) (core.StateReader, func() error, error)
- func (m *MockReader) StateAtBlockNumber(arg0 uint64) (core.StateReader, func() error, error)
- func (m *MockReader) StateUpdateByHash(arg0 *felt.Felt) (*core.StateUpdate, error)
- func (m *MockReader) StateUpdateByNumber(arg0 uint64) (*core.StateUpdate, error)
- func (m *MockReader) TransactionByBlockNumberAndIndex(arg0, arg1 uint64) (core.Transaction, error)
- func (m *MockReader) TransactionByHash(arg0 *felt.Felt) (core.Transaction, error)
- type MockReaderMockRecorder
- func (mr *MockReaderMockRecorder) BlockByHash(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) BlockByNumber(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) BlockCommitmentsByNumber(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) BlockHeaderByHash(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) BlockHeaderByNumber(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) EventFilter(arg0, arg1 any) *gomock.Call
- func (mr *MockReaderMockRecorder) Head() *gomock.Call
- func (mr *MockReaderMockRecorder) HeadState() *gomock.Call
- func (mr *MockReaderMockRecorder) HeadsHeader() *gomock.Call
- func (mr *MockReaderMockRecorder) Height() *gomock.Call
- func (mr *MockReaderMockRecorder) L1Head() *gomock.Call
- func (mr *MockReaderMockRecorder) Pending() *gomock.Call
- func (mr *MockReaderMockRecorder) PendingState() *gomock.Call
- func (mr *MockReaderMockRecorder) Receipt(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) StateAtBlockHash(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) StateAtBlockNumber(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) StateUpdateByHash(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) StateUpdateByNumber(arg0 any) *gomock.Call
- func (mr *MockReaderMockRecorder) TransactionByBlockNumberAndIndex(arg0, arg1 any) *gomock.Call
- func (mr *MockReaderMockRecorder) TransactionByHash(arg0 any) *gomock.Call
- type MockStarknetData
- func (m *MockStarknetData) BlockByNumber(arg0 context.Context, arg1 uint64) (*core.Block, error)
- func (m *MockStarknetData) BlockLatest(arg0 context.Context) (*core.Block, error)
- func (m *MockStarknetData) BlockPending(arg0 context.Context) (*core.Block, error)
- func (m *MockStarknetData) Class(arg0 context.Context, arg1 *felt.Felt) (core.Class, error)
- func (m *MockStarknetData) EXPECT() *MockStarknetDataMockRecorder
- func (m *MockStarknetData) StateUpdate(arg0 context.Context, arg1 uint64) (*core.StateUpdate, error)
- func (m *MockStarknetData) StateUpdatePending(arg0 context.Context) (*core.StateUpdate, error)
- func (m *MockStarknetData) StateUpdatePendingWithBlock(arg0 context.Context) (*core.StateUpdate, *core.Block, error)
- func (m *MockStarknetData) StateUpdateWithBlock(arg0 context.Context, arg1 uint64) (*core.StateUpdate, *core.Block, error)
- func (m *MockStarknetData) Transaction(arg0 context.Context, arg1 *felt.Felt) (core.Transaction, error)
- type MockStarknetDataMockRecorder
- func (mr *MockStarknetDataMockRecorder) BlockByNumber(arg0, arg1 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) BlockLatest(arg0 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) BlockPending(arg0 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) Class(arg0, arg1 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) StateUpdate(arg0, arg1 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) StateUpdatePending(arg0 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) StateUpdatePendingWithBlock(arg0 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) StateUpdateWithBlock(arg0, arg1 any) *gomock.Call
- func (mr *MockStarknetDataMockRecorder) Transaction(arg0, arg1 any) *gomock.Call
- type MockStateHistoryReader
- func (m *MockStateHistoryReader) Class(arg0 *felt.Felt) (*core.DeclaredClass, error)
- func (m *MockStateHistoryReader) ContractClassHash(arg0 *felt.Felt) (*felt.Felt, error)
- func (m *MockStateHistoryReader) ContractClassHashAt(arg0 *felt.Felt, arg1 uint64) (*felt.Felt, error)
- func (m *MockStateHistoryReader) ContractIsAlreadyDeployedAt(arg0 *felt.Felt, arg1 uint64) (bool, error)
- func (m *MockStateHistoryReader) ContractNonce(arg0 *felt.Felt) (*felt.Felt, error)
- func (m *MockStateHistoryReader) ContractNonceAt(arg0 *felt.Felt, arg1 uint64) (*felt.Felt, error)
- func (m *MockStateHistoryReader) ContractStorage(arg0, arg1 *felt.Felt) (*felt.Felt, error)
- func (m *MockStateHistoryReader) ContractStorageAt(arg0, arg1 *felt.Felt, arg2 uint64) (*felt.Felt, error)
- func (m *MockStateHistoryReader) EXPECT() *MockStateHistoryReaderMockRecorder
- type MockStateHistoryReaderMockRecorder
- func (mr *MockStateHistoryReaderMockRecorder) Class(arg0 any) *gomock.Call
- func (mr *MockStateHistoryReaderMockRecorder) ContractClassHash(arg0 any) *gomock.Call
- func (mr *MockStateHistoryReaderMockRecorder) ContractClassHashAt(arg0, arg1 any) *gomock.Call
- func (mr *MockStateHistoryReaderMockRecorder) ContractIsAlreadyDeployedAt(arg0, arg1 any) *gomock.Call
- func (mr *MockStateHistoryReaderMockRecorder) ContractNonce(arg0 any) *gomock.Call
- func (mr *MockStateHistoryReaderMockRecorder) ContractNonceAt(arg0, arg1 any) *gomock.Call
- func (mr *MockStateHistoryReaderMockRecorder) ContractStorage(arg0, arg1 any) *gomock.Call
- func (mr *MockStateHistoryReaderMockRecorder) ContractStorageAt(arg0, arg1, arg2 any) *gomock.Call
- type MockSubscriber
- func (m *MockSubscriber) ChainID(arg0 context.Context) (*big.Int, error)
- func (m *MockSubscriber) Close()
- func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
- func (m *MockSubscriber) FinalisedHeight(arg0 context.Context) (uint64, error)
- func (m *MockSubscriber) WatchLogStateUpdate(arg0 context.Context, arg1 chan<- *contract.StarknetLogStateUpdate) (event.Subscription, error)
- type MockSubscriberMockRecorder
- type MockSyncReader
- type MockSyncReaderMockRecorder
- type MockVM
- func (m *MockVM) Call(arg0, arg1, arg2 *felt.Felt, arg3 []felt.Felt, arg4, arg5 uint64, ...) ([]*felt.Felt, error)
- func (m *MockVM) EXPECT() *MockVMMockRecorder
- func (m *MockVM) Execute(arg0 []core.Transaction, arg1 []core.Class, arg2, arg3 uint64, arg4 *felt.Felt, ...) ([]*felt.Felt, []json.RawMessage, error)
- type MockVMMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGateway ¶ added in v0.4.0
type MockGateway struct {
// contains filtered or unexported fields
}
MockGateway is a mock of Gateway interface.
func NewMockGateway ¶ added in v0.4.0
func NewMockGateway(ctrl *gomock.Controller) *MockGateway
NewMockGateway creates a new mock instance.
func (*MockGateway) AddTransaction ¶ added in v0.4.0
func (m *MockGateway) AddTransaction(arg0 json.RawMessage) (json.RawMessage, error)
AddTransaction mocks base method.
func (*MockGateway) EXPECT ¶ added in v0.4.0
func (m *MockGateway) EXPECT() *MockGatewayMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGatewayMockRecorder ¶ added in v0.4.0
type MockGatewayMockRecorder struct {
// contains filtered or unexported fields
}
MockGatewayMockRecorder is the mock recorder for MockGateway.
func (*MockGatewayMockRecorder) AddTransaction ¶ added in v0.4.0
func (mr *MockGatewayMockRecorder) AddTransaction(arg0 any) *gomock.Call
AddTransaction indicates an expected call of AddTransaction.
type MockReader ¶
type MockReader struct {
// contains filtered or unexported fields
}
MockReader is a mock of Reader interface.
func NewMockReader ¶
func NewMockReader(ctrl *gomock.Controller) *MockReader
NewMockReader creates a new mock instance.
func (*MockReader) BlockByHash ¶ added in v0.2.1
BlockByHash mocks base method.
func (*MockReader) BlockByNumber ¶ added in v0.2.1
func (m *MockReader) BlockByNumber(arg0 uint64) (*core.Block, error)
BlockByNumber mocks base method.
func (*MockReader) BlockCommitmentsByNumber ¶ added in v0.7.2
func (m *MockReader) BlockCommitmentsByNumber(arg0 uint64) (*core.BlockCommitments, error)
BlockCommitmentsByNumber mocks base method.
func (*MockReader) BlockHeaderByHash ¶ added in v0.2.1
BlockHeaderByHash mocks base method.
func (*MockReader) BlockHeaderByNumber ¶ added in v0.2.1
func (m *MockReader) BlockHeaderByNumber(arg0 uint64) (*core.Header, error)
BlockHeaderByNumber mocks base method.
func (*MockReader) EXPECT ¶
func (m *MockReader) EXPECT() *MockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReader) EventFilter ¶ added in v0.3.1
func (m *MockReader) EventFilter(arg0 *felt.Felt, arg1 [][]felt.Felt) (*blockchain.EventFilter, error)
EventFilter mocks base method.
func (*MockReader) HeadState ¶ added in v0.3.0
func (m *MockReader) HeadState() (core.StateReader, func() error, error)
HeadState mocks base method.
func (*MockReader) HeadsHeader ¶
func (m *MockReader) HeadsHeader() (*core.Header, error)
HeadsHeader mocks base method.
func (*MockReader) L1Head ¶ added in v0.4.0
func (m *MockReader) L1Head() (*core.L1Head, error)
L1Head mocks base method.
func (*MockReader) Pending ¶ added in v0.4.0
func (m *MockReader) Pending() (blockchain.Pending, error)
Pending mocks base method.
func (*MockReader) PendingState ¶ added in v0.4.0
func (m *MockReader) PendingState() (core.StateReader, func() error, error)
PendingState mocks base method.
func (*MockReader) Receipt ¶ added in v0.2.1
func (m *MockReader) Receipt(arg0 *felt.Felt) (*core.TransactionReceipt, *felt.Felt, uint64, error)
Receipt mocks base method.
func (*MockReader) StateAtBlockHash ¶ added in v0.3.0
func (m *MockReader) StateAtBlockHash(arg0 *felt.Felt) (core.StateReader, func() error, error)
StateAtBlockHash mocks base method.
func (*MockReader) StateAtBlockNumber ¶ added in v0.3.0
func (m *MockReader) StateAtBlockNumber(arg0 uint64) (core.StateReader, func() error, error)
StateAtBlockNumber mocks base method.
func (*MockReader) StateUpdateByHash ¶ added in v0.2.1
func (m *MockReader) StateUpdateByHash(arg0 *felt.Felt) (*core.StateUpdate, error)
StateUpdateByHash mocks base method.
func (*MockReader) StateUpdateByNumber ¶ added in v0.2.1
func (m *MockReader) StateUpdateByNumber(arg0 uint64) (*core.StateUpdate, error)
StateUpdateByNumber mocks base method.
func (*MockReader) TransactionByBlockNumberAndIndex ¶ added in v0.2.1
func (m *MockReader) TransactionByBlockNumberAndIndex(arg0, arg1 uint64) (core.Transaction, error)
TransactionByBlockNumberAndIndex mocks base method.
func (*MockReader) TransactionByHash ¶ added in v0.2.1
func (m *MockReader) TransactionByHash(arg0 *felt.Felt) (core.Transaction, error)
TransactionByHash mocks base method.
type MockReaderMockRecorder ¶
type MockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockReaderMockRecorder is the mock recorder for MockReader.
func (*MockReaderMockRecorder) BlockByHash ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) BlockByHash(arg0 any) *gomock.Call
BlockByHash indicates an expected call of BlockByHash.
func (*MockReaderMockRecorder) BlockByNumber ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) BlockByNumber(arg0 any) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
func (*MockReaderMockRecorder) BlockCommitmentsByNumber ¶ added in v0.7.2
func (mr *MockReaderMockRecorder) BlockCommitmentsByNumber(arg0 any) *gomock.Call
BlockCommitmentsByNumber indicates an expected call of BlockCommitmentsByNumber.
func (*MockReaderMockRecorder) BlockHeaderByHash ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) BlockHeaderByHash(arg0 any) *gomock.Call
BlockHeaderByHash indicates an expected call of BlockHeaderByHash.
func (*MockReaderMockRecorder) BlockHeaderByNumber ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) BlockHeaderByNumber(arg0 any) *gomock.Call
BlockHeaderByNumber indicates an expected call of BlockHeaderByNumber.
func (*MockReaderMockRecorder) EventFilter ¶ added in v0.3.1
func (mr *MockReaderMockRecorder) EventFilter(arg0, arg1 any) *gomock.Call
EventFilter indicates an expected call of EventFilter.
func (*MockReaderMockRecorder) Head ¶
func (mr *MockReaderMockRecorder) Head() *gomock.Call
Head indicates an expected call of Head.
func (*MockReaderMockRecorder) HeadState ¶ added in v0.3.0
func (mr *MockReaderMockRecorder) HeadState() *gomock.Call
HeadState indicates an expected call of HeadState.
func (*MockReaderMockRecorder) HeadsHeader ¶
func (mr *MockReaderMockRecorder) HeadsHeader() *gomock.Call
HeadsHeader indicates an expected call of HeadsHeader.
func (*MockReaderMockRecorder) Height ¶
func (mr *MockReaderMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockReaderMockRecorder) L1Head ¶ added in v0.4.0
func (mr *MockReaderMockRecorder) L1Head() *gomock.Call
L1Head indicates an expected call of L1Head.
func (*MockReaderMockRecorder) Pending ¶ added in v0.4.0
func (mr *MockReaderMockRecorder) Pending() *gomock.Call
Pending indicates an expected call of Pending.
func (*MockReaderMockRecorder) PendingState ¶ added in v0.4.0
func (mr *MockReaderMockRecorder) PendingState() *gomock.Call
PendingState indicates an expected call of PendingState.
func (*MockReaderMockRecorder) Receipt ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) Receipt(arg0 any) *gomock.Call
Receipt indicates an expected call of Receipt.
func (*MockReaderMockRecorder) StateAtBlockHash ¶ added in v0.3.0
func (mr *MockReaderMockRecorder) StateAtBlockHash(arg0 any) *gomock.Call
StateAtBlockHash indicates an expected call of StateAtBlockHash.
func (*MockReaderMockRecorder) StateAtBlockNumber ¶ added in v0.3.0
func (mr *MockReaderMockRecorder) StateAtBlockNumber(arg0 any) *gomock.Call
StateAtBlockNumber indicates an expected call of StateAtBlockNumber.
func (*MockReaderMockRecorder) StateUpdateByHash ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) StateUpdateByHash(arg0 any) *gomock.Call
StateUpdateByHash indicates an expected call of StateUpdateByHash.
func (*MockReaderMockRecorder) StateUpdateByNumber ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) StateUpdateByNumber(arg0 any) *gomock.Call
StateUpdateByNumber indicates an expected call of StateUpdateByNumber.
func (*MockReaderMockRecorder) TransactionByBlockNumberAndIndex ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) TransactionByBlockNumberAndIndex(arg0, arg1 any) *gomock.Call
TransactionByBlockNumberAndIndex indicates an expected call of TransactionByBlockNumberAndIndex.
func (*MockReaderMockRecorder) TransactionByHash ¶ added in v0.2.1
func (mr *MockReaderMockRecorder) TransactionByHash(arg0 any) *gomock.Call
TransactionByHash indicates an expected call of TransactionByHash.
type MockStarknetData ¶ added in v0.2.1
type MockStarknetData struct {
// contains filtered or unexported fields
}
MockStarknetData is a mock of StarknetData interface.
func NewMockStarknetData ¶ added in v0.2.1
func NewMockStarknetData(ctrl *gomock.Controller) *MockStarknetData
NewMockStarknetData creates a new mock instance.
func (*MockStarknetData) BlockByNumber ¶ added in v0.2.1
BlockByNumber mocks base method.
func (*MockStarknetData) BlockLatest ¶ added in v0.3.0
BlockLatest mocks base method.
func (*MockStarknetData) BlockPending ¶ added in v0.4.0
BlockPending mocks base method.
func (*MockStarknetData) EXPECT ¶ added in v0.2.1
func (m *MockStarknetData) EXPECT() *MockStarknetDataMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStarknetData) StateUpdate ¶ added in v0.2.1
func (m *MockStarknetData) StateUpdate(arg0 context.Context, arg1 uint64) (*core.StateUpdate, error)
StateUpdate mocks base method.
func (*MockStarknetData) StateUpdatePending ¶ added in v0.4.0
func (m *MockStarknetData) StateUpdatePending(arg0 context.Context) (*core.StateUpdate, error)
StateUpdatePending mocks base method.
func (*MockStarknetData) StateUpdatePendingWithBlock ¶ added in v0.6.1
func (m *MockStarknetData) StateUpdatePendingWithBlock(arg0 context.Context) (*core.StateUpdate, *core.Block, error)
StateUpdatePendingWithBlock mocks base method.
func (*MockStarknetData) StateUpdateWithBlock ¶ added in v0.6.1
func (m *MockStarknetData) StateUpdateWithBlock(arg0 context.Context, arg1 uint64) (*core.StateUpdate, *core.Block, error)
StateUpdateWithBlock mocks base method.
func (*MockStarknetData) Transaction ¶ added in v0.2.1
func (m *MockStarknetData) Transaction(arg0 context.Context, arg1 *felt.Felt) (core.Transaction, error)
Transaction mocks base method.
type MockStarknetDataMockRecorder ¶ added in v0.2.1
type MockStarknetDataMockRecorder struct {
// contains filtered or unexported fields
}
MockStarknetDataMockRecorder is the mock recorder for MockStarknetData.
func (*MockStarknetDataMockRecorder) BlockByNumber ¶ added in v0.2.1
func (mr *MockStarknetDataMockRecorder) BlockByNumber(arg0, arg1 any) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
func (*MockStarknetDataMockRecorder) BlockLatest ¶ added in v0.3.0
func (mr *MockStarknetDataMockRecorder) BlockLatest(arg0 any) *gomock.Call
BlockLatest indicates an expected call of BlockLatest.
func (*MockStarknetDataMockRecorder) BlockPending ¶ added in v0.4.0
func (mr *MockStarknetDataMockRecorder) BlockPending(arg0 any) *gomock.Call
BlockPending indicates an expected call of BlockPending.
func (*MockStarknetDataMockRecorder) Class ¶ added in v0.2.1
func (mr *MockStarknetDataMockRecorder) Class(arg0, arg1 any) *gomock.Call
Class indicates an expected call of Class.
func (*MockStarknetDataMockRecorder) StateUpdate ¶ added in v0.2.1
func (mr *MockStarknetDataMockRecorder) StateUpdate(arg0, arg1 any) *gomock.Call
StateUpdate indicates an expected call of StateUpdate.
func (*MockStarknetDataMockRecorder) StateUpdatePending ¶ added in v0.4.0
func (mr *MockStarknetDataMockRecorder) StateUpdatePending(arg0 any) *gomock.Call
StateUpdatePending indicates an expected call of StateUpdatePending.
func (*MockStarknetDataMockRecorder) StateUpdatePendingWithBlock ¶ added in v0.6.1
func (mr *MockStarknetDataMockRecorder) StateUpdatePendingWithBlock(arg0 any) *gomock.Call
StateUpdatePendingWithBlock indicates an expected call of StateUpdatePendingWithBlock.
func (*MockStarknetDataMockRecorder) StateUpdateWithBlock ¶ added in v0.6.1
func (mr *MockStarknetDataMockRecorder) StateUpdateWithBlock(arg0, arg1 any) *gomock.Call
StateUpdateWithBlock indicates an expected call of StateUpdateWithBlock.
func (*MockStarknetDataMockRecorder) Transaction ¶ added in v0.2.1
func (mr *MockStarknetDataMockRecorder) Transaction(arg0, arg1 any) *gomock.Call
Transaction indicates an expected call of Transaction.
type MockStateHistoryReader ¶ added in v0.3.0
type MockStateHistoryReader struct {
// contains filtered or unexported fields
}
MockStateHistoryReader is a mock of StateHistoryReader interface.
func NewMockStateHistoryReader ¶ added in v0.3.0
func NewMockStateHistoryReader(ctrl *gomock.Controller) *MockStateHistoryReader
NewMockStateHistoryReader creates a new mock instance.
func (*MockStateHistoryReader) Class ¶ added in v0.3.0
func (m *MockStateHistoryReader) Class(arg0 *felt.Felt) (*core.DeclaredClass, error)
Class mocks base method.
func (*MockStateHistoryReader) ContractClassHash ¶ added in v0.3.0
ContractClassHash mocks base method.
func (*MockStateHistoryReader) ContractClassHashAt ¶ added in v0.3.0
func (m *MockStateHistoryReader) ContractClassHashAt(arg0 *felt.Felt, arg1 uint64) (*felt.Felt, error)
ContractClassHashAt mocks base method.
func (*MockStateHistoryReader) ContractIsAlreadyDeployedAt ¶ added in v0.3.0
func (m *MockStateHistoryReader) ContractIsAlreadyDeployedAt(arg0 *felt.Felt, arg1 uint64) (bool, error)
ContractIsAlreadyDeployedAt mocks base method.
func (*MockStateHistoryReader) ContractNonce ¶ added in v0.3.0
ContractNonce mocks base method.
func (*MockStateHistoryReader) ContractNonceAt ¶ added in v0.3.0
ContractNonceAt mocks base method.
func (*MockStateHistoryReader) ContractStorage ¶ added in v0.3.0
ContractStorage mocks base method.
func (*MockStateHistoryReader) ContractStorageAt ¶ added in v0.3.0
func (m *MockStateHistoryReader) ContractStorageAt(arg0, arg1 *felt.Felt, arg2 uint64) (*felt.Felt, error)
ContractStorageAt mocks base method.
func (*MockStateHistoryReader) EXPECT ¶ added in v0.3.0
func (m *MockStateHistoryReader) EXPECT() *MockStateHistoryReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStateHistoryReaderMockRecorder ¶ added in v0.3.0
type MockStateHistoryReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockStateHistoryReaderMockRecorder is the mock recorder for MockStateHistoryReader.
func (*MockStateHistoryReaderMockRecorder) Class ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) Class(arg0 any) *gomock.Call
Class indicates an expected call of Class.
func (*MockStateHistoryReaderMockRecorder) ContractClassHash ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) ContractClassHash(arg0 any) *gomock.Call
ContractClassHash indicates an expected call of ContractClassHash.
func (*MockStateHistoryReaderMockRecorder) ContractClassHashAt ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) ContractClassHashAt(arg0, arg1 any) *gomock.Call
ContractClassHashAt indicates an expected call of ContractClassHashAt.
func (*MockStateHistoryReaderMockRecorder) ContractIsAlreadyDeployedAt ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) ContractIsAlreadyDeployedAt(arg0, arg1 any) *gomock.Call
ContractIsAlreadyDeployedAt indicates an expected call of ContractIsAlreadyDeployedAt.
func (*MockStateHistoryReaderMockRecorder) ContractNonce ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) ContractNonce(arg0 any) *gomock.Call
ContractNonce indicates an expected call of ContractNonce.
func (*MockStateHistoryReaderMockRecorder) ContractNonceAt ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) ContractNonceAt(arg0, arg1 any) *gomock.Call
ContractNonceAt indicates an expected call of ContractNonceAt.
func (*MockStateHistoryReaderMockRecorder) ContractStorage ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) ContractStorage(arg0, arg1 any) *gomock.Call
ContractStorage indicates an expected call of ContractStorage.
func (*MockStateHistoryReaderMockRecorder) ContractStorageAt ¶ added in v0.3.0
func (mr *MockStateHistoryReaderMockRecorder) ContractStorageAt(arg0, arg1, arg2 any) *gomock.Call
ContractStorageAt indicates an expected call of ContractStorageAt.
type MockSubscriber ¶ added in v0.4.0
type MockSubscriber struct {
// contains filtered or unexported fields
}
MockSubscriber is a mock of Subscriber interface.
func NewMockSubscriber ¶ added in v0.4.0
func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber
NewMockSubscriber creates a new mock instance.
func (*MockSubscriber) Close ¶ added in v0.4.0
func (m *MockSubscriber) Close()
Close mocks base method.
func (*MockSubscriber) EXPECT ¶ added in v0.4.0
func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscriber) FinalisedHeight ¶ added in v0.4.0
func (m *MockSubscriber) FinalisedHeight(arg0 context.Context) (uint64, error)
FinalisedHeight mocks base method.
func (*MockSubscriber) WatchLogStateUpdate ¶ added in v0.4.0
func (m *MockSubscriber) WatchLogStateUpdate(arg0 context.Context, arg1 chan<- *contract.StarknetLogStateUpdate) (event.Subscription, error)
WatchLogStateUpdate mocks base method.
type MockSubscriberMockRecorder ¶ added in v0.4.0
type MockSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriberMockRecorder is the mock recorder for MockSubscriber.
func (*MockSubscriberMockRecorder) ChainID ¶ added in v0.4.0
func (mr *MockSubscriberMockRecorder) ChainID(arg0 any) *gomock.Call
ChainID indicates an expected call of ChainID.
func (*MockSubscriberMockRecorder) Close ¶ added in v0.4.0
func (mr *MockSubscriberMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSubscriberMockRecorder) FinalisedHeight ¶ added in v0.4.0
func (mr *MockSubscriberMockRecorder) FinalisedHeight(arg0 any) *gomock.Call
FinalisedHeight indicates an expected call of FinalisedHeight.
func (*MockSubscriberMockRecorder) WatchLogStateUpdate ¶ added in v0.4.0
func (mr *MockSubscriberMockRecorder) WatchLogStateUpdate(arg0, arg1 any) *gomock.Call
WatchLogStateUpdate indicates an expected call of WatchLogStateUpdate.
type MockSyncReader ¶ added in v0.6.2
type MockSyncReader struct {
// contains filtered or unexported fields
}
MockSyncReader is a mock of Reader interface.
func NewMockSyncReader ¶ added in v0.6.2
func NewMockSyncReader(ctrl *gomock.Controller) *MockSyncReader
NewMockSyncReader creates a new mock instance.
func (*MockSyncReader) EXPECT ¶ added in v0.6.2
func (m *MockSyncReader) EXPECT() *MockSyncReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncReader) HighestBlockHeader ¶ added in v0.6.2
func (m *MockSyncReader) HighestBlockHeader() *core.Header
HighestBlockHeader mocks base method.
func (*MockSyncReader) StartingBlockNumber ¶ added in v0.6.2
func (m *MockSyncReader) StartingBlockNumber() (uint64, error)
StartingBlockNumber mocks base method.
func (*MockSyncReader) SubscribeNewHeads ¶ added in v0.7.4
func (m *MockSyncReader) SubscribeNewHeads() sync.HeaderSubscription
SubscribeNewHeads mocks base method.
type MockSyncReaderMockRecorder ¶ added in v0.6.2
type MockSyncReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncReaderMockRecorder is the mock recorder for MockSyncReader.
func (*MockSyncReaderMockRecorder) HighestBlockHeader ¶ added in v0.6.2
func (mr *MockSyncReaderMockRecorder) HighestBlockHeader() *gomock.Call
HighestBlockHeader indicates an expected call of HighestBlockHeader.
func (*MockSyncReaderMockRecorder) StartingBlockNumber ¶ added in v0.6.2
func (mr *MockSyncReaderMockRecorder) StartingBlockNumber() *gomock.Call
StartingBlockNumber indicates an expected call of StartingBlockNumber.
func (*MockSyncReaderMockRecorder) SubscribeNewHeads ¶ added in v0.7.4
func (mr *MockSyncReaderMockRecorder) SubscribeNewHeads() *gomock.Call
SubscribeNewHeads indicates an expected call of SubscribeNewHeads.
type MockVM ¶ added in v0.5.0
type MockVM struct {
// contains filtered or unexported fields
}
MockVM is a mock of VM interface.
func NewMockVM ¶ added in v0.5.0
func NewMockVM(ctrl *gomock.Controller) *MockVM
NewMockVM creates a new mock instance.
func (*MockVM) Call ¶ added in v0.5.0
func (m *MockVM) Call(arg0, arg1, arg2 *felt.Felt, arg3 []felt.Felt, arg4, arg5 uint64, arg6 core.StateReader, arg7 utils.Network) ([]*felt.Felt, error)
Call mocks base method.
func (*MockVM) EXPECT ¶ added in v0.5.0
func (m *MockVM) EXPECT() *MockVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVM) Execute ¶ added in v0.5.0
func (m *MockVM) Execute(arg0 []core.Transaction, arg1 []core.Class, arg2, arg3 uint64, arg4 *felt.Felt, arg5 core.StateReader, arg6 utils.Network, arg7 []*felt.Felt, arg8, arg9, arg10 bool, arg11, arg12 *felt.Felt, arg13 bool) ([]*felt.Felt, []json.RawMessage, error)
Execute mocks base method.
type MockVMMockRecorder ¶ added in v0.5.0
type MockVMMockRecorder struct {
// contains filtered or unexported fields
}
MockVMMockRecorder is the mock recorder for MockVM.