@zircuit/ovault-evm 0.0.2 → 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**: `
|
|
141
|
-
- **Run SDK tests**: `
|
|
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: "
|
|
39
|
+
token: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
|
|
40
40
|
},
|
|
41
41
|
ethereum: {
|
|
42
42
|
oft: "0x2D342De4c58a871b3525740C58a1C112D5835865",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zircuit/ovault-evm",
|
|
3
|
-
"version": "0.0.
|
|
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: "
|
|
91
|
+
token: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
|
|
92
92
|
},
|
|
93
93
|
ethereum: {
|
|
94
94
|
oft: "0x2D342De4c58a871b3525740C58a1C112D5835865",
|
|
@@ -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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OVaultComposerSyncNative.d.ts","sourceRoot":"","sources":["../../src/contracts/OVaultComposerSyncNative.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAktB9B,CAAA"}
|
|
@@ -1,723 +0,0 @@
|
|
|
1
|
-
export const OVaultComposerSyncNativeAbi = [
|
|
2
|
-
{
|
|
3
|
-
type: 'constructor',
|
|
4
|
-
inputs: [
|
|
5
|
-
{
|
|
6
|
-
name: '_vault',
|
|
7
|
-
type: 'address',
|
|
8
|
-
internalType: 'address',
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
name: '_assetOFT',
|
|
12
|
-
type: 'address',
|
|
13
|
-
internalType: 'address',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: '_shareOFT',
|
|
17
|
-
type: 'address',
|
|
18
|
-
internalType: 'address',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
stateMutability: 'nonpayable',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
type: 'receive',
|
|
25
|
-
stateMutability: 'payable',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: 'function',
|
|
29
|
-
name: 'ASSET_ERC20',
|
|
30
|
-
inputs: [],
|
|
31
|
-
outputs: [
|
|
32
|
-
{
|
|
33
|
-
name: '',
|
|
34
|
-
type: 'address',
|
|
35
|
-
internalType: 'address',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
stateMutability: 'view',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: 'function',
|
|
42
|
-
name: 'ASSET_OFT',
|
|
43
|
-
inputs: [],
|
|
44
|
-
outputs: [
|
|
45
|
-
{
|
|
46
|
-
name: '',
|
|
47
|
-
type: 'address',
|
|
48
|
-
internalType: 'address',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
stateMutability: 'view',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
type: 'function',
|
|
55
|
-
name: 'ENDPOINT',
|
|
56
|
-
inputs: [],
|
|
57
|
-
outputs: [
|
|
58
|
-
{
|
|
59
|
-
name: '',
|
|
60
|
-
type: 'address',
|
|
61
|
-
internalType: 'address',
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
stateMutability: 'view',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: 'function',
|
|
68
|
-
name: 'SHARE_ERC20',
|
|
69
|
-
inputs: [],
|
|
70
|
-
outputs: [
|
|
71
|
-
{
|
|
72
|
-
name: '',
|
|
73
|
-
type: 'address',
|
|
74
|
-
internalType: 'address',
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
stateMutability: 'view',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
type: 'function',
|
|
81
|
-
name: 'SHARE_OFT',
|
|
82
|
-
inputs: [],
|
|
83
|
-
outputs: [
|
|
84
|
-
{
|
|
85
|
-
name: '',
|
|
86
|
-
type: 'address',
|
|
87
|
-
internalType: 'address',
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
stateMutability: 'view',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: 'function',
|
|
94
|
-
name: 'VAULT',
|
|
95
|
-
inputs: [],
|
|
96
|
-
outputs: [
|
|
97
|
-
{
|
|
98
|
-
name: '',
|
|
99
|
-
type: 'address',
|
|
100
|
-
internalType: 'contract IERC4626',
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
stateMutability: 'view',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
type: 'function',
|
|
107
|
-
name: 'VAULT_EID',
|
|
108
|
-
inputs: [],
|
|
109
|
-
outputs: [
|
|
110
|
-
{
|
|
111
|
-
name: '',
|
|
112
|
-
type: 'uint32',
|
|
113
|
-
internalType: 'uint32',
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
stateMutability: 'view',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
type: 'function',
|
|
120
|
-
name: 'depositAndSend',
|
|
121
|
-
inputs: [
|
|
122
|
-
{
|
|
123
|
-
name: '_assetAmount',
|
|
124
|
-
type: 'uint256',
|
|
125
|
-
internalType: 'uint256',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: '_sendParam',
|
|
129
|
-
type: 'tuple',
|
|
130
|
-
internalType: 'struct SendParam',
|
|
131
|
-
components: [
|
|
132
|
-
{
|
|
133
|
-
name: 'dstEid',
|
|
134
|
-
type: 'uint32',
|
|
135
|
-
internalType: 'uint32',
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'to',
|
|
139
|
-
type: 'bytes32',
|
|
140
|
-
internalType: 'bytes32',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: 'amountLD',
|
|
144
|
-
type: 'uint256',
|
|
145
|
-
internalType: 'uint256',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: 'minAmountLD',
|
|
149
|
-
type: 'uint256',
|
|
150
|
-
internalType: 'uint256',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: 'extraOptions',
|
|
154
|
-
type: 'bytes',
|
|
155
|
-
internalType: 'bytes',
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: 'composeMsg',
|
|
159
|
-
type: 'bytes',
|
|
160
|
-
internalType: 'bytes',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: 'oftCmd',
|
|
164
|
-
type: 'bytes',
|
|
165
|
-
internalType: 'bytes',
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: '_refundAddress',
|
|
171
|
-
type: 'address',
|
|
172
|
-
internalType: 'address',
|
|
173
|
-
},
|
|
174
|
-
],
|
|
175
|
-
outputs: [],
|
|
176
|
-
stateMutability: 'payable',
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
type: 'function',
|
|
180
|
-
name: 'depositNativeAndSend',
|
|
181
|
-
inputs: [
|
|
182
|
-
{
|
|
183
|
-
name: '_assetAmount',
|
|
184
|
-
type: 'uint256',
|
|
185
|
-
internalType: 'uint256',
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: '_sendParam',
|
|
189
|
-
type: 'tuple',
|
|
190
|
-
internalType: 'struct SendParam',
|
|
191
|
-
components: [
|
|
192
|
-
{
|
|
193
|
-
name: 'dstEid',
|
|
194
|
-
type: 'uint32',
|
|
195
|
-
internalType: 'uint32',
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name: 'to',
|
|
199
|
-
type: 'bytes32',
|
|
200
|
-
internalType: 'bytes32',
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
name: 'amountLD',
|
|
204
|
-
type: 'uint256',
|
|
205
|
-
internalType: 'uint256',
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
name: 'minAmountLD',
|
|
209
|
-
type: 'uint256',
|
|
210
|
-
internalType: 'uint256',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
name: 'extraOptions',
|
|
214
|
-
type: 'bytes',
|
|
215
|
-
internalType: 'bytes',
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
name: 'composeMsg',
|
|
219
|
-
type: 'bytes',
|
|
220
|
-
internalType: 'bytes',
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: 'oftCmd',
|
|
224
|
-
type: 'bytes',
|
|
225
|
-
internalType: 'bytes',
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: '_refundAddress',
|
|
231
|
-
type: 'address',
|
|
232
|
-
internalType: 'address',
|
|
233
|
-
},
|
|
234
|
-
],
|
|
235
|
-
outputs: [],
|
|
236
|
-
stateMutability: 'payable',
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
type: 'function',
|
|
240
|
-
name: 'handleCompose',
|
|
241
|
-
inputs: [
|
|
242
|
-
{
|
|
243
|
-
name: '_oftIn',
|
|
244
|
-
type: 'address',
|
|
245
|
-
internalType: 'address',
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
name: '_composeFrom',
|
|
249
|
-
type: 'bytes32',
|
|
250
|
-
internalType: 'bytes32',
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
name: '_composeMsg',
|
|
254
|
-
type: 'bytes',
|
|
255
|
-
internalType: 'bytes',
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
name: '_amount',
|
|
259
|
-
type: 'uint256',
|
|
260
|
-
internalType: 'uint256',
|
|
261
|
-
},
|
|
262
|
-
],
|
|
263
|
-
outputs: [],
|
|
264
|
-
stateMutability: 'payable',
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
type: 'function',
|
|
268
|
-
name: 'lzCompose',
|
|
269
|
-
inputs: [
|
|
270
|
-
{
|
|
271
|
-
name: '_composeSender',
|
|
272
|
-
type: 'address',
|
|
273
|
-
internalType: 'address',
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
name: '_guid',
|
|
277
|
-
type: 'bytes32',
|
|
278
|
-
internalType: 'bytes32',
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
name: '_message',
|
|
282
|
-
type: 'bytes',
|
|
283
|
-
internalType: 'bytes',
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
name: '',
|
|
287
|
-
type: 'address',
|
|
288
|
-
internalType: 'address',
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
name: '',
|
|
292
|
-
type: 'bytes',
|
|
293
|
-
internalType: 'bytes',
|
|
294
|
-
},
|
|
295
|
-
],
|
|
296
|
-
outputs: [],
|
|
297
|
-
stateMutability: 'payable',
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
type: 'function',
|
|
301
|
-
name: 'quoteSend',
|
|
302
|
-
inputs: [
|
|
303
|
-
{
|
|
304
|
-
name: '_from',
|
|
305
|
-
type: 'address',
|
|
306
|
-
internalType: 'address',
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
name: '_targetOFT',
|
|
310
|
-
type: 'address',
|
|
311
|
-
internalType: 'address',
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
name: '_vaultInAmount',
|
|
315
|
-
type: 'uint256',
|
|
316
|
-
internalType: 'uint256',
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
name: '_sendParam',
|
|
320
|
-
type: 'tuple',
|
|
321
|
-
internalType: 'struct SendParam',
|
|
322
|
-
components: [
|
|
323
|
-
{
|
|
324
|
-
name: 'dstEid',
|
|
325
|
-
type: 'uint32',
|
|
326
|
-
internalType: 'uint32',
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
name: 'to',
|
|
330
|
-
type: 'bytes32',
|
|
331
|
-
internalType: 'bytes32',
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
name: 'amountLD',
|
|
335
|
-
type: 'uint256',
|
|
336
|
-
internalType: 'uint256',
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
name: 'minAmountLD',
|
|
340
|
-
type: 'uint256',
|
|
341
|
-
internalType: 'uint256',
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
name: 'extraOptions',
|
|
345
|
-
type: 'bytes',
|
|
346
|
-
internalType: 'bytes',
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
name: 'composeMsg',
|
|
350
|
-
type: 'bytes',
|
|
351
|
-
internalType: 'bytes',
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
name: 'oftCmd',
|
|
355
|
-
type: 'bytes',
|
|
356
|
-
internalType: 'bytes',
|
|
357
|
-
},
|
|
358
|
-
],
|
|
359
|
-
},
|
|
360
|
-
],
|
|
361
|
-
outputs: [
|
|
362
|
-
{
|
|
363
|
-
name: '',
|
|
364
|
-
type: 'tuple',
|
|
365
|
-
internalType: 'struct MessagingFee',
|
|
366
|
-
components: [
|
|
367
|
-
{
|
|
368
|
-
name: 'nativeFee',
|
|
369
|
-
type: 'uint256',
|
|
370
|
-
internalType: 'uint256',
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
name: 'lzTokenFee',
|
|
374
|
-
type: 'uint256',
|
|
375
|
-
internalType: 'uint256',
|
|
376
|
-
},
|
|
377
|
-
],
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
|
-
stateMutability: 'view',
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
type: 'function',
|
|
384
|
-
name: 'redeemAndSend',
|
|
385
|
-
inputs: [
|
|
386
|
-
{
|
|
387
|
-
name: '_shareAmount',
|
|
388
|
-
type: 'uint256',
|
|
389
|
-
internalType: 'uint256',
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
name: '_sendParam',
|
|
393
|
-
type: 'tuple',
|
|
394
|
-
internalType: 'struct SendParam',
|
|
395
|
-
components: [
|
|
396
|
-
{
|
|
397
|
-
name: 'dstEid',
|
|
398
|
-
type: 'uint32',
|
|
399
|
-
internalType: 'uint32',
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
name: 'to',
|
|
403
|
-
type: 'bytes32',
|
|
404
|
-
internalType: 'bytes32',
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
name: 'amountLD',
|
|
408
|
-
type: 'uint256',
|
|
409
|
-
internalType: 'uint256',
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
name: 'minAmountLD',
|
|
413
|
-
type: 'uint256',
|
|
414
|
-
internalType: 'uint256',
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
name: 'extraOptions',
|
|
418
|
-
type: 'bytes',
|
|
419
|
-
internalType: 'bytes',
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
name: 'composeMsg',
|
|
423
|
-
type: 'bytes',
|
|
424
|
-
internalType: 'bytes',
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
name: 'oftCmd',
|
|
428
|
-
type: 'bytes',
|
|
429
|
-
internalType: 'bytes',
|
|
430
|
-
},
|
|
431
|
-
],
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
name: '_refundAddress',
|
|
435
|
-
type: 'address',
|
|
436
|
-
internalType: 'address',
|
|
437
|
-
},
|
|
438
|
-
],
|
|
439
|
-
outputs: [],
|
|
440
|
-
stateMutability: 'payable',
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
type: 'event',
|
|
444
|
-
name: 'Deposited',
|
|
445
|
-
inputs: [
|
|
446
|
-
{
|
|
447
|
-
name: 'sender',
|
|
448
|
-
type: 'bytes32',
|
|
449
|
-
indexed: false,
|
|
450
|
-
internalType: 'bytes32',
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
name: 'recipient',
|
|
454
|
-
type: 'bytes32',
|
|
455
|
-
indexed: false,
|
|
456
|
-
internalType: 'bytes32',
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
name: 'dstEid',
|
|
460
|
-
type: 'uint32',
|
|
461
|
-
indexed: false,
|
|
462
|
-
internalType: 'uint32',
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
name: 'assetAmt',
|
|
466
|
-
type: 'uint256',
|
|
467
|
-
indexed: false,
|
|
468
|
-
internalType: 'uint256',
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
name: 'shareAmt',
|
|
472
|
-
type: 'uint256',
|
|
473
|
-
indexed: false,
|
|
474
|
-
internalType: 'uint256',
|
|
475
|
-
},
|
|
476
|
-
],
|
|
477
|
-
anonymous: false,
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
type: 'event',
|
|
481
|
-
name: 'Redeemed',
|
|
482
|
-
inputs: [
|
|
483
|
-
{
|
|
484
|
-
name: 'sender',
|
|
485
|
-
type: 'bytes32',
|
|
486
|
-
indexed: false,
|
|
487
|
-
internalType: 'bytes32',
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
name: 'recipient',
|
|
491
|
-
type: 'bytes32',
|
|
492
|
-
indexed: false,
|
|
493
|
-
internalType: 'bytes32',
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
name: 'dstEid',
|
|
497
|
-
type: 'uint32',
|
|
498
|
-
indexed: false,
|
|
499
|
-
internalType: 'uint32',
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
name: 'shareAmt',
|
|
503
|
-
type: 'uint256',
|
|
504
|
-
indexed: false,
|
|
505
|
-
internalType: 'uint256',
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
name: 'assetAmt',
|
|
509
|
-
type: 'uint256',
|
|
510
|
-
indexed: false,
|
|
511
|
-
internalType: 'uint256',
|
|
512
|
-
},
|
|
513
|
-
],
|
|
514
|
-
anonymous: false,
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
type: 'event',
|
|
518
|
-
name: 'Refunded',
|
|
519
|
-
inputs: [
|
|
520
|
-
{
|
|
521
|
-
name: 'guid',
|
|
522
|
-
type: 'bytes32',
|
|
523
|
-
indexed: true,
|
|
524
|
-
internalType: 'bytes32',
|
|
525
|
-
},
|
|
526
|
-
],
|
|
527
|
-
anonymous: false,
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
type: 'event',
|
|
531
|
-
name: 'Sent',
|
|
532
|
-
inputs: [
|
|
533
|
-
{
|
|
534
|
-
name: 'guid',
|
|
535
|
-
type: 'bytes32',
|
|
536
|
-
indexed: true,
|
|
537
|
-
internalType: 'bytes32',
|
|
538
|
-
},
|
|
539
|
-
],
|
|
540
|
-
anonymous: false,
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
type: 'error',
|
|
544
|
-
name: 'AmountExceedsMsgValue',
|
|
545
|
-
inputs: [],
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
type: 'error',
|
|
549
|
-
name: 'AssetOFTTokenNotNative',
|
|
550
|
-
inputs: [],
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
type: 'error',
|
|
554
|
-
name: 'AssetTokenNotVaultAsset',
|
|
555
|
-
inputs: [
|
|
556
|
-
{
|
|
557
|
-
name: 'assetERC20',
|
|
558
|
-
type: 'address',
|
|
559
|
-
internalType: 'address',
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
name: 'vaultAsset',
|
|
563
|
-
type: 'address',
|
|
564
|
-
internalType: 'address',
|
|
565
|
-
},
|
|
566
|
-
],
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
type: 'error',
|
|
570
|
-
name: 'ERC4626ExceededMaxDeposit',
|
|
571
|
-
inputs: [
|
|
572
|
-
{
|
|
573
|
-
name: 'receiver',
|
|
574
|
-
type: 'address',
|
|
575
|
-
internalType: 'address',
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
name: 'assets',
|
|
579
|
-
type: 'uint256',
|
|
580
|
-
internalType: 'uint256',
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
name: 'max',
|
|
584
|
-
type: 'uint256',
|
|
585
|
-
internalType: 'uint256',
|
|
586
|
-
},
|
|
587
|
-
],
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
type: 'error',
|
|
591
|
-
name: 'ERC4626ExceededMaxRedeem',
|
|
592
|
-
inputs: [
|
|
593
|
-
{
|
|
594
|
-
name: 'owner',
|
|
595
|
-
type: 'address',
|
|
596
|
-
internalType: 'address',
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
name: 'shares',
|
|
600
|
-
type: 'uint256',
|
|
601
|
-
internalType: 'uint256',
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
name: 'max',
|
|
605
|
-
type: 'uint256',
|
|
606
|
-
internalType: 'uint256',
|
|
607
|
-
},
|
|
608
|
-
],
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
type: 'error',
|
|
612
|
-
name: 'InsufficientMsgValue',
|
|
613
|
-
inputs: [
|
|
614
|
-
{
|
|
615
|
-
name: 'expectedMsgValue',
|
|
616
|
-
type: 'uint256',
|
|
617
|
-
internalType: 'uint256',
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
name: 'actualMsgValue',
|
|
621
|
-
type: 'uint256',
|
|
622
|
-
internalType: 'uint256',
|
|
623
|
-
},
|
|
624
|
-
],
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
type: 'error',
|
|
628
|
-
name: 'NoMsgValueExpected',
|
|
629
|
-
inputs: [],
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
type: 'error',
|
|
633
|
-
name: 'OnlyEndpoint',
|
|
634
|
-
inputs: [
|
|
635
|
-
{
|
|
636
|
-
name: 'caller',
|
|
637
|
-
type: 'address',
|
|
638
|
-
internalType: 'address',
|
|
639
|
-
},
|
|
640
|
-
],
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
type: 'error',
|
|
644
|
-
name: 'OnlySelf',
|
|
645
|
-
inputs: [
|
|
646
|
-
{
|
|
647
|
-
name: 'caller',
|
|
648
|
-
type: 'address',
|
|
649
|
-
internalType: 'address',
|
|
650
|
-
},
|
|
651
|
-
],
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
type: 'error',
|
|
655
|
-
name: 'OnlyValidComposeCaller',
|
|
656
|
-
inputs: [
|
|
657
|
-
{
|
|
658
|
-
name: 'caller',
|
|
659
|
-
type: 'address',
|
|
660
|
-
internalType: 'address',
|
|
661
|
-
},
|
|
662
|
-
],
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
type: 'error',
|
|
666
|
-
name: 'ReentrancyGuardReentrantCall',
|
|
667
|
-
inputs: [],
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
type: 'error',
|
|
671
|
-
name: 'SafeERC20FailedOperation',
|
|
672
|
-
inputs: [
|
|
673
|
-
{
|
|
674
|
-
name: 'token',
|
|
675
|
-
type: 'address',
|
|
676
|
-
internalType: 'address',
|
|
677
|
-
},
|
|
678
|
-
],
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
type: 'error',
|
|
682
|
-
name: 'ShareOFTNotAdapter',
|
|
683
|
-
inputs: [
|
|
684
|
-
{
|
|
685
|
-
name: 'shareOFT',
|
|
686
|
-
type: 'address',
|
|
687
|
-
internalType: 'address',
|
|
688
|
-
},
|
|
689
|
-
],
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
type: 'error',
|
|
693
|
-
name: 'ShareTokenNotVault',
|
|
694
|
-
inputs: [
|
|
695
|
-
{
|
|
696
|
-
name: 'shareERC20',
|
|
697
|
-
type: 'address',
|
|
698
|
-
internalType: 'address',
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
name: 'vault',
|
|
702
|
-
type: 'address',
|
|
703
|
-
internalType: 'address',
|
|
704
|
-
},
|
|
705
|
-
],
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
type: 'error',
|
|
709
|
-
name: 'SlippageExceeded',
|
|
710
|
-
inputs: [
|
|
711
|
-
{
|
|
712
|
-
name: 'amountLD',
|
|
713
|
-
type: 'uint256',
|
|
714
|
-
internalType: 'uint256',
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
name: 'minAmountLD',
|
|
718
|
-
type: 'uint256',
|
|
719
|
-
internalType: 'uint256',
|
|
720
|
-
},
|
|
721
|
-
],
|
|
722
|
-
},
|
|
723
|
-
];
|