@ripe-finance/sdk 1.14.2 → 1.15.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 (44) hide show
  1. package/dist/contracts/AuctionHouse.js +1 -1
  2. package/dist/contracts/BondRoom.js +1 -1
  3. package/dist/contracts/CreditEngine.d.ts +32 -0
  4. package/dist/contracts/CreditEngine.d.ts.map +1 -1
  5. package/dist/contracts/CreditEngine.js +41 -1
  6. package/dist/contracts/Deleverage.js +1 -1
  7. package/dist/contracts/Endaoment.d.ts +230 -1138
  8. package/dist/contracts/Endaoment.d.ts.map +1 -1
  9. package/dist/contracts/Endaoment.js +216 -1445
  10. package/dist/contracts/EndaomentFunds.d.ts +241 -0
  11. package/dist/contracts/EndaomentFunds.d.ts.map +1 -0
  12. package/dist/contracts/EndaomentFunds.js +278 -0
  13. package/dist/contracts/EndaomentPSM.d.ts +1229 -0
  14. package/dist/contracts/EndaomentPSM.d.ts.map +1 -0
  15. package/dist/contracts/EndaomentPSM.js +1538 -0
  16. package/dist/contracts/Lootbox.d.ts +184 -0
  17. package/dist/contracts/Lootbox.d.ts.map +1 -1
  18. package/dist/contracts/Lootbox.js +232 -1
  19. package/dist/contracts/PriceDesk.js +1 -1
  20. package/dist/contracts/PythPrices.d.ts +60 -8
  21. package/dist/contracts/PythPrices.d.ts.map +1 -1
  22. package/dist/contracts/PythPrices.js +77 -9
  23. package/dist/contracts/StorkPrices.d.ts +8 -8
  24. package/dist/contracts/StorkPrices.d.ts.map +1 -1
  25. package/dist/contracts/StorkPrices.js +9 -9
  26. package/dist/contracts/SwitchboardAlpha.d.ts +112 -0
  27. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  28. package/dist/contracts/SwitchboardAlpha.js +145 -1
  29. package/dist/contracts/SwitchboardCharlie.d.ts +133 -1760
  30. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  31. package/dist/contracts/SwitchboardCharlie.js +129 -2217
  32. package/dist/contracts/SwitchboardEcho.d.ts +3296 -0
  33. package/dist/contracts/SwitchboardEcho.d.ts.map +1 -0
  34. package/dist/contracts/SwitchboardEcho.js +4184 -0
  35. package/dist/contracts/index.d.ts +3 -0
  36. package/dist/contracts/index.d.ts.map +1 -1
  37. package/dist/contracts/index.js +3 -0
  38. package/dist/contracts/sdk.d.ts +6 -0
  39. package/dist/contracts/sdk.d.ts.map +1 -1
  40. package/dist/contracts/sdk.js +6 -0
  41. package/dist/index.d.ts +89 -37
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +14 -0
  44. package/package.json +2 -2
@@ -93,28 +93,6 @@ export const abi = [
93
93
  anonymous: false,
94
94
  type: 'event',
95
95
  },
96
- {
97
- name: 'EndaomentNftRecovered',
98
- inputs: [
99
- {
100
- name: 'collection',
101
- type: 'address',
102
- indexed: true,
103
- },
104
- {
105
- name: 'nftTokenId',
106
- type: 'uint256',
107
- indexed: false,
108
- },
109
- {
110
- name: 'recipient',
111
- type: 'address',
112
- indexed: true,
113
- },
114
- ],
115
- anonymous: false,
116
- type: 'event',
117
- },
118
96
  {
119
97
  name: 'StabilizerPoolLiqAdded',
120
98
  inputs: [
@@ -463,48 +441,72 @@ export const abi = [
463
441
  ],
464
442
  },
465
443
  {
466
- stateMutability: 'view',
444
+ stateMutability: 'payable',
445
+ type: 'fallback',
446
+ },
447
+ {
448
+ stateMutability: 'nonpayable',
467
449
  type: 'function',
468
- name: 'onERC721Received',
450
+ name: 'transferFundsToGov',
469
451
  inputs: [
470
452
  {
471
- name: '_operator',
453
+ name: '_asset',
472
454
  type: 'address',
473
455
  },
456
+ ],
457
+ outputs: [
474
458
  {
475
- name: '_owner',
476
- type: 'address',
459
+ name: '',
460
+ type: 'uint256',
477
461
  },
478
462
  {
479
- name: '_tokenId',
463
+ name: '',
480
464
  type: 'uint256',
481
465
  },
466
+ ],
467
+ },
468
+ {
469
+ stateMutability: 'nonpayable',
470
+ type: 'function',
471
+ name: 'transferFundsToGov',
472
+ inputs: [
473
+ {
474
+ name: '_asset',
475
+ type: 'address',
476
+ },
482
477
  {
483
- name: '_data',
484
- type: 'bytes',
478
+ name: '_amount',
479
+ type: 'uint256',
485
480
  },
486
481
  ],
487
482
  outputs: [
488
483
  {
489
484
  name: '',
490
- type: 'bytes4',
485
+ type: 'uint256',
486
+ },
487
+ {
488
+ name: '',
489
+ type: 'uint256',
491
490
  },
492
491
  ],
493
492
  },
494
- {
495
- stateMutability: 'payable',
496
- type: 'fallback',
497
- },
498
493
  {
499
494
  stateMutability: 'nonpayable',
500
495
  type: 'function',
501
- name: 'transferFundsToGov',
496
+ name: 'transferFundsToVault',
502
497
  inputs: [
503
498
  {
504
- name: '_asset',
505
- type: 'address',
499
+ name: '_assets',
500
+ type: 'address[]',
506
501
  },
507
502
  ],
503
+ outputs: [],
504
+ },
505
+ {
506
+ stateMutability: 'nonpayable',
507
+ type: 'function',
508
+ name: 'transferFundsToEndaomentPSM',
509
+ inputs: [],
508
510
  outputs: [
509
511
  {
510
512
  name: '',
@@ -519,12 +521,8 @@ export const abi = [
519
521
  {
520
522
  stateMutability: 'nonpayable',
521
523
  type: 'function',
522
- name: 'transferFundsToGov',
524
+ name: 'transferFundsToEndaomentPSM',
523
525
  inputs: [
524
- {
525
- name: '_asset',
526
- type: 'address',
527
- },
528
526
  {
529
527
  name: '_amount',
530
528
  type: 'uint256',
@@ -811,22 +809,40 @@ export const abi = [
811
809
  {
812
810
  stateMutability: 'nonpayable',
813
811
  type: 'function',
814
- name: 'rebalanceYieldPosition',
812
+ name: 'swapTokens',
815
813
  inputs: [
816
814
  {
817
- name: '_fromLegoId',
818
- type: 'uint256',
815
+ name: '_instructions',
816
+ type: 'tuple[]',
817
+ components: [
818
+ {
819
+ name: 'legoId',
820
+ type: 'uint256',
821
+ },
822
+ {
823
+ name: 'amountIn',
824
+ type: 'uint256',
825
+ },
826
+ {
827
+ name: 'minAmountOut',
828
+ type: 'uint256',
829
+ },
830
+ {
831
+ name: 'tokenPath',
832
+ type: 'address[]',
833
+ },
834
+ {
835
+ name: 'poolPath',
836
+ type: 'address[]',
837
+ },
838
+ ],
819
839
  },
840
+ ],
841
+ outputs: [
820
842
  {
821
- name: '_fromVaultToken',
843
+ name: '',
822
844
  type: 'address',
823
845
  },
824
- {
825
- name: '_toLegoId',
826
- type: 'uint256',
827
- },
828
- ],
829
- outputs: [
830
846
  {
831
847
  name: '',
832
848
  type: 'uint256',
@@ -848,34 +864,47 @@ export const abi = [
848
864
  {
849
865
  stateMutability: 'nonpayable',
850
866
  type: 'function',
851
- name: 'rebalanceYieldPosition',
867
+ name: 'claimIncentives',
852
868
  inputs: [
853
869
  {
854
- name: '_fromLegoId',
870
+ name: '_user',
871
+ type: 'address',
872
+ },
873
+ {
874
+ name: '_legoId',
855
875
  type: 'uint256',
856
876
  },
877
+ ],
878
+ outputs: [
857
879
  {
858
- name: '_fromVaultToken',
859
- type: 'address',
880
+ name: '',
881
+ type: 'uint256',
860
882
  },
861
883
  {
862
- name: '_toLegoId',
884
+ name: '',
863
885
  type: 'uint256',
864
886
  },
887
+ ],
888
+ },
889
+ {
890
+ stateMutability: 'nonpayable',
891
+ type: 'function',
892
+ name: 'claimIncentives',
893
+ inputs: [
865
894
  {
866
- name: '_toVaultAddr',
895
+ name: '_user',
867
896
  type: 'address',
868
897
  },
869
- ],
870
- outputs: [
871
898
  {
872
- name: '',
899
+ name: '_legoId',
873
900
  type: 'uint256',
874
901
  },
875
902
  {
876
- name: '',
903
+ name: '_rewardToken',
877
904
  type: 'address',
878
905
  },
906
+ ],
907
+ outputs: [
879
908
  {
880
909
  name: '',
881
910
  type: 'uint256',
@@ -889,38 +918,26 @@ export const abi = [
889
918
  {
890
919
  stateMutability: 'nonpayable',
891
920
  type: 'function',
892
- name: 'rebalanceYieldPosition',
921
+ name: 'claimIncentives',
893
922
  inputs: [
894
923
  {
895
- name: '_fromLegoId',
896
- type: 'uint256',
897
- },
898
- {
899
- name: '_fromVaultToken',
924
+ name: '_user',
900
925
  type: 'address',
901
926
  },
902
927
  {
903
- name: '_toLegoId',
928
+ name: '_legoId',
904
929
  type: 'uint256',
905
930
  },
906
931
  {
907
- name: '_toVaultAddr',
932
+ name: '_rewardToken',
908
933
  type: 'address',
909
934
  },
910
935
  {
911
- name: '_fromVaultAmount',
936
+ name: '_rewardAmount',
912
937
  type: 'uint256',
913
938
  },
914
939
  ],
915
940
  outputs: [
916
- {
917
- name: '',
918
- type: 'uint256',
919
- },
920
- {
921
- name: '',
922
- type: 'address',
923
- },
924
941
  {
925
942
  name: '',
926
943
  type: 'uint256',
@@ -934,31 +951,27 @@ export const abi = [
934
951
  {
935
952
  stateMutability: 'nonpayable',
936
953
  type: 'function',
937
- name: 'rebalanceYieldPosition',
954
+ name: 'claimIncentives',
938
955
  inputs: [
939
956
  {
940
- name: '_fromLegoId',
941
- type: 'uint256',
942
- },
943
- {
944
- name: '_fromVaultToken',
957
+ name: '_user',
945
958
  type: 'address',
946
959
  },
947
960
  {
948
- name: '_toLegoId',
961
+ name: '_legoId',
949
962
  type: 'uint256',
950
963
  },
951
964
  {
952
- name: '_toVaultAddr',
965
+ name: '_rewardToken',
953
966
  type: 'address',
954
967
  },
955
968
  {
956
- name: '_fromVaultAmount',
969
+ name: '_rewardAmount',
957
970
  type: 'uint256',
958
971
  },
959
972
  {
960
- name: '_extraData',
961
- type: 'bytes32',
973
+ name: '_proofs',
974
+ type: 'bytes32[]',
962
975
  },
963
976
  ],
964
977
  outputs: [
@@ -968,8 +981,16 @@ export const abi = [
968
981
  },
969
982
  {
970
983
  name: '',
971
- type: 'address',
984
+ type: 'uint256',
972
985
  },
986
+ ],
987
+ },
988
+ {
989
+ stateMutability: 'nonpayable',
990
+ type: 'function',
991
+ name: 'convertEthToWeth',
992
+ inputs: [],
993
+ outputs: [
973
994
  {
974
995
  name: '',
975
996
  type: 'uint256',
@@ -983,48 +1004,30 @@ export const abi = [
983
1004
  {
984
1005
  stateMutability: 'nonpayable',
985
1006
  type: 'function',
986
- name: 'swapTokens',
1007
+ name: 'convertEthToWeth',
987
1008
  inputs: [
988
1009
  {
989
- name: '_instructions',
990
- type: 'tuple[]',
991
- components: [
992
- {
993
- name: 'legoId',
994
- type: 'uint256',
995
- },
996
- {
997
- name: 'amountIn',
998
- type: 'uint256',
999
- },
1000
- {
1001
- name: 'minAmountOut',
1002
- type: 'uint256',
1003
- },
1004
- {
1005
- name: 'tokenPath',
1006
- type: 'address[]',
1007
- },
1008
- {
1009
- name: 'poolPath',
1010
- type: 'address[]',
1011
- },
1012
- ],
1010
+ name: '_amount',
1011
+ type: 'uint256',
1013
1012
  },
1014
1013
  ],
1015
1014
  outputs: [
1016
- {
1017
- name: '',
1018
- type: 'address',
1019
- },
1020
1015
  {
1021
1016
  name: '',
1022
1017
  type: 'uint256',
1023
1018
  },
1024
1019
  {
1025
1020
  name: '',
1026
- type: 'address',
1021
+ type: 'uint256',
1027
1022
  },
1023
+ ],
1024
+ },
1025
+ {
1026
+ stateMutability: 'nonpayable',
1027
+ type: 'function',
1028
+ name: 'convertWethToEth',
1029
+ inputs: [],
1030
+ outputs: [
1028
1031
  {
1029
1032
  name: '',
1030
1033
  type: 'uint256',
@@ -1038,20 +1041,12 @@ export const abi = [
1038
1041
  {
1039
1042
  stateMutability: 'nonpayable',
1040
1043
  type: 'function',
1041
- name: 'mintOrRedeemAsset',
1044
+ name: 'convertWethToEth',
1042
1045
  inputs: [
1043
1046
  {
1044
- name: '_legoId',
1047
+ name: '_amount',
1045
1048
  type: 'uint256',
1046
1049
  },
1047
- {
1048
- name: '_tokenIn',
1049
- type: 'address',
1050
- },
1051
- {
1052
- name: '_tokenOut',
1053
- type: 'address',
1054
- },
1055
1050
  ],
1056
1051
  outputs: [
1057
1052
  {
@@ -1062,36 +1057,28 @@ export const abi = [
1062
1057
  name: '',
1063
1058
  type: 'uint256',
1064
1059
  },
1065
- {
1066
- name: '',
1067
- type: 'bool',
1068
- },
1069
- {
1070
- name: '',
1071
- type: 'uint256',
1072
- },
1073
1060
  ],
1074
1061
  },
1075
1062
  {
1076
1063
  stateMutability: 'nonpayable',
1077
1064
  type: 'function',
1078
- name: 'mintOrRedeemAsset',
1065
+ name: 'addLiquidity',
1079
1066
  inputs: [
1080
1067
  {
1081
1068
  name: '_legoId',
1082
1069
  type: 'uint256',
1083
1070
  },
1084
1071
  {
1085
- name: '_tokenIn',
1072
+ name: '_pool',
1086
1073
  type: 'address',
1087
1074
  },
1088
1075
  {
1089
- name: '_tokenOut',
1076
+ name: '_tokenA',
1090
1077
  type: 'address',
1091
1078
  },
1092
1079
  {
1093
- name: '_amountIn',
1094
- type: 'uint256',
1080
+ name: '_tokenB',
1081
+ type: 'address',
1095
1082
  },
1096
1083
  ],
1097
1084
  outputs: [
@@ -1105,7 +1092,7 @@ export const abi = [
1105
1092
  },
1106
1093
  {
1107
1094
  name: '',
1108
- type: 'bool',
1095
+ type: 'uint256',
1109
1096
  },
1110
1097
  {
1111
1098
  name: '',
@@ -1116,26 +1103,26 @@ export const abi = [
1116
1103
  {
1117
1104
  stateMutability: 'nonpayable',
1118
1105
  type: 'function',
1119
- name: 'mintOrRedeemAsset',
1106
+ name: 'addLiquidity',
1120
1107
  inputs: [
1121
1108
  {
1122
1109
  name: '_legoId',
1123
1110
  type: 'uint256',
1124
1111
  },
1125
1112
  {
1126
- name: '_tokenIn',
1113
+ name: '_pool',
1127
1114
  type: 'address',
1128
1115
  },
1129
1116
  {
1130
- name: '_tokenOut',
1117
+ name: '_tokenA',
1131
1118
  type: 'address',
1132
1119
  },
1133
1120
  {
1134
- name: '_amountIn',
1135
- type: 'uint256',
1121
+ name: '_tokenB',
1122
+ type: 'address',
1136
1123
  },
1137
1124
  {
1138
- name: '_minAmountOut',
1125
+ name: '_amountA',
1139
1126
  type: 'uint256',
1140
1127
  },
1141
1128
  ],
@@ -1150,7 +1137,7 @@ export const abi = [
1150
1137
  },
1151
1138
  {
1152
1139
  name: '',
1153
- type: 'bool',
1140
+ type: 'uint256',
1154
1141
  },
1155
1142
  {
1156
1143
  name: '',
@@ -1161,31 +1148,31 @@ export const abi = [
1161
1148
  {
1162
1149
  stateMutability: 'nonpayable',
1163
1150
  type: 'function',
1164
- name: 'mintOrRedeemAsset',
1151
+ name: 'addLiquidity',
1165
1152
  inputs: [
1166
1153
  {
1167
1154
  name: '_legoId',
1168
1155
  type: 'uint256',
1169
1156
  },
1170
1157
  {
1171
- name: '_tokenIn',
1158
+ name: '_pool',
1172
1159
  type: 'address',
1173
1160
  },
1174
1161
  {
1175
- name: '_tokenOut',
1162
+ name: '_tokenA',
1176
1163
  type: 'address',
1177
1164
  },
1178
1165
  {
1179
- name: '_amountIn',
1180
- type: 'uint256',
1166
+ name: '_tokenB',
1167
+ type: 'address',
1181
1168
  },
1182
1169
  {
1183
- name: '_minAmountOut',
1170
+ name: '_amountA',
1184
1171
  type: 'uint256',
1185
1172
  },
1186
1173
  {
1187
- name: '_extraData',
1188
- type: 'bytes32',
1174
+ name: '_amountB',
1175
+ type: 'uint256',
1189
1176
  },
1190
1177
  ],
1191
1178
  outputs: [
@@ -1199,7 +1186,7 @@ export const abi = [
1199
1186
  },
1200
1187
  {
1201
1188
  name: '',
1202
- type: 'bool',
1189
+ type: 'uint256',
1203
1190
  },
1204
1191
  {
1205
1192
  name: '',
@@ -1210,1077 +1197,18 @@ export const abi = [
1210
1197
  {
1211
1198
  stateMutability: 'nonpayable',
1212
1199
  type: 'function',
1213
- name: 'confirmMintOrRedeemAsset',
1200
+ name: 'addLiquidity',
1214
1201
  inputs: [
1215
1202
  {
1216
1203
  name: '_legoId',
1217
1204
  type: 'uint256',
1218
1205
  },
1219
1206
  {
1220
- name: '_tokenIn',
1207
+ name: '_pool',
1221
1208
  type: 'address',
1222
1209
  },
1223
1210
  {
1224
- name: '_tokenOut',
1225
- type: 'address',
1226
- },
1227
- ],
1228
- outputs: [
1229
- {
1230
- name: '',
1231
- type: 'uint256',
1232
- },
1233
- {
1234
- name: '',
1235
- type: 'uint256',
1236
- },
1237
- ],
1238
- },
1239
- {
1240
- stateMutability: 'nonpayable',
1241
- type: 'function',
1242
- name: 'confirmMintOrRedeemAsset',
1243
- inputs: [
1244
- {
1245
- name: '_legoId',
1246
- type: 'uint256',
1247
- },
1248
- {
1249
- name: '_tokenIn',
1250
- type: 'address',
1251
- },
1252
- {
1253
- name: '_tokenOut',
1254
- type: 'address',
1255
- },
1256
- {
1257
- name: '_extraData',
1258
- type: 'bytes32',
1259
- },
1260
- ],
1261
- outputs: [
1262
- {
1263
- name: '',
1264
- type: 'uint256',
1265
- },
1266
- {
1267
- name: '',
1268
- type: 'uint256',
1269
- },
1270
- ],
1271
- },
1272
- {
1273
- stateMutability: 'nonpayable',
1274
- type: 'function',
1275
- name: 'claimRewards',
1276
- inputs: [
1277
- {
1278
- name: '_legoId',
1279
- type: 'uint256',
1280
- },
1281
- ],
1282
- outputs: [
1283
- {
1284
- name: '',
1285
- type: 'uint256',
1286
- },
1287
- {
1288
- name: '',
1289
- type: 'uint256',
1290
- },
1291
- ],
1292
- },
1293
- {
1294
- stateMutability: 'nonpayable',
1295
- type: 'function',
1296
- name: 'claimRewards',
1297
- inputs: [
1298
- {
1299
- name: '_legoId',
1300
- type: 'uint256',
1301
- },
1302
- {
1303
- name: '_rewardToken',
1304
- type: 'address',
1305
- },
1306
- ],
1307
- outputs: [
1308
- {
1309
- name: '',
1310
- type: 'uint256',
1311
- },
1312
- {
1313
- name: '',
1314
- type: 'uint256',
1315
- },
1316
- ],
1317
- },
1318
- {
1319
- stateMutability: 'nonpayable',
1320
- type: 'function',
1321
- name: 'claimRewards',
1322
- inputs: [
1323
- {
1324
- name: '_legoId',
1325
- type: 'uint256',
1326
- },
1327
- {
1328
- name: '_rewardToken',
1329
- type: 'address',
1330
- },
1331
- {
1332
- name: '_rewardAmount',
1333
- type: 'uint256',
1334
- },
1335
- ],
1336
- outputs: [
1337
- {
1338
- name: '',
1339
- type: 'uint256',
1340
- },
1341
- {
1342
- name: '',
1343
- type: 'uint256',
1344
- },
1345
- ],
1346
- },
1347
- {
1348
- stateMutability: 'nonpayable',
1349
- type: 'function',
1350
- name: 'claimRewards',
1351
- inputs: [
1352
- {
1353
- name: '_legoId',
1354
- type: 'uint256',
1355
- },
1356
- {
1357
- name: '_rewardToken',
1358
- type: 'address',
1359
- },
1360
- {
1361
- name: '_rewardAmount',
1362
- type: 'uint256',
1363
- },
1364
- {
1365
- name: '_extraData',
1366
- type: 'bytes32',
1367
- },
1368
- ],
1369
- outputs: [
1370
- {
1371
- name: '',
1372
- type: 'uint256',
1373
- },
1374
- {
1375
- name: '',
1376
- type: 'uint256',
1377
- },
1378
- ],
1379
- },
1380
- {
1381
- stateMutability: 'payable',
1382
- type: 'function',
1383
- name: 'convertEthToWeth',
1384
- inputs: [],
1385
- outputs: [
1386
- {
1387
- name: '',
1388
- type: 'uint256',
1389
- },
1390
- {
1391
- name: '',
1392
- type: 'uint256',
1393
- },
1394
- ],
1395
- },
1396
- {
1397
- stateMutability: 'payable',
1398
- type: 'function',
1399
- name: 'convertEthToWeth',
1400
- inputs: [
1401
- {
1402
- name: '_amount',
1403
- type: 'uint256',
1404
- },
1405
- ],
1406
- outputs: [
1407
- {
1408
- name: '',
1409
- type: 'uint256',
1410
- },
1411
- {
1412
- name: '',
1413
- type: 'uint256',
1414
- },
1415
- ],
1416
- },
1417
- {
1418
- stateMutability: 'nonpayable',
1419
- type: 'function',
1420
- name: 'convertWethToEth',
1421
- inputs: [],
1422
- outputs: [
1423
- {
1424
- name: '',
1425
- type: 'uint256',
1426
- },
1427
- {
1428
- name: '',
1429
- type: 'uint256',
1430
- },
1431
- ],
1432
- },
1433
- {
1434
- stateMutability: 'nonpayable',
1435
- type: 'function',
1436
- name: 'convertWethToEth',
1437
- inputs: [
1438
- {
1439
- name: '_amount',
1440
- type: 'uint256',
1441
- },
1442
- ],
1443
- outputs: [
1444
- {
1445
- name: '',
1446
- type: 'uint256',
1447
- },
1448
- {
1449
- name: '',
1450
- type: 'uint256',
1451
- },
1452
- ],
1453
- },
1454
- {
1455
- stateMutability: 'nonpayable',
1456
- type: 'function',
1457
- name: 'addLiquidity',
1458
- inputs: [
1459
- {
1460
- name: '_legoId',
1461
- type: 'uint256',
1462
- },
1463
- {
1464
- name: '_pool',
1465
- type: 'address',
1466
- },
1467
- {
1468
- name: '_tokenA',
1469
- type: 'address',
1470
- },
1471
- {
1472
- name: '_tokenB',
1473
- type: 'address',
1474
- },
1475
- ],
1476
- outputs: [
1477
- {
1478
- name: '',
1479
- type: 'uint256',
1480
- },
1481
- {
1482
- name: '',
1483
- type: 'uint256',
1484
- },
1485
- {
1486
- name: '',
1487
- type: 'uint256',
1488
- },
1489
- {
1490
- name: '',
1491
- type: 'uint256',
1492
- },
1493
- ],
1494
- },
1495
- {
1496
- stateMutability: 'nonpayable',
1497
- type: 'function',
1498
- name: 'addLiquidity',
1499
- inputs: [
1500
- {
1501
- name: '_legoId',
1502
- type: 'uint256',
1503
- },
1504
- {
1505
- name: '_pool',
1506
- type: 'address',
1507
- },
1508
- {
1509
- name: '_tokenA',
1510
- type: 'address',
1511
- },
1512
- {
1513
- name: '_tokenB',
1514
- type: 'address',
1515
- },
1516
- {
1517
- name: '_amountA',
1518
- type: 'uint256',
1519
- },
1520
- ],
1521
- outputs: [
1522
- {
1523
- name: '',
1524
- type: 'uint256',
1525
- },
1526
- {
1527
- name: '',
1528
- type: 'uint256',
1529
- },
1530
- {
1531
- name: '',
1532
- type: 'uint256',
1533
- },
1534
- {
1535
- name: '',
1536
- type: 'uint256',
1537
- },
1538
- ],
1539
- },
1540
- {
1541
- stateMutability: 'nonpayable',
1542
- type: 'function',
1543
- name: 'addLiquidity',
1544
- inputs: [
1545
- {
1546
- name: '_legoId',
1547
- type: 'uint256',
1548
- },
1549
- {
1550
- name: '_pool',
1551
- type: 'address',
1552
- },
1553
- {
1554
- name: '_tokenA',
1555
- type: 'address',
1556
- },
1557
- {
1558
- name: '_tokenB',
1559
- type: 'address',
1560
- },
1561
- {
1562
- name: '_amountA',
1563
- type: 'uint256',
1564
- },
1565
- {
1566
- name: '_amountB',
1567
- type: 'uint256',
1568
- },
1569
- ],
1570
- outputs: [
1571
- {
1572
- name: '',
1573
- type: 'uint256',
1574
- },
1575
- {
1576
- name: '',
1577
- type: 'uint256',
1578
- },
1579
- {
1580
- name: '',
1581
- type: 'uint256',
1582
- },
1583
- {
1584
- name: '',
1585
- type: 'uint256',
1586
- },
1587
- ],
1588
- },
1589
- {
1590
- stateMutability: 'nonpayable',
1591
- type: 'function',
1592
- name: 'addLiquidity',
1593
- inputs: [
1594
- {
1595
- name: '_legoId',
1596
- type: 'uint256',
1597
- },
1598
- {
1599
- name: '_pool',
1600
- type: 'address',
1601
- },
1602
- {
1603
- name: '_tokenA',
1604
- type: 'address',
1605
- },
1606
- {
1607
- name: '_tokenB',
1608
- type: 'address',
1609
- },
1610
- {
1611
- name: '_amountA',
1612
- type: 'uint256',
1613
- },
1614
- {
1615
- name: '_amountB',
1616
- type: 'uint256',
1617
- },
1618
- {
1619
- name: '_minAmountA',
1620
- type: 'uint256',
1621
- },
1622
- ],
1623
- outputs: [
1624
- {
1625
- name: '',
1626
- type: 'uint256',
1627
- },
1628
- {
1629
- name: '',
1630
- type: 'uint256',
1631
- },
1632
- {
1633
- name: '',
1634
- type: 'uint256',
1635
- },
1636
- {
1637
- name: '',
1638
- type: 'uint256',
1639
- },
1640
- ],
1641
- },
1642
- {
1643
- stateMutability: 'nonpayable',
1644
- type: 'function',
1645
- name: 'addLiquidity',
1646
- inputs: [
1647
- {
1648
- name: '_legoId',
1649
- type: 'uint256',
1650
- },
1651
- {
1652
- name: '_pool',
1653
- type: 'address',
1654
- },
1655
- {
1656
- name: '_tokenA',
1657
- type: 'address',
1658
- },
1659
- {
1660
- name: '_tokenB',
1661
- type: 'address',
1662
- },
1663
- {
1664
- name: '_amountA',
1665
- type: 'uint256',
1666
- },
1667
- {
1668
- name: '_amountB',
1669
- type: 'uint256',
1670
- },
1671
- {
1672
- name: '_minAmountA',
1673
- type: 'uint256',
1674
- },
1675
- {
1676
- name: '_minAmountB',
1677
- type: 'uint256',
1678
- },
1679
- ],
1680
- outputs: [
1681
- {
1682
- name: '',
1683
- type: 'uint256',
1684
- },
1685
- {
1686
- name: '',
1687
- type: 'uint256',
1688
- },
1689
- {
1690
- name: '',
1691
- type: 'uint256',
1692
- },
1693
- {
1694
- name: '',
1695
- type: 'uint256',
1696
- },
1697
- ],
1698
- },
1699
- {
1700
- stateMutability: 'nonpayable',
1701
- type: 'function',
1702
- name: 'addLiquidity',
1703
- inputs: [
1704
- {
1705
- name: '_legoId',
1706
- type: 'uint256',
1707
- },
1708
- {
1709
- name: '_pool',
1710
- type: 'address',
1711
- },
1712
- {
1713
- name: '_tokenA',
1714
- type: 'address',
1715
- },
1716
- {
1717
- name: '_tokenB',
1718
- type: 'address',
1719
- },
1720
- {
1721
- name: '_amountA',
1722
- type: 'uint256',
1723
- },
1724
- {
1725
- name: '_amountB',
1726
- type: 'uint256',
1727
- },
1728
- {
1729
- name: '_minAmountA',
1730
- type: 'uint256',
1731
- },
1732
- {
1733
- name: '_minAmountB',
1734
- type: 'uint256',
1735
- },
1736
- {
1737
- name: '_minLpAmount',
1738
- type: 'uint256',
1739
- },
1740
- ],
1741
- outputs: [
1742
- {
1743
- name: '',
1744
- type: 'uint256',
1745
- },
1746
- {
1747
- name: '',
1748
- type: 'uint256',
1749
- },
1750
- {
1751
- name: '',
1752
- type: 'uint256',
1753
- },
1754
- {
1755
- name: '',
1756
- type: 'uint256',
1757
- },
1758
- ],
1759
- },
1760
- {
1761
- stateMutability: 'nonpayable',
1762
- type: 'function',
1763
- name: 'addLiquidity',
1764
- inputs: [
1765
- {
1766
- name: '_legoId',
1767
- type: 'uint256',
1768
- },
1769
- {
1770
- name: '_pool',
1771
- type: 'address',
1772
- },
1773
- {
1774
- name: '_tokenA',
1775
- type: 'address',
1776
- },
1777
- {
1778
- name: '_tokenB',
1779
- type: 'address',
1780
- },
1781
- {
1782
- name: '_amountA',
1783
- type: 'uint256',
1784
- },
1785
- {
1786
- name: '_amountB',
1787
- type: 'uint256',
1788
- },
1789
- {
1790
- name: '_minAmountA',
1791
- type: 'uint256',
1792
- },
1793
- {
1794
- name: '_minAmountB',
1795
- type: 'uint256',
1796
- },
1797
- {
1798
- name: '_minLpAmount',
1799
- type: 'uint256',
1800
- },
1801
- {
1802
- name: '_extraData',
1803
- type: 'bytes32',
1804
- },
1805
- ],
1806
- outputs: [
1807
- {
1808
- name: '',
1809
- type: 'uint256',
1810
- },
1811
- {
1812
- name: '',
1813
- type: 'uint256',
1814
- },
1815
- {
1816
- name: '',
1817
- type: 'uint256',
1818
- },
1819
- {
1820
- name: '',
1821
- type: 'uint256',
1822
- },
1823
- ],
1824
- },
1825
- {
1826
- stateMutability: 'nonpayable',
1827
- type: 'function',
1828
- name: 'removeLiquidity',
1829
- inputs: [
1830
- {
1831
- name: '_legoId',
1832
- type: 'uint256',
1833
- },
1834
- {
1835
- name: '_pool',
1836
- type: 'address',
1837
- },
1838
- {
1839
- name: '_tokenA',
1840
- type: 'address',
1841
- },
1842
- {
1843
- name: '_tokenB',
1844
- type: 'address',
1845
- },
1846
- {
1847
- name: '_lpToken',
1848
- type: 'address',
1849
- },
1850
- ],
1851
- outputs: [
1852
- {
1853
- name: '',
1854
- type: 'uint256',
1855
- },
1856
- {
1857
- name: '',
1858
- type: 'uint256',
1859
- },
1860
- {
1861
- name: '',
1862
- type: 'uint256',
1863
- },
1864
- {
1865
- name: '',
1866
- type: 'uint256',
1867
- },
1868
- ],
1869
- },
1870
- {
1871
- stateMutability: 'nonpayable',
1872
- type: 'function',
1873
- name: 'removeLiquidity',
1874
- inputs: [
1875
- {
1876
- name: '_legoId',
1877
- type: 'uint256',
1878
- },
1879
- {
1880
- name: '_pool',
1881
- type: 'address',
1882
- },
1883
- {
1884
- name: '_tokenA',
1885
- type: 'address',
1886
- },
1887
- {
1888
- name: '_tokenB',
1889
- type: 'address',
1890
- },
1891
- {
1892
- name: '_lpToken',
1893
- type: 'address',
1894
- },
1895
- {
1896
- name: '_lpAmount',
1897
- type: 'uint256',
1898
- },
1899
- ],
1900
- outputs: [
1901
- {
1902
- name: '',
1903
- type: 'uint256',
1904
- },
1905
- {
1906
- name: '',
1907
- type: 'uint256',
1908
- },
1909
- {
1910
- name: '',
1911
- type: 'uint256',
1912
- },
1913
- {
1914
- name: '',
1915
- type: 'uint256',
1916
- },
1917
- ],
1918
- },
1919
- {
1920
- stateMutability: 'nonpayable',
1921
- type: 'function',
1922
- name: 'removeLiquidity',
1923
- inputs: [
1924
- {
1925
- name: '_legoId',
1926
- type: 'uint256',
1927
- },
1928
- {
1929
- name: '_pool',
1930
- type: 'address',
1931
- },
1932
- {
1933
- name: '_tokenA',
1934
- type: 'address',
1935
- },
1936
- {
1937
- name: '_tokenB',
1938
- type: 'address',
1939
- },
1940
- {
1941
- name: '_lpToken',
1942
- type: 'address',
1943
- },
1944
- {
1945
- name: '_lpAmount',
1946
- type: 'uint256',
1947
- },
1948
- {
1949
- name: '_minAmountA',
1950
- type: 'uint256',
1951
- },
1952
- ],
1953
- outputs: [
1954
- {
1955
- name: '',
1956
- type: 'uint256',
1957
- },
1958
- {
1959
- name: '',
1960
- type: 'uint256',
1961
- },
1962
- {
1963
- name: '',
1964
- type: 'uint256',
1965
- },
1966
- {
1967
- name: '',
1968
- type: 'uint256',
1969
- },
1970
- ],
1971
- },
1972
- {
1973
- stateMutability: 'nonpayable',
1974
- type: 'function',
1975
- name: 'removeLiquidity',
1976
- inputs: [
1977
- {
1978
- name: '_legoId',
1979
- type: 'uint256',
1980
- },
1981
- {
1982
- name: '_pool',
1983
- type: 'address',
1984
- },
1985
- {
1986
- name: '_tokenA',
1987
- type: 'address',
1988
- },
1989
- {
1990
- name: '_tokenB',
1991
- type: 'address',
1992
- },
1993
- {
1994
- name: '_lpToken',
1995
- type: 'address',
1996
- },
1997
- {
1998
- name: '_lpAmount',
1999
- type: 'uint256',
2000
- },
2001
- {
2002
- name: '_minAmountA',
2003
- type: 'uint256',
2004
- },
2005
- {
2006
- name: '_minAmountB',
2007
- type: 'uint256',
2008
- },
2009
- ],
2010
- outputs: [
2011
- {
2012
- name: '',
2013
- type: 'uint256',
2014
- },
2015
- {
2016
- name: '',
2017
- type: 'uint256',
2018
- },
2019
- {
2020
- name: '',
2021
- type: 'uint256',
2022
- },
2023
- {
2024
- name: '',
2025
- type: 'uint256',
2026
- },
2027
- ],
2028
- },
2029
- {
2030
- stateMutability: 'nonpayable',
2031
- type: 'function',
2032
- name: 'removeLiquidity',
2033
- inputs: [
2034
- {
2035
- name: '_legoId',
2036
- type: 'uint256',
2037
- },
2038
- {
2039
- name: '_pool',
2040
- type: 'address',
2041
- },
2042
- {
2043
- name: '_tokenA',
2044
- type: 'address',
2045
- },
2046
- {
2047
- name: '_tokenB',
2048
- type: 'address',
2049
- },
2050
- {
2051
- name: '_lpToken',
2052
- type: 'address',
2053
- },
2054
- {
2055
- name: '_lpAmount',
2056
- type: 'uint256',
2057
- },
2058
- {
2059
- name: '_minAmountA',
2060
- type: 'uint256',
2061
- },
2062
- {
2063
- name: '_minAmountB',
2064
- type: 'uint256',
2065
- },
2066
- {
2067
- name: '_extraData',
2068
- type: 'bytes32',
2069
- },
2070
- ],
2071
- outputs: [
2072
- {
2073
- name: '',
2074
- type: 'uint256',
2075
- },
2076
- {
2077
- name: '',
2078
- type: 'uint256',
2079
- },
2080
- {
2081
- name: '',
2082
- type: 'uint256',
2083
- },
2084
- {
2085
- name: '',
2086
- type: 'uint256',
2087
- },
2088
- ],
2089
- },
2090
- {
2091
- stateMutability: 'nonpayable',
2092
- type: 'function',
2093
- name: 'addLiquidityConcentrated',
2094
- inputs: [
2095
- {
2096
- name: '_legoId',
2097
- type: 'uint256',
2098
- },
2099
- {
2100
- name: '_nftAddr',
2101
- type: 'address',
2102
- },
2103
- {
2104
- name: '_nftTokenId',
2105
- type: 'uint256',
2106
- },
2107
- {
2108
- name: '_pool',
2109
- type: 'address',
2110
- },
2111
- {
2112
- name: '_tokenA',
2113
- type: 'address',
2114
- },
2115
- {
2116
- name: '_tokenB',
2117
- type: 'address',
2118
- },
2119
- ],
2120
- outputs: [
2121
- {
2122
- name: '',
2123
- type: 'uint256',
2124
- },
2125
- {
2126
- name: '',
2127
- type: 'uint256',
2128
- },
2129
- {
2130
- name: '',
2131
- type: 'uint256',
2132
- },
2133
- {
2134
- name: '',
2135
- type: 'uint256',
2136
- },
2137
- {
2138
- name: '',
2139
- type: 'uint256',
2140
- },
2141
- ],
2142
- },
2143
- {
2144
- stateMutability: 'nonpayable',
2145
- type: 'function',
2146
- name: 'addLiquidityConcentrated',
2147
- inputs: [
2148
- {
2149
- name: '_legoId',
2150
- type: 'uint256',
2151
- },
2152
- {
2153
- name: '_nftAddr',
2154
- type: 'address',
2155
- },
2156
- {
2157
- name: '_nftTokenId',
2158
- type: 'uint256',
2159
- },
2160
- {
2161
- name: '_pool',
2162
- type: 'address',
2163
- },
2164
- {
2165
- name: '_tokenA',
2166
- type: 'address',
2167
- },
2168
- {
2169
- name: '_tokenB',
2170
- type: 'address',
2171
- },
2172
- {
2173
- name: '_amountA',
2174
- type: 'uint256',
2175
- },
2176
- ],
2177
- outputs: [
2178
- {
2179
- name: '',
2180
- type: 'uint256',
2181
- },
2182
- {
2183
- name: '',
2184
- type: 'uint256',
2185
- },
2186
- {
2187
- name: '',
2188
- type: 'uint256',
2189
- },
2190
- {
2191
- name: '',
2192
- type: 'uint256',
2193
- },
2194
- {
2195
- name: '',
2196
- type: 'uint256',
2197
- },
2198
- ],
2199
- },
2200
- {
2201
- stateMutability: 'nonpayable',
2202
- type: 'function',
2203
- name: 'addLiquidityConcentrated',
2204
- inputs: [
2205
- {
2206
- name: '_legoId',
2207
- type: 'uint256',
2208
- },
2209
- {
2210
- name: '_nftAddr',
2211
- type: 'address',
2212
- },
2213
- {
2214
- name: '_nftTokenId',
2215
- type: 'uint256',
2216
- },
2217
- {
2218
- name: '_pool',
2219
- type: 'address',
2220
- },
2221
- {
2222
- name: '_tokenA',
2223
- type: 'address',
2224
- },
2225
- {
2226
- name: '_tokenB',
2227
- type: 'address',
2228
- },
2229
- {
2230
- name: '_amountA',
2231
- type: 'uint256',
2232
- },
2233
- {
2234
- name: '_amountB',
2235
- type: 'uint256',
2236
- },
2237
- ],
2238
- outputs: [
2239
- {
2240
- name: '',
2241
- type: 'uint256',
2242
- },
2243
- {
2244
- name: '',
2245
- type: 'uint256',
2246
- },
2247
- {
2248
- name: '',
2249
- type: 'uint256',
2250
- },
2251
- {
2252
- name: '',
2253
- type: 'uint256',
2254
- },
2255
- {
2256
- name: '',
2257
- type: 'uint256',
2258
- },
2259
- ],
2260
- },
2261
- {
2262
- stateMutability: 'nonpayable',
2263
- type: 'function',
2264
- name: 'addLiquidityConcentrated',
2265
- inputs: [
2266
- {
2267
- name: '_legoId',
2268
- type: 'uint256',
2269
- },
2270
- {
2271
- name: '_nftAddr',
2272
- type: 'address',
2273
- },
2274
- {
2275
- name: '_nftTokenId',
2276
- type: 'uint256',
2277
- },
2278
- {
2279
- name: '_pool',
2280
- type: 'address',
2281
- },
2282
- {
2283
- name: '_tokenA',
1211
+ name: '_tokenA',
2284
1212
  type: 'address',
2285
1213
  },
2286
1214
  {
@@ -2296,78 +1224,9 @@ export const abi = [
2296
1224
  type: 'uint256',
2297
1225
  },
2298
1226
  {
2299
- name: '_tickLower',
2300
- type: 'int24',
2301
- },
2302
- ],
2303
- outputs: [
2304
- {
2305
- name: '',
2306
- type: 'uint256',
2307
- },
2308
- {
2309
- name: '',
2310
- type: 'uint256',
2311
- },
2312
- {
2313
- name: '',
2314
- type: 'uint256',
2315
- },
2316
- {
2317
- name: '',
2318
- type: 'uint256',
2319
- },
2320
- {
2321
- name: '',
2322
- type: 'uint256',
2323
- },
2324
- ],
2325
- },
2326
- {
2327
- stateMutability: 'nonpayable',
2328
- type: 'function',
2329
- name: 'addLiquidityConcentrated',
2330
- inputs: [
2331
- {
2332
- name: '_legoId',
2333
- type: 'uint256',
2334
- },
2335
- {
2336
- name: '_nftAddr',
2337
- type: 'address',
2338
- },
2339
- {
2340
- name: '_nftTokenId',
2341
- type: 'uint256',
2342
- },
2343
- {
2344
- name: '_pool',
2345
- type: 'address',
2346
- },
2347
- {
2348
- name: '_tokenA',
2349
- type: 'address',
2350
- },
2351
- {
2352
- name: '_tokenB',
2353
- type: 'address',
2354
- },
2355
- {
2356
- name: '_amountA',
2357
- type: 'uint256',
2358
- },
2359
- {
2360
- name: '_amountB',
1227
+ name: '_minAmountA',
2361
1228
  type: 'uint256',
2362
1229
  },
2363
- {
2364
- name: '_tickLower',
2365
- type: 'int24',
2366
- },
2367
- {
2368
- name: '_tickUpper',
2369
- type: 'int24',
2370
- },
2371
1230
  ],
2372
1231
  outputs: [
2373
1232
  {
@@ -2386,29 +1245,17 @@ export const abi = [
2386
1245
  name: '',
2387
1246
  type: 'uint256',
2388
1247
  },
2389
- {
2390
- name: '',
2391
- type: 'uint256',
2392
- },
2393
1248
  ],
2394
1249
  },
2395
1250
  {
2396
1251
  stateMutability: 'nonpayable',
2397
1252
  type: 'function',
2398
- name: 'addLiquidityConcentrated',
1253
+ name: 'addLiquidity',
2399
1254
  inputs: [
2400
1255
  {
2401
1256
  name: '_legoId',
2402
1257
  type: 'uint256',
2403
1258
  },
2404
- {
2405
- name: '_nftAddr',
2406
- type: 'address',
2407
- },
2408
- {
2409
- name: '_nftTokenId',
2410
- type: 'uint256',
2411
- },
2412
1259
  {
2413
1260
  name: '_pool',
2414
1261
  type: 'address',
@@ -2429,24 +1276,16 @@ export const abi = [
2429
1276
  name: '_amountB',
2430
1277
  type: 'uint256',
2431
1278
  },
2432
- {
2433
- name: '_tickLower',
2434
- type: 'int24',
2435
- },
2436
- {
2437
- name: '_tickUpper',
2438
- type: 'int24',
2439
- },
2440
1279
  {
2441
1280
  name: '_minAmountA',
2442
1281
  type: 'uint256',
2443
1282
  },
2444
- ],
2445
- outputs: [
2446
1283
  {
2447
- name: '',
1284
+ name: '_minAmountB',
2448
1285
  type: 'uint256',
2449
1286
  },
1287
+ ],
1288
+ outputs: [
2450
1289
  {
2451
1290
  name: '',
2452
1291
  type: 'uint256',
@@ -2468,20 +1307,12 @@ export const abi = [
2468
1307
  {
2469
1308
  stateMutability: 'nonpayable',
2470
1309
  type: 'function',
2471
- name: 'addLiquidityConcentrated',
1310
+ name: 'addLiquidity',
2472
1311
  inputs: [
2473
1312
  {
2474
1313
  name: '_legoId',
2475
1314
  type: 'uint256',
2476
1315
  },
2477
- {
2478
- name: '_nftAddr',
2479
- type: 'address',
2480
- },
2481
- {
2482
- name: '_nftTokenId',
2483
- type: 'uint256',
2484
- },
2485
1316
  {
2486
1317
  name: '_pool',
2487
1318
  type: 'address',
@@ -2502,14 +1333,6 @@ export const abi = [
2502
1333
  name: '_amountB',
2503
1334
  type: 'uint256',
2504
1335
  },
2505
- {
2506
- name: '_tickLower',
2507
- type: 'int24',
2508
- },
2509
- {
2510
- name: '_tickUpper',
2511
- type: 'int24',
2512
- },
2513
1336
  {
2514
1337
  name: '_minAmountA',
2515
1338
  type: 'uint256',
@@ -2518,12 +1341,12 @@ export const abi = [
2518
1341
  name: '_minAmountB',
2519
1342
  type: 'uint256',
2520
1343
  },
2521
- ],
2522
- outputs: [
2523
1344
  {
2524
- name: '',
1345
+ name: '_minLpAmount',
2525
1346
  type: 'uint256',
2526
1347
  },
1348
+ ],
1349
+ outputs: [
2527
1350
  {
2528
1351
  name: '',
2529
1352
  type: 'uint256',
@@ -2545,20 +1368,12 @@ export const abi = [
2545
1368
  {
2546
1369
  stateMutability: 'nonpayable',
2547
1370
  type: 'function',
2548
- name: 'addLiquidityConcentrated',
1371
+ name: 'addLiquidity',
2549
1372
  inputs: [
2550
1373
  {
2551
1374
  name: '_legoId',
2552
1375
  type: 'uint256',
2553
1376
  },
2554
- {
2555
- name: '_nftAddr',
2556
- type: 'address',
2557
- },
2558
- {
2559
- name: '_nftTokenId',
2560
- type: 'uint256',
2561
- },
2562
1377
  {
2563
1378
  name: '_pool',
2564
1379
  type: 'address',
@@ -2579,14 +1394,6 @@ export const abi = [
2579
1394
  name: '_amountB',
2580
1395
  type: 'uint256',
2581
1396
  },
2582
- {
2583
- name: '_tickLower',
2584
- type: 'int24',
2585
- },
2586
- {
2587
- name: '_tickUpper',
2588
- type: 'int24',
2589
- },
2590
1397
  {
2591
1398
  name: '_minAmountA',
2592
1399
  type: 'uint256',
@@ -2595,6 +1402,10 @@ export const abi = [
2595
1402
  name: '_minAmountB',
2596
1403
  type: 'uint256',
2597
1404
  },
1405
+ {
1406
+ name: '_minLpAmount',
1407
+ type: 'uint256',
1408
+ },
2598
1409
  {
2599
1410
  name: '_extraData',
2600
1411
  type: 'bytes32',
@@ -2617,29 +1428,17 @@ export const abi = [
2617
1428
  name: '',
2618
1429
  type: 'uint256',
2619
1430
  },
2620
- {
2621
- name: '',
2622
- type: 'uint256',
2623
- },
2624
1431
  ],
2625
1432
  },
2626
1433
  {
2627
1434
  stateMutability: 'nonpayable',
2628
1435
  type: 'function',
2629
- name: 'removeLiquidityConcentrated',
1436
+ name: 'removeLiquidity',
2630
1437
  inputs: [
2631
1438
  {
2632
1439
  name: '_legoId',
2633
1440
  type: 'uint256',
2634
1441
  },
2635
- {
2636
- name: '_nftAddr',
2637
- type: 'address',
2638
- },
2639
- {
2640
- name: '_nftTokenId',
2641
- type: 'uint256',
2642
- },
2643
1442
  {
2644
1443
  name: '_pool',
2645
1444
  type: 'address',
@@ -2652,6 +1451,10 @@ export const abi = [
2652
1451
  name: '_tokenB',
2653
1452
  type: 'address',
2654
1453
  },
1454
+ {
1455
+ name: '_lpToken',
1456
+ type: 'address',
1457
+ },
2655
1458
  ],
2656
1459
  outputs: [
2657
1460
  {
@@ -2675,20 +1478,12 @@ export const abi = [
2675
1478
  {
2676
1479
  stateMutability: 'nonpayable',
2677
1480
  type: 'function',
2678
- name: 'removeLiquidityConcentrated',
1481
+ name: 'removeLiquidity',
2679
1482
  inputs: [
2680
1483
  {
2681
1484
  name: '_legoId',
2682
1485
  type: 'uint256',
2683
1486
  },
2684
- {
2685
- name: '_nftAddr',
2686
- type: 'address',
2687
- },
2688
- {
2689
- name: '_nftTokenId',
2690
- type: 'uint256',
2691
- },
2692
1487
  {
2693
1488
  name: '_pool',
2694
1489
  type: 'address',
@@ -2702,7 +1497,11 @@ export const abi = [
2702
1497
  type: 'address',
2703
1498
  },
2704
1499
  {
2705
- name: '_liqToRemove',
1500
+ name: '_lpToken',
1501
+ type: 'address',
1502
+ },
1503
+ {
1504
+ name: '_lpAmount',
2706
1505
  type: 'uint256',
2707
1506
  },
2708
1507
  ],
@@ -2728,20 +1527,12 @@ export const abi = [
2728
1527
  {
2729
1528
  stateMutability: 'nonpayable',
2730
1529
  type: 'function',
2731
- name: 'removeLiquidityConcentrated',
1530
+ name: 'removeLiquidity',
2732
1531
  inputs: [
2733
1532
  {
2734
1533
  name: '_legoId',
2735
1534
  type: 'uint256',
2736
1535
  },
2737
- {
2738
- name: '_nftAddr',
2739
- type: 'address',
2740
- },
2741
- {
2742
- name: '_nftTokenId',
2743
- type: 'uint256',
2744
- },
2745
1536
  {
2746
1537
  name: '_pool',
2747
1538
  type: 'address',
@@ -2755,7 +1546,11 @@ export const abi = [
2755
1546
  type: 'address',
2756
1547
  },
2757
1548
  {
2758
- name: '_liqToRemove',
1549
+ name: '_lpToken',
1550
+ type: 'address',
1551
+ },
1552
+ {
1553
+ name: '_lpAmount',
2759
1554
  type: 'uint256',
2760
1555
  },
2761
1556
  {
@@ -2785,20 +1580,12 @@ export const abi = [
2785
1580
  {
2786
1581
  stateMutability: 'nonpayable',
2787
1582
  type: 'function',
2788
- name: 'removeLiquidityConcentrated',
1583
+ name: 'removeLiquidity',
2789
1584
  inputs: [
2790
1585
  {
2791
1586
  name: '_legoId',
2792
1587
  type: 'uint256',
2793
1588
  },
2794
- {
2795
- name: '_nftAddr',
2796
- type: 'address',
2797
- },
2798
- {
2799
- name: '_nftTokenId',
2800
- type: 'uint256',
2801
- },
2802
1589
  {
2803
1590
  name: '_pool',
2804
1591
  type: 'address',
@@ -2812,7 +1599,11 @@ export const abi = [
2812
1599
  type: 'address',
2813
1600
  },
2814
1601
  {
2815
- name: '_liqToRemove',
1602
+ name: '_lpToken',
1603
+ type: 'address',
1604
+ },
1605
+ {
1606
+ name: '_lpAmount',
2816
1607
  type: 'uint256',
2817
1608
  },
2818
1609
  {
@@ -2846,20 +1637,12 @@ export const abi = [
2846
1637
  {
2847
1638
  stateMutability: 'nonpayable',
2848
1639
  type: 'function',
2849
- name: 'removeLiquidityConcentrated',
1640
+ name: 'removeLiquidity',
2850
1641
  inputs: [
2851
1642
  {
2852
1643
  name: '_legoId',
2853
1644
  type: 'uint256',
2854
1645
  },
2855
- {
2856
- name: '_nftAddr',
2857
- type: 'address',
2858
- },
2859
- {
2860
- name: '_nftTokenId',
2861
- type: 'uint256',
2862
- },
2863
1646
  {
2864
1647
  name: '_pool',
2865
1648
  type: 'address',
@@ -2873,7 +1656,11 @@ export const abi = [
2873
1656
  type: 'address',
2874
1657
  },
2875
1658
  {
2876
- name: '_liqToRemove',
1659
+ name: '_lpToken',
1660
+ type: 'address',
1661
+ },
1662
+ {
1663
+ name: '_lpAmount',
2877
1664
  type: 'uint256',
2878
1665
  },
2879
1666
  {
@@ -2944,6 +1731,18 @@ export const abi = [
2944
1731
  },
2945
1732
  ],
2946
1733
  },
1734
+ {
1735
+ stateMutability: 'view',
1736
+ type: 'function',
1737
+ name: 'calcProfitForStabilizer',
1738
+ inputs: [],
1739
+ outputs: [
1740
+ {
1741
+ name: '',
1742
+ type: 'uint256',
1743
+ },
1744
+ ],
1745
+ },
2947
1746
  {
2948
1747
  stateMutability: 'nonpayable',
2949
1748
  type: 'function',
@@ -3151,26 +1950,6 @@ export const abi = [
3151
1950
  },
3152
1951
  ],
3153
1952
  },
3154
- {
3155
- stateMutability: 'nonpayable',
3156
- type: 'function',
3157
- name: 'recoverNft',
3158
- inputs: [
3159
- {
3160
- name: '_collection',
3161
- type: 'address',
3162
- },
3163
- {
3164
- name: '_nftTokenId',
3165
- type: 'uint256',
3166
- },
3167
- {
3168
- name: '_recipient',
3169
- type: 'address',
3170
- },
3171
- ],
3172
- outputs: [],
3173
- },
3174
1953
  {
3175
1954
  stateMutability: 'view',
3176
1955
  type: 'function',
@@ -3215,7 +1994,7 @@ export const abi = [
3215
1994
  outputs: [],
3216
1995
  },
3217
1996
  ];
3218
- export const deployAddress = '0x14F4f1CD5F4197DB7cB536B282fe6c59eACfE40d';
1997
+ export const deployAddress = '0x70fA85Aa99a39161A2623627377F1c791fd091f6';
3219
1998
  function getRequest(method, args, contractAddressOrOptions) {
3220
1999
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3221
2000
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -3249,9 +2028,9 @@ export const call = {
3249
2028
  canMintGreen: (...args) => getRequest('canMintGreen', args),
3250
2029
  canMintRipe: (...args) => getRequest('canMintRipe', args),
3251
2030
  isPaused: (...args) => getRequest('isPaused', args),
3252
- onERC721Received: (...args) => getRequest('onERC721Received', args),
3253
2031
  getGreenAmountToAddInStabilizer: (...args) => getRequest('getGreenAmountToAddInStabilizer', args),
3254
2032
  getGreenAmountToRemoveInStabilizer: (...args) => getRequest('getGreenAmountToRemoveInStabilizer', args),
2033
+ calcProfitForStabilizer: (...args) => getRequest('calcProfitForStabilizer', args),
3255
2034
  WETH: (...args) => getRequest('WETH', args),
3256
2035
  ETH: (...args) => getRequest('ETH', args),
3257
2036
  };
@@ -3269,24 +2048,20 @@ export const mutation = {
3269
2048
  recoverFunds: getMutation('recoverFunds'),
3270
2049
  recoverFundsMany: getMutation('recoverFundsMany'),
3271
2050
  transferFundsToGov: getMutation('transferFundsToGov'),
2051
+ transferFundsToVault: getMutation('transferFundsToVault'),
2052
+ transferFundsToEndaomentPSM: getMutation('transferFundsToEndaomentPSM'),
3272
2053
  depositForYield: getMutation('depositForYield'),
3273
2054
  withdrawFromYield: getMutation('withdrawFromYield'),
3274
- rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
3275
2055
  swapTokens: getMutation('swapTokens'),
3276
- mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3277
- confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3278
- claimRewards: getMutation('claimRewards'),
2056
+ claimIncentives: getMutation('claimIncentives'),
3279
2057
  convertEthToWeth: getMutation('convertEthToWeth'),
3280
2058
  convertWethToEth: getMutation('convertWethToEth'),
3281
2059
  addLiquidity: getMutation('addLiquidity'),
3282
2060
  removeLiquidity: getMutation('removeLiquidity'),
3283
- addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3284
- removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
3285
2061
  stabilizeGreenRefPool: getMutation('stabilizeGreenRefPool'),
3286
2062
  mintPartnerLiquidity: getMutation('mintPartnerLiquidity'),
3287
2063
  addPartnerLiquidity: getMutation('addPartnerLiquidity'),
3288
2064
  repayPoolDebt: getMutation('repayPoolDebt'),
3289
- recoverNft: getMutation('recoverNft'),
3290
2065
  };
3291
2066
  export function toSdk(publicClient, walletClient) {
3292
2067
  return {
@@ -3298,9 +2073,9 @@ export function toSdk(publicClient, walletClient) {
3298
2073
  canMintGreen: (...args) => singleQuery(publicClient, call.canMintGreen(...args)),
3299
2074
  canMintRipe: (...args) => singleQuery(publicClient, call.canMintRipe(...args)),
3300
2075
  isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3301
- onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args)),
3302
2076
  getGreenAmountToAddInStabilizer: (...args) => singleQuery(publicClient, call.getGreenAmountToAddInStabilizer(...args)),
3303
2077
  getGreenAmountToRemoveInStabilizer: (...args) => singleQuery(publicClient, call.getGreenAmountToRemoveInStabilizer(...args)),
2078
+ calcProfitForStabilizer: (...args) => singleQuery(publicClient, call.calcProfitForStabilizer(...args)),
3304
2079
  WETH: (...args) => singleQuery(publicClient, call.WETH(...args)),
3305
2080
  ETH: (...args) => singleQuery(publicClient, call.ETH(...args)),
3306
2081
  // Mutations
@@ -3308,23 +2083,19 @@ export function toSdk(publicClient, walletClient) {
3308
2083
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
3309
2084
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3310
2085
  transferFundsToGov: (...args) => mutate(walletClient, mutation.transferFundsToGov)(...args),
2086
+ transferFundsToVault: (...args) => mutate(walletClient, mutation.transferFundsToVault)(...args),
2087
+ transferFundsToEndaomentPSM: (...args) => mutate(walletClient, mutation.transferFundsToEndaomentPSM)(...args),
3311
2088
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
3312
2089
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3313
- rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition)(...args),
3314
2090
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
3315
- mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
3316
- confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
3317
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2091
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
3318
2092
  convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth)(...args),
3319
2093
  convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth)(...args),
3320
2094
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
3321
2095
  removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
3322
- addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
3323
- removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
3324
2096
  stabilizeGreenRefPool: (...args) => mutate(walletClient, mutation.stabilizeGreenRefPool)(...args),
3325
2097
  mintPartnerLiquidity: (...args) => mutate(walletClient, mutation.mintPartnerLiquidity)(...args),
3326
2098
  addPartnerLiquidity: (...args) => mutate(walletClient, mutation.addPartnerLiquidity)(...args),
3327
2099
  repayPoolDebt: (...args) => mutate(walletClient, mutation.repayPoolDebt)(...args),
3328
- recoverNft: (...args) => mutate(walletClient, mutation.recoverNft)(...args),
3329
2100
  };
3330
2101
  }