Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,33 @@ More information about available CLI arguments can be found using the `--help` f
npx hardhat lz:deploy --help
```

By following these steps, you can focus more on creating innovative omnichain solutions and less on the complexities of cross-chain communication.
## 3) Wire

<br></br>
```bash
npx hardhat lz:oapp:wire --oapp-config <LZOAPP_CONFIG_FILE>
```

<p align="center">
Join our <a href="https://layerzero.network/community" style="color: #a77dff">community</a>! | Follow us on <a href="https://x.com/LayerZero_Labs" style="color: #a77dff">X (formerly Twitter)</a>
</p>
where `LZOAPP_CONFIG_FILE` is `layerzero.config.testnet.ts` or `layerzero.config.mainnet.ts`, respectively for testnet or mainnet.

## 4) Send

```bash
npx hardhat lz:oft:send --oapp-config <LZOAPP_CONFIG_FILE> --amount <HR_AMOUNT> --src-eid <SRC_EID> --to <EVM_RECIPIENT> --dst-eid <DST_EID>
```

where:

- `LZOAPP_CONFIG_FILE` is `layerzero.config.testnet.ts` or `layerzero.config.mainnet.ts`, respectively for testnet or mainnet.
- `HR_AMOUNT` is the amount to be sent, in human readable format (e.g. `1.75`)

Upon a successful send, the script will provide you with the link to the message on LayerZero Scan.

Once the message is delivered, you will be able to click on the destination transaction hash to verify that the OFT was sent.

## Contract Verification

You can verify EVM chain contracts using the LayerZero helper package:

```bash
pnpm dlx @layerzerolabs/verify-contract -n <NETWORK_NAME> -u <API_URL> -k <API_KEY> --contracts <CONTRACT_NAME>
```
1 change: 1 addition & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import '@layerzerolabs/toolbox-hardhat'
import { HardhatUserConfig, HttpNetworkAccountsUserConfig } from 'hardhat/types'

import { EndpointId } from '@layerzerolabs/lz-definitions'
import './tasks/sendOFT'

// Set your preferred authentication method
//
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
},
"devDependencies": {
"@babel/core": "^7.28.4",
"@layerzerolabs/devtools-evm-hardhat": "^4.0.0",
"@layerzerolabs/eslint-config-next": "~2.3.44",
"@layerzerolabs/io-devtools": "^0.3.1",
"@layerzerolabs/lz-definitions": "^3.0.134",
"@layerzerolabs/lz-evm-messagelib-v2": "^3.0.134",
"@layerzerolabs/lz-evm-protocol-v2": "^3.0.134",
Expand Down Expand Up @@ -67,6 +69,9 @@
"overrides": {
"ethers": "^5.7.2",
"hardhat-deploy": "^0.12.1"
},
"patchedDependencies": {
"micro-eth-signer@0.14.0": "patches/micro-eth-signer@0.14.0.patch"
}
},
"overrides": {
Expand Down
25 changes: 25 additions & 0 deletions patches/micro-eth-signer@0.14.0.patch

Large diffs are not rendered by default.

31 changes: 21 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading