-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from anshalshukla/starkgate
Eth/ERC20 Bridge related contracts
- Loading branch information
Showing
63 changed files
with
1,387 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,6 @@ docs/ | |
# Dotenv file | ||
.env | ||
|
||
script/anvil.json | ||
script/anvil.json | ||
|
||
.idea |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,57 @@ | ||
# Zaun | ||
A development environment for Starknet Solidity contracts. | ||
|
||
### Setup: | ||
This repository contains interfaces and functions to interact with starknet solidity contracts. | ||
|
||
## Setup | ||
|
||
```bash | ||
curl -L https://foundry.paradigm.xyz | bash | ||
foundryup | ||
``` | ||
|
||
### Testing: | ||
## Testing | ||
|
||
Unit | ||
|
||
```bash | ||
forge test -vv | ||
``` | ||
|
||
### Devnet | ||
|
||
Start Avnvil as background process w/ Core Contracts and STARK token: | ||
Start Anvil as background process w/ Core Contracts and STARK token: | ||
|
||
```bash | ||
./script/sn-base-dev.sh | ||
``` | ||
|
||
Kill Anvil deployment: | ||
|
||
```bash | ||
./script/sn-base-kill.sh | ||
``` | ||
|
||
### Artifacts | ||
## Artifacts | ||
|
||
Zaun sandbox crate can be used as dev dependency in external projects for integration testing. | ||
If any changes made to the Solidity contracts, one has to re-generate Ethers bindings (this won't be done automatically). | ||
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). | ||
|
||
```bash | ||
make artifacts | ||
``` | ||
|
||
### StarkNet Consensus Protocol Contracts | ||
## 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: | ||
|
||
- [I - Introduction](https://community.starknet.io/t/starknet-decentralized-protocol-i-introduction/2671/1) | ||
- [II - Candidate for Leader Elections](https://community.starknet.io/t/starknet-decentralized-protocol-ii-candidate-for-leader-elections/4751) | ||
- [III - Consensus](https://community.starknet.io/t/starknet-decentralized-protocol-iii-consensus/5386) | ||
- [IV - Proofs in the Protocol](https://community.starknet.io/t/starknet-decentralized-protocol-iv-proofs-in-the-protocol/6030) | ||
- [V - Checkpoints for Fast Finality](https://community.starknet.io/t/starknet-decentralized-protocol-v-checkpoints-for-fast-finality/6032) | ||
- [VI - The Buffer Problem](https://community.starknet.io/t/starknet-decentralized-protocol-vi-the-buffer-problem/7098) | ||
- [VII - Chained Proof Protocols & Braiding](https://community.starknet.io/t/starknet-decentralized-protocol-vii-chained-proof-protocols-braiding/18831) | ||
- [VII - Chained Proof Protocols & Braiding](https://community.starknet.io/t/starknet-decentralized-protocol-vii-chained-proof-protocols-braiding/18831) |
4 changes: 2 additions & 2 deletions
4
crates/sandbox/Cargo.toml → crates/ethereum-instance/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
[package] | ||
name = "sandbox" | ||
name = "ethereum-instance" | ||
edition.workspace = true | ||
version.workspace = true | ||
authors.workspace = true | ||
|
||
[dependencies] | ||
starknet-core-contract-client = { path = "../starknet-core-contract-client" } | ||
ethers = { workspace = true } | ||
dirs = { workspace = true } | ||
serde_json = { workspace = true } | ||
thiserror = { workspace = true } | ||
hex = { workspace = true } | ||
utils = { path = "../utils" } | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1.29.1", features = ["rt", "macros", "parking_lot"] } |
Oops, something went wrong.