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

Upgrade to polkadot-v0.9.16 #596

Merged
merged 66 commits into from
Feb 6, 2022
Merged

Upgrade to polkadot-v0.9.16 #596

merged 66 commits into from
Feb 6, 2022

Conversation

seunlanlege
Copy link
Contributor

No description provided.

andor0 and others added 30 commits January 12, 2022 23:01
* CU-200y9ka - Auction: generate a file with weights

* Make clippy happier

* Fix tests
* Add remark check in CI

* Add a config file for remark

* Update config of CI

* Make remark happier
* refactor crowdloan benchmarking

* revert benchmarking integration of crowdloan rewards
…#486)

* move crowdloan from SignedExtension to ValidateUnsigned

* revert transaction version upgrade as we removed the SignedExtra
* Check including wasm build

* Add std feature check
…lidation (#492)

* introduce `Validated` and `Validate` for custom codec validation

* add missing Deref/AsRef, use WrapperTypeEncode and introduce `And`
* devnet release

* Build everything

* Use self hosted runners

* use pre-installed cargo

Co-authored-by: Karel L. Kubat <k.l.kubat@gmail.com>
* fix

* only on main
* oracle api clarification

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixing pr comments

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed comment

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* crazy fmt issue

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* just something to tirgget build after fail

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed price, added ratio test

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed comments

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>
Removed "--features develop" flag from local build command instructions.

Signed-off-by: Dominik Roth <dominik@composable.finance>
…oan tests, bonded finance tests implementation (#487)

* add generated types and refactor tests, add eth sign to crowdloan

* Pulling bondPrice for bondedFinance Tests from variable

* test(bondedFinance TX Tests, Added mocha config file, Cleanup.):

(txBondedFinanceTests.ts): bondedFinance Extrinsic test
implementation.
(BondedFinance Pallet): MinReward now exposed through a
constant query.
(queryCrowdloanRewardsTests.ts): Updated checks and
timeout.

Following files have been removed, due to problems with the
new type implementation.
(queryTokenTests.ts): Removed Query Token Tests
(Partial stub and stopped working)
(querySystemAccountTests.ts): Removed
Query System Account Tests (Stopped working)

Added .mocharc.json configuration file.
Cleanup

Signed-off-by: Dominik Roth <dominik@composable.finance>

* test(bondedFinance TX Tests, bondedFinance pallet, Runtime Tests ReadMe):

(txBondedFinanceTests.ts): Moved test handlers into a folder to reduce
the file length. Also added additional tests.

(BondedFinance Pallet):
In cancel function, set keep-alive of second Transfer function to false.
Since clears the wallet of the staking account, and wasn't working
therefore.

(README.md): Changed timeout example to not show an infinite
timeout. Added run information for the type generator.

Signed-off-by: Dominik Roth <dominik@composable.finance>

Co-authored-by: Dominik Roth <96540347+Dom-Roth@users.noreply.github.com>
Co-authored-by: Dominik Roth <dominik@composable.finance>
* check_runtime workflow

* check_runtime workflow

* Updates weights for picasso-dev

* update benchmark script

* update benchmark script

* support -> frame_support

* Updates weights for picasso-dev

* Updates weights for dali-dev

* fix conflict

* Add cargo.lock

* fix runtime.sh

* replace boldprint with echo

* adds set_changes_trie_config  to weights

* adds set_changes_trie_config  to weights

* Updates weights for picasso-dev

* hotpatch substrate

* fmt & clippy

* Updates weights for picasso-dev

* Update simnode script

* Update github workflow

* Update github workflow

* Updates weights for dali-dev

* Update github workflow

* Update github workflow

* Updates weights for composable-dev

* Add condition to ignore check_runtime on draft PR

* fmt

* adds +nighly to checks

* add git pull

* Finalizing cleanup

* Finalizing cleanup

* fmt fixes

* clippy fixes

* use +nightly-2021-11-29 for fmt

* Updates weights for picasso-dev

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
Co-authored-by: haroldsphinx <haroldsphinx@gmail.com>
* oracle api clarification

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixing pr comments

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed comment

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* crazy fmt issue

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* just something to tirgget build after fail

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed lending

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed price, added ratio test

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed comments of review

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixed comments

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>
* Update Makefile

* Update release

* Update

* Updating release

* Added runtime check

* Consolidate all branches into main

* Update check_runtime

* update benchmark workflow

* fix makefile

* diff base branch

* diff base branch

* diff base branch

* fix makefile

* github.ref

* i give up

* show-current

* use commit sha

* fetch main branch

* try again

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
The public polkadotjs api signRaw is wrapping the message in this tag.
* Update benchmarks of pallet-dutch-auction

* Update benchmarks of pallet-dutch-auction
* fix asset count to change an existing asset

* remove unused slash amount

* remove lingering slash amount

* handle better then default

* remove unwrap or defaults from asset_info

* fix benchmarks
* Rollout Cleanup to fix max buffer error
* fix check runtime for main & releases

* fix diffs

* conditionl artifact build

* fix syntax

* fix syntax

* testing

* take 2

* take 3

* seun 1 - 0 CI

* needs-benchmarks

* Update .maintain/client_release.sh

* fix release notes
* fix workflow syntax

* Add cleanup step

* add bump version

* bump version and changelog

* bump version and changelog

* bump version and changelog

* bump version and changelog
* Cleanup CI and add rust-toolchain.toml

* remove .yarn

* fmt
* Add BoundedSortedVec and SortedVec

* fail on unsorted decodes
* added paritytech

* update branch trigger

* update run machines

* Update .github/workflows/paritytech.yml

* Apply suggestions from code review

* update cargo nightly

* update cargo exec path

* Update .github/workflows/check.yml

Co-authored-by: Seun Lanlege <seun@composable.finance>

* update check.yml

* use llvm-cov action

* prevent rust-toolchain.toml from overriding parity:ci

* update workflow file

* fix hadolint

* update hadolint to action

* remove image for unit test

* fix syntax error

* install cargo-llvm manually

* use image

* skip hadolint and remark

* add llvm-tools-preview

* run llvm-cov on runner

* update workflow file

* update workflow file

* force install

* llvm-cov in paritytech/ci-linux:production

* rustup show

* install llvm

* remove sudo

* one-line install

* apt-get install wget

* apt-get install wget

* apt-get install wget

* gnupg2

* run code-cov on runner

* path to cargo bin

* remove llvm installation

* use specific nightly version

* please just work

* sigh

Co-authored-by: Seun Lanlege <seun@composable.finance>
Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
Co-authored-by: haroldsphinx <adedayoakinpelu@gmail.com>
dzmitry-lahoda and others added 26 commits January 28, 2022 19:02
* make benchmark to work with labels

* trigger workflow based on label
* add missing constant/getter

* fix mosaic bringing std via num-traits default features

* add mosaic to dali runtime
…ts (#558)

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix for dalishot backup

* testing backup

* testing backup

* testing backup

* testing backup

* cleanup

* exclude subxt

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
* added label trigger

* add if condition based on lable
* added label trigger

* add if condition based on lable

* fix if statement
* Introduce ControlOrigin

* import EnsureRoot
…s-registry (#575)

* Add implementation of codec::MaxEncodedLen for all types persisted to storage in assets-registry

* Bump spec_version
* Added 'std' features to Balances

* Removed Balances from build dep
* some clippy and warnings and more checks

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixing build

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fix version again

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* tuning deny

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* fixing rebase

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

Co-authored-by: Ewere Diagboya <nimboya@gmail.com>
* Implement basic DEX Router pallet.

* [CU-244gudh] Update dex-router (#561)

* Use BoundedVec instead of Vec in pallet-dex-router

* Add tests in pallet-dex-router

* Add TODO comment for minimum expected value as input parameter to `exchange()`.

Co-authored-by: andor0 <aaorlov1@gmail.com>
* Add MaxEncodedLen implementations in pallets

* Formatting
* failed to decode wrapped types

* inverted validate

* inverted existing impl of Validate

* Added module doc and examples

* cargo +nightly fmt

* fixed module doc examples

* removed commented out code

* restored validation

* cargo +nightly fmt

* made validate param more generic

* cleaned up validate calls
* disable logs during benchmarking

* Use wildcard for pallet selector

* re-add log filter

* tinker around more

* disable runtime change check

* add workflow dispatch trigger

* properly disable check for runtime changes
* Update simnode script

* Update simnode script
* Update simnode script

* Update simonde script
* Update simnode script

* Update simonde script

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* Pushing benchmark changes

* github action to upload benchmark commit

* github action to upload benchmark commit

Co-authored-by: haroldsphinx <haroldsphinx@users.noreply.github.com>
* Update simnode script

* Update simonde script

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

* Pushing benchmark changes

* github action to upload benchmark commit

* github action to upload benchmark commit

* github action to upload benchmark commit

Co-authored-by: haroldsphinx <haroldsphinx@users.noreply.github.com>
* switch deps

* add fork patch

* upgrade to v0.9.16

* wip parachain utils

* upgrade pallet-privilege to 0.9.16

* Add support of polkadot-v0.9.16 in pallet-oracle (#587)

* postpone upgrade

* missing maxencodedlen for defi struct

* style

* normalize orml-tokens/orml-traits and upgrade dex-router

* update cargolock

* derive MaxEncodedLen for Currency

* reorder

* revert registre MaxEncodedLen as XcmLocation does not implements it yet

* upgrade xcm related orml packages and add preimage

* format

* WIP: upgrade runtime, please CHECK THIS

* update cargo.lock

* upgrade node/chain_spec

* parachain_utils: make upgrade_runtime generic

* bump transaction version

* fmt

* parachain_utils:: minor fix

* parachain_utils: minor fixes

* Use BoundedVec instead of Vec (#589)

* upgrade executive, from AllPallets to AllPalletsReversedWithSystemFirst to
preserve previous behavior

* upgrade pallet mocks, adding missing MaxConsumers in sys config

* remove unused benchmark from composable

* fix oracle benchmarking

* update cargo.lock

* fix parachain-utils

* some stuff

* format

* fix tests/benchmarking

* update cargo.lock

* style

* some stuff

* upgrade xcm-emulator

* update cargo.lock

* ignore integration tests

* ignore simnode

* fix simnode

* benchmarks

* adds scheduler migrations

* cargo fmt

* bump runtime version

* cargo fmt

* fix benchmark workflow

* fix check benchmarks

* cargo fmt

* fix benchmark.yml

* fix runtime benchmark

* simnode stuff

* only benchmark picasso

* Pushing benchmark changes

* finalize picasso benchmarks

* fix weights

* cargo fmt

Co-authored-by: Hussein Ait Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: david <wizdave97@gmail.com>
Co-authored-by: andor0 <aaorlov1@gmail.com>
Co-authored-by: seunlanlege <seunlanlege@users.noreply.github.com>
@seunlanlege seunlanlege merged commit 6b6a966 into releases Feb 6, 2022
@seunlanlege seunlanlege deleted the release-v0.9.16 branch February 6, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.