Skip to content

Solidity contracts for the Starknet Decentralized Protocol proposal

License

Notifications You must be signed in to change notification settings

karnotxyz/zaun

 
 

Repository files navigation

Zaun

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

One can use two options for deploying the implementation contract :

  • deploy_contract_behind_unsafe_proxy : This will deploy the contract behind a minimal proxy and can be used for dev purposes.

  • deploy_contract_behind_safe_proxy : This will deploy the contract behind a safe audited proxy and setting the implementation and upgrades

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:

About

Solidity contracts for the Starknet Decentralized Protocol proposal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 71.5%
  • Solidity 26.5%
  • Shell 1.5%
  • Makefile 0.5%