Skip to content

Add loans to centrifuge runtime#1254

Merged
mustermeiszer merged 2 commits into
feature/add-pools-to-centrifugefrom
feature/add-loans-to-centrifuge
Mar 23, 2023
Merged

Add loans to centrifuge runtime#1254
mustermeiszer merged 2 commits into
feature/add-pools-to-centrifugefrom
feature/add-loans-to-centrifuge

Conversation

@lemunozm

Copy link
Copy Markdown
Contributor

Description

Add pallet-loans-ref to centrifuge runtime.

Fixes #1243

Changes and descriptions

  • Add loans to centrifuge runtime
  • Fix benchmarks generation for development runtime.

Type of change

  • New feature (non-breaking change which adds functionality)

@lemunozm lemunozm added D2-notify Pull request can be merged and notification about changes should be documented. crcl-protocol Circle protocol related. labels Mar 14, 2023
@lemunozm lemunozm self-assigned this Mar 14, 2023
@lemunozm lemunozm force-pushed the feature/add-pools-to-centrifuge branch from 076849a to 8c89a16 Compare March 17, 2023 09:21
@lemunozm lemunozm force-pushed the feature/add-loans-to-centrifuge branch from 12636c9 to 5cbcf9f Compare March 17, 2023 10:55
@mustermeiszer

Copy link
Copy Markdown
Collaborator

@lemunozm I will rebase this one here on the latest feature/add-pools-to-centrifuge and merge it up, okay?

@mustermeiszer mustermeiszer force-pushed the feature/add-loans-to-centrifuge branch from 5cbcf9f to 68d61d5 Compare March 23, 2023 12:44
@mustermeiszer mustermeiszer marked this pull request as ready for review March 23, 2023 12:44

@mustermeiszer mustermeiszer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I will merge this into the feature branch although nix is failing. Will need to update there anyways. Changes here look sane.

@mustermeiszer mustermeiszer merged commit d38790e into feature/add-pools-to-centrifuge Mar 23, 2023
@lemunozm lemunozm deleted the feature/add-loans-to-centrifuge branch March 23, 2023 15:42
hieronx pushed a commit that referenced this pull request Apr 4, 2023
* Add missing pallets to centrifuge - loans not yet

* Clean up feature list Centrifuge

* Add most pallets, not loans yet

* Add Keystore and Uniques to Centrifuge runtime

* TMP add pallet-loans

* Use per-pallet weights for unbenched pallets

* Add missing imports

* EnsureRoot<AccountId>

* Add remaining impls

* Restore Encode/Decode impls for MaxTranches

This is needed in order to make it available to the RPCs

* Add serde for conditional {De}serialize impls

* Add uniques/keystores to benchmarks

* Add interest_accrual to centrifuge genesis

* Fix PoolCreateOrigin for benchmarks

* Actually run all the benches

* Enable Pools RPC endpoints on centrifuge chain

* Adapt paramets from Jeroen suggestion

* fix: issuance issues for creating blocking redeem order

* change: Remove check in guard, updates note submission, not schedule

* Removing the check if the MinUpdateDelay is passed, as this is part of
the pallet-pool-system checks already
* ScheduledUpdateDetails now note the time of submission of an update
rather than the time when it is scheduled. logically, there is no "scheduled"
time as the update can still be blocked by redemptions or other stuff in the
future

* change: Remove impossible to fulfill check

The check in the update guard was checking whether the time of the
last closed epoch is larger than now. Which is impossible to fulfill.
Epochs can not be closed closed in the future if now is now...

* feat: Add correct check if epoch was closed in between

* fix: runtime settings altair, centrifuge for pool params

* fix: registry-benchmarks

* fix: uniques naming, feature guard for PoolUpdateGuard

* fix taplo & nix

* Adding filter for restricted tokens

* feat: new weights for centrifuge runtime

* feat: use newly benched weights

* feat: adapt parameters

* fix: adapt uniques parameters according to review

* Add loans to centrifuge runtime (#1254)

* add loans to centrifuge

* fix loan addition

* inter: clion deletes this files content, need to regenerate anyways

* fix: rm warn, check orml-asset-regsitry weights

* fix: collator-selection benchmarks

* fix: xcmp queue benches to centrifuge

* feat: intermediate change spec name for upgrade on charcoal

* fix: failing collator-allowlist test with benchmark fix

* feat: update nix hash

* fiy: clippy lint, allow for readabulity

* fix: xclippy allow not working, using suggestion

* fix: clippy development runtime

* feat: adapt weight to high fix

* feat: update weights centrifuge

* feat: Update weights altair

* fix: use weights, adapt comments

* fix: only signed origin in registry benches

* feat: Pump version number Centrifuge

* Update Cargo.toml centrifuge

* fix: remarks from review

* chore: bump nix

* fix: enable phrag elec benches in cfg runtime

* fix: remove old migrations, default to V2 interest accrual

* fix: typos, use dummy weight phragmen, prepare for bench

* fix: adapt nix hash

* chore: update weights centrifuge

---------

Co-authored-by: Branan Riley <branan@centrifuge.io>
Co-authored-by: lemunozm <lemunozm@gmail.com>
Co-authored-by: William Freudenberger <w.freude@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crcl-protocol Circle protocol related. D2-notify Pull request can be merged and notification about changes should be documented.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants