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

Polkadot SDK Update #965

Closed
wants to merge 64 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
e26445c
Adds polkadot-sdk as a git submodule.
Sep 6, 2023
1595f4e
Adds polkadot-sdk as a git submodule.
Sep 6, 2023
ea9d3bd
Correct path.
Sep 6, 2023
9b4309f
updates cargo.toml for each workspace member
Sep 7, 2023
f1bba94
upgrades
Sep 7, 2023
7f3ad9e
upgrades
Sep 8, 2023
0f90b26
includes inbound queue
Sep 8, 2023
25ecdde
updates
Sep 11, 2023
f978c24
include submodule.
Sep 11, 2023
1f0df8b
clean submodules
Sep 11, 2023
8a44b77
remove clean
Sep 11, 2023
266a145
fix imports
Sep 11, 2023
7bb3151
cleanup
Sep 11, 2023
2593001
add submodules everywhere
Sep 11, 2023
17d3da0
progress on fixing tests
Sep 11, 2023
ec7fce5
fix tests
Sep 11, 2023
004366a
fix tests
Sep 11, 2023
b8387cd
fix fuzz tests
Sep 11, 2023
865f291
Adds control pallet to bridge hub runtime.
Sep 11, 2023
c91ec2b
Adds xcm config.
Sep 12, 2023
cde36d3
change to snowbridge branch
Sep 12, 2023
0835190
add snowbridge dependencies
Sep 12, 2023
5fe6fb5
point to test branch
Sep 12, 2023
bbd282a
adds control pallet
Sep 13, 2023
6c89d5d
updates bandersnatch_vrfs version
Sep 13, 2023
36c5f64
updates polkadot-sdk
Sep 13, 2023
0c92c38
rollback WeightMeter changes
Sep 13, 2023
c0ae980
fix warning
Sep 13, 2023
3bdcbc9
updates dependencies
Sep 14, 2023
24e5faf
updates polkadot-sdk
Sep 14, 2023
deafb5c
updates dependencies
Sep 14, 2023
393ea6f
updates snowbridge pallets after basing off new branch
Sep 14, 2023
41ef49f
update polkadot-sdk
Sep 15, 2023
91628b2
update typos config to ignore polkadot-sdk
Sep 15, 2023
0fa5159
rustfmt and update hooks
Sep 15, 2023
7ddf3ed
starts updating e2e scripts and fixes parachain template cargo file
Sep 15, 2023
c02d13a
fixes build script
Sep 15, 2023
ef81d31
fixes build script
Sep 15, 2023
197bfb4
update e2e scripts
Sep 18, 2023
03cbe6f
fix coverage job
Sep 18, 2023
6cfbaf3
updated build scripts
alistair-singh Sep 19, 2023
a01044a
skip relaychain bin if already built
alistair-singh Sep 19, 2023
c7f0392
fixed bad builds
alistair-singh Sep 19, 2023
f34b964
commented out assethub and hrmp
alistair-singh Sep 19, 2023
076d854
Pre-open HRMP channels
Sep 20, 2023
1454590
Updated git submodule
Sep 20, 2023
cb2432f
fix smoketests
alistair-singh Sep 20, 2023
98299fd
use staging_xcm
alistair-singh Sep 20, 2023
259f464
Adds transfer token test (#964)
claravanstaden Sep 15, 2023
97e243d
Use limited_reserve_transfer_assets.
Sep 20, 2023
581bd6a
Fix benchmark errors.
Sep 21, 2023
c9c5238
Renegerate beacon benchmarks
Sep 22, 2023
b5a4e25
fix control pallet benchmarks
Sep 22, 2023
aec211a
update control pallet weights
Sep 23, 2023
c6c78dd
update control pallet weights
Sep 23, 2023
2449e0c
fixes after rebase
Sep 29, 2023
5eaff87
fix build scripts after merging master
Oct 2, 2023
8ecf230
fix rebuild on every script run
Oct 2, 2023
7452e1a
first runtime test
Oct 3, 2023
14c3c97
complete token transfer test
Oct 6, 2023
f3af504
Cleanup test.
Oct 6, 2023
dfc432d
Adds more tests.
Oct 9, 2023
58d18c0
adds changes to get token transfer to work
Oct 17, 2023
7927b3e
deletes logs
Oct 18, 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
11 changes: 7 additions & 4 deletions .github/workflows/parachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: actions/cache@v1
with:
path: |
Expand Down Expand Up @@ -61,6 +63,7 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
submodules: 'true'
- uses: actions/cache@v1
with:
path: |
Expand All @@ -80,7 +83,6 @@ jobs:
--manifest-path parachain/Cargo.toml
--workspace
--features runtime-benchmarks
--exclude snowbridge-query-events
--exclude snowbridge-ethereum-beacon-client
# Run tests for beacon light client, excluding benchmark tests
- name: Tests for beacon light client excluding benchmark tests
Expand Down Expand Up @@ -109,6 +111,7 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
submodules: 'true'
- name: setup rust toolchain
run: rustup show
- name: run coverage test
Expand All @@ -118,9 +121,8 @@ jobs:
--manifest-path parachain/Cargo.toml
--workspace
--engine llvm
--out Xml
--out xml
--exclude substrate-call-index
--exclude snowbridge-query-events
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
with:
Expand All @@ -142,7 +144,7 @@ jobs:
- name: check bridge-hub runtime
run: >
cargo check
--manifest-path cumulus/Cargo.toml
--manifest-path polkadot-sdk/Cargo.toml
--release --verbose
--package bridge-hub-rococo-runtime

Expand All @@ -158,6 +160,7 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
submodules: 'true'
- uses: actions/cache@v1
with:
path: |
Expand Down
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[submodule "cumulus"]
path = cumulus
url = https://github.com/Snowfork/cumulus
branch = snowbridge
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
Expand All @@ -14,3 +10,7 @@
[submodule "contracts/lib/canonical-weth"]
path = contracts/lib/canonical-weth
url = https://github.com/Snowfork/canonical-weth
[submodule "polkadot-sdk"]
path = polkadot-sdk
url = https://github.com/Snowfork/polkadot-sdk.git
branch = polkadot-sdk-update
2 changes: 1 addition & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extend-exclude = [
"**/*ffi*.js",
"**/*mock*.rs",
"**/*data*.rs",
"cumulus/**",
"polkadot-sdk/**",
"smoketest/src/parachains",
"smoketest/src/contracts",
]
14 changes: 0 additions & 14 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@

set -e

# checks that the cumulus submodule is in sync with our substrate dependencies
check_duplicate_versions() {
local duplicates=$(grep -Ei "source = \"git.*$1" cumulus/Cargo.lock parachain/Cargo.lock | sed 's/\.git//g' | sort -u)
local version_count=$(echo "$duplicates" | awk -F':' '{for (i=2; i<NF; i++) printf $i " "; print $NF}' | sort -u | wc -l | xargs)
if [ "$version_count" != "1" ]; then
echo Duplicate $1 versions detected
echo "$duplicates"
exit 1
fi
}

# check typos
chronic typos .

Expand All @@ -24,6 +13,3 @@ chronic typos .

# format rust
(cd parachain && chronic cargo +nightly-"$SNOWBRIDGE_RUST_NIGHTLY" fmt)

check_duplicate_versions substrate
check_duplicate_versions polkadot
Loading