- Fossil cairo 0: https://github.com/OilerNetwork/fossil_cairo0/tree/master
- Some utils libraries that can be reused after refacto to latest cairo updates: https://github.com/HerodotusDev/cairo-lib
The repo structure and files organisation will be reviewed once all the components will be implemented
-
Start Anvil in a new terminal with the command
anvil
. -
Install dependencies: requires
katana 0.7.0-alpha.4
cd ethereum forge install
-
Build the project and set up environment variables:
cd starknet scarb build source katana/katana.env
-
I a New Terminal Start the Katana StarkNet node:
katana --messaging anvil.messaging.json --disable-fee
-
In a New Terminal Declare the Cairo contracts:
cd starknet katana/declare.sh
-
Deploy the Cairo contracts:
katana/deploy.sh
-
Initialize the deployed contracts:
source katana/initialize_contracts.sh
-
Set up local Ethereum testing:
cd ../ethereum cp anvil.env .env source .env forge script script/LocalTesting.s.sol:LocalSetup --broadcast --rpc-url ${ETH_RPC_URL}
-
Send a message:
forge script script/SendMessage.s.sol:Value --broadcast --rpc-url ${ETH_RPC_URL}