Skip to content

Commit

Permalink
Rebase timbo-dev-migrate-2 branch to 0.9.43 (#2420)
Browse files Browse the repository at this point in the history
* Dependency (Substrate/Polkadot/Frontier/Cumulus/...) update to v0.9.43 (#2377)

* begin upgrade to v0.9.43

* make client/vrf compile

* make pallet-author-mapping compile

* make pallet-erc20-xcm-bridge compile

* make primitives/session-keys compile

* fix test in pallet-parachain-staking

* make pallet-moonbeam-orbiters compile

* make pallet-asset-manager compile

* fix dependencies

* make pallet-xcm-transactor compile

* make pallet-migrations compile

* make pallet-randomness compile

* fix schnorrkel in randomness

* enable insecure_zero_ed flag

* update frontier fork

* use moonbeam forks

* impl TypeInfo for TxPoolResponse

* use our evm fork

* AssetId non-Copy

* make moonbase runtime compile

* moonbeam runtime compiles

* moonriver runtime compiles

* start fixing client & node

* fix frontier sql

* fix mocks

* fix relay-encoder

* fix pallet-ethereum dep

* prepare moonbase mocks & tests

* prepare moonbeam mocks & tests

* prepare moonriver mocks & tests

* fix integration tests (costs)

* fix node service

* fix xcm tests

* update cumulus pin

* Merge branch 'master' into upgrade-v0.9.43

* remove changes in settings.json

* fix rpc-port in dev & para node

* fix randomness benchmarks

* enable newRpcBehaviour on Moonwall

* fmt

* update moonkit pin

* make tests compile with runtime-benchmarks feature

* Update node invocations to use rpc-port instead of ws-port (#2388)

* Update node invocations to use rpc-port instead of ws-port

* Prettier

* Removed unneeded options from moonwall config

* Removed unused arg

* Cargo.toml files fmt

* Update RelayEncoder to be 9430 compatible (#2376)

* Update RelayEncoder stake calls to latest changes

* fmt

* Naming

* fmt

* Fix tests

* Completely removed old calls

* fmt

* Update Solidity contract

* Updated tests

* Review

* Updated tests

* fmt

* Prettier

* Prettier

* Updated encodeNominate param type

---------

Co-authored-by: Francisco Gamundi <francisco@purestake.com>

* Updated encodeSetPayee selector

* clippy fixes in moonkit

* clippy fixes in moonbeam

* fix some rust benchmark tests

* fix genesis balance for TS tests

* fix some TS tests

* fix fees & gas cost in TS tests

* fix rust tests

* Upgrade polkadot-js and support weight v2 for fees

* update substrate & frontier pin

* WasmExecutor ignore onchain heap pages

* Fix moonwall chopsticks test

* Fix zombie

* moonwall dev fixes

* restored APIs

* add provider to chospticks storage

* update polkadot pin

* remove wasm overrideP

* update substrate pin to fix pov tests

* fix test

* eth test fix

* prettier

* chopsticks fixes

* disabled test

* fix reducible balance TS test

* fix moonwall

* changed base ext weight

* fix eth-tx-types TS tests

* fix precompile assets-erc20 TS tests

* status.isFrozen fix in precompile TS tests

* fix test-txpool-fairness

* fix proxy-governance TS tests

* prettier

* adjusted fillBlock input param

* update frontier pin

* fix fee-multiplier TS test

* fix test-filter-api-pending

* ED of zero in more mocks

* remove unnecessary clone

* change test-staking-locks timeout

* change timeout in test-precompile-referenda

* timeout again

* upgrade rust to 1.71

* fix rust warning: unused mut

* update substrate pin

* proposer: enable feature ensure_proof_size_limit_after_each_extrinsic

* fix clippy warnings

* fix rust tests compilation

* timeout

* migrate to moonkit (#2384)

* migrate to moonkit

* make it compile

* fix rust tests & clippy

---------

Co-authored-by: agus <agusrodriguez2456@gmail.com>

* minor changes

---------

Co-authored-by: librelois <c@elo.tf>
Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com>
Co-authored-by: Francisco Gamundi <52399794+fgamundi@users.noreply.github.com>
Co-authored-by: Crystalin <alan@moonsonglabs.com>
Co-authored-by: Francisco Gamundi <francisco@purestake.com>
Co-authored-by: Francisco Gamundi <francisco@moonsonglabs.com>
Co-authored-by: timbrinded <79199034+timbrinded@users.noreply.github.com>
Co-authored-by: girazoki <gorka.irazoki@gmail.com>

* fix CI

* changes

* fix CI

* fixed some tests

* more test fixes

* fixed tests

* lint

* editor config

* pkg fix

---------

Co-authored-by: Agustín Rodriguez <agus@moonsonglabs.com>
Co-authored-by: librelois <c@elo.tf>
Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com>
Co-authored-by: Francisco Gamundi <52399794+fgamundi@users.noreply.github.com>
Co-authored-by: Crystalin <alan@moonsonglabs.com>
Co-authored-by: Francisco Gamundi <francisco@purestake.com>
Co-authored-by: Francisco Gamundi <francisco@moonsonglabs.com>
Co-authored-by: girazoki <gorka.irazoki@gmail.com>
  • Loading branch information
9 people committed Aug 7, 2023
1 parent 5b1b901 commit 30ad00e
Show file tree
Hide file tree
Showing 243 changed files with 7,422 additions and 13,573 deletions.
21 changes: 21 additions & 0 deletions .github/workflow-templates/dev-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,30 @@ runs:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
cache-dependency-path: test/pnpm-lock.yaml

- name: Setup Moonbeam PolkadotJS types
shell: bash
run: |
#### Preparing the legacy types
cd moonbeam-types-bundle
npm ci
npm run build
#### Preparing the typescript api
cd ../typescript-api
npm ci
cd ../test
pnpm i ../typescript-api
- name: "Install and run dev test"
shell: bash
env:
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ jobs:
bun-version: latest
- name: Check with Prettier
run: |
npx prettier@2 --check --ignore-path .prettierignore '**/*.(yml|js|ts|json)' \
bun x prettier@2 --check --ignore-path .prettierignore '**/*.(yml|js|ts|json)' \
|| (git diff --quiet \
|| (echo 'Unable to show a diff because there are unstaged changes'; false) \
&& (npx prettier@2 --ignore-path \
&& (bun x prettier@2 --ignore-path \
.prettierignore '**/*.(yml|js|ts|json)' -w --loglevel silent \
&& git --no-pager diff; git restore .) && false)
npx prettier@2 --check --ignore-path .prettierignore '**/*.(yml|js|ts|json)'
bun x prettier@2 --check --ignore-path .prettierignore '**/*.(yml|js|ts|json)'
check-cargo-toml-format:
name: "Check Cargo.toml files format"
Expand Down Expand Up @@ -500,16 +500,21 @@ jobs:
with:
node-version: 20.x
cache: "pnpm"
cache-dependency-path: test/pnpm-lock.yaml
- name: Create local folders
run: |
mkdir -p target/release/wbuild/${{ matrix.chain }}-runtime/
mkdir -p test/tmp
- name: "Download runtime"
uses: actions/download-artifact@v3.0.2
with:
name: runtimes
path: test/runtimes
path: target/release/wbuild/${{ matrix.chain }}-runtime/
- name: "Install and run upgrade test"
run: |
cd test
pnpm install
bun moonwall test CI_upgrade_RT_${{matrix.chain}}
bun moonwall test upgrade_${{matrix.chain}}
zombie_upgrade_test:
runs-on:
Expand All @@ -530,6 +535,9 @@ jobs:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
Expand Down
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ tests/util/tracer/blockscout_tracer*
# Typescript-api is autogenerated
/typescript-api/

# Temporary files
/test/contracts/out
test/tmp
# Temporary Moonwall files
contracts/out
tmp
2 changes: 0 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"-linfo",
"--port=${dbgconfig:port_p2p}",
"--rpc-port=${dbgconfig:port_rpc}",
"--ws-port=${dbgconfig:port_ws}",
"--tmp"
],
"cwd": "${workspaceFolder}",
Expand All @@ -39,7 +38,6 @@
"-linfo",
"--port=${dbgconfig:port_p2p}",
"--rpc-port=${dbgconfig:port_rpc}",
"--ws-port=${dbgconfig:port_ws}",
"--tmp"
],
"cwd": "${workspaceFolder}",
Expand Down
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"lldb.dbgconfig": {
"rustc_path": "${env:HOME}/.rustup/toolchains/nightly-2021-01-13-x86_64-unknown-linux-gnu/lib/rustlib/src/rust",
"port_p2p": 30333,
"port_rpc": 9933,
"port_ws": 9944
"port_rpc": 9944
}
}

0 comments on commit 30ad00e

Please sign in to comment.