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

Merge deployment-0.9.30 to master #218

Merged
merged 636 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
636 commits
Select commit Hold shift + click to select a range
7c65f2e
fix: checking cluster existence
yahortsaryk Oct 13, 2023
a8d76a3
feat: endpoint for removing a node
yahortsaryk Oct 13, 2023
42b7f7a
feat: endpoint for setting node parameter
yahortsaryk Oct 13, 2023
e1eb800
chore: separate node public key from its parameters
yahortsaryk Oct 13, 2023
35bf043
feat: storing node keys in cluster double-map
yahortsaryk Oct 13, 2023
1fbede8
feat: removing node from a cluster
yahortsaryk Oct 13, 2023
9a66fb8
feat: setting cluster non-sensetive params
yahortsaryk Oct 13, 2023
064bfba
fix: checking for cluster manager permissions while adding and removi…
yahortsaryk Oct 16, 2023
69a2e2a
Merge pull request #103 from Cerebellum-Network/feat/ddc-core-entites…
yahortsaryk Oct 17, 2023
49b0c05
Add extension contract address field to `Cluster`
khssnv Oct 16, 2023
e4f4a49
Add ddc-nodes tight coupling with contracts pallet
khssnv Oct 16, 2023
5005e10
Typo fix
khssnv Oct 9, 2023
1cd9859
Add storage item for DDC node ID to stash linking
khssnv Oct 10, 2023
4184684
Add `node` parameter to `bond` extrinsic
khssnv Oct 10, 2023
2b46607
Update `AlreadyPaired` error docstring
khssnv Oct 10, 2023
8a81103
Add DDC node removal together with its stash
khssnv Oct 10, 2023
463b6b5
Add DDC node ID setter extrinsic
khssnv Oct 10, 2023
438a346
Accept DDC node ID in genesis config
khssnv Oct 10, 2023
ceac9da
Add DDC node ID in existing benchmarks and tests
khssnv Oct 10, 2023
ff5ddf0
Add DDC node ID setter benchmark
khssnv Oct 10, 2023
36d9b11
Generate weights for `bond` and `set_node`
khssnv Oct 10, 2023
3c0d4cf
Use generated weight for the `set_node` extrinsic
khssnv Oct 10, 2023
d13b511
Set rewards for stash account instead of DDC node
khssnv Oct 11, 2023
d79787a
Request DAC data by the edge node account
khssnv Oct 12, 2023
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
90e163e
dprint fmt
rakanalh Nov 12, 2023
9f783c0
Add github action
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
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
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
73f2023
backporting PR 152 to v0.9.30 (#164)
aie0 Nov 27, 2023
ad390bd
Payout type fix 0.9.30 (#166)
aie0 Nov 27, 2023
0b6b745
Add deployment workflow to build docker image
rakanalh Nov 27, 2023
4c272c8
Change the tag of the image
rakanalh Nov 27, 2023
eef0c94
Payout end state tests (#168)
aie0 Nov 28, 2023
523a9d4
batch index events (#174)
aie0 Nov 28, 2023
c20bff2
payout and customers fixes (#178)
aie0 Nov 30, 2023
09724a7
Dac customer trasnfer fix (#181)
aie0 Nov 30, 2023
8155a21
charge_content_owner fail (#183)
aie0 Dec 1, 2023
d36ae2c
Fees batches fixes (#186)
aie0 Dec 4, 2023
974077a
Backporting the `dev` branch to substrate `0.9.30` (#192)
yahortsaryk Dec 11, 2023
2885ae9
Backporting #191, #176 from `dev` branch to substrate `0.9.30` (#193)
yahortsaryk Dec 11, 2023
e24b417
Payout provider share tests (#195)
aie0 Dec 13, 2023
276c4df
Payout dust (#196)
aie0 Dec 14, 2023
8e14ecc
Backporting #197, #201, #199 and #200 from `dev` branch to substrate …
yahortsaryk Dec 18, 2023
51b208b
Payout dust (#203)
aie0 Dec 19, 2023
bc71d5d
Backporting #204 and #189 from `dev` branch to substrate `0.9.30` (#205)
yahortsaryk Dec 19, 2023
aca442d
Testnet runtime upgrade - v4.8.2 - Substrate v0.9.30 (#209)
rakanalh Dec 21, 2023
1b626e6
Backporting #207 and #211 from `dev` branch to substrate `0.9.30` (#212)
yahortsaryk Dec 22, 2023
ff776f0
Payouts random tests (#213)
aie0 Dec 22, 2023
5939015
Testnet runtime upgrade - v4.8.2 - Substrate v0.9.30-2 (#214)
rakanalh Dec 22, 2023
bc66f95
CHANGELOG is updated (#215)
yahortsaryk Dec 29, 2023
aa09dfe
Merge branch 'deployment-0.9.30' into deployment-0.9.30-merge-to-master
rakanalh Jan 3, 2024
ed97992
Fix merge mistakes
rakanalh Jan 3, 2024
8069641
Fix clippy
rakanalh Jan 3, 2024
5afaab9
Remove dac_url and ddc_validation params
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
31 changes: 31 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# An auto defined `clippy` feature was introduced,
# but it was found to clash with user defined features,
# so was renamed to `cargo-clippy`.
#
# If you want standard clippy run:
# RUSTFLAGS= cargo clippy
[target.'cfg(feature = "cargo-clippy")']
rustflags = [
"-Aclippy::all",
"-Dclippy::correctness",
"-Aclippy::if-same-then-else",
"-Aclippy::clone-double-ref",
"-Dclippy::complexity",
"-Aclippy::zero-prefixed-literal", # 00_1000_000
"-Aclippy::type_complexity", # raison d'etre
"-Aclippy::nonminimal-bool", # maybe
"-Aclippy::borrowed-box", # Reasonable to fix this one
"-Aclippy::too-many-arguments", # (Turning this on would lead to)
"-Aclippy::unnecessary_cast", # Types may change
"-Aclippy::identity-op", # One case where we do 0 +
"-Aclippy::useless_conversion", # Types may change
"-Aclippy::unit_arg", # styalistic.
"-Aclippy::option-map-unit-fn", # styalistic
"-Aclippy::bind_instead_of_map", # styalistic
"-Aclippy::erasing_op", # E.g. 0 * DOLLARS
"-Aclippy::eq_op", # In tests we test equality.
"-Aclippy::while_immutable_condition", # false positives
"-Aclippy::needless_option_as_deref", # false positives
"-Aclippy::derivable_impls", # false positives
"-Aclippy::stable_sort_primitive", # prefer stable sort
]
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
**target*
doc
Dockerfile*

!target/release/cere/
!target/release/wbuild/cere-runtime/
!target/release/wbuild/cere-dev-runtime/
12 changes: 12 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
addReviewers: true
addAssignees: author
reviewers:
- rakanalh
- MRamanenkau
- Raid5594
- aie0
- yahortsaryk
- khssnv
skipKeywords:
- wip
numberOfReviewers: 2
55 changes: 0 additions & 55 deletions .github/workflows/build-and-push-docker-image.yml

This file was deleted.

34 changes: 19 additions & 15 deletions .github/workflows/check.yml → .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ name: Check Set-Up & Build
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches: [ '**' ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -15,28 +13,34 @@ on:
jobs:
check:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set-Up
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev
- name: Install linux dependencies
run: sudo apt install -y clang libssl-dev llvm libudev-dev protobuf-compiler

- name: Install Rustup
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source ~/.cargo/env
rustup default stable
rustup update nightly
rustup update stable
rustup component add rustfmt --toolchain nightly
rustup update stable --no-self-update
rustup target add wasm32-unknown-unknown

- name: Check TOML
uses: dprint/[email protected]

- name: Check Format
run: |
cargo +nightly fmt -- --check
cargo fmt -- --check

- 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: Check Build
run: |
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
pull_request:
branches:
- dev
- master
- 'feature/**'
- '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 }}"
119 changes: 119 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Release to dev
on:
push:
branches:
- 'dev'
- 'deployment-0.9.30'
workflow_dispatch:

env:
PROFILE: release

jobs:
build:
runs-on: ubuntu-latest
concurrency: dev
permissions:
contents: read
id-token: write
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
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ vars.DEV_NETWORK_AWS_ACCOUNT_ID }}:role/github
role-session-name: ${{ github.event.repository.name }}
aws-region: us-west-2

- name: Confiure environment variables
run: |
echo "GITHUB_SHA=${GITHUB_SHA:0:7}" >> ${GITHUB_ENV}

echo "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" >> ${GITHUB_ENV}
echo "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" >> ${GITHUB_ENV}
echo "AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}" >> ${GITHUB_ENV}

echo "CERE_RUNTIME=cere_runtime.compact.compressed.${GITHUB_SHA:0:7}.wasm" >> ${GITHUB_ENV}
echo "CERE_DEV_RUNTIME=cere_dev_runtime.compact.compressed.${GITHUB_SHA:0:7}.wasm" >> ${GITHUB_ENV}

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

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

- name: Build and push docker image to ECR
uses: docker/build-push-action@v4
with:
context: .
push: true
build-args: |
"AWS_ACCESS_KEY_ID=${{ env.AWS_ACCESS_KEY_ID }}"
"AWS_SECRET_ACCESS_KEY=${{ env.AWS_SECRET_ACCESS_KEY }}"
"AWS_SESSION_TOKEN=${{ env.AWS_SESSION_TOKEN }}"
"SCCACHE_REGION=us-west-2"
"SCCACHE_BUCKET=cere-blockchain-sccache"

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

- name: Copy wasm artifacts from the image
run: |
CONTAINER_ID=$(docker create ${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ env.GITHUB_SHA }})

docker cp "${CONTAINER_ID}:/home/cere/cere-runtime-artifacts/cere_runtime.compact.compressed.wasm" "./${{ env.CERE_RUNTIME }}"
docker cp "${CONTAINER_ID}:/home/cere/cere-dev-runtime-artifacts/cere_dev_runtime.compact.compressed.wasm" "./${{ env.CERE_DEV_RUNTIME }}"

- name: Upload cere-runtime wasm artifact
uses: actions/upload-artifact@v3
with:
name: "cere_runtime.compact.compressed.${{ env.GITHUB_SHA }}.wasm"
path: "./${{ env.CERE_RUNTIME }}"

- name: Upload cere-dev-runtime wasm artifact
uses: actions/upload-artifact@v3
with:
name: "cere_dev_runtime.compact.compressed.${{ env.GITHUB_SHA }}.wasm"
path: "./${{ env.CERE_DEV_RUNTIME }}"

trigger-e2e-tests:
runs-on: ubuntu-latest
needs: build
steps:
- name: Get short SHA
run: |
echo "GITHUB_SHA=${GITHUB_SHA:0:7}" >> ${GITHUB_ENV}

- name: 'Trigger e2e DDC tests'
uses: convictional/[email protected]
with:
owner: Cerebellum-Network
repo: ddc-api-e2e-simulations
github_token: ${{ secrets.GH_E2E_TOKEN }}
comment_github_token: ${{ secrets.GH_E2E_TOKEN }}
github_user: devops-cere
workflow_file_name: run-basic-ddc-tests.yml
client_payload: |-
{
"POS_NODE_VERSION": "${{ env.GITHUB_SHA }}"
}
ref: master
wait_interval: 30
propagate_failure: true
trigger_workflow: true
wait_workflow: true
comment_downstream_url: ${{ github.event.pull_request.comments_url }}
37 changes: 0 additions & 37 deletions .github/workflows/run-tests.yml

This file was deleted.

Loading
Loading