@zircuit/ovault-evm 0.0.1 → 0.0.3

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 CHANGED
@@ -137,5 +137,15 @@ If you are tracking withdrawals where multiple messages may exist, you can provi
137
137
 
138
138
  ## Development
139
139
 
140
- - **Build/typecheck**: `npm run -s sdk:build`
141
- - **Run SDK tests**: `npm run -s sdk:test`
140
+ - **Build/typecheck**: `pnpm build`
141
+ - **Run SDK tests**: `pnpm test` (sends real transactions; needs `PRIVATE_KEY` in `.env`)
142
+
143
+ ## Releasing
144
+
145
+ Releases are automated with [Changesets](https://github.com/changesets/changesets).
146
+
147
+ 1. In any PR that should ship, run `pnpm changeset`, pick the bump (patch / minor / major), describe the change, and commit the generated file.
148
+ 2. When it merges, the Release workflow opens (or updates) a **"chore(release): version package"** PR that bumps `package.json` and updates `CHANGELOG.md`.
149
+ 3. Merging that PR publishes to npm via trusted publishing (OIDC) and creates the `vX.Y.Z` GitHub release.
150
+
151
+ Don't run `npm version` or `npm publish` by hand.
package/dist/addresses.js CHANGED
@@ -36,7 +36,7 @@ export const CLUSTERS = {
36
36
  oft: "0x264D6474802Ef8bc1bc05F89F7d640D1E93c5330",
37
37
  vault: "0x25d90ABd6c1E8DCCD40932D2fdD2Cd381bfc832D",
38
38
  composer: "0x16cE6D9576A411911e62b6073F1cc9d1347ad96B",
39
- token: "0x820266ecC2D268B0fBbD2aA3a1bdf28d12582Bbc",
39
+ token: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
40
40
  },
41
41
  ethereum: {
42
42
  oft: "0x2D342De4c58a871b3525740C58a1C112D5835865",
@@ -77,7 +77,7 @@ export declare class OVaultSyncMessageBuilder {
77
77
  amount: bigint;
78
78
  spender: `0x${string}`;
79
79
  usePermit: boolean;
80
- needsResetApproval: boolean | undefined;
80
+ needsResetApproval: boolean;
81
81
  nonce?: undefined;
82
82
  tokenName?: undefined;
83
83
  tokenVersion?: undef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eAAe;;;;IAyCzE,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU;WAW7C,eAAe,CAAC,KAAK,EAAE,eAAe;;;;;sBAjNd,KAAK,MAAM,EAAE;oBAC1B,KAAK,MAAM,EAAE;;;WA8PxB,aAAa,CAAC,KAAK,EAAE,eAAe;;;;;eA6GZ,MAAM;mBACE,MAAM;;;;;;;;;;;;;IA+BnD;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CACtB,IAAI,EAAE,gBAAgB,GACrB,6BAA6B;IAmFhC;;;;;OAKG;WACU,oBAAoB,CAC/B,KAAK,EAAE,gBAAgB,GACtB,OAAO,CAAC,gBAAgB,CAAC;IAyG5B;;;;;;;OAOG;IACH,MAAM,CAAC,wBAAwB,CAC7B,MAAM,EAAE,gBAAgB,EACxB,UAAU,CAAC,EAAE,SAAS;QACpB,MAAM;QACN,MAAM,GAAG,MAAM;QACf,KAAK,MAAM,EAAE;QACb,KAAK,MAAM,EAAE;KACd,GACA;QAAE,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;QAAC,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;CAoB7D"}
@@ -338,9 +338,13 @@ export class OVaultSyncMessageBuilder {
338
338
  console.warn("Failed to fetch nonce for permit, falling back to approval:", error);
339
339
  }
340
340
  }
341
- // Some tokens (like USDT) require approval to be set to 0 before changing to a new value
342
- // If there's an existing non-zero allowance, we need a two-step approval
343
- const needsResetApproval = requiresZeroApprovalReset && allowance > 0n && allowance < amount;
341
+ // Some underlying tokens (like USDT) require approval to be set to 0
342
+ // before changing to a new value.
343
+ const isUnderlyingTokenApproval = approvingTokenAddress.toLowerCase() === tokenAddress.toLowerCase();
344
+ const needsResetApproval = isUnderlyingTokenApproval &&
345
+ requiresZeroApprovalReset === true &&
346
+ allowance > 0n &&
347
+ allowance < amount;
344
348
  return {
345
349
  tokenAddress: approvingTokenAddress,
346
350
  amount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zircuit/ovault-evm",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Zircuit OVault Implementation SDK",
5
5
  "keywords": [
6
6
  "LayerZero",
@@ -13,6 +13,10 @@
13
13
  "EVM"
14
14
  ],
15
15
  "repository": "zircuit-labs/ovault-evm",
16
+ "homepage": "https://docs.zircuit.com/zircuit-finance/zircuit-finance-vaults/vault-integration-guide",
17
+ "bugs": {
18
+ "email": "bugbounty@zircuit.com"
19
+ },
16
20
  "license": "MIT",
17
21
  "type": "module",
18
22
  "exports": {
@@ -38,6 +42,7 @@
38
42
  "viem": "^2.33.1"
39
43
  },
40
44
  "devDependencies": {
45
+ "@changesets/cli": "^3.0.3",
41
46
  "@types/mocha": "^10.0.10",
42
47
  "@types/node": "^24.1.0",
43
48
  "dotenv": "^17.2.3",
@@ -47,5 +52,6 @@
47
52
  },
48
53
  "publishConfig": {
49
54
  "access": "public"
50
- }
55
+ },
56
+ "packageManager": "pnpm@11.18.0"
51
57
  }
package/src/addresses.ts CHANGED
@@ -88,7 +88,7 @@ export const CLUSTERS: Record<SupportedToken, ClusterConfig> = {
88
88
  oft: "0x264D6474802Ef8bc1bc05F89F7d640D1E93c5330",
89
89
  vault: "0x25d90ABd6c1E8DCCD40932D2fdD2Cd381bfc832D",
90
90
  composer: "0x16cE6D9576A411911e62b6073F1cc9d1347ad96B",
91
- token: "0x820266ecC2D268B0fBbD2aA3a1bdf28d12582Bbc",
91
+ token: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
92
92
  },
93
93
  ethereum: {
94
94
  oft: "0x2D342De4c58a871b3525740C58a1C112D5835865",
@@ -487,10 +487,15 @@ export class OVaultSyncMessageBuilder {
487
487
  }
488
488
  }
489
489
 
490
- // Some tokens (like USDT) require approval to be set to 0 before changing to a new value
491
- // If there's an existing non-zero allowance, we need a two-step approval
490
+ // Some underlying tokens (like USDT) require approval to be set to 0
491
+ // before changing to a new value.
492
+ const isUnderlyingTokenApproval =
493
+ approvingTokenAddress.toLowerCase() === tokenAddress.toLowerCase();
492
494
  const needsResetApproval =
493
- requiresZeroApprovalReset && allowance > 0n && allowance < amount;
495
+ isUnderlyingTokenApproval &&
496
+ requiresZeroApprovalReset === true &&
497
+ allowance > 0n &&
498
+ allowance < amount;
494
499
 
495
500
  return {
496
501
  tokenAddress: approvingTokenAddress,
@@ -1,560 +0,0 @@
1
- export declare const OVaultComposerSyncNativeAbi: readonly [{
2
- readonly type: "constructor";
3
- readonly inputs: readonly [{
4
- readonly name: "_vault";
5
- readonly type: "address";
6
- readonly internalType: "address";
7
- }, {
8
- readonly name: "_assetOFT";
9
- readonly type: "address";
10
- readonly internalType: "address";
11
- }, {
12
- readonly name: "_shareOFT";
13
- readonly type: "address";
14
- readonly internalType: "address";
15
- }];
16
- readonly stateMutability: "nonpayable";
17
- }, {
18
- readonly type: "receive";
19
- readonly stateMutability: "payable";
20
- }, {
21
- readonly type: "function";
22
- readonly name: "ASSET_ERC20";
23
- readonly inputs: readonly [];
24
- readonly outputs: readonly [{
25
- readonly name: "";
26
- readonly type: "address";
27
- readonly internalType: "address";
28
- }];
29
- readonly stateMutability: "view";
30
- }, {
31
- readonly type: "function";
32
- readonly name: "ASSET_OFT";
33
- readonly inputs: readonly [];
34
- readonly outputs: readonly [{
35
- readonly name: "";
36
- readonly type: "address";
37
- readonly internalType: "address";
38
- }];
39
- readonly stateMutability: "view";
40
- }, {
41
- readonly type: "function";
42
- readonly name: "ENDPOINT";
43
- readonly inputs: readonly [];
44
- readonly outputs: readonly [{
45
- readonly name: "";
46
- readonly type: "address";
47
- readonly internalType: "address";
48
- }];
49
- readonly stateMutability: "view";
50
- }, {
51
- readonly type: "function";
52
- readonly name: "SHARE_ERC20";
53
- readonly inputs: readonly [];
54
- readonly outputs: readonly [{
55
- readonly name: "";
56
- readonly type: "address";
57
- readonly internalType: "address";
58
- }];
59
- readonly stateMutability: "view";
60
- }, {
61
- readonly type: "function";
62
- readonly name: "SHARE_OFT";
63
- readonly inputs: readonly [];
64
- readonly outputs: readonly [{
65
- readonly name: "";
66
- readonly type: "address";
67
- readonly internalType: "address";
68
- }];
69
- readonly stateMutability: "view";
70
- }, {
71
- readonly type: "function";
72
- readonly name: "VAULT";
73
- readonly inputs: readonly [];
74
- readonly outputs: readonly [{
75
- readonly name: "";
76
- readonly type: "address";
77
- readonly internalType: "contract IERC4626";
78
- }];
79
- readonly stateMutability: "view";
80
- }, {
81
- readonly type: "function";
82
- readonly name: "VAULT_EID";
83
- readonly inputs: readonly [];
84
- readonly outputs: readonly [{
85
- readonly name: "";
86
- readonly type: "uint32";
87
- readonly internalType: "uint32";
88
- }];
89
- readonly stateMutability: "view";
90
- }, {
91
- readonly type: "function";
92
- readonly name: "depositAndSend";
93
- readonly inputs: readonly [{
94
- readonly name: "_assetAmount";
95
- readonly type: "uint256";
96
- readonly internalType: "uint256";
97
- }, {
98
- readonly name: "_sendParam";
99
- readonly type: "tuple";
100
- readonly internalType: "struct SendParam";
101
- readonly components: readonly [{
102
- readonly name: "dstEid";
103
- readonly type: "uint32";
104
- readonly internalType: "uint32";
105
- }, {
106
- readonly name: "to";
107
- readonly type: "bytes32";
108
- readonly internalType: "bytes32";
109
- }, {
110
- readonly name: "amountLD";
111
- readonly type: "uint256";
112
- readonly internalType: "uint256";
113
- }, {
114
- readonly name: "minAmountLD";
115
- readonly type: "uint256";
116
- readonly internalType: "uint256";
117
- }, {
118
- readonly name: "extraOptions";
119
- readonly type: "bytes";
120
- readonly internalType: "bytes";
121
- }, {
122
- readonly name: "composeMsg";
123
- readonly type: "bytes";
124
- readonly internalType: "bytes";
125
- }, {
126
- readonly name: "oftCmd";
127
- readonly type: "bytes";
128
- readonly internalType: "bytes";
129
- }];
130
- }, {
131
- readonly name: "_refundAddress";
132
- readonly type: "address";
133
- readonly internalType: "address";
134
- }];
135
- readonly outputs: readonly [];
136
- readonly stateMutability: "payable";
137
- }, {
138
- readonly type: "function";
139
- readonly name: "depositNativeAndSend";
140
- readonly inputs: readonly [{
141
- readonly name: "_assetAmount";
142
- readonly type: "uint256";
143
- readonly internalType: "uint256";
144
- }, {
145
- readonly name: "_sendParam";
146
- readonly type: "tuple";
147
- readonly internalType: "struct SendParam";
148
- readonly components: readonly [{
149
- readonly name: "dstEid";
150
- readonly type: "uint32";
151
- readonly internalType: "uint32";
152
- }, {
153
- readonly name: "to";
154
- readonly type: "bytes32";
155
- readonly internalType: "bytes32";
156
- }, {
157
- readonly name: "amountLD";
158
- readonly type: "uint256";
159
- readonly internalType: "uint256";
160
- }, {
161
- readonly name: "minAmountLD";
162
- readonly type: "uint256";
163
- readonly internalType: "uint256";
164
- }, {
165
- readonly name: "extraOptions";
166
- readonly type: "bytes";
167
- readonly internalType: "bytes";
168
- }, {
169
- readonly name: "composeMsg";
170
- readonly type: "bytes";
171
- readonly internalType: "bytes";
172
- }, {
173
- readonly name: "oftCmd";
174
- readonly type: "bytes";
175
- readonly internalType: "bytes";
176
- }];
177
- }, {
178
- readonly name: "_refundAddress";
179
- readonly type: "address";
180
- readonly internalType: "address";
181
- }];
182
- readonly outputs: readonly [];
183
- readonly stateMutability: "payable";
184
- }, {
185
- readonly type: "function";
186
- readonly name: "handleCompose";
187
- readonly inputs: readonly [{
188
- readonly name: "_oftIn";
189
- readonly type: "address";
190
- readonly internalType: "address";
191
- }, {
192
- readonly name: "_composeFrom";
193
- readonly type: "bytes32";
194
- readonly internalType: "bytes32";
195
- }, {
196
- readonly name: "_composeMsg";
197
- readonly type: "bytes";
198
- readonly internalType: "bytes";
199
- }, {
200
- readonly name: "_amount";
201
- readonly type: "uint256";
202
- readonly internalType: "uint256";
203
- }];
204
- readonly outputs: readonly [];
205
- readonly stateMutability: "payable";
206
- }, {
207
- readonly type: "function";
208
- readonly name: "lzCompose";
209
- readonly inputs: readonly [{
210
- readonly name: "_composeSender";
211
- readonly type: "address";
212
- readonly internalType: "address";
213
- }, {
214
- readonly name: "_guid";
215
- readonly type: "bytes32";
216
- readonly internalType: "bytes32";
217
- }, {
218
- readonly name: "_message";
219
- readonly type: "bytes";
220
- readonly internalType: "bytes";
221
- }, {
222
- readonly name: "";
223
- readonly type: "address";
224
- readonly internalType: "address";
225
- }, {
226
- readonly name: "";
227
- readonly type: "bytes";
228
- readonly internalType: "bytes";
229
- }];
230
- readonly outputs: readonly [];
231
- readonly stateMutability: "payable";
232
- }, {
233
- readonly type: "function";
234
- readonly name: "quoteSend";
235
- readonly inputs: readonly [{
236
- readonly name: "_from";
237
- readonly type: "address";
238
- readonly internalType: "address";
239
- }, {
240
- readonly name: "_targetOFT";
241
- readonly type: "address";
242
- readonly internalType: "address";
243
- }, {
244
- readonly name: "_vaultInAmount";
245
- readonly type: "uint256";
246
- readonly internalType: "uint256";
247
- }, {
248
- readonly name: "_sendParam";
249
- readonly type: "tuple";
250
- readonly internalType: "struct SendParam";
251
- readonly components: readonly [{
252
- readonly name: "dstEid";
253
- readonly type: "uint32";
254
- readonly internalType: "uint32";
255
- }, {
256
- readonly name: "to";
257
- readonly type: "bytes32";
258
- readonly internalType: "bytes32";
259
- }, {
260
- readonly name: "amountLD";
261
- readonly type: "uint256";
262
- readonly internalType: "uint256";
263
- }, {
264
- readonly name: "minAmountLD";
265
- readonly type: "uint256";
266
- readonly internalType: "uint256";
267
- }, {
268
- readonly name: "extraOptions";
269
- readonly type: "bytes";
270
- readonly internalType: "bytes";
271
- }, {
272
- readonly name: "composeMsg";
273
- readonly type: "bytes";
274
- readonly internalType: "bytes";
275
- }, {
276
- readonly name: "oftCmd";
277
- readonly type: "bytes";
278
- readonly internalType: "bytes";
279
- }];
280
- }];
281
- readonly outputs: readonly [{
282
- readonly name: "";
283
- readonly type: "tuple";
284
- readonly internalType: "struct MessagingFee";
285
- readonly components: readonly [{
286
- readonly name: "nativeFee";
287
- readonly type: "uint256";
288
- readonly internalType: "uint256";
289
- }, {
290
- readonly name: "lzTokenFee";
291
- readonly type: "uint256";
292
- readonly internalType: "uint256";
293
- }];
294
- }];
295
- readonly stateMutability: "view";
296
- }, {
297
- readonly type: "function";
298
- readonly name: "redeemAndSend";
299
- readonly inputs: readonly [{
300
- readonly name: "_shareAmount";
301
- readonly type: "uint256";
302
- readonly internalType: "uint256";
303
- }, {
304
- readonly name: "_sendParam";
305
- readonly type: "tuple";
306
- readonly internalType: "struct SendParam";
307
- readonly components: readonly [{
308
- readonly name: "dstEid";
309
- readonly type: "uint32";
310
- readonly internalType: "uint32";
311
- }, {
312
- readonly name: "to";
313
- readonly type: "bytes32";
314
- readonly internalType: "bytes32";
315
- }, {
316
- readonly name: "amountLD";
317
- readonly type: "uint256";
318
- readonly internalType: "uint256";
319
- }, {
320
- readonly name: "minAmountLD";
321
- readonly type: "uint256";
322
- readonly internalType: "uint256";
323
- }, {
324
- readonly name: "extraOptions";
325
- readonly type: "bytes";
326
- readonly internalType: "bytes";
327
- }, {
328
- readonly name: "composeMsg";
329
- readonly type: "bytes";
330
- readonly internalType: "bytes";
331
- }, {
332
- readonly name: "oftCmd";
333
- readonly type: "bytes";
334
- readonly internalType: "bytes";
335
- }];
336
- }, {
337
- readonly name: "_refundAddress";
338
- readonly type: "address";
339
- readonly internalType: "address";
340
- }];
341
- readonly outputs: readonly [];
342
- readonly stateMutability: "payable";
343
- }, {
344
- readonly type: "event";
345
- readonly name: "Deposited";
346
- readonly inputs: readonly [{
347
- readonly name: "sender";
348
- readonly type: "bytes32";
349
- readonly indexed: false;
350
- readonly internalType: "bytes32";
351
- }, {
352
- readonly name: "recipient";
353
- readonly type: "bytes32";
354
- readonly indexed: false;
355
- readonly internalType: "bytes32";
356
- }, {
357
- readonly name: "dstEid";
358
- readonly type: "uint32";
359
- readonly indexed: false;
360
- readonly internalType: "uint32";
361
- }, {
362
- readonly name: "assetAmt";
363
- readonly type: "uint256";
364
- readonly indexed: false;
365
- readonly internalType: "uint256";
366
- }, {
367
- readonly name: "shareAmt";
368
- readonly type: "uint256";
369
- readonly indexed: false;
370
- readonly internalType: "uint256";
371
- }];
372
- readonly anonymous: false;
373
- }, {
374
- readonly type: "event";
375
- readonly name: "Redeemed";
376
- readonly inputs: readonly [{
377
- readonly name: "sender";
378
- readonly type: "bytes32";
379
- readonly indexed: false;
380
- readonly internalType: "bytes32";
381
- }, {
382
- readonly name: "recipient";
383
- readonly type: "bytes32";
384
- readonly indexed: false;
385
- readonly internalType: "bytes32";
386
- }, {
387
- readonly name: "dstEid";
388
- readonly type: "uint32";
389
- readonly indexed: false;
390
- readonly internalType: "uint32";
391
- }, {
392
- readonly name: "shareAmt";
393
- readonly type: "uint256";
394
- readonly indexed: false;
395
- readonly internalType: "uint256";
396
- }, {
397
- readonly name: "assetAmt";
398
- readonly type: "uint256";
399
- readonly indexed: false;
400
- readonly internalType: "uint256";
401
- }];
402
- readonly anonymous: false;
403
- }, {
404
- readonly type: "event";
405
- readonly name: "Refunded";
406
- readonly inputs: readonly [{
407
- readonly name: "guid";
408
- readonly type: "bytes32";
409
- readonly indexed: true;
410
- readonly internalType: "bytes32";
411
- }];
412
- readonly anonymous: false;
413
- }, {
414
- readonly type: "event";
415
- readonly name: "Sent";
416
- readonly inputs: readonly [{
417
- readonly name: "guid";
418
- readonly type: "bytes32";
419
- readonly indexed: true;
420
- readonly internalType: "bytes32";
421
- }];
422
- readonly anonymous: false;
423
- }, {
424
- readonly type: "error";
425
- readonly name: "AmountExceedsMsgValue";
426
- readonly inputs: readonly [];
427
- }, {
428
- readonly type: "error";
429
- readonly name: "AssetOFTTokenNotNative";
430
- readonly inputs: readonly [];
431
- }, {
432
- readonly type: "error";
433
- readonly name: "AssetTokenNotVaultAsset";
434
- readonly inputs: readonly [{
435
- readonly name: "assetERC20";
436
- readonly type: "address";
437
- readonly internalType: "address";
438
- }, {
439
- readonly name: "vaultAsset";
440
- readonly type: "address";
441
- readonly internalType: "address";
442
- }];
443
- }, {
444
- readonly type: "error";
445
- readonly name: "ERC4626ExceededMaxDeposit";
446
- readonly inputs: readonly [{
447
- readonly name: "receiver";
448
- readonly type: "address";
449
- readonly internalType: "address";
450
- }, {
451
- readonly name: "assets";
452
- readonly type: "uint256";
453
- readonly internalType: "uint256";
454
- }, {
455
- readonly name: "max";
456
- readonly type: "uint256";
457
- readonly internalType: "uint256";
458
- }];
459
- }, {
460
- readonly type: "error";
461
- readonly name: "ERC4626ExceededMaxRedeem";
462
- readonly inputs: readonly [{
463
- readonly name: "owner";
464
- readonly type: "address";
465
- readonly internalType: "address";
466
- }, {
467
- readonly name: "shares";
468
- readonly type: "uint256";
469
- readonly internalType: "uint256";
470
- }, {
471
- readonly name: "max";
472
- readonly type: "uint256";
473
- readonly internalType: "uint256";
474
- }];
475
- }, {
476
- readonly type: "error";
477
- readonly name: "InsufficientMsgValue";
478
- readonly inputs: readonly [{
479
- readonly name: "expectedMsgValue";
480
- readonly type: "uint256";
481
- readonly internalType: "uint256";
482
- }, {
483
- readonly name: "actualMsgValue";
484
- readonly type: "uint256";
485
- readonly internalType: "uint256";
486
- }];
487
- }, {
488
- readonly type: "error";
489
- readonly name: "NoMsgValueExpected";
490
- readonly inputs: readonly [];
491
- }, {
492
- readonly type: "error";
493
- readonly name: "OnlyEndpoint";
494
- readonly inputs: readonly [{
495
- readonly name: "caller";
496
- readonly type: "address";
497
- readonly internalType: "address";
498
- }];
499
- }, {
500
- readonly type: "error";
501
- readonly name: "OnlySelf";
502
- readonly inputs: readonly [{
503
- readonly name: "caller";
504
- readonly type: "address";
505
- readonly internalType: "address";
506
- }];
507
- }, {
508
- readonly type: "error";
509
- readonly name: "OnlyValidComposeCaller";
510
- readonly inputs: readonly [{
511
- readonly name: "caller";
512
- readonly type: "address";
513
- readonly internalType: "address";
514
- }];
515
- }, {
516
- readonly type: "error";
517
- readonly name: "ReentrancyGuardReentrantCall";
518
- readonly inputs: readonly [];
519
- }, {
520
- readonly type: "error";
521
- readonly name: "SafeERC20FailedOperation";
522
- readonly inputs: readonly [{
523
- readonly name: "token";
524
- readonly type: "address";
525
- readonly internalType: "address";
526
- }];
527
- }, {
528
- readonly type: "error";
529
- readonly name: "ShareOFTNotAdapter";
530
- readonly inputs: readonly [{
531
- readonly name: "shareOFT";
532
- readonly type: "address";
533
- readonly internalType: "address";
534
- }];
535
- }, {
536
- readonly type: "error";
537
- readonly name: "ShareTokenNotVault";
538
- readonly inputs: readonly [{
539
- readonly name: "shareERC20";
540
- readonly type: "address";
541
- readonly internalType: "address";
542
- }, {
543
- readonly name: "vault";
544
- readonly type: "address";
545
- readonly internalType: "address";
546
- }];
547
- }, {
548
- readonly type: "error";
549
- readonly name: "SlippageExceeded";
550
- readonly inputs: readonly [{
551
- readonly name: "amountLD";
552
- readonly type: "uint256";
553
- readonly internalType: "uint256";
554
- }, {
555
- readonly name: "minAmountLD";
556
- readonly type: "uint256";
557
- readonly internalType: "uint256";
558
- }];
559
- }];
560
- //# sourceMappingURL=OVaultComposerSyncNative.d.ts.map