Skip to content
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

chore: polkadot 0.9.42 migration #540

Merged
merged 128 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
87e2245
delegation with lazy migration and tests
Ad96el Jul 20, 2023
3951a5f
attstation with lazy migration and tests
Ad96el Jul 20, 2023
8d8742d
parachain staking with lazy migration and tests
Ad96el Jul 20, 2023
bdfe724
did lookup with lazy migration and tests
Ad96el Jul 20, 2023
121d555
w3n with lazy migration and tests
Ad96el Jul 20, 2023
e24e3ba
did with lazy migration and tests
Ad96el Jul 20, 2023
4bc768d
public credentials with lazy migration and tests
Ad96el Jul 20, 2023
712b4f1
revert storage version
Ad96el Jul 20, 2023
d613cc3
revert storage version public credentials
Ad96el Jul 20, 2023
0319957
add pallet migration
Ad96el Jul 20, 2023
4d6836a
add weights to runtimes
Ad96el Jul 20, 2023
e6d2459
add pallet-migration to runtimes
Ad96el Jul 20, 2023
4d1b5c6
make mocks available
Ad96el Jul 20, 2023
b508d95
fix benchmarks
Ad96el Jul 20, 2023
1759674
add pallet-migration to toml
Ad96el Jul 20, 2023
e43cc2b
wrong error type in did lookup
Ad96el Jul 20, 2023
6d41a97
clippy error
Ad96el Jul 20, 2023
1bd190a
fmt
Ad96el Jul 20, 2023
c3a6914
fix import
Ad96el Jul 21, 2023
5894bb0
remove deposit version
Ad96el Jul 24, 2023
f8ed7c5
with storage map
Ad96el Jul 24, 2023
79b30bd
working mock
Ad96el Jul 25, 2023
fa732a8
compiling
Ad96el Jul 25, 2023
45631e3
with migration in mock
Ad96el Jul 25, 2023
7c37982
mock with entity build
Ad96el Jul 26, 2023
8c518ec
refactor translate holds
Ad96el Jul 26, 2023
3b981fd
add balance to support crate
Ad96el Jul 26, 2023
457fde5
make functions visible
Ad96el Jul 26, 2023
ca1f36f
remove imports
Ad96el Jul 26, 2023
848309e
updated cargos
Ad96el Jul 27, 2023
10d7d9a
minor updates in mock
Ad96el Jul 27, 2023
b979baf
full key for migration
Ad96el Jul 27, 2023
0c21380
make mocking functions available
Ad96el Jul 27, 2023
8f94595
make mocking funcs available
Ad96el Jul 27, 2023
2209dcf
add test suit for migration pallet
Ad96el Jul 27, 2023
b30e81a
add test for staking pallet
Ad96el Jul 27, 2023
7825abb
with benchmarks
Ad96el Jul 27, 2023
8122405
give some elements AsRef trait.
Ad96el Jul 28, 2023
e7970c1
make get_default_entries_to_migrate available
Ad96el Jul 28, 2023
143a189
refactor migration logic
Ad96el Jul 28, 2023
ab79dd1
fix: make mock available
Ad96el Jul 28, 2023
837e465
refactor benchmarks
Ad96el Jul 28, 2023
8ec85c4
fixed tests
Ad96el Jul 28, 2023
fa33ef2
removed weight
Ad96el Jul 28, 2023
c969d20
remove error
Ad96el Jul 28, 2023
ae7fbe1
refactor switch_reserved_to_hold
Ad96el Jul 28, 2023
b9486fd
refactor update balance
Ad96el Jul 28, 2023
e24fc5b
remove import
Ad96el Jul 28, 2023
008f4b2
rename MaxMigrations
Ad96el Jul 28, 2023
ee69e20
remove debug assert
Ad96el Jul 28, 2023
d003e98
MaxMigrationsPerPallet = 100
Ad96el Jul 28, 2023
9f04aa3
remove type definition
Ad96el Jul 28, 2023
24c7e48
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Jul 28, 2023
0dc8f66
updated lock file
Ad96el Jul 31, 2023
0d08ff5
fix tests
Ad96el Jul 31, 2023
101063a
get rid of mutate
Ad96el Aug 1, 2023
b858f87
added whitespace
Ad96el Aug 1, 2023
d775d3d
added new line
Ad96el Aug 1, 2023
af5011a
revert comment
Ad96el Aug 1, 2023
8fe7047
migration manager
Ad96el Aug 2, 2023
13592e4
revert staking
Ad96el Aug 2, 2023
d366189
add migration in runtime
Ad96el Aug 2, 2023
287e511
fix mocks
Ad96el Aug 2, 2023
099d42f
migration manager did details
Ad96el Aug 2, 2023
2fe0ce2
standalone
Ad96el Aug 2, 2023
28a3cea
update migration logic
Ad96el Aug 2, 2023
3899d52
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Aug 2, 2023
f041a6c
make it build
Ad96el Aug 2, 2023
02de744
tests
Ad96el Aug 2, 2023
56cb61b
Update support/Cargo.toml
Ad96el Aug 2, 2023
b488bb2
feature
Ad96el Aug 2, 2023
378983c
Merge branch 'chore/polkadot-0.9.42_migration' of github.com:KILTprot…
Ad96el Aug 2, 2023
dd91cd3
change default case
Ad96el Aug 2, 2023
e106e0a
hashed keys
Ad96el Aug 3, 2023
ad0386c
the dot
Ad96el Aug 14, 2023
920d605
the dot.
Ad96el Aug 14, 2023
f0d1626
migration
Ad96el Aug 14, 2023
a9fadfa
refactor: remove into
Ad96el Aug 15, 2023
d9b9da9
refactor: change traits
Ad96el Aug 15, 2023
bd081e2
Merge branch 'develop' of github.com:KILTprotocol/kilt-node into chor…
Ad96el Aug 15, 2023
00d7f5c
refactor: remove saturated_into
Ad96el Aug 29, 2023
c48bc9d
refactor: adjust returns of traits
Ad96el Aug 29, 2023
9c768aa
refactor: remove new line
Ad96el Aug 29, 2023
01dfc75
refactor: move constants to runtime_common
Ad96el Aug 29, 2023
1beb6fe
fix: migration manager for update deposit
Ad96el Aug 29, 2023
9e61053
refactor: rename migration function names
Ad96el Aug 29, 2023
6c35dd5
refactor: rename variable names
Ad96el Aug 29, 2023
7684b8d
chore: add one more test
Ad96el Aug 29, 2023
b1695e5
feat: let migration manager handle change deposit
Ad96el Aug 29, 2023
bd65957
change return type
Ad96el Aug 29, 2023
bc8ed81
refactor: Multisig
Ad96el Aug 29, 2023
e5afbf0
remove import
Ad96el Aug 29, 2023
a19cf0f
remove side effects
Ad96el Aug 29, 2023
75063f3
more tests
Ad96el Aug 29, 2023
4383955
fix tests
Ad96el Aug 29, 2023
04b4186
update mocks and map err
Ad96el Aug 29, 2023
4592966
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Aug 29, 2023
e4534a0
no side effects in is_key_migrated
Ad96el Aug 30, 2023
c7838a4
refactor is_key_migrated
Ad96el Aug 30, 2023
430f553
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Aug 31, 2023
3cfd1de
test: update deposit
Ad96el Aug 31, 2023
abe947d
refactor: tests
Ad96el Aug 31, 2023
9d4aa7e
refactor: change function traits
Ad96el Aug 31, 2023
19a14ed
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Sep 7, 2023
4140d19
with weights
Ad96el Sep 13, 2023
b0d111e
Merge branch 'chore/polkadot-0.9.42_migration' of github.com:KILTprot…
Ad96el Sep 13, 2023
da50a1f
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Sep 14, 2023
48c89b5
with weights
Sep 14, 2023
602f365
rename migration manager
Ad96el Sep 15, 2023
364cafd
remove import
Ad96el Sep 15, 2023
ef2bcfa
impl default for EntriesToMigrate
Ad96el Sep 15, 2023
5043305
remove not needed mocks
Ad96el Sep 15, 2023
8578013
rename tests
Ad96el Sep 15, 2023
da0ad15
comment
Ad96el Sep 15, 2023
750b9d0
fix tests
Ad96el Sep 15, 2023
8b3522d
Merge branch 'chore/polkadot-0.9.42_migration' of github.com:KILTprot…
Ad96el Sep 15, 2023
4fb16dd
refactor hold
Ad96el Sep 15, 2023
8968d5f
setup tests
Ad96el Sep 15, 2023
39c7474
features
Ad96el Sep 15, 2023
5efc9ad
renamed variable
Ad96el Sep 15, 2023
9c15743
wrong acc
Ad96el Sep 15, 2023
ff7cf5d
clippy
Ad96el Sep 15, 2023
7fe6de1
if
Ad96el Sep 15, 2023
89585eb
refactor entries
Ad96el Sep 15, 2023
a375f3f
rename function
Ad96el Sep 15, 2023
e13908a
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Oct 11, 2023
992ab61
lockfile
Ad96el Oct 11, 2023
ab01346
Merge branch 'develop' into chore/polkadot-0.9.42_migration
Ad96el Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 82 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pallet-inflation = {path = "pallets/pallet-inflation", default-features = false}
pallet-web3-names = {path = "pallets/pallet-web3-names", default-features = false}
parachain-staking = {path = "pallets/parachain-staking", default-features = false}
public-credentials = {path = "pallets/public-credentials", default-features = false}
pallet-migration = {path = "pallets/pallet-migration", default-features = false}

# Internal support (with default disabled)
kilt-asset-dids = {path = "crates/assets", default-features = false}
Expand Down
4 changes: 2 additions & 2 deletions pallets/attestation/src/attestations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mod tests {
fn test_no_need_to_migrate_if_none() {
let old = OldAttestationDetailsOf::<Test> {
ctype_hash: claim_hash_from_seed(CLAIM_HASH_SEED_01),
attester: sr25519_did_from_seed(&ALICE_SEED),
attester: sr25519_did_from_public_key(&ALICE_SEED),
delegation_id: None,
revoked: true,
deposit: Deposit {
Expand All @@ -83,7 +83,7 @@ mod tests {
new,
Ok(AttestationDetailsOf::<Test> {
ctype_hash: claim_hash_from_seed(CLAIM_HASH_SEED_01),
attester: sr25519_did_from_seed(&ALICE_SEED),
attester: sr25519_did_from_public_key(&ALICE_SEED),
authorization_id: None,
revoked: true,
deposit: Deposit {
Expand Down
Loading