-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split scripts into depositForBurn/receiveMessage
- Loading branch information
Showing
16 changed files
with
176 additions
and
3,083 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Required for both functions | ||
MNEMONIC="..." | ||
|
||
# Required for DepositForBurn | ||
ETH_MINT_RECIPIENT="0x..." | ||
|
||
# Required for ReceiveMessage | ||
ATTESTATION="0x..." | ||
MESSAGE_HEX="0x... |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Noble <-> Ethereum (Typescript) | ||
|
||
## DepositForBurn instructions | ||
|
||
1. Install require packages: | ||
|
||
``` | ||
npm install | ||
``` | ||
2. (If needed) Obtain tokens from the faucet: https://faucet.circle.com/ | ||
3. Set up a `.env` file based on `.env.example`, filling in the `MNEMONIC` and `ETH_MINT_RECIPIENT` fields: | ||
``` | ||
MNEMONIC="word1 word2..." | ||
ETH_MINT_RECIPIENT=0x... | ||
``` | ||
4. Run the depositForBurn script: | ||
``` | ||
npm run depositForBurn | ||
``` | ||
The Noble testnet -> ETH Sepolia CCTP relayer should pick up these messages automatically. To avoid these being automatically picked up, all references to `MsgDepositForBurn` can be changed to `MsgDepositForBurnWithCaller` and a `destinationCaller` field should be added to `msg.value` below line 70. | ||
## ReceiveMessage instructions | ||
1. Install require packages: | ||
``` | ||
npm install | ||
``` | ||
2. Initiate a `DepositForBurnWithCaller` from ETH to Noble. If a regular `DepositForBurn` call is made, the relayer will automatically receive the message on Noble. | ||
3. Fetch the attestation and message from Iris at https://iris-api-sandbox.circle.com/messages/{sourceDomain}/{txHash}. | ||
4. Set up a `.env` file based on `.env.example`, filling in the `MNEMONIC`, `ATTESTATION`, and `MESSAGE_HEX` fields: | ||
``` | ||
MNEMONIC="word1 word2..." | ||
ATTESTATION=0x... | ||
MESSAGE_HEX=0x | ||
``` | ||
5. Run the receiveMessage script: | ||
``` | ||
npm run receiveMessage | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.