Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2022 Changes in this version + var EWOQKey *crypto.PrivateKeySECP256K1R + var FujiParams = Params + var LocalParams = Params + var MainnetParams = Params + var VMRQKey *crypto.PrivateKeySECP256K1R + func Aliases(genesisBytes []byte) (map[string][]string, map[ids.ID][]string, error) + func DJTXAssetID(avmGenesisBytes []byte) (ids.ID, error) + func FromConfig(config *Config) ([]byte, ids.ID, error) + func FromFile(networkID uint32, filepath string) ([]byte, ids.ID, error) + func FromFlag(networkID uint32, genesisContent string) ([]byte, ids.ID, error) + func GetCChainAliases() []string + func GetVMAliases() map[ids.ID][]string + func GetXChainAliases() []string + func SampleBeacons(networkID uint32, count int) ([]string, []string) + func VMGenesis(genesisBytes []byte, vmID ids.ID) (*platformvm.Tx, error) + type Allocation struct + DJTXAddr ids.ShortID + ETHAddr ids.ShortID + InitialAmount uint64 + UnlockSchedule []LockedAmount + func (a Allocation) Unparse(networkID uint32) (UnparsedAllocation, error) + type Config struct + Allocations []Allocation + CChainGenesis string + InitialStakeDuration uint64 + InitialStakeDurationOffset uint64 + InitialStakedFunds []ids.ShortID + InitialStakers []Staker + Message string + NetworkID uint32 + StartTime uint64 + var FujiConfig Config + var LocalConfig Config + var MainnetConfig Config + func GetConfig(networkID uint32) *Config + func GetConfigContent(genesisContent string) (*Config, error) + func GetConfigFile(fp string) (*Config, error) + func (c *Config) InitialSupply() (uint64, error) + func (c Config) Unparse() (UnparsedConfig, error) + type LockedAmount struct + Amount uint64 + Locktime uint64 + type Params struct + type Staker struct + DelegationFee uint32 + NodeID ids.ShortID + RewardAddress ids.ShortID + func (s Staker) Unparse(networkID uint32) (UnparsedStaker, error) + type StakingConfig struct + MaxStakeDuration time.Duration + MaxValidatorStake uint64 + MinDelegationFee uint32 + MinDelegatorStake uint64 + MinStakeDuration time.Duration + MinValidatorStake uint64 + RewardConfig reward.Config + UptimeRequirement float64 + func GetStakingConfig(networkID uint32) StakingConfig + type TxFeeConfig struct + CreateAssetTxFee uint64 + CreateBlockchainTxFee uint64 + CreateSubnetTxFee uint64 + TxFee uint64 + func GetTxFeeConfig(networkID uint32) TxFeeConfig + type UnparsedAllocation struct + DJTXAddr string + ETHAddr string + InitialAmount uint64 + UnlockSchedule []LockedAmount + func (ua UnparsedAllocation) Parse() (Allocation, error) + type UnparsedConfig struct + Allocations []UnparsedAllocation + CChainGenesis string + InitialStakeDuration uint64 + InitialStakeDurationOffset uint64 + InitialStakedFunds []string + InitialStakers []UnparsedStaker + Message string + NetworkID uint32 + StartTime uint64 + func (uc UnparsedConfig) Parse() (Config, error) + type UnparsedStaker struct + DelegationFee uint32 + NodeID string + RewardAddress string + func (us UnparsedStaker) Parse() (Staker, error)