defi-state-querier 0.4.26__py3-none-any.whl → 0.4.27__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. defi_services/__init__.py +1 -1
  2. defi_services/abis/vault/lido/__init__.py +0 -0
  3. defi_services/abis/vault/lido/event_transfer_shares.py +8 -0
  4. defi_services/abis/vault/lido/lido_1inch_steth_dai_pool.py +1308 -0
  5. defi_services/abis/vault/lido/lido_accounting_oracle.py +1342 -0
  6. defi_services/abis/vault/lido/lido_add_allowed_recipient.py +96 -0
  7. defi_services/abis/vault/lido/lido_allowed_recipents_factory.py +303 -0
  8. defi_services/abis/vault/lido/lido_allowed_recipients_builder_multi_token_tooling.py +427 -0
  9. defi_services/abis/vault/lido/lido_allowed_recipients_builder_tooling.py +414 -0
  10. defi_services/abis/vault/lido/lido_allowed_recipients_factory_multi_token.py +369 -0
  11. defi_services/abis/vault/lido/lido_allowed_recipients_registry.py +654 -0
  12. defi_services/abis/vault/lido/lido_allowed_token_registry.py +397 -0
  13. defi_services/abis/vault/lido/lido_anchor_vault.py +599 -0
  14. defi_services/abis/vault/lido/lido_aragon_acl.py +755 -0
  15. defi_services/abis/vault/lido/lido_aragon_agent.py +984 -0
  16. defi_services/abis/vault/lido/lido_aragon_finance.py +1013 -0
  17. defi_services/abis/vault/lido/lido_aragon_pm.py +490 -0
  18. defi_services/abis/vault/lido/lido_aragon_token_manager.py +759 -0
  19. defi_services/abis/vault/lido/lido_aragon_voting.py +887 -0
  20. defi_services/abis/vault/lido/lido_balancer_wseth_eth_pool.py +1441 -0
  21. defi_services/abis/vault/lido/lido_burner.py +698 -0
  22. defi_services/abis/vault/lido/lido_curated_staking_module.py +1571 -0
  23. defi_services/abis/vault/lido/lido_curve_liquidity_farming_manager.py +113 -0
  24. defi_services/abis/vault/lido/lido_curve_liquidity_farming_pool.py +899 -0
  25. defi_services/abis/vault/lido/lido_curve_liquidity_farming_reward.py +666 -0
  26. defi_services/abis/vault/lido/lido_curve_steth_eth_gauge.py +967 -0
  27. defi_services/abis/vault/lido/lido_curve_steth_eth_pool.py +986 -0
  28. defi_services/abis/vault/lido/lido_dao.py +623 -0
  29. defi_services/abis/vault/lido/lido_dao_insurance_fund.py +283 -0
  30. defi_services/abis/vault/lido/lido_dao_token.py +590 -0
  31. defi_services/abis/vault/lido/lido_deposit_security_module.py +687 -0
  32. defi_services/abis/vault/lido/lido_early_stakes_airdrop.py +120 -0
  33. defi_services/abis/vault/lido/lido_easy_track.py +1108 -0
  34. defi_services/abis/vault/lido/lido_evem_script_executor.py +170 -0
  35. defi_services/abis/vault/lido/lido_execution_layer_rewards_vaults.py +170 -0
  36. defi_services/abis/vault/lido/lido_l1_executor.py +135 -0
  37. defi_services/abis/vault/lido/lido_l1_proxy_admin.py +155 -0
  38. defi_services/abis/vault/lido/lido_legacy_oracle.py +539 -0
  39. defi_services/abis/vault/lido/lido_liquidity_farming_pool.py +899 -0
  40. defi_services/abis/vault/lido/lido_locator.py +357 -0
  41. defi_services/abis/vault/lido/lido_mev_boost_relay_allowed_list.py +331 -0
  42. defi_services/abis/vault/lido/lido_multisigs.py +1037 -0
  43. defi_services/abis/vault/lido/lido_oracle_daemon_config.py +474 -0
  44. defi_services/abis/vault/lido/lido_oracle_report_sanity_checker.py +1327 -0
  45. defi_services/abis/vault/lido/lido_remove_allowed_recipient.py +91 -0
  46. defi_services/abis/vault/lido/lido_staking_router.py +2311 -0
  47. defi_services/abis/vault/lido/lido_steth.py +1604 -0
  48. defi_services/abis/vault/lido/lido_stonks.py +744 -0
  49. defi_services/abis/vault/lido/lido_sushi_wsteth_dai_pool.py +662 -0
  50. defi_services/abis/vault/lido/lido_token_brigde.py +735 -0
  51. defi_services/abis/vault/lido/lido_token_gateway.py +808 -0
  52. defi_services/abis/vault/lido/lido_token_reward_program.py +363 -0
  53. defi_services/abis/vault/lido/lido_top_up_allowed_recipients.py +150 -0
  54. defi_services/abis/vault/lido/lido_validators_exit_bus_oracle.py +1230 -0
  55. defi_services/abis/vault/lido/lido_validators_exit_bus_oracle_hash_consensus.py +1085 -0
  56. defi_services/abis/vault/lido/lido_voting_repo.py +434 -0
  57. defi_services/abis/vault/lido/lido_withdrawal_vault.py +121 -0
  58. defi_services/abis/vault/lido/lido_withdrawl_queue.py +2031 -0
  59. defi_services/abis/vault/lido/lido_wsteth.py +481 -0
  60. defi_services/abis/vault/lido/lidor_accounting_oracle_hash_consensus.py +1085 -0
  61. defi_services/services/token_services.py +1 -1
  62. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/METADATA +1 -1
  63. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/RECORD +66 -7
  64. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/WHEEL +1 -1
  65. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/LICENSE +0 -0
  66. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1441 @@
1
+ import json
2
+
3
+ LIDO_BALANCER_WSETH_ETH_POOL_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "components": [
9
+ {
10
+ "internalType": "contract IVault",
11
+ "name": "vault",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "string",
16
+ "name": "name",
17
+ "type": "string"
18
+ },
19
+ {
20
+ "internalType": "string",
21
+ "name": "symbol",
22
+ "type": "string"
23
+ },
24
+ {
25
+ "internalType": "contract IERC20[]",
26
+ "name": "tokens",
27
+ "type": "address[]"
28
+ },
29
+ {
30
+ "internalType": "contract IRateProvider[]",
31
+ "name": "rateProviders",
32
+ "type": "address[]"
33
+ },
34
+ {
35
+ "internalType": "uint256[]",
36
+ "name": "priceRateCacheDuration",
37
+ "type": "uint256[]"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "amplificationParameter",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "swapFeePercentage",
47
+ "type": "uint256"
48
+ },
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "pauseWindowDuration",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "internalType": "uint256",
56
+ "name": "bufferPeriodDuration",
57
+ "type": "uint256"
58
+ },
59
+ {
60
+ "internalType": "bool",
61
+ "name": "oracleEnabled",
62
+ "type": "bool"
63
+ },
64
+ {
65
+ "internalType": "address",
66
+ "name": "owner",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "internalType": "struct MetaStablePool.NewPoolParams",
71
+ "name": "params",
72
+ "type": "tuple"
73
+ }
74
+ ],
75
+ "stateMutability": "nonpayable",
76
+ "type": "constructor"
77
+ },
78
+ {
79
+ "anonymous": false,
80
+ "inputs": [
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "startValue",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "endValue",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "uint256",
96
+ "name": "startTime",
97
+ "type": "uint256"
98
+ },
99
+ {
100
+ "indexed": false,
101
+ "internalType": "uint256",
102
+ "name": "endTime",
103
+ "type": "uint256"
104
+ }
105
+ ],
106
+ "name": "AmpUpdateStarted",
107
+ "type": "event"
108
+ },
109
+ {
110
+ "anonymous": false,
111
+ "inputs": [
112
+ {
113
+ "indexed": false,
114
+ "internalType": "uint256",
115
+ "name": "currentValue",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "name": "AmpUpdateStopped",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "anonymous": false,
124
+ "inputs": [
125
+ {
126
+ "indexed": true,
127
+ "internalType": "address",
128
+ "name": "owner",
129
+ "type": "address"
130
+ },
131
+ {
132
+ "indexed": true,
133
+ "internalType": "address",
134
+ "name": "spender",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint256",
140
+ "name": "value",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "name": "Approval",
145
+ "type": "event"
146
+ },
147
+ {
148
+ "anonymous": false,
149
+ "inputs": [
150
+ {
151
+ "indexed": false,
152
+ "internalType": "bool",
153
+ "name": "enabled",
154
+ "type": "bool"
155
+ }
156
+ ],
157
+ "name": "OracleEnabledChanged",
158
+ "type": "event"
159
+ },
160
+ {
161
+ "anonymous": false,
162
+ "inputs": [
163
+ {
164
+ "indexed": false,
165
+ "internalType": "bool",
166
+ "name": "paused",
167
+ "type": "bool"
168
+ }
169
+ ],
170
+ "name": "PausedStateChanged",
171
+ "type": "event"
172
+ },
173
+ {
174
+ "anonymous": false,
175
+ "inputs": [
176
+ {
177
+ "indexed": true,
178
+ "internalType": "contract IERC20",
179
+ "name": "token",
180
+ "type": "address"
181
+ },
182
+ {
183
+ "indexed": false,
184
+ "internalType": "uint256",
185
+ "name": "rate",
186
+ "type": "uint256"
187
+ }
188
+ ],
189
+ "name": "PriceRateCacheUpdated",
190
+ "type": "event"
191
+ },
192
+ {
193
+ "anonymous": false,
194
+ "inputs": [
195
+ {
196
+ "indexed": true,
197
+ "internalType": "contract IERC20",
198
+ "name": "token",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "indexed": true,
203
+ "internalType": "contract IRateProvider",
204
+ "name": "provider",
205
+ "type": "address"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "internalType": "uint256",
210
+ "name": "cacheDuration",
211
+ "type": "uint256"
212
+ }
213
+ ],
214
+ "name": "PriceRateProviderSet",
215
+ "type": "event"
216
+ },
217
+ {
218
+ "anonymous": false,
219
+ "inputs": [
220
+ {
221
+ "indexed": false,
222
+ "internalType": "uint256",
223
+ "name": "swapFeePercentage",
224
+ "type": "uint256"
225
+ }
226
+ ],
227
+ "name": "SwapFeePercentageChanged",
228
+ "type": "event"
229
+ },
230
+ {
231
+ "anonymous": false,
232
+ "inputs": [
233
+ {
234
+ "indexed": true,
235
+ "internalType": "address",
236
+ "name": "from",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "indexed": true,
241
+ "internalType": "address",
242
+ "name": "to",
243
+ "type": "address"
244
+ },
245
+ {
246
+ "indexed": false,
247
+ "internalType": "uint256",
248
+ "name": "value",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "name": "Transfer",
253
+ "type": "event"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "DOMAIN_SEPARATOR",
258
+ "outputs": [
259
+ {
260
+ "internalType": "bytes32",
261
+ "name": "",
262
+ "type": "bytes32"
263
+ }
264
+ ],
265
+ "stateMutability": "view",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [
270
+ {
271
+ "internalType": "address",
272
+ "name": "owner",
273
+ "type": "address"
274
+ },
275
+ {
276
+ "internalType": "address",
277
+ "name": "spender",
278
+ "type": "address"
279
+ }
280
+ ],
281
+ "name": "allowance",
282
+ "outputs": [
283
+ {
284
+ "internalType": "uint256",
285
+ "name": "",
286
+ "type": "uint256"
287
+ }
288
+ ],
289
+ "stateMutability": "view",
290
+ "type": "function"
291
+ },
292
+ {
293
+ "inputs": [
294
+ {
295
+ "internalType": "address",
296
+ "name": "spender",
297
+ "type": "address"
298
+ },
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "amount",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "name": "approve",
306
+ "outputs": [
307
+ {
308
+ "internalType": "bool",
309
+ "name": "",
310
+ "type": "bool"
311
+ }
312
+ ],
313
+ "stateMutability": "nonpayable",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [
318
+ {
319
+ "internalType": "address",
320
+ "name": "account",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "name": "balanceOf",
325
+ "outputs": [
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "stateMutability": "view",
333
+ "type": "function"
334
+ },
335
+ {
336
+ "inputs": [],
337
+ "name": "decimals",
338
+ "outputs": [
339
+ {
340
+ "internalType": "uint8",
341
+ "name": "",
342
+ "type": "uint8"
343
+ }
344
+ ],
345
+ "stateMutability": "view",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [
350
+ {
351
+ "internalType": "address",
352
+ "name": "spender",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "internalType": "uint256",
357
+ "name": "amount",
358
+ "type": "uint256"
359
+ }
360
+ ],
361
+ "name": "decreaseAllowance",
362
+ "outputs": [
363
+ {
364
+ "internalType": "bool",
365
+ "name": "",
366
+ "type": "bool"
367
+ }
368
+ ],
369
+ "stateMutability": "nonpayable",
370
+ "type": "function"
371
+ },
372
+ {
373
+ "inputs": [],
374
+ "name": "enableOracle",
375
+ "outputs": [],
376
+ "stateMutability": "nonpayable",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [
381
+ {
382
+ "internalType": "bytes4",
383
+ "name": "selector",
384
+ "type": "bytes4"
385
+ }
386
+ ],
387
+ "name": "getActionId",
388
+ "outputs": [
389
+ {
390
+ "internalType": "bytes32",
391
+ "name": "",
392
+ "type": "bytes32"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [],
400
+ "name": "getAmplificationParameter",
401
+ "outputs": [
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "value",
405
+ "type": "uint256"
406
+ },
407
+ {
408
+ "internalType": "bool",
409
+ "name": "isUpdating",
410
+ "type": "bool"
411
+ },
412
+ {
413
+ "internalType": "uint256",
414
+ "name": "precision",
415
+ "type": "uint256"
416
+ }
417
+ ],
418
+ "stateMutability": "view",
419
+ "type": "function"
420
+ },
421
+ {
422
+ "inputs": [],
423
+ "name": "getAuthorizer",
424
+ "outputs": [
425
+ {
426
+ "internalType": "contract IAuthorizer",
427
+ "name": "",
428
+ "type": "address"
429
+ }
430
+ ],
431
+ "stateMutability": "view",
432
+ "type": "function"
433
+ },
434
+ {
435
+ "inputs": [],
436
+ "name": "getLargestSafeQueryWindow",
437
+ "outputs": [
438
+ {
439
+ "internalType": "uint256",
440
+ "name": "",
441
+ "type": "uint256"
442
+ }
443
+ ],
444
+ "stateMutability": "pure",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "getLastInvariant",
450
+ "outputs": [
451
+ {
452
+ "internalType": "uint256",
453
+ "name": "lastInvariant",
454
+ "type": "uint256"
455
+ },
456
+ {
457
+ "internalType": "uint256",
458
+ "name": "lastInvariantAmp",
459
+ "type": "uint256"
460
+ }
461
+ ],
462
+ "stateMutability": "view",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "enum IPriceOracle.Variable",
469
+ "name": "variable",
470
+ "type": "uint8"
471
+ }
472
+ ],
473
+ "name": "getLatest",
474
+ "outputs": [
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "",
478
+ "type": "uint256"
479
+ }
480
+ ],
481
+ "stateMutability": "view",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [],
486
+ "name": "getOracleMiscData",
487
+ "outputs": [
488
+ {
489
+ "internalType": "int256",
490
+ "name": "logInvariant",
491
+ "type": "int256"
492
+ },
493
+ {
494
+ "internalType": "int256",
495
+ "name": "logTotalSupply",
496
+ "type": "int256"
497
+ },
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "oracleSampleCreationTimestamp",
501
+ "type": "uint256"
502
+ },
503
+ {
504
+ "internalType": "uint256",
505
+ "name": "oracleIndex",
506
+ "type": "uint256"
507
+ },
508
+ {
509
+ "internalType": "bool",
510
+ "name": "oracleEnabled",
511
+ "type": "bool"
512
+ }
513
+ ],
514
+ "stateMutability": "view",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [],
519
+ "name": "getOwner",
520
+ "outputs": [
521
+ {
522
+ "internalType": "address",
523
+ "name": "",
524
+ "type": "address"
525
+ }
526
+ ],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
530
+ {
531
+ "inputs": [
532
+ {
533
+ "components": [
534
+ {
535
+ "internalType": "enum IPriceOracle.Variable",
536
+ "name": "variable",
537
+ "type": "uint8"
538
+ },
539
+ {
540
+ "internalType": "uint256",
541
+ "name": "ago",
542
+ "type": "uint256"
543
+ }
544
+ ],
545
+ "internalType": "struct IPriceOracle.OracleAccumulatorQuery[]",
546
+ "name": "queries",
547
+ "type": "tuple[]"
548
+ }
549
+ ],
550
+ "name": "getPastAccumulators",
551
+ "outputs": [
552
+ {
553
+ "internalType": "int256[]",
554
+ "name": "results",
555
+ "type": "int256[]"
556
+ }
557
+ ],
558
+ "stateMutability": "view",
559
+ "type": "function"
560
+ },
561
+ {
562
+ "inputs": [],
563
+ "name": "getPausedState",
564
+ "outputs": [
565
+ {
566
+ "internalType": "bool",
567
+ "name": "paused",
568
+ "type": "bool"
569
+ },
570
+ {
571
+ "internalType": "uint256",
572
+ "name": "pauseWindowEndTime",
573
+ "type": "uint256"
574
+ },
575
+ {
576
+ "internalType": "uint256",
577
+ "name": "bufferPeriodEndTime",
578
+ "type": "uint256"
579
+ }
580
+ ],
581
+ "stateMutability": "view",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [],
586
+ "name": "getPoolId",
587
+ "outputs": [
588
+ {
589
+ "internalType": "bytes32",
590
+ "name": "",
591
+ "type": "bytes32"
592
+ }
593
+ ],
594
+ "stateMutability": "view",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [
599
+ {
600
+ "internalType": "contract IERC20",
601
+ "name": "token",
602
+ "type": "address"
603
+ }
604
+ ],
605
+ "name": "getPriceRateCache",
606
+ "outputs": [
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "rate",
610
+ "type": "uint256"
611
+ },
612
+ {
613
+ "internalType": "uint256",
614
+ "name": "duration",
615
+ "type": "uint256"
616
+ },
617
+ {
618
+ "internalType": "uint256",
619
+ "name": "expires",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "stateMutability": "view",
624
+ "type": "function"
625
+ },
626
+ {
627
+ "inputs": [],
628
+ "name": "getRate",
629
+ "outputs": [
630
+ {
631
+ "internalType": "uint256",
632
+ "name": "",
633
+ "type": "uint256"
634
+ }
635
+ ],
636
+ "stateMutability": "view",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [],
641
+ "name": "getRateProviders",
642
+ "outputs": [
643
+ {
644
+ "internalType": "contract IRateProvider[]",
645
+ "name": "providers",
646
+ "type": "address[]"
647
+ }
648
+ ],
649
+ "stateMutability": "view",
650
+ "type": "function"
651
+ },
652
+ {
653
+ "inputs": [
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "index",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "name": "getSample",
661
+ "outputs": [
662
+ {
663
+ "internalType": "int256",
664
+ "name": "logPairPrice",
665
+ "type": "int256"
666
+ },
667
+ {
668
+ "internalType": "int256",
669
+ "name": "accLogPairPrice",
670
+ "type": "int256"
671
+ },
672
+ {
673
+ "internalType": "int256",
674
+ "name": "logBptPrice",
675
+ "type": "int256"
676
+ },
677
+ {
678
+ "internalType": "int256",
679
+ "name": "accLogBptPrice",
680
+ "type": "int256"
681
+ },
682
+ {
683
+ "internalType": "int256",
684
+ "name": "logInvariant",
685
+ "type": "int256"
686
+ },
687
+ {
688
+ "internalType": "int256",
689
+ "name": "accLogInvariant",
690
+ "type": "int256"
691
+ },
692
+ {
693
+ "internalType": "uint256",
694
+ "name": "timestamp",
695
+ "type": "uint256"
696
+ }
697
+ ],
698
+ "stateMutability": "view",
699
+ "type": "function"
700
+ },
701
+ {
702
+ "inputs": [],
703
+ "name": "getScalingFactors",
704
+ "outputs": [
705
+ {
706
+ "internalType": "uint256[]",
707
+ "name": "",
708
+ "type": "uint256[]"
709
+ }
710
+ ],
711
+ "stateMutability": "view",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [],
716
+ "name": "getSwapFeePercentage",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [
729
+ {
730
+ "components": [
731
+ {
732
+ "internalType": "enum IPriceOracle.Variable",
733
+ "name": "variable",
734
+ "type": "uint8"
735
+ },
736
+ {
737
+ "internalType": "uint256",
738
+ "name": "secs",
739
+ "type": "uint256"
740
+ },
741
+ {
742
+ "internalType": "uint256",
743
+ "name": "ago",
744
+ "type": "uint256"
745
+ }
746
+ ],
747
+ "internalType": "struct IPriceOracle.OracleAverageQuery[]",
748
+ "name": "queries",
749
+ "type": "tuple[]"
750
+ }
751
+ ],
752
+ "name": "getTimeWeightedAverage",
753
+ "outputs": [
754
+ {
755
+ "internalType": "uint256[]",
756
+ "name": "results",
757
+ "type": "uint256[]"
758
+ }
759
+ ],
760
+ "stateMutability": "view",
761
+ "type": "function"
762
+ },
763
+ {
764
+ "inputs": [],
765
+ "name": "getTotalSamples",
766
+ "outputs": [
767
+ {
768
+ "internalType": "uint256",
769
+ "name": "",
770
+ "type": "uint256"
771
+ }
772
+ ],
773
+ "stateMutability": "pure",
774
+ "type": "function"
775
+ },
776
+ {
777
+ "inputs": [],
778
+ "name": "getVault",
779
+ "outputs": [
780
+ {
781
+ "internalType": "contract IVault",
782
+ "name": "",
783
+ "type": "address"
784
+ }
785
+ ],
786
+ "stateMutability": "view",
787
+ "type": "function"
788
+ },
789
+ {
790
+ "inputs": [
791
+ {
792
+ "internalType": "address",
793
+ "name": "spender",
794
+ "type": "address"
795
+ },
796
+ {
797
+ "internalType": "uint256",
798
+ "name": "addedValue",
799
+ "type": "uint256"
800
+ }
801
+ ],
802
+ "name": "increaseAllowance",
803
+ "outputs": [
804
+ {
805
+ "internalType": "bool",
806
+ "name": "",
807
+ "type": "bool"
808
+ }
809
+ ],
810
+ "stateMutability": "nonpayable",
811
+ "type": "function"
812
+ },
813
+ {
814
+ "inputs": [],
815
+ "name": "name",
816
+ "outputs": [
817
+ {
818
+ "internalType": "string",
819
+ "name": "",
820
+ "type": "string"
821
+ }
822
+ ],
823
+ "stateMutability": "view",
824
+ "type": "function"
825
+ },
826
+ {
827
+ "inputs": [
828
+ {
829
+ "internalType": "address",
830
+ "name": "owner",
831
+ "type": "address"
832
+ }
833
+ ],
834
+ "name": "nonces",
835
+ "outputs": [
836
+ {
837
+ "internalType": "uint256",
838
+ "name": "",
839
+ "type": "uint256"
840
+ }
841
+ ],
842
+ "stateMutability": "view",
843
+ "type": "function"
844
+ },
845
+ {
846
+ "inputs": [
847
+ {
848
+ "internalType": "bytes32",
849
+ "name": "poolId",
850
+ "type": "bytes32"
851
+ },
852
+ {
853
+ "internalType": "address",
854
+ "name": "sender",
855
+ "type": "address"
856
+ },
857
+ {
858
+ "internalType": "address",
859
+ "name": "recipient",
860
+ "type": "address"
861
+ },
862
+ {
863
+ "internalType": "uint256[]",
864
+ "name": "balances",
865
+ "type": "uint256[]"
866
+ },
867
+ {
868
+ "internalType": "uint256",
869
+ "name": "lastChangeBlock",
870
+ "type": "uint256"
871
+ },
872
+ {
873
+ "internalType": "uint256",
874
+ "name": "protocolSwapFeePercentage",
875
+ "type": "uint256"
876
+ },
877
+ {
878
+ "internalType": "bytes",
879
+ "name": "userData",
880
+ "type": "bytes"
881
+ }
882
+ ],
883
+ "name": "onExitPool",
884
+ "outputs": [
885
+ {
886
+ "internalType": "uint256[]",
887
+ "name": "amountsOut",
888
+ "type": "uint256[]"
889
+ },
890
+ {
891
+ "internalType": "uint256[]",
892
+ "name": "dueProtocolFeeAmounts",
893
+ "type": "uint256[]"
894
+ }
895
+ ],
896
+ "stateMutability": "nonpayable",
897
+ "type": "function"
898
+ },
899
+ {
900
+ "inputs": [
901
+ {
902
+ "internalType": "bytes32",
903
+ "name": "poolId",
904
+ "type": "bytes32"
905
+ },
906
+ {
907
+ "internalType": "address",
908
+ "name": "sender",
909
+ "type": "address"
910
+ },
911
+ {
912
+ "internalType": "address",
913
+ "name": "recipient",
914
+ "type": "address"
915
+ },
916
+ {
917
+ "internalType": "uint256[]",
918
+ "name": "balances",
919
+ "type": "uint256[]"
920
+ },
921
+ {
922
+ "internalType": "uint256",
923
+ "name": "lastChangeBlock",
924
+ "type": "uint256"
925
+ },
926
+ {
927
+ "internalType": "uint256",
928
+ "name": "protocolSwapFeePercentage",
929
+ "type": "uint256"
930
+ },
931
+ {
932
+ "internalType": "bytes",
933
+ "name": "userData",
934
+ "type": "bytes"
935
+ }
936
+ ],
937
+ "name": "onJoinPool",
938
+ "outputs": [
939
+ {
940
+ "internalType": "uint256[]",
941
+ "name": "amountsIn",
942
+ "type": "uint256[]"
943
+ },
944
+ {
945
+ "internalType": "uint256[]",
946
+ "name": "dueProtocolFeeAmounts",
947
+ "type": "uint256[]"
948
+ }
949
+ ],
950
+ "stateMutability": "nonpayable",
951
+ "type": "function"
952
+ },
953
+ {
954
+ "inputs": [
955
+ {
956
+ "components": [
957
+ {
958
+ "internalType": "enum IVault.SwapKind",
959
+ "name": "kind",
960
+ "type": "uint8"
961
+ },
962
+ {
963
+ "internalType": "contract IERC20",
964
+ "name": "tokenIn",
965
+ "type": "address"
966
+ },
967
+ {
968
+ "internalType": "contract IERC20",
969
+ "name": "tokenOut",
970
+ "type": "address"
971
+ },
972
+ {
973
+ "internalType": "uint256",
974
+ "name": "amount",
975
+ "type": "uint256"
976
+ },
977
+ {
978
+ "internalType": "bytes32",
979
+ "name": "poolId",
980
+ "type": "bytes32"
981
+ },
982
+ {
983
+ "internalType": "uint256",
984
+ "name": "lastChangeBlock",
985
+ "type": "uint256"
986
+ },
987
+ {
988
+ "internalType": "address",
989
+ "name": "from",
990
+ "type": "address"
991
+ },
992
+ {
993
+ "internalType": "address",
994
+ "name": "to",
995
+ "type": "address"
996
+ },
997
+ {
998
+ "internalType": "bytes",
999
+ "name": "userData",
1000
+ "type": "bytes"
1001
+ }
1002
+ ],
1003
+ "internalType": "struct IPoolSwapStructs.SwapRequest",
1004
+ "name": "request",
1005
+ "type": "tuple"
1006
+ },
1007
+ {
1008
+ "internalType": "uint256[]",
1009
+ "name": "balances",
1010
+ "type": "uint256[]"
1011
+ },
1012
+ {
1013
+ "internalType": "uint256",
1014
+ "name": "indexIn",
1015
+ "type": "uint256"
1016
+ },
1017
+ {
1018
+ "internalType": "uint256",
1019
+ "name": "indexOut",
1020
+ "type": "uint256"
1021
+ }
1022
+ ],
1023
+ "name": "onSwap",
1024
+ "outputs": [
1025
+ {
1026
+ "internalType": "uint256",
1027
+ "name": "",
1028
+ "type": "uint256"
1029
+ }
1030
+ ],
1031
+ "stateMutability": "nonpayable",
1032
+ "type": "function"
1033
+ },
1034
+ {
1035
+ "inputs": [
1036
+ {
1037
+ "components": [
1038
+ {
1039
+ "internalType": "enum IVault.SwapKind",
1040
+ "name": "kind",
1041
+ "type": "uint8"
1042
+ },
1043
+ {
1044
+ "internalType": "contract IERC20",
1045
+ "name": "tokenIn",
1046
+ "type": "address"
1047
+ },
1048
+ {
1049
+ "internalType": "contract IERC20",
1050
+ "name": "tokenOut",
1051
+ "type": "address"
1052
+ },
1053
+ {
1054
+ "internalType": "uint256",
1055
+ "name": "amount",
1056
+ "type": "uint256"
1057
+ },
1058
+ {
1059
+ "internalType": "bytes32",
1060
+ "name": "poolId",
1061
+ "type": "bytes32"
1062
+ },
1063
+ {
1064
+ "internalType": "uint256",
1065
+ "name": "lastChangeBlock",
1066
+ "type": "uint256"
1067
+ },
1068
+ {
1069
+ "internalType": "address",
1070
+ "name": "from",
1071
+ "type": "address"
1072
+ },
1073
+ {
1074
+ "internalType": "address",
1075
+ "name": "to",
1076
+ "type": "address"
1077
+ },
1078
+ {
1079
+ "internalType": "bytes",
1080
+ "name": "userData",
1081
+ "type": "bytes"
1082
+ }
1083
+ ],
1084
+ "internalType": "struct IPoolSwapStructs.SwapRequest",
1085
+ "name": "request",
1086
+ "type": "tuple"
1087
+ },
1088
+ {
1089
+ "internalType": "uint256",
1090
+ "name": "balanceTokenIn",
1091
+ "type": "uint256"
1092
+ },
1093
+ {
1094
+ "internalType": "uint256",
1095
+ "name": "balanceTokenOut",
1096
+ "type": "uint256"
1097
+ }
1098
+ ],
1099
+ "name": "onSwap",
1100
+ "outputs": [
1101
+ {
1102
+ "internalType": "uint256",
1103
+ "name": "",
1104
+ "type": "uint256"
1105
+ }
1106
+ ],
1107
+ "stateMutability": "nonpayable",
1108
+ "type": "function"
1109
+ },
1110
+ {
1111
+ "inputs": [
1112
+ {
1113
+ "internalType": "address",
1114
+ "name": "owner",
1115
+ "type": "address"
1116
+ },
1117
+ {
1118
+ "internalType": "address",
1119
+ "name": "spender",
1120
+ "type": "address"
1121
+ },
1122
+ {
1123
+ "internalType": "uint256",
1124
+ "name": "value",
1125
+ "type": "uint256"
1126
+ },
1127
+ {
1128
+ "internalType": "uint256",
1129
+ "name": "deadline",
1130
+ "type": "uint256"
1131
+ },
1132
+ {
1133
+ "internalType": "uint8",
1134
+ "name": "v",
1135
+ "type": "uint8"
1136
+ },
1137
+ {
1138
+ "internalType": "bytes32",
1139
+ "name": "r",
1140
+ "type": "bytes32"
1141
+ },
1142
+ {
1143
+ "internalType": "bytes32",
1144
+ "name": "s",
1145
+ "type": "bytes32"
1146
+ }
1147
+ ],
1148
+ "name": "permit",
1149
+ "outputs": [],
1150
+ "stateMutability": "nonpayable",
1151
+ "type": "function"
1152
+ },
1153
+ {
1154
+ "inputs": [
1155
+ {
1156
+ "internalType": "bytes32",
1157
+ "name": "poolId",
1158
+ "type": "bytes32"
1159
+ },
1160
+ {
1161
+ "internalType": "address",
1162
+ "name": "sender",
1163
+ "type": "address"
1164
+ },
1165
+ {
1166
+ "internalType": "address",
1167
+ "name": "recipient",
1168
+ "type": "address"
1169
+ },
1170
+ {
1171
+ "internalType": "uint256[]",
1172
+ "name": "balances",
1173
+ "type": "uint256[]"
1174
+ },
1175
+ {
1176
+ "internalType": "uint256",
1177
+ "name": "lastChangeBlock",
1178
+ "type": "uint256"
1179
+ },
1180
+ {
1181
+ "internalType": "uint256",
1182
+ "name": "protocolSwapFeePercentage",
1183
+ "type": "uint256"
1184
+ },
1185
+ {
1186
+ "internalType": "bytes",
1187
+ "name": "userData",
1188
+ "type": "bytes"
1189
+ }
1190
+ ],
1191
+ "name": "queryExit",
1192
+ "outputs": [
1193
+ {
1194
+ "internalType": "uint256",
1195
+ "name": "bptIn",
1196
+ "type": "uint256"
1197
+ },
1198
+ {
1199
+ "internalType": "uint256[]",
1200
+ "name": "amountsOut",
1201
+ "type": "uint256[]"
1202
+ }
1203
+ ],
1204
+ "stateMutability": "nonpayable",
1205
+ "type": "function"
1206
+ },
1207
+ {
1208
+ "inputs": [
1209
+ {
1210
+ "internalType": "bytes32",
1211
+ "name": "poolId",
1212
+ "type": "bytes32"
1213
+ },
1214
+ {
1215
+ "internalType": "address",
1216
+ "name": "sender",
1217
+ "type": "address"
1218
+ },
1219
+ {
1220
+ "internalType": "address",
1221
+ "name": "recipient",
1222
+ "type": "address"
1223
+ },
1224
+ {
1225
+ "internalType": "uint256[]",
1226
+ "name": "balances",
1227
+ "type": "uint256[]"
1228
+ },
1229
+ {
1230
+ "internalType": "uint256",
1231
+ "name": "lastChangeBlock",
1232
+ "type": "uint256"
1233
+ },
1234
+ {
1235
+ "internalType": "uint256",
1236
+ "name": "protocolSwapFeePercentage",
1237
+ "type": "uint256"
1238
+ },
1239
+ {
1240
+ "internalType": "bytes",
1241
+ "name": "userData",
1242
+ "type": "bytes"
1243
+ }
1244
+ ],
1245
+ "name": "queryJoin",
1246
+ "outputs": [
1247
+ {
1248
+ "internalType": "uint256",
1249
+ "name": "bptOut",
1250
+ "type": "uint256"
1251
+ },
1252
+ {
1253
+ "internalType": "uint256[]",
1254
+ "name": "amountsIn",
1255
+ "type": "uint256[]"
1256
+ }
1257
+ ],
1258
+ "stateMutability": "nonpayable",
1259
+ "type": "function"
1260
+ },
1261
+ {
1262
+ "inputs": [
1263
+ {
1264
+ "internalType": "contract IERC20",
1265
+ "name": "token",
1266
+ "type": "address"
1267
+ },
1268
+ {
1269
+ "internalType": "bytes",
1270
+ "name": "poolConfig",
1271
+ "type": "bytes"
1272
+ }
1273
+ ],
1274
+ "name": "setAssetManagerPoolConfig",
1275
+ "outputs": [],
1276
+ "stateMutability": "nonpayable",
1277
+ "type": "function"
1278
+ },
1279
+ {
1280
+ "inputs": [
1281
+ {
1282
+ "internalType": "bool",
1283
+ "name": "paused",
1284
+ "type": "bool"
1285
+ }
1286
+ ],
1287
+ "name": "setPaused",
1288
+ "outputs": [],
1289
+ "stateMutability": "nonpayable",
1290
+ "type": "function"
1291
+ },
1292
+ {
1293
+ "inputs": [
1294
+ {
1295
+ "internalType": "contract IERC20",
1296
+ "name": "token",
1297
+ "type": "address"
1298
+ },
1299
+ {
1300
+ "internalType": "uint256",
1301
+ "name": "duration",
1302
+ "type": "uint256"
1303
+ }
1304
+ ],
1305
+ "name": "setPriceRateCacheDuration",
1306
+ "outputs": [],
1307
+ "stateMutability": "nonpayable",
1308
+ "type": "function"
1309
+ },
1310
+ {
1311
+ "inputs": [
1312
+ {
1313
+ "internalType": "uint256",
1314
+ "name": "swapFeePercentage",
1315
+ "type": "uint256"
1316
+ }
1317
+ ],
1318
+ "name": "setSwapFeePercentage",
1319
+ "outputs": [],
1320
+ "stateMutability": "nonpayable",
1321
+ "type": "function"
1322
+ },
1323
+ {
1324
+ "inputs": [
1325
+ {
1326
+ "internalType": "uint256",
1327
+ "name": "rawEndValue",
1328
+ "type": "uint256"
1329
+ },
1330
+ {
1331
+ "internalType": "uint256",
1332
+ "name": "endTime",
1333
+ "type": "uint256"
1334
+ }
1335
+ ],
1336
+ "name": "startAmplificationParameterUpdate",
1337
+ "outputs": [],
1338
+ "stateMutability": "nonpayable",
1339
+ "type": "function"
1340
+ },
1341
+ {
1342
+ "inputs": [],
1343
+ "name": "stopAmplificationParameterUpdate",
1344
+ "outputs": [],
1345
+ "stateMutability": "nonpayable",
1346
+ "type": "function"
1347
+ },
1348
+ {
1349
+ "inputs": [],
1350
+ "name": "symbol",
1351
+ "outputs": [
1352
+ {
1353
+ "internalType": "string",
1354
+ "name": "",
1355
+ "type": "string"
1356
+ }
1357
+ ],
1358
+ "stateMutability": "view",
1359
+ "type": "function"
1360
+ },
1361
+ {
1362
+ "inputs": [],
1363
+ "name": "totalSupply",
1364
+ "outputs": [
1365
+ {
1366
+ "internalType": "uint256",
1367
+ "name": "",
1368
+ "type": "uint256"
1369
+ }
1370
+ ],
1371
+ "stateMutability": "view",
1372
+ "type": "function"
1373
+ },
1374
+ {
1375
+ "inputs": [
1376
+ {
1377
+ "internalType": "address",
1378
+ "name": "recipient",
1379
+ "type": "address"
1380
+ },
1381
+ {
1382
+ "internalType": "uint256",
1383
+ "name": "amount",
1384
+ "type": "uint256"
1385
+ }
1386
+ ],
1387
+ "name": "transfer",
1388
+ "outputs": [
1389
+ {
1390
+ "internalType": "bool",
1391
+ "name": "",
1392
+ "type": "bool"
1393
+ }
1394
+ ],
1395
+ "stateMutability": "nonpayable",
1396
+ "type": "function"
1397
+ },
1398
+ {
1399
+ "inputs": [
1400
+ {
1401
+ "internalType": "address",
1402
+ "name": "sender",
1403
+ "type": "address"
1404
+ },
1405
+ {
1406
+ "internalType": "address",
1407
+ "name": "recipient",
1408
+ "type": "address"
1409
+ },
1410
+ {
1411
+ "internalType": "uint256",
1412
+ "name": "amount",
1413
+ "type": "uint256"
1414
+ }
1415
+ ],
1416
+ "name": "transferFrom",
1417
+ "outputs": [
1418
+ {
1419
+ "internalType": "bool",
1420
+ "name": "",
1421
+ "type": "bool"
1422
+ }
1423
+ ],
1424
+ "stateMutability": "nonpayable",
1425
+ "type": "function"
1426
+ },
1427
+ {
1428
+ "inputs": [
1429
+ {
1430
+ "internalType": "contract IERC20",
1431
+ "name": "token",
1432
+ "type": "address"
1433
+ }
1434
+ ],
1435
+ "name": "updatePriceRateCache",
1436
+ "outputs": [],
1437
+ "stateMutability": "nonpayable",
1438
+ "type": "function"
1439
+ }
1440
+ ]
1441
+ ''')