@oydual31/more-vaults-sdk 0.2.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js.map +1 -1
- package/dist/viem/index.cjs +317 -0
- package/dist/viem/index.cjs.map +1 -1
- package/dist/viem/index.d.cts +453 -1
- package/dist/viem/index.d.ts +453 -1
- package/dist/viem/index.js +309 -1
- package/dist/viem/index.js.map +1 -1
- package/package.json +1 -1
- package/src/viem/abis.ts +278 -0
- package/src/viem/curatorStatus.ts +124 -0
- package/src/viem/index.ts +20 -0
- package/src/viem/types.ts +57 -0
package/README.md
CHANGED
|
@@ -127,7 +127,7 @@ LayerZero identifies chains by an **Endpoint ID (EID)** — different from the c
|
|
|
127
127
|
| Ethereum | 1 | 30101 |
|
|
128
128
|
| Arbitrum | 42161 | 30110 |
|
|
129
129
|
| Base | 8453 | 30184 |
|
|
130
|
-
| Flow EVM | 747 |
|
|
130
|
+
| Flow EVM | 747 | 30336 |
|
|
131
131
|
|
|
132
132
|
### GUID (async request ID)
|
|
133
133
|
|
|
@@ -331,6 +331,30 @@ Full reference: [docs/user-helpers.md](./docs/user-helpers.md)
|
|
|
331
331
|
| `quoteRouteDepositFee` | LZ fee for a specific inbound route |
|
|
332
332
|
| `resolveRedeemAddresses` | Discover SHARE_OFT, asset OFT, spoke asset for a redeem route |
|
|
333
333
|
|
|
334
|
+
### Curator operations (vault manager)
|
|
335
|
+
|
|
336
|
+
Full reference: [docs/curator-operations.md](./docs/curator-operations.md)
|
|
337
|
+
|
|
338
|
+
| Function | Description |
|
|
339
|
+
|----------|-------------|
|
|
340
|
+
| `getCuratorVaultStatus` | Full status snapshot: curator address, timelock, slippage, nonce, available assets, LZ adapter |
|
|
341
|
+
| `getPendingActions` | Pending actions for a given nonce, with `isExecutable` flag (timelock check) |
|
|
342
|
+
| `isCurator` | Check if an address is the vault's curator |
|
|
343
|
+
|
|
344
|
+
```ts
|
|
345
|
+
import { getCuratorVaultStatus, isCurator } from '@oydual31/more-vaults-sdk/viem'
|
|
346
|
+
|
|
347
|
+
const status = await getCuratorVaultStatus(publicClient, VAULT)
|
|
348
|
+
// status.curator — curator address
|
|
349
|
+
// status.timeLockPeriod — seconds (0 = immediate execution)
|
|
350
|
+
// status.currentNonce — latest action nonce
|
|
351
|
+
// status.availableAssets — whitelisted tokens
|
|
352
|
+
// status.lzAdapter — cross-chain accounting manager
|
|
353
|
+
// status.paused — vault paused state
|
|
354
|
+
|
|
355
|
+
const isManager = await isCurator(publicClient, VAULT, myAddress)
|
|
356
|
+
```
|
|
357
|
+
|
|
334
358
|
### Topology & distribution
|
|
335
359
|
|
|
336
360
|
| Function | Description |
|