wormhole-circle-integration/evm
A5 Pickle 4c92c840ce
evm: remove Context
2024-04-04 14:09:47 -05:00
..
env evm: refactor 2024-01-12 11:16:11 -06:00
forge evm: fix expected chain 2024-01-16 08:58:41 -06:00
sh evm: refactor 2024-01-12 11:16:11 -06:00
src evm: remove Context 2024-04-04 14:09:47 -05:00
ts evm: refactor 2024-01-12 11:16:11 -06:00
.gas-snapshot-current evm: refactor 2024-01-12 11:16:11 -06:00
.gitignore evm: refactor 2024-01-12 11:16:11 -06:00
.prettierrc.json evm: refactor 2024-01-12 11:16:11 -06:00
Makefile evm: fix ci to use secret 2024-01-16 08:58:41 -06:00
README.md evm: refactor 2024-01-12 11:16:11 -06:00
foundry.toml evm: refactor 2024-01-12 11:16:11 -06:00
package-lock.json evm: refactor 2024-01-12 11:16:11 -06:00
package.json evm: refactor 2024-01-12 11:16:11 -06:00
tsconfig.json evm: revert #42 (#45) 2023-12-05 10:08:14 -06:00

README.md

EVM Wormhole-Circle-Integration

Prerequisites

Install Foundry tools, which include forge, anvil and cast CLI tools.

Build

Run the following commands to install necessary dependencies and to build the smart contracts:

make dependencies
make build

Deployment

To deploy Wormhole's Circle Integration contracts, see the Wormhole Book to fetch the Wormhole Core contract address of the target network. Next, create a .env file with the following environment variables:

####### sample deployment environment file #######

# Wormhole Core Contract Address
export RELEASE_WORMHOLE_ADDRESS=0x

# Circle Bridge Contract Address (TokenMessenger)
export RELEASE_CIRCLE_BRIDGE_ADDRESS=0x

Then run the following command to deploy (and set up) the proxy contract:

# sample deployment command
. env/put_your_env_file_here.env && PRIVATE_KEY=put_your_private_key_here bash sh/deploy_contracts.sh

Test Suite

Run the Solidity-based unit tests:

make unit-test

Run the local-validator integration tests:

make integration-test

To run both the Solidity-based unit tests and the local-validator integration tests:

make test