ledgertests

package
v1.0.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Equal

func (m *MockedOutput) Equal(_ iotago.Output) bool

func (*MockedOutput) FeatureSet

func (m *MockedOutput) FeatureSet() iotago.FeatureSet

func (*MockedOutput) Size

func (m *MockedOutput) Size() int

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

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

Jump to

Keyboard shortcuts

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