genesis

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2020 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EverestConfig = Config{
		NetworkID:     constants.EverestID,
		MintAddresses: []string{},
		FundedAddresses: []string{
			"everest182njwsuws28ualy459kevrqsea60q2fuu5a0eg",
			"everest1zmnhjp4tpwgswup2h88p5xk68wcuwu84skzsn5",
			"everest1kws7vz6sx97muqd47vgfcee089uxrmvxn38dvd",
			"everest188ln97cvvuwwq53w950ftwcze23y4zxp44mwws",
			"everest1n65k8ku5y0u5u5r0uj9pjp8jngl7us5trnd5e8",
			"everest1dmk86nt3t5k9a4gg59v53hmasnt6zccv9v0stm",
			"everest1xttsgfp2rxd6uy49mwq3ddndq6gwg2lkkkhp3x",
			"everest1az7r2jgp3n8pvdef7zmjezpdmsdrejrracmxxy",
			"everest1htq0cjv9cxegd072zdstslltufsxmnn3qcye5u",
			"everest1xjd2mumr6d95p0jpy42895q98fsfq3l57m0de4",
			"everest175s34288jhmuqldy4sxyj5xttn8e6kkpmk76pd",
			"everest1fm6em48f89tunnek5u5w46ycjfvmn65zjm7wwm",
			"everest1ftxr08f5yqh6nd4qcsag6fcyvnefznrltufk8d",
			"everest18g2ysqpuuumtv2sacxcs5nt4xa5tq8jw8efmsg",
			"everest16lxq0tq3s4l734j6vc49mvy529ntuflqsxwk0t",
			"everest1dxjwrm4pt5a5z5d37zfpms5tle93net7gjdqwh",
			"everest1n79250d2z7yna0tev9wvjntkfzl7kdwz6sar3u",
			"everest1x6l36he46hk87zlmgfcy955870992yyud0wkr2",
			"everest1cszqlxlrwcmjfjveyv4zah9crfa667fqsx9jse",
			"everest16pjhy7kvf594yca3x4a2cps2rj89vykmz9rhvf",
			"everest1wh5mu68zjwztefgywd2a5axn50fyfcl8hxpfp2",
			"everest1yukenswz8qz3mz4sey6hc50xzyur7gwgcsx9up",
			"everest1z5hdqwewf6gz6erqe2zpchn4drqvch2fcakryy",
			"everest1nnm27zu0njsufg882dlgjkmd7f04jy7pv6d7fw",
			"everest1pms76z8pslchjsx8ham8wz58e77yd9me0hh728",
			"everest1txa0eycfkyx47dqmv564amr382wwk9y85q4rxv",
			"everest1gmm3mtufvu04zmfndftl5par4zkva66g8swlcg",
			"everest1z3g63cuqy57v2jw9zrrcjs05tq33r39d44lxux",
			"everest1ce6xglqcnnrn84qhayfm75eur9s4m4404m7c3y",
			"everest1e9vz05qjfqut0wtvr4jwns5x2stkzhazfla84l",
			"everest1f00w9grssez3nv9w280sqy7hnk3eu49rvxuevw",
			"everest137rave5r7xlfexhlecsx6xslelnsr77x4p9u40",
			"everest1n7tzmmy7px80kaynsch598e0k8kpc9kktvnug5",
			"everest1jwzme4a5972jz77uy40vvhwk0v5pg44psv5swg",
			"everest1ttq2g3w4pa9jf5vcm9lazrlldsqkjlglwhspxa",
			"everest1980ckg4w3p39s35zky0j3sr0m7xhcxh5m3kcr9",
			"everest152c3ufanf4zdlg735gcd9k32ycvfc7edwcq443",
			"everest1wdld6zv0gvxrjhe0jf3vlh8qyqxr7msz9za874",
			"everest1mlkt4exvj0f4fmqsf6nf63sx6u5m2fvrkc26hm",
			"everest1hdcuunv4xyadd8udvna79eq5e5uy8c4ty24jem",
			"everest1hc8ff8m67rzar0eqx9d6xnv6wl3fr66d6n4e7m",
			"everest1gyf5scjflqm67uw3h58mru66symtk33vpvcryq",
			"everest1c6vtdvdvtuxpllql80mfasn7rfj8dtuaygw2kn",
			"everest1m4l75cnyz7mmmcnk8t280fcauz9sux6fra23r5",
			"everest1nvl0x5r0kvn96ez80aqetkqvmavug45ecz2qv4",
			"everest1jhz0runhkyph8txy2227zcahszcyrwfguulh5r",
			"everest1a23shpjrf5l02q3n088nxxkxlmj2gqln6yaz7g",
			"everest1p5ulzqjqstph7tk47rdjq8cfdf3k2f4l4z2d72",
			"everest1nhypt6cxj6genlze8pswuf8v7gx2sy2khhxw8e",
			"everest1hwcus87dp3ucp6sd67jl0vcv9tearvcg3egwdc",
			"everest1n2gdqj5v20gcucg9c2khtxpx4rku5nvfvx5g4j",
			"everest1ak6c62lq023g3z3pcpascp4g6n3cls6km6trx3",
			"everest1szhj9fd5xm457wpw288t0ys70ergm9twfpg2u3",
			"everest1cpryzmqcfct2afcpaswuz0dm72kpveysf8f3lm",
			"everest1dur09g3un57ry0wrk65cp8cgqzy8dudpnez4dd",
			"everest1xll6v7jmm3l4h4q98z2mglrhv54pnd9jecgwuk",
			"everest1hv29fttsv4kdheu94e3x68we0j2mvzra99eyz0",
			"everest1vh4rhzxh3edqn2mhmslehnkqhgzf22r0tc83af",
			"everest14lc7t8fv5htn59mx2evyedxy0036l9lm5vszf5",
			"everest1ma053nws2xf5frxzcpx8dnzs9j3cvxtm7lmhse",
			"everest17e8req3kqu0ndgsrru0afw0afz0relguztdgnk",
			"everest1jgk0k5zct6pfaskten2fcm9n7k5zm3ym76v52w",
			"everest18lmuqusw8ngu5e8kfa8pn9fjrgj97henrael0u",
			"everest1hcg8j4azwdww7a4a2klqse3xmuka09lcz87aml",
			"everest1zvv6ycru9d9uwaznes3zc77e2389wvf5lqjzg5",
			"everest1acxacuu7770p5pez39yzrrgerumuc8ptjyx6vs",
			"everest1s5xxq6d5kqth3z9z9j4a7dplademfg8fdvxrp3",
			"everest179ajjus5gqqq9e25mldqcel9lypdy20lcct9d5",
			"everest16jnuwtzg5fgmpmxvwzmymyk5ch0wpxsp6y7wvr",
			"everest1zx64d2wln5ewvtpe0vadxdpzvpgf57qwfn8357",
			"everest1m40dskpwh79dkhglt4knzhwsx4zywf2qdq22qt",
		},
		StakerIDs: []string{
			"NodeID-NpagUxt6KQiwPch9Sd4osv8kD1TZnkjdk",
			"NodeID-2m38qc95mhHXtrhjyGbe7r2NhniqHHJRB",
			"NodeID-LQwRLm4cbJ7T2kxcxp4uXCU5XD8DFrE1C",
			"NodeID-hArafGhY2HFTbwaaVh1CSCUCUCiJ2Vfb",
			"NodeID-4QBwET5o8kUhvt9xArhir4d3R25CtmZho",
			"NodeID-HGZ8ae74J3odT8ESreAdCtdnvWG1J4X5n",
			"NodeID-4KXitMCoE9p2BHA6VzXtaTxLoEjNDo2Pt",
			"NodeID-JyE4P8f4cTryNV8DCz2M81bMtGhFFHexG",
			"NodeID-EzGaipqomyK9UKx9DBHV6Ky3y68hoknrF",
			"NodeID-CYKruAjwH1BmV3m37sXNuprbr7dGQuJwG",
			"NodeID-LegbVf6qaMKcsXPnLStkdc1JVktmmiDxy",
			"NodeID-FesGqwKq7z5nPFHa5iwZctHE5EZV9Lpdq",
			"NodeID-BFa1padLXBj7VHa2JYvYGzcTBPQGjPhUy",
			"NodeID-4B4rc5vdD1758JSBYL1xyvE5NHGzz6xzH",
			"NodeID-EDESh4DfZFC15i613pMtWniQ9arbBZRnL",
			"NodeID-CZmZ9xpCzkWqjAyS7L4htzh5Lg6kf1k18",
			"NodeID-CTtkcXvVdhpNp6f97LEUXPwsRD3A2ZHqP",
			"NodeID-84KbQHSDnojroCVY7vQ7u9Tx7pUonPaS",
			"NodeID-JjvzhxnLHLUQ5HjVRkvG827ivbLXPwA9u",
			"NodeID-4CWTbdvgXHY1CLXqQNAp22nJDo5nAmts6",
		},
		EVMBytes: evmGenesisBytes,
		Message:  "Now I am become Death, the destroyer of worlds.",
	}
	DenaliConfig = Config{
		NetworkID: constants.DenaliID,
		MintAddresses: []string{
			"denali1tzw0pxhlerlpu7ajws86cv6tzmm5lsaz47zfcs",
		},
		FundedAddresses: []string{
			"denali1vxn8qxc4wjaumd5zefh40vjx2npjeysmcmp58k",
			"denali1hcak2mtd758w0jdty76svreu84kj59fxaw96vx",
			"denali1gmf872653xykm8j7et2k8mxld046arrjslw3ep",
			"denali1gvvymfqhwns6zpy2fwnjwmfl2hkj9k4zys3sda",
			"denali19p2cct7hyz2yyh3pewltgkdr6yj67vfzehlys9",
			"denali10snn22afww6pkek89xpxu9varewxe26dgmyen9",
			"denali1y2j34gqw4nc459cmluq560xxms3l8ek8px4h2g",
			"denali13j2sd0dfngaznc5e4dzk02yhp4g3et6svhf32v",
			"denali1qc4ly2zz6zq95sd7r9r53q8hzywj0j55d6wpqk",
			"denali1qy8awey258pffs4xxl7pjs6mm8yvhhw9haqx7k",
		},
		StakerIDs: []string{
			"NodeID-LQwRLm4cbJ7T2kxcxp4uXCU5XD8DFrE1C",
			"NodeID-hArafGhY2HFTbwaaVh1CSCUCUCiJ2Vfb",
			"NodeID-2m38qc95mhHXtrhjyGbe7r2NhniqHHJRB",
			"NodeID-4QBwET5o8kUhvt9xArhir4d3R25CtmZho",
			"NodeID-NpagUxt6KQiwPch9Sd4osv8kD1TZnkjdk",
		},
		EVMBytes: evmGenesisBytes,
	}
	CascadeConfig = Config{
		NetworkID: constants.CascadeID,
		MintAddresses: []string{
			"cascade1tzw0pxhlerlpu7ajws86cv6tzmm5lsazrac34s",
		},
		FundedAddresses: []string{
			"cascade1vxn8qxc4wjaumd5zefh40vjx2npjeysmwcmv2k",
			"cascade1hcak2mtd758w0jdty76svreu84kj59fxtdlzpx",
			"cascade1gmf872653xykm8j7et2k8mxld046arrjxu5f5p",
			"cascade1gvvymfqhwns6zpy2fwnjwmfl2hkj9k4zjntgqa",
			"cascade19p2cct7hyz2yyh3pewltgkdr6yj67vfz059ua9",
			"cascade10snn22afww6pkek89xpxu9varewxe26d7c7p79",
			"cascade1y2j34gqw4nc459cmluq560xxms3l8ek8h9008g",
			"cascade13j2sd0dfngaznc5e4dzk02yhp4g3et6s65nf8v",
			"cascade1qc4ly2zz6zq95sd7r9r53q8hzywj0j55me5edk",
			"cascade1qy8awey258pffs4xxl7pjs6mm8yvhhw9p767nk",
		},
		StakerIDs: []string{
			"NodeID-NX4zVkuiRJZYe6Nzzav7GXN3TakUet3Co",
			"NodeID-CMsa8cMw4eib1Hb8GG4xiUKAq5eE1BwUX",
			"NodeID-DsMP6jLhi1MkDVc3qx9xx9AAZWx8e87Jd",
			"NodeID-N86eodVZja3GEyZJTo3DFUPGpxEEvjGHs",
			"NodeID-EkKeGSLUbHrrtuayBtbwgWDRUiAziC3ao",
		},
		EVMBytes: evmGenesisBytes,
	}
	LocalConfig = Config{
		NetworkID:     constants.LocalID,
		MintAddresses: []string{},
		FundedAddresses: []string{

			"local18jma8ppw3nhx5r4ap8clazz0dps7rv5u00z96u",
		},
		StakerIDs: []string{
			"NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg",
			"NodeID-MFrZFVCXPv5iCn6M9K6XduxGTYp891xXZ",
			"NodeID-NFBbbJ4qCmNaCzeW7sxErhvWqvEQMnYcN",
			"NodeID-GWPcbFJZFfZreETSoWjPimr846mXEKCtu",
			"NodeID-P7oB2McjBGgW2NXXWVYjV8JEDFoW9xDE5",
		},
		EVMBytes: localEVMGenesisBytes,
		Message:  "Hello World!",
	}
	CustomConfig = Config{
		NetworkID:     math.MaxUint32,
		MintAddresses: []string{},
		FundedAddresses: []string{

			"custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p",
		},
		StakerIDs: []string{
			"NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg",
			"NodeID-MFrZFVCXPv5iCn6M9K6XduxGTYp891xXZ",
			"NodeID-NFBbbJ4qCmNaCzeW7sxErhvWqvEQMnYcN",
			"NodeID-GWPcbFJZFfZreETSoWjPimr846mXEKCtu",
			"NodeID-P7oB2McjBGgW2NXXWVYjV8JEDFoW9xDE5",
		},
		EVMBytes: localEVMGenesisBytes,
	}
)

Hard coded genesis constants

View Source
var (
	EVMID = ids.NewID([32]byte{'e', 'v', 'm'})
)

ID of the EVM VM

Functions

func AVAXAssetID added in v0.6.1

func AVAXAssetID(avmGenesisBytes []byte) (ids.ID, error)

AVAXAssetID ...

func Aliases

func Aliases(networkID uint32) (map[string][]string, map[[32]byte][]string, map[[32]byte][]string, error)

Aliases returns the default aliases based on the network ID

func FromConfig

func FromConfig(config *Config) ([]byte, ids.ID, error)

FromConfig returns:

  1. The byte representation of the genesis state of the platform chain (ie the genesis state of the network)
  2. The asset ID of AVAX

func Genesis

func Genesis(networkID uint32) ([]byte, ids.ID, error)

Genesis returns:

  1. The byte representation of the genesis state of the platform chain (ie the genesis state of the network)
  2. The asset ID of AVAX

func NetworkID

func NetworkID(networkName string) (uint32, error)

NetworkID returns the ID of the network with name [networkName]

func NetworkName

func NetworkName(networkID uint32) string

NetworkName returns a human readable name for the network with ID [networkID]

func VMGenesis

func VMGenesis(networkID uint32, vmID ids.ID) (*platformvm.Tx, error)

VMGenesis ...

Types

type Config

type Config struct {
	NetworkID                                                   uint32
	MintAddresses, FundedAddresses, StakerIDs                   []string
	ParsedMintAddresses, ParsedFundedAddresses, ParsedStakerIDs []ids.ShortID
	EVMBytes                                                    []byte
	Message                                                     string
}

Config contains the genesis addresses used to construct a genesis

func GetConfig

func GetConfig(networkID uint32) *Config

GetConfig ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL