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

Release 4.8.3 #222

Merged
merged 676 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
676 commits
Select commit Hold shift + click to select a range
560ee73
Set reward points by the edge stash account
khssnv Oct 12, 2023
49276c4
Fix ddc-validation test regression
khssnv Oct 12, 2023
2318957
Require idle state to change staking node account
khssnv Oct 17, 2023
792df9e
Rename `set_node` extrinsic parameter
khssnv Oct 17, 2023
9950727
Update CHANGELOG.md
khssnv Oct 17, 2023
2d6db47
Bump devnet `spec_version`
khssnv Oct 17, 2023
7509f5a
Add node auth check to `add_node` extrinsic
khssnv Oct 17, 2023
4cdbd1e
Allow `is_some_and` feature
khssnv Oct 17, 2023
182b4b6
Use `Vec` from `sp_std` prelude
khssnv Oct 17, 2023
d228f5b
Merge pull request #104 from Cerebellum-Network/feature/ddc-staking-n…
khssnv Oct 17, 2023
2d199ea
Remove extension contract addr field duplicate
khssnv Oct 18, 2023
8915680
A const for the contract auth message selector
khssnv Oct 18, 2023
f21d7fa
Set cluster extension contract call gas limit
khssnv Oct 19, 2023
d3f3739
Merge pull request #105 from Cerebellum-Network/feature/impl-cluster-…
khssnv Oct 19, 2023
ef345f1
Add ddc-nodes tight coupling with ddc-staking
khssnv Oct 18, 2023
01d1e7f
Add DDC stake check to `add_node` extrinsic
khssnv Oct 18, 2023
45bfdf1
New `ddc-primitives` crate with basic DDC entities
khssnv Oct 19, 2023
1ef123e
Add `pallet-ddc-clusters` to cere-dev std feature
khssnv Oct 20, 2023
c07f2c7
Use `ddc-primitives` in `ddc-staking`
khssnv Oct 20, 2023
4a76654
Fix node key conversion to string
khssnv Oct 20, 2023
5686075
Minor fixes suggested by warnings
khssnv Oct 20, 2023
43b93d3
Use `ddc-primitives` in `ddc-nodes`
khssnv Oct 20, 2023
eb0acae
Use `ddc-primitives` in `ddc-clusters`
khssnv Oct 20, 2023
a426fd1
Add missing std feature dependencies
khssnv Oct 20, 2023
6fce399
Update `Cargo.lock`
khssnv Oct 20, 2023
6df62e7
Update CHANGELOG.md
khssnv Oct 20, 2023
d192dad
Bump `cere-dev` runtime `spec_version`
khssnv Oct 20, 2023
5b38f69
Fix `runtime-benchmarks` build and tests
khssnv Oct 20, 2023
8624443
Merge pull request #106 from Cerebellum-Network/feature/add-node-chec…
khssnv Oct 23, 2023
a4efa99
Add `clippy` component to the toolchain file
khssnv Sep 21, 2023
625913c
Add clippy config
khssnv Oct 23, 2023
8c3d4db
Disable clippy linter in legacy pallets
khssnv Oct 23, 2023
66520f9
Suppress `clippy::needless_lifetimes` in ddc-nodes
khssnv Oct 23, 2023
d5d671d
Apply `cargo clippy --fix --all`
khssnv Sep 21, 2023
ebe97f8
Use `sp_std` as a BTreeMap type source
khssnv Sep 21, 2023
17efbf4
Disable rustfmt for legacy pallets
khssnv Oct 23, 2023
3b367ba
Apply rustfmt
khssnv Sep 21, 2023
1fce540
Apply clippy suggestions which it can't fix itself
khssnv Sep 22, 2023
e6a45d6
Pre-push script invoking Clippy linter
khssnv Sep 22, 2023
2ec2d82
Add pre-push script setup to init script
khssnv Sep 22, 2023
585f1d8
Add Clippy to the `check` CI workflow
khssnv Sep 22, 2023
666f220
Reduce by 2 orders of magnitude the constants changed in v4.7.1
MRamanenkau Oct 24, 2023
460b1bb
Update spec_version
MRamanenkau Oct 24, 2023
835704c
Merge pull request #109 from Cerebellum-Network/feature/merge-4.7.2
MRamanenkau Oct 25, 2023
61c58d2
remove controller from account deposit
Raid5594 Oct 25, 2023
a34d3b1
add method allocate bucket to cluster
Raid5594 Oct 25, 2023
064476e
update pallet name
Raid5594 Oct 25, 2023
eedff72
New `fast_chill` call in `ddc-clusters`
khssnv Oct 26, 2023
dabbf84
Reject cluster node candidates planning to chill
khssnv Oct 26, 2023
5020dee
Bump `cere-dev` runtime `spec_version`
khssnv Oct 26, 2023
d2cb600
update type for ClusterId and check cluster exists when allocating bu…
Raid5594 Oct 26, 2023
caede30
rename ddc-customer-accounts to ddc-customers
Raid5594 Oct 26, 2023
79e08fd
forgot to add renamed pallet
Raid5594 Oct 26, 2023
a0ea96c
rename unbonding to unlock across pallet-customers
Raid5594 Oct 26, 2023
1cd0286
fix tests for green CI :)
Raid5594 Oct 26, 2023
763957a
Merge pull request #112 from Cerebellum-Network/feature/customer-acco…
yahortsaryk Oct 26, 2023
4239f27
feat: payment pallet prototype
yahortsaryk Oct 26, 2023
ce750e3
Merge branch 'dev' into feat/payouts-pallet
yahortsaryk Oct 27, 2023
2c02252
Optimize `fast_chill` removing iteration over keys
khssnv Oct 27, 2023
70ce219
Merge pull request #110 from Cerebellum-Network/feature/fast-ddc-unstake
khssnv Oct 30, 2023
f26f83d
Impl conversion from `NodePubKey` variant to `u8`
khssnv Oct 27, 2023
1392956
Reorder node auth and DDC stake check
khssnv Oct 27, 2023
819fbfe
Pass node and provider ids to the auth extension
khssnv Oct 27, 2023
26f4a33
Bump `cere-dev` runtime `spec_version`
khssnv Oct 30, 2023
003a344
Fix cluster extension contract call data encoding
khssnv Oct 31, 2023
1a1eaaa
Merge pull request #114 from Cerebellum-Network/feature/auth-extensio…
khssnv Oct 31, 2023
b489d54
feat: generating a vault address for each billing report
yahortsaryk Nov 1, 2023
bbf5ea8
feat: ddc-traits module is added for loose coupling between pallets
yahortsaryk Nov 2, 2023
46cbf99
fix: mock object for ddc-staking tests is fixed
yahortsaryk Nov 2, 2023
b490d95
feat: trait bounds are added for the node provider type
yahortsaryk Nov 3, 2023
c82f5e3
chore: auth contract call is moved to a module
yahortsaryk Nov 3, 2023
232427a
fix: tests compilation is fixed
yahortsaryk Nov 3, 2023
3a09091
Merge pull request #116 from Cerebellum-Network/feat/ddc-traits
yahortsaryk Nov 6, 2023
13ba696
rebase dev
Raid5594 Nov 6, 2023
336e564
remove ddc validator from lib.rs
Raid5594 Nov 3, 2023
793a714
Merge pull request #117 from Cerebellum-Network/fix/remove-validator
Raid5594 Nov 6, 2023
cef114c
extend clusters with cluster gov params
Raid5594 Nov 6, 2023
4912166
add separate mapping for cluster gov params
Raid5594 Nov 6, 2023
fe8745c
remove remaining files for ddc validator
Raid5594 Nov 6, 2023
75dee3f
Merge pull request #119 from Cerebellum-Network/fix/remove-validator-…
yahortsaryk Nov 6, 2023
7b8396f
update bucket_id type from u128 to u64 and add storage migration
Raid5594 Nov 1, 2023
3602a04
correct key for v1 storage format
Raid5594 Nov 3, 2023
581b7ff
remove migration & resources reserved for buckets
Raid5594 Nov 6, 2023
ddc828d
move BucketId to ddc-primitives
Raid5594 Nov 6, 2023
7b3c665
change edge to cdn prefix in naming
Raid5594 Nov 6, 2023
12a09cf
bucket can only be allocated to cluster once
Raid5594 Nov 6, 2023
d6db558
Merge pull request #118 from Cerebellum-Network/feature/cluster-with-…
Raid5594 Nov 6, 2023
fb15886
merge create_bucket and allocate_bucket_to_cluster methods
Raid5594 Nov 7, 2023
f5abcdb
substitute bond size check with cluster gov params
Raid5594 Nov 7, 2023
1b067e3
remove unnecessary params & update mock
Raid5594 Nov 7, 2023
9fccd39
change the param for getting bond size
Raid5594 Nov 7, 2023
64d3eac
update to loose coupling for cluster info
Raid5594 Nov 7, 2023
c6522e1
rename param node_pub_key to node_type
Raid5594 Nov 7, 2023
24bb2ea
fix small bug
Raid5594 Nov 7, 2023
3642a95
make cluster_id not an optional field in bucket struct
Raid5594 Nov 7, 2023
118e271
remove ddc-clusters from cargo.toml
Raid5594 Nov 7, 2023
fd38969
Merge pull request #120 from Cerebellum-Network/feature/ddc-staking-r…
yahortsaryk Nov 7, 2023
c72a3a6
remove obsolete error and add event for bucket creation
Raid5594 Nov 7, 2023
aec8f96
add strong type params for cdn node
Raid5594 Nov 7, 2023
1db5fbf
Merge pull request #115 from Cerebellum-Network/fix/replace-type-buck…
yahortsaryk Nov 7, 2023
6c53223
rename all mentions of edge to CDN
Raid5594 Nov 8, 2023
a3778b1
remove cluster settings from ddc-staking; add get_chill_delay for clu…
Raid5594 Nov 8, 2023
6b8e6c5
replace era index with block number for ddc staking; cleanup code
Raid5594 Nov 8, 2023
9be9df7
update logic for customer unlocks based on unlock delay in blocks
Raid5594 Nov 8, 2023
21f5e5f
update error and storage params
Raid5594 Nov 8, 2023
9dbebe8
fix bechmarks & tests
Raid5594 Nov 8, 2023
e991c83
fix benchmarking for ddc-staking
Raid5594 Nov 8, 2023
6d15896
validation + node rewards
Nov 8, 2023
245f51e
chore: unused parameters removed
yahortsaryk Nov 8, 2023
85a6257
Merge pull request #122 from Cerebellum-Network/fix/renaming-and-cleanup
yahortsaryk Nov 8, 2023
4a939e1
feat: cluster missing parameters added
yahortsaryk Nov 9, 2023
d1f2bf8
chore: merging with 'dev' branch
yahortsaryk Nov 9, 2023
958aff1
Merge pull request #121 from Cerebellum-Network/feature/strong-typed-…
yahortsaryk Nov 9, 2023
cbee5c1
Merge remote-tracking branch 'origin/dev' into feature/code-quality-c…
rakanalh Nov 9, 2023
651ca80
add tests for ddc-node
Raid5594 Nov 9, 2023
d30f4de
feat: checking node cluster_id while node provider chilling
yahortsaryk Nov 9, 2023
4553d15
chore: version bump
yahortsaryk Nov 9, 2023
e8233e4
merge dev
Nov 9, 2023
ce406bf
fix: test compilation error is fixed
yahortsaryk Nov 9, 2023
7e0fa8a
Rerun cargo clippy fix
rakanalh Nov 10, 2023
6b4b4ff
chore: using if/else instead of match
yahortsaryk Nov 10, 2023
9391237
Refactor new method and remove lifetimes
rakanalh Nov 10, 2023
1f6a317
Resolve clippy warnings
rakanalh Nov 10, 2023
e653d20
Merge pull request #125 from Cerebellum-Network/feat/staking-unbonding
yahortsaryk Nov 10, 2023
8107abc
Check for unused dependencies
rakanalh Nov 10, 2023
3b719ec
Merge remote-tracking branch 'origin/dev' into feature/code-quality-c…
rakanalh Nov 10, 2023
6e9da2e
Cargo machete does not support --locked install yet
rakanalh Nov 10, 2023
051fe25
Fix clippy warning
rakanalh Nov 10, 2023
bbb0868
Resolve redundancy
rakanalh Nov 10, 2023
d346c19
Merge pull request #92 from Cerebellum-Network/feature/code-quality-c…
rakanalh Nov 10, 2023
a52c241
Increase call_size for tests
rakanalh Nov 10, 2023
d5d6a89
chore: unused node related type removed
yahortsaryk Nov 10, 2023
43ada87
Merge pull request #129 from Cerebellum-Network/chore/removed-types
yahortsaryk Nov 10, 2023
918474e
Update both runtimes
rakanalh Nov 10, 2023
ef79f8a
Merge pull request #128 from Cerebellum-Network/feature/increase-call…
yahortsaryk Nov 10, 2023
996f80d
add tests for ddc-clusters
Raid5594 Nov 10, 2023
d91c04f
added missing files
Raid5594 Nov 10, 2023
6ec7f82
Merge remote-tracking branch 'origin/dev' into feature/update-to-polk…
rakanalh Nov 12, 2023
90e163e
dprint fmt
rakanalh Nov 12, 2023
9f783c0
Add github action
rakanalh Nov 12, 2023
7628eb6
Fix clippy for MinVestedTransfer
rakanalh Nov 12, 2023
633e89a
Merge remote-tracking branch 'origin/dev' into feat/payouts-pallet
rakanalh Nov 12, 2023
4c8f27e
Merge remote-tracking branch 'origin/dev' into feature/cluster-and-no…
rakanalh Nov 12, 2023
be5c999
Fix indent
rakanalh Nov 12, 2023
1495f6c
Merge pull request #131 from Cerebellum-Network/dprint
rakanalh Nov 13, 2023
2680ec2
Merge remote-tracking branch 'origin/dev' into feature/update-to-polk…
rakanalh Nov 13, 2023
1f259aa
Add auto-assign to github PRs
rakanalh Nov 13, 2023
cfcf237
Merge pull request #134 from Cerebellum-Network/auto-assign
rakanalh Nov 13, 2023
f84e3c2
Merge pull request #123 from Cerebellum-Network/finish-payout
aie0 Nov 13, 2023
7ca5bf0
payout<->customers
Nov 13, 2023
6732f90
Merge branch 'dev' into feature/update-to-polkadot-v0-9-31
rakanalh Nov 13, 2023
6939d9e
payout <> clusters
Nov 13, 2023
fca97a3
customer debtors
Nov 13, 2023
0ea738a
merge dev
Nov 13, 2023
5495324
fix(pallet_ddc_staking): checking node type before making node active…
yahortsaryk Nov 13, 2023
6a53b71
fix: clippy issue is fixed and runtime version is upgraded
yahortsaryk Nov 13, 2023
47ab9bf
merge dev
Nov 13, 2023
b6c7951
dprint fmt
Nov 13, 2023
dd4eb36
clippy
Nov 13, 2023
efb480d
feat: adding an event that indicates the stake as active
yahortsaryk Nov 14, 2023
bb6c83a
fix: clippy
yahortsaryk Nov 14, 2023
904ccd4
add unit tests for customers
Raid5594 Nov 14, 2023
50a3d12
docs(pallet_ddc_staking): comments improved
yahortsaryk Nov 14, 2023
d8811d6
remove irrelevant comments & improve formatting (clippy)
Raid5594 Nov 14, 2023
4631f58
Merge pull request #135 from Cerebellum-Network/fix/staking-node-type
yahortsaryk Nov 14, 2023
fbe764a
cluster payment refactoring
deeprnd Nov 14, 2023
ebde371
add extra tests & checks
Raid5594 Nov 14, 2023
db53692
Merge branch 'dev' into feature/cluster-and-nodes-pallet-unit-tests
Raid5594 Nov 14, 2023
93e7625
resolve clippy & fix error in toml
Raid5594 Nov 14, 2023
aca7545
Merge pull request #136 from Cerebellum-Network/finish-payout
yahortsaryk Nov 14, 2023
fa499dc
Merge branch 'dev' into feat/payouts-pallet
yahortsaryk Nov 14, 2023
94ff242
chore: runtime version for 'cere_dev' is upgraded
yahortsaryk Nov 14, 2023
2c17559
Merge branch 'dev' into feature/ddc-custromers-unit-tests
rakanalh Nov 15, 2023
b176f40
authorise account change
aie0 Nov 15, 2023
e63c45e
Merge pull request #140 from Cerebellum-Network/feat/payouts-pallet-a…
yahortsaryk Nov 15, 2023
e93e28f
remove old node when setting new one
Raid5594 Nov 15, 2023
649becc
dprint fix
Raid5594 Nov 15, 2023
4906924
Merge pull request #138 from Cerebellum-Network/feature/extend-stakin…
rakanalh Nov 15, 2023
38092dd
Merge branch 'dev' into feat/payouts-pallet
rakanalh Nov 15, 2023
a476914
code cleanup
aie0 Nov 15, 2023
c78667c
formattign
aie0 Nov 15, 2023
b767e8a
update dev-deps; remove dead-code; add test with 2 buckets
Raid5594 Nov 15, 2023
a37b07d
apply dprint
Raid5594 Nov 15, 2023
ed7ea0a
Merge branch 'dev' into feature/ddc-custromers-unit-tests
rakanalh Nov 15, 2023
6286fc6
Merge branch 'dev' into feature/cluster-and-nodes-pallet-unit-tests
yahortsaryk Nov 15, 2023
ea77e93
Merge pull request #130 from Cerebellum-Network/feature/cluster-and-n…
yahortsaryk Nov 15, 2023
0dbae9c
Merge branch 'dev' into feature/ddc-custromers-unit-tests
yahortsaryk Nov 15, 2023
e275377
Merge pull request #141 from Cerebellum-Network/feat/payouts-pallet-a…
yahortsaryk Nov 15, 2023
8e8a225
Merge pull request #137 from Cerebellum-Network/feature/ddc-custromer…
yahortsaryk Nov 15, 2023
fd6269b
Merge branch 'dev' into feat/payouts-pallet
rakanalh Nov 16, 2023
dbc9b34
Remove redundant 0.10.0-dev versions
rakanalh Nov 16, 2023
839c07a
Remove redundant version attributes
rakanalh Nov 16, 2023
5fdb3fa
Use substrate.git in cargo files for consistency
rakanalh Nov 16, 2023
fa2d45b
Update Cargo.lock
rakanalh Nov 16, 2023
a109f38
add missing mocks
aie0 Nov 16, 2023
61ffb82
Merge pull request #144 from Cerebellum-Network/feat/payouts-pallet-m…
yahortsaryk Nov 16, 2023
3ba8265
some CI fixes
aie0 Nov 16, 2023
96a2212
CI fixes
aie0 Nov 16, 2023
0bfbbd1
Merge pull request #145 from Cerebellum-Network/feat/payouts-pallet-c…
yahortsaryk Nov 16, 2023
bd9af29
Merge pull request #113 from Cerebellum-Network/feat/payouts-pallet
rakanalh Nov 16, 2023
91c16e2
fix(pallet_ddc_customers): 'StorageHasher' type for Ledger map is cha…
yahortsaryk Nov 17, 2023
08d4920
Merge pull request #148 from Cerebellum-Network/fix/ddc-customers-ledger
yahortsaryk Nov 17, 2023
29e0d81
Merge branch 'dev' into chore/redundant-versions
rakanalh Nov 20, 2023
09f4e04
Merge pull request #142 from Cerebellum-Network/chore/redundant-versions
rakanalh Nov 20, 2023
728ad51
Merge remote-tracking branch 'origin/dev' into feature/update-to-polk…
rakanalh Nov 20, 2023
e86fd10
Update rust toolchain
rakanalh Nov 20, 2023
da7ee27
WIP
rakanalh Nov 20, 2023
a2afbf5
Fix compilation
rakanalh Nov 20, 2023
641ff4b
Fix clippy issues
rakanalh Nov 20, 2023
32e274c
dprint fmt
rakanalh Nov 20, 2023
e1543d1
Merge pull request #57 from Cerebellum-Network/feature/update-to-polk…
rakanalh Nov 20, 2023
911c21e
Feature: add benchmarking for pallet-customers (#149)
Raid5594 Nov 22, 2023
85ac950
Fix: Removing a node from the cluster if its stake is unbonded below …
yahortsaryk Nov 23, 2023
9fae525
benchmarking & weights for ddc-nodes (#143)
Raid5594 Nov 23, 2023
8fff559
payout debt management (#152)
aie0 Nov 24, 2023
9f390f4
Fix node startup panic after clap upgrade to v4 (#161)
khssnv Nov 27, 2023
d2c89d3
Disable e2e tests (#158)
MRamanenkau Nov 27, 2023
80a4367
provide benchmarking and weights for ddc-staking after changes (#163)
Raid5594 Nov 27, 2023
f276b7f
Genesis config for `pallet-ddc-clusters` (#153)
khssnv Nov 27, 2023
f7fcdcc
Make optional cluster auth extension contract (#162)
khssnv Nov 27, 2023
df7b36e
Rustfmt rules (#151)
rakanalh Nov 27, 2023
0bd280b
Feature/clusters benchmarking (#159)
Raid5594 Nov 28, 2023
5a5478b
Release/4.8.2 (#173)
rakanalh Nov 29, 2023
123d00e
improve coverage for ddc-staking (#177)
Raid5594 Nov 30, 2023
77bf8a3
Dac squash 0.9.30 (#179)
aie0 Nov 30, 2023
b4c80f7
increase coverage of ddc-nodes to 90% (#175)
Raid5594 Dec 1, 2023
43ed4f4
DdcPayouts: Benchmarking (#169)
yahortsaryk Dec 4, 2023
eb8488d
Feature/extend clusters tests (#184)
Raid5594 Dec 4, 2023
9345f34
Invoke dprint in pre-commit hook (#191)
khssnv Dec 10, 2023
896f5d3
Add genesis config for DDC pallets (#176)
khssnv Dec 11, 2023
4861b4b
Create dev-latest image and tag it properly (#194)
rakanalh Dec 13, 2023
b09be69
CDN node type is removed (#197)
yahortsaryk Dec 15, 2023
1fbe546
Genesis config value example for `pallet-ddc-nodes::StorageNodes::hos…
khssnv Dec 18, 2023
d9312c5
Bucket params with 'is_public' flag added (#199)
yahortsaryk Dec 18, 2023
d970a49
Operation mode for DDC Storage node type is added (#200)
yahortsaryk Dec 18, 2023
ca57262
Add storage node mode to `example.json` chain spec (#204)
khssnv Dec 19, 2023
5febf20
DDC pallets for the `cere` runtime (#189)
Raid5594 Dec 19, 2023
ab4c93e
Genesis config for `pallet-ddc-payouts` (#207)
khssnv Dec 20, 2023
4379119
Increment devnet runtime version
rakanalh Dec 21, 2023
63f0d88
DDC Storage node params updated with `domain` and `ssl` fields; Tests…
yahortsaryk Dec 21, 2023
a920b01
Remove ddc & offchain pallets (#198)
rakanalh Dec 29, 2023
4e16d37
Configure chain properties for dev runtime (#217)
MRamanenkau Jan 3, 2024
10b5b21
Payout 0.9.30 (#219)
aie0 Jan 5, 2024
8a11582
Merge remote-tracking branch 'origin/dev' into release/4.8.3
rakanalh Jan 5, 2024
8f2abe6
Update version 4.8.3
rakanalh Jan 5, 2024
b0fef0d
Fix ddc-customers
rakanalh Jan 5, 2024
b4b588e
Update Cargo.lock
rakanalh Jan 5, 2024
f30e0da
Merge remote-tracking branch 'origin/master' into release/4.8.3
rakanalh Jan 5, 2024
bf12284
Update changelog
rakanalh Jan 5, 2024
237165e
Revert pre_commit change
rakanalh Jan 5, 2024
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
7 changes: 7 additions & 0 deletions .gitguardian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Required, otherwise ggshield considers the file to use the deprecated v1 format
version: 2

secret:
# Exclude files and paths by globbing
ignored-paths:
- node/service/chain-specs/example.json
52 changes: 0 additions & 52 deletions .github/workflows/check.yaml

This file was deleted.

143 changes: 97 additions & 46 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,58 +1,109 @@
name: CI
name: PR

# Controls when the action will run.
on:
pull_request:
branches:
- dev
- master
- 'feature/**'
- 'release/**'
- 'hotfix/**'
types:
- opened
- synchronize
- edited

env:
PROFILE: release
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ '**' ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
id-token: write
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
concurrency: dev
format:
name: Check Lints
runs-on: ubuntu-22.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: false
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

- name: Configure AWS credentials ORG
uses: aws-actions/configure-aws-credentials@v1
toolchain: nightly-2022-10-09
override: true
components: rustfmt
- name: Check TOML
uses: dprint/[email protected]
- name: Check Format
run: |
cargo fmt -- --check

check:
name: Cargo check
needs: format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install linux dependencies
run: sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
aws-access-key-id: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ORG_AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
toolchain: nightly-2022-10-09
override: true
target: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Check Build
run: |
SKIP_WASM_BUILD=1 cargo check --release
- name: Check Build for Benchmarking
run: >
pushd node &&
cargo check --features=runtime-benchmarks --release

- name: Login to Amazon ECR ORG
id: login-ecr-org
uses: aws-actions/amazon-ecr-login@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
clippy:
name: Run Clippy
needs: format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install linux dependencies
run: sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-10-09
override: true
target: wasm32-unknown-unknown
components: clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Check with Clippy
run: |
cargo clippy --no-deps --all-targets --features runtime-benchmarks --workspace -- --deny warnings

- name: Build and push docker image to ECR Docker
uses: docker/build-push-action@v4
tests:
name: Run tests
needs: format
# The type of runner that the job will run on
runs-on: ["self-hosted", "cere-network-memory-large"]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install linux dependencies
run: sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-10-09
override: true
target: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: '0.22.0'
args: '--verbose --locked --no-fail-fast --workspace --features runtime-benchmarks --out "Xml"'
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
context: .
file: Dockerfile.tests
push: false
build-args: |
"ECR_REGISTRY=${{ steps.login-ecr-org.outputs.registry }}"
name: tarpaulin coverage
path: ./tarpaulin-report.xml
8 changes: 5 additions & 3 deletions .github/workflows/dev.yaml → .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Release to dev
name: E2E
on:
push:
branches:
- 'dev'
- 'deployment-0.9.30'
workflow_dispatch:

env:
Expand Down Expand Up @@ -69,7 +68,7 @@ jobs:

tags: |
${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ env.GITHUB_SHA }}
${{ steps.login-ecr.outputs.registry }}/pos-network-node:deployment-0.9.30-latest
${{ steps.login-ecr.outputs.registry }}/pos-network-node:dev-latest

- name: Copy wasm artifacts from the image
run: |
Expand All @@ -92,6 +91,9 @@ jobs:

trigger-e2e-tests:
runs-on: ubuntu-latest
# e2e tests are in migration process. Disable the tests as recommended in this slack message:
# https://cere-network.slack.com/archives/C04LRGSLWG0/p1699892758049319
if: false
needs: build
steps:
- name: Get short SHA
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/ecr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: ECR

on:
pull_request:
branches:
- dev
- master
- 'release/**'
- 'hotfix/**'
types:
- opened
- synchronize
- edited

env:
PROFILE: release

jobs:
build:
runs-on: ubuntu-latest
concurrency: dev
steps:
- uses: actions/checkout@v3

- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

- name: Configure AWS credentials ORG
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ORG_AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Login to Amazon ECR ORG
id: login-ecr-org
uses: aws-actions/amazon-ecr-login@v1

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

- name: Build and push docker image to ECR Docker
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.tests
push: false
build-args: |
"ECR_REGISTRY=${{ steps.login-ecr-org.outputs.registry }}"
1 change: 0 additions & 1 deletion .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ jobs:
"SCCACHE_BUCKET=cere-blockchain-sccache"

tags: |
${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ github.sha }}
${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ env.GITHUB_SHA }}
${{ steps.login-ecr.outputs.registry }}/pos-network-node:dev-latest

Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@
.direnv

.idea

# ddc-metrics-offchain-worker mock files
pallets/ddc-metrics-offchain-worker/src/tests/test_data/ddc.contract
30 changes: 30 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
edition = "2021"

# Basic
hard_tabs = true
max_width = 100
use_small_heuristics = "Max"

# Imports
imports_granularity = "Crate"
reorder_imports = true
group_imports = "StdExternalCrate"

# Consistency
newline_style = "Unix"

# Format comments
comment_width = 100
wrap_comments = true

# Misc
chain_width = 80
spaces_around_ranges = false
binop_separator = "Back"
reorder_impl_items = false
match_arm_leading_pipes = "Preserve"
match_arm_blocks = false
match_block_trailing_comma = true
trailing_comma = "Vertical"
trailing_semicolon = false
use_field_init_shorthand = true
26 changes: 14 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Legend

[C] Cere Runtime
[D] Cere Dev Runtime
- [C] Changes is `Cere` Runtime
- [D] Changes is `Cere Dev` Runtime

## [vNext]

### Added
- ...

## [4.8.3]

### Changed

- ...
- [C,D] Updated Substrate to polkadot-v0.9.31

## [4.8.2]

### Added

- [C,D] New `pallet-ddc-nodes` is added which allows registering a DDC node within the network with specific settings.
- [C,D] New `pallet-ddc-clusters` is added which allows launching a DDC cluster in the network and managing it.
- [C,D] New `pallet-ddc-staking` is added which allows making bonds for DDC nodes before joining a DDC cluster.
- [C,D] New `pallet-ddc-customers` is added which allows depositing tokens and creating buckets for DDC customers.
- [C,D] New `pallet-ddc-payouts` is added which allows processing payouts to DDC nodes providers based on DAC validation results.
- New `ddc-primitives` crate with DDC common types definition.
- New `ddc-traits` crate with DDC common traits definition.
- [D] New `pallet-ddc-validator` which implements DDC CDN nodes validation and rewarding. You can enable DDC validation providing `--enable-ddc-validation` argument and `--dac-url` argument to specify DAC endpoint. It will only work on the nodes with validation and offchain workers enabled as well.
- [D] Several calls for `pallet-ddc-staking` to distribute rewards.
- [D] Third kind of account in DDC Staking for DDC nodes (along with stash and controller).
- [D] DDC cluster managers access control list in `pallet-ddc-staking` managed by governance.
- [Zombienet](https://github.com/paritytech/zombienet) configurations to test block building and spawn a network for DDC validation debugging.
- New `ddc-primitives` crate with DDC common types definition

### Changed

## [4.8.1]

Expand Down
Loading
Loading