Skip to content

Commit 7c9bc64

Browse files
committed
docs: update README with instructions for syncing contracts and configuring local network testing
1 parent b37d23d commit 7c9bc64

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,23 @@ export NETWORK=naga-staging
114114
export LOG_LEVEL=info # optional: debug | debug2 | silent
115115
```
116116

117+
For live networks that read ABI data from the `networks` repo (for example `naga-staging`), run the sync script before firing Artillery so the contracts and addresses are up to date:
118+
119+
```bash
120+
pnpm run sync:contracts # requires GH_API_KEY in your environment
121+
```
122+
123+
Testing a custom local network? Point the runner at your generated `networkContext.json` and RPC URL. (/lit-assets/blockchain/contracts/networkContext.json)
124+
125+
```ts
126+
const networkModule = nagaLocal
127+
.withLocalContext({
128+
networkContextPath: '/Users/<username>/Projects/lit-assets/blockchain/contracts/networkContext.json',
129+
networkName: 'naga-local',
130+
})
131+
.withOverrides({ rpcUrl: process.env.LOCAL_RPC_URL });
132+
```
133+
117134
If you want Artillery Cloud reports, set `ARTILLERY_KEY=<your-key>` in `.env` before running a scenario.
118135

119136
## One-time initialisation

0 commit comments

Comments
 (0)