From 4a1f257e902d982fe967476ee8e36a51bcb16f1e Mon Sep 17 00:00:00 2001 From: koloz193 Date: Wed, 30 Oct 2024 15:50:24 -0400 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 839ad80..42cae03 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +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)"`