-
Notifications
You must be signed in to change notification settings - Fork 711
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
[Assets] Implement pallet-assets-holder
#4530
base: master
Are you sure you want to change the base?
Commits on May 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a0f5015 - Browse repository at this point
Copy the full SHA a0f5015View commit details
Commits on Jun 10, 2024
-
change(pallet-assets): implement
Holder
to calculate reducible bala……nce based on whether there's held assets or not
Configuration menu - View commit details
-
Copy full SHA for 6d2aa57 - Browse repository at this point
Copy the full SHA 6d2aa57View commit details
Commits on Jun 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 029e887 - Browse repository at this point
Copy the full SHA 029e887View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf376a5 - Browse repository at this point
Copy the full SHA bf376a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe951fa - Browse repository at this point
Copy the full SHA fe951faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89ea43a - Browse repository at this point
Copy the full SHA 89ea43aView commit details
Commits on Jul 10, 2024
-
change(pallet-assets): adjust reducible/can_decrease to be in line wi…
…th the tokens' _balance components_ model. On the most recent documentation about tokens (both _fungible_ and _fungibles_ (sets)), the model for calculating the different balance components is explained. The prior implementation of `pallet-assets` featured a weird definition of how to handle them that was not in line with the expected (see <https://paritytech.github.io/polkadot-sdk/master/frame_support/traits/tokens/fungible/index.html#holds-and-freezes>) definition of tokens. This commit changes this implementation for methods `reducible_balance` and `can_decrease` to introduce the calculation of `spendable` balance, and the consequences derived of decreasing a balance that may include both `frozen` and `held` balances.
Configuration menu - View commit details
-
Copy full SHA for 2ab3535 - Browse repository at this point
Copy the full SHA 2ab3535View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d326b8 - Browse repository at this point
Copy the full SHA 9d326b8View commit details
Commits on Jul 11, 2024
-
change(pallet-assets): introduce tests to check for holds and freezes…
… working together
Configuration menu - View commit details
-
Copy full SHA for c76b654 - Browse repository at this point
Copy the full SHA c76b654View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5690e1 - Browse repository at this point
Copy the full SHA c5690e1View commit details
Commits on Jul 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a4bb10c - Browse repository at this point
Copy the full SHA a4bb10cView commit details
Commits on Aug 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 32fa5c1 - Browse repository at this point
Copy the full SHA 32fa5c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe0a5e5 - Browse repository at this point
Copy the full SHA fe0a5e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b93337e - Browse repository at this point
Copy the full SHA b93337eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e0ced7 - Browse repository at this point
Copy the full SHA 4e0ced7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5b103a - Browse repository at this point
Copy the full SHA c5b103aView commit details
Commits on Aug 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9cdb256 - Browse repository at this point
Copy the full SHA 9cdb256View commit details -
fix(staging-xcm-builder): missing references to
Holder
Note: these mocks were introduced after the latest merge from `master`.
Configuration menu - View commit details
-
Copy full SHA for f36b540 - Browse repository at this point
Copy the full SHA f36b540View commit details -
change(pallet-assets): set
Holder
andFreezer
to have default val……ues, as per @gui1117's suggestion
Configuration menu - View commit details
-
Copy full SHA for 5829558 - Browse repository at this point
Copy the full SHA 5829558View commit details -
change(pallet-assets-holder): apply @gui1117's suggestion of tightly …
…coupling `pallet-assets-holder` with `pallet-assets`
Configuration menu - View commit details
-
Copy full SHA for 17ce1d9 - Browse repository at this point
Copy the full SHA 17ce1d9View commit details -
change(pallet-assets): account for
held_balance
when calculating `t……otal_balance`. Note: `transfer_all_works_3` changes, due to the change in the balance model
Configuration menu - View commit details
-
Copy full SHA for f2a9e96 - Browse repository at this point
Copy the full SHA f2a9e96View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc41634 - Browse repository at this point
Copy the full SHA fc41634View commit details -
change(pallet-assets-holder): resolve
VARIANT_COUNT
to match number…… of enum variants in mock
Configuration menu - View commit details
-
Copy full SHA for 9e9edfb - Browse repository at this point
Copy the full SHA 9e9edfbView commit details
Commits on Aug 9, 2024
-
change(pallet-assets-holder): remove assertion in test that fails aft…
…er changing variant count for `DummyHoldReason`.
Configuration menu - View commit details
-
Copy full SHA for e7155eb - Browse repository at this point
Copy the full SHA e7155ebView commit details
Commits on Aug 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4268b76 - Browse repository at this point
Copy the full SHA 4268b76View commit details -
change(pallet-assets-holder): apply change from HeldBalance to Balanc…
…eOnHold, suggested by @gavofyork and @gui1117
Configuration menu - View commit details
-
Copy full SHA for 818e590 - Browse repository at this point
Copy the full SHA 818e590View commit details -
minor(pallet-assets-holder): small adjustments
- `impls`: Minor codebase improvements - `lib`: Rename `HeldBalances` to `BalancesOnHold`.
Configuration menu - View commit details
-
Copy full SHA for 06db701 - Browse repository at this point
Copy the full SHA 06db701View commit details -
Configuration menu - View commit details
-
Copy full SHA for be7576e - Browse repository at this point
Copy the full SHA be7576eView commit details -
Merge branch 'pallet-assets-holder' of https://github.com/pandres95/p…
…olkadot-sdk into pallet-assets-holder
Configuration menu - View commit details
-
Copy full SHA for 0a0487e - Browse repository at this point
Copy the full SHA 0a0487eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dff111 - Browse repository at this point
Copy the full SHA 7dff111View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d04950 - Browse repository at this point
Copy the full SHA 5d04950View commit details -
change(pallet-assets-holder): add additional assertions to `try_state…
…` (suggestion by @gui1117)
Configuration menu - View commit details
-
Copy full SHA for 44e8f62 - Browse repository at this point
Copy the full SHA 44e8f62View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb1a98d - Browse repository at this point
Copy the full SHA bb1a98dView commit details -
Configuration menu - View commit details
-
Copy full SHA for aab6498 - Browse repository at this point
Copy the full SHA aab6498View commit details
Commits on Sep 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3688f89 - Browse repository at this point
Copy the full SHA 3688f89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 900dbaa - Browse repository at this point
Copy the full SHA 900dbaaView commit details
Commits on Sep 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b689e2e - Browse repository at this point
Copy the full SHA b689e2eView commit details -
change(pallet-assets-holder): make
died
burn balance on hold (if any).- now it returns a `DispatchResult`. - apply changes on usages and traits impls. - change tests to assert calling the method returns `Ok`.
Configuration menu - View commit details
-
Copy full SHA for 2f14b32 - Browse repository at this point
Copy the full SHA 2f14b32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 548eee1 - Browse repository at this point
Copy the full SHA 548eee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d7d874 - Browse repository at this point
Copy the full SHA 5d7d874View commit details
Commits on Sep 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 427a29b - Browse repository at this point
Copy the full SHA 427a29bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c28175 - Browse repository at this point
Copy the full SHA 7c28175View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ccc35c - Browse repository at this point
Copy the full SHA 9ccc35cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c65a4c2 - Browse repository at this point
Copy the full SHA c65a4c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 174b3d5 - Browse repository at this point
Copy the full SHA 174b3d5View commit details
Commits on Sep 9, 2024
-
change(pallet-assets): remark the change of parameters in the `freeze…
…r_should_work` test
Configuration menu - View commit details
-
Copy full SHA for f1c0983 - Browse repository at this point
Copy the full SHA f1c0983View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae2f67a - Browse repository at this point
Copy the full SHA ae2f67aView commit details
Commits on Sep 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 92769f1 - Browse repository at this point
Copy the full SHA 92769f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a02904d - Browse repository at this point
Copy the full SHA a02904dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b559bda - Browse repository at this point
Copy the full SHA b559bdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e848ac - Browse repository at this point
Copy the full SHA 0e848acView commit details
Commits on Sep 13, 2024
-
change(pallet-assets): disallow
refund
/refund_other
for an accoun……t's deposit if there are holds or freezes in place / update documentation for `start_destroy`
Configuration menu - View commit details
-
Copy full SHA for 3bd7241 - Browse repository at this point
Copy the full SHA 3bd7241View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e25e73 - Browse repository at this point
Copy the full SHA 4e25e73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3233d48 - Browse repository at this point
Copy the full SHA 3233d48View commit details -
Configuration menu - View commit details
-
Copy full SHA for a80e6e3 - Browse repository at this point
Copy the full SHA a80e6e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 668c148 - Browse repository at this point
Copy the full SHA 668c148View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f27725 - Browse repository at this point
Copy the full SHA 4f27725View commit details
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9d2256d - Browse repository at this point
Copy the full SHA 9d2256dView commit details -
Configuration menu - View commit details
-
Copy full SHA for dec2a4c - Browse repository at this point
Copy the full SHA dec2a4cView commit details
Commits on Sep 23, 2024
-
change(pallet-assets): make
dead_account
return either `DeadConsequ……ence` or fail if account cannot die.
Configuration menu - View commit details
-
Copy full SHA for 25d9bb0 - Browse repository at this point
Copy the full SHA 25d9bb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for de4702e - Browse repository at this point
Copy the full SHA de4702eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c81ad85 - Browse repository at this point
Copy the full SHA c81ad85View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd72de1 - Browse repository at this point
Copy the full SHA bd72de1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bab6f1 - Browse repository at this point
Copy the full SHA 4bab6f1View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f1e5b9b - Browse repository at this point
Copy the full SHA f1e5b9bView commit details
Commits on Oct 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8d46fa3 - Browse repository at this point
Copy the full SHA 8d46fa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b9b6db - Browse repository at this point
Copy the full SHA 8b9b6dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba8c452 - Browse repository at this point
Copy the full SHA ba8c452View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d84bee - Browse repository at this point
Copy the full SHA 7d84beeView commit details
Commits on Nov 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 608b688 - Browse repository at this point
Copy the full SHA 608b688View commit details -
Configuration menu - View commit details
-
Copy full SHA for f12acd2 - Browse repository at this point
Copy the full SHA f12acd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ce2b83 - Browse repository at this point
Copy the full SHA 6ce2b83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 189d8d4 - Browse repository at this point
Copy the full SHA 189d8d4View commit details
Commits on Nov 4, 2024
-
fix(pallet-assets): on
can_decrease
, returnWouldDie
if there's b……alance on hold, but frozen value is zero, as the account would need to exist
Configuration menu - View commit details
-
Copy full SHA for 6130c60 - Browse repository at this point
Copy the full SHA 6130c60View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7d0a41 - Browse repository at this point
Copy the full SHA f7d0a41View commit details -
change(pallet-assets): document the
balance
field ofAssetAccount
…… to reflect the changes in the balance model, so a first reader can understand the differences between _free_ balance, _reducible_ balance and balance _on hold_.
Configuration menu - View commit details
-
Copy full SHA for 6bebe7e - Browse repository at this point
Copy the full SHA 6bebe7eView commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3e797b1 - Browse repository at this point
Copy the full SHA 3e797b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 595b838 - Browse repository at this point
Copy the full SHA 595b838View commit details
Commits on Nov 6, 2024
-
change(pallet-assets-holder): comment events as docstring (thanks @gg…
…wpez for the suggestion)
Configuration menu - View commit details
-
Copy full SHA for 17ba78c - Browse repository at this point
Copy the full SHA 17ba78cView commit details -
fix(pallet-assets): add additional storage layout on calls to `T::Cur…
…rency::unreserve` that are followed by a potential failure of `dead_account`. This would prevent cases where `refund` is called externally by another pallet, and not as a part of a direct extrinsic call within the pallet.
Configuration menu - View commit details
-
Copy full SHA for d2e2d18 - Browse repository at this point
Copy the full SHA d2e2d18View commit details -
fix(prdoc): extend explanation of changes in balance model to better …
…illustrate the changes.
Configuration menu - View commit details
-
Copy full SHA for c10123a - Browse repository at this point
Copy the full SHA c10123aView commit details
Commits on Nov 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 99ee590 - Browse repository at this point
Copy the full SHA 99ee590View commit details
Commits on Nov 8, 2024
-
fix(pallet-assets): add
with_storage_layer
ontransfer_and_die
. J……ust to be extra careful.
Configuration menu - View commit details
-
Copy full SHA for 4a55d5c - Browse repository at this point
Copy the full SHA 4a55d5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12e9a42 - Browse repository at this point
Copy the full SHA 12e9a42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8615a4c - Browse repository at this point
Copy the full SHA 8615a4cView commit details
Commits on Nov 27, 2024
-
fix(pallet-assets): ensure that an account can die before unreserving…
… any deposit / remove `with_storage_layer`.
Configuration menu - View commit details
-
Copy full SHA for 4f50052 - Browse repository at this point
Copy the full SHA 4f50052View commit details -
Merge branch 'master' into pallet-assets-holder
# Conflicts: # Cargo.lock
Configuration menu - View commit details
-
Copy full SHA for 3fc7ac2 - Browse repository at this point
Copy the full SHA 3fc7ac2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17e4b16 - Browse repository at this point
Copy the full SHA 17e4b16View commit details -
fix: re-include pallet-assets-holder on Cargo.lock after merging chan…
…ges from `master`.
Configuration menu - View commit details
-
Copy full SHA for d0005af - Browse repository at this point
Copy the full SHA d0005afView commit details