Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Tn/switch to newer ring fork #1834

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
cf9c0fb
Do not include `:code` in the storage proof if not required (#480)
bkchr Jun 7, 2021
d675cee
Compact proof. (#295)
cheme Jun 8, 2021
08b7bcf
Update branches
bkchr Jun 8, 2021
796e55b
remove test dir bloat
clangenb Jun 11, 2021
ca349b0
remove all the statemint stuff
clangenb Jun 11, 2021
0906577
extended shell_runtime with sudo and balances pallet
clangenb Jun 11, 2021
54e58ac
basic integritee rebrand
clangenb Jun 11, 2021
f381032
Cargo.lock after rebase
clangenb Jun 11, 2021
89e2781
fix compilation with substratee_registry_pallet
clangenb Jun 11, 2021
08b33f8
[GA] build shell and integritee
clangenb Jun 11, 2021
868e647
add polkadot-launch config
Feb 20, 2021
838f6ac
bump collator and runtime
clangenb Jun 12, 2021
0134ce8
renamed folder rococo-runtime -> integritee-runtime
clangenb Jun 12, 2021
57f45bc
[GA] srtool: fix runtime names
clangenb Jun 12, 2021
a741803
[ChainSpec] introduce generic IntegriteeSpec to be used for shell and…
clangenb Jun 12, 2021
cf9ac9f
more ergonomic genesis key handling
clangenb Jun 12, 2021
f223553
[chain_spec] fix typo and remove duplicate definition of get_from_seed
clangenb Jun 12, 2021
63a9fb5
rename cmd integritee-rococo -> integritee
clangenb Jun 12, 2021
7775356
[chain_spec] fix propagate parachain id everywhere
clangenb Jun 12, 2021
656fa38
update polkadot-live-config.json, add shell-local-config.json add tmu…
clangenb Jun 12, 2021
a52533d
[chain_spec] remove unecessary type arg for integritee_genesis
clangenb Jun 12, 2021
3edc89a
[chain_spec] make chain_id configurable, as it is used to define the …
clangenb Jun 12, 2021
6b85ff7
[GA] set fail-fast to false to see if shell build works
clangenb Jun 12, 2021
16376fa
[shell-runtime] upgrade version such that integritee.spec_version = s…
clangenb Jun 12, 2021
41da841
rename parachain-runtimes such that srtool will find the wasms
clangenb Jun 13, 2021
fbb0cff
[shell] exchange the `DisallowSigned` struct with a proper SignedExtr…
clangenb Jun 13, 2021
38669ba
fix runtime upgrade `spec_name` must match
clangenb Jun 13, 2021
460102a
[shell-runtime] add timestamp pallet
clangenb Jun 13, 2021
23242cb
Revert "[shell-runtime] add timestamp pallet" It is not needed. The p…
clangenb Jun 13, 2021
2f8e762
Revert "Revert "[shell-runtime] add timestamp pallet" It is not neede…
clangenb Jun 13, 2021
309118d
Change strategy: Use same client as in integritee-runtime. Hence, add…
clangenb Jun 13, 2021
5a3d0e6
[chain_spec] add shell to id
clangenb Jun 13, 2021
e321503
[GA] bump srtool
clangenb Jun 14, 2021
8d4cf51
[GA] remove checking metadata diff with live chain
clangenb Jun 14, 2021
8ae648d
[GA] srtool: remove integritee build, as it's not compatible with the…
clangenb Jun 14, 2021
d271f9a
[GA] add a plain cargo build --release build
clangenb Jun 14, 2021
c6ba940
[GA] fix branch in build.yml
clangenb Jun 14, 2021
e44a720
[Readme] add runtime upgrade docs.
clangenb Jun 14, 2021
5eb2483
add docs/sudo-set-code.png
clangenb Jun 14, 2021
6eeb757
chain_spec change token to TEER
clangenb Jun 14, 2021
8943f65
downgrade runtime version to 0 for shell, and 1 for integritee
clangenb Jun 14, 2021
42b1ae3
Cleanup: outsource cumulus crate (#6)
clangenb Jun 14, 2021
6e02b10
fixing paraid and token supply
Jun 15, 2021
5975cba
[shell] add pallet-transaction-payment to shell
clangenb Jun 15, 2021
462551e
revert spec version change
brenzi Jun 15, 2021
acd038e
remove staging_testnet config
clangenb Jun 16, 2021
76fd32a
[chain_spec] add new integritee keys and be more explicit about the k…
clangenb Jun 16, 2021
a7331a4
[chain_spec] actually use from_ss58_check in our function.
clangenb Jun 16, 2021
32e8d26
[chain_spec] create additional artifacts: shell.state, shell.wasm, in…
clangenb Jun 16, 2021
ef33305
[command] set `DEFAULT_PARA_ID=2015`, as we can't override the para-i…
clangenb Jun 16, 2021
0bb57ff
[chain_spec] add kusama as relay_chain_id, change network name to `In…
clangenb Jun 16, 2021
9a684f7
[chain_spec] fix get_chain_name_ext
clangenb Jun 16, 2021
92a3aa7
[chain_spec] also generate artifacts of local chains.
clangenb Jun 16, 2021
333287d
[chain_spec] make relay_chain configurable
clangenb Jun 16, 2021
95fb04f
[chain_spec] add shell-exp to see if block production issue is relate…
clangenb Jun 16, 2021
820b9aa
quick fixing aura authorities misconfig. Always Alica and Bob
brenzi Jun 16, 2021
3015f39
[chain_spec] Remove experimental chain_spec.rs
clangenb Jun 16, 2021
b8f9a4b
[chain_spec] Add RelayChain enum.
clangenb Jun 16, 2021
79f39d5
shell-local produces blocks. it's not clear why. Another weird thing,…
clangenb Jun 17, 2021
e673bb1
fix shell-identification and remove last leftover of shell-service in…
clangenb Jun 17, 2021
8f1eeee
remove all the remaining shell-stuff to make sure nothing interferes
clangenb Jun 17, 2021
2057298
[GA] update and parametrize GA
clangenb Jun 17, 2021
753cd93
[chain_spec] remove experimental keys again.
clangenb Jun 17, 2021
9a3c555
[GA] remove obsolet shell-local-config.json. Add `name: "dave"` to od…
clangenb Jun 17, 2021
56224b5
[GA] reactivate integritee authorities.
clangenb Jun 17, 2021
06d774b
fix typo in GA
clangenb Jun 17, 2021
5a9033a
[GA] add rococo-local-dev config
clangenb Jun 17, 2021
32b17a1
[GA] add chmod +x ./integritee-collator
clangenb Jun 17, 2021
a44bac8
[GA] Fix build-spec path in upload
clangenb Jun 17, 2021
1cba53a
add vesting pallet to shell and integritee runtime
clangenb Jun 18, 2021
99fe315
fix `--dave` flag in polkadot launch
clangenb Jun 18, 2021
f0bbb71
add first protocol version of parathread_registration_test_protocol.md
clangenb Jun 18, 2021
92b25f4
remove calls from vesting and balances
clangenb Jun 18, 2021
2e73b3f
Revert "remove calls from vesting and balances"
clangenb Jun 18, 2021
0959cbf
[chain_spec] Fix unify chain-id for shell and integritee to facilitat…
clangenb Jun 18, 2021
f34232c
[chain_spec] make chain-id dependent on relay-chain to prevent db cla…
clangenb Jun 18, 2021
79f0156
[service] remove never constructed enum variant, and some other unuse…
clangenb Jun 18, 2021
0c69983
[command] fix identification of shell chain after id change.
clangenb Jun 18, 2021
edca343
[test_protocol] add section about client restart with new chain spec.…
clangenb Jun 18, 2021
970cc1c
test with only single intgeritee authority. more helpers
brenzi Jun 20, 2021
b721c7c
more verbose dump script
brenzi Jun 20, 2021
7a39a91
update the Readme: new ParaId, remove obsolete `features=real-oversee…
clangenb Jun 21, 2021
f94b248
[chain_spec] remove charlie from authorities to get 12s block-time wi…
clangenb Jun 21, 2021
47a47de
second integritee-parachain to launch script to get 12s blocktime.
clangenb Jun 21, 2021
d68b8fa
[GA] only publish artifacts for kusama. Add sha256 and github ref to …
clangenb Jun 21, 2021
af49054
[GA] fix syntax
clangenb Jun 21, 2021
68a666d
[GA] fix can't have expressions in `hashFiles`
clangenb Jun 21, 2021
d615046
[GA] fix syntax
clangenb Jun 21, 2021
acab6f6
[GA] fixes
clangenb Jun 21, 2021
a664bca
[GA] fixes
clangenb Jun 21, 2021
67bcb13
[GA] fixes
clangenb Jun 21, 2021
42c8fcb
polkadot-launch-configs: update polkadot-binary.
clangenb Jun 24, 2021
e98519c
[GA] check if srtools for integritee runtime works
clangenb Jun 28, 2021
ef3743d
[scripts] dump raw spec too
brenzi Jun 30, 2021
0c88cbf
replace ROC with TEER
Jul 1, 2021
6e4f584
lower on_initialize percentage like Statemine did
Jul 1, 2021
e32d683
change ss58 prefix to 13 and make block compute limit 500ms
Jul 1, 2021
cce664d
pin pallet index equally in shell and integritee
Jul 1, 2021
a423db0
[shell-runtime] add `DisableTokenTxFilter` (#17)
clangenb Jul 5, 2021
a1b0484
Polkadot v0.9.7 (#18)
clangenb Jul 6, 2021
46a9a9b
Remove polkadot-parachains-pallets + fix CI (#19)
clangenb Jul 7, 2021
f5962e0
add relay chains and some cosmetics (#20)
brenzi Jul 7, 2021
efaf995
rename node to integritee collator
brenzi Jul 7, 2021
bf60bd8
fix upper/lowercase
brenzi Jul 7, 2021
3d1b871
more launch scripts
brenzi Jul 7, 2021
71e8c06
do not pollute root directory with chain dumps (#22)
clangenb Jul 8, 2021
536374f
add benchmarking pipeline + add benchmarked weights to runtime + remo…
clangenb Aug 8, 2021
e1084fa
run cargo fmt + cargo clippy + update GA-CI (#31)
clangenb Aug 10, 2021
429a1bd
Create docker image #28
mosonyi Aug 10, 2021
9013308
Add release workflow #28
mosonyi Aug 16, 2021
c020713
Polkadot v0.9.8 (#34)
clangenb Aug 21, 2021
d611720
bump collator binary version and fix copyright
brenzi Aug 22, 2021
16c115d
fmt
brenzi Aug 22, 2021
3c40b18
add shell-westend-raw.json (#38)
clangenb Aug 23, 2021
5570215
add shell-westend-raw.json to docker (#38)
mosonyi Aug 23, 2021
43e4b8c
Add westend chainspec cli (#39)
clangenb Aug 23, 2021
ec32302
[GA] archive runtime.wasm_compressed
clangenb Aug 24, 2021
173e461
update shell-westend-raw.json
clangenb Aug 24, 2021
e5ec3cd
rename cli shell-westend-config -> shell-westend
clangenb Aug 24, 2021
c0ed96e
Add collator binary to release (#37)
mosonyi Aug 25, 2021
bd15dd7
Add runtime to the assets (#37)
mosonyi Aug 25, 2021
bcc5ff1
Add collator binary to release (#37)
mosonyi Aug 26, 2021
5448e4e
Add collator binary to release (#37)
mosonyi Aug 26, 2021
fb1be89
Cl use hardcoded specs for live networks (#40)
clangenb Aug 27, 2021
75650f5
[CD] establish poper release process and CI pipeline
mosonyi Sep 7, 2021
b26bdd8
[CI] fix potential rustc incremental build bug (#46)
clangenb Sep 22, 2021
90113d0
chain dump scripts make binary independent chain-specs (#36)
clangenb Oct 4, 2021
4ca9162
[scripts] remove teerex specific templates (#47)
clangenb Oct 4, 2021
68afc85
Upgrade to Polkadot 0.9.10 (#49)
echevrier Oct 16, 2021
edc3342
Upgrade to polkadot 0.9.11 (#53)
haerdib Oct 22, 2021
6405ac7
[integritee-runtime] bump authoring_version
haerdib Oct 22, 2021
405cda8
Merge pull request #55 from integritee-network/bump-version
mosonyi Oct 22, 2021
747f4ac
[GA] remove cargo clean, as the rustc bug has been resolved (#56)
clangenb Oct 27, 2021
cfd74e2
Polkadot 0.9.13 (#60)
brenzi Jan 17, 2022
d0dac8b
remove illegal lightSyncState property from chain spec (#63)
brenzi Jan 21, 2022
f8dba0f
Add docker healthchecker (#68)
mosonyi Feb 4, 2022
492bfc1
Bump to polkadot 0.9.16 (#69)
haerdib Feb 7, 2022
f3be167
Unify formatting with cumulus and encointer (#71)
clangenb Feb 11, 2022
1921c7a
downgrade rust-toolchain.toml: nightly-2022-01-31 (#72)
clangenb Feb 11, 2022
4060c26
new shell spec for unbricking our parachain (#78)
brenzi Mar 10, 2022
79bec4f
rococo regenesis to paraid 3002
Mar 31, 2022
224e27d
rococo spec: add bootnode and change display name. bump 1.5.15
Apr 1, 2022
c26d793
fix CI
Apr 1, 2022
f123120
Migration runtime upgrade and bump to polkadot v0.9.18 (#83)
haerdib Apr 6, 2022
5c8570a
Modify bootnodes (#93)
mosonyi Apr 7, 2022
616c31b
Fix metric for substrate_proposer_block_constructed_count (#91)
echevrier Apr 9, 2022
90eb7b4
Add xcmp support (#102)
haerdib Apr 25, 2022
e7c06f7
add aura storage field (#105)
clangenb Apr 26, 2022
662a47a
Fix SelfReserve (#113)
haerdib Apr 28, 2022
6017fb1
Move xcm config to separate file (#114)
haerdib Apr 29, 2022
13f84bd
Update Rococo para id to 2015 (#115)
haerdib Apr 29, 2022
4d8a35c
Bump polkadot 0.9.19 (#119)
echevrier May 6, 2022
72bb011
Update README (#96)
haerdib May 6, 2022
db6d343
Add democracy pallet governance + fix benchmark script (#118)
haerdib May 13, 2022
ee9d068
update to Polkadot v0.9.20 (#124)
haerdib May 13, 2022
bfc9d17
Add moonbase (#125)
echevrier May 16, 2022
3b81f77
Allow InstantOrigin for MoreThanHalfTechnicalCommittee (#127)
haerdib May 19, 2022
70119c6
Remove sudo (#128)
haerdib May 21, 2022
080e864
Polkadot v0.9.22 (#130)
haerdib May 25, 2022
beb48d1
add skip-ias-check flag (#134)
clangenb Jul 4, 2022
f0bc619
Polkadot v0.9.24 (#136)
haerdib Jul 5, 2022
e0c025b
Prepare shell for polkadot (#143)
brenzi Jul 6, 2022
10ff208
add `CheckNonZeroSender` to signed extra to be aligned with substrate…
clangenb Jul 19, 2022
8e27403
polkadot v0.9.26 (#146)
clangenb Aug 8, 2022
dae0957
Update polkadot to v0.9.27 (#153)
Niederb Aug 24, 2022
43b74f6
Improve XCM Config (#131)
echevrier Aug 30, 2022
026861c
add hardcoded chain spec: `shell_kusama_lease2` (#160)
clangenb Sep 6, 2022
8133061
[chain_spec] more readable code (#161)
clangenb Sep 12, 2022
e9dafa3
Add cargo.toml formatting with taplo (#164)
echevrier Sep 29, 2022
ef42580
Add zombienet config to launch a rococo local network (#154)
echevrier Oct 6, 2022
53ba430
Add license check (#165)
Niederb Oct 12, 2022
c9cd8df
Update polkadot-v0.9.29 (#168)
OverOrion Oct 26, 2022
4fe3576
Switch to newer fork of ring
Niederb Nov 8, 2022
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
407 changes: 407 additions & 0 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions .github/workflows/delete-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Delete-Release

on:
release:
types: [deleted] # should be deleted

jobs:
purge-image:
name: Delete image from ghcr.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
echo ${{github.event.pull_request.number}}

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

# Unfortunately accessing the repo with personal access token is not possible
# Workaround: disable 2FA and user password instead of TOKEN
- name: Delete docker tag
run: |
ORGANIZATION="integritee"
IMAGE="parachain"
TAG="${{ steps.vars.outputs.tag }}"

login_data() {
cat <<EOF
{
"username": "${{ secrets.DOCKER_HUB_USERNAME }}",
"password": "${{ secrets.DOCKERHUB_PASSWORD }}"
}
EOF
}

TOKEN=`curl -s -H "Content-Type: application/json" -X POST -d "$(login_data)" "https://hub.docker.com/v2/users/login/" | jq -r .token`

curl "https://hub.docker.com/v2/repositories/${ORGANIZATION}/${IMAGE}/tags/${TAG}/" \
-X DELETE \
-H "Authorization: JWT ${TOKEN}"

- name: Delete tag as well
uses: dev-drprasad/delete-tag-and-release@v0.2.0
with:
delete_release: false # it is triggered by release deletion
tag_name: ${{ steps.vars.outputs.tag }} # tag name to delete
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62 changes: 62 additions & 0 deletions .github/workflows/publish-docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Publish Docker image for new releases

on:
release:
types:
- published

jobs:
main:
name: Push to Dockerhub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Download integritee-collator from release
uses: dsaltares/fetch-gh-release-asset@master
with:
version: "tags/${{ github.event.release.tag_name }}"
file: "integritee-collator"
target: "integritee-collator"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
context: .
tags: |
integritee/parachain:latest
integritee/parachain:${{ github.event.release.tag_name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

- name: Slack Notification
uses: 8398a7/action-slack@v3
if: failure()
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
18 changes: 0 additions & 18 deletions .github/workflows/release-bot.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/srtool.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,16 @@
/.cargo/config

**/node_modules

*.log

# autogenerated chain_specs
chain_dumps/
rococo-local*
westend-local*
kusama-local*
polkadot-local*

# autogeneretad weights to be used in the pallet_teerex repository
pallet_teerex_weights.rs
integritee-collator
25 changes: 23 additions & 2 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
hard_tabs=true
merge_imports=true
# Basic
hard_tabs = true
max_width = 100
use_small_heuristics = "Max"

# Imports
imports_granularity = "Crate"
reorder_imports = true

# Consistency
newline_style = "Unix"

# Misc
binop_separator = "Back"
chain_width = 80
match_arm_blocks = false
match_arm_leading_pipes = "Preserve"
match_block_trailing_comma = true
reorder_impl_items = false
spaces_around_ranges = false
trailing_comma = "Vertical"
trailing_semicolon = false
use_field_init_shorthand = true
21 changes: 21 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include = ["**/Cargo.toml"]

[formatting]
array_auto_expand = false
array_auto_collapse = false
indent_string = " "
inline_table_expand = false

[[rule]]
include = ["**/Cargo.toml"]
keys = ["dependencies", "target", "patch"]

[rule.formatting]
reorder_keys = true

[[rule]]
include = ["**/Cargo.toml"]
keys = ["features"]

[rule.formatting]
array_auto_expand = true
Loading