Skip to content
Commit be56fd3f authored by joe petrowski's avatar joe petrowski Committed by GitHub
Browse files

Allow Creation of Asset Accounts That Don't Exist Yet and Add `Blocked` Status (#13843)



* prevent frozen accounts from receiving assets

* refund deposits correctly

* plus refund_other

* add benchmarks

* start migration work

* docs

* add migration logic

* fix freeze_creating benchmark

* support instanced migrations

* review

* correct deposit refund

* only allow depositor, admin, or account origin to refund deposits

* make sure refund actually removes account

* do refund changes

* Asset's account deposit owner (#13874)

* assets deposit owner

* doc typo

* remove migration

* empty commit

* can transfer to frozen account

* remove allow_burn from refund_other

* storage version back to 1

* update doc

* fix benches

* update docs

* more tests

* Update frame/assets/src/types.rs

* refund updating the reason

* refactor

* separate refund and refund_foreign

* refunds, touch_other, tests

* fixes

* fmt

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets

* tests: asserts asset account counts

* Account touch trait (#14063)

* assets touch trait

* docs

* move touch trait into support/traits

* permissionless flag for do_touch

* Apply suggestions from code review

Co-authored-by: default avatarKian Paimani <[email protected]>

* move trait to misc, drop option

* Apply suggestions from code review

Co-authored-by: default avatarGavin Wood <[email protected]>

* correct doc

* Update frame/assets/src/functions.rs

---------

Co-authored-by: default avatarKian Paimani <[email protected]>
Co-authored-by: default avatarGavin Wood <[email protected]>
Co-authored-by: default avatarjoe petrowski <[email protected]>

* Block asset account (#14070)

* replace is_fronzen flag by status enum

* block asset account

* remove redundant brackets

* fix typo

* fmt

* Apply suggestions from code review

Co-authored-by: default avatarJegor Sidorenko <[email protected]>

* rename permissionless to check_depositor

* doc fix

* use account id lookup instead account id

* add benchmark for touch_other

---------

Co-authored-by: default avatarmuharem <[email protected]>
Co-authored-by: command-bot <>
Co-authored-by: default avatarKian Paimani <[email protected]>
Co-authored-by: default avatarGavin Wood <[email protected]>
Co-authored-by: default avatarJegor Sidorenko <[email protected]>
parent bd96f001
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment