Documentation ¶
Index ¶
- type MockStateResolver
- type MockedOutput
- func (m *MockedOutput) BaseTokenAmount() iotago.BaseToken
- func (m *MockedOutput) Clone() iotago.Output
- func (m *MockedOutput) Equal(_ iotago.Output) bool
- func (m *MockedOutput) FeatureSet() iotago.FeatureSet
- func (m *MockedOutput) Size() int
- func (m *MockedOutput) StorageScore(_ *iotago.StorageScoreStructure, _ iotago.StorageScoreFunc) iotago.StorageScore
- func (m *MockedOutput) StoredMana() iotago.Mana
- func (m *MockedOutput) Type() iotago.OutputType
- func (m *MockedOutput) UnlockConditionSet() iotago.UnlockConditionSet
- func (m *MockedOutput) WorkScore(_ *iotago.WorkScoreParameters) (iotago.WorkScore, error)
- type MockedState
- func (m *MockedState) IsReadOnly() bool
- func (m *MockedState) Output() iotago.Output
- func (m *MockedState) OutputID() iotago.OutputID
- func (m *MockedState) SlotBooked() iotago.SlotIndex
- func (m *MockedState) SlotCreated() iotago.SlotIndex
- func (m *MockedState) StateID() iotago.Identifier
- func (m *MockedState) String() string
- func (m *MockedState) Type() mempool.StateType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStateResolver ¶
type MockStateResolver struct {
// contains filtered or unexported fields
}
func New ¶
func New(initialStates ...mempool.State) *MockStateResolver
func (*MockStateResolver) AddOutputState ¶
func (s *MockStateResolver) AddOutputState(state mempool.State)
func (*MockStateResolver) Cleanup ¶
func (s *MockStateResolver) Cleanup()
func (*MockStateResolver) DestroyOutputState ¶
func (s *MockStateResolver) DestroyOutputState(stateID mempool.StateID)
func (*MockStateResolver) ResolveOutputState ¶
func (s *MockStateResolver) ResolveOutputState(reference mempool.StateReference) *promise.Promise[mempool.State]
type MockedOutput ¶
type MockedOutput struct{}
func (*MockedOutput) BaseTokenAmount ¶
func (m *MockedOutput) BaseTokenAmount() iotago.BaseToken
func (*MockedOutput) Clone ¶
func (m *MockedOutput) Clone() iotago.Output
func (*MockedOutput) FeatureSet ¶
func (m *MockedOutput) FeatureSet() iotago.FeatureSet
func (*MockedOutput) Size ¶
func (m *MockedOutput) Size() int
func (*MockedOutput) StorageScore ¶
func (m *MockedOutput) StorageScore(_ *iotago.StorageScoreStructure, _ iotago.StorageScoreFunc) iotago.StorageScore
func (*MockedOutput) StoredMana ¶
func (m *MockedOutput) StoredMana() iotago.Mana
func (*MockedOutput) Type ¶
func (m *MockedOutput) Type() iotago.OutputType
func (*MockedOutput) UnlockConditionSet ¶
func (m *MockedOutput) UnlockConditionSet() iotago.UnlockConditionSet
func (*MockedOutput) WorkScore ¶
func (m *MockedOutput) WorkScore(_ *iotago.WorkScoreParameters) (iotago.WorkScore, error)
type MockedState ¶
type MockedState struct {
// contains filtered or unexported fields
}
func NewMockedState ¶
func NewMockedState(transactionID iotago.TransactionID, index uint16) *MockedState
func (*MockedState) IsReadOnly ¶
func (m *MockedState) IsReadOnly() bool
func (*MockedState) Output ¶
func (m *MockedState) Output() iotago.Output
func (*MockedState) OutputID ¶
func (m *MockedState) OutputID() iotago.OutputID
func (*MockedState) SlotBooked ¶
func (m *MockedState) SlotBooked() iotago.SlotIndex
func (*MockedState) SlotCreated ¶
func (m *MockedState) SlotCreated() iotago.SlotIndex
func (*MockedState) StateID ¶
func (m *MockedState) StateID() iotago.Identifier
func (*MockedState) String ¶
func (m *MockedState) String() string
func (*MockedState) Type ¶
func (m *MockedState) Type() mempool.StateType
Click to show internal directories.
Click to hide internal directories.