Documentation
¶
Index ¶
- type MockLedgerState
- func (ls MockLedgerState) NetworkId() uint
- func (ls MockLedgerState) PoolCurrentState(poolKeyHash []byte) (*common.PoolRegistrationCertificate, *uint64, error)
- func (ls MockLedgerState) SlotToTime(slot uint64) (time.Time, error)
- func (ls MockLedgerState) StakeRegistration(stakingKey []byte) ([]common.StakeRegistrationCertificate, error)
- func (ls MockLedgerState) TimeToSlot(t time.Time) (uint64, error)
- func (ls MockLedgerState) UtxoById(id common.TransactionInput) (common.Utxo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLedgerState ¶
type MockLedgerState struct { MockNetworkId uint MockUtxos []common.Utxo MockStakeRegistration []common.StakeRegistrationCertificate MockPoolRegistration []common.PoolRegistrationCertificate }
func (MockLedgerState) NetworkId ¶
func (ls MockLedgerState) NetworkId() uint
func (MockLedgerState) PoolCurrentState ¶ added in v0.134.1
func (ls MockLedgerState) PoolCurrentState( poolKeyHash []byte, ) (*common.PoolRegistrationCertificate, *uint64, error)
func (MockLedgerState) SlotToTime ¶ added in v0.134.1
func (ls MockLedgerState) SlotToTime(slot uint64) (time.Time, error)
func (MockLedgerState) StakeRegistration ¶
func (ls MockLedgerState) StakeRegistration( stakingKey []byte, ) ([]common.StakeRegistrationCertificate, error)
func (MockLedgerState) TimeToSlot ¶ added in v0.134.1
func (ls MockLedgerState) TimeToSlot(t time.Time) (uint64, error)
func (MockLedgerState) UtxoById ¶
func (ls MockLedgerState) UtxoById( id common.TransactionInput, ) (common.Utxo, error)
Click to show internal directories.
Click to hide internal directories.