Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalGenesisConfigJSON = `` /* 1091-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type Allocation ¶
type ChainConfig ¶
type ChainConfig struct { ChainID uint64 `json:"chainID"` MaxTotalSupply *big.Int `json:"maxTotalSupply"` Message string `json:"message"` FeeConfig *FeeConfig `json:"feeConfig"` // external assignment fields FeeConfigs []*FeeConfig `json:"feeConfigs"` FeeConfigID ids.DataID `json:"feeConfigID"` NameServiceID ids.ModelID `json:"nameServiceID"` }
func (*ChainConfig) AppendFeeConfig ¶
func (c *ChainConfig) AppendFeeConfig(data []byte) (*FeeConfig, error)
func (*ChainConfig) Fee ¶
func (c *ChainConfig) Fee(height uint64) *FeeConfig
func (*ChainConfig) IsNameService ¶
func (c *ChainConfig) IsNameService(id ids.ModelID) bool
type FeeConfig ¶
type FeeConfig struct { StartHeight uint64 `cbor:"sh" json:"startHeight"` MinGasPrice uint64 `cbor:"min" json:"minGasPrice"` MaxGasPrice uint64 `cbor:"max" json:"maxGasPrice"` MaxTxGas uint64 `cbor:"mtg" json:"maxTxGas"` GasRebateRate uint64 `cbor:"grr" json:"gasRebateRate"` MinTokenPledge *big.Int `cbor:"mtp" json:"minTokenPledge"` MinStakePledge *big.Int `cbor:"msp" json:"minStakePledge"` NonTransferableBalance *big.Int `cbor:"ntb" json:"nonTransferableBalance"` Builders ids.IDList[ids.Address] `cbor:"bs" json:"builders"` }
func (*FeeConfig) SyntacticVerify ¶
Click to show internal directories.
Click to hide internal directories.