Versions in this module Expand all Collapse all v0 v0.9.2 Mar 18, 2022 Changes in this version + type DefaultFluxHelper struct + func NewDefaultFluxHelper(client pbstatedb.StateClient) *DefaultFluxHelper + func (f *DefaultFluxHelper) QueryProducers(ctx context.Context) ([]Producer, float64, error) + func (f *DefaultFluxHelper) QueryTotalActivatedStake(ctx context.Context) (float64, error) + type Global struct + BasePerTransactionNetUsage int + ContextFreeDiscountNetUsageDen int + ContextFreeDiscountNetUsageNum int + DeferredTrxExpirationWindow int + LastNameClose string + LastProducerScheduleSize zsw.Int64 + LastProducerScheduleUpdate string + MaxAuthorityDepth int + MaxBlockCPUUsage int + MaxBlockNetUsage int + MaxInlineActionDepth int + MaxInlineActionSize int + MaxRAMSize string + MaxTransactionCPUUsage int + MaxTransactionDelay int + MaxTransactionLifetime int + MaxTransactionNetUsage int + MinTransactionCPUUsage int + NetUsageLeeway int + PerblockBucket zsw.Int64 + PervoteBucket zsw.Int64 + TargetBlockCPUUsagePct int + TargetBlockNetUsagePct int + TotalActivatedStake zsw.Float64 + TotalProducerVoteWeight zsw.Float64 + TotalRAMBytesReserved zsw.Int64 + TotalRAMStake zsw.Int64 + TotalUnpaidBlocks zsw.Int64 + type Producer struct + IsActive bool + Location int + Owner string + ProducerKey string + TotalVotes float64 + URL string + UnpaidBlocks int + type StateHelper interface + QueryProducers func(ctx context.Context) ([]Producer, float64, error) + QueryTotalActivatedStake func(ctx context.Context) (float64, error) + type TestProducersResponse struct + type TestStateHelper struct + func NewTestStateHelper() *TestStateHelper + func (c *TestStateHelper) QueryProducers(ctx context.Context) ([]Producer, float64, error) + func (c *TestStateHelper) QueryTotalActivatedStake(ctx context.Context) (float64, error) + func (c *TestStateHelper) SetProducersResponse(producers []Producer, totalVotes float64, err error) + func (c *TestStateHelper) SetTotalActivatedStakeResponse(totalActivatedStake float64, err error) + type TestTotalActivatedStakeResponse struct