Skip to content

Commit 3ab28a0

Browse files
authored
Merge pull request #1105 from UniqueNetwork/release-v10170080
2 parents 9a493a8 + b7c4c17 commit 3ab28a0

File tree

296 files changed

+26068
-41818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+26068
-41818
lines changed

.baedeker/collator-selection.jsonnet

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,31 @@ local relay = {
1010
validatorIdAssignment: 'staking',
1111
spec: {Genesis:{
1212
chain: relay_spec,
13-
modify:: m.genericRelay($),
13+
modify:: bdk.mixer([
14+
m.genericRelay($),
15+
m.simplifyGenesisName(),
16+
{
17+
_genesis+: {
18+
configuration+: {
19+
config+: {
20+
async_backing_params+: {
21+
allowed_ancestry_len: 3,
22+
max_candidate_depth: 4,
23+
},
24+
validation_upgrade_cooldown: 200,
25+
validation_upgrade_delay: 100,
26+
minimum_validation_upgrade_delay: 15,
27+
minimum_backing_votes: 2,
28+
needed_approvals: 2,
29+
scheduler_params+: {
30+
lookahead: 1,
31+
},
32+
},
33+
},
34+
},
35+
},
36+
m.unsimplifyGenesisName(),
37+
]),
1438
}},
1539
nodes: {
1640
[name]: {
@@ -35,9 +59,10 @@ local unique = {
3559
wantedKeys: 'para',
3660
extraArgs: [
3761
'--increase-future-pool',
62+
'--pool-type=fork-aware',
3863
],
3964
},
40-
for name in ['alpha', 'beta', 'gamma', 'delta']
65+
for name in ['alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta']
4166
},
4267
};
4368

.baedeker/external-runtime.jsonnet

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
local
2+
m = import 'baedeker-library/mixin/spec.libsonnet',
3+
;
4+
5+
function(relay_spec)
6+
7+
local 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+
m.simplifyGenesisName(),
16+
{
17+
_genesis+: {
18+
configuration+: {
19+
config+: {
20+
async_backing_params+: {
21+
allowed_ancestry_len: 3,
22+
max_candidate_depth: 4,
23+
},
24+
validation_upgrade_cooldown: 200,
25+
validation_upgrade_delay: 100,
26+
minimum_validation_upgrade_delay: 15,
27+
minimum_backing_votes: 2,
28+
needed_approvals: 2,
29+
scheduler_params+: {
30+
lookahead: 1,
31+
},
32+
},
33+
},
34+
},
35+
},
36+
m.unsimplifyGenesisName(),
37+
]),
38+
}},
39+
nodes: {
40+
[name]: {
41+
bin: $.bin,
42+
wantedKeys: 'relay',
43+
expectedDataPath: '/parity',
44+
},
45+
for name in ['alice', 'bob', 'charlie', 'dave', 'eve']
46+
},
47+
};
48+
49+
local unique = {
50+
name: 'unique',
51+
bin: 'bin/unique',
52+
paraId: 1001,
53+
spec: {Genesis:{
54+
modify:: bdk.mixer([
55+
m.genericPara($),
56+
m.simplifyGenesisName(),
57+
{
58+
_code: cql.toHex(importbin '../runtime.compact.compressed.wasm'),
59+
},
60+
m.unsimplifyGenesisName(),
61+
]),
62+
}},
63+
nodes: {
64+
[name]: {
65+
bin: $.bin,
66+
wantedKeys: 'para',
67+
extraArgs: [
68+
'--increase-future-pool',
69+
'--pool-type=fork-aware',
70+
],
71+
},
72+
for name in ['alpha', 'beta', 'gamma', 'delta']
73+
},
74+
};
75+
76+
relay + {
77+
parachains: {
78+
[para.name]: para,
79+
for para in [unique]
80+
},
81+
}

.baedeker/forkless-data.jsonnet

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,31 @@ local relay = {
1111
validatorIdAssignment: 'staking',
1212
spec: {Genesis:{
1313
chain: relay_spec,
14-
modify:: m.genericRelay($),
14+
modify:: bdk.mixer([
15+
m.genericRelay($),
16+
m.simplifyGenesisName(),
17+
{
18+
_genesis+: {
19+
configuration+: {
20+
config+: {
21+
async_backing_params+: {
22+
allowed_ancestry_len: 3,
23+
max_candidate_depth: 4,
24+
},
25+
validation_upgrade_cooldown: 200,
26+
validation_upgrade_delay: 100,
27+
minimum_validation_upgrade_delay: 15,
28+
minimum_backing_votes: 2,
29+
needed_approvals: 2,
30+
scheduler_params+: {
31+
lookahead: 1,
32+
},
33+
},
34+
},
35+
},
36+
},
37+
m.unsimplifyGenesisName(),
38+
]),
1539
}},
1640
nodes: {
1741
[name]: {
@@ -57,9 +81,10 @@ local unique = {
5781
wantedKeys: 'para',
5882
extraArgs: [
5983
'--increase-future-pool',
84+
'--pool-type=fork-aware',
6085
],
6186
},
62-
for name in ['alice', 'bob']
87+
for name in ['alice', 'bob', 'charlie']
6388
},
6489
};
6590

.baedeker/just-tests.jsonnet

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
local
2+
m = import 'baedeker-library/mixin/spec.libsonnet',
3+
rm = import 'baedeker-library/mixin/raw-spec.libsonnet',
4+
;
5+
6+
function(relay_spec, forked_spec, dump_spec)
7+
8+
local relay = {
9+
name: 'relay',
10+
bin: 'bin/polkadot',
11+
validatorIdAssignment: 'staking',
12+
spec: {Genesis:{
13+
chain: relay_spec,
14+
modify:: bdk.mixer([
15+
m.genericRelay($),
16+
m.simplifyGenesisName(),
17+
{
18+
_genesis+: {
19+
configuration+: {
20+
config+: {
21+
async_backing_params+: {
22+
allowed_ancestry_len: 3,
23+
max_candidate_depth: 4,
24+
},
25+
validation_upgrade_cooldown: 200,
26+
validation_upgrade_delay: 100,
27+
minimum_validation_upgrade_delay: 15,
28+
minimum_backing_votes: 2,
29+
needed_approvals: 2,
30+
scheduler_params+: {
31+
lookahead: 1,
32+
},
33+
},
34+
},
35+
},
36+
},
37+
m.unsimplifyGenesisName(),
38+
]),
39+
}},
40+
nodes: {
41+
[name]: {
42+
bin: $.bin,
43+
wantedKeys: 'relay',
44+
expectedDataPath: '/parity',
45+
},
46+
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie']
47+
},
48+
};
49+
50+
local unique = {
51+
name: 'unique',
52+
bin: 'bin/unique',
53+
paraId: 1001,
54+
spec: {Genesis:{
55+
modify:: bdk.mixer([
56+
m.genericPara($),
57+
m.simplifyGenesisName(),
58+
{
59+
_code: cql.toHex(importbin 'runtime.compact.compressed.wasm'),
60+
},
61+
m.unsimplifyGenesisName(),
62+
]),
63+
},
64+
Raw:{
65+
local modifyRaw = bdk.mixer([
66+
rm.resetNetworking($),
67+
rm.decodeSpec(),
68+
rm.polkaLaunchPara($),
69+
rm.reencodeSpec(),
70+
]),
71+
raw_spec: modifyRaw({
72+
name: "Unused",
73+
id: "%s_local" % forked_spec,
74+
bootNodes: error "override me",
75+
chainType: error "override me",
76+
telemetryEndpoints: error "override me",
77+
codeSubstitutes: error "override me",
78+
para_id: error "override me",
79+
relay_chain: "unused",
80+
genesis: {
81+
raw: {
82+
top: import "dump.json",
83+
childrenDefault: {},
84+
},
85+
},
86+
}),
87+
}},
88+
nodes: {
89+
[name]: {
90+
bin: $.bin,
91+
wantedKeys: 'para',
92+
extraArgs: [
93+
'--increase-future-pool',
94+
'--pool-type=fork-aware',
95+
],
96+
},
97+
for name in ['alice', 'bob', 'charlie']
98+
},
99+
};
100+
101+
relay + {
102+
parachains: {
103+
[para.name]: para,
104+
for para in [unique]
105+
},
106+
}

.baedeker/main-process.jsonnet

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
local
2+
m = import 'baedeker-library/mixin/spec.libsonnet',
3+
rm = import 'baedeker-library/mixin/raw-spec.libsonnet',
4+
;
5+
6+
function(relay_spec, forked_spec, dump_spec)
7+
8+
local relay = {
9+
name: 'relay',
10+
bin: 'bin/polkadot',
11+
validatorIdAssignment: 'staking',
12+
spec: {Genesis:{
13+
chain: relay_spec,
14+
modify:: bdk.mixer([
15+
m.genericRelay($),
16+
m.simplifyGenesisName(),
17+
{
18+
_genesis+: {
19+
configuration+: {
20+
config+: {
21+
async_backing_params+: {
22+
allowed_ancestry_len: 3,
23+
max_candidate_depth: 4,
24+
},
25+
validation_upgrade_cooldown: 200,
26+
validation_upgrade_delay: 100,
27+
minimum_validation_upgrade_delay: 15,
28+
minimum_backing_votes: 2,
29+
needed_approvals: 2,
30+
scheduler_params+: {
31+
lookahead: 1,
32+
},
33+
},
34+
},
35+
},
36+
},
37+
m.unsimplifyGenesisName(),
38+
]),
39+
}},
40+
nodes: {
41+
[name]: {
42+
bin: $.bin,
43+
wantedKeys: 'relay',
44+
expectedDataPath: '/parity',
45+
},
46+
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie']
47+
},
48+
};
49+
50+
local unique = {
51+
name: 'unique',
52+
bin: 'bin/unique',
53+
paraId: 1001,
54+
spec: {Raw:{
55+
local modifyRaw = bdk.mixer([
56+
rm.resetNetworking($),
57+
rm.decodeSpec(),
58+
rm.polkaLaunchPara($),
59+
rm.reencodeSpec(),
60+
]),
61+
raw_spec: modifyRaw({
62+
name: "Unused",
63+
id: "%s_local" % forked_spec,
64+
bootNodes: error "override me",
65+
chainType: error "override me",
66+
telemetryEndpoints: error "override me",
67+
codeSubstitutes: error "override me",
68+
para_id: error "override me",
69+
relay_chain: "unused",
70+
genesis: {
71+
raw: {
72+
top: import "dump.json",
73+
childrenDefault: {},
74+
},
75+
},
76+
}),
77+
}},
78+
nodes: {
79+
[name]: {
80+
bin: $.bin,
81+
wantedKeys: 'para',
82+
extraArgs: [
83+
'--increase-future-pool',
84+
'--pool-type=fork-aware',
85+
],
86+
},
87+
for name in ['alice', 'bob', 'charlie']
88+
},
89+
};
90+
91+
relay + {
92+
parachains: {
93+
[para.name]: para,
94+
for para in [unique]
95+
},
96+
}

0 commit comments

Comments
 (0)