A Cairo implementation of the Snapshot X Protocol. Refer to the documentation for more information.
The repository is split into two different parts:
- The Cairo files are in a Scarb package under
./starknet. (Tested with Scarb version 0.7.0) - The Solidity files are in a Forge package under
./ethereum. (Tested with Forge version 0.2.0)
There is also Hardhat Project in the root directory for crosschain tests.
Enter directory:
cd starknetBuild contracts:
scarb buildRun tests:
scarb testEnter directory:
cd ethereumBuild contracts:
forge buildRun tests:
forge testOn a separate terminal, spin an L1 node (hardhat in this example, but could be anvil):
yarn hardhat nodeNow run the tests:
yarn test-tsThe Hardhat tests can be run following the procedure followed in the CI. You will need local Starknet Devnet and Ethereum devnet instances running.