web3-wizzard-lib 1.6.4__py3-none-any.whl → 1.6.5__py3-none-any.whl

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 (107) hide show
  1. web3-wizzard-lib/core/modules/swap/swap_list.py +1 -1
  2. web3-wizzard-lib/launcher.py +1 -1
  3. {web3_wizzard_lib-1.6.4.dist-info → web3_wizzard_lib-1.6.5.dist-info}/METADATA +2 -2
  4. {web3_wizzard_lib-1.6.4.dist-info → web3_wizzard_lib-1.6.5.dist-info}/RECORD +7 -107
  5. {web3_wizzard_lib-1.6.4.dist-info → web3_wizzard_lib-1.6.5.dist-info}/top_level.txt +1 -0
  6. web3-wizzard-lib/resources/abi/aave.json +0 -282
  7. web3-wizzard-lib/resources/abi/abbysworld.json +0 -1113
  8. web3-wizzard-lib/resources/abi/arena_games.json +0 -15
  9. web3-wizzard-lib/resources/abi/asmatch.json +0 -1113
  10. web3-wizzard-lib/resources/abi/basiliks.json +0 -1467
  11. web3-wizzard-lib/resources/abi/bilinear.json +0 -1375
  12. web3-wizzard-lib/resources/abi/bungee.json +0 -525
  13. web3-wizzard-lib/resources/abi/coredao.json +0 -1068
  14. web3-wizzard-lib/resources/abi/coredao_bridge.json +0 -1012
  15. web3-wizzard-lib/resources/abi/dmail.json +0 -964
  16. web3-wizzard-lib/resources/abi/empty_nft.json +0 -1131
  17. web3-wizzard-lib/resources/abi/era_ns.json +0 -878
  18. web3-wizzard-lib/resources/abi/eralend.json +0 -1221
  19. web3-wizzard-lib/resources/abi/erc20.json +0 -801
  20. web3-wizzard-lib/resources/abi/erc20_test.json +0 -337
  21. web3-wizzard-lib/resources/abi/eth_scroll_bridge.json +0 -675
  22. web3-wizzard-lib/resources/abi/frog_war_contract.json +0 -1943
  23. web3-wizzard-lib/resources/abi/gmx_reward_router.json +0 -749
  24. web3-wizzard-lib/resources/abi/horizondex.json +0 -413
  25. web3-wizzard-lib/resources/abi/horizondex_quoter.json +0 -273
  26. web3-wizzard-lib/resources/abi/imagine.json +0 -457
  27. web3-wizzard-lib/resources/abi/izumi.json +0 -532
  28. web3-wizzard-lib/resources/abi/kreatorland.json +0 -500
  29. web3-wizzard-lib/resources/abi/layerbank.json +0 -1240
  30. web3-wizzard-lib/resources/abi/layerbank_price.json +0 -354
  31. web3-wizzard-lib/resources/abi/layerbank_token.json +0 -1124
  32. web3-wizzard-lib/resources/abi/linea_day_2.json +0 -933
  33. web3-wizzard-lib/resources/abi/linea_day_3.json +0 -1804
  34. web3-wizzard-lib/resources/abi/linea_ens_names.json +0 -1000
  35. web3-wizzard-lib/resources/abi/lineaswap_router.json +0 -973
  36. web3-wizzard-lib/resources/abi/maverick_ipool.json +0 -942
  37. web3-wizzard-lib/resources/abi/maverick_multicall.json +0 -1082
  38. web3-wizzard-lib/resources/abi/mendi_token.json +0 -1690
  39. web3-wizzard-lib/resources/abi/merkly.json +0 -787
  40. web3-wizzard-lib/resources/abi/micro3.json +0 -1054
  41. web3-wizzard-lib/resources/abi/mute_router.json +0 -856
  42. web3-wizzard-lib/resources/abi/new_rage_abi.json +0 -1944
  43. web3-wizzard-lib/resources/abi/nidus.json +0 -1017
  44. web3-wizzard-lib/resources/abi/nile_pool.json +0 -1313
  45. web3-wizzard-lib/resources/abi/nomis.json +0 -1601
  46. web3-wizzard-lib/resources/abi/nomis_attest.json +0 -710
  47. web3-wizzard-lib/resources/abi/octomos.json +0 -408
  48. web3-wizzard-lib/resources/abi/omnisea.json +0 -175
  49. web3-wizzard-lib/resources/abi/orbiter_starknet.json +0 -48
  50. web3-wizzard-lib/resources/abi/pancake/factory.json +0 -450
  51. web3-wizzard-lib/resources/abi/pancake/pool.json +0 -713
  52. web3-wizzard-lib/resources/abi/pancake/quoter.json +0 -285
  53. web3-wizzard-lib/resources/abi/pancake/router.json +0 -1271
  54. web3-wizzard-lib/resources/abi/rage_claim.json +0 -218
  55. web3-wizzard-lib/resources/abi/reactor_fusion.json +0 -1479
  56. web3-wizzard-lib/resources/abi/readon.json +0 -71
  57. web3-wizzard-lib/resources/abi/rubyscore.json +0 -698
  58. web3-wizzard-lib/resources/abi/satoshi_universe.json +0 -301
  59. web3-wizzard-lib/resources/abi/scroll_bridge.json +0 -666
  60. web3-wizzard-lib/resources/abi/scroll_canvas_mint.json +0 -602
  61. web3-wizzard-lib/resources/abi/scroll_oracle.json +0 -714
  62. web3-wizzard-lib/resources/abi/snap.json +0 -622
  63. web3-wizzard-lib/resources/abi/socialscan.json +0 -884
  64. web3-wizzard-lib/resources/abi/stargate_farming.json +0 -494
  65. web3-wizzard-lib/resources/abi/stargate_router.json +0 -1341
  66. web3-wizzard-lib/resources/abi/stargate_swapETH_abi.json +0 -106
  67. web3-wizzard-lib/resources/abi/stargate_token_pool.json +0 -1940
  68. web3-wizzard-lib/resources/abi/stargate_v2.json +0 -1936
  69. web3-wizzard-lib/resources/abi/syncswap_classic_pool.json +0 -151
  70. web3-wizzard-lib/resources/abi/syncswap_classic_pool_factory.json +0 -151
  71. web3-wizzard-lib/resources/abi/syncswap_pool.json +0 -924
  72. web3-wizzard-lib/resources/abi/syncswap_router.json +0 -1178
  73. web3-wizzard-lib/resources/abi/syncswap_stable_pool.json +0 -950
  74. web3-wizzard-lib/resources/abi/tavaera.json +0 -586
  75. web3-wizzard-lib/resources/abi/tavaera_id.json +0 -724
  76. web3-wizzard-lib/resources/abi/townstory.json +0 -391
  77. web3-wizzard-lib/resources/abi/townstory_bonus.json +0 -279
  78. web3-wizzard-lib/resources/abi/uniswap_abi.json +0 -193
  79. web3-wizzard-lib/resources/abi/velocore.json +0 -1008
  80. web3-wizzard-lib/resources/abi/velocore_lens.json +0 -1030
  81. web3-wizzard-lib/resources/abi/velocore_pool.json +0 -490
  82. web3-wizzard-lib/resources/abi/velocore_vault.json +0 -1272
  83. web3-wizzard-lib/resources/abi/weth.json +0 -279
  84. web3-wizzard-lib/resources/abi/woofi.json +0 -400
  85. web3-wizzard-lib/resources/abi/yoddlo.json +0 -67
  86. web3-wizzard-lib/resources/abi/zebra.json +0 -1075
  87. web3-wizzard-lib/resources/abi/zerolend.json +0 -282
  88. web3-wizzard-lib/resources/abi/zerolend_liquidity.json +0 -1038
  89. web3-wizzard-lib/resources/abi/zkdx_data.json +0 -436
  90. web3-wizzard-lib/resources/abi/zks.json +0 -671
  91. web3-wizzard-lib/resources/banner.txt +0 -7
  92. web3-wizzard-lib/resources/goerli/contracts.json +0 -48
  93. web3-wizzard-lib/resources/goerli/networks.json +0 -139
  94. web3-wizzard-lib/resources/goerli/pairs.json +0 -113
  95. web3-wizzard-lib/resources/goerli/tokens.json +0 -40
  96. web3-wizzard-lib/resources/linea_appeal.txt +0 -0
  97. web3-wizzard-lib/resources/local/contracts.json +0 -150
  98. web3-wizzard-lib/resources/local/networks.json +0 -119
  99. web3-wizzard-lib/resources/local/pairs.json +0 -451
  100. web3-wizzard-lib/resources/local/tokens.json +0 -88
  101. web3-wizzard-lib/resources/main/contracts.json +0 -231
  102. web3-wizzard-lib/resources/main/networks.json +0 -272
  103. web3-wizzard-lib/resources/main/pairs.json +0 -516
  104. web3-wizzard-lib/resources/main/tokens.json +0 -119
  105. web3-wizzard-lib/resources/verify_data.json +0 -1243
  106. {web3_wizzard_lib-1.6.4.data → web3_wizzard_lib-1.6.5.data}/data/requirements.txt +0 -0
  107. {web3_wizzard_lib-1.6.4.dist-info → web3_wizzard_lib-1.6.5.dist-info}/WHEEL +0 -0
@@ -1,1940 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "uint256",
6
- "name": "_poolId",
7
- "type": "uint256"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "_router",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "_token",
17
- "type": "address"
18
- },
19
- {
20
- "internalType": "uint256",
21
- "name": "_sharedDecimals",
22
- "type": "uint256"
23
- },
24
- {
25
- "internalType": "uint256",
26
- "name": "_localDecimals",
27
- "type": "uint256"
28
- },
29
- {
30
- "internalType": "address",
31
- "name": "_feeLibrary",
32
- "type": "address"
33
- },
34
- {
35
- "internalType": "string",
36
- "name": "_name",
37
- "type": "string"
38
- },
39
- {
40
- "internalType": "string",
41
- "name": "_symbol",
42
- "type": "string"
43
- }
44
- ],
45
- "stateMutability": "nonpayable",
46
- "type": "constructor"
47
- },
48
- {
49
- "anonymous": false,
50
- "inputs": [
51
- {
52
- "indexed": true,
53
- "internalType": "address",
54
- "name": "owner",
55
- "type": "address"
56
- },
57
- {
58
- "indexed": true,
59
- "internalType": "address",
60
- "name": "spender",
61
- "type": "address"
62
- },
63
- {
64
- "indexed": false,
65
- "internalType": "uint256",
66
- "name": "value",
67
- "type": "uint256"
68
- }
69
- ],
70
- "name": "Approval",
71
- "type": "event"
72
- },
73
- {
74
- "anonymous": false,
75
- "inputs": [
76
- {
77
- "indexed": false,
78
- "internalType": "address",
79
- "name": "from",
80
- "type": "address"
81
- },
82
- {
83
- "indexed": false,
84
- "internalType": "uint256",
85
- "name": "amountLP",
86
- "type": "uint256"
87
- },
88
- {
89
- "indexed": false,
90
- "internalType": "uint256",
91
- "name": "amountSD",
92
- "type": "uint256"
93
- }
94
- ],
95
- "name": "Burn",
96
- "type": "event"
97
- },
98
- {
99
- "anonymous": false,
100
- "inputs": [
101
- {
102
- "indexed": false,
103
- "internalType": "uint16",
104
- "name": "dstChainId",
105
- "type": "uint16"
106
- },
107
- {
108
- "indexed": false,
109
- "internalType": "uint256",
110
- "name": "dstPoolId",
111
- "type": "uint256"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "uint256",
116
- "name": "weight",
117
- "type": "uint256"
118
- }
119
- ],
120
- "name": "ChainPathUpdate",
121
- "type": "event"
122
- },
123
- {
124
- "anonymous": false,
125
- "inputs": [
126
- {
127
- "indexed": false,
128
- "internalType": "uint16",
129
- "name": "chainId",
130
- "type": "uint16"
131
- },
132
- {
133
- "indexed": false,
134
- "internalType": "uint256",
135
- "name": "srcPoolId",
136
- "type": "uint256"
137
- },
138
- {
139
- "indexed": false,
140
- "internalType": "uint256",
141
- "name": "amountSD",
142
- "type": "uint256"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "uint256",
147
- "name": "idealBalance",
148
- "type": "uint256"
149
- }
150
- ],
151
- "name": "CreditChainPath",
152
- "type": "event"
153
- },
154
- {
155
- "anonymous": false,
156
- "inputs": [
157
- {
158
- "indexed": false,
159
- "internalType": "bool",
160
- "name": "batched",
161
- "type": "bool"
162
- },
163
- {
164
- "indexed": false,
165
- "internalType": "uint256",
166
- "name": "swapDeltaBP",
167
- "type": "uint256"
168
- },
169
- {
170
- "indexed": false,
171
- "internalType": "uint256",
172
- "name": "lpDeltaBP",
173
- "type": "uint256"
174
- },
175
- {
176
- "indexed": false,
177
- "internalType": "bool",
178
- "name": "defaultSwapMode",
179
- "type": "bool"
180
- },
181
- {
182
- "indexed": false,
183
- "internalType": "bool",
184
- "name": "defaultLPMode",
185
- "type": "bool"
186
- }
187
- ],
188
- "name": "DeltaParamUpdated",
189
- "type": "event"
190
- },
191
- {
192
- "anonymous": false,
193
- "inputs": [
194
- {
195
- "indexed": false,
196
- "internalType": "address",
197
- "name": "feeLibraryAddr",
198
- "type": "address"
199
- }
200
- ],
201
- "name": "FeeLibraryUpdated",
202
- "type": "event"
203
- },
204
- {
205
- "anonymous": false,
206
- "inputs": [
207
- {
208
- "indexed": false,
209
- "internalType": "uint256",
210
- "name": "mintFeeBP",
211
- "type": "uint256"
212
- }
213
- ],
214
- "name": "FeesUpdated",
215
- "type": "event"
216
- },
217
- {
218
- "anonymous": false,
219
- "inputs": [
220
- {
221
- "indexed": false,
222
- "internalType": "address",
223
- "name": "from",
224
- "type": "address"
225
- },
226
- {
227
- "indexed": false,
228
- "internalType": "uint256",
229
- "name": "amountLP",
230
- "type": "uint256"
231
- },
232
- {
233
- "indexed": false,
234
- "internalType": "uint256",
235
- "name": "amountSD",
236
- "type": "uint256"
237
- },
238
- {
239
- "indexed": false,
240
- "internalType": "address",
241
- "name": "to",
242
- "type": "address"
243
- }
244
- ],
245
- "name": "InstantRedeemLocal",
246
- "type": "event"
247
- },
248
- {
249
- "anonymous": false,
250
- "inputs": [
251
- {
252
- "indexed": false,
253
- "internalType": "address",
254
- "name": "to",
255
- "type": "address"
256
- },
257
- {
258
- "indexed": false,
259
- "internalType": "uint256",
260
- "name": "amountLP",
261
- "type": "uint256"
262
- },
263
- {
264
- "indexed": false,
265
- "internalType": "uint256",
266
- "name": "amountSD",
267
- "type": "uint256"
268
- },
269
- {
270
- "indexed": false,
271
- "internalType": "uint256",
272
- "name": "mintFeeAmountSD",
273
- "type": "uint256"
274
- }
275
- ],
276
- "name": "Mint",
277
- "type": "event"
278
- },
279
- {
280
- "anonymous": false,
281
- "inputs": [
282
- {
283
- "indexed": false,
284
- "internalType": "address",
285
- "name": "from",
286
- "type": "address"
287
- },
288
- {
289
- "indexed": false,
290
- "internalType": "uint256",
291
- "name": "amountLP",
292
- "type": "uint256"
293
- },
294
- {
295
- "indexed": false,
296
- "internalType": "uint256",
297
- "name": "amountSD",
298
- "type": "uint256"
299
- },
300
- {
301
- "indexed": false,
302
- "internalType": "uint16",
303
- "name": "chainId",
304
- "type": "uint16"
305
- },
306
- {
307
- "indexed": false,
308
- "internalType": "uint256",
309
- "name": "dstPoolId",
310
- "type": "uint256"
311
- },
312
- {
313
- "indexed": false,
314
- "internalType": "bytes",
315
- "name": "to",
316
- "type": "bytes"
317
- }
318
- ],
319
- "name": "RedeemLocal",
320
- "type": "event"
321
- },
322
- {
323
- "anonymous": false,
324
- "inputs": [
325
- {
326
- "indexed": false,
327
- "internalType": "address",
328
- "name": "_to",
329
- "type": "address"
330
- },
331
- {
332
- "indexed": false,
333
- "internalType": "uint256",
334
- "name": "_amountSD",
335
- "type": "uint256"
336
- },
337
- {
338
- "indexed": false,
339
- "internalType": "uint256",
340
- "name": "_amountToMintSD",
341
- "type": "uint256"
342
- }
343
- ],
344
- "name": "RedeemLocalCallback",
345
- "type": "event"
346
- },
347
- {
348
- "anonymous": false,
349
- "inputs": [
350
- {
351
- "indexed": false,
352
- "internalType": "uint16",
353
- "name": "chainId",
354
- "type": "uint16"
355
- },
356
- {
357
- "indexed": false,
358
- "internalType": "uint256",
359
- "name": "dstPoolId",
360
- "type": "uint256"
361
- },
362
- {
363
- "indexed": false,
364
- "internalType": "address",
365
- "name": "from",
366
- "type": "address"
367
- },
368
- {
369
- "indexed": false,
370
- "internalType": "uint256",
371
- "name": "amountLP",
372
- "type": "uint256"
373
- },
374
- {
375
- "indexed": false,
376
- "internalType": "uint256",
377
- "name": "amountSD",
378
- "type": "uint256"
379
- }
380
- ],
381
- "name": "RedeemRemote",
382
- "type": "event"
383
- },
384
- {
385
- "anonymous": false,
386
- "inputs": [
387
- {
388
- "indexed": false,
389
- "internalType": "uint16",
390
- "name": "dstChainId",
391
- "type": "uint16"
392
- },
393
- {
394
- "indexed": false,
395
- "internalType": "uint256",
396
- "name": "dstPoolId",
397
- "type": "uint256"
398
- },
399
- {
400
- "indexed": false,
401
- "internalType": "uint256",
402
- "name": "credits",
403
- "type": "uint256"
404
- },
405
- {
406
- "indexed": false,
407
- "internalType": "uint256",
408
- "name": "idealBalance",
409
- "type": "uint256"
410
- }
411
- ],
412
- "name": "SendCredits",
413
- "type": "event"
414
- },
415
- {
416
- "anonymous": false,
417
- "inputs": [
418
- {
419
- "indexed": false,
420
- "internalType": "bool",
421
- "name": "swapStop",
422
- "type": "bool"
423
- }
424
- ],
425
- "name": "StopSwapUpdated",
426
- "type": "event"
427
- },
428
- {
429
- "anonymous": false,
430
- "inputs": [
431
- {
432
- "indexed": false,
433
- "internalType": "uint16",
434
- "name": "chainId",
435
- "type": "uint16"
436
- },
437
- {
438
- "indexed": false,
439
- "internalType": "uint256",
440
- "name": "dstPoolId",
441
- "type": "uint256"
442
- },
443
- {
444
- "indexed": false,
445
- "internalType": "address",
446
- "name": "from",
447
- "type": "address"
448
- },
449
- {
450
- "indexed": false,
451
- "internalType": "uint256",
452
- "name": "amountSD",
453
- "type": "uint256"
454
- },
455
- {
456
- "indexed": false,
457
- "internalType": "uint256",
458
- "name": "eqReward",
459
- "type": "uint256"
460
- },
461
- {
462
- "indexed": false,
463
- "internalType": "uint256",
464
- "name": "eqFee",
465
- "type": "uint256"
466
- },
467
- {
468
- "indexed": false,
469
- "internalType": "uint256",
470
- "name": "protocolFee",
471
- "type": "uint256"
472
- },
473
- {
474
- "indexed": false,
475
- "internalType": "uint256",
476
- "name": "lpFee",
477
- "type": "uint256"
478
- }
479
- ],
480
- "name": "Swap",
481
- "type": "event"
482
- },
483
- {
484
- "anonymous": false,
485
- "inputs": [
486
- {
487
- "indexed": false,
488
- "internalType": "address",
489
- "name": "to",
490
- "type": "address"
491
- },
492
- {
493
- "indexed": false,
494
- "internalType": "uint256",
495
- "name": "amountSD",
496
- "type": "uint256"
497
- },
498
- {
499
- "indexed": false,
500
- "internalType": "uint256",
501
- "name": "protocolFee",
502
- "type": "uint256"
503
- },
504
- {
505
- "indexed": false,
506
- "internalType": "uint256",
507
- "name": "dstFee",
508
- "type": "uint256"
509
- }
510
- ],
511
- "name": "SwapRemote",
512
- "type": "event"
513
- },
514
- {
515
- "anonymous": false,
516
- "inputs": [
517
- {
518
- "indexed": true,
519
- "internalType": "address",
520
- "name": "from",
521
- "type": "address"
522
- },
523
- {
524
- "indexed": true,
525
- "internalType": "address",
526
- "name": "to",
527
- "type": "address"
528
- },
529
- {
530
- "indexed": false,
531
- "internalType": "uint256",
532
- "name": "value",
533
- "type": "uint256"
534
- }
535
- ],
536
- "name": "Transfer",
537
- "type": "event"
538
- },
539
- {
540
- "anonymous": false,
541
- "inputs": [
542
- {
543
- "indexed": false,
544
- "internalType": "address",
545
- "name": "to",
546
- "type": "address"
547
- },
548
- {
549
- "indexed": false,
550
- "internalType": "uint256",
551
- "name": "amountSD",
552
- "type": "uint256"
553
- }
554
- ],
555
- "name": "WithdrawMintFeeBalance",
556
- "type": "event"
557
- },
558
- {
559
- "anonymous": false,
560
- "inputs": [
561
- {
562
- "indexed": false,
563
- "internalType": "address",
564
- "name": "to",
565
- "type": "address"
566
- },
567
- {
568
- "indexed": false,
569
- "internalType": "uint256",
570
- "name": "amountSD",
571
- "type": "uint256"
572
- }
573
- ],
574
- "name": "WithdrawProtocolFeeBalance",
575
- "type": "event"
576
- },
577
- {
578
- "anonymous": false,
579
- "inputs": [
580
- {
581
- "indexed": false,
582
- "internalType": "uint16",
583
- "name": "srcChainId",
584
- "type": "uint16"
585
- },
586
- {
587
- "indexed": false,
588
- "internalType": "uint256",
589
- "name": "srcPoolId",
590
- "type": "uint256"
591
- },
592
- {
593
- "indexed": false,
594
- "internalType": "uint256",
595
- "name": "swapAmount",
596
- "type": "uint256"
597
- },
598
- {
599
- "indexed": false,
600
- "internalType": "uint256",
601
- "name": "mintAmount",
602
- "type": "uint256"
603
- }
604
- ],
605
- "name": "WithdrawRemote",
606
- "type": "event"
607
- },
608
- {
609
- "inputs": [],
610
- "name": "BP_DENOMINATOR",
611
- "outputs": [
612
- {
613
- "internalType": "uint256",
614
- "name": "",
615
- "type": "uint256"
616
- }
617
- ],
618
- "stateMutability": "view",
619
- "type": "function"
620
- },
621
- {
622
- "inputs": [],
623
- "name": "DOMAIN_SEPARATOR",
624
- "outputs": [
625
- {
626
- "internalType": "bytes32",
627
- "name": "",
628
- "type": "bytes32"
629
- }
630
- ],
631
- "stateMutability": "view",
632
- "type": "function"
633
- },
634
- {
635
- "inputs": [],
636
- "name": "PERMIT_TYPEHASH",
637
- "outputs": [
638
- {
639
- "internalType": "bytes32",
640
- "name": "",
641
- "type": "bytes32"
642
- }
643
- ],
644
- "stateMutability": "view",
645
- "type": "function"
646
- },
647
- {
648
- "inputs": [
649
- {
650
- "internalType": "uint16",
651
- "name": "_dstChainId",
652
- "type": "uint16"
653
- },
654
- {
655
- "internalType": "uint256",
656
- "name": "_dstPoolId",
657
- "type": "uint256"
658
- }
659
- ],
660
- "name": "activateChainPath",
661
- "outputs": [],
662
- "stateMutability": "nonpayable",
663
- "type": "function"
664
- },
665
- {
666
- "inputs": [
667
- {
668
- "internalType": "address",
669
- "name": "",
670
- "type": "address"
671
- },
672
- {
673
- "internalType": "address",
674
- "name": "",
675
- "type": "address"
676
- }
677
- ],
678
- "name": "allowance",
679
- "outputs": [
680
- {
681
- "internalType": "uint256",
682
- "name": "",
683
- "type": "uint256"
684
- }
685
- ],
686
- "stateMutability": "view",
687
- "type": "function"
688
- },
689
- {
690
- "inputs": [
691
- {
692
- "internalType": "uint256",
693
- "name": "_amountLP",
694
- "type": "uint256"
695
- }
696
- ],
697
- "name": "amountLPtoLD",
698
- "outputs": [
699
- {
700
- "internalType": "uint256",
701
- "name": "",
702
- "type": "uint256"
703
- }
704
- ],
705
- "stateMutability": "view",
706
- "type": "function"
707
- },
708
- {
709
- "inputs": [
710
- {
711
- "internalType": "address",
712
- "name": "spender",
713
- "type": "address"
714
- },
715
- {
716
- "internalType": "uint256",
717
- "name": "value",
718
- "type": "uint256"
719
- }
720
- ],
721
- "name": "approve",
722
- "outputs": [
723
- {
724
- "internalType": "bool",
725
- "name": "",
726
- "type": "bool"
727
- }
728
- ],
729
- "stateMutability": "nonpayable",
730
- "type": "function"
731
- },
732
- {
733
- "inputs": [
734
- {
735
- "internalType": "address",
736
- "name": "",
737
- "type": "address"
738
- }
739
- ],
740
- "name": "balanceOf",
741
- "outputs": [
742
- {
743
- "internalType": "uint256",
744
- "name": "",
745
- "type": "uint256"
746
- }
747
- ],
748
- "stateMutability": "view",
749
- "type": "function"
750
- },
751
- {
752
- "inputs": [],
753
- "name": "batched",
754
- "outputs": [
755
- {
756
- "internalType": "bool",
757
- "name": "",
758
- "type": "bool"
759
- }
760
- ],
761
- "stateMutability": "view",
762
- "type": "function"
763
- },
764
- {
765
- "inputs": [
766
- {
767
- "internalType": "bool",
768
- "name": "_fullMode",
769
- "type": "bool"
770
- }
771
- ],
772
- "name": "callDelta",
773
- "outputs": [],
774
- "stateMutability": "nonpayable",
775
- "type": "function"
776
- },
777
- {
778
- "inputs": [
779
- {
780
- "internalType": "uint16",
781
- "name": "",
782
- "type": "uint16"
783
- },
784
- {
785
- "internalType": "uint256",
786
- "name": "",
787
- "type": "uint256"
788
- }
789
- ],
790
- "name": "chainPathIndexLookup",
791
- "outputs": [
792
- {
793
- "internalType": "uint256",
794
- "name": "",
795
- "type": "uint256"
796
- }
797
- ],
798
- "stateMutability": "view",
799
- "type": "function"
800
- },
801
- {
802
- "inputs": [
803
- {
804
- "internalType": "uint256",
805
- "name": "",
806
- "type": "uint256"
807
- }
808
- ],
809
- "name": "chainPaths",
810
- "outputs": [
811
- {
812
- "internalType": "bool",
813
- "name": "ready",
814
- "type": "bool"
815
- },
816
- {
817
- "internalType": "uint16",
818
- "name": "dstChainId",
819
- "type": "uint16"
820
- },
821
- {
822
- "internalType": "uint256",
823
- "name": "dstPoolId",
824
- "type": "uint256"
825
- },
826
- {
827
- "internalType": "uint256",
828
- "name": "weight",
829
- "type": "uint256"
830
- },
831
- {
832
- "internalType": "uint256",
833
- "name": "balance",
834
- "type": "uint256"
835
- },
836
- {
837
- "internalType": "uint256",
838
- "name": "lkb",
839
- "type": "uint256"
840
- },
841
- {
842
- "internalType": "uint256",
843
- "name": "credits",
844
- "type": "uint256"
845
- },
846
- {
847
- "internalType": "uint256",
848
- "name": "idealBalance",
849
- "type": "uint256"
850
- }
851
- ],
852
- "stateMutability": "view",
853
- "type": "function"
854
- },
855
- {
856
- "inputs": [],
857
- "name": "convertRate",
858
- "outputs": [
859
- {
860
- "internalType": "uint256",
861
- "name": "",
862
- "type": "uint256"
863
- }
864
- ],
865
- "stateMutability": "view",
866
- "type": "function"
867
- },
868
- {
869
- "inputs": [
870
- {
871
- "internalType": "uint16",
872
- "name": "_dstChainId",
873
- "type": "uint16"
874
- },
875
- {
876
- "internalType": "uint256",
877
- "name": "_dstPoolId",
878
- "type": "uint256"
879
- },
880
- {
881
- "internalType": "uint256",
882
- "name": "_weight",
883
- "type": "uint256"
884
- }
885
- ],
886
- "name": "createChainPath",
887
- "outputs": [],
888
- "stateMutability": "nonpayable",
889
- "type": "function"
890
- },
891
- {
892
- "inputs": [
893
- {
894
- "internalType": "uint16",
895
- "name": "_dstChainId",
896
- "type": "uint16"
897
- },
898
- {
899
- "internalType": "uint256",
900
- "name": "_dstPoolId",
901
- "type": "uint256"
902
- },
903
- {
904
- "components": [
905
- {
906
- "internalType": "uint256",
907
- "name": "credits",
908
- "type": "uint256"
909
- },
910
- {
911
- "internalType": "uint256",
912
- "name": "idealBalance",
913
- "type": "uint256"
914
- }
915
- ],
916
- "internalType": "struct Pool.CreditObj",
917
- "name": "_c",
918
- "type": "tuple"
919
- }
920
- ],
921
- "name": "creditChainPath",
922
- "outputs": [],
923
- "stateMutability": "nonpayable",
924
- "type": "function"
925
- },
926
- {
927
- "inputs": [],
928
- "name": "decimals",
929
- "outputs": [
930
- {
931
- "internalType": "uint256",
932
- "name": "",
933
- "type": "uint256"
934
- }
935
- ],
936
- "stateMutability": "view",
937
- "type": "function"
938
- },
939
- {
940
- "inputs": [
941
- {
942
- "internalType": "address",
943
- "name": "spender",
944
- "type": "address"
945
- },
946
- {
947
- "internalType": "uint256",
948
- "name": "subtractedValue",
949
- "type": "uint256"
950
- }
951
- ],
952
- "name": "decreaseAllowance",
953
- "outputs": [
954
- {
955
- "internalType": "bool",
956
- "name": "",
957
- "type": "bool"
958
- }
959
- ],
960
- "stateMutability": "nonpayable",
961
- "type": "function"
962
- },
963
- {
964
- "inputs": [],
965
- "name": "defaultLPMode",
966
- "outputs": [
967
- {
968
- "internalType": "bool",
969
- "name": "",
970
- "type": "bool"
971
- }
972
- ],
973
- "stateMutability": "view",
974
- "type": "function"
975
- },
976
- {
977
- "inputs": [],
978
- "name": "defaultSwapMode",
979
- "outputs": [
980
- {
981
- "internalType": "bool",
982
- "name": "",
983
- "type": "bool"
984
- }
985
- ],
986
- "stateMutability": "view",
987
- "type": "function"
988
- },
989
- {
990
- "inputs": [],
991
- "name": "deltaCredit",
992
- "outputs": [
993
- {
994
- "internalType": "uint256",
995
- "name": "",
996
- "type": "uint256"
997
- }
998
- ],
999
- "stateMutability": "view",
1000
- "type": "function"
1001
- },
1002
- {
1003
- "inputs": [],
1004
- "name": "eqFeePool",
1005
- "outputs": [
1006
- {
1007
- "internalType": "uint256",
1008
- "name": "",
1009
- "type": "uint256"
1010
- }
1011
- ],
1012
- "stateMutability": "view",
1013
- "type": "function"
1014
- },
1015
- {
1016
- "inputs": [],
1017
- "name": "feeLibrary",
1018
- "outputs": [
1019
- {
1020
- "internalType": "address",
1021
- "name": "",
1022
- "type": "address"
1023
- }
1024
- ],
1025
- "stateMutability": "view",
1026
- "type": "function"
1027
- },
1028
- {
1029
- "inputs": [
1030
- {
1031
- "internalType": "uint16",
1032
- "name": "_dstChainId",
1033
- "type": "uint16"
1034
- },
1035
- {
1036
- "internalType": "uint256",
1037
- "name": "_dstPoolId",
1038
- "type": "uint256"
1039
- }
1040
- ],
1041
- "name": "getChainPath",
1042
- "outputs": [
1043
- {
1044
- "components": [
1045
- {
1046
- "internalType": "bool",
1047
- "name": "ready",
1048
- "type": "bool"
1049
- },
1050
- {
1051
- "internalType": "uint16",
1052
- "name": "dstChainId",
1053
- "type": "uint16"
1054
- },
1055
- {
1056
- "internalType": "uint256",
1057
- "name": "dstPoolId",
1058
- "type": "uint256"
1059
- },
1060
- {
1061
- "internalType": "uint256",
1062
- "name": "weight",
1063
- "type": "uint256"
1064
- },
1065
- {
1066
- "internalType": "uint256",
1067
- "name": "balance",
1068
- "type": "uint256"
1069
- },
1070
- {
1071
- "internalType": "uint256",
1072
- "name": "lkb",
1073
- "type": "uint256"
1074
- },
1075
- {
1076
- "internalType": "uint256",
1077
- "name": "credits",
1078
- "type": "uint256"
1079
- },
1080
- {
1081
- "internalType": "uint256",
1082
- "name": "idealBalance",
1083
- "type": "uint256"
1084
- }
1085
- ],
1086
- "internalType": "struct Pool.ChainPath",
1087
- "name": "",
1088
- "type": "tuple"
1089
- }
1090
- ],
1091
- "stateMutability": "view",
1092
- "type": "function"
1093
- },
1094
- {
1095
- "inputs": [],
1096
- "name": "getChainPathsLength",
1097
- "outputs": [
1098
- {
1099
- "internalType": "uint256",
1100
- "name": "",
1101
- "type": "uint256"
1102
- }
1103
- ],
1104
- "stateMutability": "view",
1105
- "type": "function"
1106
- },
1107
- {
1108
- "inputs": [
1109
- {
1110
- "internalType": "address",
1111
- "name": "spender",
1112
- "type": "address"
1113
- },
1114
- {
1115
- "internalType": "uint256",
1116
- "name": "addedValue",
1117
- "type": "uint256"
1118
- }
1119
- ],
1120
- "name": "increaseAllowance",
1121
- "outputs": [
1122
- {
1123
- "internalType": "bool",
1124
- "name": "",
1125
- "type": "bool"
1126
- }
1127
- ],
1128
- "stateMutability": "nonpayable",
1129
- "type": "function"
1130
- },
1131
- {
1132
- "inputs": [
1133
- {
1134
- "internalType": "address",
1135
- "name": "_from",
1136
- "type": "address"
1137
- },
1138
- {
1139
- "internalType": "uint256",
1140
- "name": "_amountLP",
1141
- "type": "uint256"
1142
- },
1143
- {
1144
- "internalType": "address",
1145
- "name": "_to",
1146
- "type": "address"
1147
- }
1148
- ],
1149
- "name": "instantRedeemLocal",
1150
- "outputs": [
1151
- {
1152
- "internalType": "uint256",
1153
- "name": "amountSD",
1154
- "type": "uint256"
1155
- }
1156
- ],
1157
- "stateMutability": "nonpayable",
1158
- "type": "function"
1159
- },
1160
- {
1161
- "inputs": [],
1162
- "name": "localDecimals",
1163
- "outputs": [
1164
- {
1165
- "internalType": "uint256",
1166
- "name": "",
1167
- "type": "uint256"
1168
- }
1169
- ],
1170
- "stateMutability": "view",
1171
- "type": "function"
1172
- },
1173
- {
1174
- "inputs": [],
1175
- "name": "lpDeltaBP",
1176
- "outputs": [
1177
- {
1178
- "internalType": "uint256",
1179
- "name": "",
1180
- "type": "uint256"
1181
- }
1182
- ],
1183
- "stateMutability": "view",
1184
- "type": "function"
1185
- },
1186
- {
1187
- "inputs": [
1188
- {
1189
- "internalType": "address",
1190
- "name": "_to",
1191
- "type": "address"
1192
- },
1193
- {
1194
- "internalType": "uint256",
1195
- "name": "_amountLD",
1196
- "type": "uint256"
1197
- }
1198
- ],
1199
- "name": "mint",
1200
- "outputs": [
1201
- {
1202
- "internalType": "uint256",
1203
- "name": "",
1204
- "type": "uint256"
1205
- }
1206
- ],
1207
- "stateMutability": "nonpayable",
1208
- "type": "function"
1209
- },
1210
- {
1211
- "inputs": [],
1212
- "name": "mintFeeBP",
1213
- "outputs": [
1214
- {
1215
- "internalType": "uint256",
1216
- "name": "",
1217
- "type": "uint256"
1218
- }
1219
- ],
1220
- "stateMutability": "view",
1221
- "type": "function"
1222
- },
1223
- {
1224
- "inputs": [],
1225
- "name": "mintFeeBalance",
1226
- "outputs": [
1227
- {
1228
- "internalType": "uint256",
1229
- "name": "",
1230
- "type": "uint256"
1231
- }
1232
- ],
1233
- "stateMutability": "view",
1234
- "type": "function"
1235
- },
1236
- {
1237
- "inputs": [],
1238
- "name": "name",
1239
- "outputs": [
1240
- {
1241
- "internalType": "string",
1242
- "name": "",
1243
- "type": "string"
1244
- }
1245
- ],
1246
- "stateMutability": "view",
1247
- "type": "function"
1248
- },
1249
- {
1250
- "inputs": [
1251
- {
1252
- "internalType": "address",
1253
- "name": "",
1254
- "type": "address"
1255
- }
1256
- ],
1257
- "name": "nonces",
1258
- "outputs": [
1259
- {
1260
- "internalType": "uint256",
1261
- "name": "",
1262
- "type": "uint256"
1263
- }
1264
- ],
1265
- "stateMutability": "view",
1266
- "type": "function"
1267
- },
1268
- {
1269
- "inputs": [
1270
- {
1271
- "internalType": "address",
1272
- "name": "owner",
1273
- "type": "address"
1274
- },
1275
- {
1276
- "internalType": "address",
1277
- "name": "spender",
1278
- "type": "address"
1279
- },
1280
- {
1281
- "internalType": "uint256",
1282
- "name": "value",
1283
- "type": "uint256"
1284
- },
1285
- {
1286
- "internalType": "uint256",
1287
- "name": "deadline",
1288
- "type": "uint256"
1289
- },
1290
- {
1291
- "internalType": "uint8",
1292
- "name": "v",
1293
- "type": "uint8"
1294
- },
1295
- {
1296
- "internalType": "bytes32",
1297
- "name": "r",
1298
- "type": "bytes32"
1299
- },
1300
- {
1301
- "internalType": "bytes32",
1302
- "name": "s",
1303
- "type": "bytes32"
1304
- }
1305
- ],
1306
- "name": "permit",
1307
- "outputs": [],
1308
- "stateMutability": "nonpayable",
1309
- "type": "function"
1310
- },
1311
- {
1312
- "inputs": [],
1313
- "name": "poolId",
1314
- "outputs": [
1315
- {
1316
- "internalType": "uint256",
1317
- "name": "",
1318
- "type": "uint256"
1319
- }
1320
- ],
1321
- "stateMutability": "view",
1322
- "type": "function"
1323
- },
1324
- {
1325
- "inputs": [],
1326
- "name": "protocolFeeBalance",
1327
- "outputs": [
1328
- {
1329
- "internalType": "uint256",
1330
- "name": "",
1331
- "type": "uint256"
1332
- }
1333
- ],
1334
- "stateMutability": "view",
1335
- "type": "function"
1336
- },
1337
- {
1338
- "inputs": [
1339
- {
1340
- "internalType": "address",
1341
- "name": "_from",
1342
- "type": "address"
1343
- },
1344
- {
1345
- "internalType": "uint256",
1346
- "name": "_amountLP",
1347
- "type": "uint256"
1348
- },
1349
- {
1350
- "internalType": "uint16",
1351
- "name": "_dstChainId",
1352
- "type": "uint16"
1353
- },
1354
- {
1355
- "internalType": "uint256",
1356
- "name": "_dstPoolId",
1357
- "type": "uint256"
1358
- },
1359
- {
1360
- "internalType": "bytes",
1361
- "name": "_to",
1362
- "type": "bytes"
1363
- }
1364
- ],
1365
- "name": "redeemLocal",
1366
- "outputs": [
1367
- {
1368
- "internalType": "uint256",
1369
- "name": "amountSD",
1370
- "type": "uint256"
1371
- }
1372
- ],
1373
- "stateMutability": "nonpayable",
1374
- "type": "function"
1375
- },
1376
- {
1377
- "inputs": [
1378
- {
1379
- "internalType": "uint16",
1380
- "name": "_srcChainId",
1381
- "type": "uint16"
1382
- },
1383
- {
1384
- "internalType": "uint256",
1385
- "name": "_srcPoolId",
1386
- "type": "uint256"
1387
- },
1388
- {
1389
- "internalType": "address",
1390
- "name": "_to",
1391
- "type": "address"
1392
- },
1393
- {
1394
- "internalType": "uint256",
1395
- "name": "_amountSD",
1396
- "type": "uint256"
1397
- },
1398
- {
1399
- "internalType": "uint256",
1400
- "name": "_amountToMintSD",
1401
- "type": "uint256"
1402
- }
1403
- ],
1404
- "name": "redeemLocalCallback",
1405
- "outputs": [],
1406
- "stateMutability": "nonpayable",
1407
- "type": "function"
1408
- },
1409
- {
1410
- "inputs": [
1411
- {
1412
- "internalType": "uint16",
1413
- "name": "_srcChainId",
1414
- "type": "uint16"
1415
- },
1416
- {
1417
- "internalType": "uint256",
1418
- "name": "_srcPoolId",
1419
- "type": "uint256"
1420
- },
1421
- {
1422
- "internalType": "uint256",
1423
- "name": "_amountSD",
1424
- "type": "uint256"
1425
- }
1426
- ],
1427
- "name": "redeemLocalCheckOnRemote",
1428
- "outputs": [
1429
- {
1430
- "internalType": "uint256",
1431
- "name": "swapAmount",
1432
- "type": "uint256"
1433
- },
1434
- {
1435
- "internalType": "uint256",
1436
- "name": "mintAmount",
1437
- "type": "uint256"
1438
- }
1439
- ],
1440
- "stateMutability": "nonpayable",
1441
- "type": "function"
1442
- },
1443
- {
1444
- "inputs": [
1445
- {
1446
- "internalType": "uint16",
1447
- "name": "_dstChainId",
1448
- "type": "uint16"
1449
- },
1450
- {
1451
- "internalType": "uint256",
1452
- "name": "_dstPoolId",
1453
- "type": "uint256"
1454
- },
1455
- {
1456
- "internalType": "address",
1457
- "name": "_from",
1458
- "type": "address"
1459
- },
1460
- {
1461
- "internalType": "uint256",
1462
- "name": "_amountLP",
1463
- "type": "uint256"
1464
- }
1465
- ],
1466
- "name": "redeemRemote",
1467
- "outputs": [],
1468
- "stateMutability": "nonpayable",
1469
- "type": "function"
1470
- },
1471
- {
1472
- "inputs": [],
1473
- "name": "router",
1474
- "outputs": [
1475
- {
1476
- "internalType": "address",
1477
- "name": "",
1478
- "type": "address"
1479
- }
1480
- ],
1481
- "stateMutability": "view",
1482
- "type": "function"
1483
- },
1484
- {
1485
- "inputs": [
1486
- {
1487
- "internalType": "uint16",
1488
- "name": "_dstChainId",
1489
- "type": "uint16"
1490
- },
1491
- {
1492
- "internalType": "uint256",
1493
- "name": "_dstPoolId",
1494
- "type": "uint256"
1495
- }
1496
- ],
1497
- "name": "sendCredits",
1498
- "outputs": [
1499
- {
1500
- "components": [
1501
- {
1502
- "internalType": "uint256",
1503
- "name": "credits",
1504
- "type": "uint256"
1505
- },
1506
- {
1507
- "internalType": "uint256",
1508
- "name": "idealBalance",
1509
- "type": "uint256"
1510
- }
1511
- ],
1512
- "internalType": "struct Pool.CreditObj",
1513
- "name": "c",
1514
- "type": "tuple"
1515
- }
1516
- ],
1517
- "stateMutability": "nonpayable",
1518
- "type": "function"
1519
- },
1520
- {
1521
- "inputs": [
1522
- {
1523
- "internalType": "bool",
1524
- "name": "_batched",
1525
- "type": "bool"
1526
- },
1527
- {
1528
- "internalType": "uint256",
1529
- "name": "_swapDeltaBP",
1530
- "type": "uint256"
1531
- },
1532
- {
1533
- "internalType": "uint256",
1534
- "name": "_lpDeltaBP",
1535
- "type": "uint256"
1536
- },
1537
- {
1538
- "internalType": "bool",
1539
- "name": "_defaultSwapMode",
1540
- "type": "bool"
1541
- },
1542
- {
1543
- "internalType": "bool",
1544
- "name": "_defaultLPMode",
1545
- "type": "bool"
1546
- }
1547
- ],
1548
- "name": "setDeltaParam",
1549
- "outputs": [],
1550
- "stateMutability": "nonpayable",
1551
- "type": "function"
1552
- },
1553
- {
1554
- "inputs": [
1555
- {
1556
- "internalType": "uint256",
1557
- "name": "_mintFeeBP",
1558
- "type": "uint256"
1559
- }
1560
- ],
1561
- "name": "setFee",
1562
- "outputs": [],
1563
- "stateMutability": "nonpayable",
1564
- "type": "function"
1565
- },
1566
- {
1567
- "inputs": [
1568
- {
1569
- "internalType": "address",
1570
- "name": "_feeLibraryAddr",
1571
- "type": "address"
1572
- }
1573
- ],
1574
- "name": "setFeeLibrary",
1575
- "outputs": [],
1576
- "stateMutability": "nonpayable",
1577
- "type": "function"
1578
- },
1579
- {
1580
- "inputs": [
1581
- {
1582
- "internalType": "bool",
1583
- "name": "_swapStop",
1584
- "type": "bool"
1585
- }
1586
- ],
1587
- "name": "setSwapStop",
1588
- "outputs": [],
1589
- "stateMutability": "nonpayable",
1590
- "type": "function"
1591
- },
1592
- {
1593
- "inputs": [
1594
- {
1595
- "internalType": "uint16",
1596
- "name": "_dstChainId",
1597
- "type": "uint16"
1598
- },
1599
- {
1600
- "internalType": "uint256",
1601
- "name": "_dstPoolId",
1602
- "type": "uint256"
1603
- },
1604
- {
1605
- "internalType": "uint16",
1606
- "name": "_weight",
1607
- "type": "uint16"
1608
- }
1609
- ],
1610
- "name": "setWeightForChainPath",
1611
- "outputs": [],
1612
- "stateMutability": "nonpayable",
1613
- "type": "function"
1614
- },
1615
- {
1616
- "inputs": [],
1617
- "name": "sharedDecimals",
1618
- "outputs": [
1619
- {
1620
- "internalType": "uint256",
1621
- "name": "",
1622
- "type": "uint256"
1623
- }
1624
- ],
1625
- "stateMutability": "view",
1626
- "type": "function"
1627
- },
1628
- {
1629
- "inputs": [],
1630
- "name": "stopSwap",
1631
- "outputs": [
1632
- {
1633
- "internalType": "bool",
1634
- "name": "",
1635
- "type": "bool"
1636
- }
1637
- ],
1638
- "stateMutability": "view",
1639
- "type": "function"
1640
- },
1641
- {
1642
- "inputs": [
1643
- {
1644
- "internalType": "uint16",
1645
- "name": "_dstChainId",
1646
- "type": "uint16"
1647
- },
1648
- {
1649
- "internalType": "uint256",
1650
- "name": "_dstPoolId",
1651
- "type": "uint256"
1652
- },
1653
- {
1654
- "internalType": "address",
1655
- "name": "_from",
1656
- "type": "address"
1657
- },
1658
- {
1659
- "internalType": "uint256",
1660
- "name": "_amountLD",
1661
- "type": "uint256"
1662
- },
1663
- {
1664
- "internalType": "uint256",
1665
- "name": "_minAmountLD",
1666
- "type": "uint256"
1667
- },
1668
- {
1669
- "internalType": "bool",
1670
- "name": "newLiquidity",
1671
- "type": "bool"
1672
- }
1673
- ],
1674
- "name": "swap",
1675
- "outputs": [
1676
- {
1677
- "components": [
1678
- {
1679
- "internalType": "uint256",
1680
- "name": "amount",
1681
- "type": "uint256"
1682
- },
1683
- {
1684
- "internalType": "uint256",
1685
- "name": "eqFee",
1686
- "type": "uint256"
1687
- },
1688
- {
1689
- "internalType": "uint256",
1690
- "name": "eqReward",
1691
- "type": "uint256"
1692
- },
1693
- {
1694
- "internalType": "uint256",
1695
- "name": "lpFee",
1696
- "type": "uint256"
1697
- },
1698
- {
1699
- "internalType": "uint256",
1700
- "name": "protocolFee",
1701
- "type": "uint256"
1702
- },
1703
- {
1704
- "internalType": "uint256",
1705
- "name": "lkbRemove",
1706
- "type": "uint256"
1707
- }
1708
- ],
1709
- "internalType": "struct Pool.SwapObj",
1710
- "name": "",
1711
- "type": "tuple"
1712
- }
1713
- ],
1714
- "stateMutability": "nonpayable",
1715
- "type": "function"
1716
- },
1717
- {
1718
- "inputs": [],
1719
- "name": "swapDeltaBP",
1720
- "outputs": [
1721
- {
1722
- "internalType": "uint256",
1723
- "name": "",
1724
- "type": "uint256"
1725
- }
1726
- ],
1727
- "stateMutability": "view",
1728
- "type": "function"
1729
- },
1730
- {
1731
- "inputs": [
1732
- {
1733
- "internalType": "uint16",
1734
- "name": "_srcChainId",
1735
- "type": "uint16"
1736
- },
1737
- {
1738
- "internalType": "uint256",
1739
- "name": "_srcPoolId",
1740
- "type": "uint256"
1741
- },
1742
- {
1743
- "internalType": "address",
1744
- "name": "_to",
1745
- "type": "address"
1746
- },
1747
- {
1748
- "components": [
1749
- {
1750
- "internalType": "uint256",
1751
- "name": "amount",
1752
- "type": "uint256"
1753
- },
1754
- {
1755
- "internalType": "uint256",
1756
- "name": "eqFee",
1757
- "type": "uint256"
1758
- },
1759
- {
1760
- "internalType": "uint256",
1761
- "name": "eqReward",
1762
- "type": "uint256"
1763
- },
1764
- {
1765
- "internalType": "uint256",
1766
- "name": "lpFee",
1767
- "type": "uint256"
1768
- },
1769
- {
1770
- "internalType": "uint256",
1771
- "name": "protocolFee",
1772
- "type": "uint256"
1773
- },
1774
- {
1775
- "internalType": "uint256",
1776
- "name": "lkbRemove",
1777
- "type": "uint256"
1778
- }
1779
- ],
1780
- "internalType": "struct Pool.SwapObj",
1781
- "name": "_s",
1782
- "type": "tuple"
1783
- }
1784
- ],
1785
- "name": "swapRemote",
1786
- "outputs": [
1787
- {
1788
- "internalType": "uint256",
1789
- "name": "amountLD",
1790
- "type": "uint256"
1791
- }
1792
- ],
1793
- "stateMutability": "nonpayable",
1794
- "type": "function"
1795
- },
1796
- {
1797
- "inputs": [],
1798
- "name": "symbol",
1799
- "outputs": [
1800
- {
1801
- "internalType": "string",
1802
- "name": "",
1803
- "type": "string"
1804
- }
1805
- ],
1806
- "stateMutability": "view",
1807
- "type": "function"
1808
- },
1809
- {
1810
- "inputs": [],
1811
- "name": "token",
1812
- "outputs": [
1813
- {
1814
- "internalType": "address",
1815
- "name": "",
1816
- "type": "address"
1817
- }
1818
- ],
1819
- "stateMutability": "view",
1820
- "type": "function"
1821
- },
1822
- {
1823
- "inputs": [],
1824
- "name": "totalLiquidity",
1825
- "outputs": [
1826
- {
1827
- "internalType": "uint256",
1828
- "name": "",
1829
- "type": "uint256"
1830
- }
1831
- ],
1832
- "stateMutability": "view",
1833
- "type": "function"
1834
- },
1835
- {
1836
- "inputs": [],
1837
- "name": "totalSupply",
1838
- "outputs": [
1839
- {
1840
- "internalType": "uint256",
1841
- "name": "",
1842
- "type": "uint256"
1843
- }
1844
- ],
1845
- "stateMutability": "view",
1846
- "type": "function"
1847
- },
1848
- {
1849
- "inputs": [],
1850
- "name": "totalWeight",
1851
- "outputs": [
1852
- {
1853
- "internalType": "uint256",
1854
- "name": "",
1855
- "type": "uint256"
1856
- }
1857
- ],
1858
- "stateMutability": "view",
1859
- "type": "function"
1860
- },
1861
- {
1862
- "inputs": [
1863
- {
1864
- "internalType": "address",
1865
- "name": "to",
1866
- "type": "address"
1867
- },
1868
- {
1869
- "internalType": "uint256",
1870
- "name": "value",
1871
- "type": "uint256"
1872
- }
1873
- ],
1874
- "name": "transfer",
1875
- "outputs": [
1876
- {
1877
- "internalType": "bool",
1878
- "name": "",
1879
- "type": "bool"
1880
- }
1881
- ],
1882
- "stateMutability": "nonpayable",
1883
- "type": "function"
1884
- },
1885
- {
1886
- "inputs": [
1887
- {
1888
- "internalType": "address",
1889
- "name": "from",
1890
- "type": "address"
1891
- },
1892
- {
1893
- "internalType": "address",
1894
- "name": "to",
1895
- "type": "address"
1896
- },
1897
- {
1898
- "internalType": "uint256",
1899
- "name": "value",
1900
- "type": "uint256"
1901
- }
1902
- ],
1903
- "name": "transferFrom",
1904
- "outputs": [
1905
- {
1906
- "internalType": "bool",
1907
- "name": "",
1908
- "type": "bool"
1909
- }
1910
- ],
1911
- "stateMutability": "nonpayable",
1912
- "type": "function"
1913
- },
1914
- {
1915
- "inputs": [
1916
- {
1917
- "internalType": "address",
1918
- "name": "_to",
1919
- "type": "address"
1920
- }
1921
- ],
1922
- "name": "withdrawMintFeeBalance",
1923
- "outputs": [],
1924
- "stateMutability": "nonpayable",
1925
- "type": "function"
1926
- },
1927
- {
1928
- "inputs": [
1929
- {
1930
- "internalType": "address",
1931
- "name": "_to",
1932
- "type": "address"
1933
- }
1934
- ],
1935
- "name": "withdrawProtocolFeeBalance",
1936
- "outputs": [],
1937
- "stateMutability": "nonpayable",
1938
- "type": "function"
1939
- }
1940
- ]