@dripfi/drip-sdk 1.4.28-bridge-perq → 1.4.28-silo-sdk

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.
Files changed (40) hide show
  1. package/README.md +45 -16
  2. package/dist/PerqSdk.d.ts +6 -7
  3. package/dist/PerqSdk.js +8 -13
  4. package/dist/abi/index.d.ts +0 -286
  5. package/dist/abi/index.js +4 -8
  6. package/dist/contracts/{BasePerqContract.d.ts → BaseContract.d.ts} +1 -1
  7. package/dist/contracts/{BasePerqContract.js → BaseContract.js} +2 -2
  8. package/dist/contracts/index.d.ts +6 -8
  9. package/dist/contracts/index.js +7 -11
  10. package/dist/contracts/{PerqSwapAndRecyclerContract.d.ts → perq/PerqSwapAndRecyclerContract.d.ts} +3 -3
  11. package/dist/contracts/{PerqSwapAndRecyclerContract.js → perq/PerqSwapAndRecyclerContract.js} +3 -3
  12. package/dist/contracts/{PerqTokenContract.d.ts → perq/PerqTokenContract.d.ts} +2 -2
  13. package/dist/contracts/{PerqTokenContract.js → perq/PerqTokenContract.js} +3 -3
  14. package/dist/contracts/{PerqTokenRecyclerContract.d.ts → perq/PerqTokenRecyclerContract.d.ts} +3 -3
  15. package/dist/contracts/{PerqTokenRecyclerContract.js → perq/PerqTokenRecyclerContract.js} +3 -3
  16. package/dist/contracts/{PerqVestingContract.d.ts → perq/PerqVestingContract.d.ts} +3 -3
  17. package/dist/contracts/{PerqVestingContract.js → perq/PerqVestingContract.js} +3 -3
  18. package/dist/subpackages/SiloPackage.d.ts +18 -0
  19. package/dist/subpackages/SiloPackage.js +115 -0
  20. package/dist/subpackages/VaultHandlerPackage.d.ts +37 -0
  21. package/dist/subpackages/VaultHandlerPackage.js +154 -0
  22. package/dist/types/DeployedProject.d.ts +1 -0
  23. package/dist/types/PerqConfig.d.ts +0 -2
  24. package/dist/types/PerqConfig.js +0 -4
  25. package/dist/types/SdkType.d.ts +2 -0
  26. package/dist/types/SdkType.js +2 -0
  27. package/dist/types/VaultData.d.ts +2 -0
  28. package/package.json +2 -1
  29. package/dist/abi/BridgeMainnetPerqToSonicAbi.json +0 -598
  30. package/dist/abi/BridgeSonicPerqToMainnetAbi.json +0 -733
  31. package/dist/contracts/BridgeMainnetPerqToSonicContract.d.ts +0 -26
  32. package/dist/contracts/BridgeMainnetPerqToSonicContract.js +0 -48
  33. package/dist/contracts/BridgeSonicPerqToMainnetContract.d.ts +0 -26
  34. package/dist/contracts/BridgeSonicPerqToMainnetContract.js +0 -48
  35. package/dist/subpackages/BridgePerqPackage.d.ts +0 -33
  36. package/dist/subpackages/BridgePerqPackage.js +0 -201
  37. /package/dist/abi/{PerqSwapAndRecyclerAbi.json → perq/PerqSwapAndRecyclerAbi.json} +0 -0
  38. /package/dist/abi/{PerqTokenAbi.json → perq/PerqTokenAbi.json} +0 -0
  39. /package/dist/abi/{PerqVestingAbi.json → perq/PerqVestingAbi.json} +0 -0
  40. /package/dist/abi/{TokenRecyclerAbi.json → perq/TokenRecyclerAbi.json} +0 -0
@@ -1,733 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- { "internalType": "string", "name": "_name", "type": "string" },
5
- { "internalType": "string", "name": "_symbol", "type": "string" },
6
- { "internalType": "address", "name": "_lzEndpoint", "type": "address" },
7
- { "internalType": "address", "name": "_owner", "type": "address" }
8
- ],
9
- "stateMutability": "nonpayable",
10
- "type": "constructor"
11
- },
12
- {
13
- "inputs": [
14
- { "internalType": "address", "name": "spender", "type": "address" },
15
- { "internalType": "uint256", "name": "allowance", "type": "uint256" },
16
- { "internalType": "uint256", "name": "needed", "type": "uint256" }
17
- ],
18
- "name": "ERC20InsufficientAllowance",
19
- "type": "error"
20
- },
21
- {
22
- "inputs": [
23
- { "internalType": "address", "name": "sender", "type": "address" },
24
- { "internalType": "uint256", "name": "balance", "type": "uint256" },
25
- { "internalType": "uint256", "name": "needed", "type": "uint256" }
26
- ],
27
- "name": "ERC20InsufficientBalance",
28
- "type": "error"
29
- },
30
- {
31
- "inputs": [{ "internalType": "address", "name": "approver", "type": "address" }],
32
- "name": "ERC20InvalidApprover",
33
- "type": "error"
34
- },
35
- {
36
- "inputs": [{ "internalType": "address", "name": "receiver", "type": "address" }],
37
- "name": "ERC20InvalidReceiver",
38
- "type": "error"
39
- },
40
- {
41
- "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }],
42
- "name": "ERC20InvalidSender",
43
- "type": "error"
44
- },
45
- {
46
- "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }],
47
- "name": "ERC20InvalidSpender",
48
- "type": "error"
49
- },
50
- { "inputs": [], "name": "InvalidDelegate", "type": "error" },
51
- { "inputs": [], "name": "InvalidEndpointCall", "type": "error" },
52
- { "inputs": [], "name": "InvalidLocalDecimals", "type": "error" },
53
- {
54
- "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }],
55
- "name": "InvalidOptions",
56
- "type": "error"
57
- },
58
- { "inputs": [], "name": "LzTokenUnavailable", "type": "error" },
59
- { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" },
60
- {
61
- "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }],
62
- "name": "NotEnoughNative",
63
- "type": "error"
64
- },
65
- {
66
- "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }],
67
- "name": "OnlyEndpoint",
68
- "type": "error"
69
- },
70
- {
71
- "inputs": [
72
- { "internalType": "uint32", "name": "eid", "type": "uint32" },
73
- { "internalType": "bytes32", "name": "sender", "type": "bytes32" }
74
- ],
75
- "name": "OnlyPeer",
76
- "type": "error"
77
- },
78
- { "inputs": [], "name": "OnlySelf", "type": "error" },
79
- {
80
- "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }],
81
- "name": "OwnableInvalidOwner",
82
- "type": "error"
83
- },
84
- {
85
- "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
86
- "name": "OwnableUnauthorizedAccount",
87
- "type": "error"
88
- },
89
- {
90
- "inputs": [{ "internalType": "address", "name": "token", "type": "address" }],
91
- "name": "SafeERC20FailedOperation",
92
- "type": "error"
93
- },
94
- {
95
- "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }],
96
- "name": "SimulationResult",
97
- "type": "error"
98
- },
99
- {
100
- "inputs": [
101
- { "internalType": "uint256", "name": "amountLD", "type": "uint256" },
102
- { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }
103
- ],
104
- "name": "SlippageExceeded",
105
- "type": "error"
106
- },
107
- {
108
- "anonymous": false,
109
- "inputs": [
110
- { "indexed": true, "internalType": "address", "name": "owner", "type": "address" },
111
- { "indexed": true, "internalType": "address", "name": "spender", "type": "address" },
112
- { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
113
- ],
114
- "name": "Approval",
115
- "type": "event"
116
- },
117
- {
118
- "anonymous": false,
119
- "inputs": [
120
- {
121
- "components": [
122
- { "internalType": "uint32", "name": "eid", "type": "uint32" },
123
- { "internalType": "uint16", "name": "msgType", "type": "uint16" },
124
- { "internalType": "bytes", "name": "options", "type": "bytes" }
125
- ],
126
- "indexed": false,
127
- "internalType": "struct EnforcedOptionParam[]",
128
- "name": "_enforcedOptions",
129
- "type": "tuple[]"
130
- }
131
- ],
132
- "name": "EnforcedOptionSet",
133
- "type": "event"
134
- },
135
- {
136
- "anonymous": false,
137
- "inputs": [{ "indexed": false, "internalType": "address", "name": "inspector", "type": "address" }],
138
- "name": "MsgInspectorSet",
139
- "type": "event"
140
- },
141
- {
142
- "anonymous": false,
143
- "inputs": [
144
- { "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" },
145
- { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" },
146
- { "indexed": true, "internalType": "address", "name": "toAddress", "type": "address" },
147
- { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }
148
- ],
149
- "name": "OFTReceived",
150
- "type": "event"
151
- },
152
- {
153
- "anonymous": false,
154
- "inputs": [
155
- { "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" },
156
- { "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" },
157
- { "indexed": true, "internalType": "address", "name": "fromAddress", "type": "address" },
158
- { "indexed": false, "internalType": "uint256", "name": "amountSentLD", "type": "uint256" },
159
- { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }
160
- ],
161
- "name": "OFTSent",
162
- "type": "event"
163
- },
164
- {
165
- "anonymous": false,
166
- "inputs": [
167
- { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
168
- { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
169
- ],
170
- "name": "OwnershipTransferred",
171
- "type": "event"
172
- },
173
- {
174
- "anonymous": false,
175
- "inputs": [
176
- { "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" },
177
- { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }
178
- ],
179
- "name": "PeerSet",
180
- "type": "event"
181
- },
182
- {
183
- "anonymous": false,
184
- "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }],
185
- "name": "PreCrimeSet",
186
- "type": "event"
187
- },
188
- {
189
- "anonymous": false,
190
- "inputs": [
191
- { "indexed": true, "internalType": "address", "name": "from", "type": "address" },
192
- { "indexed": true, "internalType": "address", "name": "to", "type": "address" },
193
- { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
194
- ],
195
- "name": "Transfer",
196
- "type": "event"
197
- },
198
- {
199
- "inputs": [],
200
- "name": "SEND",
201
- "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }],
202
- "stateMutability": "view",
203
- "type": "function"
204
- },
205
- {
206
- "inputs": [],
207
- "name": "SEND_AND_CALL",
208
- "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }],
209
- "stateMutability": "view",
210
- "type": "function"
211
- },
212
- {
213
- "inputs": [
214
- {
215
- "components": [
216
- { "internalType": "uint32", "name": "srcEid", "type": "uint32" },
217
- { "internalType": "bytes32", "name": "sender", "type": "bytes32" },
218
- { "internalType": "uint64", "name": "nonce", "type": "uint64" }
219
- ],
220
- "internalType": "struct Origin",
221
- "name": "origin",
222
- "type": "tuple"
223
- }
224
- ],
225
- "name": "allowInitializePath",
226
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
227
- "stateMutability": "view",
228
- "type": "function"
229
- },
230
- {
231
- "inputs": [
232
- { "internalType": "address", "name": "owner", "type": "address" },
233
- { "internalType": "address", "name": "spender", "type": "address" }
234
- ],
235
- "name": "allowance",
236
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
237
- "stateMutability": "view",
238
- "type": "function"
239
- },
240
- {
241
- "inputs": [],
242
- "name": "approvalRequired",
243
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
244
- "stateMutability": "pure",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [
249
- { "internalType": "address", "name": "spender", "type": "address" },
250
- { "internalType": "uint256", "name": "value", "type": "uint256" }
251
- ],
252
- "name": "approve",
253
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
254
- "stateMutability": "nonpayable",
255
- "type": "function"
256
- },
257
- {
258
- "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
259
- "name": "balanceOf",
260
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
261
- "stateMutability": "view",
262
- "type": "function"
263
- },
264
- {
265
- "inputs": [
266
- { "internalType": "uint32", "name": "_eid", "type": "uint32" },
267
- { "internalType": "uint16", "name": "_msgType", "type": "uint16" },
268
- { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }
269
- ],
270
- "name": "combineOptions",
271
- "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
272
- "stateMutability": "view",
273
- "type": "function"
274
- },
275
- {
276
- "inputs": [],
277
- "name": "decimalConversionRate",
278
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
279
- "stateMutability": "view",
280
- "type": "function"
281
- },
282
- {
283
- "inputs": [],
284
- "name": "decimals",
285
- "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
286
- "stateMutability": "view",
287
- "type": "function"
288
- },
289
- {
290
- "inputs": [],
291
- "name": "endpoint",
292
- "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }],
293
- "stateMutability": "view",
294
- "type": "function"
295
- },
296
- {
297
- "inputs": [
298
- { "internalType": "uint32", "name": "eid", "type": "uint32" },
299
- { "internalType": "uint16", "name": "msgType", "type": "uint16" }
300
- ],
301
- "name": "enforcedOptions",
302
- "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }],
303
- "stateMutability": "view",
304
- "type": "function"
305
- },
306
- {
307
- "inputs": [
308
- {
309
- "components": [
310
- { "internalType": "uint32", "name": "srcEid", "type": "uint32" },
311
- { "internalType": "bytes32", "name": "sender", "type": "bytes32" },
312
- { "internalType": "uint64", "name": "nonce", "type": "uint64" }
313
- ],
314
- "internalType": "struct Origin",
315
- "name": "",
316
- "type": "tuple"
317
- },
318
- { "internalType": "bytes", "name": "", "type": "bytes" },
319
- { "internalType": "address", "name": "_sender", "type": "address" }
320
- ],
321
- "name": "isComposeMsgSender",
322
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
323
- "stateMutability": "view",
324
- "type": "function"
325
- },
326
- {
327
- "inputs": [
328
- { "internalType": "uint32", "name": "_eid", "type": "uint32" },
329
- { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }
330
- ],
331
- "name": "isPeer",
332
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
333
- "stateMutability": "view",
334
- "type": "function"
335
- },
336
- {
337
- "inputs": [
338
- {
339
- "components": [
340
- { "internalType": "uint32", "name": "srcEid", "type": "uint32" },
341
- { "internalType": "bytes32", "name": "sender", "type": "bytes32" },
342
- { "internalType": "uint64", "name": "nonce", "type": "uint64" }
343
- ],
344
- "internalType": "struct Origin",
345
- "name": "_origin",
346
- "type": "tuple"
347
- },
348
- { "internalType": "bytes32", "name": "_guid", "type": "bytes32" },
349
- { "internalType": "bytes", "name": "_message", "type": "bytes" },
350
- { "internalType": "address", "name": "_executor", "type": "address" },
351
- { "internalType": "bytes", "name": "_extraData", "type": "bytes" }
352
- ],
353
- "name": "lzReceive",
354
- "outputs": [],
355
- "stateMutability": "payable",
356
- "type": "function"
357
- },
358
- {
359
- "inputs": [
360
- {
361
- "components": [
362
- {
363
- "components": [
364
- { "internalType": "uint32", "name": "srcEid", "type": "uint32" },
365
- { "internalType": "bytes32", "name": "sender", "type": "bytes32" },
366
- { "internalType": "uint64", "name": "nonce", "type": "uint64" }
367
- ],
368
- "internalType": "struct Origin",
369
- "name": "origin",
370
- "type": "tuple"
371
- },
372
- { "internalType": "uint32", "name": "dstEid", "type": "uint32" },
373
- { "internalType": "address", "name": "receiver", "type": "address" },
374
- { "internalType": "bytes32", "name": "guid", "type": "bytes32" },
375
- { "internalType": "uint256", "name": "value", "type": "uint256" },
376
- { "internalType": "address", "name": "executor", "type": "address" },
377
- { "internalType": "bytes", "name": "message", "type": "bytes" },
378
- { "internalType": "bytes", "name": "extraData", "type": "bytes" }
379
- ],
380
- "internalType": "struct InboundPacket[]",
381
- "name": "_packets",
382
- "type": "tuple[]"
383
- }
384
- ],
385
- "name": "lzReceiveAndRevert",
386
- "outputs": [],
387
- "stateMutability": "payable",
388
- "type": "function"
389
- },
390
- {
391
- "inputs": [
392
- {
393
- "components": [
394
- { "internalType": "uint32", "name": "srcEid", "type": "uint32" },
395
- { "internalType": "bytes32", "name": "sender", "type": "bytes32" },
396
- { "internalType": "uint64", "name": "nonce", "type": "uint64" }
397
- ],
398
- "internalType": "struct Origin",
399
- "name": "_origin",
400
- "type": "tuple"
401
- },
402
- { "internalType": "bytes32", "name": "_guid", "type": "bytes32" },
403
- { "internalType": "bytes", "name": "_message", "type": "bytes" },
404
- { "internalType": "address", "name": "_executor", "type": "address" },
405
- { "internalType": "bytes", "name": "_extraData", "type": "bytes" }
406
- ],
407
- "name": "lzReceiveSimulate",
408
- "outputs": [],
409
- "stateMutability": "payable",
410
- "type": "function"
411
- },
412
- {
413
- "inputs": [],
414
- "name": "msgInspector",
415
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
416
- "stateMutability": "view",
417
- "type": "function"
418
- },
419
- {
420
- "inputs": [],
421
- "name": "name",
422
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
423
- "stateMutability": "view",
424
- "type": "function"
425
- },
426
- {
427
- "inputs": [
428
- { "internalType": "uint32", "name": "", "type": "uint32" },
429
- { "internalType": "bytes32", "name": "", "type": "bytes32" }
430
- ],
431
- "name": "nextNonce",
432
- "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }],
433
- "stateMutability": "view",
434
- "type": "function"
435
- },
436
- {
437
- "inputs": [],
438
- "name": "oApp",
439
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
440
- "stateMutability": "view",
441
- "type": "function"
442
- },
443
- {
444
- "inputs": [],
445
- "name": "oAppVersion",
446
- "outputs": [
447
- { "internalType": "uint64", "name": "senderVersion", "type": "uint64" },
448
- { "internalType": "uint64", "name": "receiverVersion", "type": "uint64" }
449
- ],
450
- "stateMutability": "pure",
451
- "type": "function"
452
- },
453
- {
454
- "inputs": [],
455
- "name": "oftVersion",
456
- "outputs": [
457
- { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" },
458
- { "internalType": "uint64", "name": "version", "type": "uint64" }
459
- ],
460
- "stateMutability": "pure",
461
- "type": "function"
462
- },
463
- {
464
- "inputs": [],
465
- "name": "owner",
466
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
467
- "stateMutability": "view",
468
- "type": "function"
469
- },
470
- {
471
- "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }],
472
- "name": "peers",
473
- "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }],
474
- "stateMutability": "view",
475
- "type": "function"
476
- },
477
- {
478
- "inputs": [],
479
- "name": "preCrime",
480
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
481
- "stateMutability": "view",
482
- "type": "function"
483
- },
484
- {
485
- "inputs": [
486
- {
487
- "components": [
488
- { "internalType": "uint32", "name": "dstEid", "type": "uint32" },
489
- { "internalType": "bytes32", "name": "to", "type": "bytes32" },
490
- { "internalType": "uint256", "name": "amountLD", "type": "uint256" },
491
- { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" },
492
- { "internalType": "bytes", "name": "extraOptions", "type": "bytes" },
493
- { "internalType": "bytes", "name": "composeMsg", "type": "bytes" },
494
- { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }
495
- ],
496
- "internalType": "struct SendParam",
497
- "name": "_sendParam",
498
- "type": "tuple"
499
- }
500
- ],
501
- "name": "quoteOFT",
502
- "outputs": [
503
- {
504
- "components": [
505
- { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" },
506
- { "internalType": "uint256", "name": "maxAmountLD", "type": "uint256" }
507
- ],
508
- "internalType": "struct OFTLimit",
509
- "name": "oftLimit",
510
- "type": "tuple"
511
- },
512
- {
513
- "components": [
514
- { "internalType": "int256", "name": "feeAmountLD", "type": "int256" },
515
- { "internalType": "string", "name": "description", "type": "string" }
516
- ],
517
- "internalType": "struct OFTFeeDetail[]",
518
- "name": "oftFeeDetails",
519
- "type": "tuple[]"
520
- },
521
- {
522
- "components": [
523
- { "internalType": "uint256", "name": "amountSentLD", "type": "uint256" },
524
- { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }
525
- ],
526
- "internalType": "struct OFTReceipt",
527
- "name": "oftReceipt",
528
- "type": "tuple"
529
- }
530
- ],
531
- "stateMutability": "view",
532
- "type": "function"
533
- },
534
- {
535
- "inputs": [
536
- {
537
- "components": [
538
- { "internalType": "uint32", "name": "dstEid", "type": "uint32" },
539
- { "internalType": "bytes32", "name": "to", "type": "bytes32" },
540
- { "internalType": "uint256", "name": "amountLD", "type": "uint256" },
541
- { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" },
542
- { "internalType": "bytes", "name": "extraOptions", "type": "bytes" },
543
- { "internalType": "bytes", "name": "composeMsg", "type": "bytes" },
544
- { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }
545
- ],
546
- "internalType": "struct SendParam",
547
- "name": "_sendParam",
548
- "type": "tuple"
549
- },
550
- { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }
551
- ],
552
- "name": "quoteSend",
553
- "outputs": [
554
- {
555
- "components": [
556
- { "internalType": "uint256", "name": "nativeFee", "type": "uint256" },
557
- { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }
558
- ],
559
- "internalType": "struct MessagingFee",
560
- "name": "msgFee",
561
- "type": "tuple"
562
- }
563
- ],
564
- "stateMutability": "view",
565
- "type": "function"
566
- },
567
- { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
568
- {
569
- "inputs": [
570
- {
571
- "components": [
572
- { "internalType": "uint32", "name": "dstEid", "type": "uint32" },
573
- { "internalType": "bytes32", "name": "to", "type": "bytes32" },
574
- { "internalType": "uint256", "name": "amountLD", "type": "uint256" },
575
- { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" },
576
- { "internalType": "bytes", "name": "extraOptions", "type": "bytes" },
577
- { "internalType": "bytes", "name": "composeMsg", "type": "bytes" },
578
- { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }
579
- ],
580
- "internalType": "struct SendParam",
581
- "name": "_sendParam",
582
- "type": "tuple"
583
- },
584
- {
585
- "components": [
586
- { "internalType": "uint256", "name": "nativeFee", "type": "uint256" },
587
- { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }
588
- ],
589
- "internalType": "struct MessagingFee",
590
- "name": "_fee",
591
- "type": "tuple"
592
- },
593
- { "internalType": "address", "name": "_refundAddress", "type": "address" }
594
- ],
595
- "name": "send",
596
- "outputs": [
597
- {
598
- "components": [
599
- { "internalType": "bytes32", "name": "guid", "type": "bytes32" },
600
- { "internalType": "uint64", "name": "nonce", "type": "uint64" },
601
- {
602
- "components": [
603
- { "internalType": "uint256", "name": "nativeFee", "type": "uint256" },
604
- { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }
605
- ],
606
- "internalType": "struct MessagingFee",
607
- "name": "fee",
608
- "type": "tuple"
609
- }
610
- ],
611
- "internalType": "struct MessagingReceipt",
612
- "name": "msgReceipt",
613
- "type": "tuple"
614
- },
615
- {
616
- "components": [
617
- { "internalType": "uint256", "name": "amountSentLD", "type": "uint256" },
618
- { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }
619
- ],
620
- "internalType": "struct OFTReceipt",
621
- "name": "oftReceipt",
622
- "type": "tuple"
623
- }
624
- ],
625
- "stateMutability": "payable",
626
- "type": "function"
627
- },
628
- {
629
- "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }],
630
- "name": "setDelegate",
631
- "outputs": [],
632
- "stateMutability": "nonpayable",
633
- "type": "function"
634
- },
635
- {
636
- "inputs": [
637
- {
638
- "components": [
639
- { "internalType": "uint32", "name": "eid", "type": "uint32" },
640
- { "internalType": "uint16", "name": "msgType", "type": "uint16" },
641
- { "internalType": "bytes", "name": "options", "type": "bytes" }
642
- ],
643
- "internalType": "struct EnforcedOptionParam[]",
644
- "name": "_enforcedOptions",
645
- "type": "tuple[]"
646
- }
647
- ],
648
- "name": "setEnforcedOptions",
649
- "outputs": [],
650
- "stateMutability": "nonpayable",
651
- "type": "function"
652
- },
653
- {
654
- "inputs": [{ "internalType": "address", "name": "_msgInspector", "type": "address" }],
655
- "name": "setMsgInspector",
656
- "outputs": [],
657
- "stateMutability": "nonpayable",
658
- "type": "function"
659
- },
660
- {
661
- "inputs": [
662
- { "internalType": "uint32", "name": "_eid", "type": "uint32" },
663
- { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }
664
- ],
665
- "name": "setPeer",
666
- "outputs": [],
667
- "stateMutability": "nonpayable",
668
- "type": "function"
669
- },
670
- {
671
- "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }],
672
- "name": "setPreCrime",
673
- "outputs": [],
674
- "stateMutability": "nonpayable",
675
- "type": "function"
676
- },
677
- {
678
- "inputs": [],
679
- "name": "sharedDecimals",
680
- "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
681
- "stateMutability": "view",
682
- "type": "function"
683
- },
684
- {
685
- "inputs": [],
686
- "name": "symbol",
687
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
688
- "stateMutability": "view",
689
- "type": "function"
690
- },
691
- {
692
- "inputs": [],
693
- "name": "token",
694
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
695
- "stateMutability": "view",
696
- "type": "function"
697
- },
698
- {
699
- "inputs": [],
700
- "name": "totalSupply",
701
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
702
- "stateMutability": "view",
703
- "type": "function"
704
- },
705
- {
706
- "inputs": [
707
- { "internalType": "address", "name": "to", "type": "address" },
708
- { "internalType": "uint256", "name": "value", "type": "uint256" }
709
- ],
710
- "name": "transfer",
711
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
712
- "stateMutability": "nonpayable",
713
- "type": "function"
714
- },
715
- {
716
- "inputs": [
717
- { "internalType": "address", "name": "from", "type": "address" },
718
- { "internalType": "address", "name": "to", "type": "address" },
719
- { "internalType": "uint256", "name": "value", "type": "uint256" }
720
- ],
721
- "name": "transferFrom",
722
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
723
- "stateMutability": "nonpayable",
724
- "type": "function"
725
- },
726
- {
727
- "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
728
- "name": "transferOwnership",
729
- "outputs": [],
730
- "stateMutability": "nonpayable",
731
- "type": "function"
732
- }
733
- ]