Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 63cc46f

Browse files
update gmp example dest chain to base-sepolia (#149)
* update gmp example dest chain to base-sepolia * dictionary --------- Co-authored-by: mace <[email protected]>
1 parent 09747aa commit 63cc46f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dictionary.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -465,4 +465,5 @@ incentivization
465465
domainID
466466
caip2
467467
caip19
468-
optionalities
468+
optionalities
469+
Base-Sepolia

docs/03-sygma-sdk/04-Examples/02-GMP-Examples/01-GMP-Example-With-A-Simple-Storage-Contract.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ draft: false
99

1010
### GMP Example With A Simple Storage Contract
1111

12-
In the following example, we will use the `TESTNET` environment to pass a generic message from Ethereum Sepolia to Cronos Testnet using a simple storage contract. Specifically, the `deposit` method will be called on Sepolia, passing the details of the function to be called (the `store` function, or function signature `0xa271ced2`) on a smart contract deployed on Cronos ([0xcb9eb2b2abbd51945a82f77e789c26720b3835bf](https://explorer.cronos.org/testnet/address/0xcb9eb2b2abbd51945a82f77e789c26720b3835bf)). The method will encode the current UNIX timestamp as the payload to be passed and stored in the destination chain contract. The data can be read by calling the `retrieve` function on the destination chain contract by querying the depositor address derived from the private key.
12+
In the following example, we will use the `TESTNET` environment to pass a generic message from Ethereum Sepolia to Base-Sepolia Testnet using a simple storage contract. Specifically, the `deposit` method will be called on Sepolia, passing the details of the function to be called (the `store` function, or function signature `0xa271ced2`) on a smart contract deployed on Base-Sepolia ([0x669f52487ffa6f9abf722082f735537a98ec0e4b](https://sepolia.basescan.org/address/0x669f52487ffa6f9abf722082f735537a98ec0e4b)). The method will encode the current UNIX timestamp as the payload to be passed and stored in the destination chain contract. The data can be read by calling the `retrieve` function on the destination chain contract by querying the depositor address derived from the private key.
1313

1414
This is an example script that demonstrates the functionality of the Sygma SDK and the wider Sygma ecosystem of relayers and bridge and handler contracts. The complete example can be found in this [repo](
1515
https://github.com/sygmaprotocol/sygma-sdk/tree/main/examples/evm-to-evm-generic-mesage-passing).
@@ -79,7 +79,7 @@ cd examples/evm-to-evm-generic-mesage-passing
7979
yarn run transfer
8080
```
8181

82-
The example will use `ethers` in conjunction with the sygma-sdk to call a function on a smart contract on Cronos by calling the `Deposit` method on Sepolia and passing the details of the function to be called.
82+
The example will use `ethers` in conjunction with the sygma-sdk to call a function on a smart contract on Base-Sepolia by calling the `Deposit` method on Sepolia and passing the details of the function to be called.
8383

8484
Replace the placeholder values in the `.env` file with your own Ethereum wallet private key and provider URL.
8585

0 commit comments

Comments
 (0)