Skip to content

Commit

Permalink
minimal library (#10)
Browse files Browse the repository at this point in the history
* multi-chain deployment

* ignore 0 timeouts, fix authority set rotation

* ping with 0 timeout

* support zero timestamp

* protocol interface

* remove forge
  • Loading branch information
seunlanlege authored Oct 21, 2023
1 parent 400265c commit 33d6e5e
Show file tree
Hide file tree
Showing 43 changed files with 11 additions and 3,374 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,3 @@ jobs:
run: |
forge test -vvv
id: test

- uses: actions-rs/cargo@v1
env:
RUSTFLAGS: "-C link-args=-Wl,--allow-multiple-definition"
ACTIVATION_BLOCK: 3804028
PARA_ID: 1000
RELAY_WS_URL: "wss://rococo-rpc.polkadot.io:443"
PARA_WS_URL: "wss://rococo-asset-hub-rpc.polkadot.io:443"
with:
command: test
toolchain: stable
args: --release --locked --manifest-path ./forge/Cargo.toml -- --nocapture

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
toolchain: nightly
args: --manifest-path ./forge/Cargo.toml --all -- --check
12 changes: 4 additions & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
branch = v1.5.0
[submodule "lib/solidity-merkle-trees"]
path = lib/solidity-merkle-trees
url = https://github.com/polytope-labs/solidity-merkle-trees
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
branch = master
[submodule "lib/multichain-native-tokens"]
path = lib/multichain-native-tokens
url = https://github.com/polytope-labs/multichain-native-tokens
branch = main

[submodule "lib/forge-std"]
path = lib/forge-std
url = [email protected]:foundry-rs/forge-std
20 changes: 6 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
# ismp-solidity

[ISMP](https://github.com/polytope-labs/ismp) implementation for both Substrate & EVM hosts.
[ISMP](https://github.com/polytope-labs/ismp) protocol specification for EVM environments.

## Interface

- [`IConsensusClient`](./src/interfaces/IConsensusClient.sol)
- [`BeefyV1`](./src/beefy/BeefyV1.sol)
- [`IHandler`](./src/interfaces/IHandler.sol)
- [`HandlerV1`](./src/HandlerV1.sol)
- [`IIsmpHost`](./src/interfaces/IIsmpHost.sol)
- [`EvmHost`](./src/EvmHost.sol)
- [`IIsmp`](./src/interfaces/IIsmp.sol)
- [`IIsmpModule`](./src/interfaces/IIsmpModule.sol)
- [`CrossChainGovernor`](./src/modules/CrossChainGovernor.sol)
- [`IConsensusClient`](src/IConsensusClient.sol)
- [`IHandler`](src/IHandler.sol)
- [`IIsmpHost`](src/IIsmpHost.sol)
- [`IIsmp`](src/IIsmp.sol)
- [`IIsmpModule`](src/IIsmpModule.sol)


## `EvmHost`

The `EvmHost` contract is the core implementation of ISMP for native EVM environments. This contract will live across EVM chains allowing local contracts to interop over the ISMP network.

## License

This library is licensed under the Apache 2.0 License, Copyright (c) 2023 Polytope Labs.
48 changes: 0 additions & 48 deletions forge/Cargo.toml

This file was deleted.

23 changes: 0 additions & 23 deletions forge/rustfmt.toml

This file was deleted.

178 changes: 0 additions & 178 deletions forge/src/abi.rs

This file was deleted.

Loading

0 comments on commit 33d6e5e

Please sign in to comment.