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

Bump to v0.9.38 #775

Merged
merged 33 commits into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
de8206a
Bump to v0.9.38
yrong Feb 16, 2023
9febf3d
Remove ethereum-light-client from workspace
yrong Feb 16, 2023
d35682c
Merge branch 'main' into ron/polkadot-v0.9.38
yrong Feb 17, 2023
bff60de
Fix ci breaking
yrong Feb 17, 2023
6992e15
Merge branch 'main' into ron/polkadot-v0.9.38
yrong Feb 17, 2023
7c99eaa
Remove snowbridge-xcm-support from runtime
yrong Feb 17, 2023
a0beb42
Fix ci
yrong Feb 17, 2023
b86673f
Move initialize script to hook
yrong Feb 17, 2023
249fae3
Fix ci test
yrong Feb 17, 2023
98eb8a6
Refactor: move to initialize hook & some cleanup
yrong Feb 17, 2023
103b84c
For ci
yrong Feb 17, 2023
a7af5f9
Fix husky
yrong Feb 17, 2023
62f7623
Fix: speed test
yrong Feb 17, 2023
5f4a7dc
Update foundry libs with submodule
yrong Feb 18, 2023
efff171
Upgrade go-substrate-rpc-client & stop-gap of relaychain
yrong Feb 20, 2023
ceee06b
For #12345 and #12530
yrong Feb 18, 2023
cc0f9b7
env for goerli
yrong Feb 21, 2023
8d09c51
Fix for production deployment
yrong Feb 21, 2023
1872f16
Sync dependencies from release
yrong Feb 21, 2023
01d5dab
Remove test parachain node
yrong Feb 24, 2023
6e8069a
More cleanup
yrong Feb 24, 2023
4a6b4e0
Merge branch 'main' into ron/polkadot-v0.9.38
yrong Feb 24, 2023
9a92e23
Use host runner
yrong Feb 24, 2023
ba05c70
Merge branch 'main' into ron/polkadot-v0.9.38
yrong Feb 24, 2023
083b904
Fix wrong commit
yrong Feb 24, 2023
3207d7d
Sync dev setup
yrong Feb 26, 2023
f5bbe8f
Sync pnpm-lock file & Remove fmt in CI
yrong Feb 26, 2023
0bacc10
Fix format[skip ci]
yrong Feb 26, 2023
7906e3d
Sync toolchain[skip ci]
yrong Feb 26, 2023
1d2b6c7
Fix for geth 1.11
yrong Feb 28, 2023
a4ded38
Suppress warning in building parachain
yrong Mar 2, 2023
b38ed13
Merge branch 'main' into ron/polkadot-v0.9.38
yrong Mar 2, 2023
4fe758d
Ron/polkadot v0.9.38 12857 (#780)
yrong Mar 3, 2023
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
37 changes: 18 additions & 19 deletions .github/workflows/parachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ name: parachain
on:
push:
paths:
- 'parachain/**'
- '!parachain/README.md'
- '!parachain/LICENSE'
- "parachain/**"
- "!parachain/README.md"
- "!parachain/LICENSE"
branches:
- main
pull_request:
paths:
- 'parachain/**'
- '!parachain/README.md'
- '!parachain/LICENSE'
- "parachain/**"
- "!parachain/README.md"
- "!parachain/LICENSE"
workflow_dispatch:

jobs:
fmt:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
yrong marked this conversation as resolved.
Show resolved Hide resolved
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
Expand All @@ -43,7 +43,7 @@ jobs:
run: cd parachain && cargo +nightly fmt -- --check --config-path rustfmt.toml && cd -

check:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
Expand All @@ -66,22 +66,21 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.62.1
toolchain: nightly-2023-02-06
target: wasm32-unknown-unknown
- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check
toolchain: 1.62.1
toolchain: nightly-2023-02-06
args: >-
--manifest-path parachain/Cargo.toml
--workspace
--exclude snowbridge
--features runtime-benchmarks

test:
needs: check
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
Expand All @@ -99,10 +98,11 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('parachain/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: arduino/setup-protoc@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.62.1
toolchain: nightly-2023-02-06
target: wasm32-unknown-unknown
- name: test beacon client with minimal feature
uses: actions-rs/cargo@v1
Expand All @@ -114,7 +114,7 @@ jobs:
--package snowbridge-ethereum-beacon-client
--features runtime-benchmarks
--features minimal
toolchain: 1.62.1
toolchain: nightly-2023-02-06
- uses: actions-rs/install@v0.1.2
with:
crate: cargo-tarpaulin
Expand All @@ -127,12 +127,11 @@ jobs:
args: >-
--manifest-path parachain/Cargo.toml
--verbose --workspace
--exclude snowbridge
--exclude snowbridge-runtime
--exclude snowblink-runtime
--exclude snowbridge
--exclude snowbridge-runtime
--exclude snowblink-runtime
--exclude snowbase-runtime
--exclude-files '*/mock.rs,*/tests.rs'
--features runtime-benchmarks
--avoid-cfg-tarpaulin
--coveralls ${{ secrets.COVERALLS_REPO_TOKEN }}
toolchain: 1.62.1
toolchain: nightly-2023-02-06
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
Expand All @@ -25,14 +25,14 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable-2022-01-20
toolchain: nightly-2023-02-06
target: wasm32-unknown-unknown
- name: build
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path parachain/Cargo.toml --release
args: --manifest-path parachain/Cargo.toml --workspace --release
- uses: actions/upload-artifact@v1
with:
name: artemis-node
path: parachain/target/release/artemis-node
name: snowbridge-node
path: parachain/target/release/snowbridge
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ node_modules/
# asdf plugin versions
.tool-versions

relaychain/
/relaychain/
.vscode

.rustup
Expand Down
3 changes: 1 addition & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"name": "@snowbridge/core",
"private": true,
"engines": {
"node": "v18.13.0",
"node": "v18.12.1",
"pnpm": "7.14.2"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "cd .. && husky install && cd core/packages/test && ./scripts/hack-ethereum.sh",
"build": "turbo run build",
"test": "turbo run test",
"lint": "turbo run lint",
Expand Down
1 change: 0 additions & 1 deletion core/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"seedrandom": "^3.0.5",
"solc": "^0.7.6",
"solhint": "^3.3.7",
"solidity-bytes-utils": "^0.1.2",
"solidity-coverage": "^0.8.2",
"solidity-docgen": "^0.5.10",
"temp": "^0.9.1",
Expand Down
25 changes: 14 additions & 11 deletions core/packages/test/scripts/build-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ rebuild_relaychain(){
popd
}

build_relaychain_from_source(){
if [ ! -d "$relaychain_dir" ] ; then
echo "clone polkadot project to $relaychain_dir"
git clone https://github.com/paritytech/polkadot.git $relaychain_dir
fi
pushd $relaychain_dir
git fetch origin && git checkout release-$relaychain_version
cargo build --release
cp "$relaychain_dir/target/release/polkadot" "$output_bin_dir"
popd
}

build_parachain()
{
if [ "$eth_network" != "localhost" ]; then
Expand Down Expand Up @@ -66,19 +78,10 @@ build_relayer()
cp $relay_bin "$output_bin_dir"
}

build_e2e_test() {
echo "Building tests"
pushd "$core_dir"
pnpm install
popd
pushd "$contract_dir"
popd
}

install_binary() {
echo "Building and installing binaries."
build_relaychain
# todo: interim change will revert later when polkadot-0.9.38 released
build_relaychain_from_source
build_parachain
build_relayer
build_e2e_test
}
3 changes: 2 additions & 1 deletion core/packages/test/scripts/set-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ root_dir="$(realpath ../../..)"
parachain_dir="$root_dir/parachain"
parachain_runtime="${PARACHAIN_RUNTIME:-snowbase}"
parachain_bin="$parachain_dir/target/release/snowbridge"
relaychain_version="${POLKADOT_VER:-v0.9.30}"
relaychain_dir="$root_dir/relaychain"
relaychain_version="${POLKADOT_VER:-v0.9.38}"
relaychain_bin="${POLKADOT_BIN:-$parachain_dir/.cargo/bin/polkadot.d/$relaychain_version/polkadot}"
test_collator_bin="$parachain_dir/utils/test-parachain/target/release/snowbridge-test-node"
core_dir="$root_dir/core"
Expand Down
2 changes: 1 addition & 1 deletion core/packages/test/scripts/start-polkadot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ start_chains()
if [ -z "${from_start_services:-}" ]; then
echo "start polkadot only!"
trap kill_all SIGINT SIGTERM EXIT
check_tool && build_relaychain && build_parachain && start_chains
check_tool && build_relaychain_from_source && build_parachain && start_chains
wait
fi

Loading