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

Feat: Polkadot v1.2. to v1.4 upgrade #437

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 7 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ Please select the branch type you are merging and fill in the relevant template.
- [ ] Change has been tested locally.
- [ ] Change adds / updates tests if applicable.
- [ ] Changelog doc updated.
- [ ] `spec_version` has been incremented.
- [ ] `network-relayer`'s [events](https://github.com/Cerebellum-Network/network-relayer/blob/dev-cere/shared/substrate/events.go) have been updated according to the blockchain events if applicable.
- [ ] All CI checks have been passed successfully

## Checklist for Hotfix
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->
- [ ] Change has been deployed to Testnet.
- [ ] Change has been tested in Testnet.
- [ ] Changelog has been updated.
- [ ] Crate version has been updated.
- [ ] Spec version has been updated.
- [ ] `spec_version` has been incremented.
- [ ] Transaction version has been updated if required.
- [ ] Pull Request to `dev` has been created.
- [ ] Pull Request to `staging` has been created.
- [ ] `network-relayer`'s [events](https://github.com/Cerebellum-Network/network-relayer/blob/dev-cere/shared/substrate/events.go) have been updated according to the blockchain events if applicable.
- [ ] All CI checks have been passed successfully

## Checklist for Release
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->
Expand All @@ -54,3 +57,4 @@ Please select the branch type you are merging and fill in the relevant template.
- [ ] Crate version has been updated.
- [ ] Spec version has been updated.
- [ ] Transaction version has been updated if required.
- [ ] All CI checks have been passed successfully
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,22 @@ jobs:
target: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install try-runtime
run: cargo install --git https://github.com/paritytech/try-runtime-cli --tag v0.7.0 --locked
- name: Check Build
run: |
cargo build --release
cargo build --release --features try-runtime
- name: Check Try-Runtime
run: |
try-runtime --runtime ./target/release/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm \
on-runtime-upgrade --disable-idempotency-checks live --uri wss://archive.mainnet.cere.network:443
- name: Run dev chain
run: |
timeout --preserve-status 30s ./target/release/cere --dev
- name: Check Build for Benchmarking
run: >
pushd node &&
cargo check --features=runtime-benchmarks --release
- name: Check Build for Try-Runtime
run: |
cargo check --features=try-runtime --release

clippy:
name: Run Clippy
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/docker-image-berlin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ECR

on:
push:
branches:
- berlin-hackaton

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: true
build-args: |
"ECR_REGISTRY=${{ steps.login-ecr-org.outputs.registry }}-berlin"
38 changes: 38 additions & 0 deletions .github/workflows/republish-dev-image-to-dockerhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Republish dev-latest docker image to DockerHub
on:
workflow_dispatch:

env:
ECR_REPOSITORY: pos-network-node
DOCKERHUB_REPOSITORY: cerebellumnetwork
PACKAGE_NAME: pos-node
jobs:
tag-and-push:
runs-on: [self-hosted, cere-network-xlarge]
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.DEV_NETWORK_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEV_NETWORK_AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Pull image from ECR and change name, push tagged version to ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
run: |
docker pull $ECR_REGISTRY/$ECR_REPOSITORY:dev-latest
docker image tag $ECR_REGISTRY/$ECR_REPOSITORY:dev-latest $DOCKERHUB_REPOSITORY/$PACKAGE_NAME:dev-latest
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish image to DockerHub
id: docker_publish
run: |
docker push $DOCKERHUB_REPOSITORY/$PACKAGE_NAME:dev-latest
- name: Image digest
run: echo ${{ steps.docker_publish.outputs.digest }}
2 changes: 1 addition & 1 deletion .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- dev
- staging
- new-staging
- master
- 'release/**'
- 'hotfix/**'
Expand Down
42 changes: 41 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

### Changed

- [C,D] Update Substrate from `v1.2` to `v1.4`.

## [6.0.0]

### Changed

- [C] `pallet-ddc-verification`: Verification Pallet and validator OCW for DAC verification.
- [C] `pallet-ddc-clusters`: New `join_cluster` extrinsic.

## [5.5.0]

### Changed

- [C,D] Update Substrate from `v1.1` to `v1.2`.

## [5.4.1]

### Changed

- [D] `pallet-ddc-verification`: Introduction of the Verification pallet to ensure the secure posting and retrieval of verification keys to and from the blockchain.
- [D] `pallet-ddc-clusters`: New `join_cluster` extrinsic.

## [5.4.0]

### Changed

- [C,D] Introduce new events to the DDC Payouts Pallet
- [C,D] `pallet-ddc-clusters-gov`: Introduction of the Cluster Governance pallet for managing clusters protocol parameters.

## [5.3.1]

### Changed

- [C,D] `WhitelistOrigin` is set to the Technical Committee Collective Body
- [C,D] The _Support Curve_ in OpenGov Tracks is made more strict

## [5.3.0]

Expand All @@ -31,6 +70,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [5.2.0]

- DAC ddc node mode

### Added

- [C,D] Missing storage migrations to Staking pallet
Expand Down Expand Up @@ -115,7 +156,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [C,D] Updated Substrate to polkadot-v0.9.38
- [C] Added pallet-preimage to support democracy functionality.
- Changes in `pallet-ddc-payouts::begin_billing_report` crate to accept start and end of the era.
- Changes in `pallet-ddc-payouts::begin_billing_report` crate to accept start and end of the era.
- More explicit events in `pallet-ddc-payouts` and `pallet-ddc-customers`

## [4.8.6]
Expand Down
Loading
Loading