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

Update local setup #1131

Merged
merged 17 commits into from
Feb 8, 2024
Merged
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
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"
flags:
solidity:
Expand All @@ -20,5 +22,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