test_ledger

package
v0.141.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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
	MockAdaPots           common.AdaPots
	MockRewardSnapshot    common.RewardSnapshot
}

func (MockLedgerState) CalculateRewards added in v0.141.0

func (MockLedgerState) GetAdaPots added in v0.141.0

func (ls MockLedgerState) GetAdaPots() common.AdaPots

func (MockLedgerState) GetRewardSnapshot added in v0.141.0

func (ls MockLedgerState) GetRewardSnapshot(
	epoch uint64,
) (common.RewardSnapshot, error)

func (MockLedgerState) NetworkId

func (ls MockLedgerState) NetworkId() uint

func (MockLedgerState) PoolCurrentState added in v0.134.0

func (ls MockLedgerState) PoolCurrentState(
	poolKeyHash common.PoolKeyHash,
) (*common.PoolRegistrationCertificate, *uint64, error)

func (MockLedgerState) SlotToTime added in v0.134.0

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.0

func (ls MockLedgerState) TimeToSlot(t time.Time) (uint64, error)

func (MockLedgerState) UpdateAdaPots added in v0.141.0

func (ls MockLedgerState) UpdateAdaPots(pots common.AdaPots) 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