Skip to content

Commit

Permalink
bump version and remove typedefs after metadata V14 (#89)
Browse files Browse the repository at this point in the history
* to be released as 0.6.6
* add protocol-id `nctr-k, nctr-w, nctr-r`
* regenesis
* pimp regenesis script to default to non-destrictive action
* re-genesis with GA artifact encointer-collator 0.6.6-d43a118-x86_64-linux-gnu run
  • Loading branch information
brenzi authored Nov 28, 2021
1 parent fa12f3b commit cfeaecf
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 124 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ This is the repository to run encointer as a parachain in the rococo-v1 testnet.
* [Sybil Defense Demo](docs/sybil-demo)
* [Native Downward-/ Upward Token Tx Demo](docs/downward-upward-native-token-tx)

## Polkadot-JS type extensions

[typedefs.json](typedefs.json)

## Launch a local setup including a Relay Chain and a Parachain

### Launch the Relay Chain (Local Rococo Testnet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,5 @@
"maxMessageSize": 512
}
],
"types": "./typedefs.json",
"finalization": false
}
1 change: 0 additions & 1 deletion polkadot-launch/launch-rococo-local-with-launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@
],
"hrmpChannels": [
],
"types": "./typedefs.json",
"finalization": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,5 @@
"maxMessageSize": 512
}
],
"types": "./typedefs.json",
"finalization": false
}
1 change: 0 additions & 1 deletion polkadot-launch/launch-rococo-with-launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@
],
"hrmpChannels": [
],
"types": "./typedefs.json",
"finalization": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@
],
"hrmpChannels": [
],
"types": "./typedefs.json",
"finalization": false
}
1 change: 0 additions & 1 deletion polkadot-launch/launch-westend-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@
],
"hrmpChannels": [
],
"types": "./typedefs.json",
"finalization": false
}
2 changes: 1 addition & 1 deletion polkadot-parachains/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "encointer-collator"
# align major.minor revision with the runtimes. bump patch revision ad lib. make this the github release tag
version = "0.6.5"
version = "0.6.6"
authors = ["Encointer <[email protected]>"]
build = "build.rs"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion polkadot-parachains/encointer-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = 'encointer-runtime'
# major.minor revision must match collator node
# patch revision must match runtime spec_version
version = '0.6.2'
version = '0.6.3'
authors = ["Encointer <[email protected]>"]
license = "GPL-3.0"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion polkadot-parachains/encointer-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("encointer-parachain"),
impl_name: create_runtime_str!("encointer-parachain"),
authoring_version: 1,
spec_version: 2,
spec_version: 3,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
6 changes: 3 additions & 3 deletions polkadot-parachains/res/encointer-kusama.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions polkadot-parachains/res/encointer-rococo.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions polkadot-parachains/res/encointer-westend.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions polkadot-parachains/res/launch-kusama.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions polkadot-parachains/res/launch-rococo.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions polkadot-parachains/res/launch-westend.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion polkadot-parachains/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fn chain_spec<F: Fn() -> GenesisConfig + 'static + Send + Sync, GenesisConfig>(
// telemetry endpoints
None,
// protocol id
None,
Some(&format!("nctr-{}", relay_chain.to_string().chars().nth(0).unwrap())),
// properties
Some(relay_chain.properties()),
Extensions { relay_chain: relay_chain.to_string(), para_id: para_id.into() },
Expand Down
10 changes: 5 additions & 5 deletions scripts/update_hardcoded_chain_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
RES_DIR = "polkadot-parachains/res"


def main(migrate_genesis: bool):
def main(regenesis: bool):
for s in SPECS:
chain_spec = s["chain_id"]

Expand All @@ -68,7 +68,7 @@ def main(migrate_genesis: bool):

new_json["bootNodes"] = orig_json["bootNodes"]

if migrate_genesis:
if not regenesis:
new_json["genesis"] = orig_json["genesis"]

# go to beginning of the file to overwrite
Expand All @@ -86,9 +86,9 @@ def main(migrate_genesis: bool):

if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--migrate-genesis', help='Create entirely new chain spec, not preserving previous genesis state', action='store_true')
parser.add_argument('--regenesis', help='Overwrite genesis state in chain spec. Use this for resetting chains entirely', action='store_true')

args = parser.parse_args()
print(f'Updating chain specs migrating-genesis == {args.migrate_genesis}')
print(f'Updating chain specs. Preserving bootnodes. (re-genesis == {args.regenesis})')

main(args.migrate_genesis)
main(args.regenesis)
88 changes: 0 additions & 88 deletions typedefs.json

This file was deleted.

0 comments on commit cfeaecf

Please sign in to comment.