Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + const EWOQKeyFormattedStr + const EWOQKeyStr + const VMRQKeyFormattedStr + const VMRQKeyStr + var CChainAliases = []string + var EWOQKey *secp256k1.PrivateKey + var LocalParams = Params + var MainnetParams = Params + var PChainAliases = []string + var TahoeParams = Params + var VMAliases = map[ids.ID][]string + var VMRQKey *secp256k1.PrivateKey + var XChainAliases = []string + func AVAXAssetID(avmGenesisBytes []byte) (ids.ID, error) + func Aliases(genesisBytes []byte) (map[string][]string, map[ids.ID][]string, error) + func FromConfig(config *Config) ([]byte, ids.ID, error) + func FromFile(networkID uint32, filepath string, stakingCfg *StakingConfig) ([]byte, ids.ID, error) + func FromFlag(networkID uint32, genesisContent string, stakingCfg *StakingConfig) ([]byte, ids.ID, error) + func VMGenesis(genesisBytes []byte, vmID ids.ID) (*pchaintxs.Tx, error) + type Allocation struct + AVAXAddr ids.ShortID + ETHAddr ids.ShortID + InitialAmount uint64 + UnlockSchedule []LockedAmount + func (a Allocation) Compare(other Allocation) int + func (a Allocation) Unparse(networkID uint32) (UnparsedAllocation, error) + type Bootstrapper struct + ID ids.NodeID + IP ips.IPDesc + func GetBootstrappers(networkID uint32) []Bootstrapper + func SampleBootstrappers(networkID uint32, count int) []Bootstrapper + type Config struct + Allocations []Allocation + CChainGenesis string + InitialStakeDuration uint64 + InitialStakeDurationOffset uint64 + InitialStakedFunds []ids.ShortID + InitialStakers []Staker + Message string + NetworkID uint32 + StartTime uint64 + var LocalConfig Config + var MainnetConfig Config + var TahoeConfig 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.NodeID + RewardAddress ids.ShortID + Signer *signer.ProofOfPossession + 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 + AddPrimaryNetworkDelegatorFee uint64 + AddPrimaryNetworkValidatorFee uint64 + AddSubnetDelegatorFee uint64 + AddSubnetValidatorFee uint64 + CreateAssetTxFee uint64 + CreateBlockchainTxFee uint64 + CreateSubnetTxFee uint64 + TransformSubnetTxFee uint64 + TxFee uint64 + func GetTxFeeConfig(networkID uint32) TxFeeConfig + type UnparsedAllocation struct + AVAXAddr 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 ids.NodeID + RewardAddress string + Signer *signer.ProofOfPossession + func (us UnparsedStaker) Parse() (Staker, error)