mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 06:08:01 +00:00
e304662f04
* Update references * update deps * set substrate deps for pallet-asset-tx-payment * add DisabledValidatorsThreshold to parachain template * add DisabledValidatorsThreshold to statemint runtimes * adjust imports * update Cargo-lock * add DisabledValidatorsThreshold to mock config * cargo +nightly fmt * adjust on_disabled type * remove on_chain_votes function in ParachainHost impl * remove ScrapedOnChainVotes * bump polkadot-collator version Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * update Cargo.lock * set spec_versions to 500 * Statemine cannot execute. * disallow XCM execute on statemint * cargo fmt * remove unnecessary dep on node-primitives * select parachains-common/std feature when building rococo-runtime with std * adjust Statemint to the three digit spec_version format * Add script to generate simple changelogs (#668) * Update weights from v4 for v5 comparison (#673) * updates weights * pallet_unique benchmarks added + weights upstream from v4 * Fix benchmarks after Parachain Template (#677) * updates weights * pallet_unique benchmarks added + weights upstream from v4 * benchmarks fix for parachain template * Weights updates for Statemine v5 (#682) * updates weights * pallet_unique benchmarks added + weights upstream from v4 * weights updates for statemine v5 * mention Storage in construct_runtime macro for pallet-xcm (#680) * Use pallet-xcm for version wrapping (#689) * use PolkadotXcm for XcmRouter WrapVersion * use PolkadotXcm for version wrapping Co-authored-by: Bryan Chen <xlchen1291@gmail.com> * patch weight for batch_all from rerun * Runtime version bump to v503 (#694) * adjust genesis value generation scripts to output entries array + add script to derive encoded call * add script to generate shell spec from runtime wasm * Ensure a bad datastream cannot cause problems (#701) * Ensure a bad datastream cannot cause problems * Formatting * Formatting * update Polkadot (to 0.9.11 169bab55d) * bump spec versions * Allow Queries and Subscriptions Fixes Formatting * fix build * make fmt happy * statemint imports * slight naming changes in script * add shell genesis data + wasm + chainspec * adjust generated shell spec with production config values * update Substrate and Polkadot to master * fix deps * swap out bootnodes for statemint shell * add a script for verifying the shell chain spec * add sha checksum for head data * remove verification script * remove hex wasm file * update Substrate and Polkadot again and fix compilation * update and fix lock file * formatting * remove redundant dispatch_as weight Co-authored-by: Bastian Köcher <info@kchr.de> Co-authored-by: Chevdor <chevdor@users.noreply.github.com> Co-authored-by: Gav Wood <gavin@parity.io> Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com> Co-authored-by: Bryan Chen <xlchen1291@gmail.com> Co-authored-by: joepetrowski <joe@parity.io>
38 lines
1.4 KiB
Bash
Executable File
38 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
usage() {
|
|
echo Usage:
|
|
echo "$0 <srtool compressed runtime>"
|
|
exit 1
|
|
}
|
|
|
|
set -e
|
|
|
|
rt_path=$1
|
|
|
|
binary="./target/release/polkadot-collator"
|
|
|
|
# build the chain spec we'll manipulate
|
|
$binary build-spec --chain shell > shell-spec-plain.json
|
|
|
|
# convert runtime to hex
|
|
cat $rt_path | od -A n -v -t x1 | tr -d ' \n' > shell-hex.txt
|
|
|
|
# replace the runtime in the spec with the given runtime and set some values to production
|
|
cat shell-spec-plain.json | jq --rawfile code shell-hex.txt '.genesis.runtime.system.code = ("0x" + $code)' \
|
|
| jq '.name = "Shell"' \
|
|
| jq '.id = "shell"' \
|
|
| jq '.chainType = "Live"' \
|
|
| jq '.bootNodes = ["/ip4/34.65.116.156/tcp/30334/p2p/12D3KooWMdwvej593sntpXcxpUaFcsjc1EpCr5CL1JMoKmEhgj1N", "/ip4/34.65.105.127/tcp/30334/p2p/12D3KooWRywSWa2sQpcRuLhSeNSEs6bepLGgcdxFg8P7jtXRuiYf", "/ip4/34.65.142.204/tcp/30334/p2p/12D3KooWDGnPd5PzgvcbSwXsCBN3kb1dWbu58sy6R7h4fJGnZtq5", "/ip4/34.65.32.100/tcp/30334/p2p/12D3KooWSzHX7A3t6BwUQrq8R9ZVWLrfyYgkYLfpKMcRs14oFSgc"]' \
|
|
| jq '.relay_chain = "polkadot"' \
|
|
> edited-shell-plain.json
|
|
|
|
# build a raw spec
|
|
$binary build-spec --chain edited-shell-plain.json --raw > shell-spec-raw.json
|
|
|
|
# build genesis data
|
|
$binary export-genesis-state --parachain-id=1000 --chain shell-spec-raw.json > shell-head-data
|
|
|
|
# build genesis wasm
|
|
$binary export-genesis-wasm --chain shell-spec-raw.json > shell-wasm
|