@ripe-finance/sdk 0.0.9 → 0.1.1

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 (59) hide show
  1. package/dist/contracts/BlueChipYieldPrices.d.ts +21 -0
  2. package/dist/contracts/BlueChipYieldPrices.d.ts.map +1 -1
  3. package/dist/contracts/BlueChipYieldPrices.js +26 -1
  4. package/dist/contracts/BondBooster.d.ts +546 -0
  5. package/dist/contracts/BondBooster.d.ts.map +1 -0
  6. package/dist/contracts/BondBooster.js +643 -0
  7. package/dist/contracts/BondRoom.d.ts +40 -1
  8. package/dist/contracts/BondRoom.d.ts.map +1 -1
  9. package/dist/contracts/BondRoom.js +50 -1
  10. package/dist/contracts/ChainlinkPrices.d.ts +21 -0
  11. package/dist/contracts/ChainlinkPrices.d.ts.map +1 -1
  12. package/dist/contracts/ChainlinkPrices.js +26 -1
  13. package/dist/contracts/CurvePrices.d.ts +21 -0
  14. package/dist/contracts/CurvePrices.d.ts.map +1 -1
  15. package/dist/contracts/CurvePrices.js +26 -1
  16. package/dist/contracts/DefaultsBase.d.ts +3 -0
  17. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  18. package/dist/contracts/DefaultsBase.js +5 -1
  19. package/dist/contracts/Endaoment.d.ts +1009 -732
  20. package/dist/contracts/Endaoment.d.ts.map +1 -1
  21. package/dist/contracts/Endaoment.js +1280 -880
  22. package/dist/contracts/PriceDesk.d.ts +21 -0
  23. package/dist/contracts/PriceDesk.d.ts.map +1 -1
  24. package/dist/contracts/PriceDesk.js +26 -1
  25. package/dist/contracts/PythPrices.d.ts +21 -0
  26. package/dist/contracts/PythPrices.d.ts.map +1 -1
  27. package/dist/contracts/PythPrices.js +26 -1
  28. package/dist/contracts/StorkPrices.d.ts +21 -0
  29. package/dist/contracts/StorkPrices.d.ts.map +1 -1
  30. package/dist/contracts/StorkPrices.js +26 -1
  31. package/dist/contracts/Switchboard.d.ts +21 -0
  32. package/dist/contracts/Switchboard.d.ts.map +1 -1
  33. package/dist/contracts/Switchboard.js +26 -1
  34. package/dist/contracts/SwitchboardAlpha.d.ts +21 -0
  35. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  36. package/dist/contracts/SwitchboardAlpha.js +26 -1
  37. package/dist/contracts/SwitchboardBravo.d.ts +21 -0
  38. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  39. package/dist/contracts/SwitchboardBravo.js +26 -1
  40. package/dist/contracts/SwitchboardCharlie.d.ts +235 -411
  41. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  42. package/dist/contracts/SwitchboardCharlie.js +292 -527
  43. package/dist/contracts/SwitchboardDelta.d.ts +273 -0
  44. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
  45. package/dist/contracts/SwitchboardDelta.js +337 -1
  46. package/dist/contracts/Teller.js +1 -1
  47. package/dist/contracts/VaultBook.d.ts +21 -0
  48. package/dist/contracts/VaultBook.d.ts.map +1 -1
  49. package/dist/contracts/VaultBook.js +26 -1
  50. package/dist/contracts/index.d.ts +1 -0
  51. package/dist/contracts/index.d.ts.map +1 -1
  52. package/dist/contracts/index.js +1 -0
  53. package/dist/contracts/sdk.d.ts +2 -0
  54. package/dist/contracts/sdk.d.ts.map +1 -1
  55. package/dist/contracts/sdk.js +2 -0
  56. package/dist/index.d.ts +87 -23
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +13 -1
  59. package/package.json +1 -1
@@ -610,33 +610,6 @@ export const abi = [
610
610
  anonymous: false,
611
611
  type: 'event',
612
612
  },
613
- {
614
- name: 'PendingSetManyTrainingWheelsAccess',
615
- inputs: [
616
- {
617
- name: 'addr',
618
- type: 'address',
619
- indexed: true,
620
- },
621
- {
622
- name: 'numTrainingWheels',
623
- type: 'uint256',
624
- indexed: false,
625
- },
626
- {
627
- name: 'confirmationBlock',
628
- type: 'uint256',
629
- indexed: false,
630
- },
631
- {
632
- name: 'actionId',
633
- type: 'uint256',
634
- indexed: false,
635
- },
636
- ],
637
- anonymous: false,
638
- type: 'event',
639
- },
640
613
  {
641
614
  name: 'DebtUpdatedForUser',
642
615
  inputs: [
@@ -861,11 +834,6 @@ export const abi = [
861
834
  type: 'uint256',
862
835
  indexed: false,
863
836
  },
864
- {
865
- name: 'hasVaultToken',
866
- type: 'bool',
867
- indexed: false,
868
- },
869
837
  {
870
838
  name: 'caller',
871
839
  type: 'address',
@@ -920,16 +888,6 @@ export const abi = [
920
888
  type: 'uint256',
921
889
  indexed: false,
922
890
  },
923
- {
924
- name: 'depositLegoId',
925
- type: 'uint256',
926
- indexed: false,
927
- },
928
- {
929
- name: 'depositVault',
930
- type: 'address',
931
- indexed: true,
932
- },
933
891
  {
934
892
  name: 'caller',
935
893
  type: 'address',
@@ -947,26 +905,6 @@ export const abi = [
947
905
  type: 'uint256',
948
906
  indexed: false,
949
907
  },
950
- {
951
- name: 'recipient',
952
- type: 'address',
953
- indexed: true,
954
- },
955
- {
956
- name: 'withdrawLegoId',
957
- type: 'uint256',
958
- indexed: false,
959
- },
960
- {
961
- name: 'withdrawVaultAddr',
962
- type: 'address',
963
- indexed: true,
964
- },
965
- {
966
- name: 'hasWithdrawVaultToken',
967
- type: 'bool',
968
- indexed: false,
969
- },
970
908
  {
971
909
  name: 'caller',
972
910
  type: 'address',
@@ -985,14 +923,19 @@ export const abi = [
985
923
  indexed: false,
986
924
  },
987
925
  {
988
- name: 'market',
926
+ name: 'rewardToken',
989
927
  type: 'address',
990
928
  indexed: true,
991
929
  },
992
930
  {
993
- name: 'rewardToken',
994
- type: 'address',
995
- indexed: true,
931
+ name: 'rewardAmount',
932
+ type: 'uint256',
933
+ indexed: false,
934
+ },
935
+ {
936
+ name: 'usdValue',
937
+ type: 'uint256',
938
+ indexed: false,
996
939
  },
997
940
  {
998
941
  name: 'caller',
@@ -1192,16 +1135,21 @@ export const abi = [
1192
1135
  type: 'event',
1193
1136
  },
1194
1137
  {
1195
- name: 'SetManyTrainingWheelsAccessExecuted',
1138
+ name: 'TrainingWheelsAccessSet',
1196
1139
  inputs: [
1197
1140
  {
1198
- name: 'addr',
1141
+ name: 'trainingWheels',
1199
1142
  type: 'address',
1200
1143
  indexed: true,
1201
1144
  },
1202
1145
  {
1203
- name: 'numTrainingWheels',
1204
- type: 'uint256',
1146
+ name: 'user',
1147
+ type: 'address',
1148
+ indexed: true,
1149
+ },
1150
+ {
1151
+ name: 'isAllowed',
1152
+ type: 'bool',
1205
1153
  indexed: false,
1206
1154
  },
1207
1155
  ],
@@ -1325,6 +1273,18 @@ export const abi = [
1325
1273
  anonymous: false,
1326
1274
  type: 'event',
1327
1275
  },
1276
+ {
1277
+ name: 'GovRelinquished',
1278
+ inputs: [
1279
+ {
1280
+ name: 'prevGov',
1281
+ type: 'address',
1282
+ indexed: true,
1283
+ },
1284
+ ],
1285
+ anonymous: false,
1286
+ type: 'event',
1287
+ },
1328
1288
  {
1329
1289
  name: 'RipeHqSetupFinished',
1330
1290
  inputs: [
@@ -1426,6 +1386,13 @@ export const abi = [
1426
1386
  inputs: [],
1427
1387
  outputs: [],
1428
1388
  },
1389
+ {
1390
+ stateMutability: 'nonpayable',
1391
+ type: 'function',
1392
+ name: 'relinquishGov',
1393
+ inputs: [],
1394
+ outputs: [],
1395
+ },
1429
1396
  {
1430
1397
  stateMutability: 'nonpayable',
1431
1398
  type: 'function',
@@ -2190,6 +2157,39 @@ export const abi = [
2190
2157
  },
2191
2158
  ],
2192
2159
  },
2160
+ {
2161
+ stateMutability: 'nonpayable',
2162
+ type: 'function',
2163
+ name: 'performEndaomentDeposit',
2164
+ inputs: [
2165
+ {
2166
+ name: '_legoId',
2167
+ type: 'uint256',
2168
+ },
2169
+ {
2170
+ name: '_asset',
2171
+ type: 'address',
2172
+ },
2173
+ ],
2174
+ outputs: [
2175
+ {
2176
+ name: '',
2177
+ type: 'uint256',
2178
+ },
2179
+ {
2180
+ name: '',
2181
+ type: 'address',
2182
+ },
2183
+ {
2184
+ name: '',
2185
+ type: 'uint256',
2186
+ },
2187
+ {
2188
+ name: '',
2189
+ type: 'uint256',
2190
+ },
2191
+ ],
2192
+ },
2193
2193
  {
2194
2194
  stateMutability: 'nonpayable',
2195
2195
  type: 'function',
@@ -2204,7 +2204,7 @@ export const abi = [
2204
2204
  type: 'address',
2205
2205
  },
2206
2206
  {
2207
- name: '_vault',
2207
+ name: '_vaultAddr',
2208
2208
  type: 'address',
2209
2209
  },
2210
2210
  ],
@@ -2241,7 +2241,7 @@ export const abi = [
2241
2241
  type: 'address',
2242
2242
  },
2243
2243
  {
2244
- name: '_vault',
2244
+ name: '_vaultAddr',
2245
2245
  type: 'address',
2246
2246
  },
2247
2247
  {
@@ -2271,7 +2271,7 @@ export const abi = [
2271
2271
  {
2272
2272
  stateMutability: 'nonpayable',
2273
2273
  type: 'function',
2274
- name: 'performEndaomentWithdraw',
2274
+ name: 'performEndaomentDeposit',
2275
2275
  inputs: [
2276
2276
  {
2277
2277
  name: '_legoId',
@@ -2285,12 +2285,24 @@ export const abi = [
2285
2285
  name: '_vaultAddr',
2286
2286
  type: 'address',
2287
2287
  },
2288
+ {
2289
+ name: '_amount',
2290
+ type: 'uint256',
2291
+ },
2292
+ {
2293
+ name: '_extraData',
2294
+ type: 'bytes32',
2295
+ },
2288
2296
  ],
2289
2297
  outputs: [
2290
2298
  {
2291
2299
  name: '',
2292
2300
  type: 'uint256',
2293
2301
  },
2302
+ {
2303
+ name: '',
2304
+ type: 'address',
2305
+ },
2294
2306
  {
2295
2307
  name: '',
2296
2308
  type: 'uint256',
@@ -2311,15 +2323,44 @@ export const abi = [
2311
2323
  type: 'uint256',
2312
2324
  },
2313
2325
  {
2314
- name: '_asset',
2326
+ name: '_vaultToken',
2315
2327
  type: 'address',
2316
2328
  },
2329
+ ],
2330
+ outputs: [
2317
2331
  {
2318
- name: '_vaultAddr',
2332
+ name: '',
2333
+ type: 'uint256',
2334
+ },
2335
+ {
2336
+ name: '',
2337
+ type: 'address',
2338
+ },
2339
+ {
2340
+ name: '',
2341
+ type: 'uint256',
2342
+ },
2343
+ {
2344
+ name: '',
2345
+ type: 'uint256',
2346
+ },
2347
+ ],
2348
+ },
2349
+ {
2350
+ stateMutability: 'nonpayable',
2351
+ type: 'function',
2352
+ name: 'performEndaomentWithdraw',
2353
+ inputs: [
2354
+ {
2355
+ name: '_legoId',
2356
+ type: 'uint256',
2357
+ },
2358
+ {
2359
+ name: '_vaultToken',
2319
2360
  type: 'address',
2320
2361
  },
2321
2362
  {
2322
- name: '_withdrawAmount',
2363
+ name: '_amount',
2323
2364
  type: 'uint256',
2324
2365
  },
2325
2366
  ],
@@ -2328,6 +2369,10 @@ export const abi = [
2328
2369
  name: '',
2329
2370
  type: 'uint256',
2330
2371
  },
2372
+ {
2373
+ name: '',
2374
+ type: 'address',
2375
+ },
2331
2376
  {
2332
2377
  name: '',
2333
2378
  type: 'uint256',
@@ -2348,20 +2393,16 @@ export const abi = [
2348
2393
  type: 'uint256',
2349
2394
  },
2350
2395
  {
2351
- name: '_asset',
2352
- type: 'address',
2353
- },
2354
- {
2355
- name: '_vaultAddr',
2396
+ name: '_vaultToken',
2356
2397
  type: 'address',
2357
2398
  },
2358
2399
  {
2359
- name: '_withdrawAmount',
2400
+ name: '_amount',
2360
2401
  type: 'uint256',
2361
2402
  },
2362
2403
  {
2363
- name: '_hasVaultToken',
2364
- type: 'bool',
2404
+ name: '_extraData',
2405
+ type: 'bytes32',
2365
2406
  },
2366
2407
  ],
2367
2408
  outputs: [
@@ -2369,6 +2410,10 @@ export const abi = [
2369
2410
  name: '',
2370
2411
  type: 'uint256',
2371
2412
  },
2413
+ {
2414
+ name: '',
2415
+ type: 'address',
2416
+ },
2372
2417
  {
2373
2418
  name: '',
2374
2419
  type: 'uint256',
@@ -2389,11 +2434,44 @@ export const abi = [
2389
2434
  type: 'uint256',
2390
2435
  },
2391
2436
  {
2392
- name: '_fromAsset',
2437
+ name: '_fromVaultToken',
2438
+ type: 'address',
2439
+ },
2440
+ {
2441
+ name: '_toLegoId',
2442
+ type: 'uint256',
2443
+ },
2444
+ ],
2445
+ outputs: [
2446
+ {
2447
+ name: '',
2448
+ type: 'uint256',
2449
+ },
2450
+ {
2451
+ name: '',
2393
2452
  type: 'address',
2394
2453
  },
2395
2454
  {
2396
- name: '_fromVaultAddr',
2455
+ name: '',
2456
+ type: 'uint256',
2457
+ },
2458
+ {
2459
+ name: '',
2460
+ type: 'uint256',
2461
+ },
2462
+ ],
2463
+ },
2464
+ {
2465
+ stateMutability: 'nonpayable',
2466
+ type: 'function',
2467
+ name: 'performEndaomentRebalance',
2468
+ inputs: [
2469
+ {
2470
+ name: '_fromLegoId',
2471
+ type: 'uint256',
2472
+ },
2473
+ {
2474
+ name: '_fromVaultToken',
2397
2475
  type: 'address',
2398
2476
  },
2399
2477
  {
@@ -2434,11 +2512,7 @@ export const abi = [
2434
2512
  type: 'uint256',
2435
2513
  },
2436
2514
  {
2437
- name: '_fromAsset',
2438
- type: 'address',
2439
- },
2440
- {
2441
- name: '_fromVaultAddr',
2515
+ name: '_fromVaultToken',
2442
2516
  type: 'address',
2443
2517
  },
2444
2518
  {
@@ -2483,11 +2557,7 @@ export const abi = [
2483
2557
  type: 'uint256',
2484
2558
  },
2485
2559
  {
2486
- name: '_fromAsset',
2487
- type: 'address',
2488
- },
2489
- {
2490
- name: '_fromVaultAddr',
2560
+ name: '_fromVaultToken',
2491
2561
  type: 'address',
2492
2562
  },
2493
2563
  {
@@ -2503,8 +2573,8 @@ export const abi = [
2503
2573
  type: 'uint256',
2504
2574
  },
2505
2575
  {
2506
- name: '_hasFromVaultToken',
2507
- type: 'bool',
2576
+ name: '_extraData',
2577
+ type: 'bytes32',
2508
2578
  },
2509
2579
  ],
2510
2580
  outputs: [
@@ -2536,10 +2606,6 @@ export const abi = [
2536
2606
  name: '',
2537
2607
  type: 'uint256',
2538
2608
  },
2539
- {
2540
- name: '',
2541
- type: 'address',
2542
- },
2543
2609
  {
2544
2610
  name: '',
2545
2611
  type: 'uint256',
@@ -2563,7 +2629,19 @@ export const abi = [
2563
2629
  },
2564
2630
  {
2565
2631
  name: '',
2566
- type: 'address',
2632
+ type: 'uint256',
2633
+ },
2634
+ ],
2635
+ },
2636
+ {
2637
+ stateMutability: 'nonpayable',
2638
+ type: 'function',
2639
+ name: 'performEndaomentWethToEth',
2640
+ inputs: [],
2641
+ outputs: [
2642
+ {
2643
+ name: '',
2644
+ type: 'uint256',
2567
2645
  },
2568
2646
  {
2569
2647
  name: '',
@@ -2572,61 +2650,20 @@ export const abi = [
2572
2650
  ],
2573
2651
  },
2574
2652
  {
2575
- stateMutability: 'payable',
2653
+ stateMutability: 'nonpayable',
2576
2654
  type: 'function',
2577
- name: 'performEndaomentEthToWeth',
2655
+ name: 'performEndaomentWethToEth',
2578
2656
  inputs: [
2579
2657
  {
2580
2658
  name: '_amount',
2581
2659
  type: 'uint256',
2582
2660
  },
2583
- {
2584
- name: '_depositLegoId',
2585
- type: 'uint256',
2586
- },
2587
2661
  ],
2588
2662
  outputs: [
2589
2663
  {
2590
2664
  name: '',
2591
2665
  type: 'uint256',
2592
2666
  },
2593
- {
2594
- name: '',
2595
- type: 'address',
2596
- },
2597
- {
2598
- name: '',
2599
- type: 'uint256',
2600
- },
2601
- ],
2602
- },
2603
- {
2604
- stateMutability: 'payable',
2605
- type: 'function',
2606
- name: 'performEndaomentEthToWeth',
2607
- inputs: [
2608
- {
2609
- name: '_amount',
2610
- type: 'uint256',
2611
- },
2612
- {
2613
- name: '_depositLegoId',
2614
- type: 'uint256',
2615
- },
2616
- {
2617
- name: '_depositVault',
2618
- type: 'address',
2619
- },
2620
- ],
2621
- outputs: [
2622
- {
2623
- name: '',
2624
- type: 'uint256',
2625
- },
2626
- {
2627
- name: '',
2628
- type: 'address',
2629
- },
2630
2667
  {
2631
2668
  name: '',
2632
2669
  type: 'uint256',
@@ -2636,22 +2673,10 @@ export const abi = [
2636
2673
  {
2637
2674
  stateMutability: 'nonpayable',
2638
2675
  type: 'function',
2639
- name: 'performEndaomentWethToEth',
2640
- inputs: [],
2641
- outputs: [
2642
- {
2643
- name: '',
2644
- type: 'uint256',
2645
- },
2646
- ],
2647
- },
2648
- {
2649
- stateMutability: 'nonpayable',
2650
- type: 'function',
2651
- name: 'performEndaomentWethToEth',
2676
+ name: 'performEndaomentClaim',
2652
2677
  inputs: [
2653
2678
  {
2654
- name: '_amount',
2679
+ name: '_legoId',
2655
2680
  type: 'uint256',
2656
2681
  },
2657
2682
  ],
@@ -2660,23 +2685,6 @@ export const abi = [
2660
2685
  name: '',
2661
2686
  type: 'uint256',
2662
2687
  },
2663
- ],
2664
- },
2665
- {
2666
- stateMutability: 'nonpayable',
2667
- type: 'function',
2668
- name: 'performEndaomentWethToEth',
2669
- inputs: [
2670
- {
2671
- name: '_amount',
2672
- type: 'uint256',
2673
- },
2674
- {
2675
- name: '_recipient',
2676
- type: 'address',
2677
- },
2678
- ],
2679
- outputs: [
2680
2688
  {
2681
2689
  name: '',
2682
2690
  type: 'uint256',
@@ -2686,51 +2694,22 @@ export const abi = [
2686
2694
  {
2687
2695
  stateMutability: 'nonpayable',
2688
2696
  type: 'function',
2689
- name: 'performEndaomentWethToEth',
2697
+ name: 'performEndaomentClaim',
2690
2698
  inputs: [
2691
2699
  {
2692
- name: '_amount',
2700
+ name: '_legoId',
2693
2701
  type: 'uint256',
2694
2702
  },
2695
2703
  {
2696
- name: '_recipient',
2704
+ name: '_rewardToken',
2697
2705
  type: 'address',
2698
2706
  },
2699
- {
2700
- name: '_withdrawLegoId',
2701
- type: 'uint256',
2702
- },
2703
2707
  ],
2704
2708
  outputs: [
2705
2709
  {
2706
2710
  name: '',
2707
2711
  type: 'uint256',
2708
2712
  },
2709
- ],
2710
- },
2711
- {
2712
- stateMutability: 'nonpayable',
2713
- type: 'function',
2714
- name: 'performEndaomentWethToEth',
2715
- inputs: [
2716
- {
2717
- name: '_amount',
2718
- type: 'uint256',
2719
- },
2720
- {
2721
- name: '_recipient',
2722
- type: 'address',
2723
- },
2724
- {
2725
- name: '_withdrawLegoId',
2726
- type: 'uint256',
2727
- },
2728
- {
2729
- name: '_withdrawVaultAddr',
2730
- type: 'address',
2731
- },
2732
- ],
2733
- outputs: [
2734
2713
  {
2735
2714
  name: '',
2736
2715
  type: 'uint256',
@@ -2740,72 +2719,30 @@ export const abi = [
2740
2719
  {
2741
2720
  stateMutability: 'nonpayable',
2742
2721
  type: 'function',
2743
- name: 'performEndaomentWethToEth',
2722
+ name: 'performEndaomentClaim',
2744
2723
  inputs: [
2745
2724
  {
2746
- name: '_amount',
2725
+ name: '_legoId',
2747
2726
  type: 'uint256',
2748
2727
  },
2749
2728
  {
2750
- name: '_recipient',
2729
+ name: '_rewardToken',
2751
2730
  type: 'address',
2752
2731
  },
2753
2732
  {
2754
- name: '_withdrawLegoId',
2733
+ name: '_rewardAmount',
2755
2734
  type: 'uint256',
2756
2735
  },
2757
- {
2758
- name: '_withdrawVaultAddr',
2759
- type: 'address',
2760
- },
2761
- {
2762
- name: '_hasWithdrawVaultToken',
2763
- type: 'bool',
2764
- },
2765
2736
  ],
2766
2737
  outputs: [
2767
2738
  {
2768
2739
  name: '',
2769
2740
  type: 'uint256',
2770
2741
  },
2771
- ],
2772
- },
2773
- {
2774
- stateMutability: 'nonpayable',
2775
- type: 'function',
2776
- name: 'performEndaomentClaim',
2777
- inputs: [
2778
- {
2779
- name: '_legoId',
2780
- type: 'uint256',
2781
- },
2782
- ],
2783
- outputs: [
2784
2742
  {
2785
2743
  name: '',
2786
- type: 'bool',
2787
- },
2788
- ],
2789
- },
2790
- {
2791
- stateMutability: 'nonpayable',
2792
- type: 'function',
2793
- name: 'performEndaomentClaim',
2794
- inputs: [
2795
- {
2796
- name: '_legoId',
2797
2744
  type: 'uint256',
2798
2745
  },
2799
- {
2800
- name: '_market',
2801
- type: 'address',
2802
- },
2803
- ],
2804
- outputs: [
2805
- {
2806
- name: '',
2807
- type: 'bool',
2808
- },
2809
2746
  ],
2810
2747
  },
2811
2748
  {
@@ -2817,81 +2754,27 @@ export const abi = [
2817
2754
  name: '_legoId',
2818
2755
  type: 'uint256',
2819
2756
  },
2820
- {
2821
- name: '_market',
2822
- type: 'address',
2823
- },
2824
2757
  {
2825
2758
  name: '_rewardToken',
2826
2759
  type: 'address',
2827
2760
  },
2828
- ],
2829
- outputs: [
2830
2761
  {
2831
- name: '',
2832
- type: 'bool',
2833
- },
2834
- ],
2835
- },
2836
- {
2837
- stateMutability: 'nonpayable',
2838
- type: 'function',
2839
- name: 'performEndaomentClaim',
2840
- inputs: [
2841
- {
2842
- name: '_legoId',
2762
+ name: '_rewardAmount',
2843
2763
  type: 'uint256',
2844
2764
  },
2845
2765
  {
2846
- name: '_market',
2847
- type: 'address',
2848
- },
2849
- {
2850
- name: '_rewardToken',
2851
- type: 'address',
2852
- },
2853
- {
2854
- name: '_rewardAmount',
2855
- type: 'uint256',
2766
+ name: '_extraData',
2767
+ type: 'bytes32',
2856
2768
  },
2857
2769
  ],
2858
2770
  outputs: [
2859
2771
  {
2860
2772
  name: '',
2861
- type: 'bool',
2862
- },
2863
- ],
2864
- },
2865
- {
2866
- stateMutability: 'nonpayable',
2867
- type: 'function',
2868
- name: 'performEndaomentClaim',
2869
- inputs: [
2870
- {
2871
- name: '_legoId',
2872
2773
  type: 'uint256',
2873
2774
  },
2874
- {
2875
- name: '_market',
2876
- type: 'address',
2877
- },
2878
- {
2879
- name: '_rewardToken',
2880
- type: 'address',
2881
- },
2882
- {
2883
- name: '_rewardAmount',
2884
- type: 'uint256',
2885
- },
2886
- {
2887
- name: '_proof',
2888
- type: 'bytes32',
2889
- },
2890
- ],
2891
- outputs: [
2892
2775
  {
2893
2776
  name: '',
2894
- type: 'bool',
2777
+ type: 'uint256',
2895
2778
  },
2896
2779
  ],
2897
2780
  },
@@ -2913,7 +2796,7 @@ export const abi = [
2913
2796
  name: 'performEndaomentSwap',
2914
2797
  inputs: [
2915
2798
  {
2916
- name: '_swapInstructions',
2799
+ name: '_instructions',
2917
2800
  type: 'tuple[]',
2918
2801
  components: [
2919
2802
  {
@@ -2955,14 +2838,6 @@ export const abi = [
2955
2838
  name: '_legoId',
2956
2839
  type: 'uint256',
2957
2840
  },
2958
- {
2959
- name: '_nftAddr',
2960
- type: 'address',
2961
- },
2962
- {
2963
- name: '_nftTokenId',
2964
- type: 'uint256',
2965
- },
2966
2841
  {
2967
2842
  name: '_pool',
2968
2843
  type: 'address',
@@ -2992,14 +2867,6 @@ export const abi = [
2992
2867
  name: '_legoId',
2993
2868
  type: 'uint256',
2994
2869
  },
2995
- {
2996
- name: '_nftAddr',
2997
- type: 'address',
2998
- },
2999
- {
3000
- name: '_nftTokenId',
3001
- type: 'uint256',
3002
- },
3003
2870
  {
3004
2871
  name: '_pool',
3005
2872
  type: 'address',
@@ -3033,14 +2900,6 @@ export const abi = [
3033
2900
  name: '_legoId',
3034
2901
  type: 'uint256',
3035
2902
  },
3036
- {
3037
- name: '_nftAddr',
3038
- type: 'address',
3039
- },
3040
- {
3041
- name: '_nftTokenId',
3042
- type: 'uint256',
3043
- },
3044
2903
  {
3045
2904
  name: '_pool',
3046
2905
  type: 'address',
@@ -3078,14 +2937,6 @@ export const abi = [
3078
2937
  name: '_legoId',
3079
2938
  type: 'uint256',
3080
2939
  },
3081
- {
3082
- name: '_nftAddr',
3083
- type: 'address',
3084
- },
3085
- {
3086
- name: '_nftTokenId',
3087
- type: 'uint256',
3088
- },
3089
2940
  {
3090
2941
  name: '_pool',
3091
2942
  type: 'address',
@@ -3107,8 +2958,8 @@ export const abi = [
3107
2958
  type: 'uint256',
3108
2959
  },
3109
2960
  {
3110
- name: '_tickLower',
3111
- type: 'int24',
2961
+ name: '_minAmountA',
2962
+ type: 'uint256',
3112
2963
  },
3113
2964
  ],
3114
2965
  outputs: [
@@ -3127,14 +2978,6 @@ export const abi = [
3127
2978
  name: '_legoId',
3128
2979
  type: 'uint256',
3129
2980
  },
3130
- {
3131
- name: '_nftAddr',
3132
- type: 'address',
3133
- },
3134
- {
3135
- name: '_nftTokenId',
3136
- type: 'uint256',
3137
- },
3138
2981
  {
3139
2982
  name: '_pool',
3140
2983
  type: 'address',
@@ -3156,12 +2999,12 @@ export const abi = [
3156
2999
  type: 'uint256',
3157
3000
  },
3158
3001
  {
3159
- name: '_tickLower',
3160
- type: 'int24',
3002
+ name: '_minAmountA',
3003
+ type: 'uint256',
3161
3004
  },
3162
3005
  {
3163
- name: '_tickUpper',
3164
- type: 'int24',
3006
+ name: '_minAmountB',
3007
+ type: 'uint256',
3165
3008
  },
3166
3009
  ],
3167
3010
  outputs: [
@@ -3180,14 +3023,6 @@ export const abi = [
3180
3023
  name: '_legoId',
3181
3024
  type: 'uint256',
3182
3025
  },
3183
- {
3184
- name: '_nftAddr',
3185
- type: 'address',
3186
- },
3187
- {
3188
- name: '_nftTokenId',
3189
- type: 'uint256',
3190
- },
3191
3026
  {
3192
3027
  name: '_pool',
3193
3028
  type: 'address',
@@ -3209,15 +3044,15 @@ export const abi = [
3209
3044
  type: 'uint256',
3210
3045
  },
3211
3046
  {
3212
- name: '_tickLower',
3213
- type: 'int24',
3047
+ name: '_minAmountA',
3048
+ type: 'uint256',
3214
3049
  },
3215
3050
  {
3216
- name: '_tickUpper',
3217
- type: 'int24',
3051
+ name: '_minAmountB',
3052
+ type: 'uint256',
3218
3053
  },
3219
3054
  {
3220
- name: '_minAmountA',
3055
+ name: '_minLpAmount',
3221
3056
  type: 'uint256',
3222
3057
  },
3223
3058
  ],
@@ -3237,14 +3072,6 @@ export const abi = [
3237
3072
  name: '_legoId',
3238
3073
  type: 'uint256',
3239
3074
  },
3240
- {
3241
- name: '_nftAddr',
3242
- type: 'address',
3243
- },
3244
- {
3245
- name: '_nftTokenId',
3246
- type: 'uint256',
3247
- },
3248
3075
  {
3249
3076
  name: '_pool',
3250
3077
  type: 'address',
@@ -3266,20 +3093,20 @@ export const abi = [
3266
3093
  type: 'uint256',
3267
3094
  },
3268
3095
  {
3269
- name: '_tickLower',
3270
- type: 'int24',
3096
+ name: '_minAmountA',
3097
+ type: 'uint256',
3271
3098
  },
3272
3099
  {
3273
- name: '_tickUpper',
3274
- type: 'int24',
3100
+ name: '_minAmountB',
3101
+ type: 'uint256',
3275
3102
  },
3276
3103
  {
3277
- name: '_minAmountA',
3104
+ name: '_minLpAmount',
3278
3105
  type: 'uint256',
3279
3106
  },
3280
3107
  {
3281
- name: '_minAmountB',
3282
- type: 'uint256',
3108
+ name: '_extraData',
3109
+ type: 'bytes32',
3283
3110
  },
3284
3111
  ],
3285
3112
  outputs: [
@@ -3292,20 +3119,12 @@ export const abi = [
3292
3119
  {
3293
3120
  stateMutability: 'nonpayable',
3294
3121
  type: 'function',
3295
- name: 'addLiquidityInEndaoment',
3122
+ name: 'removeLiquidityInEndaoment',
3296
3123
  inputs: [
3297
3124
  {
3298
3125
  name: '_legoId',
3299
3126
  type: 'uint256',
3300
3127
  },
3301
- {
3302
- name: '_nftAddr',
3303
- type: 'address',
3304
- },
3305
- {
3306
- name: '_nftTokenId',
3307
- type: 'uint256',
3308
- },
3309
3128
  {
3310
3129
  name: '_pool',
3311
3130
  type: 'address',
@@ -3319,32 +3138,8 @@ export const abi = [
3319
3138
  type: 'address',
3320
3139
  },
3321
3140
  {
3322
- name: '_amountA',
3323
- type: 'uint256',
3324
- },
3325
- {
3326
- name: '_amountB',
3327
- type: 'uint256',
3328
- },
3329
- {
3330
- name: '_tickLower',
3331
- type: 'int24',
3332
- },
3333
- {
3334
- name: '_tickUpper',
3335
- type: 'int24',
3336
- },
3337
- {
3338
- name: '_minAmountA',
3339
- type: 'uint256',
3340
- },
3341
- {
3342
- name: '_minAmountB',
3343
- type: 'uint256',
3344
- },
3345
- {
3346
- name: '_minLpAmount',
3347
- type: 'uint256',
3141
+ name: '_lpToken',
3142
+ type: 'address',
3348
3143
  },
3349
3144
  ],
3350
3145
  outputs: [
@@ -3364,24 +3159,24 @@ export const abi = [
3364
3159
  type: 'uint256',
3365
3160
  },
3366
3161
  {
3367
- name: '_nftAddr',
3162
+ name: '_pool',
3368
3163
  type: 'address',
3369
3164
  },
3370
3165
  {
3371
- name: '_nftTokenId',
3372
- type: 'uint256',
3166
+ name: '_tokenA',
3167
+ type: 'address',
3373
3168
  },
3374
3169
  {
3375
- name: '_pool',
3170
+ name: '_tokenB',
3376
3171
  type: 'address',
3377
3172
  },
3378
3173
  {
3379
- name: '_tokenA',
3174
+ name: '_lpToken',
3380
3175
  type: 'address',
3381
3176
  },
3382
3177
  {
3383
- name: '_tokenB',
3384
- type: 'address',
3178
+ name: '_lpAmount',
3179
+ type: 'uint256',
3385
3180
  },
3386
3181
  ],
3387
3182
  outputs: [
@@ -3401,27 +3196,27 @@ export const abi = [
3401
3196
  type: 'uint256',
3402
3197
  },
3403
3198
  {
3404
- name: '_nftAddr',
3199
+ name: '_pool',
3405
3200
  type: 'address',
3406
3201
  },
3407
3202
  {
3408
- name: '_nftTokenId',
3409
- type: 'uint256',
3203
+ name: '_tokenA',
3204
+ type: 'address',
3410
3205
  },
3411
3206
  {
3412
- name: '_pool',
3207
+ name: '_tokenB',
3413
3208
  type: 'address',
3414
3209
  },
3415
3210
  {
3416
- name: '_tokenA',
3211
+ name: '_lpToken',
3417
3212
  type: 'address',
3418
3213
  },
3419
3214
  {
3420
- name: '_tokenB',
3421
- type: 'address',
3215
+ name: '_lpAmount',
3216
+ type: 'uint256',
3422
3217
  },
3423
3218
  {
3424
- name: '_liqToRemove',
3219
+ name: '_minAmountA',
3425
3220
  type: 'uint256',
3426
3221
  },
3427
3222
  ],
@@ -3441,14 +3236,6 @@ export const abi = [
3441
3236
  name: '_legoId',
3442
3237
  type: 'uint256',
3443
3238
  },
3444
- {
3445
- name: '_nftAddr',
3446
- type: 'address',
3447
- },
3448
- {
3449
- name: '_nftTokenId',
3450
- type: 'uint256',
3451
- },
3452
3239
  {
3453
3240
  name: '_pool',
3454
3241
  type: 'address',
@@ -3462,13 +3249,21 @@ export const abi = [
3462
3249
  type: 'address',
3463
3250
  },
3464
3251
  {
3465
- name: '_liqToRemove',
3252
+ name: '_lpToken',
3253
+ type: 'address',
3254
+ },
3255
+ {
3256
+ name: '_lpAmount',
3466
3257
  type: 'uint256',
3467
3258
  },
3468
3259
  {
3469
3260
  name: '_minAmountA',
3470
3261
  type: 'uint256',
3471
3262
  },
3263
+ {
3264
+ name: '_minAmountB',
3265
+ type: 'uint256',
3266
+ },
3472
3267
  ],
3473
3268
  outputs: [
3474
3269
  {
@@ -3486,14 +3281,6 @@ export const abi = [
3486
3281
  name: '_legoId',
3487
3282
  type: 'uint256',
3488
3283
  },
3489
- {
3490
- name: '_nftAddr',
3491
- type: 'address',
3492
- },
3493
- {
3494
- name: '_nftTokenId',
3495
- type: 'uint256',
3496
- },
3497
3284
  {
3498
3285
  name: '_pool',
3499
3286
  type: 'address',
@@ -3507,7 +3294,11 @@ export const abi = [
3507
3294
  type: 'address',
3508
3295
  },
3509
3296
  {
3510
- name: '_liqToRemove',
3297
+ name: '_lpToken',
3298
+ type: 'address',
3299
+ },
3300
+ {
3301
+ name: '_lpAmount',
3511
3302
  type: 'uint256',
3512
3303
  },
3513
3304
  {
@@ -3518,6 +3309,10 @@ export const abi = [
3518
3309
  name: '_minAmountB',
3519
3310
  type: 'uint256',
3520
3311
  },
3312
+ {
3313
+ name: '_extraData',
3314
+ type: 'bytes32',
3315
+ },
3521
3316
  ],
3522
3317
  outputs: [
3523
3318
  {
@@ -3775,12 +3570,7 @@ export const abi = [
3775
3570
  ],
3776
3571
  },
3777
3572
  ],
3778
- outputs: [
3779
- {
3780
- name: '',
3781
- type: 'uint256',
3782
- },
3783
- ],
3573
+ outputs: [],
3784
3574
  },
3785
3575
  {
3786
3576
  stateMutability: 'nonpayable',
@@ -4116,14 +3906,6 @@ export const abi = [
4116
3906
  name: 'legoId',
4117
3907
  type: 'uint256',
4118
3908
  },
4119
- {
4120
- name: 'nftAddr',
4121
- type: 'address',
4122
- },
4123
- {
4124
- name: 'nftTokenId',
4125
- type: 'uint256',
4126
- },
4127
3909
  {
4128
3910
  name: 'pool',
4129
3911
  type: 'address',
@@ -4144,14 +3926,6 @@ export const abi = [
4144
3926
  name: 'amountB',
4145
3927
  type: 'uint256',
4146
3928
  },
4147
- {
4148
- name: 'tickLower',
4149
- type: 'int24',
4150
- },
4151
- {
4152
- name: 'tickUpper',
4153
- type: 'int24',
4154
- },
4155
3929
  {
4156
3930
  name: 'minAmountA',
4157
3931
  type: 'uint256',
@@ -4164,6 +3938,18 @@ export const abi = [
4164
3938
  name: 'minLpAmount',
4165
3939
  type: 'uint256',
4166
3940
  },
3941
+ {
3942
+ name: 'extraData',
3943
+ type: 'bytes32',
3944
+ },
3945
+ {
3946
+ name: 'lpToken',
3947
+ type: 'address',
3948
+ },
3949
+ {
3950
+ name: 'lpAmount',
3951
+ type: 'uint256',
3952
+ },
4167
3953
  ],
4168
3954
  },
4169
3955
  ],
@@ -4187,14 +3973,6 @@ export const abi = [
4187
3973
  name: 'legoId',
4188
3974
  type: 'uint256',
4189
3975
  },
4190
- {
4191
- name: 'nftAddr',
4192
- type: 'address',
4193
- },
4194
- {
4195
- name: 'nftTokenId',
4196
- type: 'uint256',
4197
- },
4198
3976
  {
4199
3977
  name: 'pool',
4200
3978
  type: 'address',
@@ -4208,7 +3986,11 @@ export const abi = [
4208
3986
  type: 'address',
4209
3987
  },
4210
3988
  {
4211
- name: 'liqToRemove',
3989
+ name: 'amountA',
3990
+ type: 'uint256',
3991
+ },
3992
+ {
3993
+ name: 'amountB',
4212
3994
  type: 'uint256',
4213
3995
  },
4214
3996
  {
@@ -4219,6 +4001,22 @@ export const abi = [
4219
4001
  name: 'minAmountB',
4220
4002
  type: 'uint256',
4221
4003
  },
4004
+ {
4005
+ name: 'minLpAmount',
4006
+ type: 'uint256',
4007
+ },
4008
+ {
4009
+ name: 'extraData',
4010
+ type: 'bytes32',
4011
+ },
4012
+ {
4013
+ name: 'lpToken',
4014
+ type: 'address',
4015
+ },
4016
+ {
4017
+ name: 'lpAmount',
4018
+ type: 'uint256',
4019
+ },
4222
4020
  ],
4223
4021
  },
4224
4022
  ],
@@ -4372,43 +4170,6 @@ export const abi = [
4372
4170
  },
4373
4171
  ],
4374
4172
  },
4375
- {
4376
- stateMutability: 'view',
4377
- type: 'function',
4378
- name: 'pendingTrainingWheelAccess',
4379
- inputs: [
4380
- {
4381
- name: 'arg0',
4382
- type: 'uint256',
4383
- },
4384
- ],
4385
- outputs: [
4386
- {
4387
- name: '',
4388
- type: 'tuple',
4389
- components: [
4390
- {
4391
- name: 'addr',
4392
- type: 'address',
4393
- },
4394
- {
4395
- name: 'trainingWheels',
4396
- type: 'tuple[]',
4397
- components: [
4398
- {
4399
- name: 'user',
4400
- type: 'address',
4401
- },
4402
- {
4403
- name: 'isAllowed',
4404
- type: 'bool',
4405
- },
4406
- ],
4407
- },
4408
- ],
4409
- },
4410
- ],
4411
- },
4412
4173
  {
4413
4174
  stateMutability: 'nonpayable',
4414
4175
  type: 'constructor',
@@ -4417,6 +4178,10 @@ export const abi = [
4417
4178
  name: '_ripeHq',
4418
4179
  type: 'address',
4419
4180
  },
4181
+ {
4182
+ name: '_tempGov',
4183
+ type: 'address',
4184
+ },
4420
4185
  {
4421
4186
  name: '_minConfigTimeLock',
4422
4187
  type: 'uint256',
@@ -4429,7 +4194,7 @@ export const abi = [
4429
4194
  outputs: [],
4430
4195
  },
4431
4196
  ];
4432
- export const deployAddress = '0x8412b523f5df164d9404A1e3d9f28B61e2440c75';
4197
+ export const deployAddress = '0xB96D9862838f17Ca51603EEECd54E99f33D3461d';
4433
4198
  function getRequest(method, args, contractAddressOrOptions) {
4434
4199
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
4435
4200
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -4496,7 +4261,6 @@ export const call = {
4496
4261
  pendingEndaoRepayActions: (...args) => getRequest('pendingEndaoRepayActions', args),
4497
4262
  pendingEndaoRecoverNftActions: (...args) => getRequest('pendingEndaoRecoverNftActions', args),
4498
4263
  pendingTrainingWheels: (...args) => getRequest('pendingTrainingWheels', args),
4499
- pendingTrainingWheelAccess: (...args) => getRequest('pendingTrainingWheelAccess', args),
4500
4264
  };
4501
4265
  function getMutation(functionName) {
4502
4266
  return {
@@ -4511,6 +4275,7 @@ export const mutation = {
4511
4275
  startGovernanceChange: getMutation('startGovernanceChange'),
4512
4276
  confirmGovernanceChange: getMutation('confirmGovernanceChange'),
4513
4277
  cancelGovernanceChange: getMutation('cancelGovernanceChange'),
4278
+ relinquishGov: getMutation('relinquishGov'),
4514
4279
  setGovTimeLock: getMutation('setGovTimeLock'),
4515
4280
  finishRipeHqSetup: getMutation('finishRipeHqSetup'),
4516
4281
  setActionTimeLock: getMutation('setActionTimeLock'),
@@ -4594,11 +4359,11 @@ export function toSdk(publicClient, walletClient) {
4594
4359
  pendingEndaoRepayActions: (...args) => singleQuery(publicClient, call.pendingEndaoRepayActions(...args)),
4595
4360
  pendingEndaoRecoverNftActions: (...args) => singleQuery(publicClient, call.pendingEndaoRecoverNftActions(...args)),
4596
4361
  pendingTrainingWheels: (...args) => singleQuery(publicClient, call.pendingTrainingWheels(...args)),
4597
- pendingTrainingWheelAccess: (...args) => singleQuery(publicClient, call.pendingTrainingWheelAccess(...args)),
4598
4362
  // Mutations
4599
4363
  startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
4600
4364
  confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
4601
4365
  cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
4366
+ relinquishGov: (...args) => mutate(walletClient, mutation.relinquishGov)(...args),
4602
4367
  setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
4603
4368
  finishRipeHqSetup: (...args) => mutate(walletClient, mutation.finishRipeHqSetup)(...args),
4604
4369
  setActionTimeLock: (...args) => mutate(walletClient, mutation.setActionTimeLock)(...args),