Documentation
¶
Index ¶
- type MockLedgerState
- func (ls MockLedgerState) CalculateRewards(pots common.AdaPots, snapshot common.RewardSnapshot, ...) (*common.RewardCalculationResult, error)
- func (ls MockLedgerState) GetAdaPots() common.AdaPots
- func (ls MockLedgerState) GetRewardSnapshot(epoch uint64) (common.RewardSnapshot, error)
- func (ls MockLedgerState) NetworkId() uint
- func (ls MockLedgerState) PoolCurrentState(poolKeyHash common.PoolKeyHash) (*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) UpdateAdaPots(pots common.AdaPots) 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
MockAdaPots common.AdaPots
MockRewardSnapshot common.RewardSnapshot
}
func (MockLedgerState) CalculateRewards ¶ added in v0.141.0
func (ls MockLedgerState) CalculateRewards( pots common.AdaPots, snapshot common.RewardSnapshot, params common.RewardParameters, ) (*common.RewardCalculationResult, error)
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)
Click to show internal directories.
Click to hide internal directories.