This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from Snowfork/polkadot-native-assets-from-upp…
…er-stream Backport PNA fixes from upstream
- Loading branch information
Showing
1,671 changed files
with
87,920 additions
and
32,995 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,79 @@ | ||
# Lists some code owners. | ||
# | ||
# A codeowner just oversees some part of the codebase. If an owned file is changed then the | ||
# corresponding codeowner receives a review request. An approval of the codeowner might be | ||
# required for merging a PR (depends on repository settings). | ||
# | ||
# For details about syntax, see: | ||
# https://help.github.com/en/articles/about-code-owners | ||
# But here are some important notes: | ||
# | ||
# - Glob syntax is git-like, e.g. `/core` means the core directory in the root, unlike `core` | ||
# which can be everywhere. | ||
# - Multiple owners are supported. | ||
# - Either handle (e.g, @github_user or @github/team) or email can be used. Keep in mind, | ||
# that handles might work better because they are more recognizable on GitHub, | ||
# you can use them for mentioning unlike an email. | ||
# - The latest matching rule, if multiple, takes precedence. | ||
|
||
# CI | ||
/.github/ @paritytech/ci @paritytech/release-engineering | ||
/.gitlab-ci.yml @paritytech/ci | ||
/.gitlab/ @paritytech/ci | ||
|
||
# XCM | ||
/polkadot/xcm/ @paritytech/xcm | ||
|
||
# WASM executor, low-level client <-> WASM interface and other WASM-related code | ||
/substrate/client/allocator/ @koute | ||
/substrate/client/executor/ @koute | ||
/substrate/primitives/panic-handler/ @koute | ||
/substrate/primitives/runtime-interface/ @koute | ||
/substrate/primitives/wasm-interface/ @koute | ||
/substrate/utils/wasm-builder/ @koute | ||
|
||
# Systems-related bits and bobs on the client side | ||
/substrate/client/sysinfo/ @koute | ||
/substrate/client/tracing/ @koute | ||
|
||
# Documentation audit | ||
/substrate/primitives/runtime @paritytech/docs-audit | ||
/substrate/primitives/arithmetic @paritytech/docs-audit | ||
# /primitives/core (to be added later) | ||
# /primitives/io (to be added later) | ||
|
||
# FRAME | ||
/substrate/frame/ @paritytech/frame-coders @paritytech/docs-audit | ||
/substrate/frame/nfts/ @jsidorenko @paritytech/docs-audit | ||
/substrate/frame/state-trie-migration/ @paritytech/frame-coders @cheme | ||
/substrate/frame/uniques/ @jsidorenko @paritytech/docs-audit | ||
|
||
# GRANDPA, BABE, consensus stuff | ||
/substrate/client/consensus/babe/ @andresilva | ||
/substrate/client/consensus/grandpa/ @andresilva | ||
/substrate/client/consensus/pow/ @sorpaas | ||
/substrate/client/consensus/slots/ @andresilva | ||
/substrate/frame/babe/ @andresilva | ||
/substrate/frame/grandpa/ @andresilva | ||
/substrate/primitives/consensus/pow/ @sorpaas | ||
|
||
# BEEFY, MMR | ||
/substrate/frame/beefy/ @acatangiu | ||
/substrate/frame/beefy-mmr/ @acatangiu | ||
/substrate/frame/merkle-mountain-range/ @acatangiu | ||
/substrate/primitives/merkle-mountain-range/ @acatangiu | ||
|
||
# Contracts | ||
/substrate/frame/contracts/ @paritytech/smart-contracts @paritytech/docs-audit | ||
/substrate/frame/revive/ @paritytech/smart-contracts @paritytech/docs-audit | ||
|
||
# NPoS and election | ||
/substrate/frame/election-provider-multi-phase/ @paritytech/staking-core @paritytech/docs-audit | ||
/substrate/frame/election-provider-support/ @paritytech/staking-core @paritytech/docs-audit | ||
/substrate/frame/elections-phragmen/ @paritytech/staking-core @paritytech/docs-audit | ||
/substrate/frame/nomination-pools/ @paritytech/staking-core @paritytech/docs-audit | ||
/substrate/frame/staking/ @paritytech/staking-core @paritytech/docs-audit | ||
/substrate/primitives/npos-elections/ @paritytech/staking-core @paritytech/docs-audit | ||
|
||
# Snowbridge | ||
/bridges/snowbridge/*.rs @Snowfork/snowbridge-devs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: 'build and push image' | ||
inputs: | ||
dockerfile: | ||
description: "dockerfile to build" | ||
required: true | ||
image-name: | ||
description: "" | ||
required: true | ||
outputs: | ||
branch: | ||
description: 'Branch name for the PR' | ||
value: ${{ steps.branch.outputs.branch }} | ||
|
||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
# gcloud | ||
# https://github.com/paritytech/ci_cd/wiki/GitHub:-Push-Docker-image-to-GCP-Registry | ||
- name: "Set up Cloud SDK" | ||
uses: "google-github-actions/setup-gcloud@v2" | ||
- name: "gcloud info" | ||
shell: bash | ||
run: "gcloud info" | ||
- name: "Auth in gcloud registry" | ||
shell: bash | ||
run: "gcloud auth configure-docker europe-docker.pkg.dev --quiet" | ||
|
||
- name: build | ||
shell: bash | ||
env: | ||
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.105" | ||
run: | | ||
export BRANCH_NAME=${{ github.head_ref || github.ref_name }} | ||
export DOCKER_IMAGES_VERSION=${BRANCH_NAME/\//-} | ||
if [[ ${{ github.event_name }} == "merge_group" ]]; then export DOCKER_IMAGES_VERSION="${GITHUB_SHA::8}"; fi | ||
docker build \ | ||
--build-arg VCS_REF="${GITHUB_SHA}" \ | ||
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')" \ | ||
--build-arg IMAGE_NAME="${{ inputs.image-name }}" \ | ||
--build-arg ZOMBIENET_IMAGE="${ZOMBIENET_IMAGE}" \ | ||
-t "${{ inputs.image-name }}:$DOCKER_IMAGES_VERSION" \ | ||
-f ${{ inputs.dockerfile }} \ | ||
. | ||
docker push "${{ inputs.image-name }}:$DOCKER_IMAGES_VERSION" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'cargo check runtimes' | ||
description: 'Runs `cargo check` for every directory in provided root.' | ||
inputs: | ||
root: | ||
description: "Root directory. Expected to contain several cargo packages inside." | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check | ||
shell: bash | ||
run: | | ||
mkdir -p ~/.forklift | ||
cp .forklift/config.toml ~/.forklift/config.toml | ||
cd ${{ inputs.root }} | ||
for directory in $(echo */); do | ||
echo "_____Running cargo check for ${directory} ______"; | ||
cd ${directory}; | ||
pwd; | ||
SKIP_WASM_BUILD=1 forklift cargo check --locked; | ||
cd ..; | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# How to use | ||
|
||
```yml | ||
set-image: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- id: set_image | ||
run: cat .github/env >> $GITHUB_OUTPUT | ||
- name: Install dependencies | ||
uses: ./.github/actions/set-up-mac | ||
with: | ||
IMAGE: ${{ steps.set-image.outputs.IMAGE }} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "Set up rust on mac" | ||
description: "Install the required tools for Mac runners" | ||
inputs: | ||
IMAGE: | ||
description: "Rust docker image" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install with Hombrew | ||
shell: bash | ||
run: brew install protobuf rustup openssl pkg-config zlib xz zstd llvm jq curl gcc make cmake | ||
- name: Set version | ||
shell: bash | ||
run: | | ||
VERSION=$(echo $IMAGE | sed -E 's/.*:bullseye-([^-]+)-.*/\1/') | ||
echo $VERSION | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
NIGHTLY=$(echo $IMAGE | sed -E 's/.*([0-9]{4}-[0-9]{2}-[0-9]{2}).*/\1/') | ||
echo $NIGHTLY | ||
echo "NIGHTLY=$NIGHTLY" >> $GITHUB_ENV | ||
env: | ||
IMAGE: ${{ inputs.IMAGE }} | ||
|
||
- name: Install rustup | ||
shell: bash | ||
run: | | ||
rustup-init -y | ||
rustup install $VERSION | ||
rustup default $VERSION | ||
rustup toolchain install "nightly-${NIGHTLY}" | ||
- name: MacOS Deps | ||
shell: bash | ||
run: | | ||
rustup target add wasm32-unknown-unknown --toolchain $VERSION | ||
rustup component add rust-src rustfmt clippy --toolchain $VERSION | ||
- name: Check Rust | ||
shell: bash | ||
run: | | ||
rustup show | ||
rustup +nightly show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.