Skip to content

Commit

Permalink
Update to Polkadot v1.1.0 (#536)
Browse files Browse the repository at this point in the history
* update dependencies, fixing compilation errors (WIP)

* update pallets to 1.1.0

* fix subxt feature flags

* fix client configuration new fields

* fix clippy issues and missing std flag

* update fixes and missing configs for runtimes

* fixes to node configuration (wip)

* node client fixes

* bump subxt to minimum viable version

* use static wrapper for account_id and currency_id metadata replacement

* use account_id struct from subxt implementing Encode and Decode as type to avoid Static wrapper

* fix account type conversion using new subxt type

* missing flag, cleanup unused types

* temprary remove conditional metadata

* use foucoco metadata only

* warnings and type conversion

* re-implement hashable trait

* replace account_id on tests

* use subxt version 0.29 across crates

* modification of service config values

* testing increase in timeout for tests

* prints for testing

* bump to subxt 0.30.0

* temp remove unrelated jobs

* work with ubuntu latest

* bump to subxt 0.33

seal block periodically

seal blocks more often

seal blocks more often

block finalization force hack

* local linux tests

* testing finalizing first block solution

* setup working locally

* test only integration on ci

* cleaning up temporary changes

* small code improvements

* more comment removal

* use ubuntu latest os for main test

* Use different function to set exchange rate

* `lookup_bytes` is only used here. Removing `.clone()`.
[`fn fetch_raw(...)` accepts `Vec<u8>`](https://github.com/paritytech/subxt/blob/f06a95d687605bf826db9d83b2932a73a57b169f/subxt/src/storage/storage_type.rs#L51).

`fn build()` already [accepts Url](https://github.com/paritytech/jsonrpsee/blob/v0.20.0/client/transport/src/ws/mod.rs#L279)

* cleanup

* handle all metadata instances

* temporary disable unused code on test file

* add all-features flag to vault

* addresses the confusing `all-features` feature of `runtime` package;

Reuse the `UrlParseError` by changing it to `url::ParseError`, instead of jsonrpsee's `InvalidUri`

* comment cleanups

* use macos image for main workflow testing

* revert

* print current directory

* remove toolchain

* ran cargo +nightly-2024-02-09 fmt --all

* revert, to use ubuntu

* Revert to mac-os

This reverts commit 7f25b8f.

* uncomment failing test

* force install rustup

* use macos-13

* ignore subxt issues, and print out proof error

* Revert "ignore subxt issues, and print out proof error"

This reverts commit 08da9d6.

* Revert "Merge branch 'main' into polkadot-v1.1.0"

This reverts commit 255845c, reversing
changes made to 08da9d6.

* ignore failing subxt tests and print out proof error

* update cargo lock https://github.com/pendulum-chain/spacewalk/actions/runs/10079792308/job/27899770357?pr=536#step:14:24

* fix cargo.lock; update only dia-oracle

* update network

* add back iowa

* [DO NOT MERGE] Test issue on Linux due to update. (#540)

* add extra cargo.toml specially for CI testing.

* stellar relay config sdftest2 ip change

* fixing some regressions from incomplete merge

* fixing more merge issues

* missing changes from #538

* fix AccountId PrettyPrint impl

* fix compare spec version name

* fix benchmark changes merge issue

* remove when possible explicit declaration of pallets in construct_runtime macro

* cargo fmt

* remove all-features feature

* testing inherent modification

* Revert "remove when possible explicit declaration of pallets in construct_runtime macro"

This reverts commit 33a6067.

* Revert "Revert "remove when possible explicit declaration of pallets in construct_runtime macro""

This reverts commit 17f8100.

* regenerate metadata after removal of explicit pallet delcaration in macro

* Revert "testing inherent modification"

This reverts commit 3345c90.

* use pendulum's polkadot-sdk fork with modified constant

* modification of stellar sdftest3 ip

* modify also vault resources sdftest3 ip

---------

Co-authored-by: Marcel Ebert <[email protected]>
Co-authored-by: b-yap <[email protected]>
  • Loading branch information
3 people authored Jul 31, 2024
1 parent a70480c commit d74009b
Show file tree
Hide file tree
Showing 174 changed files with 4,974 additions and 4,125 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
max-parallel: 2
matrix:
rust: [ stable, nightly ]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
# Make sure CI fails on all warnings, including Clippy lints
Expand Down Expand Up @@ -45,6 +45,13 @@ jobs:
# Call `rustup show` as a hack so that the toolchain defined in rust-toolchain.toml is installed
run: rustup show

- name: Use cargo.toml with polkadot-sdk fork
if: matrix.rust == 'nightly'
# To make sure that our polkadot-sdk fork will be used
run: |
rm /home/runner/work/spacewalk/spacewalk/Cargo.toml
mv /home/runner/work/spacewalk/spacewalk/Cargo_CI.toml /home/runner/work/spacewalk/spacewalk/Cargo.toml
- name: Remove rust-toolchain.toml for nightly
if: matrix.rust == 'nightly'
# To make sure that the nightly version will be used all throughout
Expand Down Expand Up @@ -90,8 +97,8 @@ jobs:
DEST_STELLAR_SECRET_TESTNET: ${{ secrets.DEST_STELLAR_SECRET_TESTNET }}
with:
toolchain: nightly-2024-02-09
command: test
args: --all --all-features
command: test
args: --all --all-features

- name: Rustfmt
if: matrix.rust == 'nightly'
Expand Down
Loading

0 comments on commit d74009b

Please sign in to comment.