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

fix: add did lookup pallet to DID authorization logic + reverse lookup index #343

Merged
merged 30 commits into from
Mar 24, 2022

Conversation

ntn-x2
Copy link
Member

@ntn-x2 ntn-x2 commented Mar 18, 2022

Fixes https://github.com/KILTprotocol/ticket/issues/1899 and fixes https://github.com/KILTprotocol/ticket/issues/1900.

Checklist

  • Add missing filter
  • Implement reverse index
  • Add tests for reverse index
  • Add migration for reverse index
  • Get reviewed
  • Run benchmarks

@ntn-x2 ntn-x2 self-assigned this Mar 18, 2022
@ntn-x2 ntn-x2 force-pushed the aa-did-lookup-origin-fix branch from a10c5ca to 494ac0f Compare March 18, 2022 10:34
@ntn-x2 ntn-x2 changed the base branch from develop to master March 18, 2022 10:34
@ntn-x2 ntn-x2 changed the title fix: add did lookup pallet to DID authorization logic fix: add did lookup pallet to DID authorization logic + reverse lookup index Mar 18, 2022
@ntn-x2 ntn-x2 force-pushed the aa-did-lookup-origin-fix branch from da7efbb to 6a4445f Compare March 22, 2022 09:24
@ntn-x2 ntn-x2 changed the base branch from master to develop March 22, 2022 09:24
@ntn-x2 ntn-x2 force-pushed the aa-did-lookup-origin-fix branch from c3c4bcc to 08fc0c8 Compare March 22, 2022 09:33
@ntn-x2 ntn-x2 marked this pull request as ready for review March 22, 2022 09:44
@ntn-x2 ntn-x2 requested review from wischli and weichweich March 22, 2022 09:44
@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 24, 2022

Benchmark Runtime Pallet for branch "aa-did-lookup-origin-fix" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Results
Pallet: "pallet_did_lookup", Extrinsic: "associate_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    95.01
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    95.01
              µs

Reads = 2
Writes = 3

Pallet: "pallet_did_lookup", Extrinsic: "associate_sender", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    36.56
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    36.56
              µs

Reads = 2
Writes = 3

Pallet: "pallet_did_lookup", Extrinsic: "remove_sender_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    35.19
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    35.19
              µs

Reads = 2
Writes = 3

Pallet: "pallet_did_lookup", Extrinsic: "remove_account_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.24
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.24
              µs

Reads = 2
Writes = 3


kiltbot and others added 2 commits March 24, 2022 11:40
…hmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs
@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime pallet pallet-did-lookup

@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 24, 2022

Benchmark Runtime Pallet for branch "aa-did-lookup-origin-fix" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

Results
Error: Input("InsufficientFunds")

ERROR: Unable to commit file pallets/pallet-did-lookup/src/default_weights.rs

@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime peregrine pallet-did-lookup

@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime spiritnet-runtime pallet-did-lookup

@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 24, 2022

Benchmark Runtime Substrate Pallet for branch "aa-did-lookup-origin-fix" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Results
Error: Input("InsufficientFunds")

ERROR: Unable to commit file ./runtimes/peregrine/src/weights/pallet_did-lookup.rs

@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 24, 2022

Benchmark Runtime Pallet for branch "aa-did-lookup-origin-fix" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Results
Error: Input("InsufficientFunds")

ERROR: Unable to commit file ./runtimes/spiritnet/src/weights/pallet_did-lookup.rs

@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime pallet pallet-did-lookup

@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 24, 2022

Benchmark Runtime Pallet for branch "aa-did-lookup-origin-fix" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

Results
Pallet: "pallet_did_lookup", Extrinsic: "associate_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    111.8
              µs

Reads = 2
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    111.8
              µs

Reads = 2
Writes = 4

Pallet: "pallet_did_lookup", Extrinsic: "associate_sender", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    52.63
              µs

Reads = 2
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    52.63
              µs

Reads = 2
Writes = 4

Pallet: "pallet_did_lookup", Extrinsic: "remove_sender_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    35.37
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    35.37
              µs

Reads = 2
Writes = 3

Pallet: "pallet_did_lookup", Extrinsic: "remove_account_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    36.18
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    36.18
              µs

Reads = 2
Writes = 3


kiltbot and others added 2 commits March 24, 2022 14:02
…hmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs
@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime peregrine pallet-did-lookup

@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime spiritnet-runtime pallet-did-lookup

@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime peregrine pallet-did-lookup

1 similar comment
@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime peregrine pallet-did-lookup

@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 24, 2022

Benchmark Runtime Substrate Pallet for branch "aa-did-lookup-origin-fix" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Results
Pallet: "pallet_did_lookup", Extrinsic: "associate_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    114.1
              µs

Reads = 2
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    114.1
              µs

Reads = 2
Writes = 4

Pallet: "pallet_did_lookup", Extrinsic: "associate_sender", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.98
              µs

Reads = 2
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.98
              µs

Reads = 2
Writes = 4

Pallet: "pallet_did_lookup", Extrinsic: "remove_sender_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    36.22
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    36.22
              µs

Reads = 2
Writes = 3

Pallet: "pallet_did_lookup", Extrinsic: "remove_account_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    39.35
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    39.35
              µs

Reads = 2
Writes = 3


@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime spiritnet-runtime pallet-did-lookup

…hmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs
@ntn-x2
Copy link
Member Author

ntn-x2 commented Mar 24, 2022

/bench runtime spiritnet-runtime pallet-did-lookup

@kilt-command-bot
Copy link

kilt-command-bot bot commented Mar 24, 2022

Benchmark Runtime Pallet for branch "aa-did-lookup-origin-fix" with command cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Results
Pallet: "pallet_did_lookup", Extrinsic: "associate_account", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    111.8
              µs

Reads = 2
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    111.8
              µs

Reads = 2
Writes = 4

Pallet: "pallet_did_lookup", Extrinsic: "associate_sender", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    53.83
              µs

Reads = 2
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    53.83
              µs

Reads = 2
Writes = 4

Pallet: "pallet_did_lookup", Extrinsic: "remove_sender_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    35.19
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    35.19
              µs

Reads = 2
Writes = 3

Pallet: "pallet_did_lookup", Extrinsic: "remove_account_association", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: DidLookup ConnectedDids (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: DidLookup ConnectedAccounts (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     38.6
              µs

Reads = 2
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     38.6
              µs

Reads = 2
Writes = 3


…hmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs
@ntn-x2 ntn-x2 merged commit ff34f86 into develop Mar 24, 2022
@ntn-x2 ntn-x2 deleted the aa-did-lookup-origin-fix branch March 24, 2022 13:43
ntn-x2 added a commit that referenced this pull request Mar 25, 2022
…p index (#343)

* fix: add did lookup pallet to DID authorization logic

* test: add unit tests for spiritnet and peregrine runtimes for correct DID verification key derivation

* chore: clippy

* feat: add additional map for reverse index

* test: add unit tests

* chore: update benchmarks checks

* wip: runtime upgrade scripts

* wip: lookup pallet migration

* chore: update toolchain version to nightly 1.59 (#339)

* chore: bump up toolchain to nightly 1.59

* chore: address Clippy warnings

* wip: benchmarks

* bench: benchmark compiling

* chore: try-runtime complete

* chore: update deps

* chore: add migrations to Spiritnet runtime

* chore: add comment in lookup migration

* chore: move migration into lookup pallet

* fix: add try-runtime feature to did lookup crate

* chore: fixes after rebase

* chore: fmt

* chore: ConnectedAccounts map comment

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* bench: update benchmarks to include account replacement as worst case

* bench: fix InsufficientFunds error in benchmarks

* chore: fmt

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

* chore: update comments

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Co-authored-by: kiltbot <>
(cherry picked from commit ff34f86)
ntn-x2 added a commit that referenced this pull request Mar 25, 2022
* Adds two more relaychain bootnodes for staging environment  (#334)

* Adds two more bootnodes for staging environment closes #1864

* Fixes staging parachain bootNodes

(cherry picked from commit 73097ff)

* ci: use caching

(cherry picked from commit aafb1a9)

* chore: reset peregrine stg (#335)

* reset peregrine stg

* delete tmp files

(cherry picked from commit f27917c)

* chore: minor peregrine-stg fix

(cherry picked from commit c2819c9)

* fix: swapped ed & sr keys

(cherry picked from commit dcb7afa)

* fix: peregrine-stg bootnodes

(cherry picked from commit 30b1cfa)

* fix: peregrine-stg parachain nodes

(cherry picked from commit 896f01a)

* fix: peregrine-stg node identity

(cherry picked from commit b84dbda)

* ci: use custom ci image (#336)

* switch to own ci image

skipping one step should speed up the build

* add ci dockerfile

* add tag

(cherry picked from commit e999bfb)

* Optimizes docker layer (#337)

* Adds copy all files in a sigle layer command

* Removes unused docker layer

* Changes debian image to ubuntu

Co-authored-by: Albrecht <albrecht@kilt.io>
(cherry picked from commit 76025b1)

* chore: update toolchain version to nightly 1.59 (#339)

* chore: bump up toolchain to nightly 1.59

* chore: address Clippy warnings

(cherry picked from commit 80182c5)

* fix: add did lookup pallet to DID authorization logic + reverse lookup index (#343)

* fix: add did lookup pallet to DID authorization logic

* test: add unit tests for spiritnet and peregrine runtimes for correct DID verification key derivation

* chore: clippy

* feat: add additional map for reverse index

* test: add unit tests

* chore: update benchmarks checks

* wip: runtime upgrade scripts

* wip: lookup pallet migration

* chore: update toolchain version to nightly 1.59 (#339)

* chore: bump up toolchain to nightly 1.59

* chore: address Clippy warnings

* wip: benchmarks

* bench: benchmark compiling

* chore: try-runtime complete

* chore: update deps

* chore: add migrations to Spiritnet runtime

* chore: add comment in lookup migration

* chore: move migration into lookup pallet

* fix: add try-runtime feature to did lookup crate

* chore: fixes after rebase

* chore: fmt

* chore: ConnectedAccounts map comment

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* bench: update benchmarks to include account replacement as worst case

* bench: fix InsufficientFunds error in benchmarks

* chore: fmt

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=pallets/pallet-did-lookup/src/default_weights.rs --template=.maintain/weight-template.hbs

* chore: update comments

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-did-lookup --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_did-lookup.rs --template=.maintain/runtime-weight-template.hbs

Co-authored-by: kiltbot <>
(cherry picked from commit ff34f86)

* feat: proxy type for disableling deposit claiming (#341)

* proxy type for disableling deposit claiming

* fix

* fix: explicit proxy pallet logic for peregrine runtime

* fix: finalise proxy definition for spiritnet

* chore: add explicit encoding value for proxy types

* chore: update mashnet-node with similar proxy structure as peregrine

* chore: clippy

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/peregrine/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

* cargo run --quiet --release -p kilt-parachain --features=runtime-benchmarks -- benchmark --chain=spiritnet-dev --steps=50 --repeat=20 --pallet=pallet-proxy --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtimes/spiritnet/src/weights/pallet_proxy.rs --template=.maintain/runtime-weight-template.hbs

Co-authored-by: Antonio Antonino <antonio@kilt.io>
Co-authored-by: kiltbot <>
(cherry picked from commit a402710)

* fix: pallet_did_lookup weights filename

* chore: bump pallet and runtime versions

Co-authored-by: Gerawork Aynekulu <ggera@users.noreply.github.com>
Co-authored-by: weichweich <albrecht@kilt.io>
ntn-x2 added a commit that referenced this pull request Jun 24, 2022
* Adds two more relaychain bootnodes for staging environment  (#334)

* chore: reset peregrine stg (#335)

* ci: use custom ci image (#336)

* Optimizes docker layer (#337)

* fix: add did lookup pallet to DID authorization logic + reverse lookup index (#343)

* chore: update toolchain version to nightly 1.59 (#339)

* feat: proxy type for disableling deposit claiming (#341)

* fix: rococo protocol id (#369)

* feat: generic access control (#316)

* Updates toolchain version (#345)

* refactor: enforce no runtime in pallet (#349)

* fix: features (#353)

* feat: add tips pallet (#352)

* feat: upgrade to Polkadot v0.9.19 (#357)

* chore: upgrade and clean up (#360)

* Adds the new rococo chainspec (#363)

* feat: add launch pallet removal migration (#359)

* refactor: update rilt para id from 2015 to 2108 (#364)

* fix: rilt para id (#365)

* feat: upgrade to Polkadot v0.9.23 (#366)

* use ci-linx:production base image (#368)

* feat: upgrade to Polkadot v0.9.24 (#370)

* fix: fix CI builders compilation errors and pin to a specific hash (#372)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants