@oydual31/more-vaults-sdk 0.2.8 → 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 +21 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +21 -2
- package/dist/react/index.js.map +1 -1
- package/dist/viem/index.cjs +338 -2
- package/dist/viem/index.cjs.map +1 -1
- package/dist/viem/index.d.cts +475 -4
- package/dist/viem/index.d.ts +475 -4
- package/dist/viem/index.js +330 -3
- package/dist/viem/index.js.map +1 -1
- package/package.json +1 -1
- package/src/viem/abis.ts +278 -0
- package/src/viem/chains.ts +16 -3
- 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 |
|
package/dist/react/index.cjs
CHANGED
|
@@ -103,10 +103,12 @@ var OFT_ROUTES = {
|
|
|
103
103
|
]: { oft: "0x19cFCE47eD54a88614648DC3f19A5980097007dD", token: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58" }
|
|
104
104
|
},
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* USDF — USD Flow OFT. Bridges PYUSD (Ethereum) ↔ USDF (Flow EVM).
|
|
107
|
+
* On Ethereum: underlying is PayPal USD (PYUSD, 0x6c3ea9...).
|
|
108
|
+
* On Flow: the OFT itself IS the token (USDF, 0x2aabea...).
|
|
107
109
|
* Routes verified: Eth→Flow ✓
|
|
108
110
|
*/
|
|
109
|
-
|
|
111
|
+
USDF: {
|
|
110
112
|
[
|
|
111
113
|
747
|
|
112
114
|
/* flowEVMMainnet */
|
|
@@ -116,6 +118,23 @@ var OFT_ROUTES = {
|
|
|
116
118
|
/* ethereum */
|
|
117
119
|
]: { oft: "0xfa0e06b54986ad96de87a8c56fea76fbd8d493f8", token: "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8" }
|
|
118
120
|
},
|
|
121
|
+
/**
|
|
122
|
+
* PYUSD — PayPal USD bridged via OFTAdapter (Paxos / LayerZero).
|
|
123
|
+
* Lock/mint architecture: locks PYUSD on Arbitrum, mints PYUSD0 on Flow EVM.
|
|
124
|
+
* On Arbitrum: OFTAdapter wraps native PYUSD (0x46850a...).
|
|
125
|
+
* On Flow: OFTAdapter wraps PYUSD0 (0x99aF3E...), which is the native Paxos token.
|
|
126
|
+
* Routes verified: Arb↔Flow ✓ (EID 30336). No Eth or Base peers.
|
|
127
|
+
*/
|
|
128
|
+
PYUSD: {
|
|
129
|
+
[
|
|
130
|
+
747
|
|
131
|
+
/* flowEVMMainnet */
|
|
132
|
+
]: { oft: "0x26d27d5AF2F6f1c14F40013C8619d97aaf015509", token: "0x99aF3EeA856556646C98c8B9b2548Fe815240750" },
|
|
133
|
+
[
|
|
134
|
+
42161
|
|
135
|
+
/* arbitrum */
|
|
136
|
+
]: { oft: "0x3CD2b89C49D130C08f1d683225b2e5DeB63ff876", token: "0x46850aD61C2B7d64d08c9C754F45254596696984" }
|
|
137
|
+
},
|
|
119
138
|
/**
|
|
120
139
|
* WFLOW — Wrapped FLOW NativeOFTAdapter (issued by Flow Foundation).
|
|
121
140
|
* Routes verified: Eth→Flow ✓
|