test_ledger

package
v0.125.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 2 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) PoolRegistration

func (ls MockLedgerState) PoolRegistration(
	poolKeyHash []byte,
) ([]common.PoolRegistrationCertificate, error)

func (MockLedgerState) StakeRegistration

func (ls MockLedgerState) StakeRegistration(
	stakingKey []byte,
) ([]common.StakeRegistrationCertificate, 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