Documentation ¶
Index ¶
- Variables
- type CustomAllocation
- type EmissionBalancer
- type Genesis
- type Rules
- func (r *Rules) ChainID() ids.ID
- func (*Rules) FetchCustom(string) (any, bool)
- func (r *Rules) GetBaseComputeUnits() uint64
- func (r *Rules) GetBaseWarpComputeUnits() uint64
- func (r *Rules) GetMaxBlockUnits() chain.Dimensions
- func (r *Rules) GetMinBlockGap() int64
- func (r *Rules) GetMinEmptyBlockGap() int64
- func (r *Rules) GetMinUnitPrice() chain.Dimensions
- func (r *Rules) GetOutgoingWarpComputeUnits() uint64
- func (*Rules) GetSponsorStateKeysMaxChunks() []uint16
- func (r *Rules) GetStorageKeyAllocateUnits() uint64
- func (r *Rules) GetStorageKeyReadUnits() uint64
- func (r *Rules) GetStorageKeyWriteUnits() uint64
- func (r *Rules) GetStorageValueAllocateUnits() uint64
- func (r *Rules) GetStorageValueReadUnits() uint64
- func (r *Rules) GetStorageValueWriteUnits() uint64
- func (r *Rules) GetUnitPriceChangeDenominator() chain.Dimensions
- func (r *Rules) GetValidityWindow() int64
- func (r *Rules) GetWarpComputeUnitsPerSigner() uint64
- func (*Rules) GetWarpConfig(ids.ID) (bool, uint64, uint64)
- func (r *Rules) GetWindowTargetUnits() chain.Dimensions
- func (r *Rules) NetworkID() uint32
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHRP = errors.New("invalid HRP") ErrInvalidTarget = errors.New("invalid target") )
Functions ¶
This section is empty.
Types ¶
type CustomAllocation ¶
type EmissionBalancer ¶
type Genesis ¶
type Genesis struct { // State Parameters StateBranchFactor merkledb.BranchFactor `json:"stateBranchFactor"` // Chain Parameters MinBlockGap int64 `json:"minBlockGap"` // ms MinEmptyBlockGap int64 `json:"minEmptyBlockGap"` // ms // Chain Fee Parameters MinUnitPrice chain.Dimensions `json:"minUnitPrice"` UnitPriceChangeDenominator chain.Dimensions `json:"unitPriceChangeDenominator"` WindowTargetUnits chain.Dimensions `json:"windowTargetUnits"` // 10s MaxBlockUnits chain.Dimensions `json:"maxBlockUnits"` // must be possible to reach before block too large // Tx Parameters ValidityWindow int64 `json:"validityWindow"` // ms // Tx Fee Parameters BaseComputeUnits uint64 `json:"baseUnits"` BaseWarpComputeUnits uint64 `json:"baseWarpUnits"` WarpComputeUnitsPerSigner uint64 `json:"warpUnitsPerSigner"` OutgoingWarpComputeUnits uint64 `json:"outgoingWarpComputeUnits"` StorageKeyReadUnits uint64 `json:"storageKeyReadUnits"` StorageValueReadUnits uint64 `json:"storageValueReadUnits"` // per chunk StorageKeyAllocateUnits uint64 `json:"storageKeyAllocateUnits"` StorageValueAllocateUnits uint64 `json:"storageValueAllocateUnits"` // per chunk StorageKeyWriteUnits uint64 `json:"storageKeyWriteUnits"` StorageValueWriteUnits uint64 `json:"storageValueWriteUnits"` // per chunk // Allocates CustomAllocation []*CustomAllocation `json:"customAllocation"` // Emission Balancer Info EmissionBalancer EmissionBalancer `json:"emissionBalancer"` }
func (*Genesis) GetStateBranchFactor ¶
func (g *Genesis) GetStateBranchFactor() merkledb.BranchFactor
type Rules ¶
type Rules struct {
// contains filtered or unexported fields
}
func (*Rules) GetBaseComputeUnits ¶
func (*Rules) GetBaseWarpComputeUnits ¶
func (*Rules) GetMaxBlockUnits ¶
func (r *Rules) GetMaxBlockUnits() chain.Dimensions
func (*Rules) GetMinBlockGap ¶
func (*Rules) GetMinEmptyBlockGap ¶
func (*Rules) GetMinUnitPrice ¶
func (r *Rules) GetMinUnitPrice() chain.Dimensions
func (*Rules) GetOutgoingWarpComputeUnits ¶
func (*Rules) GetSponsorStateKeysMaxChunks ¶
func (*Rules) GetStorageKeyAllocateUnits ¶
func (*Rules) GetStorageKeyReadUnits ¶
func (*Rules) GetStorageKeyWriteUnits ¶
func (*Rules) GetStorageValueAllocateUnits ¶
func (*Rules) GetStorageValueReadUnits ¶
func (*Rules) GetStorageValueWriteUnits ¶
func (*Rules) GetUnitPriceChangeDenominator ¶
func (r *Rules) GetUnitPriceChangeDenominator() chain.Dimensions
func (*Rules) GetValidityWindow ¶
func (*Rules) GetWarpComputeUnitsPerSigner ¶
func (*Rules) GetWindowTargetUnits ¶
func (r *Rules) GetWindowTargetUnits() chain.Dimensions
Click to show internal directories.
Click to hide internal directories.