Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wormhole-foundation/example-composable-verification
https://github.com/wormhole-foundation/example-composable-verification
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wormhole-foundation/example-composable-verification
- Owner: wormhole-foundation
- License: other
- Created: 2023-02-14T18:03:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T00:46:51.000Z (10 months ago)
- Last Synced: 2024-11-08T20:20:09.185Z (2 months ago)
- Language: Solidity
- Size: 116 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Composable Verification Example
See [Hello World](https://github.com/wormhole-foundation/wormhole-scaffolding/blob/main/docs/01_hello_world.md) for a more complete example of sending and receiving messages.
Install dependencies
```bash
# Download and install foundryup
curl -L https://foundry.paradigm.xyz | bash
# Install foundry
foundryup
# Install forge-std
forge install foundry-rs/forge-std --no-git --no-commit
# Install prettier
npm ci
```To use Docker for foundry dependencies
```bash
# Pull foundry image
docker pull ghcr.io/foundry-rs/foundry:latest
# Tag for shorter commands
docker tag ghcr.io/foundry-rs/foundry:latest foundry:latest
# Example build
docker run -v $PWD:/app foundry "forge build --root /app -c contracts"
```Build the contracts and typescript bindings
```bash
forge build -c contracts
npm run typechain
```Deploy and test "Wormhole only" contracts
```bash
PRIVATE_KEY= npm run deploy-wormhole-only
PRIVATE_KEY= npm run test-wormhole-only
```Deploy and test "Wormhole and Native" contracts
```bash
PRIVATE_KEY= npm run deploy-wormhole-and-native
PRIVATE_KEY= npm run test-wormhole-and-native
```Deploy and test "Wormhole and Signer" contracts
```bash
PRIVATE_KEY= npm run deploy-wormhole-and-signer
PRIVATE_KEY= npm run test-wormhole-and-signer
```