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.Odyssey, sc *models.Sidecar) error
- func ConfigureInitialRewardConfig(app *application.Odyssey) (*rewardmanager.InitialRewardConfig, error)
- func CreateCustomSubnetConfig(app *application.Odyssey, subnetName string, genesisPath string, useRepo bool, ...) ([]byte, *models.Sidecar, error)
- func CreateEvmSubnetConfig(app *application.Odyssey, subnetName string, genesisPath string, ...) ([]byte, *models.Sidecar, error)
- func GetAvailableOdysseyGoVersions(app *application.Odyssey, rpcVersion int, url string) ([]string, error)
- func GetFeeConfig(config params.ChainConfig, app *application.Odyssey, useDefault bool) (params.ChainConfig, statemachine.StateDirection, error)
- func GetLatestOdysseyGoByProtocolVersion(app *application.Odyssey, rpcVersion int, url string) (string, error)
- func GetOdysseyGoVersionsForRPC(app *application.Odyssey, rpcVersion int, url string) ([]string, error)
- func GetRPCProtocolVersion(app *application.Odyssey, vmType models.VMType, vmVersion string) (int, error)
- func GetVMBinaryProtocolVersion(vmPath string) (int, error)
- func PrecompileToUpgradeString(p Precompile) string
- func SetCustomVMSourceCodeFields(app *application.Odyssey, 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" )
Variables ¶
View Source
var ( Difficulty = big.NewInt(0) // This is the current d-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 ErrNoOdygoVersion = errors.New("unable to find a compatible odysseygo version")
Functions ¶
func BuildCustomVM ¶
func BuildCustomVM( app *application.Odyssey, sc *models.Sidecar, ) error
func ConfigureInitialRewardConfig ¶
func ConfigureInitialRewardConfig(app *application.Odyssey) (*rewardmanager.InitialRewardConfig, error)
func CreateEvmSubnetConfig ¶
func GetAvailableOdysseyGoVersions ¶
func GetAvailableOdysseyGoVersions(app *application.Odyssey, rpcVersion int, url string) ([]string, error)
GetAvailableOdysseyGoVersions returns list of only available for download odyssey go versions, with latest version in first index
func GetFeeConfig ¶
func GetFeeConfig(config params.ChainConfig, app *application.Odyssey, useDefault bool) ( params.ChainConfig, statemachine.StateDirection, error, )
func GetOdysseyGoVersionsForRPC ¶
func GetOdysseyGoVersionsForRPC(app *application.Odyssey, rpcVersion int, url string) ([]string, error)
GetOdysseyGoVersionsForRPC returns list of compatible odyssey go versions for a specified rpcVersion
func GetRPCProtocolVersion ¶
func PrecompileToUpgradeString ¶
func PrecompileToUpgradeString(p Precompile) string
Types ¶
type Precompile ¶
type Precompile string
Click to show internal directories.
Click to hide internal directories.