Skip to content

Commit

Permalink
modify collator selection workflow for baedeker
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Sep 4, 2023
1 parent 3e9a8d1 commit 6e72793
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 176 deletions.
42 changes: 42 additions & 0 deletions .baedeker/collator-selection-opal.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
local
m = import 'baedeker-library/mixin/spec.libsonnet',
;

local relay = {
name: 'relay',
bin: 'bin/polkadot',
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: 'westend-local',
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
},
for name in ['alice', 'bob']
},
};

local opal = {
name: 'opal',
bin: 'bin/unique',
paraId: 1001,
spec: {Genesis:{
modify:: m.genericPara($),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
},
for name in ['alice', 'bob']
},
};

relay + {
parachains: {
[para.name]: para,
for para in [opal]
},
}
42 changes: 42 additions & 0 deletions .baedeker/collator-selection-quartz.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
local
m = import 'baedeker-library/mixin/spec.libsonnet',
;

local relay = {
name: 'relay',
bin: 'bin/polkadot',
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: 'westend-local',
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
},
for name in ['alice', 'bob']
},
};

local quartz = {
name: 'quartz',
bin: 'bin/unique',
paraId: 1001,
spec: {Genesis:{
modify:: m.genericPara($),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
},
for name in ['alice', 'bob']
},
};

relay + {
parachains: {
[para.name]: para,
for para in [quartz]
},
}
42 changes: 42 additions & 0 deletions .baedeker/collator-selection-sapphire.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
local
m = import 'baedeker-library/mixin/spec.libsonnet',
;

local relay = {
name: 'relay',
bin: 'bin/polkadot',
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: 'westend-local',
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
},
for name in ['alice', 'bob']
},
};

local sapphire = {
name: 'sapphire',
bin: 'bin/unique',
paraId: 1001,
spec: {Genesis:{
modify:: m.genericPara($),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
},
for name in ['alice', 'bob']
},
};

relay + {
parachains: {
[para.name]: para,
for para in [sapphire]
},
}
Loading

0 comments on commit 6e72793

Please sign in to comment.