Documentation ¶
Overview ¶
Package statemock is a generated GoMock package.
Package statemock is a generated GoMock package.
Package statemock is a generated GoMock package.
Index ¶
- type Chain
- func (m *Chain) AddBlock(arg0 block.Block)
- func (m *Chain) AddTx(arg0 *txs.Tx)
- func (m *Chain) AddUTXO(arg0 *avax.UTXO)
- func (m *Chain) DeleteUTXO(arg0 ids.ID)
- func (m *Chain) EXPECT() *ChainMockRecorder
- func (m *Chain) GetBlock(arg0 ids.ID) (block.Block, error)
- func (m *Chain) GetBlockIDAtHeight(arg0 uint64) (ids.ID, error)
- func (m *Chain) GetLastAccepted() ids.ID
- func (m *Chain) GetTimestamp() time.Time
- func (m *Chain) GetTx(arg0 ids.ID) (*txs.Tx, error)
- func (m *Chain) GetUTXO(arg0 ids.ID) (*avax.UTXO, error)
- func (m *Chain) SetLastAccepted(arg0 ids.ID)
- func (m *Chain) SetTimestamp(arg0 time.Time)
- type ChainMockRecorder
- func (mr *ChainMockRecorder) AddBlock(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) AddTx(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) AddUTXO(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) DeleteUTXO(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) GetBlock(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) GetLastAccepted() *gomock.Call
- func (mr *ChainMockRecorder) GetTimestamp() *gomock.Call
- func (mr *ChainMockRecorder) GetTx(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) GetUTXO(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) SetLastAccepted(arg0 any) *gomock.Call
- func (mr *ChainMockRecorder) SetTimestamp(arg0 any) *gomock.Call
- type Diff
- func (m *Diff) AddBlock(arg0 block.Block)
- func (m *Diff) AddTx(arg0 *txs.Tx)
- func (m *Diff) AddUTXO(arg0 *avax.UTXO)
- func (m *Diff) Apply(arg0 state.Chain)
- func (m *Diff) DeleteUTXO(arg0 ids.ID)
- func (m *Diff) EXPECT() *DiffMockRecorder
- func (m *Diff) GetBlock(arg0 ids.ID) (block.Block, error)
- func (m *Diff) GetBlockIDAtHeight(arg0 uint64) (ids.ID, error)
- func (m *Diff) GetLastAccepted() ids.ID
- func (m *Diff) GetTimestamp() time.Time
- func (m *Diff) GetTx(arg0 ids.ID) (*txs.Tx, error)
- func (m *Diff) GetUTXO(arg0 ids.ID) (*avax.UTXO, error)
- func (m *Diff) SetLastAccepted(arg0 ids.ID)
- func (m *Diff) SetTimestamp(arg0 time.Time)
- type DiffMockRecorder
- func (mr *DiffMockRecorder) AddBlock(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) AddTx(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) AddUTXO(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) Apply(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) DeleteUTXO(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) GetBlock(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) GetLastAccepted() *gomock.Call
- func (mr *DiffMockRecorder) GetTimestamp() *gomock.Call
- func (mr *DiffMockRecorder) GetTx(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) GetUTXO(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) SetLastAccepted(arg0 any) *gomock.Call
- func (mr *DiffMockRecorder) SetTimestamp(arg0 any) *gomock.Call
- type State
- func (m *State) Abort()
- func (m *State) AddBlock(arg0 block.Block)
- func (m *State) AddTx(arg0 *txs.Tx)
- func (m *State) AddUTXO(arg0 *avax.UTXO)
- func (m *State) Checksums() (ids.ID, ids.ID)
- func (m *State) Close() error
- func (m *State) Commit() error
- func (m *State) CommitBatch() (database.Batch, error)
- func (m *State) DeleteUTXO(arg0 ids.ID)
- func (m *State) EXPECT() *StateMockRecorder
- func (m *State) GetBlock(arg0 ids.ID) (block.Block, error)
- func (m *State) GetBlockIDAtHeight(arg0 uint64) (ids.ID, error)
- func (m *State) GetLastAccepted() ids.ID
- func (m *State) GetTimestamp() time.Time
- func (m *State) GetTx(arg0 ids.ID) (*txs.Tx, error)
- func (m *State) GetUTXO(arg0 ids.ID) (*avax.UTXO, error)
- func (m *State) InitializeChainState(arg0 ids.ID, arg1 time.Time) error
- func (m *State) IsInitialized() (bool, error)
- func (m *State) SetInitialized() error
- func (m *State) SetLastAccepted(arg0 ids.ID)
- func (m *State) SetTimestamp(arg0 time.Time)
- func (m *State) UTXOIDs(arg0 []byte, arg1 ids.ID, arg2 int) ([]ids.ID, error)
- type StateMockRecorder
- func (mr *StateMockRecorder) Abort() *gomock.Call
- func (mr *StateMockRecorder) AddBlock(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) AddTx(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) AddUTXO(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) Checksums() *gomock.Call
- func (mr *StateMockRecorder) Close() *gomock.Call
- func (mr *StateMockRecorder) Commit() *gomock.Call
- func (mr *StateMockRecorder) CommitBatch() *gomock.Call
- func (mr *StateMockRecorder) DeleteUTXO(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) GetBlock(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) GetLastAccepted() *gomock.Call
- func (mr *StateMockRecorder) GetTimestamp() *gomock.Call
- func (mr *StateMockRecorder) GetTx(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) GetUTXO(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) InitializeChainState(arg0, arg1 any) *gomock.Call
- func (mr *StateMockRecorder) IsInitialized() *gomock.Call
- func (mr *StateMockRecorder) SetInitialized() *gomock.Call
- func (mr *StateMockRecorder) SetLastAccepted(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) SetTimestamp(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) UTXOIDs(arg0, arg1, arg2 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain is a mock of Chain interface.
func (*Chain) EXPECT ¶
func (m *Chain) EXPECT() *ChainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Chain) GetBlockIDAtHeight ¶
GetBlockIDAtHeight mocks base method.
func (*Chain) GetLastAccepted ¶
GetLastAccepted mocks base method.
func (*Chain) GetTimestamp ¶
GetTimestamp mocks base method.
func (*Chain) SetLastAccepted ¶
SetLastAccepted mocks base method.
func (*Chain) SetTimestamp ¶
SetTimestamp mocks base method.
type ChainMockRecorder ¶
type ChainMockRecorder struct {
// contains filtered or unexported fields
}
ChainMockRecorder is the mock recorder for Chain.
func (*ChainMockRecorder) AddBlock ¶
func (mr *ChainMockRecorder) AddBlock(arg0 any) *gomock.Call
AddBlock indicates an expected call of AddBlock.
func (*ChainMockRecorder) AddTx ¶
func (mr *ChainMockRecorder) AddTx(arg0 any) *gomock.Call
AddTx indicates an expected call of AddTx.
func (*ChainMockRecorder) AddUTXO ¶
func (mr *ChainMockRecorder) AddUTXO(arg0 any) *gomock.Call
AddUTXO indicates an expected call of AddUTXO.
func (*ChainMockRecorder) DeleteUTXO ¶
func (mr *ChainMockRecorder) DeleteUTXO(arg0 any) *gomock.Call
DeleteUTXO indicates an expected call of DeleteUTXO.
func (*ChainMockRecorder) GetBlock ¶
func (mr *ChainMockRecorder) GetBlock(arg0 any) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*ChainMockRecorder) GetBlockIDAtHeight ¶
func (mr *ChainMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call
GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
func (*ChainMockRecorder) GetLastAccepted ¶
func (mr *ChainMockRecorder) GetLastAccepted() *gomock.Call
GetLastAccepted indicates an expected call of GetLastAccepted.
func (*ChainMockRecorder) GetTimestamp ¶
func (mr *ChainMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp.
func (*ChainMockRecorder) GetTx ¶
func (mr *ChainMockRecorder) GetTx(arg0 any) *gomock.Call
GetTx indicates an expected call of GetTx.
func (*ChainMockRecorder) GetUTXO ¶
func (mr *ChainMockRecorder) GetUTXO(arg0 any) *gomock.Call
GetUTXO indicates an expected call of GetUTXO.
func (*ChainMockRecorder) SetLastAccepted ¶
func (mr *ChainMockRecorder) SetLastAccepted(arg0 any) *gomock.Call
SetLastAccepted indicates an expected call of SetLastAccepted.
func (*ChainMockRecorder) SetTimestamp ¶
func (mr *ChainMockRecorder) SetTimestamp(arg0 any) *gomock.Call
SetTimestamp indicates an expected call of SetTimestamp.
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
Diff is a mock of Diff interface.
func (*Diff) EXPECT ¶
func (m *Diff) EXPECT() *DiffMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Diff) GetBlockIDAtHeight ¶
GetBlockIDAtHeight mocks base method.
func (*Diff) GetLastAccepted ¶
GetLastAccepted mocks base method.
func (*Diff) SetLastAccepted ¶
SetLastAccepted mocks base method.
func (*Diff) SetTimestamp ¶
SetTimestamp mocks base method.
type DiffMockRecorder ¶
type DiffMockRecorder struct {
// contains filtered or unexported fields
}
DiffMockRecorder is the mock recorder for Diff.
func (*DiffMockRecorder) AddBlock ¶
func (mr *DiffMockRecorder) AddBlock(arg0 any) *gomock.Call
AddBlock indicates an expected call of AddBlock.
func (*DiffMockRecorder) AddTx ¶
func (mr *DiffMockRecorder) AddTx(arg0 any) *gomock.Call
AddTx indicates an expected call of AddTx.
func (*DiffMockRecorder) AddUTXO ¶
func (mr *DiffMockRecorder) AddUTXO(arg0 any) *gomock.Call
AddUTXO indicates an expected call of AddUTXO.
func (*DiffMockRecorder) Apply ¶
func (mr *DiffMockRecorder) Apply(arg0 any) *gomock.Call
Apply indicates an expected call of Apply.
func (*DiffMockRecorder) DeleteUTXO ¶
func (mr *DiffMockRecorder) DeleteUTXO(arg0 any) *gomock.Call
DeleteUTXO indicates an expected call of DeleteUTXO.
func (*DiffMockRecorder) GetBlock ¶
func (mr *DiffMockRecorder) GetBlock(arg0 any) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*DiffMockRecorder) GetBlockIDAtHeight ¶
func (mr *DiffMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call
GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
func (*DiffMockRecorder) GetLastAccepted ¶
func (mr *DiffMockRecorder) GetLastAccepted() *gomock.Call
GetLastAccepted indicates an expected call of GetLastAccepted.
func (*DiffMockRecorder) GetTimestamp ¶
func (mr *DiffMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp.
func (*DiffMockRecorder) GetTx ¶
func (mr *DiffMockRecorder) GetTx(arg0 any) *gomock.Call
GetTx indicates an expected call of GetTx.
func (*DiffMockRecorder) GetUTXO ¶
func (mr *DiffMockRecorder) GetUTXO(arg0 any) *gomock.Call
GetUTXO indicates an expected call of GetUTXO.
func (*DiffMockRecorder) SetLastAccepted ¶
func (mr *DiffMockRecorder) SetLastAccepted(arg0 any) *gomock.Call
SetLastAccepted indicates an expected call of SetLastAccepted.
func (*DiffMockRecorder) SetTimestamp ¶
func (mr *DiffMockRecorder) SetTimestamp(arg0 any) *gomock.Call
SetTimestamp indicates an expected call of SetTimestamp.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is a mock of State interface.
func (*State) CommitBatch ¶
CommitBatch mocks base method.
func (*State) EXPECT ¶
func (m *State) EXPECT() *StateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*State) GetBlockIDAtHeight ¶
GetBlockIDAtHeight mocks base method.
func (*State) GetLastAccepted ¶
GetLastAccepted mocks base method.
func (*State) GetTimestamp ¶
GetTimestamp mocks base method.
func (*State) InitializeChainState ¶
InitializeChainState mocks base method.
func (*State) IsInitialized ¶
IsInitialized mocks base method.
func (*State) SetInitialized ¶
SetInitialized mocks base method.
func (*State) SetLastAccepted ¶
SetLastAccepted mocks base method.
func (*State) SetTimestamp ¶
SetTimestamp mocks base method.
type StateMockRecorder ¶
type StateMockRecorder struct {
// contains filtered or unexported fields
}
StateMockRecorder is the mock recorder for State.
func (*StateMockRecorder) Abort ¶
func (mr *StateMockRecorder) Abort() *gomock.Call
Abort indicates an expected call of Abort.
func (*StateMockRecorder) AddBlock ¶
func (mr *StateMockRecorder) AddBlock(arg0 any) *gomock.Call
AddBlock indicates an expected call of AddBlock.
func (*StateMockRecorder) AddTx ¶
func (mr *StateMockRecorder) AddTx(arg0 any) *gomock.Call
AddTx indicates an expected call of AddTx.
func (*StateMockRecorder) AddUTXO ¶
func (mr *StateMockRecorder) AddUTXO(arg0 any) *gomock.Call
AddUTXO indicates an expected call of AddUTXO.
func (*StateMockRecorder) Checksums ¶
func (mr *StateMockRecorder) Checksums() *gomock.Call
Checksums indicates an expected call of Checksums.
func (*StateMockRecorder) Close ¶
func (mr *StateMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*StateMockRecorder) Commit ¶
func (mr *StateMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*StateMockRecorder) CommitBatch ¶
func (mr *StateMockRecorder) CommitBatch() *gomock.Call
CommitBatch indicates an expected call of CommitBatch.
func (*StateMockRecorder) DeleteUTXO ¶
func (mr *StateMockRecorder) DeleteUTXO(arg0 any) *gomock.Call
DeleteUTXO indicates an expected call of DeleteUTXO.
func (*StateMockRecorder) GetBlock ¶
func (mr *StateMockRecorder) GetBlock(arg0 any) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*StateMockRecorder) GetBlockIDAtHeight ¶
func (mr *StateMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call
GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
func (*StateMockRecorder) GetLastAccepted ¶
func (mr *StateMockRecorder) GetLastAccepted() *gomock.Call
GetLastAccepted indicates an expected call of GetLastAccepted.
func (*StateMockRecorder) GetTimestamp ¶
func (mr *StateMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp.
func (*StateMockRecorder) GetTx ¶
func (mr *StateMockRecorder) GetTx(arg0 any) *gomock.Call
GetTx indicates an expected call of GetTx.
func (*StateMockRecorder) GetUTXO ¶
func (mr *StateMockRecorder) GetUTXO(arg0 any) *gomock.Call
GetUTXO indicates an expected call of GetUTXO.
func (*StateMockRecorder) InitializeChainState ¶
func (mr *StateMockRecorder) InitializeChainState(arg0, arg1 any) *gomock.Call
InitializeChainState indicates an expected call of InitializeChainState.
func (*StateMockRecorder) IsInitialized ¶
func (mr *StateMockRecorder) IsInitialized() *gomock.Call
IsInitialized indicates an expected call of IsInitialized.
func (*StateMockRecorder) SetInitialized ¶
func (mr *StateMockRecorder) SetInitialized() *gomock.Call
SetInitialized indicates an expected call of SetInitialized.
func (*StateMockRecorder) SetLastAccepted ¶
func (mr *StateMockRecorder) SetLastAccepted(arg0 any) *gomock.Call
SetLastAccepted indicates an expected call of SetLastAccepted.
func (*StateMockRecorder) SetTimestamp ¶
func (mr *StateMockRecorder) SetTimestamp(arg0 any) *gomock.Call
SetTimestamp indicates an expected call of SetTimestamp.