Skip to content

Commit

Permalink
feat: DIP v1 features (#494)
Browse files Browse the repository at this point in the history
Feature branch for everything DIP. It will collect other PRs until we
are happy with the features, and will add the DIP to some of our
runtimes and merge this into `develop`.

## WIP Checklist for the open tasks for v1

- [x] Basic structure ->
#489
- [x] Merkleization of DID Documents ->
#492
- [x] `RuntimeCall` verification logic ->
#502
- [x] DID signature verification ->
#516
- [x] Add support for linked accounts and web3name ->
#525
- [x] Configurable origin for `commit_identity` ->
#526
- [x] Proper fee management ->
#528
- [x] Update to Polkadot 0.9.43 ->
c18a6ce
- [x] Replace XCM with state proofs ->
#543
- [x] Add support for relaychain consumer ->
#553 (part of
#543)
- [x] Proper error handling ->
#572
- [x] Add support for versioning ->
#573
- [x] Take deposits for identity commitments ->
#574
- [x] Expose common definitions usable by consumers ->
#577
- [x] Change ensure_signed! to configurable origin also for the
`dispatch_as` function ->
#577
- [x] Proper benchmarking and weights ->
#585
- [x] Comments and docs ->
#584
- [x] Revert Dockerfile changes in
#587
- [x] [OPTIONAL] Add support for Zombienet ->
#587
- [x] [OPTIONAL] Add chain spec loading from file for template runtimes
-> #587
- [x] Big, final review ->
#494 (review)
- [x] Improvements n.1 PR ->
#591
- [x] Improvements n.2 PR ->
#592
- [x] Add to Peregrine runtime ->
#594
- [ ] Deploy on Peregrine
- [ ] Unit tests
- [ ] Add to Spiritnet runtime
- [ ] Deploy on Spiritnet
- [ ] [OPTIONAL] Move DIP-related stuff into its own repo

---------

Co-authored-by: Adel Golghalyani <[email protected]>
Co-authored-by: Chris Chinchilla <[email protected]>
Co-authored-by: Albrecht <[email protected]>
  • Loading branch information
4 people authored Dec 14, 2023
1 parent 0c9d4dc commit f9f4c3e
Show file tree
Hide file tree
Showing 114 changed files with 15,967 additions and 550 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ build:
variables:
DOCKER_HUB_PARACHAIN: "kiltprotocol/kilt-node"
DOCKER_HUB_STANDALONE: "kiltprotocol/standalone-node"
DOCKER_HUB_DIP_PROVIDER_TEMPLATE: "kiltprotocol/dip-provider-node-template"
DOCKER_HUB_DIP_CONSUMER_TEMPLATE: "kiltprotocol/dip-consumer-node-template"
before_script:
- aws --version
- docker --version
Expand Down
16 changes: 16 additions & 0 deletions .maintain/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,19 @@ docker build \
--build-arg NODE_TYPE=standalone-node \
-t local/standalone-node:$target_tag \
.

# build DIP provider and consumer templates
PROVIDER_BIN_NAME="dip-provider-node-template"
docker build \
--cache-from $AWS_REGISTRY/kilt-parachain/collator:builder \
--cache-from $AWS_REGISTRY/$PROVIDER_BIN_NAME:$target_tag \
--build-arg NODE_TYPE=$PROVIDER_BIN_NAME \
-t local/$PROVIDER_BIN_NAME:$target_tag \
.
CONSUMER_BIN_NAME="dip-consumer-node-template"
docker build \
--cache-from $AWS_REGISTRY/kilt-parachain/collator:builder \
--cache-from $AWS_REGISTRY/$CONSUMER_BIN_NAME:$target_tag \
--build-arg NODE_TYPE=$CONSUMER_BIN_NAME \
-t local/$CONSUMER_BIN_NAME:$target_tag \
.
11 changes: 11 additions & 0 deletions .maintain/push-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,27 @@
source_tag=$1
target_tag=$2

PROVIDER_BIN_NAME="dip-provider-node-template"
CONSUMER_BIN_NAME="dip-consumer-node-template"

# publish to docker hub
docker tag local/standalone-node:$source_tag ${DOCKER_HUB_STANDALONE}:$target_tag
docker tag local/kilt-node:$source_tag ${DOCKER_HUB_PARACHAIN}:$target_tag
docker tag local/$PROVIDER_BIN_NAME:$source_tag ${DOCKER_HUB_DIP_PROVIDER_TEMPLATE}:$target_tag
docker tag local/$CONSUMER_BIN_NAME:$source_tag ${DOCKER_HUB_DIP_CONSUMER_TEMPLATE}:$target_tag

docker push ${DOCKER_HUB_STANDALONE}:$target_tag
docker push ${DOCKER_HUB_PARACHAIN}:$target_tag
docker push ${DOCKER_HUB_DIP_PROVIDER_TEMPLATE}:$target_tag
docker push ${DOCKER_HUB_DIP_CONSUMER_TEMPLATE}:$target_tag

# publish to AWS
docker tag local/standalone-node:$source_tag $AWS_REGISTRY/kilt/prototype-chain:$target_tag
docker tag local/kilt-node:$source_tag $AWS_REGISTRY/kilt-parachain/collator:$target_tag
docker tag local/$PROVIDER_BIN_NAME:$source_tag $AWS_REGISTRY/$PROVIDER_BIN_NAME:$target_tag
docker tag local/$CONSUMER_BIN_NAME:$source_tag $AWS_REGISTRY/$CONSUMER_BIN_NAME:$target_tag

docker push $AWS_REGISTRY/kilt/prototype-chain:$target_tag
docker push $AWS_REGISTRY/kilt-parachain/collator:$target_tag
docker push $AWS_REGISTRY/$PROVIDER_BIN_NAME:$target_tag
docker push $AWS_REGISTRY/$CONSUMER_BIN_NAME:$target_tag
Loading

0 comments on commit f9f4c3e

Please sign in to comment.