test_ledger

package
v0.135.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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