|
6 | 6 |
|
7 | 7 | # LayerZero V1 Solidity Examples
|
8 | 8 |
|
9 |
| - |
10 | 9 | >[!IMPORTANT]
|
11 | 10 | > **LayerZero V2** is now available [here](https://github.com/LayerZero-Labs/LayerZero-v2), offering improvements in cross-chain transaction speed, gas efficiency, and more.
|
12 | 11 | >
|
|
16 | 15 | >
|
17 | 16 | > All of the contracts available in this repo should be considered legacy for Endpoint V1.
|
18 | 17 |
|
19 |
| - |
20 | 18 | Welcome to the solidity-examples repository, showcasing various contract examples utilizing LayerZero. LayerZero is an Omnichain Interoperability Protocol, facilitating reliable, trustless communication between different blockchain networks.
|
21 | 19 |
|
22 | 20 | **Disclaimer**: This repository contains example contracts to demonstrate the capabilities and usage of LayerZero. For actual implementation in your projects, it's recommended to use the official LayerZero contracts (such as LZApp, OFT, OFTV1.2, etc.) directly from the[ npm package](https://www.npmjs.com/package/@layerzerolabs/solidity-examples).
|
23 | 21 |
|
24 |
| -You can find instructions for inheriting, deploying, and best practices for the provided contracts in the [LayerZero V1 Documentation](https://docs.layerzero.network/v1/developers/build/what-you-can-build). |
| 22 | +You can find instructions for inheriting, deploying, and best practices for the provided contracts in the [LayerZero V1 Documentation](https://docs.layerzero.network/v1/developers/evm/build/what-you-can-build). |
25 | 23 |
|
26 | 24 | * Formal audit(s) (May 21, 2022) can be found in [audit](./audit)
|
27 | 25 |
|
@@ -103,14 +101,14 @@ npx hardhat checkWireUpAll --e testnet --contract OmniCounter
|
103 | 101 |
|
104 | 102 | Many of the example contracts make use of `LayerZeroEndpointMock.sol` which is a nice way to test LayerZero locally!
|
105 | 103 |
|
106 |
| -### For further reading, and a list of endpoint ids and deployed LayerZero contract addresses please take a look at the Documentation here: https://docs.layerzero.network/v1/developers/build/what-you-can-build |
| 104 | +### For further reading, and a list of endpoint ids and deployed LayerZero contract addresses please take a look at the Documentation here: https://docs.layerzero.network/v1/developers/evm/build/what-you-can-build |
107 | 105 |
|
108 | 106 | # OmnichainFungibleToken (OFT)
|
109 | 107 |
|
110 | 108 | ## About OFTV1.2
|
111 | 109 |
|
112 | 110 | ```text
|
113 |
| -NOTE: the OFTV1.2 uses uint64 to encode value transfer for compatability of Aptos and Solana. |
| 111 | +NOTE: the OFTV1.2 uses uint64 to encode value transfer for compatibility of Aptos and Solana. |
114 | 112 |
|
115 | 113 | The deployer is expected to set a lower decimal points like 6 or 8.
|
116 | 114 |
|
@@ -214,15 +212,12 @@ npx hardhat --network bsc-testnet ownerOf --token-id 1 --contract ONFT721Mock
|
214 | 212 | npx hardhat --network fuji ownerOf --token-id 1 --contract ONFT721Mock
|
215 | 213 | ```
|
216 | 214 |
|
217 |
| -
|
218 | 215 | # See testnet and mainnet chainIds and addresses, and the format for connecting contracts on different chains:
|
219 | 216 |
|
220 |
| - https://github.com/LayerZero-Labs/set-trusted-remotes |
221 |
| -
|
222 |
| - https://docs.layerzero.network/v1/developers/technical-reference/testnet/testnet-addresses |
223 |
| -
|
224 |
| - https://docs.layerzero.network/v1/developers/technical-reference/mainnet/mainnet-addresses |
| 217 | +https://github.com/LayerZero-Labs/set-trusted-remotes |
225 | 218 |
|
| 219 | +https://docs.layerzero.network/v1/developers/evm/technical-reference/testnet/testnet-addresses |
226 | 220 |
|
227 |
| -## Most recently tested with node version `16.13.1` |
| 221 | +https://docs.layerzero.network/v1/developers/evm/technical-reference/mainnet/mainnet-addresses |
228 | 222 |
|
| 223 | +## Most recently tested with node version `18.16.0` |
0 commit comments