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

fix for dalishot backup #569

Merged
merged 7 commits into from
Jan 31, 2022
Merged

fix for dalishot backup #569

merged 7 commits into from
Jan 31, 2022

Conversation

haroldsphinx
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

Codecov Report

Merging #569 (0dc1696) into main (aa8dfec) will increase coverage by 4.62%.
The diff coverage is 82.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
+ Coverage   60.96%   65.59%   +4.62%     
==========================================
  Files         142      152      +10     
  Lines       20650    23523    +2873     
==========================================
+ Hits        12589    15429    +2840     
- Misses       8061     8094      +33     
Impacted Files Coverage Δ
frame/bonded-finance/src/lib.rs 45.01% <ø> (+2.16%) ⬆️
frame/composable-support/src/lib.rs 100.00% <ø> (ø)
frame/composable-traits/src/bonded_finance.rs 90.32% <ø> (ø)
frame/composable-traits/src/defi.rs 78.87% <0.00%> (-3.48%) ⬇️
frame/composable-traits/src/lending/mod.rs 40.00% <0.00%> (-43.34%) ⬇️
frame/composable-traits/src/oracle.rs 100.00% <ø> (ø)
frame/composable-traits/src/vault.rs 75.00% <ø> (+12.50%) ⬆️
runtime/composable/src/lib.rs 17.50% <ø> (ø)
runtime/picasso/src/lib.rs 19.27% <ø> (ø)
integration-tests/src/cross_chain_transfer.rs 54.30% <0.74%> (-45.70%) ⬇️
... and 57 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0dd32dc...0dc1696. Read the comment docs.

@seunlanlege seunlanlege merged commit 6292e3f into main Jan 31, 2022
@seunlanlege seunlanlege deleted the fix-dalishot branch January 31, 2022 18:24
hussein-aitlahcen pushed a commit that referenced this pull request Feb 3, 2022
* fix for dalishot backup

* testing backup

* testing backup

* testing backup

* testing backup

* cleanup

* exclude subxt

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
seunlanlege added a commit that referenced this pull request Feb 6, 2022
* [CU-200y9ka] Auction: generate a file with weights (#470)

* CU-200y9ka - Auction: generate a file with weights

* Make clippy happier

* Fix tests

* Add remark check in CI (#220)

* Add remark check in CI

* Add a config file for remark

* Update config of CI

* Make remark happier

* Revert crowdloan bench (#485)

* refactor crowdloan benchmarking

* revert benchmarking integration of crowdloan rewards

* CU-1uq4a7x - ValidateUnsigned instead of SignedExtension in Crowdloan (#486)

* move crowdloan from SignedExtension to ValidateUnsigned

* revert transaction version upgrade as we removed the SignedExtra

* Check including wasm build (#489)

* Check including wasm build

* Add std feature check

* remove actions-rs from test step (#490)

* CU-1ubvcrq - introduce `Validated` and `Validate` for custom codec validation (#492)

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

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

* devnet (#427)

* devnet release

* Build everything

* Use self hosted runners

* use pre-installed cargo

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

* Fix devnet deployment (#502)

* fix

* only on main

* CU-1wty9p0 oracle api clarification (#462)

* 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>

* docs(Updated local devnet run information.): (#505)

Removed "--features develop" flag from local build command instructions.

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

* CU-1yykjpw Fix calc_utilization_ratio() and add proptest for it.

* CU-1u5ykup - add generated types and refactor, add eth sign to crowdloan 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>

* Add Makefile.toml (#506)

* Adds Benchmarking & Simnode (#497)

* 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>

* CU-1wty1zv fixed lending (#484)

* 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 benchmark workflow (#510)

* 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>

* Add <Bytes> tag for polkadotjs signature in crowdloan (#514)

The public polkadotjs api signRaw is wrapping the message in this tag.

* [CU-2326a8t] Update benchmarks of pallet-dutch-auction (#512)

* Update benchmarks of pallet-dutch-auction

* Update benchmarks of pallet-dutch-auction

* fix asset count to change an existing asset (#481)

* 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

* Add cleanup step (#515)


* Rollout Cleanup to fix max buffer error

* fix check runtime for main & releases (#513)

* 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

* Add bump version (#519)

* 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

* Release drafter update (#525)

* cleanup some CI cruft (#511)

* Cleanup CI and add rust-toolchain.toml

* remove .yarn

* fmt

* adds script to update draft release (#528)

* added oracle setup script (#503)

* Add BoundedSortedVec and SortedVec (#532)

* Add BoundedSortedVec and SortedVec

* fail on unsorted decodes

* adds paritytech/ci-linux:production (#536)

* 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>

* substitute dali & picasso wasm in chainspec with tested wasm (#539)

* clean up release pipeline (#541)

* Add Acala's tests (#534)

* [CU-23t6rux] Add decimals for foreign assets in assets-registry (#552)

* Add decimals for foreign assets in assets-registry

* Renaming

* fixes #535 (#553)

* fixes #535

* don't skip integration tests

* remove ref: main

* get github ref from action

* try base_ref

* try GITHUB_SHA

* GITHUB_REF_NAME

* back to GITHUB_SHA

* checkout pull request commit

* renamee to release-pipeline

* back to

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* install stable+nightly (#554)

* Fix issue with git diff (#557)

* Fix issue with git diff

* rename git tags

* rename git tags

* deploy devnet from main (#559)

* kill stale jobs when pushing new changes (#562)

* kill stale jobs when pushing new changes

* test cancel

* test: Fixed docstrings and variable naming. (#529)

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

test: Checks added to oracle tx tests, fixed crowdloan tx test.

Result checks added to oracle tx tests.
Fixed associate() tests for
crowdloan rewards.
Added oracle tx tests documentation.
Fixed Lint
configuration

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

test: Fix test.ts calls.

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

test(Oracle Runtime Tests): All oracle success tests implemented.

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

fix(Runtime Tests Interfaces): Fixed faulty interface generation, due to changes to dutchAuction pallet.

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

test(Better error messages.):

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

test(bugfix):Tests erroring if result has no event attribute.
Updated polkadot api.

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

test: Oracle Runtime Test Integration, Bugfix in Request function.

(txOracleTests.ts): Added addStake Test, fixed a few
issues.
(polkadotjs.ts): Fixed filter for missing event tag in request
result.
(.mocharc.json): Set retries per test to 0. This had caused
problems, due to multiple Promise returns, if the answer was just
delayed.
(tsconfig.json): Configured to resolve json modules.

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

test: Oracle Tests Implementation, Configs & Deps, Cleanup

(txOracleTests.ts): Implemented first oracle
tests.

(txCrowdloanRewardsTests.ts): Cleanup.
(polkadotjs.ts): Switched
from lambda functions to normal ones.
(test.ts): Added oracle tests
calls and cleanup.
(mocharc.json): Added reporter configurations and
added .ts files to "watch-files".

Dependency update.

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

test: Oracle Tests Implementation, Configs & Deps, Cleanup

(txOracleTests.ts): Implemented first oracle
tests.

(txCrowdloanRewardsTests.ts): Cleanup.
(polkadotjs.ts): Switched
from lambda functions to normal ones.
(test.ts): Added oracle tests
calls and cleanup.
(mocharc.json): Added reporter configurations and
added .ts files to "watch-files".
Fixed Mochawesome not exporting results.

Dependency update.

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

* pallet mosaic (#547)

* initial commit

* save

* add a couple of tests

* add events everywhere

* Fix updating of penalty

* Add test for linear_decay

* remove unused variables

* add rescind_timelocked_mit and set_timelock_duration

* add tests for transfer_to and accept_transfer

* more tests and a fix

* enable todo in do_transfer_to

* avoid burning the full balance

* introduce tuple in scope instead of indexing

* fixup

* Split account into sub_accounts

* Fix do_transfer_to test by checking if the correct Event was emitted

* Fix timelocked_mint tests

* Fix issue where any user could remove IncomingTransactions belonging to any other account

* More mosaic docs

* introduce `TransactionType` and `SubAccount` to split incoming/ougoing accounts

Users were having their incoming/outgoing funds merged together into a single
sub_account within the pallet. Which would allow a bug to impact all the funds.
By splitting them, they are isolated.

* use tuple deconstruction instead of indexing

* format tests

* use `AssetId` instead of `CurrencyId` for consistency in tests

* implements more tests & fix some types used by mocking (accountId too small)

* Group transfer_to tests

* Add more test todos

* set_relayer tests

* rotate_relayer tests

* set_network tests

* more budget tests

* more mosaic tests

* mosaic timelocked_mint tests

* more mosaic timelocked_mint tests

* add a couple of tests

* Fix updating of penalty

* add tests for transfer_to and accept_transfer

* more tests and a fix

* Split account into sub_accounts

* Fix timelocked_mint tests

* More mosaic docs

* introduce `TransactionType` and `SubAccount` to split incoming/ougoing accounts

Users were having their incoming/outgoing funds merged together into a single
sub_account within the pallet. Which would allow a bug to impact all the funds.
By splitting them, they are isolated.

* format tests

* use `AssetId` instead of `CurrencyId` for consistency in tests

* implements more tests & fix some types used by mocking (accountId too small)

* Group transfer_to tests

* Add more test todos

* more mosaic tests

* mosaic timelocked_mint tests

* mosaic test claim_to

* convert first mosaic test to proptest

* proptest with unique AccountIds

* add prop_assert_err and prop_assert_noop

* use prop_assert_err and prop_assert_noop in mosaic tests

* rename decay types

* test decay of budget penalties for mints

* cargo fmt

* cargo fmt nightly

* forbid impossible state by avoiding default instance for RelayerConfig

We were using Default + ValueQuery for RelayerConfig.
It was fine because RelayerConfig was containing an `Option<AccountId>`
but this would allow inconsistent states such as None for RelayerConfig.current
& None for RelayerConfig.next.
By removing the option within RelayerConfig and using an OptionQuery for the
storage,
we it's more clear that a Relayer can be Set/Unset. And if set, an AcccountId
must be present.

* better naming

* fmt

* update test-helpers edition

* remove rust-version from mosaic

* refactor for consistency

* remove unused newline

* better naming

* more comments on decayer

* reflect the partial/complete nature of a transfer via the event

* rebase on main

* fiix difffd

* bump spec version for simnode

* fmt

Co-authored-by: kaiserkarel <k.l.kubat@gmail.com>
Co-authored-by: Hussein Ait Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* CU-1ux3e25 CU-1q4x2t6 CU-1pdtjrz finalizing lending features (#546)

* make benchmark to work with labels (#563)

* make benchmark to work with labels

* trigger workflow based on label

* Update CODEOWNERS (#565)

* Bring mosaic in dali (#564)

* add missing constant/getter

* fix mosaic bringing std via num-traits default features

* add mosaic to dali runtime

* Bump node-fetch from 2.6.6 to 2.6.7 in /integration-tests/runtime-tests (#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>

* update release drafter template (#566)

* Update sequence diagram of assets-registry (#568)

* fix for dalishot backup (#569)

* 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 (#576)

* added label trigger

* add if condition based on lable

* Simnode trigger (#577)

* added label trigger

* add if condition based on lable

* fix if statement

* Introduce ControlOrigin (#574)

* Introduce ControlOrigin

* import EnsureRoot

* CU-24fwjma Add implementation of codec::MaxEncodedLen in pallet-assets-registry (#575)

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

* Bump spec_version

* Added 'std' features to Balances (#548)

* Added 'std' features to Balances

* Removed Balances from build dep

* some clippy and warnings and more checks (#570)

* 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>

* CU-1nh9erq Implement basic DEX Router pallet. (#446)

* 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>

* CU-24fwjma Add MaxEncodedLen implementations in pallets (#580)

* Add MaxEncodedLen implementations in pallets

* Formatting

* all scripts: fail on error (#583)

* Inverted Validate trait (#572)

* 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

* add workflow for label validation (#582)

* simplify benchmarking (#585)

* 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 (#590)

* Update simnode script

* Update simnode script

* Update simnode path (#592)

* Update simnode script

* Update simonde script

* Update simnode path (#593)

* 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 path (#594)

* 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>

* Upgrade to polkadot-v0.9.16 (#567)

* 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>

Co-authored-by: andor0 <aaorlov1@gmail.com>
Co-authored-by: Hussein Ait-Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: Karel L. Kubat <k.l.kubat@gmail.com>
Co-authored-by: Dzmitry Lahoda <dzmitry@lahoda.pro>
Co-authored-by: Dominik Roth <96540347+Dom-Roth@users.noreply.github.com>
Co-authored-by: Vivek Pandya <vivekvpandya@gmail.com>
Co-authored-by: Dominik Roth <dominik@composable.finance>
Co-authored-by: Adedayo Akinpelu <adedayoakinpelu@gmail.com>
Co-authored-by: haroldsphinx <haroldsphinx@gmail.com>
Co-authored-by: JesseAbram <33698952+JesseAbram@users.noreply.github.com>
Co-authored-by: Ewere Diagboya <nimboya@gmail.com>
Co-authored-by: cor <cor@pruijs.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Connor Davis <17688291+PoisonPhang@users.noreply.github.com>
Co-authored-by: haroldsphinx <haroldsphinx@users.noreply.github.com>
Co-authored-by: david <wizdave97@gmail.com>
Co-authored-by: seunlanlege <seunlanlege@users.noreply.github.com>
seunlanlege added a commit that referenced this pull request Mar 22, 2022
* [CU-200y9ka] Auction: generate a file with weights (#470)

* CU-200y9ka - Auction: generate a file with weights

* Make clippy happier

* Fix tests

* Add remark check in CI (#220)

* Add remark check in CI

* Add a config file for remark

* Update config of CI

* Make remark happier

* Revert crowdloan bench (#485)

* refactor crowdloan benchmarking

* revert benchmarking integration of crowdloan rewards

* CU-1uq4a7x - ValidateUnsigned instead of SignedExtension in Crowdloan (#486)

* move crowdloan from SignedExtension to ValidateUnsigned

* revert transaction version upgrade as we removed the SignedExtra

* Check including wasm build (#489)

* Check including wasm build

* Add std feature check

* remove actions-rs from test step (#490)

* CU-1ubvcrq - introduce `Validated` and `Validate` for custom codec validation (#492)

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

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

* devnet (#427)

* devnet release

* Build everything

* Use self hosted runners

* use pre-installed cargo

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

* Fix devnet deployment (#502)

* fix

* only on main

* CU-1wty9p0 oracle api clarification (#462)

* 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>

* docs(Updated local devnet run information.): (#505)

Removed "--features develop" flag from local build command instructions.

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

* CU-1yykjpw Fix calc_utilization_ratio() and add proptest for it.

* CU-1u5ykup - add generated types and refactor, add eth sign to crowdloan 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>

* Add Makefile.toml (#506)

* Adds Benchmarking & Simnode (#497)

* 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>

* CU-1wty1zv fixed lending (#484)

* 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 benchmark workflow (#510)

* 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>

* Add <Bytes> tag for polkadotjs signature in crowdloan (#514)

The public polkadotjs api signRaw is wrapping the message in this tag.

* [CU-2326a8t] Update benchmarks of pallet-dutch-auction (#512)

* Update benchmarks of pallet-dutch-auction

* Update benchmarks of pallet-dutch-auction

* fix asset count to change an existing asset (#481)

* 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

* Add cleanup step (#515)


* Rollout Cleanup to fix max buffer error

* fix check runtime for main & releases (#513)

* 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

* Add bump version (#519)

* 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

* Release drafter update (#525)

* cleanup some CI cruft (#511)

* Cleanup CI and add rust-toolchain.toml

* remove .yarn

* fmt

* adds script to update draft release (#528)

* added oracle setup script (#503)

* Add BoundedSortedVec and SortedVec (#532)

* Add BoundedSortedVec and SortedVec

* fail on unsorted decodes

* adds paritytech/ci-linux:production (#536)

* 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>

* substitute dali & picasso wasm in chainspec with tested wasm (#539)

* clean up release pipeline (#541)

* Add Acala's tests (#534)

* [CU-23t6rux] Add decimals for foreign assets in assets-registry (#552)

* Add decimals for foreign assets in assets-registry

* Renaming

* fixes #535 (#553)

* fixes #535

* don't skip integration tests

* remove ref: main

* get github ref from action

* try base_ref

* try GITHUB_SHA

* GITHUB_REF_NAME

* back to GITHUB_SHA

* checkout pull request commit

* renamee to release-pipeline

* back to

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* install stable+nightly (#554)

* Fix issue with git diff (#557)

* Fix issue with git diff

* rename git tags

* rename git tags

* deploy devnet from main (#559)

* kill stale jobs when pushing new changes (#562)

* kill stale jobs when pushing new changes

* test cancel

* test: Fixed docstrings and variable naming. (#529)

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

test: Checks added to oracle tx tests, fixed crowdloan tx test.

Result checks added to oracle tx tests.
Fixed associate() tests for
crowdloan rewards.
Added oracle tx tests documentation.
Fixed Lint
configuration

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

test: Fix test.ts calls.

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

test(Oracle Runtime Tests): All oracle success tests implemented.

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

fix(Runtime Tests Interfaces): Fixed faulty interface generation, due to changes to dutchAuction pallet.

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

test(Better error messages.):

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

test(bugfix):Tests erroring if result has no event attribute.
Updated polkadot api.

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

test: Oracle Runtime Test Integration, Bugfix in Request function.

(txOracleTests.ts): Added addStake Test, fixed a few
issues.
(polkadotjs.ts): Fixed filter for missing event tag in request
result.
(.mocharc.json): Set retries per test to 0. This had caused
problems, due to multiple Promise returns, if the answer was just
delayed.
(tsconfig.json): Configured to resolve json modules.

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

test: Oracle Tests Implementation, Configs & Deps, Cleanup

(txOracleTests.ts): Implemented first oracle
tests.

(txCrowdloanRewardsTests.ts): Cleanup.
(polkadotjs.ts): Switched
from lambda functions to normal ones.
(test.ts): Added oracle tests
calls and cleanup.
(mocharc.json): Added reporter configurations and
added .ts files to "watch-files".

Dependency update.

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

test: Oracle Tests Implementation, Configs & Deps, Cleanup

(txOracleTests.ts): Implemented first oracle
tests.

(txCrowdloanRewardsTests.ts): Cleanup.
(polkadotjs.ts): Switched
from lambda functions to normal ones.
(test.ts): Added oracle tests
calls and cleanup.
(mocharc.json): Added reporter configurations and
added .ts files to "watch-files".
Fixed Mochawesome not exporting results.

Dependency update.

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

* pallet mosaic (#547)

* initial commit

* save

* add a couple of tests

* add events everywhere

* Fix updating of penalty

* Add test for linear_decay

* remove unused variables

* add rescind_timelocked_mit and set_timelock_duration

* add tests for transfer_to and accept_transfer

* more tests and a fix

* enable todo in do_transfer_to

* avoid burning the full balance

* introduce tuple in scope instead of indexing

* fixup

* Split account into sub_accounts

* Fix do_transfer_to test by checking if the correct Event was emitted

* Fix timelocked_mint tests

* Fix issue where any user could remove IncomingTransactions belonging to any other account

* More mosaic docs

* introduce `TransactionType` and `SubAccount` to split incoming/ougoing accounts

Users were having their incoming/outgoing funds merged together into a single
sub_account within the pallet. Which would allow a bug to impact all the funds.
By splitting them, they are isolated.

* use tuple deconstruction instead of indexing

* format tests

* use `AssetId` instead of `CurrencyId` for consistency in tests

* implements more tests & fix some types used by mocking (accountId too small)

* Group transfer_to tests

* Add more test todos

* set_relayer tests

* rotate_relayer tests

* set_network tests

* more budget tests

* more mosaic tests

* mosaic timelocked_mint tests

* more mosaic timelocked_mint tests

* add a couple of tests

* Fix updating of penalty

* add tests for transfer_to and accept_transfer

* more tests and a fix

* Split account into sub_accounts

* Fix timelocked_mint tests

* More mosaic docs

* introduce `TransactionType` and `SubAccount` to split incoming/ougoing accounts

Users were having their incoming/outgoing funds merged together into a single
sub_account within the pallet. Which would allow a bug to impact all the funds.
By splitting them, they are isolated.

* format tests

* use `AssetId` instead of `CurrencyId` for consistency in tests

* implements more tests & fix some types used by mocking (accountId too small)

* Group transfer_to tests

* Add more test todos

* more mosaic tests

* mosaic timelocked_mint tests

* mosaic test claim_to

* convert first mosaic test to proptest

* proptest with unique AccountIds

* add prop_assert_err and prop_assert_noop

* use prop_assert_err and prop_assert_noop in mosaic tests

* rename decay types

* test decay of budget penalties for mints

* cargo fmt

* cargo fmt nightly

* forbid impossible state by avoiding default instance for RelayerConfig

We were using Default + ValueQuery for RelayerConfig.
It was fine because RelayerConfig was containing an `Option<AccountId>`
but this would allow inconsistent states such as None for RelayerConfig.current
& None for RelayerConfig.next.
By removing the option within RelayerConfig and using an OptionQuery for the
storage,
we it's more clear that a Relayer can be Set/Unset. And if set, an AcccountId
must be present.

* better naming

* fmt

* update test-helpers edition

* remove rust-version from mosaic

* refactor for consistency

* remove unused newline

* better naming

* more comments on decayer

* reflect the partial/complete nature of a transfer via the event

* rebase on main

* fiix difffd

* bump spec version for simnode

* fmt

Co-authored-by: kaiserkarel <k.l.kubat@gmail.com>
Co-authored-by: Hussein Ait Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* CU-1ux3e25 CU-1q4x2t6 CU-1pdtjrz finalizing lending features (#546)

* make benchmark to work with labels (#563)

* make benchmark to work with labels

* trigger workflow based on label

* Update CODEOWNERS (#565)

* Bring mosaic in dali (#564)

* add missing constant/getter

* fix mosaic bringing std via num-traits default features

* add mosaic to dali runtime

* Bump node-fetch from 2.6.6 to 2.6.7 in /integration-tests/runtime-tests (#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](https://github.com/node-fetch/node-fetch/compare/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>

* update release drafter template (#566)

* Update sequence diagram of assets-registry (#568)

* fix for dalishot backup (#569)

* 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 (#576)

* added label trigger

* add if condition based on lable

* Simnode trigger (#577)

* added label trigger

* add if condition based on lable

* fix if statement

* Introduce ControlOrigin (#574)

* Introduce ControlOrigin

* import EnsureRoot

* CU-24fwjma Add implementation of codec::MaxEncodedLen in pallet-assets-registry (#575)

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

* Bump spec_version

* Added 'std' features to Balances (#548)

* Added 'std' features to Balances

* Removed Balances from build dep

* some clippy and warnings and more checks (#570)

* 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>

* CU-1nh9erq Implement basic DEX Router pallet. (#446)

* 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>

* CU-24fwjma Add MaxEncodedLen implementations in pallets (#580)

* Add MaxEncodedLen implementations in pallets

* Formatting

* all scripts: fail on error (#583)

* Inverted Validate trait (#572)

* 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

* add workflow for label validation (#582)

* simplify benchmarking (#585)

* 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 (#590)

* Update simnode script

* Update simnode script

* Update simnode path (#592)

* Update simnode script

* Update simonde script

* Update simnode path (#593)

* 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 path (#594)

* 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>

* Upgrade to polkadot-v0.9.16 (#567)

* 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>

* update git token for label (#597)

* Update an errors handling (#599)

* add std features for some missing pallets (#602)

* mosaic benchmarks

* benchmark set_relayer

* benchmark rotate_relayer

* benchmark set_network and set_budget (set_budget still wip)

* more explicit error when a tx is still locked

* implement missing benchmarking

* introduce weightinfo for mosaic

* introduce weightinfo for mosaic config

* fix benchmark and test issues

* generate weights for mosaic and use them in dali

* style

* bump impl version for simnode

* Pushing benchmark changes

* prefer the usage of arbitrary weights rather than 0 for ()

Co-authored-by: Hussein Ait Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: hussein-aitlahcen <hussein-aitlahcen@users.noreply.github.com>

* Update benchmarking docs (#605)

* improving lending docs (#601)

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

* Karel/currency ranges (#584)

* save

* migrate pallets to new currency-factory-impl

* lint

* add CurrencyFactory to list-benchmarks

* disable RUNTIME_CHECK

* Updates weights for picasso-dev

* remove needles reference

* Add MaxConsumers to currency-factory

Co-authored-by: haroldsphinx <haroldsphinx@gmail.com>

* CU-1wty1h0 liquidations test/bench/runtime - required by lending (#608)

* liquidation test and runtime
Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

* build fix

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

* revert chainspec to picasso-1.2.0 (#610)

* Karel/assets more tests (#551)

* Add proptests for currency implementation

* reservable currency tests

* updated indentation

* updated indentation

* updating formatting

* multicurrency tests

* added lockcable multicurrency tests

* updated lockable multicurrency tests

* updated lockable multicurrency tests

* updated lockable multicurrency tests

* repariate_reserve

* updated Cargo.lock

* removed unused comment

* removed empty comments

* removed version

* returned error

* returned to proptest

* updated mock user name

* updated mock user name

* fixed variale dec

* removed unused imports

* fixed braces

* added import

* returned error

* empty

* cargo fmt

* updated test

* updated test

Co-authored-by: kaiserkarel <k.l.kubat@gmail.com>

* CI Fixes (#613)

* ci fixes

* test release pipeline

* remove release pipeline

* Update benchmarks settings (#617)

* CU-256ucnj Update pallet-lending (#609)

* Update pallet-lending

* Do  extrinsic permissionless

* bonded-finance benchmarking (#579)

* finalize bonded-finance benchmarking

* style

* more doc and cleanup todo

* arbitrary weights for ()

* bump impl_version

* Pushing benchmark changes

* devnet upgrade (#622)

* Update Simnode Implementation (#624)

* simnode update

* update simnode api implementation

* update simnode deps

* remove unused deps

* Update integration-tests/simnode/src/chain/picasso.rs

* fix diffing on release-pipeline (#626)

* Ci upgrade (#627)

* Update simnode script

* Update simonde script

* Cleanup Ansible github actions

* Debugging docker release failures

* Add Slack Integration for feedback notification

* Ad custom channel for reporrting errors

* Add cargo build step for docker release

* Update makefile for docker

* Update makefile for docker

* Fix docker release

* Fix docker release

* Add dali-chachacha client release to docker release

* Create release notifier

* Update slack token

* Update release-pipeline fix

* Update release-pipeline fix

* add concurrency flow

* Update docker releae flow

* Update Makefile

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* update workflow

* add version to realease-pipeline binaru

* cleanup workflow

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* fix polkadot launch config (#621)

* adds chainspec for rococo (#631)

* Ben/assets rpc (#493)

* Implement basic RPC structure

Implement basic RPC structure

Implement basic balance_of functionality (untested)

Add asset rpc to node

Add assets RPC to picasso runtime

Remove develop feature gate from rpc

Add assets rpc to picasso runtime (WIP)

Add assets RPC to dali and composable runtimes

Fix WASM build

This requird refactoring the assets pallet into 3 separate crates:
rpc, runtime-api, and pallet
so that there weren't non-wasm compatable dependencies in the runtime.

add std feature to composable

Move assets pallet back to frame/assets

Remove extraneous commented code

Update workspace Cargo.toml

Formatting

Add crowdloan rewards rpc

Fix workspace members

Update cargo.lock & add crowdloan rewards rcp to runtimes

Implement basic crowdloan rewards rpc

custom rpc polkadotjs

Change signature of crowdloan rewards rpc to use AccountId

add interface types

Fix integration test structure

Add basic assets tests structure

WIP push

Fix u128 error in rpc definitions with wrapper type

Fix errors after rebase & add RPC documentation

Fix missed merge conflict marker

Improve RPC documentation

Reorganize types

Re-add types

Fix testing with assets rpc

Clean up imports

Reorganize assets rpc tests

Update crowdloan rewards tests

Uncomment integration tests

Formatting

Update Cargo.lock

Remove unused imports

Attempt to fix wasm build error

Remove unnecessary dependencies from assets pallet

Remove commented code and dbg! usage in assets pallet

Cargo.toml formatting

Reorganize dependencies in picasso-runtime

Update assets rpc to v0.9.16

Clean up dependencies in assets-runtime-api

Clean up dependencies in composable-support

Clean up dependencies in composable-traits

Clean up rpc.md

Review & reorganize dependencies in currency-factory

Remove extra newline in workspace Cargo.toml

Remove num-traits dependency from assets pallet

Review & reorganize dependencies in crowdloan-rewards

Review & reorganize dependencies in crowdloan-rewards rpc

Review & reorganize dependencies in crowdloan-rewards runtime-api

Reorganize composable-support/rpc_helpers

Update Cargo.lock

* Formatting

* Remove assets tests.rs file

* Remove commented-out code

* Remove specific RPC crate entries in workspace Cargo.toml

* Remove std feature from assets-rpc

* Update Cargo.lock

* Update generated api types

* Remove std feature from crowdloan-rewards-rpc

* Clean up crowdloan-rewards-rpc

* Update Cargo.lock

* Update RPC docs

* Clean up RPC tests

* Remove unused imports in crowdloan-rewards-rpc

* Update Cargo.lock

* Fix slash for chatops (#629)

* test push with labels

* test push

* test push again

* test push #3

* test push 4

* test push 5

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* Refactored Validated Traits (#619)

* refactored Validated traits

* removed U from new

* lending into runtime (#616)

* lending into runtime

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

* added comment on more tests

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

* fixed review comment

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

* fixing wasm build

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

* Pushing benchmark changes

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

* sing

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

* rebase main

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

* Revert "Pushing benchmark changes"

This reverts commit 2130ef4ac4237d2d1234474097f0ceb2900f455f.

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

* fixed comments

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

* fixed borkne script

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

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
Co-authored-by: dzmitry-lahoda <dzmitry-lahoda@users.noreply.github.com>

* Bump polkadot-launch version, update polkadot-launch configuration (#639)

* test(Runtime Integration Tests): Runtime integration tests parallelization & Mocha v.9 (#560)

Updated asset & crowdloan rpc tests with new structure.
Fixed types.
Updated deps.

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

test(Runtime Integration Tests): Fixed for new bonded finance change & types update.

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

test(Runtime Integration Tests): Updated types & deps.

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

test(Runtime Integration Tests): Types and dependency updates.

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

test(Runtime Integration Tests): Updated polkadotjs dep, and refreshed types.

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

test(Runtime Integration Tests): Removed unnecessary lines of code within oracle tests.

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

test(Runtime Integration Tests): Start Balance Generator added, fixed generators.

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

test(Runtime Integration Tests): Fix: Last commit did contain build failures, due to missing references.

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

test(Runtime Integration Tests): Updated structure, docs & generated types.

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

test(Runtime Integration Tests): Fixed slow setting, fixed docstrings.

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

test(Runtime Integration Tests): Fixed timeout setting for oracle.reclaimStake() test.

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

test(Runtime Integration Tests): Made crowdloan rewards tx tests being able to work multiple times on the same chain.
Upped slow time configuration for mocha.

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

test(Runtime Integration Tests): Bonded Finance TX Checks updated & Parallelization.

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

test(Runtime Integration Tests): W.I.P. Parallelization Integration.

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

* Bump node-fetch from 2.6.1 to 2.6.7 in /setup (#542)

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...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>

* Bump node-fetch in /scripts/polkadot-launch/initialization (#544)

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)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/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>

* Bump simple-get from 2.8.1 to 2.8.2 in /scripts/polkadot-launch (#595)

Bumps [simple-get](https://github.com/feross/simple-get) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](https://github.com/feross/simple-get/compare/v2.8.1...v2.8.2)

---
updated-dependencies:
- dependency-name: simple-get
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump simple-get from 2.8.1 to 2.8.2 in /integration-tests/runtime-tests (#586)

Bumps [simple-get](https://github.com/feross/simple-get) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](https://github.com/feross/simple-get/compare/v2.8.1...v2.8.2)

---
updated-dependencies:
- dependency-name: simple-get
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Ben/update rpc docs (#643)

* Update rpc.md to new integration-tests structure

* rename rpc.md to custom-rpcs.md

* Add bootnode peerid rococo (#644)

* Update simnode script

* Update simonde script

* Add new bootnode peer ID

* xcmp: speed up tests, fixed some tests (#571)

* Ben/update rpc docs (#643)

* Update rpc.md to new integration-tests structure

* rename rpc.md to custom-rpcs.md

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

* lending into runtime

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

* improved xcmp support

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

Co-authored-by: benluelo <57334811+benluelo@users.noreply.github.com>
Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* add initialize_at (#640)

* add initialize_at

* add check to ensure claims are only available after start block

* add enabled check in ValidateUnsigned

* enables collator-sidecar (#648)

* Update make version (#646)

* Update simnode script

* Add new bootnode peer ID

* fix docker version (#651)

* fix docker version

* set proper env

* try again

* Update dockerfile

* Clean up release

* Clean up release

* Clean up release

* Clean up release

Co-authored-by: haroldsphinx <adedayoakinpelu@gmail.com>

* Add Dockerfile to build composable-sandbox (#652)

* xmcp take weight (#581)

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

* Fix amount_available_to_claim_for RPC (#642)

* Ansible update (#658)

* Update notification url

* upgrade codecov ci action (#660)

* Ansible update (#662)

* Update simnode script

* Update simonde script

* Add new bootnode peer ID

* check release update

* mute picasso

* mute picasso

* mute picasso

* mute picasso

* mute picasso

* mute picasso

* Update notification url

* Update release pipeline

* Update release pipeline

* Update release pipeline

* trigger build

* trigger build

* trigger build

* trigger build

* trigger build

* trigger build

* trigger build

* trigger build

* trigger build

* update local

* update local

* update local

* update local

* update make version

* update make version

* update make version

* Ansible update (#664)

* collator sidecar (#669)

* use jsonrpsee instead

* cargo fmt

* add std features to dev-dependencies (#668)

* [CU-1ux39mq] Validate vault extrinsics (#647)

* Added validation to Vault

* Added validation for Creation Deposit

* Added validation for Max Strategies

* Fixed benchmarking

* cargo +nightly fmt

* lending benchmarking

* Removed commented code

* Seun fix collator sidecar (#670)

* use jsonrpsee instead

* cargo fmt

* use http client instead

* cargo fmt

* sigh

* sigh

* [CU-1vzab3b] Added TryIntoValidated (#666)

* Added TryIntoValidated

* moved U to fn type param

* CI job to build a Docker image of composable-sandbox (#672)

* [CU-1ux39qh] Validation/oracle (#655)

* updated oracle validation

* upstream

* removed trait

* removed trait

* updated oracle validation

* cargo lock

* updated validation

* updated tests

* cargo

* updated tests

* updated benchmark

* fmt

* fixed error

* fixed error

* chore(oracle): remove valid_ prefixes

* feat(oracle): public impl Deref for Validated

* fmt

* fix(oracle): fix broken benchmarks

* fmt

Co-authored-by: cor <cor@pruijs.dev>

* lending market creation event is good (#673)

* market event is good

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

* merge

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

* removed curve out of event

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

* Extend Simnode RPC Apis (#677)

* extend simnode rpc apis

* refactor simnode

* update simnode workflow files

* fixes

* bump simnode

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* Updated Crowdloan Readme (#678)

* Ben/currency docs (#676)

* lending into runtime

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

* Add CreateMarket event test

* Update Currency docs

* Remove changes brought over from previous branch

* Remove changes brought over from previous branch

* Remove trait impls and CurrencyId type alias

* Re-add CurrencyId type

* Fix doctests

* Fix doctests

* Fix docs (for real this time)

* Remove plotter artifacts

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* adds simnode docs (#685)

* fix(benchmarks): oracle: prefer the usage of the runtime type when benchmarking (#684)

* fix(benchmarks): prefer the usage of the runtime type when benchmarking

* revert the integration of lending benchmark

* Pushing benchmark changes

* fix(ci): mandatory single-pass benchmarking (#686)

* fix(ci): mandatory single-pass benchmarking against runtimes to avoid breaking changes in configs

* fix(benchmarking): normalize bonded-finance/mosaic WeightInfo path

* CU-263dx6e - Mosaic assets mapping (#683)

* use blake2 for indexing maps

* more comments

* introduce 2-way mapping for assets, (network_id, remote_asset) ->
asset_id, (network_id, asset_id) -> remote_asset

* introduce a enum for mosaic remote assets to simplify future upgrade

* Pushing benchmark changes

* Refactor uniswap, curve & interface, introduce extrinsic + benchmarkings (#618)

* Implement get_exchange_value() function in DEXs.
Implement `buy()` and `sell()` in DEXs.
Refactor `exchange()` and add `update_balance()` function.

* Update dex-router pallet to not use PoolTokenIndex.

* Implement buy/sell in dex-router pallet.

* refactor uniswap pallet

* introduce custom partialeq for pair such that pair == swap(pair)

* cleanup curve amm

* style

* fix uniswap

* document fee

* refactor imports

* rename sell `quote_amount` to `base_amount` as we always sell the base

* better uniswap maths

* better documentation & introduce extrinsics

* clean cargo deps

* introduce benchmarking

* Refactor curve-amm pallet.

* Fix uniswap-v2 pallet so test passes.

* Fix issues with curve-amm and make test pass.

* Add extrinsics for curve-amm pallet.
Add dummy weights.
Add benchmarks for curve-amm pallet.
Add few tests.
Charge protocol_fee from lp_fee.

* Use BigUint for internal computation in curve-amm.
Add extrinsics for curve-amm pallet.
Add dummy weights.
Add benchmarks for curve-amm pallet.
Add few tests.
Charge protocol_fee from lp_fee.

* Fix dex_ruoter tests.

* fix uniswap get_exchange_value

* introduce composable-maths

* refactor uniswap to use composable-maths

* fix dex router

* Add test for plot.

* extract more uniswap maths to composable-maths

* spelling and comment

* Remove use of VecDequeue from dex-router pallet.

* fix(lending): use runtime weights

* add stableswap/constant_product dexes to dali

* Add test for curve plot.

* fix(curve-amm): mocks + curve graph drawing

* Fix benchmark test issues for curver-amm and uniswap-v2 pallet.

* Fix fee calculation in add_liquidity() and add simple test for it.

* style

* fix(dali): add benchmarking for uniswap/curve

Co-authored-by: Vivek Pandya <vivekvpandya@gmail.com>

* upgrade devnet (#687)

* CU-2697dme - Crowdloan funded rewards (#693)

* fix(crowdloan-rewards): avoid silent overflow when populating rewards

* fix(crowdloan-rewards): fix typo

* fix(crowdloan-rewards): make constants const and document signature tag origin

* fix(crowdloan-rewards): better comments

* feat(crowdloan-rewards): expected pallet account to hold rewards funds instead
of minting the reward

* fix(style): apply make style

* Documentation deployment (#691)

* feat(ci): push docs along binaries

* feat(devnet): use composable.ninja subdomain

* fix(crowdloan-rewards): allow to incrementally populate the rewards (#694)

We were removing previous entry whenever we were doing a populate call which
would result in an issue when the transaction would exceed a block size.

* Set reasonable values (#695)

* Set reasonable values

* fmt

* fix 'liquidation' typos (#689)

* fix(ci): remove docs after having compressed to avoid no space left (#696)

* feat(runtimes): filter Tokens and unfilter Balance (#700)

* feat(runtimes): filter Tokens and unfilter Balance

* feat(dali): faster crowdloan vesting for devnet

* fix(benchmarking): use asset id != native to avoi existential deposit issues

* fix(assets): do not use custom error for `BadOrigin` (#699)

* Added explanation of ValidateUnsigned to README.md (#698)

* Added explination of ValidateUnsigned to README.md

* grammar

* ensure we lint tests (#697)

* Ensure we have errors checked in proptests

* feat(tests): custom precision for proptests to avoid edge cases (#702)

* feat(tests): custom precision for proptests to avoid edge cases

The issue with proptest is that because of the fact that we generate random
values, we might have some issue because of division. The issue rely on the fact
that for instane, integer division might result in less/more value than expected (odd number
for instance). We can circumvent thoses cases (pretty rare but still making the
CI fail) by lowering the precision of the expected value for some tests.

* fix(style): apply make style

* fix(lint): avoid identity conversion

* Composable bootnode peerid (#708)


* Setup composable bootnode peer id

* Composable bootnode peerid (#710)



* update node permission

* Update node permission (#712)

* feat(ci): full backtrace for benchmarking (#714)

* Use compressed wasm instead of compact (#716)

* use compressed wasm instead of compact

* check for runtime changes before doing single pass benchmarking

* CU-1vz89jk - Liquidity bootstrapping pallet (#661)

* introduce liquidity bootstrapping pallet

* extract math to pure functions

* better comment

* move images to plots subdirectory, finish benchmarking and add tests

* rebase and reuse composable-maths

* more test & fix style

* add missing benchmarking and more tests

* fix(liquidations): bechmarking on dali

* add liquidity-bootstrapping pallet in dali

* feat(benchmarks): generate weights

* fix(liquidity-bootstrapping): format and typos

* fix(style): apply make style

* Fix clippy warnings for LBP, curve-amm and uniswap-v2.

* Fix clippy warnings. (#719)

* Add few more test for dex. (#690)

* Add few more test for dex.
Add extrinsics for add/remove_liquidity().
Update benchmarks.

* Check exact value for lp_tokens received after add_liquidity() in tests.
Reanme `CurveAmm` trait to `Amm`.

* Pushing benchmark changes

* Add test for fee in uniswap-v2 pallet.
Add comments for add/remove_liquidity() extrinsics.

* Use `assert_noop` instead of `assert_err`.
Use pallet extrinsics where possible to use.

* Rename `CurveAmm` to `Amm` in LBP.

* Address minor review comments.

Co-authored-by: vivekvpandya <vivekvpandya@users.noreply.github.com>

* Update node permission (#720)


* Update bootnode id

* Validation/mosaic (#704)

* cargo

* cargo

* added validation

* updated tests

* updated error messages

* removed unused comments

* updated benchmarking

* cargo fmt

* updated benchmarking

* updated benchmarking

* updated benchmarking

* updated benchmarking

* updated benchmarking

* updated benchmarking

* xcmp: treasury, trap, weights, tests, fees, ed, common (#656)

* xcmp

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

xcmp

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

* fmt, more robust test

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

* [cu-1ubuznb] Vesting Benchmarks (#705)

* [cu-1ubuznb] Adding Vesting Benchmarks

* Final weights

* Adjust funding for update_vesting_schedules

* fmt

* fmt

* Minor fixes

* Fix style

* Try to fix EnsureOrigin

* Try to fix EnsureOrigin

* dali

* Fix error

* Pushing benchmark changes

* Review comments

* Revert liquidation impl change

* Style

Co-authored-by: Vim Wickramasinghe <vim@klar.mx>
Co-authored-by: hussein-aitlahcen <hussein-aitlahcen@users.noreply.github.com>

* [CU-1ux39kw] Validation/bond offer (#623)

* moved validation to new file

* cargo fmt

* updated trait name

* updated generic type

* updated generic type

* removed unused code

* updated traits

* added Decode trate

* removed trait

* added trait

* updated validation code

* updated validation

* updated trait implementations

* updated tests

* removed reduntant / previous validation

* fixed merge

* fixed type mismatch

* valiadation structural change

* cargi=o fmt

* cargo lock

* cargo

* cargo

* cargo

* removed space

* updated test

* updated bonded_finance.rs

* updated validation

* updated bond_pricev alidation

* updated nb_of_bonds validation

* updated validation

* removed unused validation code

* removed unused validation code

* updated bond_offer_validation tests

* updated benchmarl

* updated benchmark

* updated benchmark

* cargo fmt

* Enable BEEFY in polkadot-launch (#726)

* add beefy

* add extra flags for beefy

* remove duplicate flag

* add ferdie to composable-sandbox

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>

* Fix typo (#724)

really simple change, removing unneeded spaces inside word 'development'.

* Make clippy happier (#728)

* Fix clippy warnings (#730)

* adds chainspec for composable westend (#731)

* adds chainspec for composable wested

* cargo fmt

* Amp can not be zero (#725)

* Fix curve_amm math so that amplification_factor can be 0.
Add proptest for curve_amm and uniswap-v2.

* Add proptest for curve_amm with amplification_factor is 0.

* Better description in expect() message in tests for curve-amm and uniswap.

* Report error in create_pool is amplification_coefficient is 0.
The math implementation is however able to handle above case.

* fix single pass benchmarking CI (#733)

* Chnage westend bootnode (#736)

* Update simnode script

* Update simonde script

* Add new bootnode peer ID

* Setup composable bootnode peer id

* update node permission

* Update westend bootnode

* updating bootnode (#741)

* Use mmr-polkadot instead of polkadot in composable-sandbox (#738)

* feat(devnet): auto optimise/gc nix store to avoid no space left (#735)

* Refactor/safe arithmentic (#734)

* fixed  merge conflict

* split SafeArithmetic

* added SafeArithmetic

* added SafeArithmetic

* cargo fmt

* docker multi-arch (#657)

* docker multi-arch

* release variable to environment

* get tag from previous step

* feat(crowdloan-reward): move from `BlockNumber` to `Moment` for vesting (#744)

* [cu-1ubuznb] Correct misconfiguration of weights for vesting (#749)

* feat(crowdloan-rewards): make dali crowdloan faster and correct `VestingStep` type (#750)

* [cu-206y1te, cu-26ezj25] Support time based vesting schedules in Vesting pallet (#748)

* [cu-206y1te] Support time based vesting schedules in Vesting pallet

* unit tests: frame/composable-traits/src/vesting.rs

* Unit test updates

* Fix the dependents of Vesting

* Fix vesting benchmarking

* style

* Minor fixes

* More coverage

* Cleanup `Cargo.toml` files & add taplo step in CI (#752)

* chore(style): cleanup `Cargo.toml` files

* chore(style): introduce taplo for `.toml` files formatting in Makefile `style` command

* chore(style): apply taplo to codebase

* feat(ci): introduce taplo check for `.toml` formatting

* Update initialization script (#753)

* [cu-206y1te, cu-26ezj25] Adjusting documentation for vesting pallet (#756)

* [cu-206y1te, cu-26ezj25] Adjust documentation

* minor adjustment

* minor adjustment

* Composable ngihtly snapshot (#762)

* multi arch build test

* setup mightly backup for composable db

* update docker-release

Co-authored-by: haroldsphinx <haroldsphinx@gmail.com>

* Initial commit for pablo. (#766)

- Adds and enum for PoolConfiguration, with this commit it has StableSwap.
- Added skeleton of extrinsic for the pallet.

* Rework vesting origin & audit fixes (#775)

* feat(vesting): do not use origin as source account

* fix(runtime): use `u128` for `BondOfferId` and use `RootOrHalfCouncil` instead
of `EnsureRoot`

* fix(runtime): avoid confusion by removing the non-required `Self` for `unit` in CurrencyId

* fix(crowdloan-rewards): meaningful error when `at` time is in the past

* fix(bonded-finance): misleading comment + clarify second comment

* fix(bonded-finance): prefer the usage of `SafeAdd` over `WrappingNext`

* chore(style): apply make style

* test(Runtime Integration Tests): Dep. Update, Type Update, Docker Integration & Refactoring. (#757)

test(Runtime Integration Tests): Updated README.md for Docker && Better endpoint detection

test(Runtime Integration Tests): Deactivated parallel mode for mocha due to the `priority too low` issue.

test(Runtime Integration Tests): Added docker-compose run script.

test(Runtime Integration Tests): Removed args.ts & refactored testSetup.ts to use `import` instead of `require` (Linter recommendation).
Fixed a docstring in setStartBalance.ts.

test(Runtime Integration Tests): Dep. update & removed "@types/expect" dependency.

test(Runtime Integration Tests): Updated dependencies & README.md.

test(Runtime Integration Tests): Updated Dependencies & Types.
Added mintingHelper.ts as utility.

* CU-23v2xj9 Add code and tests for StableSwap pallet in Pablo. (#767)

* Add code and tests for StableSwap pallet in Pablo.
Add new PoolInitConfiguration enum in Pablo to be used as input for create() extrinsic.
Remove redundant pallet_balances from curve_amm and uniswap_v2 mocks.

* Enable more tests for stable_swap.
Organize code in stable_swap.rs and stable_swap_test.rs files.

* Rename PoolInitOf<T> to PoolInitConfigurationOf<T>.
Few other minor nitpicks.

* Clarify why we claim while associating & provide the timestamp at which the crowdloan start (#776)

* feat(crowdloan-rewards): provide the timestamp at which the crowdloan start

* fix(crowdloan-rewards): clarify why we claim when associating

* Update Vesting pallet runtime & remove bencharking filter in CI check (#778)

* fix(dali): vested transfer origin must be RootOrHalfCouncil

* fix(ci): disable broken benchmark filter

* [cu-23v2xkb][Pablo] ConstantProductPool Integration (#770)

* [Pablo] Minimal ConstantProductPool Integration

* Updates with tests

* Minor

* [cu-23v2xkb] Tests fixed

* Linter seems confused

* Review and try lint

* try lint

* try lint

* Fortify mosaic & vesting pallets (#779)

* feat(mosaic): introduce `min_transfer_size` for networks

* feat(vesting): introduce check to avoid `vested_transfer` to caller

* chore(style): apply make style

* polkadot v0.9.17 (#688)

* attempt to bump to polkadot-v0.9.17

* chore(polkadot): upgrade to v0.9.17

* chore(style): apply make style

* fix(tests): `storage_root` now expect a `StateVersion`

* fix(tests): no more Default for AccountId

* bump simnode

* chore(polkadot): upgrade to v0.9.17

* chore(style): apply make style

* fix(tests): no more Default for AccountId

* chore(polkadot): upgrade integration tests

* feat(ci): upgrade codecov

* cargo fmt

* taplo fmt

* remove --raw arg from single pass benchmarking

* sigh fix run_benchmarks

* bump cumulus

* Pushing benchmark changes

* adds support for simnode to composable-runtime

* fix(bench): revert curve benchmarking

* fix(bench): revert uni benchmarking

* make non-production release buil faster by disabling linking opt

* fix(bench): revert curve/uni weights

* feat(ci): make git diff visible for taplo check

* chore(style): apply make style

* fix(lint): unused test attribute in bonded finance

* fix permission issue with simnode

* ci benchmark changes

* chore(cargo): update Cargo.lock

* feat(ci): pin codecov nightly

* wip

* wip

* chore(polkadot): upgrade pablo pallet

* chore(style): apply make style

* chore(ci): duplicate checkout

* bump simnode

* adds proper rococo chainspec

* cargo fmt

* fix clippy

Co-authored-by: Hussein Ait Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: seunlanlege <seunlanlege@users.noreply.github.com>
Co-authored-by: haroldsphinx <haroldsphinx@gmail.com>

* [CU-20185wr] Integration Tests-Constant Product Dex Tests  (#761)

* Constant Product Tests

* test config added

* helper added.

* Deleted extra file

* Move do_compute_swap() to StableSwap module. (#780)

Add common_test_functions module and update add_remove_lp() test to use it.
Minor refactoring to use references when possible.

* CU-25ye81h CU-1yyr5hv CU-1yyr5fv xcmp kusd picasso (#759)

* xcmp kusd picasso

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

* fixed comment, added links

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

* force proper features

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

* finally catched condition

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

* fixes after review

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

* merge fix

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

* 9/17 migration fixes

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

* all version must be exact

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

* feat(devnet): update polkadot (#784)

* [CU-23n7a3r] Integration Testing - Fixing CrowdloanRewards Tests. (#777)

* test(Runtime Integration Tests): Fixed crowdloanRewards tests.

* test(Runtime Integration Tests): Crowdloan Fix, removed temporary waitForBlocks(n) call.

* test(Runtime Integration Tests): Crowdloan Rewards Fix.
Removed redundant import in mintingHelper.ts.

* test(Runtime Integration Tests): Added toggle flag to claim test.
Updated types.

* test(Runtime Integration Tests): Crowdloan Rewards Tests added documentation.

* [cu-23v2xng][Pablo] Integrate Liquidity Bootstrapping Pool (#781)

* [cu-23v2xng][Pablo] Integrate Liquidity Bootstrapping Pool

* visualizations

* Review

* Fix for main

* Try fix

* Try fix

* Create a CI job to build ci-linux docker image (#786)

* Create a CI job to build a docker image of composablefi/mmr-polkadot (#758)

* Pushing benchmark changes

* trigger CI

Co-authored-by: andor0 <aaorlov1@gmail.com>
Co-authored-by: Hussein Ait-Lahcen <hussein.aitlahcen@gmail.com>
Co-authored-by: Karel L. Kubat <k.l.kubat@gmail.com>
Co-authored-by: Dzmitry Lahoda <dzmitry@lahoda.pro>
Co-authored-by: Dominik Roth <96540347+Dom-Roth@users.noreply.github.com>
Co-authored-by: Vivek Pandya <vivekvpandya@gmail.com>
Co-authored-by: Dominik Roth <dominik@composable.finance>
Co-authored-by: Adedayo Akinpelu <adedayoakinpelu@gmail.com>
Co-authored-by: haroldsphinx <haroldsphinx@gmail.com>
Co-authored-by: JesseAbram <33698952+JesseAbram@users.noreply.github.com>
Co-authored-by: Ewere Diagboya <nimboya@gmail.com>
Co-authored-by: cor <cor@pruijs.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Connor Davis <17688291+PoisonPhang@users.noreply.github.com>
Co-authored-by: haroldsphinx <haroldsphinx@users.noreply.github.com>
Co-authored-by: david <wizdave97@gmail.com>
Co-authored-by: seunlanlege <seunlanlege@users.noreply.github.com>
Co-authored-by: hussein-aitlahcen <hussein-aitlahcen@users.noreply.github.com>
Co-authored-by: Yusuf Kelo <yusufkel@gmail.com>
Co-authored-by: David Salami <31099392+Wizdave97@users.noreply.github.com>
Co-authored-by: benluelo <57334811+benluelo@users.noreply.github.com>
Co-authored-by: dzmitry-lahoda <dzmitry-lahoda@users.noreply.github.com>
Co-authored-by: Matheus Cardoso <45436839+Cardosaum@users.noreply.github.com>
Co-authored-by: vivekvpandya <vivekvpandya@users.noreply.github.com>
Co-authored-by: Vim <vbwickramasinghe@gmail.com>
Co-authored-by: Vim Wickramasinghe <vim@klar.mx>
Co-authored-by: Vim <vimukthi@composable.finance>
Co-authored-by: Yasin <64729564+kollegian@users.noreply.github.com>
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.

3 participants