Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- Variables
- func BuildCustomVM(app *application.Avalanche, sc *models.Sidecar) error
- func ConfigureInitialRewardConfig(app *application.Avalanche) (*rewardmanager.InitialRewardConfig, error)
- func CreateCustomSubnetConfig(app *application.Avalanche, subnetName string, genesisPath string, ...) ([]byte, *models.Sidecar, error)
- func CreateEvmSubnetConfig(app *application.Avalanche, subnetName string, genesisPath string, ...) ([]byte, *models.Sidecar, error)
- func GetAvailableAvalancheGoVersions(app *application.Avalanche, rpcVersion int, url string) ([]string, error)
- func GetAvalancheGoVersionsForRPC(app *application.Avalanche, rpcVersion int, url string) ([]string, error)
- func GetFeeConfig(config params.ChainConfig, app *application.Avalanche, useDefault bool) (params.ChainConfig, statemachine.StateDirection, error)
- func GetLatestAvalancheGoByProtocolVersion(app *application.Avalanche, rpcVersion int, url string) (string, error)
- func GetRPCProtocolVersion(app *application.Avalanche, vmType models.VMType, vmVersion string) (int, error)
- func GetSubnetAirdropKeyName(subnetName string) string
- func GetVMBinaryProtocolVersion(vmPath string) (int, error)
- func GetVMVersion(app *application.Avalanche, vmName string, repoName string, vmVersion string) (string, error)
- func PrecompileToUpgradeString(p Precompile) string
- func SetCustomVMSourceCodeFields(app *application.Avalanche, sc *models.Sidecar, customVMRepoURL string, ...) error
- type Precompile
Constants ¶
View Source
const ( NativeMint = "Native Minting" ContractAllowList = "Contract Deployment Allow List" TxAllowList = "Transaction Allow List" FeeManager = "Manage Fee Settings" RewardManager = "RewardManagerConfig" Warp = "Warp" )
Variables ¶
View Source
var ( Difficulty = big.NewInt(0) // This is the current c-chain gas config StarterFeeConfig = commontype.FeeConfig{ GasLimit: big.NewInt(8_000_000), MinBaseFee: big.NewInt(25_000_000_000), TargetGas: big.NewInt(15_000_000), BaseFeeChangeDenominator: big.NewInt(36), MinBlockGasCost: big.NewInt(0), MaxBlockGasCost: big.NewInt(1_000_000), TargetBlockRate: 2, BlockGasCostStep: big.NewInt(200_000), } PrefundedEwoqAddress = common.HexToAddress("0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC") PrefundedEwoqPrivate = "56289e99c94b6912bfc12adc093c9b51124f0dc54ac7a766b2bc5ccf558d8027" )
View Source
var ErrNoAvagoVersion = errors.New("unable to find a compatible avalanchego version")
Functions ¶
func BuildCustomVM ¶ added in v1.3.4
func BuildCustomVM( app *application.Avalanche, sc *models.Sidecar, ) error
func ConfigureInitialRewardConfig ¶ added in v1.1.3
func ConfigureInitialRewardConfig( app *application.Avalanche, ) (*rewardmanager.InitialRewardConfig, error)
func CreateCustomSubnetConfig ¶ added in v0.2.1
func CreateEvmSubnetConfig ¶ added in v0.2.1
func CreateEvmSubnetConfig( app *application.Avalanche, subnetName string, genesisPath string, subnetEVMVersion string, getRPCVersionFromBinary bool, subnetEVMChainID uint64, subnetEVMTokenSymbol string, useSubnetEVMDefaults bool, useWarp bool, teleporterInfo *teleporter.Info, ) ([]byte, *models.Sidecar, error)
func GetAvailableAvalancheGoVersions ¶ added in v1.2.7
func GetAvailableAvalancheGoVersions(app *application.Avalanche, rpcVersion int, url string) ([]string, error)
GetAvailableAvalancheGoVersions returns list of only available for download avalanche go versions, with latest version in first index
func GetAvalancheGoVersionsForRPC ¶ added in v1.2.7
func GetAvalancheGoVersionsForRPC(app *application.Avalanche, rpcVersion int, url string) ([]string, error)
GetAvalancheGoVersionsForRPC returns list of compatible avalanche go versions for a specified rpcVersion
func GetFeeConfig ¶ added in v1.1.0
func GetFeeConfig(config params.ChainConfig, app *application.Avalanche, useDefault bool) ( params.ChainConfig, statemachine.StateDirection, error, )
func GetLatestAvalancheGoByProtocolVersion ¶ added in v1.0.1
func GetRPCProtocolVersion ¶ added in v1.0.1
func GetSubnetAirdropKeyName ¶ added in v1.5.0
func GetVMBinaryProtocolVersion ¶ added in v1.3.1
func GetVMVersion ¶ added in v1.5.3
func PrecompileToUpgradeString ¶ added in v1.1.0
func PrecompileToUpgradeString(p Precompile) string
func SetCustomVMSourceCodeFields ¶ added in v1.3.4
Types ¶
type Precompile ¶ added in v1.1.0
type Precompile string
Click to show internal directories.
Click to hide internal directories.