Skip to content

Commit

Permalink
Update local setup (#1131)
Browse files Browse the repository at this point in the history
* cleanup local setup

* move contracts GA back to snowbridge repo

* updates init file

* updates

* GA fixes

* fix GA

* fix GA update repo

* add wasm target

* fix GA path

* trying something else

* adds fuzz

* remove polkadot-sdk working dir

* move code coverage out to polkadot-sdk

* update typos

* fix last tweaks

* remove submodule

* cleanup

---------

Co-authored-by: claravanstaden <Cats 4 life!>
  • Loading branch information
claravanstaden authored Feb 8, 2024
1 parent aab91ae commit a7f95fb
Show file tree
Hide file tree
Showing 149 changed files with 48 additions and 30,871 deletions.
297 changes: 0 additions & 297 deletions .github/workflows/parachain.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "polkadot-sdk"]
path = polkadot-sdk
url = https://github.com/Snowfork/polkadot-sdk.git
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ Snowbridge is a trustless bridge between Polkadot and Ethereum. For documentatio

## Components

The Snowbridge project lives in two repositories:

- [Snowfork/polkadot-sdk](https://github.com/Snowfork/polkadot-sdk): The Snowbridge parachain and pallets live in
a fork of the polkadot-sdk. Changes are eventually contributed back to
[paritytech/polkadot-sdk](https://github.com/paritytech/polkadot-sdk)
- [Snowfork/snowbridge](https://github.com/Snowfork/snowbridge): The rest of the Snowbridge components, like contracts,
off-chain relayer, end-to-end tests and test-net setup code.

### Parachain

Polkadot parachain and our pallets. See [parachain/README.md](https://github.com/Snowfork/snowbridge/blob/main/parachain/README.md).
Polkadot parachain and our pallets. See [https://github.com/Snowfork/polkadot-sdk](https://github.com/Snowfork/polkadot-sdk/blob/snowbridge/bridges/snowbridge/README.md).

### Contracts

Expand Down Expand Up @@ -83,7 +91,7 @@ direnv allow

### Upgrading the Rust toolchain

Sometimes we would like to upgrade rust toolchain. First update `parachain/rust-toolchain.toml` as required and then
Sometimes we would like to upgrade rust toolchain. First update `polkadot-sdk/rust-toolchain.toml` as required and then
update `flake.lock` running
```sh
nix flake lock --update-input rust-overlay
Expand Down
15 changes: 13 additions & 2 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@ extend-exclude = [
"**/*ffi*.js",
"**/*mock*.rs",
"**/*data*.rs",
"polkadot-sdk/**",
"polkadot-sdk/bridges/bin",
"polkadot-sdk/bridges/docs",
"polkadot-sdk/bridges/modules",
"polkadot-sdk/bridges/primitives",
"polkadot-sdk/bridges/scripts",
"polkadot-sdk/bridges/zombienet",
"polkadot-sdk/cumulus",
"polkadot-sdk/docker",
"polkadot-sdk/docs",
"polkadot-sdk/polkadot",
"polkadot-sdk/prdoc",
"polkadot-sdk/scripts",
"polkadot-sdk/substrate",
"smoketest/src/parachains",
"smoketest/src/contracts",
"lodestar/**",
"go-ethereum/**",
"go.work.sum",
"parachain/Cargo.toml",
]
10 changes: 6 additions & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ ignore:
- "contracts/src/utils"
- "contracts/src/ScaleCodec.sol"
- "contracts/src/SubstrateTypes.sol"
- "parachain/tools"
- "parachain/pallets/ethereum-beacon-client/src/benchmarking"
- "parachain/pallets/ethereum-beacon-client/src/weights.rs"
- "polkadot-sdk/bridges/snowbridge/pallets/ethereum-beacon-client/src/benchmarking"
- "polkadot-sdk/bridges/snowbridge/pallets/ethereum-beacon-client/src/weights.rs"
- "polkadot-sdk/bridges/snowbridge/pallets/inbound-queue/fixtures"
- "polkadot-sdk/bridges/snowbridge/pallets/ethereum-client/fixtures"
- "polkadot-sdk/bridges/snowbridge/pallets/ethereum-client/fuzz"
- "contracts/src/DeployScript.sol"
- "parachain/pallets/inbound-queue/fixtures"
- "parachain/pallets/ethereum-client/fixtures"
Expand All @@ -22,5 +24,5 @@ flags:
carryforward: true
rust:
paths:
- parachain
- polkadot-sdk/bridges/snowbridge
carryforward: true
2 changes: 1 addition & 1 deletion hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ chronic typos .
(cd relayer && chronic gofmt -l .)

# check format of rust
(cd parachain && chronic cargo +$RUST_NIGHTLY_VERSION fmt --check)
(cd polkadot-sdk/bridges/snowbridge && chronic cargo +$RUST_NIGHTLY_VERSION fmt --check)
2 changes: 0 additions & 2 deletions parachain/.cargo/config.toml

This file was deleted.

Loading

0 comments on commit a7f95fb

Please sign in to comment.