You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/oapp-aptos-move/README.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
## Setup and Installation
4
4
5
+
### Aptos CLI
6
+
5
7
Install the Aptos CLI (required for deployment):
6
8
7
9
Aptos does not have native version management capabilities. To simplify the installation process, LayerZero has developed an Aptos CLI Version Manager.
@@ -67,13 +75,17 @@ Note: Your private key is stored in the .aptos/config.yaml file and will be extr
67
75
68
76
Create a `.env` file with the following variables:
69
77
78
+
Note: the aptos specific values can be found in `.aptos/config.yaml` after running `aptos init`
79
+
80
+
Note: the Movement specific values can be found at: https://docs.movementnetwork.xyz/devs/networkEndpoints#movement-bardock-testnet-aptos-environment and currently Bardock testnet is the only Movement testnet with a deployed layerzero endpoint.
Then run `source .env` in order for your values to be mapped.
86
98
87
-
Note: the aptos specific values can be found in `.aptos/config.yaml` after running `aptos init`
88
-
89
-
Note: the Movement specific values can be found at: https://docs.movementnetwork.xyz/devs/networkEndpoints#movement-bardock-testnet-aptos-environment and currently Bardock testnet is the only Movement testnet with a deployed layerzero endpoint.
90
-
91
99
> **Important:** If using Aptos CLI version >= 6.1.0 (required for Aptos chain), you need to uncomment the following lines in Move.toml and remove the existing AptosFramework dependency:
92
100
>
93
101
> ```
@@ -97,14 +105,27 @@ Note: the Movement specific values can be found at: https://docs.movementnetwork
97
105
> # subdir = "aptos-framework"
98
106
> ```
99
107
100
-
### Wire setup
108
+
## OApp Config Setup
101
109
102
110
Before running the deploy and wire commands, first inside of `move.layerzero.config.ts`, set the delegate and owner address to your deployer account address. These can be changed in the future with commands shown later in this README, but for now they should be set to the address you will be running the commands from (deployer account address).
103
111
112
+
> **Important:** Follow the [LayerZero Project Configuration Guide](https://docs.layerzero.network/v2/developers/evm/create-lz-oapp/project-config) to properly set up your `move.layerzero.config.ts` file with correct endpoint IDs and network configurations before running wiring commands. The configuration can be modified to wire any number supported networks to each other. The current move.layerzero.config.ts file is an example of what is required to deploy and wire BSC testnet to Movement testnet.
113
+
114
+
`move.layerzero.config.ts`:
115
+
104
116
```ts
117
+
// Create contract entries for all contracts you would like to deploy.
Copy file name to clipboardExpand all lines: examples/oapp/.eslintrc.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,5 +7,6 @@ module.exports = {
7
7
// @layerzerolabs/eslint-config-next defines rules for turborepo-based projects
8
8
// that are not relevant for this particular project
9
9
'turbo/no-undeclared-env-vars': 'off',
10
+
'import/no-unresolved': 'warn',// Updated to warn to avoid erratic popping up of this particular error even when the package has been installed correctly
0 commit comments