Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 authored Oct 30, 2024
1 parent 169f75e commit 4a1f257
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
docker compose up -d
```

For examples on how to use it see this [guide](https://github.com/mm-zk/slingshot?tab=readme-ov-file#examples-how-to-trigger)
For examples on how to use it see this [guide](https://github.com/mm-zk/slingshot?tab=readme-ov-file#examples-how-to-trigger)

## Greeter setting example:
Greeter Contract: `0xeA6878F05DC5DcDd176962FdFE433111E87F0C72`
InteropHub: `0x7122bb051DE72eAD9CE1F6374BEaCBc38E81fdb1`

Verify No Greeting set on Chain B: `cast call -r http://localhost:8013 0xeA6878F05DC5DcDd176962FdFE433111E87F0C72 "greeting()(string)"`
Set Greeting from Chain A: `cast send -r http://localhost:8012 0x7122bb051DE72eAD9CE1F6374BEaCBc38E81fdb1 "requestInteropMinimal(uint256, address, bytes, uint256, uint256, uint256)" 501 0xeA6878F05DC5DcDd176962FdFE433111E87F0C72 0xa41368620000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000568656c6c6f000000000000000000000000000000000000000000000000000000 0 10000000 1000000000 --private-key 0x7becc4a46e0c3b512d380ca73a4c868f790d1055a7698f38fb3ca2b2ac97efbb`
Verify Greeting was set: `cast call -r http://localhost:8013 0xeA6878F05DC5DcDd176962FdFE433111E87F0C72 "greeting()(string)"`

0 comments on commit 4a1f257

Please sign in to comment.