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

Upgrade runtime v1.3.3 #142

Merged
merged 46 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
75bdbcb
Upgrade relay to v1.3.1
raynaudoe Oct 11, 2024
503e01a
Upgrade people
raynaudoe Oct 11, 2024
af031ad
Upgrade assethub
raynaudoe Oct 15, 2024
3d6782c
Upgrade bridgehub
raynaudoe Oct 15, 2024
e623c16
Create patch file for coretime
raynaudoe Oct 15, 2024
2208ced
Upgrade coretime
raynaudoe Oct 15, 2024
e2ab0f8
Coretime tests fix attempt
raynaudoe Oct 15, 2024
8ec19fe
Merge branch 'main' into release/1.3.3-runtime
raynaudoe Oct 16, 2024
1a13bb9
Delete LeaseOffset
raynaudoe Oct 17, 2024
e4388b3
Fix async_backing_params values
raynaudoe Oct 17, 2024
a864c53
sepolia fork versions not mainnet
claravanstaden Oct 21, 2024
55fbe5c
add fork version test
claravanstaden Oct 21, 2024
0ea90cc
Revert "add fork version test"
claravanstaden Oct 21, 2024
1d52ab2
Merge pull request #147 from paseo-network/fix/fork-versions-1.3.3-ru…
hbulgarini Oct 21, 2024
31ce99c
chore: paseo genesis config preset
al3mart Oct 22, 2024
13818a3
chore: remove corrupted ledgers migration
al3mart Oct 22, 2024
46bbbf1
chore: ss58 for relay
al3mart Oct 22, 2024
e050579
chore: improve executor declaration
al3mart Oct 22, 2024
712725d
chore: update README
al3mart Oct 22, 2024
d8c0e91
Merge pull request #148 from paseo-network/al3mart/1.3.3-feedback
hbulgarini Oct 22, 2024
dc0635e
add write permissions
raynaudoe Oct 22, 2024
e46e08b
Update chain specs for version v1.3.3
github-actions[bot] Oct 22, 2024
3f8da50
try fixing release permissions
raynaudoe Oct 22, 2024
498cb10
add manual release job
raynaudoe Oct 22, 2024
8cc840f
Try adding packages permission
raynaudoe Oct 23, 2024
b59d0b0
Adjusting coretime chain weights
hbulgarini Oct 23, 2024
615b415
release/1.3.3-runtime
hbulgarini Oct 23, 2024
03f08f7
Adding sudo to system chains
hbulgarini Oct 23, 2024
8fba627
add pallet-sudo/try-runtime
al3mart Oct 23, 2024
61a58f5
fix compilation
raynaudoe Oct 29, 2024
2a93292
update cargo.lock
raynaudoe Oct 29, 2024
4f1c03c
chore: include #149
al3mart Nov 5, 2024
30b48fe
Merge pull request #154 from paseo-network/al3mart/chore-backport-spe…
hbulgarini Nov 5, 2024
c7d23e9
chore: remove CancelAuctions
al3mart Nov 5, 2024
bd59f2d
Merge pull request #155 from paseo-network/al3mart/chore-clean-migrat…
hbulgarini Nov 5, 2024
de2407a
fix: add sudo weights
al3mart Nov 5, 2024
2483245
Merge pull request #156 from paseo-network/al3mart/fix-1.3.3-build
hbulgarini Nov 5, 2024
5860e7d
fix: coretime integration tests
al3mart Nov 5, 2024
e84bbb9
typo
al3mart Nov 5, 2024
b5b58fa
Update chain specs for version v1.3.3
github-actions[bot] Nov 5, 2024
4d8cb89
Merge pull request #157 from paseo-network/al3mart/fix-1.3.3-build
hbulgarini Nov 5, 2024
75b9534
Automate github release fix attempt
raynaudoe Nov 5, 2024
0e6df1a
chore(system-ps): add sudo at genesis
al3mart Nov 7, 2024
ccbfee8
fix: missing imports
al3mart Nov 7, 2024
5f370e4
fix: spec generation
al3mart Nov 7, 2024
7228169
Patching asset hub xcm config
hbulgarini Nov 12, 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
87 changes: 87 additions & 0 deletions .github/workflows/build-release-manual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Build Deterministic Runtimes

on:
release:
types: [published]
workflow_dispatch:

jobs:
srtool:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
runtime:
- name: "paseo"
path: "relay/paseo"
- name: "asset-hub-paseo"
path: "system-parachains/asset-hub-paseo"
- name: "bridge-hub-paseo"
path: "system-parachains/bridge-hub-paseo"
- name: "people-paseo"
path: "system-parachains/people-paseo"
- name: "coretime-paseo"
path: "system-parachains/coretime-paseo"

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Cache runtime target dir
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/runtime/${{ matrix.runtime.name }}/target"
key: srtool-target-${{ matrix.runtime.name }}-${{ github.sha }}
restore-keys: |
srtool-target-${{ matrix.runtime.name }}-
srtool-target-

- name: Build ${{ matrix.runtime.name }} runtime
id: srtool_build
uses: chevdor/[email protected]
env:
BUILD_OPTS: "--features on-chain-release-build"
with:
chain: ${{ matrix.runtime.name }}
package: "${{ matrix.runtime.name }}-runtime"
runtime_dir: ${{ matrix.runtime.path }}
profile: "production"

- name: Store srtool digest to disk
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.runtime.name }}-srtool-digest.json

# Manual trigger: add artifacts to run
- name: Copy artifacts
if: github.event_name != 'release'
run: cp `dirname ${{ steps.srtool_build.outputs.wasm }}`/*.wasm ./
- name: Archive Runtime
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.runtime.name }}-runtime-${{ github.sha }}
path: |
${{ matrix.runtime.name }}*.wasm
${{ matrix.runtime.name }}-srtool-digest.json

# Release published: add artifacts to release
- name: Add artifacts to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
append_body: true
body: |
## Runtime: `${{ matrix.runtime.name }}`
```
🏋️ Runtime Size: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.size }} bytes
🔥 Core Version: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.core_version.specName }}-${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.core_version.specVersion }}
🎁 Metadata version: V${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.metadata_version }}
🗳️ system.setCode hash: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.proposal_hash }}
🗳️ authorizeUpgrade hash: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.parachain_authorize_upgrade_hash }}
🗳️ Blake2-256 hash: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.blake2_256 }}
📦 IPFS: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.ipfs_hash }}
```
files: |
${{ steps.srtool_build.outputs.wasm_compressed }}
${{ matrix.runtime.name }}-srtool-digest.json
6 changes: 4 additions & 2 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
jobs:
generate-chain-specs:
uses: ./.github/workflows/generate-chain-specs.yaml
permissions:
contents: write
packages: write
with:
tag_version: ${{ github.event.inputs.tag_version }}

Expand Down Expand Up @@ -107,6 +110,7 @@ jobs:
draft: false
prerelease: false
generate_release_notes: true
token: ${{ secrets.PASEO_RUNTIME_CI_PAT }}
append_body: true
body: |
## Runtime: `${{ matrix.runtime.name }}`
Expand All @@ -122,5 +126,3 @@ jobs:
files: |
${{ steps.srtool_build.outputs.wasm_compressed }}
${{ matrix.runtime.name }}-srtool-digest.json
env:
GITHUB_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }}
66 changes: 56 additions & 10 deletions Cargo.lock

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

10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ repository = "https://github.com/paseo-network/runtimes.git"
license = "GPL-3.0-only"

[workspace.dependencies]
kusama-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.1", package = "kusama-runtime-constants", default-features = false }
bp-bridge-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.1", package = "bp-bridge-hub-kusama", default-features = false }
bp-bridge-hub-polkadot = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.1", package = "bp-bridge-hub-polkadot", default-features = false }
bp-asset-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.1", package = "bp-asset-hub-kusama", default-features = false }
kusama-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.3", package = "kusama-runtime-constants", default-features = false }
bp-bridge-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.3", package = "bp-bridge-hub-kusama", default-features = false }
bp-bridge-hub-polkadot = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.3", package = "bp-bridge-hub-polkadot", default-features = false }
bp-asset-hub-kusama = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.3", package = "bp-asset-hub-kusama", default-features = false }
collectives-polkadot-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes", tag = "v1.3.3", package = "collectives-polkadot-runtime-constants", default-features = false }


# Local dependencies

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Runtimes

Work In Progress runtime for Paseo Polkadot community testnet.
Runtimes for Polkadot's community testnet.

## Structure

Expand All @@ -9,7 +9,9 @@ Work In Progress runtime for Paseo Polkadot community testnet.
│ ├── paseo
└── system-parachains
├── asset-hub-paseo
├── bp-asset-hub-paseo
├── bp-asset-hub-paseo
├── bridge-hub-paseo
├── bp-bridge-hub-paseo
│ ├── bp-bridge-hub-paseo
├── people-paseo
├── coretime-paseo
```
1 change: 1 addition & 0 deletions chain-spec-generator/src/relay_chain_specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const DEFAULT_PROTOCOL_ID: &str = "pas";
pub fn paseo_chain_spec_properties() -> serde_json::map::Map<String, serde_json::Value> {
serde_json::json!({
"tokenDecimals": 10,
"ss58Format": 0,
})
.as_object()
.expect("Map given; qed")
Expand Down
4 changes: 2 additions & 2 deletions chain-spec-generator/src/system_parachains_specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ pub fn asset_hub_paseo_local_testnet_config() -> Result<Box<dyn ChainSpec>, Stri
asset_hub_paseo_runtime::WASM_BINARY.expect("AssetHubPaseo wasm not available!"),
Extensions { relay_chain: "paseo-local".into(), para_id: 1000 },
)
.with_name("Paseo Asset Hub Local")
.with_id("paseo-asset-hub-local")
.with_name("Asset Hub Paseo Local")
.with_id("asset-hub-paseo-local")
.with_chain_type(ChainType::Local)
.with_protocol_id("ah-pas")
.with_genesis_config_patch(
Expand Down
Loading
Loading