@ripe-finance/sdk 1.13.2 → 1.14.2

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 (173) hide show
  1. package/dist/contracts/AuctionHouse.d.ts +126 -60
  2. package/dist/contracts/AuctionHouse.d.ts.map +1 -1
  3. package/dist/contracts/AuctionHouse.js +145 -75
  4. package/dist/contracts/CreditEngine.d.ts +679 -242
  5. package/dist/contracts/CreditEngine.d.ts.map +1 -1
  6. package/dist/contracts/CreditEngine.js +790 -276
  7. package/dist/contracts/CreditRedeem.d.ts +475 -0
  8. package/dist/contracts/CreditRedeem.d.ts.map +1 -0
  9. package/dist/contracts/CreditRedeem.js +551 -0
  10. package/dist/contracts/Deleverage.d.ts +929 -0
  11. package/dist/contracts/Deleverage.d.ts.map +1 -0
  12. package/dist/contracts/Deleverage.js +1095 -0
  13. package/dist/contracts/RedStone.d.ts +1581 -0
  14. package/dist/contracts/RedStone.d.ts.map +1 -0
  15. package/dist/contracts/{AgentFactory_v2.js → RedStone.js} +1077 -682
  16. package/dist/contracts/RipePoolAero.d.ts +5 -5
  17. package/dist/contracts/RipePoolAero.d.ts.map +1 -1
  18. package/dist/contracts/SwitchboardAlpha.d.ts +56 -0
  19. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  20. package/dist/contracts/SwitchboardAlpha.js +73 -1
  21. package/dist/contracts/SwitchboardDelta.d.ts +115 -0
  22. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
  23. package/dist/contracts/SwitchboardDelta.js +144 -1
  24. package/dist/contracts/Teller.d.ts +419 -0
  25. package/dist/contracts/Teller.d.ts.map +1 -1
  26. package/dist/contracts/Teller.js +531 -1
  27. package/dist/contracts/TellerUtils.d.ts +819 -0
  28. package/dist/contracts/TellerUtils.d.ts.map +1 -0
  29. package/dist/contracts/TellerUtils.js +994 -0
  30. package/dist/contracts/UnderscoreVault.d.ts +1028 -0
  31. package/dist/contracts/UnderscoreVault.d.ts.map +1 -0
  32. package/dist/contracts/UnderscoreVault.js +1243 -0
  33. package/dist/contracts/UndyVaultPrices.d.ts +1781 -0
  34. package/dist/contracts/UndyVaultPrices.d.ts.map +1 -0
  35. package/dist/contracts/{AgentFactory.js → UndyVaultPrices.js} +1185 -1024
  36. package/dist/contracts/index.d.ts +7 -0
  37. package/dist/contracts/index.d.ts.map +1 -1
  38. package/dist/contracts/index.js +7 -0
  39. package/dist/contracts/sdk.d.ts +14 -0
  40. package/dist/contracts/sdk.d.ts.map +1 -1
  41. package/dist/contracts/sdk.js +14 -0
  42. package/dist/contracts/{LegoMorpho.d.ts → wsuperOETHbPrices.d.ts} +610 -573
  43. package/dist/contracts/wsuperOETHbPrices.d.ts.map +1 -0
  44. package/dist/contracts/{LegoMorpho.js → wsuperOETHbPrices.js} +654 -632
  45. package/dist/index.d.ts +327 -31
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +21 -0
  48. package/package.json +2 -2
  49. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  50. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  51. package/dist/contracts/AddyRegistry.js +0 -1392
  52. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  53. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  54. package/dist/contracts/AddyRegistry_v1.js +0 -594
  55. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  56. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  57. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  58. package/dist/contracts/Agent.d.ts +0 -2709
  59. package/dist/contracts/Agent.d.ts.map +0 -1
  60. package/dist/contracts/Agent.js +0 -3458
  61. package/dist/contracts/AgentFactory.d.ts +0 -1665
  62. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  63. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  64. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  65. package/dist/contracts/AgentFactory_v1.js +0 -1336
  66. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  67. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  68. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  69. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  70. package/dist/contracts/AgentTemplate.js +0 -3370
  71. package/dist/contracts/Agent_v1.d.ts +0 -2631
  72. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  73. package/dist/contracts/Agent_v1.js +0 -3372
  74. package/dist/contracts/Agent_v2.d.ts +0 -2709
  75. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  76. package/dist/contracts/Agent_v2.js +0 -3458
  77. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  78. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  79. package/dist/contracts/ChainlinkFeeds.js +0 -900
  80. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  81. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  82. package/dist/contracts/LegoAaveV3.js +0 -1330
  83. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  84. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  85. package/dist/contracts/LegoAeroClassic.js +0 -1546
  86. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  87. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  88. package/dist/contracts/LegoAeroSlipstream.js +0 -1671
  89. package/dist/contracts/LegoCommon.d.ts +0 -164
  90. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  91. package/dist/contracts/LegoCommon.js +0 -202
  92. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  93. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  94. package/dist/contracts/LegoCompoundV3.js +0 -1365
  95. package/dist/contracts/LegoCredit.d.ts +0 -140
  96. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  97. package/dist/contracts/LegoCredit.js +0 -179
  98. package/dist/contracts/LegoCurve.d.ts +0 -1189
  99. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  100. package/dist/contracts/LegoCurve.js +0 -1519
  101. package/dist/contracts/LegoDex.d.ts +0 -587
  102. package/dist/contracts/LegoDex.d.ts.map +0 -1
  103. package/dist/contracts/LegoDex.js +0 -774
  104. package/dist/contracts/LegoEuler.d.ts +0 -1074
  105. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  106. package/dist/contracts/LegoEuler.js +0 -1383
  107. package/dist/contracts/LegoFluid.d.ts +0 -1025
  108. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  109. package/dist/contracts/LegoFluid.js +0 -1320
  110. package/dist/contracts/LegoHelper.d.ts +0 -1563
  111. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  112. package/dist/contracts/LegoHelper.js +0 -1947
  113. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  114. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  115. package/dist/contracts/LegoMoonwell.js +0 -1342
  116. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  117. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  118. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  119. package/dist/contracts/LegoRegistry.js +0 -1368
  120. package/dist/contracts/LegoSky.d.ts +0 -923
  121. package/dist/contracts/LegoSky.d.ts.map +0 -1
  122. package/dist/contracts/LegoSky.js +0 -1180
  123. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  124. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  125. package/dist/contracts/LegoUniswapV2.js +0 -1546
  126. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  127. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  128. package/dist/contracts/LegoUniswapV3.js +0 -1718
  129. package/dist/contracts/LegoYield.d.ts +0 -390
  130. package/dist/contracts/LegoYield.d.ts.map +0 -1
  131. package/dist/contracts/LegoYield.js +0 -511
  132. package/dist/contracts/OracleParser.d.ts +0 -207
  133. package/dist/contracts/OracleParser.d.ts.map +0 -1
  134. package/dist/contracts/OracleParser.js +0 -264
  135. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  136. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  137. package/dist/contracts/OracleRegistry.js +0 -1562
  138. package/dist/contracts/PriceSheets.d.ts +0 -1127
  139. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  140. package/dist/contracts/PriceSheets.js +0 -1383
  141. package/dist/contracts/PythFeeds.d.ts +0 -640
  142. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  143. package/dist/contracts/PythFeeds.js +0 -813
  144. package/dist/contracts/RipePool.d.ts +0 -1264
  145. package/dist/contracts/RipePool.d.ts.map +0 -1
  146. package/dist/contracts/RipePool.js +0 -1627
  147. package/dist/contracts/StorkFeeds.d.ts +0 -640
  148. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  149. package/dist/contracts/StorkFeeds.js +0 -813
  150. package/dist/contracts/UserWallet.d.ts +0 -1975
  151. package/dist/contracts/UserWallet.d.ts.map +0 -1
  152. package/dist/contracts/UserWallet.js +0 -2577
  153. package/dist/contracts/UserWalletConfig.d.ts +0 -1852
  154. package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
  155. package/dist/contracts/UserWalletConfig.js +0 -2263
  156. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  157. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  158. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  159. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  160. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  161. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  162. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  163. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  164. package/dist/contracts/UserWallet_v1.js +0 -2581
  165. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  166. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  167. package/dist/contracts/UserWallet_v2.js +0 -2553
  168. package/dist/contracts/WalletConfig.d.ts +0 -1398
  169. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  170. package/dist/contracts/WalletConfig.js +0 -1674
  171. package/dist/contracts/WalletFunds.d.ts +0 -1978
  172. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  173. package/dist/contracts/WalletFunds.js +0 -2579
@@ -83,6 +83,53 @@ export const abi = [
83
83
  anonymous: false,
84
84
  type: 'event',
85
85
  },
86
+ {
87
+ name: 'TellerRebalance',
88
+ inputs: [
89
+ {
90
+ name: 'user',
91
+ type: 'address',
92
+ indexed: true,
93
+ },
94
+ {
95
+ name: 'caller',
96
+ type: 'address',
97
+ indexed: true,
98
+ },
99
+ {
100
+ name: 'depositAsset',
101
+ type: 'address',
102
+ indexed: true,
103
+ },
104
+ {
105
+ name: 'withdrawAsset',
106
+ type: 'address',
107
+ indexed: false,
108
+ },
109
+ {
110
+ name: 'depositAmount',
111
+ type: 'uint256',
112
+ indexed: false,
113
+ },
114
+ {
115
+ name: 'withdrawAmount',
116
+ type: 'uint256',
117
+ indexed: false,
118
+ },
119
+ {
120
+ name: 'depositVaultId',
121
+ type: 'uint256',
122
+ indexed: false,
123
+ },
124
+ {
125
+ name: 'withdrawVaultId',
126
+ type: 'uint256',
127
+ indexed: false,
128
+ },
129
+ ],
130
+ anonymous: false,
131
+ type: 'event',
132
+ },
86
133
  {
87
134
  name: 'UserConfigSet',
88
135
  inputs: [
@@ -841,6 +888,162 @@ export const abi = [
841
888
  },
842
889
  ],
843
890
  },
891
+ {
892
+ stateMutability: 'nonpayable',
893
+ type: 'function',
894
+ name: 'rebalance',
895
+ inputs: [
896
+ {
897
+ name: '_depositAsset',
898
+ type: 'address',
899
+ },
900
+ {
901
+ name: '_depositVaultId',
902
+ type: 'uint256',
903
+ },
904
+ {
905
+ name: '_withdrawAsset',
906
+ type: 'address',
907
+ },
908
+ {
909
+ name: '_withdrawVaultId',
910
+ type: 'uint256',
911
+ },
912
+ ],
913
+ outputs: [
914
+ {
915
+ name: '',
916
+ type: 'uint256',
917
+ },
918
+ {
919
+ name: '',
920
+ type: 'uint256',
921
+ },
922
+ ],
923
+ },
924
+ {
925
+ stateMutability: 'nonpayable',
926
+ type: 'function',
927
+ name: 'rebalance',
928
+ inputs: [
929
+ {
930
+ name: '_depositAsset',
931
+ type: 'address',
932
+ },
933
+ {
934
+ name: '_depositVaultId',
935
+ type: 'uint256',
936
+ },
937
+ {
938
+ name: '_withdrawAsset',
939
+ type: 'address',
940
+ },
941
+ {
942
+ name: '_withdrawVaultId',
943
+ type: 'uint256',
944
+ },
945
+ {
946
+ name: '_depositAmount',
947
+ type: 'uint256',
948
+ },
949
+ ],
950
+ outputs: [
951
+ {
952
+ name: '',
953
+ type: 'uint256',
954
+ },
955
+ {
956
+ name: '',
957
+ type: 'uint256',
958
+ },
959
+ ],
960
+ },
961
+ {
962
+ stateMutability: 'nonpayable',
963
+ type: 'function',
964
+ name: 'rebalance',
965
+ inputs: [
966
+ {
967
+ name: '_depositAsset',
968
+ type: 'address',
969
+ },
970
+ {
971
+ name: '_depositVaultId',
972
+ type: 'uint256',
973
+ },
974
+ {
975
+ name: '_withdrawAsset',
976
+ type: 'address',
977
+ },
978
+ {
979
+ name: '_withdrawVaultId',
980
+ type: 'uint256',
981
+ },
982
+ {
983
+ name: '_depositAmount',
984
+ type: 'uint256',
985
+ },
986
+ {
987
+ name: '_withdrawAmount',
988
+ type: 'uint256',
989
+ },
990
+ ],
991
+ outputs: [
992
+ {
993
+ name: '',
994
+ type: 'uint256',
995
+ },
996
+ {
997
+ name: '',
998
+ type: 'uint256',
999
+ },
1000
+ ],
1001
+ },
1002
+ {
1003
+ stateMutability: 'nonpayable',
1004
+ type: 'function',
1005
+ name: 'rebalance',
1006
+ inputs: [
1007
+ {
1008
+ name: '_depositAsset',
1009
+ type: 'address',
1010
+ },
1011
+ {
1012
+ name: '_depositVaultId',
1013
+ type: 'uint256',
1014
+ },
1015
+ {
1016
+ name: '_withdrawAsset',
1017
+ type: 'address',
1018
+ },
1019
+ {
1020
+ name: '_withdrawVaultId',
1021
+ type: 'uint256',
1022
+ },
1023
+ {
1024
+ name: '_depositAmount',
1025
+ type: 'uint256',
1026
+ },
1027
+ {
1028
+ name: '_withdrawAmount',
1029
+ type: 'uint256',
1030
+ },
1031
+ {
1032
+ name: '_user',
1033
+ type: 'address',
1034
+ },
1035
+ ],
1036
+ outputs: [
1037
+ {
1038
+ name: '',
1039
+ type: 'uint256',
1040
+ },
1041
+ {
1042
+ name: '',
1043
+ type: 'uint256',
1044
+ },
1045
+ ],
1046
+ },
844
1047
  {
845
1048
  stateMutability: 'nonpayable',
846
1049
  type: 'function',
@@ -2896,6 +3099,60 @@ export const abi = [
2896
3099
  },
2897
3100
  ],
2898
3101
  },
3102
+ {
3103
+ stateMutability: 'nonpayable',
3104
+ type: 'function',
3105
+ name: 'depositIntoGovVault',
3106
+ inputs: [
3107
+ {
3108
+ name: '_asset',
3109
+ type: 'address',
3110
+ },
3111
+ {
3112
+ name: '_amount',
3113
+ type: 'uint256',
3114
+ },
3115
+ {
3116
+ name: '_lockDuration',
3117
+ type: 'uint256',
3118
+ },
3119
+ ],
3120
+ outputs: [
3121
+ {
3122
+ name: '',
3123
+ type: 'uint256',
3124
+ },
3125
+ ],
3126
+ },
3127
+ {
3128
+ stateMutability: 'nonpayable',
3129
+ type: 'function',
3130
+ name: 'depositIntoGovVault',
3131
+ inputs: [
3132
+ {
3133
+ name: '_asset',
3134
+ type: 'address',
3135
+ },
3136
+ {
3137
+ name: '_amount',
3138
+ type: 'uint256',
3139
+ },
3140
+ {
3141
+ name: '_lockDuration',
3142
+ type: 'uint256',
3143
+ },
3144
+ {
3145
+ name: '_user',
3146
+ type: 'address',
3147
+ },
3148
+ ],
3149
+ outputs: [
3150
+ {
3151
+ name: '',
3152
+ type: 'uint256',
3153
+ },
3154
+ ],
3155
+ },
2899
3156
  {
2900
3157
  stateMutability: 'nonpayable',
2901
3158
  type: 'function',
@@ -3052,6 +3309,149 @@ export const abi = [
3052
3309
  },
3053
3310
  ],
3054
3311
  },
3312
+ {
3313
+ stateMutability: 'nonpayable',
3314
+ type: 'function',
3315
+ name: 'deleverageUser',
3316
+ inputs: [],
3317
+ outputs: [
3318
+ {
3319
+ name: '',
3320
+ type: 'uint256',
3321
+ },
3322
+ ],
3323
+ },
3324
+ {
3325
+ stateMutability: 'nonpayable',
3326
+ type: 'function',
3327
+ name: 'deleverageUser',
3328
+ inputs: [
3329
+ {
3330
+ name: '_user',
3331
+ type: 'address',
3332
+ },
3333
+ ],
3334
+ outputs: [
3335
+ {
3336
+ name: '',
3337
+ type: 'uint256',
3338
+ },
3339
+ ],
3340
+ },
3341
+ {
3342
+ stateMutability: 'nonpayable',
3343
+ type: 'function',
3344
+ name: 'deleverageUser',
3345
+ inputs: [
3346
+ {
3347
+ name: '_user',
3348
+ type: 'address',
3349
+ },
3350
+ {
3351
+ name: '_targetRepayAmount',
3352
+ type: 'uint256',
3353
+ },
3354
+ ],
3355
+ outputs: [
3356
+ {
3357
+ name: '',
3358
+ type: 'uint256',
3359
+ },
3360
+ ],
3361
+ },
3362
+ {
3363
+ stateMutability: 'nonpayable',
3364
+ type: 'function',
3365
+ name: 'deleverageManyUsers',
3366
+ inputs: [
3367
+ {
3368
+ name: '_users',
3369
+ type: 'tuple[]',
3370
+ components: [
3371
+ {
3372
+ name: 'user',
3373
+ type: 'address',
3374
+ },
3375
+ {
3376
+ name: 'targetRepayAmount',
3377
+ type: 'uint256',
3378
+ },
3379
+ ],
3380
+ },
3381
+ ],
3382
+ outputs: [
3383
+ {
3384
+ name: '',
3385
+ type: 'uint256',
3386
+ },
3387
+ ],
3388
+ },
3389
+ {
3390
+ stateMutability: 'nonpayable',
3391
+ type: 'function',
3392
+ name: 'deleverageWithSpecificAssets',
3393
+ inputs: [
3394
+ {
3395
+ name: '_assets',
3396
+ type: 'tuple[]',
3397
+ components: [
3398
+ {
3399
+ name: 'vaultId',
3400
+ type: 'uint256',
3401
+ },
3402
+ {
3403
+ name: 'asset',
3404
+ type: 'address',
3405
+ },
3406
+ {
3407
+ name: 'targetRepayAmount',
3408
+ type: 'uint256',
3409
+ },
3410
+ ],
3411
+ },
3412
+ ],
3413
+ outputs: [
3414
+ {
3415
+ name: '',
3416
+ type: 'uint256',
3417
+ },
3418
+ ],
3419
+ },
3420
+ {
3421
+ stateMutability: 'nonpayable',
3422
+ type: 'function',
3423
+ name: 'deleverageWithSpecificAssets',
3424
+ inputs: [
3425
+ {
3426
+ name: '_assets',
3427
+ type: 'tuple[]',
3428
+ components: [
3429
+ {
3430
+ name: 'vaultId',
3431
+ type: 'uint256',
3432
+ },
3433
+ {
3434
+ name: 'asset',
3435
+ type: 'address',
3436
+ },
3437
+ {
3438
+ name: 'targetRepayAmount',
3439
+ type: 'uint256',
3440
+ },
3441
+ ],
3442
+ },
3443
+ {
3444
+ name: '_user',
3445
+ type: 'address',
3446
+ },
3447
+ ],
3448
+ outputs: [
3449
+ {
3450
+ name: '',
3451
+ type: 'uint256',
3452
+ },
3453
+ ],
3454
+ },
3055
3455
  {
3056
3456
  stateMutability: 'nonpayable',
3057
3457
  type: 'function',
@@ -3335,6 +3735,124 @@ export const abi = [
3335
3735
  },
3336
3736
  ],
3337
3737
  },
3738
+ {
3739
+ stateMutability: 'nonpayable',
3740
+ type: 'function',
3741
+ name: 'performHousekeeping',
3742
+ inputs: [
3743
+ {
3744
+ name: '_isHigherRisk',
3745
+ type: 'bool',
3746
+ },
3747
+ {
3748
+ name: '_user',
3749
+ type: 'address',
3750
+ },
3751
+ {
3752
+ name: '_shouldUpdateDebt',
3753
+ type: 'bool',
3754
+ },
3755
+ ],
3756
+ outputs: [],
3757
+ },
3758
+ {
3759
+ stateMutability: 'nonpayable',
3760
+ type: 'function',
3761
+ name: 'performHousekeeping',
3762
+ inputs: [
3763
+ {
3764
+ name: '_isHigherRisk',
3765
+ type: 'bool',
3766
+ },
3767
+ {
3768
+ name: '_user',
3769
+ type: 'address',
3770
+ },
3771
+ {
3772
+ name: '_shouldUpdateDebt',
3773
+ type: 'bool',
3774
+ },
3775
+ {
3776
+ name: '_a',
3777
+ type: 'tuple',
3778
+ components: [
3779
+ {
3780
+ name: 'hq',
3781
+ type: 'address',
3782
+ },
3783
+ {
3784
+ name: 'greenToken',
3785
+ type: 'address',
3786
+ },
3787
+ {
3788
+ name: 'savingsGreen',
3789
+ type: 'address',
3790
+ },
3791
+ {
3792
+ name: 'ripeToken',
3793
+ type: 'address',
3794
+ },
3795
+ {
3796
+ name: 'ledger',
3797
+ type: 'address',
3798
+ },
3799
+ {
3800
+ name: 'missionControl',
3801
+ type: 'address',
3802
+ },
3803
+ {
3804
+ name: 'switchboard',
3805
+ type: 'address',
3806
+ },
3807
+ {
3808
+ name: 'priceDesk',
3809
+ type: 'address',
3810
+ },
3811
+ {
3812
+ name: 'vaultBook',
3813
+ type: 'address',
3814
+ },
3815
+ {
3816
+ name: 'auctionHouse',
3817
+ type: 'address',
3818
+ },
3819
+ {
3820
+ name: 'auctionHouseNft',
3821
+ type: 'address',
3822
+ },
3823
+ {
3824
+ name: 'boardroom',
3825
+ type: 'address',
3826
+ },
3827
+ {
3828
+ name: 'bondRoom',
3829
+ type: 'address',
3830
+ },
3831
+ {
3832
+ name: 'creditEngine',
3833
+ type: 'address',
3834
+ },
3835
+ {
3836
+ name: 'endaoment',
3837
+ type: 'address',
3838
+ },
3839
+ {
3840
+ name: 'humanResources',
3841
+ type: 'address',
3842
+ },
3843
+ {
3844
+ name: 'lootbox',
3845
+ type: 'address',
3846
+ },
3847
+ {
3848
+ name: 'teller',
3849
+ type: 'address',
3850
+ },
3851
+ ],
3852
+ },
3853
+ ],
3854
+ outputs: [],
3855
+ },
3338
3856
  {
3339
3857
  stateMutability: 'view',
3340
3858
  type: 'function',
@@ -3397,7 +3915,7 @@ export const abi = [
3397
3915
  outputs: [],
3398
3916
  },
3399
3917
  ];
3400
- export const deployAddress = '0x84B8D2Cb281a6E604EEE09e13cF820aD5C8ac82d';
3918
+ export const deployAddress = '0xae87deB25Bc5030991Aa5E27Cbab38f37a112C13';
3401
3919
  function getRequest(method, args, contractAddressOrOptions) {
3402
3920
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3403
3921
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -3451,6 +3969,7 @@ export const mutation = {
3451
3969
  depositFromTrusted: getMutation('depositFromTrusted'),
3452
3970
  withdraw: getMutation('withdraw'),
3453
3971
  withdrawMany: getMutation('withdrawMany'),
3972
+ rebalance: getMutation('rebalance'),
3454
3973
  borrow: getMutation('borrow'),
3455
3974
  repay: getMutation('repay'),
3456
3975
  redeemCollateral: getMutation('redeemCollateral'),
@@ -3466,12 +3985,17 @@ export const mutation = {
3466
3985
  redeemManyFromStabilityPool: getMutation('redeemManyFromStabilityPool'),
3467
3986
  claimLoot: getMutation('claimLoot'),
3468
3987
  claimLootForManyUsers: getMutation('claimLootForManyUsers'),
3988
+ depositIntoGovVault: getMutation('depositIntoGovVault'),
3469
3989
  adjustLock: getMutation('adjustLock'),
3470
3990
  releaseLock: getMutation('releaseLock'),
3471
3991
  purchaseRipeBond: getMutation('purchaseRipeBond'),
3992
+ deleverageUser: getMutation('deleverageUser'),
3993
+ deleverageManyUsers: getMutation('deleverageManyUsers'),
3994
+ deleverageWithSpecificAssets: getMutation('deleverageWithSpecificAssets'),
3472
3995
  setUserConfig: getMutation('setUserConfig'),
3473
3996
  setUserDelegation: getMutation('setUserDelegation'),
3474
3997
  setUndyLegoAccess: getMutation('setUndyLegoAccess'),
3998
+ performHousekeeping: getMutation('performHousekeeping'),
3475
3999
  };
3476
4000
  export function toSdk(publicClient, walletClient) {
3477
4001
  return {
@@ -3493,6 +4017,7 @@ export function toSdk(publicClient, walletClient) {
3493
4017
  depositFromTrusted: (...args) => mutate(walletClient, mutation.depositFromTrusted)(...args),
3494
4018
  withdraw: (...args) => mutate(walletClient, mutation.withdraw)(...args),
3495
4019
  withdrawMany: (...args) => mutate(walletClient, mutation.withdrawMany)(...args),
4020
+ rebalance: (...args) => mutate(walletClient, mutation.rebalance)(...args),
3496
4021
  borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
3497
4022
  repay: (...args) => mutate(walletClient, mutation.repay)(...args),
3498
4023
  redeemCollateral: (...args) => mutate(walletClient, mutation.redeemCollateral)(...args),
@@ -3508,11 +4033,16 @@ export function toSdk(publicClient, walletClient) {
3508
4033
  redeemManyFromStabilityPool: (...args) => mutate(walletClient, mutation.redeemManyFromStabilityPool)(...args),
3509
4034
  claimLoot: (...args) => mutate(walletClient, mutation.claimLoot)(...args),
3510
4035
  claimLootForManyUsers: (...args) => mutate(walletClient, mutation.claimLootForManyUsers)(...args),
4036
+ depositIntoGovVault: (...args) => mutate(walletClient, mutation.depositIntoGovVault)(...args),
3511
4037
  adjustLock: (...args) => mutate(walletClient, mutation.adjustLock)(...args),
3512
4038
  releaseLock: (...args) => mutate(walletClient, mutation.releaseLock)(...args),
3513
4039
  purchaseRipeBond: (...args) => mutate(walletClient, mutation.purchaseRipeBond)(...args),
4040
+ deleverageUser: (...args) => mutate(walletClient, mutation.deleverageUser)(...args),
4041
+ deleverageManyUsers: (...args) => mutate(walletClient, mutation.deleverageManyUsers)(...args),
4042
+ deleverageWithSpecificAssets: (...args) => mutate(walletClient, mutation.deleverageWithSpecificAssets)(...args),
3514
4043
  setUserConfig: (...args) => mutate(walletClient, mutation.setUserConfig)(...args),
3515
4044
  setUserDelegation: (...args) => mutate(walletClient, mutation.setUserDelegation)(...args),
3516
4045
  setUndyLegoAccess: (...args) => mutate(walletClient, mutation.setUndyLegoAccess)(...args),
4046
+ performHousekeeping: (...args) => mutate(walletClient, mutation.performHousekeeping)(...args),
3517
4047
  };
3518
4048
  }