-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d309bc0
commit cab7199
Showing
6 changed files
with
64 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,84 @@ | ||
# cw-hyperlane | ||
# CW Hyperlane | ||
|
||
[![codecov](https://codecov.io/gh/many-things/cw-hyperlane/branch/main/graph/badge.svg?token=SGYE7FBTAO)](https://codecov.io/gh/many-things/cw-hyperlane) | ||
[![crates.io](https://img.shields.io/crates/v/hpl-interface)](https://crates.io/crates/hpl-interface) | ||
|
||
> This project is under active development...! | ||
## Architecture Overview | ||
|
||
![Architecture Overview](./asset/hyperlane-all.png) | ||
|
||
### Components | ||
|
||
``` | ||
├── contracts | ||
│ │ | ||
│ ├── core | ||
│ │ ├── mailbox | ||
│ │ └── va | ||
│ │ | ||
│ ├── hooks | ||
│ │ ├── aggregate | ||
│ │ ├── fee | ||
│ │ ├── merkle | ||
│ │ ├── pausable | ||
│ │ ├── routing | ||
│ │ ├── routing-custom | ||
│ │ └── routing-fallback | ||
│ │ | ||
│ ├── igps | ||
│ │ ├── core | ||
│ │ └── oracle | ||
│ │ | ||
│ ├── isms | ||
│ │ ├── aggregate | ||
│ │ ├── multisig | ||
│ │ ├── pausable | ||
│ │ └── routing | ||
│ │ | ||
│ ├── mocks | ||
│ │ ├── mock-hook | ||
│ │ ├── mock-ism | ||
│ │ └── mock-msg-receiver | ||
│ │ | ||
│ └── warp | ||
│ ├── cw20 | ||
│ └── native | ||
│ | ||
├── integration-test | ||
│ | ||
├── packages | ||
│ │ | ||
│ ├── connection | ||
│ ├── interface | ||
│ ├── ownable | ||
│ ├── pausable | ||
│ ├── router | ||
│ └── schema | ||
│ | ||
├── scripts | ||
│ | ||
└── ts | ||
└── sdk | ||
``` | ||
|
||
## Prerequisites | ||
|
||
- rust (wasm32-wasm32-unknown target) | ||
- go 1.20 or higher | ||
- grcov | ||
- llvm-cov | ||
|
||
## How to build | ||
|
||
```bash | ||
cargo build | ||
make install-dev | ||
|
||
cargo wasm | ||
make build | ||
``` | ||
|
||
## How to test | ||
|
||
```bash | ||
# testing | ||
cargo test | ||
|
||
# coverage | ||
export RUSTFLAGS="-Cinstrument-coverage" | ||
export LLVM_PROFILE_FILE="eddy-%p-%m.profraw" | ||
|
||
cargo build | ||
cargo test --workspace --exclude hpl-tests | ||
|
||
cargo test | ||
|
||
grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o ./target/debug/coverage/ | ||
cargo llvm-cov --workspace --exclude hpl-tests | ||
``` | ||
|
||
## Deploy Sequence | ||
|
||
1. Deploy [Mailbox](./contracts/core/mailbox) | ||
|
||
2. Deploy [Validator Announce](./contracts/core/va) | ||
|
||
3. Deploy hooks to use with Mailbox (default hook, required hook) | ||
|
||
- [interchain gas paymaster (IGP)](./contracts/igps/core) | ||
|
||
- [IGP oracle](./contracts/igps/oracle) | ||
|
||
- [merkle](./contracts/hooks/merkle) | ||
|
||
- [pausable](./contracts/hooks/pausable) | ||
|
||
- [domain routing](./contracts/hooks/routing) | ||
|
||
- [domain routing custom](./contracts/hooks/routing-custom) | ||
|
||
- [domain routing fallback](./contracts/hooks/routing-fallback) | ||
|
||
- For testing: [mock hook](./contracts/mocks/mock-hook) | ||
|
||
4. Deploy isms to use with Mailbox (defualt ism) | ||
|
||
- [multisig ism](./contracts/isms/multisig) | ||
|
||
- [routing ism](./contracts/isms/routing) | ||
|
||
- [aggregate ism](./contracts/isms/aggregate) | ||
|
||
- [pausable](./contracts/isms/pausable) | ||
|
||
- For testing: [mock ism](./contracts/mocks/mock-ism) | ||
|
||
5. Set deployed hooks and isms to Mailbox | ||
|
||
6. Deployment for core protocol is done! You can deploy some contracts on the top. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.