Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique Chain 1.14 #1096

Open
wants to merge 158 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
252d797
update to polkadot 1.12
Sep 10, 2024
5aaf85b
update to polkadot 1.14
Sep 7, 2024
f095f68
metadata-hash change
Sep 10, 2024
cfec4f2
temp
Sep 10, 2024
337fc78
fixes
Sep 10, 2024
bdf4286
fix: quartz/unique register_validate_block
mrshiposha Sep 11, 2024
57bc80e
remove lookahead
Sep 11, 2024
6b3ab34
remove getrandom
Sep 11, 2024
3900c0b
fix: problem with node not starting and issue with conssensus hook
Sep 11, 2024
88c25d0
update Cargo.lock
Sep 11, 2024
69bbd56
undo default-features
Sep 12, 2024
a66f3b3
update polkadot types
Sep 13, 2024
f544220
update polkadot types to v11
Sep 13, 2024
86feec9
update polkadot types to v12
Sep 13, 2024
13545dd
update to polkadot 1.12
Sep 10, 2024
900de6c
update to polkadot 1.14
Sep 7, 2024
b4aa44a
metadata-hash change
Sep 10, 2024
85e4d33
disable default features for some dependencies
Sep 10, 2024
d633c75
fix node after update
Sep 10, 2024
0b6e8e8
fix quartz/unique register_validate_block
mrshiposha Sep 11, 2024
20f9746
remove lookahead
Sep 11, 2024
17152e9
remove getrandom
Sep 11, 2024
7809d5b
fix node consensus hook
Sep 11, 2024
98ee2b1
update Cargo.lock
Sep 11, 2024
00f7493
switch to own ORML fork
Sep 12, 2024
954c4a2
Merge remote-tracking branch 'origin/update-polkadot-types' into uniq…
vklachkov Nov 15, 2024
19e5714
update baedeker up to 0.1.4
vklachkov Sep 27, 2024
ab98e31
fix cumulus-primitives-aura dependency
vklachkov Sep 29, 2024
ceed567
fix some values in tests
vklachkov Sep 29, 2024
cc77e25
fix rustfmt
vklachkov Sep 29, 2024
1aa410d
fix collator-selection mock.rs
vklachkov Sep 29, 2024
97f6e38
fix timing in waiters for blocks
vklachkov Sep 30, 2024
180b7cf
fix nonce issues in collatorSelection.seqtest, add error to globalSetup
vklachkov Sep 30, 2024
0170cb5
calibrate Unique
vklachkov Oct 1, 2024
7327f8d
migrate to try-runtime-cli
vklachkov Oct 1, 2024
ea2a1ce
remove baedeker library submodule
vklachkov Oct 1, 2024
39ffa84
yarn fix
vklachkov Oct 1, 2024
2e6e647
make waitWithTimeout errors more useful
vklachkov Oct 1, 2024
8d27e31
add missing migrations
vklachkov Oct 2, 2024
d492441
ci: check errors in try runtime script
vklachkov Oct 2, 2024
d1e7495
create workaround for pallet_preimage version
vklachkov Oct 2, 2024
306b5e9
ci: fix try runtime script
vklachkov Oct 2, 2024
d3d9072
create workaround for pallet_membership and pallet_collective migrations
vklachkov Oct 2, 2024
27db869
create workaround for pallet_democracy migrations
vklachkov Oct 3, 2024
6e5b486
create workaround for pallet_xcm migrations
vklachkov Oct 3, 2024
651df58
fix pallet_refungible for Unique
vklachkov Oct 3, 2024
b6a5cf9
fix foreign-assets migration
mrshiposha Oct 4, 2024
51334a7
fix rustfmt
mrshiposha Oct 4, 2024
b50bcad
make foreign-assets independent from staging-xcm storage version
mrshiposha Oct 4, 2024
532fe9e
ci: pin try-runtime-cli to version 0.8.0
vklachkov Oct 7, 2024
4242701
ci: rework try-runtime workflow
BuddyGlas Oct 10, 2024
d2be8ee
wait for finalization in tests
Oct 10, 2024
f78fb9f
ci: disable xnft workflow for master
BuddyGlas Oct 11, 2024
98b47fc
ci: fix network launch in node-only-update
BuddyGlas Oct 11, 2024
dc3c817
debug "unable to create collection"
Oct 11, 2024
f0952f6
ci: try to migrate to assethub 1.14
BuddyGlas Oct 13, 2024
b7ae407
always set nonce in tests
Oct 13, 2024
c014c82
fix clippy warnings for whole project (except runtime-benchmarks)
vklachkov Oct 14, 2024
c6c0ffd
ci: fix try-runtime workflow
BuddyGlas Oct 14, 2024
576fb57
ci: try to fix xcm tests launch
BuddyGlas Oct 15, 2024
999a79d
ci: set new runner label for workflows
BuddyGlas Oct 23, 2024
595cb44
ci: use Parity's chain-spec-generator
BuddyGlas Oct 29, 2024
a45de7e
ci: fix number of relay node and fix xcm parachains launch
BuddyGlas Oct 29, 2024
ac02985
Merge pull request #1094 from UniqueNetwork/ci/fix-rewrites
BuddyGlas Oct 31, 2024
c73f924
ci: fix HydraX image name in xcm workflow
BuddyGlas Oct 31, 2024
8964827
ci: remove not needed legacyRpc for HydraX
BuddyGlas Oct 31, 2024
854a89d
ci: fix assethub for quartz and unique
vklachkov Nov 1, 2024
a5b39b3
fix tests globalSetup
Nov 4, 2024
ae7ac7f
update specVersion
Nov 15, 2024
53c1eda
improve globalSetup
vklachkov Nov 15, 2024
5b311c9
change base image for workflows
BuddyGlas Nov 18, 2024
23a6b30
fixed stack startup for node-only workflow
BuddyGlas Nov 18, 2024
f5f997c
fix logical bag for forkless-with-data workflow
BuddyGlas Nov 18, 2024
d5d383f
fix
BuddyGlas Nov 18, 2024
f4a6a28
fix: token symbols
Nov 18, 2024
8ee9f3d
fix: timings corresponding to block time
Nov 22, 2024
a4fedde
forkless-update-data with two branches
BuddyGlas Nov 18, 2024
0a47d83
Merge branch 'unique-polkadot-1.14' into ci/two-branches-release
BuddyGlas Nov 22, 2024
90bb6cb
Merge pull request #1099 from UniqueNetwork/ci/two-branches-release
BuddyGlas Nov 22, 2024
e0d4344
change cargo_home path in Dockerfiles
BuddyGlas Nov 23, 2024
3e71ab7
delete mount cache folders
BuddyGlas Nov 23, 2024
3825231
add Dockerfile-unique-base-image
BuddyGlas Nov 23, 2024
1ff2c81
fix container names for workflows
BuddyGlas Nov 23, 2024
34bcc99
try para_spec func
BuddyGlas Nov 25, 2024
78ff1f0
fix
BuddyGlas Nov 25, 2024
a2392d0
fix
BuddyGlas Nov 25, 2024
b46759e
fix
BuddyGlas Nov 25, 2024
65ce25f
try forkless
BuddyGlas Nov 25, 2024
4671267
fix sleep step
BuddyGlas Nov 25, 2024
5c10c5e
fix
BuddyGlas Nov 25, 2024
c6fb63d
feat: add force_reset_foreign_asset_location
mrshiposha Nov 21, 2024
362d33a
set ephemeral for snippets
BuddyGlas Nov 26, 2024
bd47950
fix
BuddyGlas Nov 26, 2024
7a9b109
set new repositories for workflows
BuddyGlas Nov 26, 2024
08d4fce
disable cache for docker builds
BuddyGlas Nov 26, 2024
bb5c345
fix
BuddyGlas Nov 26, 2024
cb09e87
switch relay from rococo to westend
BuddyGlas Nov 27, 2024
d82bf71
set long second counter for waiting block
BuddyGlas Nov 27, 2024
61b9df5
merged workflows into one main-process-update
BuddyGlas Nov 27, 2024
687a712
print balance before runtime upgrade in workflow
BuddyGlas Nov 27, 2024
1768811
fix: weights
mrshiposha Nov 27, 2024
2011082
fix: host functions
mrshiposha Nov 26, 2024
20ca740
fix: pallet-xcm benchmarking config
mrshiposha Nov 27, 2024
35bb081
fix: foreign-assets manager
mrshiposha Nov 27, 2024
fa004e3
fix: calibrate weight/price coeffs
mrshiposha Nov 28, 2024
e2477a2
try main process workflow with dump
BuddyGlas Nov 28, 2024
b4eff85
fix
BuddyGlas Nov 28, 2024
2372b5f
fix: build profile in Dokerfile
BuddyGlas Nov 28, 2024
225fa98
fix: update env for cargo
BuddyGlas Nov 28, 2024
c5129dd
fix
BuddyGlas Nov 28, 2024
2542e61
fix
BuddyGlas Nov 28, 2024
557cd6d
fix
BuddyGlas Nov 29, 2024
b3b0f6d
fix
BuddyGlas Nov 29, 2024
4721594
set balance for alice
BuddyGlas Nov 29, 2024
eca7f53
increase Alice balance
BuddyGlas Nov 29, 2024
ee24be5
fix account balance
BuddyGlas Nov 29, 2024
44b7db2
add mochawesome component with yarn
BuddyGlas Nov 30, 2024
8a22ed1
set xcm workflow to use 2 branches for build unique chains
BuddyGlas Dec 1, 2024
08c8994
enable asyc baking for ci
BuddyGlas Dec 3, 2024
8134368
setting nginx-dev baedeker module to use
BuddyGlas Dec 4, 2024
aefdaf7
correct jsonnet files
BuddyGlas Dec 4, 2024
d157dbc
update version for baedeker-action
BuddyGlas Dec 4, 2024
ac6da24
update baedeker action version
BuddyGlas Dec 4, 2024
5ccdc01
add step for remove all containers
BuddyGlas Dec 5, 2024
9d0bc02
update configuration for relay on ci
BuddyGlas Dec 5, 2024
c949076
add just-tests workflow
BuddyGlas Dec 9, 2024
34ac121
set codeRetentionPeriod for CI
BuddyGlas Dec 9, 2024
2419575
set configuration params with simplifyGenesisName function in CI
BuddyGlas Dec 9, 2024
faa0433
enable extraArgs for main workflow
BuddyGlas Dec 10, 2024
f951219
fix extraArgs
BuddyGlas Dec 10, 2024
dc0eb39
minor update spec version
BuddyGlas Dec 16, 2024
a67890d
update node_hash
BuddyGlas Dec 16, 2024
153ff96
try start stack with polkadot v1.7.2
BuddyGlas Dec 17, 2024
e587a12
test old dockerfile for mainnet
BuddyGlas Dec 17, 2024
9cf662f
fix old Dockerfile
BuddyGlas Dec 17, 2024
f57e39d
added an extra step for restarting nodes in main-process workflow
BuddyGlas Dec 17, 2024
badf396
replaced the variable names with assethab in CI
BuddyGlas Dec 19, 2024
5f2c621
updated all forkflows to meet current requirements
BuddyGlas Dec 19, 2024
4fdc629
tests: more tests for eth getCode of native collections
uandysmith Dec 19, 2024
b9a1de7
fix(tests): xcm tests and related stuff
mrshiposha Dec 11, 2024
0a8b28b
fix xcm workflows
BuddyGlas Dec 14, 2024
dc62b22
fix prepare action
BuddyGlas Dec 16, 2024
7cd179b
feat(tests): add relay and assethub xcm tests
mrshiposha Dec 17, 2024
5cb4fcd
try start stack with polkadot v1.7.2
BuddyGlas Dec 17, 2024
ca22c00
replaced the variable names with assethab in CI
BuddyGlas Dec 19, 2024
9fc4ba8
updated all forkflows to meet current requirements
BuddyGlas Dec 19, 2024
7737569
fix relay configuration for xcm workflows
BuddyGlas Dec 19, 2024
aa4921c
fix relay configuration for xcm opal workflow
BuddyGlas Dec 19, 2024
a8af122
fix governance tests
BuddyGlas Dec 19, 2024
b9189d4
fix
BuddyGlas Dec 19, 2024
b62d6a7
fix Dockerfile for dev tests
BuddyGlas Dec 19, 2024
1a8cad6
fix
BuddyGlas Dec 19, 2024
0ebc36c
delete relay spec files
BuddyGlas Dec 20, 2024
b9c65c6
fix yarn dev workflow
BuddyGlas Dec 20, 2024
ccfe032
fix xcm workflow
BuddyGlas Dec 21, 2024
a177a04
lint tests code corrects
BuddyGlas Dec 24, 2024
d4f8ab8
skip the irrelevant tests
BuddyGlas Dec 24, 2024
d312b62
add validators for xcm-unique
BuddyGlas Dec 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .baedeker/collator-selection.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,31 @@ local relay = {
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: relay_spec,
modify:: m.genericRelay($),
modify:: bdk.mixer([
m.genericRelay($),
m.simplifyGenesisName(),
{
_genesis+: {
configuration+: {
config+: {
async_backing_params+: {
allowed_ancestry_len: 3,
max_candidate_depth: 4,
},
validation_upgrade_cooldown: 200,
validation_upgrade_delay: 100,
minimum_validation_upgrade_delay: 15,
minimum_backing_votes: 2,
needed_approvals: 2,
scheduler_params+: {
lookahead: 1,
},
},
},
},
},
m.unsimplifyGenesisName(),
]),
}},
nodes: {
[name]: {
Expand All @@ -35,9 +59,10 @@ local unique = {
wantedKeys: 'para',
extraArgs: [
'--increase-future-pool',
'--pool-type=fork-aware',
],
},
for name in ['alpha', 'beta', 'gamma', 'delta']
for name in ['alpha', 'beta', 'gamma']
},
};

Expand Down
81 changes: 81 additions & 0 deletions .baedeker/external-runtime.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
local
m = import 'baedeker-library/mixin/spec.libsonnet',
;

function(relay_spec)

local relay = {
name: 'relay',
bin: 'bin/polkadot',
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: relay_spec,
modify:: bdk.mixer([
m.genericRelay($),
m.simplifyGenesisName(),
{
_genesis+: {
configuration+: {
config+: {
async_backing_params+: {
allowed_ancestry_len: 3,
max_candidate_depth: 4,
},
validation_upgrade_cooldown: 200,
validation_upgrade_delay: 100,
minimum_validation_upgrade_delay: 15,
minimum_backing_votes: 2,
needed_approvals: 2,
scheduler_params+: {
lookahead: 1,
},
},
},
},
},
m.unsimplifyGenesisName(),
]),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
expectedDataPath: '/parity',
},
for name in ['alice', 'bob', 'charlie', 'dave', 'eve']
},
};

local unique = {
name: 'unique',
bin: 'bin/unique',
paraId: 1001,
spec: {Genesis:{
modify:: bdk.mixer([
m.genericPara($),
m.simplifyGenesisName(),
{
_code: cql.toHex(importbin '../runtime.compact.compressed.wasm'),
},
m.unsimplifyGenesisName(),
]),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
'--increase-future-pool',
'--pool-type=fork-aware',
],
},
for name in ['alpha', 'beta', 'gamma', 'delta']
},
};

relay + {
parachains: {
[para.name]: para,
for para in [unique]
},
}
29 changes: 27 additions & 2 deletions .baedeker/forkless-data.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,31 @@ local relay = {
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: relay_spec,
modify:: m.genericRelay($),
modify:: bdk.mixer([
m.genericRelay($),
m.simplifyGenesisName(),
{
_genesis+: {
configuration+: {
config+: {
async_backing_params+: {
allowed_ancestry_len: 3,
max_candidate_depth: 4,
},
validation_upgrade_cooldown: 200,
validation_upgrade_delay: 100,
minimum_validation_upgrade_delay: 15,
minimum_backing_votes: 2,
needed_approvals: 2,
scheduler_params+: {
lookahead: 1,
},
},
},
},
},
m.unsimplifyGenesisName(),
]),
}},
nodes: {
[name]: {
Expand Down Expand Up @@ -57,9 +81,10 @@ local unique = {
wantedKeys: 'para',
extraArgs: [
'--increase-future-pool',
'--pool-type=fork-aware',
],
},
for name in ['alice', 'bob']
for name in ['alice', 'bob', 'charlie']
},
};

Expand Down
106 changes: 106 additions & 0 deletions .baedeker/just-tests.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
local
m = import 'baedeker-library/mixin/spec.libsonnet',
rm = import 'baedeker-library/mixin/raw-spec.libsonnet',
;

function(relay_spec, forked_spec, dump_spec)

local relay = {
name: 'relay',
bin: 'bin/polkadot',
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: relay_spec,
modify:: bdk.mixer([
m.genericRelay($),
m.simplifyGenesisName(),
{
_genesis+: {
configuration+: {
config+: {
async_backing_params+: {
allowed_ancestry_len: 3,
max_candidate_depth: 4,
},
validation_upgrade_cooldown: 200,
validation_upgrade_delay: 100,
minimum_validation_upgrade_delay: 15,
minimum_backing_votes: 2,
needed_approvals: 2,
scheduler_params+: {
lookahead: 1,
},
},
},
},
},
m.unsimplifyGenesisName(),
]),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
expectedDataPath: '/parity',
},
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie']
},
};

local unique = {
name: 'unique',
bin: 'bin/unique',
paraId: 1001,
spec: {Genesis:{
modify:: bdk.mixer([
m.genericPara($),
m.simplifyGenesisName(),
{
_code: cql.toHex(importbin 'runtime.compact.compressed.wasm'),
},
m.unsimplifyGenesisName(),
]),
},
Raw:{
local modifyRaw = bdk.mixer([
rm.resetNetworking($),
rm.decodeSpec(),
rm.polkaLaunchPara($),
rm.reencodeSpec(),
]),
raw_spec: modifyRaw({
name: "Unused",
id: "%s_local" % forked_spec,
bootNodes: error "override me",
chainType: error "override me",
telemetryEndpoints: error "override me",
codeSubstitutes: error "override me",
para_id: error "override me",
relay_chain: "unused",
genesis: {
raw: {
top: import "dump.json",
childrenDefault: {},
},
},
}),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
'--increase-future-pool',
'--pool-type=fork-aware',
],
},
for name in ['alice', 'bob', 'charlie']
},
};

relay + {
parachains: {
[para.name]: para,
for para in [unique]
},
}
96 changes: 96 additions & 0 deletions .baedeker/main-process.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
local
m = import 'baedeker-library/mixin/spec.libsonnet',
rm = import 'baedeker-library/mixin/raw-spec.libsonnet',
;

function(relay_spec, forked_spec, dump_spec)

local relay = {
name: 'relay',
bin: 'bin/polkadot',
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: relay_spec,
modify:: bdk.mixer([
m.genericRelay($),
m.simplifyGenesisName(),
{
_genesis+: {
configuration+: {
config+: {
async_backing_params+: {
allowed_ancestry_len: 3,
max_candidate_depth: 4,
},
validation_upgrade_cooldown: 200,
validation_upgrade_delay: 100,
minimum_validation_upgrade_delay: 15,
minimum_backing_votes: 2,
needed_approvals: 2,
scheduler_params+: {
lookahead: 1,
},
},
},
},
},
m.unsimplifyGenesisName(),
]),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
expectedDataPath: '/parity',
},
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie']
},
};

local unique = {
name: 'unique',
bin: 'bin/unique',
paraId: 1001,
spec: {Raw:{
local modifyRaw = bdk.mixer([
rm.resetNetworking($),
rm.decodeSpec(),
rm.polkaLaunchPara($),
rm.reencodeSpec(),
]),
raw_spec: modifyRaw({
name: "Unused",
id: "%s_local" % forked_spec,
bootNodes: error "override me",
chainType: error "override me",
telemetryEndpoints: error "override me",
codeSubstitutes: error "override me",
para_id: error "override me",
relay_chain: "unused",
genesis: {
raw: {
top: import "dump.json",
childrenDefault: {},
},
},
}),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
'--increase-future-pool',
'--pool-type=fork-aware',
],
},
for name in ['alice', 'bob', 'charlie']
},
};

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