Skip to content

Commit

Permalink
New confidential pallet (#405)
Browse files Browse the repository at this point in the history
* New confidential pallet

* New confidential pallet

* Add UT for confidential module

* New confidential pallet

* Add UT for confidential module

* Manual WASM build

* Customized WasmBuilder added

* V1 build.rs fixed

* Cryptography dep used from git

* RNG with hosted functions

* Add Crtyptography as submodule

* Update CI SSH keys

* Subtle requires nightly build

* Fix Confidential's UT

* Subtle requires nightly build

* CodeReview changes

* CodeReview changes

* CodeReview changes: Move crypto repo

* At runtime level fixed

* Remove custom substrate

* Gitmodules for CI

* CircleCI ssh fix (#472)

* fixed all submodule updates

* Update settlement to 2.0.0-rc4

* Enable UT as top module

* Enable macro to expression

* Enable Staking UT

* Minor code-review changes

Co-authored-by: Mudit Gupta <guptamudit@ymail.com>
Co-authored-by: poly-auto-merge[bot] <65769705+poly-auto-merge[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 21, 2020
1 parent cda8d57 commit 69a266f
Show file tree
Hide file tree
Showing 130 changed files with 5,362 additions and 3,107 deletions.
30 changes: 22 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- checkout
- add_ssh_keys:
fingerprints:
- "b3:bb:01:c5:90:77:ef:5c:e6:5b:f2:db:16:2f:e8:61"
- "a1:99:47:ca:fa:32:4c:9d:4b:b8:50:99:c7:64:e3:80"
- run:
name: Store rust version in an environment var for cache key
Expand All @@ -30,10 +31,12 @@ jobs:
- v2-cli-cache-{{ checksum "./rust.version" }}
- run:
name: Pull submodules
command: git submodule update --init --recursive
command: >-
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_a19947cafa324c9d4bb85099c764e380" git submodule update --init pallets/settlement &&
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_b3bb01c59077ef5ce65bf2db162fe861" git submodule update --init external/cryptography
- run:
name: Build release
command: cargo build --release || cargo build -j 1 --release
command: cargo +nightly build --release || cargo +nightly build -j 1 --release
no_output_timeout: 4h
- save_cache:
key: v2-release-cache-{{ checksum "./rust.version" }}-{{ checksum "./Cargo.lock" }}
Expand All @@ -49,6 +52,7 @@ jobs:
- checkout
- add_ssh_keys:
fingerprints:
- "b3:bb:01:c5:90:77:ef:5c:e6:5b:f2:db:16:2f:e8:61"
- "a1:99:47:ca:fa:32:4c:9d:4b:b8:50:99:c7:64:e3:80"
- run:
name: Store rust version in a file for cache key
Expand All @@ -59,25 +63,29 @@ jobs:
- v8-test-cache-{{ checksum "./rust.version" }}
- run:
name: Pull submodules
command: git submodule update --init --recursive
command: >-
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_a19947cafa324c9d4bb85099c764e380" git submodule update --init pallets/settlement &&
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_b3bb01c59077ef5ce65bf2db162fe861" git submodule update --init external/cryptography
- run:
name: Tests
command: >-
cargo test
cargo +nightly test
--package polymesh-runtime-common
--package pallet-staking
--package pallet-group
--package polymesh-primitives
--package node-rpc-runtime-api
--package pallet-transaction-payment
--package polymesh-runtime-tests
--features default_identity ||
cargo test -j 1
cargo +nightly test -j 1
--package polymesh-runtime-common
--package pallet-staking
--package pallet-group
--package polymesh-primitives
--package node-rpc-runtime-api
--package pallet-transaction-payment
--package polymesh-runtime-tests
--features default_identity
no_output_timeout: 30m
- save_cache:
Expand All @@ -94,6 +102,7 @@ jobs:
- checkout
- add_ssh_keys:
fingerprints:
- "b3:bb:01:c5:90:77:ef:5c:e6:5b:f2:db:16:2f:e8:61"
- "a1:99:47:ca:fa:32:4c:9d:4b:b8:50:99:c7:64:e3:80"
- run:
name: Store rust version in a file for cache key
Expand All @@ -103,10 +112,12 @@ jobs:
- v5-cli-cache-{{ checksum "./rust.version" }}-{{ checksum "./Cargo.lock" }}
- run:
name: Pull submodules
command: git submodule update --init --recursive
command: >-
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_a19947cafa324c9d4bb85099c764e380" git submodule update --init pallets/settlement &&
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_b3bb01c59077ef5ce65bf2db162fe861" git submodule update --init external/cryptography
- run:
name: Build release
command: cargo build --release || cargo build -j 1 --release
command: cargo +nightly build --release || cargo +nightly build -j 1 --release
no_output_timeout: 4h
- run:
name: cli node instance
Expand Down Expand Up @@ -137,6 +148,7 @@ jobs:
- checkout
- add_ssh_keys:
fingerprints:
- "b3:bb:01:c5:90:77:ef:5c:e6:5b:f2:db:16:2f:e8:61"
- "a1:99:47:ca:fa:32:4c:9d:4b:b8:50:99:c7:64:e3:80"
- run:
name: Store rust version in a file for cache key
Expand All @@ -147,7 +159,9 @@ jobs:
- v3-clippy-cache-{{ checksum "./rust.version" }}
- run:
name: Pull submodules
command: git submodule update --init --recursive
command: >-
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_a19947cafa324c9d4bb85099c764e380" git submodule update --init pallets/settlement &&
GIT_SSH_COMMAND="ssh -i /root/.ssh/id_rsa_b3bb01c59077ef5ce65bf2db162fe861" git submodule update --init external/cryptography
- run:
name: run clippy
command: cargo +nightly clippy -j 1
Expand Down
5 changes: 5 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[submodule "external/cryptography"]
path = external/cryptography
url = https://github.com/PolymathNetwork/cryptography.git
branch = master

[submodule "pallets/settlement"]
path = pallets/settlement
url = git@github.com:PolymathNetwork/polymesh-settlement-module.git
Loading

0 comments on commit 69a266f

Please sign in to comment.