diff --git a/README.md b/README.md index 9265b45..839ad80 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,8 @@ -## Foundry +# zk-interop -**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.** - -Foundry consists of: - -- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools). -- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data. -- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network. -- **Chisel**: Fast, utilitarian, and verbose solidity REPL. - -## Documentation - -https://book.getfoundry.sh/ - -## Usage - -### Build - -```shell -$ forge build -``` - -### Test - -```shell -$ forge test -``` - -### Format - -```shell -$ forge fmt +## How to Run ``` - -### Gas Snapshots - -```shell -$ forge snapshot +docker compose up -d ``` -### Anvil - -```shell -$ anvil -``` - -### Deploy - -```shell -$ forge script script/Counter.s.sol:CounterScript --rpc-url --private-key -``` - -### Cast - -```shell -$ cast -``` - -### Help - -```shell -$ forge --help -$ anvil --help -$ cast --help -``` +For examples on how to use it see this [guide](https://github.com/mm-zk/slingshot?tab=readme-ov-file#examples-how-to-trigger) \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index bc6e61b..93686fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,13 +23,12 @@ services: networks: - era-network - slingshot: + slingshot-init: build: context: ./slingshot dockerfile: Dockerfile args: - PRIV_KEY: "0x509ca2e9e6acf0ba086477910950125e698d4ea70fa6f63e000c5a22bda9361c" - INTEROP_ADDR: "0xf3112Bf9e1DE454786477683Ab73AEDB36DeB2c3" + PRIV_KEY: "0x3d3cbc973389cb26f657686445bcc75662b415b656078503592ac8c1abb8810e" CHAIN_1_RPC: "http://host.docker.internal:8012/" CHAIN_2_RPC: "http://host.docker.internal:8013/" networks: @@ -38,6 +37,21 @@ services: - era-test-node-1 - era-test-node-2 + slingshot: + build: + context: ./slingshot/cli + dockerfile: Dockerfile + args: + PRIV_KEY: "0x3d3cbc973389cb26f657686445bcc75662b415b656078503592ac8c1abb8810e" + INTEROP_ADDR: "0x7122bb051DE72eAD9CE1F6374BEaCBc38E81fdb1" + CHAIN_1_RPC: "http://host.docker.internal:8012/" + CHAIN_2_RPC: "http://host.docker.internal:8013/" + networks: + - era-network + depends_on: + slingshot-init: + condition: service_completed_successfully + networks: era-network: driver: bridge diff --git a/slingshot b/slingshot index e514d7a..dd1856d 160000 --- a/slingshot +++ b/slingshot @@ -1 +1 @@ -Subproject commit e514d7a94976a579c11784f76a242dc5612e4efc +Subproject commit dd1856d5eedc9025e2ab984bba897f442e446fad