Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalGenesisConfigJSON = `` /* 1047-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 `json:"startHeight"`
MinGasPrice uint64 `json:"minGasPrice"`
MaxGasPrice uint64 `json:"maxGasPrice"`
MaxTxGas uint64 `json:"maxTxGas"`
GasRebateRate uint64 `json:"gasRebateRate"`
MinTokenPledge *big.Int `json:"minTokenPledge"`
MinStakePledge *big.Int `json:"minStakePledge"`
NonTransferableBalance *big.Int `json:"nonTransferableBalance"`
Builders ids.IDList[ids.StakeSymbol] `json:"builders"`
}
func (*FeeConfig) SyntacticVerify ¶
func (*FeeConfig) ValidBuilder ¶
func (cfg *FeeConfig) ValidBuilder(builder ids.StakeSymbol) error
Click to show internal directories.
Click to hide internal directories.