Skip to content

Commit

Permalink
feat: add new paseo runtime (#3013)
Browse files Browse the repository at this point in the history
* feat: add paseo runtime

* fix: update CI to run tests on paseo

* fix: update lock files

* fix: add ts-tests for paseo in CI

* fix: remove paseo to push docker

* fix: add paseo to ci

* fix: add paseo to node files

* fix: update load-spec

* fix: update node command

* fix: update chain_spec file

* fix: update command.rs

* fix: update based on comments

* fix: update chain_id

* fix: update build fixes

* fix: update lock file

* Try to fix paseo CI (#3036)

* fix paseo chain spec

* add paseo

* fix: add paseo network into launch setup

* refactor: clean up makefile

* refactor: remove parachain-launch config for paseo

* add paseo benchmark option

* [benchmarking bot] Auto commit generated weights files (#3065)

Co-authored-by: BillyWooo <[email protected]>

---------

Signed-off-by: Faisal Ahmed  <[email protected]>
Co-authored-by: Kai <[email protected]>
Co-authored-by: Yang <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <[email protected]>
  • Loading branch information
5 people authored Sep 16, 2024
1 parent 6c8054c commit aaa81cf
Show file tree
Hide file tree
Showing 51 changed files with 8,641 additions and 72 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/benchmark-runtime-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
description: rococo
required: true
default: true
paseo:
type: boolean
description: paseo
required: true
default: true
pallets:
description: pallets to benchmark, * for all, or comma listed (e.g. frame-system,pallet-proxy)
default: "*"
Expand Down Expand Up @@ -84,6 +89,9 @@ jobs:
if [ "${{ github.event.inputs.rococo }}" = "true" ]; then
chain="$chain rococo"
fi
if [ "${{ github.event.inputs.paseo }}" = "true" ]; then
chain="$chain paseo"
fi
if [ "$chain" = "" ]; then
echo "::error::Please select at least one chain."
exit 1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ jobs:
chain:
- litentry
- rococo
- paseo
name: ${{ matrix.chain }}
steps:
- uses: actions/checkout@v4
Expand Down
113 changes: 113 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ members = [
'primitives/hex',
'runtime/litentry',
'runtime/rococo',
'runtime/paseo',
'runtime/common',
]
exclude = [
Expand Down Expand Up @@ -251,6 +252,7 @@ litentry-hex-utils = { path = "primitives/hex", default-features = false }
runtime-common = { path = "runtime/common", default-features = false }
litentry-parachain-runtime = { path = "runtime/litentry", default-features = false }
rococo-parachain-runtime = { path = "runtime/rococo", default-features = false }
paseo-parachain-runtime = { path = "runtime/paseo", default-features = false }
pallet-account-fix = { path = "pallets/account-fix", default-features = false }
pallet-asset-manager = { path = "pallets/xcm-asset-manager", default-features = false }
pallet-assets-handler = { path = "pallets/bridge/assets-handler", default-features = false }
Expand Down
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ build-runtime-litentry:
build-runtime-rococo:
cargo build --locked -p $(call pkgid, rococo-parachain-runtime) --release

.PHONY: build-runtime-paseo ## Build paseo release runtime
build-runtime-paseo:
cargo build --locked -p $(call pkgid, paseo-parachain-runtime) --release

.PHONY: build-docker-release ## Build docker image using cargo profile `release`
build-docker-release:
@./scripts/build-docker.sh release latest
Expand Down Expand Up @@ -72,6 +76,10 @@ launch-network-rococo:
launch-network-litentry:
@./scripts/launch-network.sh litentry

.PHONY: launch-network-paseo ## Launch a local litentry network with relaychain network
launch-network-paseo:
@./scripts/launch-network.sh paseo

# run tests

.PHONY: test-cargo-all ## cargo test --all
Expand All @@ -90,21 +98,21 @@ test-ts-litentry: launch-network-litentry
test-ts-rococo: launch-network-rococo
@./scripts/run-ts-test.sh rococo bridge evm

.PHONY: test-ts-paseo ## Run paseo ts tests without clean-up
test-ts-paseo: launch-network-paseo
@./scripts/run-ts-test.sh paseo bridge evm

# clean up

.PHONY: clean-network ## Clean up the network launched by 'launch-network'
clean-network:
@./scripts/clean-network.sh

# update dependencies

.PHONY: update-ts-dep ## update ts-tests dependencies
update-ts-dep:
@cd ts-tests && pnpm dlx npm-check-updates -u && pnpm install

# format

.PHONY: fmt ## (cargo, taplo, ts, solidity) fmt
fmt: fmt-cargo fmt-taplo fmt-ts fmt-contract

Expand Down Expand Up @@ -136,7 +144,6 @@ githooks:
git config core.hooksPath .githooks

# clippy

.PHONY: clippy ## cargo clippy
clippy:
SKIP_WASM_BUILD=1 cargo clippy --workspace --all-targets --all-features -- -D warnings
Expand Down
Loading

0 comments on commit aaa81cf

Please sign in to comment.