Documentation ¶
Index ¶
- Constants
- Variables
- type CustomAllocation
- 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) GetColdStorageKeyModificationUnits() uint64
- func (r *Rules) GetColdStorageKeyReadUnits() uint64
- func (r *Rules) GetColdStorageValueModificationUnits() uint64
- func (r *Rules) GetColdStorageValueReadUnits() 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 (r *Rules) GetStorageKeyCreateUnits() uint64
- func (r *Rules) GetStorageValueCreateUnits() uint64
- func (r *Rules) GetUnitPriceChangeDenominator() chain.Dimensions
- func (r *Rules) GetValidityWindow() int64
- func (r *Rules) GetWarmStorageKeyModificationUnits() uint64
- func (r *Rules) GetWarmStorageKeyReadUnits() uint64
- func (r *Rules) GetWarmStorageValueModificationUnits() uint64
- func (r *Rules) GetWarmStorageValueReadUnits() uint64
- 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 ¶
View Source
const (
StateLockupField = "state_lockup"
)
Variables ¶
View Source
var ( ErrInvalidHRP = errors.New("invalid HRP") ErrInvalidTarget = errors.New("invalid target") )
Functions ¶
This section is empty.
Types ¶
type CustomAllocation ¶
type Genesis ¶
type Genesis struct { // Address prefix HRP string `json:"hrp"` // 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"` ColdStorageKeyReadUnits uint64 `json:"coldStorageKeyReadUnits"` ColdStorageValueReadUnits uint64 `json:"coldStorageValueReadUnits"` // per chunk WarmStorageKeyReadUnits uint64 `json:"warmStorageKeyReadUnits"` WarmStorageValueReadUnits uint64 `json:"warmStorageValueReadUnits"` // per chunk StorageKeyCreateUnits uint64 `json:"storageKeyCreateUnits"` StorageValueCreateUnits uint64 `json:"storageKeyValueUnits"` // per chunk ColdStorageKeyModificationUnits uint64 `json:"coldStorageKeyModificationUnits"` ColdStorageValueModificationUnits uint64 `json:"coldStorageValueModificationUnits"` // per chunk WarmStorageKeyModificationUnits uint64 `json:"warmStorageKeyModificationUnits"` WarmStorageValueModificationUnits uint64 `json:"warmStorageValueModificationUnits"` // per chunk // Allocations CustomAllocation []*CustomAllocation `json:"customAllocation"` }
type Rules ¶
type Rules struct {
// contains filtered or unexported fields
}
func (*Rules) GetBaseComputeUnits ¶ added in v0.3.0
func (*Rules) GetBaseWarpComputeUnits ¶ added in v0.3.0
func (*Rules) GetColdStorageKeyModificationUnits ¶ added in v0.3.0
func (*Rules) GetColdStorageKeyReadUnits ¶ added in v0.3.0
func (*Rules) GetColdStorageValueModificationUnits ¶ added in v0.3.0
func (*Rules) GetColdStorageValueReadUnits ¶ added in v0.3.0
func (*Rules) GetMaxBlockUnits ¶
func (r *Rules) GetMaxBlockUnits() chain.Dimensions
func (*Rules) GetMinBlockGap ¶ added in v0.3.0
func (*Rules) GetMinEmptyBlockGap ¶ added in v0.3.0
func (*Rules) GetMinUnitPrice ¶
func (r *Rules) GetMinUnitPrice() chain.Dimensions
func (*Rules) GetOutgoingWarpComputeUnits ¶ added in v0.3.0
func (*Rules) GetStorageKeyCreateUnits ¶ added in v0.3.0
func (*Rules) GetStorageValueCreateUnits ¶ added in v0.3.0
func (*Rules) GetUnitPriceChangeDenominator ¶
func (r *Rules) GetUnitPriceChangeDenominator() chain.Dimensions
func (*Rules) GetValidityWindow ¶
func (*Rules) GetWarmStorageKeyModificationUnits ¶ added in v0.3.0
func (*Rules) GetWarmStorageKeyReadUnits ¶ added in v0.3.0
func (*Rules) GetWarmStorageValueModificationUnits ¶ added in v0.3.0
func (*Rules) GetWarmStorageValueReadUnits ¶ added in v0.3.0
func (*Rules) GetWarpComputeUnitsPerSigner ¶ added in v0.3.0
func (*Rules) GetWindowTargetUnits ¶
func (r *Rules) GetWindowTargetUnits() chain.Dimensions
Click to show internal directories.
Click to hide internal directories.