keep-starknet-strange / zaun

Solidity contracts for the Starknet Decentralized Protocol proposal
Apache License 2.0
12 stars 13 forks source link

Zaun

This repository contains interfaces and functions to interact with starknet solidity contracts.

One can use two options for deploying the implementation contract :

Setup

curl -L https://foundry.paradigm.xyz | bash
foundryup

Testing

Unit

forge test -vv

Devnet

Start Anvil as background process w/ Core Contracts and STARK token:

./script/sn-base-dev.sh

Kill Anvil deployment:

./script/sn-base-kill.sh

Artifacts

Zaun sandbox crate can be used as dev dependency in external projects. If any changes made to the Solidity contracts, one has to re-generate Ethers bindings (this won't be done automatically).

make artifacts

Bridge Contracts Sources

StarknetEthBridge.sol - https://etherscan.io/address/0x455603AD9ae671F6c1f0f746F24d7904cA603581#code StarknetTokenBridge.sol (Starkgate v2.0.1) - https://github.com/starknet-io/starkgate-contracts/blob/5a10fd263d29cd032b7229691d043520edae0737/src/solidity/StarknetTokenBridge.sol

StarkNet Consensus Protocol Contracts

PoC solidity implementation of the following Starknet Decentralized Protocol proposal: