Closed Neopallium closed 1 year ago
Merging #1493 (1f41cdd) into develop (a2f8cb2) will decrease coverage by
0.13%
. The diff coverage is60.00%
.
@@ Coverage Diff @@
## develop #1493 +/- ##
===========================================
- Coverage 54.22% 54.10% -0.13%
===========================================
Files 151 145 -6
Lines 32988 32401 -587
===========================================
- Hits 17887 17529 -358
+ Misses 15101 14872 -229
Impacted Files | Coverage Δ | |
---|---|---|
pallets/common/src/traits/asset.rs | 0.00% <ø> (ø) |
|
pallets/common/src/traits/identity.rs | 3.92% <ø> (ø) |
|
pallets/common/src/traits/mod.rs | 0.00% <ø> (ø) |
|
pallets/common/src/traits/statistics.rs | 0.00% <0.00%> (ø) |
|
pallets/runtime/common/src/runtime.rs | 1.81% <ø> (ø) |
|
pallets/runtime/develop/src/runtime.rs | 3.65% <0.00%> (+0.02%) |
:arrow_up: |
pallets/test-utils/src/lib.rs | 0.00% <0.00%> (ø) |
|
pallets/weights/src/pallet_identity.rs | 8.00% <ø> (+0.59%) |
:arrow_up: |
primitives/src/asset.rs | 50.00% <ø> (+0.94%) |
:arrow_up: |
primitives/src/identity_id.rs | 75.39% <ø> (-4.41%) |
:arrow_down: |
... and 8 more |
TODO:
BalanceOfAtScope
, AggregateBalance
, ScopeIdOf
, and DisableInvestorUniqueness
.Claims
from old type to new type.
changelog
modified API
Identity.add_investor_uniqueness_claim
andIdentity.add_investor_uniqueness_claim_v2
.Claim
variants:InvestorUniqueness
,NoData
, andInvestorUniquenessV2
.ClaimType
variants:InvestorUniqueness
,NoType
, andInvestorUniquenessV2
.InvestorUid
.confidential_identity_v1
andconfidential_identity_v2
code.Asset
pallet for Investor Uniqueness:BalanceOfAtScope
,AggregateBalance
,ScopeIdOf
, andDisableInvestorUniqueness
.ScopeId
, replaced withIdentityId
(these two are the same types).modified logic
IdentityId
toScopeId
mapping.Asset::balance_of(ticker, did)
instead ofAsset::aggregate_balance_of(ticker, scope_id)
.data migration
Asset
pallet.Identity.Claims
to newClaim
enum without InvestorUniqueness variants.