git.delta.rocks / unique-network / refs/commits / 59a15efbde76

difftreelog

source

.baedeker/xcm-opal-async-backing.jsonnet1.1 KiBsourcehistory
1local2m = import 'baedeker-library/mixin/spec.libsonnet',3;45function(relay_spec)67local relay = {8	name: 'relay',9	bin: 'bin/polkadot',10	validatorIdAssignment: 'staking',11	spec: {Genesis:{12		chain: relay_spec,13		modify:: bdk.mixer([14			m.genericRelay($),15			{16				genesis+: {17					runtimeGenesis+: {18						runtime+: {19							configuration+: {20								config+: {21									async_backing_params+: {22										allowed_ancestry_len: 3,23										max_candidate_depth: 4,24									},25									scheduling_lookahead:5,26									max_validators_per_core:1,27									minimum_backing_votes:1,28									needed_approvals:1,29									on_demand_cores:5,30								},31							},32						},33					},34				},35			},36		]),37	}},38	nodes: {39		[name]: {40			bin: $.bin,41			wantedKeys: 'relay',42		},43		for name in ['alice', 'bob', 'charlie', 'dave', 'eve']44	},45};4647local opal = {48	name: 'opal',49	bin: 'bin/unique',50	paraId: 1001,51	spec: {Genesis:{52		modify:: m.genericPara($),53	}},54	nodes: {55		[name]: {56			bin: $.bin,57			wantedKeys: 'para',58		},59		for name in ['alice', 'bob', 'charlie', 'dave', 'eve']60	},61};6263relay + {64	parachains: {65		[para.name]: para,66		for para in [opal]67	},68}