Skip to content

CU-1tf7kpr - Picasso v0 runtime - part 1#478

Merged
KaiserKarel merged 8 commits intomainfrom
picasso-v0-runtime
Jan 12, 2022
Merged

CU-1tf7kpr - Picasso v0 runtime - part 1#478
KaiserKarel merged 8 commits intomainfrom
picasso-v0-runtime

Conversation

@hussein-aitlahcen
Copy link
Contributor

This PR introduce simple pallets for the V0.
I'll create a second, more specific one for Apollo.

`Tokens` should never be used, except for `Assets` dependency

The `Assets` pallet is acting as a router forwarding PICA operations to
`Balance` and any other token operation to `Tokens`.
By using `Tokens` instead of `Assets`, the pallet will not be able to operate on PICA.
@itsbobbyzz
Copy link

Task linked: CU-1tf7kpr Picasso V0 runtime ugprade

dzmitry-lahoda
dzmitry-lahoda previously approved these changes Jan 12, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #478 (f336612) into main (bdb0984) will increase coverage by 0.25%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #478      +/-   ##
==========================================
+ Coverage   60.49%   60.75%   +0.25%     
==========================================
  Files         141      141              
  Lines       20309    20312       +3     
==========================================
+ Hits        12286    12340      +54     
+ Misses       8023     7972      -51     
Impacted Files Coverage Δ
runtime/dali/src/lib.rs 22.37% <ø> (ø)
runtime/picasso/src/lib.rs 19.10% <66.66%> (+1.31%) ⬆️
frame/transaction-fee/src/mock.rs 80.18% <0.00%> (-0.91%) ⬇️
frame/curve-amm/src/lib.rs 60.11% <0.00%> (-0.12%) ⬇️
frame/uniswap-v2/src/mock.rs 27.65% <0.00%> (ø)
frame/uniswap-v2/src/tests.rs 100.00% <0.00%> (ø)
integration-tests/src/cross_chain_transfer.rs 100.00% <0.00%> (ø)
frame/lending/src/lib.rs 56.40% <0.00%> (+0.24%) ⬆️
frame/composable-traits/src/lending/tests.rs 99.41% <0.00%> (+0.58%) ⬆️
frame/uniswap-v2/src/lib.rs 56.52% <0.00%> (+4.53%) ⬆️

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 bdb0984...f336612. Read the comment docs.

@KaiserKarel
Copy link
Contributor

Discussed offline to merge this, to allow for collaborations.

@KaiserKarel KaiserKarel merged commit be98233 into main Jan 12, 2022
@KaiserKarel KaiserKarel deleted the picasso-v0-runtime branch January 12, 2022 11:37
KaiserKarel added a commit that referenced this pull request Jan 12, 2022
Comment on lines +816 to +820
Factory: currency_factory::{Pallet, Storage, Event<T>} = 53,
GovernanceRegistry: governance_registry::{Pallet, Call, Storage, Event<T>} = 54,
Assets: assets::{Pallet, Call, Storage} = 55,
CrowdloanRewards: crowdloan_rewards::{Pallet, Call, Storage, Event<T>} = 56,
Vesting: vesting::{Call, Event<T>, Pallet, Storage} = 57,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hussein-aitlahcen this pr doesn't add these pallets to the benchmark section

Comment on lines +75 to +80
currency-factory = { package = "pallet-currency-factory", path = "../../frame/currency-factory", default-features = false }
governance-registry = { package = "pallet-governance-registry", path = "../../frame/governance-registry", default-features = false }
assets = { package = "pallet-assets", path = '../../frame/assets', default-features = false }
crowdloan-rewards = { package = "pallet-crowdloan-rewards", path = '../../frame/crowdloan-rewards', default-features = false }
vesting = { package = "pallet-vesting", path = "../../frame/vesting", default-features = false }
bonded-finance = { package = "pallet-bonded-finance", path = "../../frame/bonded-finance", default-features = false }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing std features as well as runtime-benchmark features

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.

6 participants