Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
[XCMv3] master + pallet-asset-registry v0931 (#84)
Browse files Browse the repository at this point in the history
* Executing a XCM call from an ink! contract. (#60)

* First try

* Contracts extension implemented and sample contract poc added

* fmt

* Fixing license

* Change to Vec

* Removing unnecesary to_vec()

* Asset Registry (#63)

* bootstrap pallet_asset_registry

* rm change_foreign_asset fn

* fix AsAssetMultiLocation implementation

* avoid creating/destroying assets for registry

* use loose coupling with Assets pallet

* split unit tests

* bootstrap xcm-simulator unit tests

* rustfmt

* rm change_foreign_asset extrinsic

* rename Foreign Asset -> Reserve Asset

* rm xcm-simulator from unit tests

* rename ForeignFungiblesTransactor->ReservedFungiblesTransactor

* add comments to asset-registry pallet errors

* bootstrap integration-tests

* asset-registry pallet README

* zombienet with 2 collators per para

* bootstrap benchmarks

* upgrade zombienet config camel_case

* update weights with GCP c2d-highcpu-8

* integration test: rm XcmV1MultiLocation attribute from ReserveAssetRegistered event

* rm unused StatemineAssetIdInfoB

* add WeightInfo to asset-registry mock

* Run cargo fmt & clippy

* More clippy smartness

* lint pallets/asset-registry/README.md

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/README.md

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/README.md

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/README.md

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/src/benchmarking.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/src/tests.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/src/tests.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint primitives/xcm/Cargo.toml

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint primitives/xcm/src/lib.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint primitives/xcm/src/lib.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/src/benchmarking.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/src/lib.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/src/lib.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* lint pallets/asset-registry/src/tests.rs

Co-authored-by: Adam Wierzbicki <[email protected]>

* fix ReserveAssetRegistered field

* add comment explaining fn asset_exists

* fix asset-registry pallet README

* set LOCAL_ASSET_ID to 10

* change &trappist_asset_id on integration test

Co-authored-by: Steve Degosserie <[email protected]>
Co-authored-by: Adam Wierzbicki <[email protected]>

* Revamp README to explain the purpose of the Trappist project (#64)

* Revamp README to explain the purpose of the Trappist project; remove Docker-related stuff

* Add Contracts pallet & ink! to list of technologies

Co-authored-by: Hector Bulgarini <[email protected]>

* Update README.md

Co-authored-by: Hector Bulgarini <[email protected]>

Co-authored-by: Hector Bulgarini <[email protected]>

* Fix formatting issue in README (#65)

* fix zombienet toml (#66)

* build(deps): update dependencies to polkadot v0.9.30 (#68)

* build(deps): update dependencies to polkadot v0.9.30
* ci: install protoc
* build(deps): update substrate-dex dependency

* test: update expected polkadotXcm.attempted event value (with threshold) (#70)

* docs: correct binary name (#67)

xcm-playground.toml refers to "./bin/polkadot-parachain" rather than `polkadot-collator`, and `cumulus' build results in `polkadot-parachain` binary.

* ci: use actions-rs (#69)

Allow local workflow runs using act.

* Minor cleanups (#73)

* cargo fmt

* cargo clippy

* ci: check formatting (#74)

* [XCMv3] master + pallet-asset-registry v0931

Co-authored-by: Hector Bulgarini <[email protected]>
Co-authored-by: bernardo <[email protected]>
Co-authored-by: Steve Degosserie <[email protected]>
Co-authored-by: Adam Wierzbicki <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
  • Loading branch information
6 people authored Nov 11, 2022
1 parent 27b7522 commit d32a35a
Show file tree
Hide file tree
Showing 29 changed files with 1,579 additions and 285 deletions.
32 changes: 0 additions & 32 deletions .devcontainer/devcontainer.json

This file was deleted.

12 changes: 0 additions & 12 deletions .dockerignore

This file was deleted.

34 changes: 23 additions & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,21 @@ jobs:
- uses: actions/checkout@v3

- name: Set-Up
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev

- name: Install Rustup
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 target add wasm32-unknown-unknown --toolchain nightly
run: sudo apt update && sudo apt install -y git clang curl libssl-dev llvm libudev-dev cmake protobuf-compiler

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Install Nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
target: wasm32-unknown-unknown
components: rustfmt

- name: Check Build
run: |
Expand All @@ -41,4 +46,11 @@ jobs:
- name: Check Build for Benchmarking
run: >
pushd node &&
cargo check --features=runtime-benchmarks --release
cargo check --features=runtime-benchmarks --release
- name: Check formatting
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --all --check
23 changes: 0 additions & 23 deletions .github/workflows/docker.yml

This file was deleted.

33 changes: 1 addition & 32 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,5 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run ",
"type": "shell",
"command": "cargo",
"args": ["run", "--release", "--", "--dev"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [
{
"owner": "rust",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"endLine": 4,
"endColumn": 5,
"severity": 6,
"message": 7
}
}
]
}
]
"tasks": []
}
Loading

0 comments on commit d32a35a

Please sign in to comment.