@kasufinance/kasu-sdk 1.0.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 (219) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc.json +90 -0
  3. package/.github/workflows/ci.yml +0 -0
  4. package/.github/workflows/main.yml +43 -0
  5. package/.prettierignore +3 -0
  6. package/.prettierrc +28 -0
  7. package/abis/IClearingCoordinator.abi.json +410 -0
  8. package/abis/IERC20Metadata.abi.json +224 -0
  9. package/abis/IFeeManager.abi.json +66 -0
  10. package/abis/IKSULocking.abi.json +754 -0
  11. package/abis/IKasuAllowList.abi.json +455 -0
  12. package/abis/IKasuController.abi.json +423 -0
  13. package/abis/IKasuNFTs.abi.json +1523 -0
  14. package/abis/IKsuPrice.abi.json +15 -0
  15. package/abis/ILendingPool.abi.json +1431 -0
  16. package/abis/ILendingPoolFactory.abi.json +97 -0
  17. package/abis/ILendingPoolManager.abi.json +1347 -0
  18. package/abis/ILendingPoolTranche.abi.json +1317 -0
  19. package/abis/IPriceFeed.abi.json +1 -0
  20. package/abis/ISystemVariables.abi.json +431 -0
  21. package/abis/IUserLoyaltyRewards.abi.json +288 -0
  22. package/abis/IUserManager.abi.json +321 -0
  23. package/abis/KSULockBonus.abi.json +91 -0
  24. package/abis/KasuPoolExternalTVL.abi.json +812 -0
  25. package/abis/Swapper.abi.json +146 -0
  26. package/copy-abi.ps1 +15 -0
  27. package/dist/bundle.cjs.js +21646 -0
  28. package/dist/bundle.esm.js +21644 -0
  29. package/dist/contracts/IClearingCoordinatorAbi.d.ts +169 -0
  30. package/dist/contracts/IClearingCoordinatorAbi.js +1 -0
  31. package/dist/contracts/IERC20MetadataAbi.d.ts +162 -0
  32. package/dist/contracts/IERC20MetadataAbi.js +1 -0
  33. package/dist/contracts/IFeeManagerAbi.d.ts +96 -0
  34. package/dist/contracts/IFeeManagerAbi.js +1 -0
  35. package/dist/contracts/IKSULockingAbi.d.ts +466 -0
  36. package/dist/contracts/IKSULockingAbi.js +1 -0
  37. package/dist/contracts/IKasuAllowListAbi.d.ts +304 -0
  38. package/dist/contracts/IKasuAllowListAbi.js +1 -0
  39. package/dist/contracts/IKasuControllerAbi.d.ts +309 -0
  40. package/dist/contracts/IKasuControllerAbi.js +1 -0
  41. package/dist/contracts/IKasuNFTsAbi.d.ts +1121 -0
  42. package/dist/contracts/IKasuNFTsAbi.js +1 -0
  43. package/dist/contracts/IKsuPriceAbi.d.ts +42 -0
  44. package/dist/contracts/IKsuPriceAbi.js +1 -0
  45. package/dist/contracts/ILendingPoolAbi.d.ts +968 -0
  46. package/dist/contracts/ILendingPoolAbi.js +1 -0
  47. package/dist/contracts/ILendingPoolFactoryAbi.d.ts +103 -0
  48. package/dist/contracts/ILendingPoolFactoryAbi.js +1 -0
  49. package/dist/contracts/ILendingPoolManagerAbi.d.ts +779 -0
  50. package/dist/contracts/ILendingPoolManagerAbi.js +1 -0
  51. package/dist/contracts/ILendingPoolTrancheAbi.d.ts +752 -0
  52. package/dist/contracts/ILendingPoolTrancheAbi.js +1 -0
  53. package/dist/contracts/ISystemVariablesAbi.d.ts +378 -0
  54. package/dist/contracts/ISystemVariablesAbi.js +1 -0
  55. package/dist/contracts/IUserLoyaltyRewardsAbi.d.ts +248 -0
  56. package/dist/contracts/IUserLoyaltyRewardsAbi.js +1 -0
  57. package/dist/contracts/IUserManagerAbi.d.ts +270 -0
  58. package/dist/contracts/IUserManagerAbi.js +1 -0
  59. package/dist/contracts/KSULockBonusAbi.d.ts +61 -0
  60. package/dist/contracts/KSULockBonusAbi.js +1 -0
  61. package/dist/contracts/KasuPoolExternalTVLAbi.d.ts +411 -0
  62. package/dist/contracts/KasuPoolExternalTVLAbi.js +1 -0
  63. package/dist/contracts/SwapperAbi.d.ts +120 -0
  64. package/dist/contracts/SwapperAbi.js +1 -0
  65. package/dist/contracts/common.d.ts +21 -0
  66. package/dist/contracts/common.js +1 -0
  67. package/dist/contracts/factories/IClearingCoordinatorAbi__factory.d.ts +320 -0
  68. package/dist/contracts/factories/IClearingCoordinatorAbi__factory.js +423 -0
  69. package/dist/contracts/factories/IERC20MetadataAbi__factory.d.ts +178 -0
  70. package/dist/contracts/factories/IERC20MetadataAbi__factory.js +237 -0
  71. package/dist/contracts/factories/IFeeManagerAbi__factory.d.ts +59 -0
  72. package/dist/contracts/factories/IFeeManagerAbi__factory.js +79 -0
  73. package/dist/contracts/factories/IKSULockingAbi__factory.d.ts +588 -0
  74. package/dist/contracts/factories/IKSULockingAbi__factory.js +767 -0
  75. package/dist/contracts/factories/IKasuAllowListAbi__factory.d.ts +354 -0
  76. package/dist/contracts/factories/IKasuAllowListAbi__factory.js +468 -0
  77. package/dist/contracts/factories/IKasuControllerAbi__factory.d.ts +339 -0
  78. package/dist/contracts/factories/IKasuControllerAbi__factory.js +436 -0
  79. package/dist/contracts/factories/IKasuNFTsAbi__factory.d.ts +1629 -0
  80. package/dist/contracts/factories/IKasuNFTsAbi__factory.js +2108 -0
  81. package/dist/contracts/factories/IKsuPriceAbi__factory.d.ts +18 -0
  82. package/dist/contracts/factories/IKsuPriceAbi__factory.js +28 -0
  83. package/dist/contracts/factories/ILendingPoolAbi__factory.d.ts +1109 -0
  84. package/dist/contracts/factories/ILendingPoolAbi__factory.js +1444 -0
  85. package/dist/contracts/factories/ILendingPoolFactoryAbi__factory.d.ts +81 -0
  86. package/dist/contracts/factories/ILendingPoolFactoryAbi__factory.js +110 -0
  87. package/dist/contracts/factories/ILendingPoolManagerAbi__factory.d.ts +1045 -0
  88. package/dist/contracts/factories/ILendingPoolManagerAbi__factory.js +1360 -0
  89. package/dist/contracts/factories/ILendingPoolTrancheAbi__factory.d.ts +1015 -0
  90. package/dist/contracts/factories/ILendingPoolTrancheAbi__factory.js +1330 -0
  91. package/dist/contracts/factories/ISystemVariablesAbi__factory.d.ts +338 -0
  92. package/dist/contracts/factories/ISystemVariablesAbi__factory.js +444 -0
  93. package/dist/contracts/factories/IUserLoyaltyRewardsAbi__factory.d.ts +230 -0
  94. package/dist/contracts/factories/IUserLoyaltyRewardsAbi__factory.js +301 -0
  95. package/dist/contracts/factories/IUserManagerAbi__factory.d.ts +250 -0
  96. package/dist/contracts/factories/IUserManagerAbi__factory.js +334 -0
  97. package/dist/contracts/factories/KSULockBonusAbi__factory.d.ts +76 -0
  98. package/dist/contracts/factories/KSULockBonusAbi__factory.js +104 -0
  99. package/dist/contracts/factories/KasuPoolExternalTVLAbi__factory.d.ts +631 -0
  100. package/dist/contracts/factories/KasuPoolExternalTVLAbi__factory.js +825 -0
  101. package/dist/contracts/factories/SwapperAbi__factory.d.ts +120 -0
  102. package/dist/contracts/factories/SwapperAbi__factory.js +159 -0
  103. package/dist/contracts/factories/index.d.ts +18 -0
  104. package/dist/contracts/factories/index.js +21 -0
  105. package/dist/contracts/index.d.ts +37 -0
  106. package/dist/contracts/index.js +19 -0
  107. package/dist/index.d.ts +17 -0
  108. package/dist/index.js +16 -0
  109. package/dist/sdk-config.d.ts +22 -0
  110. package/dist/sdk-config.js +9 -0
  111. package/dist/services/DataService/data-service.d.ts +37 -0
  112. package/dist/services/DataService/data-service.js +586 -0
  113. package/dist/services/DataService/directus-types.d.ts +187 -0
  114. package/dist/services/DataService/directus-types.js +1 -0
  115. package/dist/services/DataService/queries.d.ts +7 -0
  116. package/dist/services/DataService/queries.js +158 -0
  117. package/dist/services/DataService/subgraph-types.d.ts +95 -0
  118. package/dist/services/DataService/subgraph-types.js +1 -0
  119. package/dist/services/DataService/types.d.ts +169 -0
  120. package/dist/services/DataService/types.js +1 -0
  121. package/dist/services/Locking/locking.d.ts +61 -0
  122. package/dist/services/Locking/locking.js +344 -0
  123. package/dist/services/Locking/queries.d.ts +10 -0
  124. package/dist/services/Locking/queries.js +108 -0
  125. package/dist/services/Locking/types.d.ts +117 -0
  126. package/dist/services/Locking/types.js +1 -0
  127. package/dist/services/Portfolio/portfolio.d.ts +22 -0
  128. package/dist/services/Portfolio/portfolio.js +325 -0
  129. package/dist/services/Portfolio/queries.d.ts +2 -0
  130. package/dist/services/Portfolio/queries.js +164 -0
  131. package/dist/services/Portfolio/types.d.ts +206 -0
  132. package/dist/services/Portfolio/types.js +1 -0
  133. package/dist/services/Swapper/swapper.d.ts +11 -0
  134. package/dist/services/Swapper/swapper.js +97 -0
  135. package/dist/services/Swapper/types.d.ts +51 -0
  136. package/dist/services/Swapper/types.js +1 -0
  137. package/dist/services/UserLending/helper.d.ts +2 -0
  138. package/dist/services/UserLending/helper.js +16 -0
  139. package/dist/services/UserLending/queries.d.ts +8 -0
  140. package/dist/services/UserLending/queries.js +188 -0
  141. package/dist/services/UserLending/subgraph-types.d.ts +147 -0
  142. package/dist/services/UserLending/subgraph-types.js +6 -0
  143. package/dist/services/UserLending/types.d.ts +102 -0
  144. package/dist/services/UserLending/types.js +13 -0
  145. package/dist/services/UserLending/user-lending.d.ts +55 -0
  146. package/dist/services/UserLending/user-lending.js +490 -0
  147. package/dist/services/shared.d.ts +1 -0
  148. package/dist/services/shared.js +11 -0
  149. package/dist/tests/sample.test.d.ts +1 -0
  150. package/dist/tests/sample.test.js +32 -0
  151. package/index.ts +2 -0
  152. package/jest-config.ts +9 -0
  153. package/jest.config.js +8 -0
  154. package/package.json +49 -0
  155. package/rollup.config.js +45 -0
  156. package/src/contracts/IClearingCoordinatorAbi.ts +406 -0
  157. package/src/contracts/IERC20MetadataAbi.ts +364 -0
  158. package/src/contracts/IFeeManagerAbi.ts +182 -0
  159. package/src/contracts/IKSULockingAbi.ts +965 -0
  160. package/src/contracts/IKasuAllowListAbi.ts +605 -0
  161. package/src/contracts/IKasuControllerAbi.ts +703 -0
  162. package/src/contracts/IKasuNFTsAbi.ts +2744 -0
  163. package/src/contracts/IKsuPriceAbi.ts +87 -0
  164. package/src/contracts/ILendingPoolAbi.ts +2081 -0
  165. package/src/contracts/ILendingPoolFactoryAbi.ts +161 -0
  166. package/src/contracts/ILendingPoolManagerAbi.ts +1917 -0
  167. package/src/contracts/ILendingPoolTrancheAbi.ts +1911 -0
  168. package/src/contracts/ISystemVariablesAbi.ts +908 -0
  169. package/src/contracts/IUserLoyaltyRewardsAbi.ts +544 -0
  170. package/src/contracts/IUserManagerAbi.ts +612 -0
  171. package/src/contracts/KSULockBonusAbi.ts +124 -0
  172. package/src/contracts/KasuPoolExternalTVLAbi.ts +1071 -0
  173. package/src/contracts/SwapperAbi.ts +266 -0
  174. package/src/contracts/common.ts +44 -0
  175. package/src/contracts/factories/IClearingCoordinatorAbi__factory.ts +438 -0
  176. package/src/contracts/factories/IERC20MetadataAbi__factory.ts +248 -0
  177. package/src/contracts/factories/IFeeManagerAbi__factory.ts +90 -0
  178. package/src/contracts/factories/IKSULockingAbi__factory.ts +778 -0
  179. package/src/contracts/factories/IKasuAllowListAbi__factory.ts +479 -0
  180. package/src/contracts/factories/IKasuControllerAbi__factory.ts +447 -0
  181. package/src/contracts/factories/IKasuNFTsAbi__factory.ts +2116 -0
  182. package/src/contracts/factories/IKsuPriceAbi__factory.ts +36 -0
  183. package/src/contracts/factories/ILendingPoolAbi__factory.ts +1455 -0
  184. package/src/contracts/factories/ILendingPoolFactoryAbi__factory.ts +125 -0
  185. package/src/contracts/factories/ILendingPoolManagerAbi__factory.ts +1375 -0
  186. package/src/contracts/factories/ILendingPoolTrancheAbi__factory.ts +1345 -0
  187. package/src/contracts/factories/ISystemVariablesAbi__factory.ts +455 -0
  188. package/src/contracts/factories/IUserLoyaltyRewardsAbi__factory.ts +316 -0
  189. package/src/contracts/factories/IUserManagerAbi__factory.ts +345 -0
  190. package/src/contracts/factories/KSULockBonusAbi__factory.ts +115 -0
  191. package/src/contracts/factories/KasuPoolExternalTVLAbi__factory.ts +840 -0
  192. package/src/contracts/factories/SwapperAbi__factory.ts +167 -0
  193. package/src/contracts/factories/index.ts +21 -0
  194. package/src/contracts/index.ts +40 -0
  195. package/src/index.ts +27 -0
  196. package/src/sdk-config.ts +35 -0
  197. package/src/services/DataService/data-service.ts +1017 -0
  198. package/src/services/DataService/directus-types.ts +199 -0
  199. package/src/services/DataService/queries.ts +165 -0
  200. package/src/services/DataService/subgraph-types.ts +104 -0
  201. package/src/services/DataService/types.ts +184 -0
  202. package/src/services/Locking/locking.ts +541 -0
  203. package/src/services/Locking/queries.ts +118 -0
  204. package/src/services/Locking/types.ts +141 -0
  205. package/src/services/Portfolio/portfolio.ts +593 -0
  206. package/src/services/Portfolio/queries.ts +166 -0
  207. package/src/services/Portfolio/types.ts +220 -0
  208. package/src/services/Swapper/swapper.ts +158 -0
  209. package/src/services/Swapper/types.ts +54 -0
  210. package/src/services/UserLending/helper.ts +28 -0
  211. package/src/services/UserLending/queries.ts +196 -0
  212. package/src/services/UserLending/subgraph-types.ts +173 -0
  213. package/src/services/UserLending/types.ts +123 -0
  214. package/src/services/UserLending/user-lending.ts +933 -0
  215. package/src/services/shared.ts +11 -0
  216. package/src/tests/sample.test.ts +44 -0
  217. package/tsconfig.json +27 -0
  218. package/tsconfig.tsbuildinfo +1 -0
  219. package/versioner.sh +6 -0
@@ -0,0 +1,840 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ KasuPoolExternalTVLAbi,
9
+ KasuPoolExternalTVLAbiInterface,
10
+ } from "../KasuPoolExternalTVLAbi";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "contract IKasuController",
17
+ name: "kasuController_",
18
+ type: "address",
19
+ },
20
+ ],
21
+ stateMutability: "nonpayable",
22
+ type: "constructor",
23
+ },
24
+ {
25
+ inputs: [
26
+ {
27
+ internalType: "address",
28
+ name: "account",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "bytes32",
33
+ name: "neededRole",
34
+ type: "bytes32",
35
+ },
36
+ ],
37
+ name: "AccessControlUnauthorizedAccount",
38
+ type: "error",
39
+ },
40
+ {
41
+ inputs: [],
42
+ name: "ConfigurationAddressZero",
43
+ type: "error",
44
+ },
45
+ {
46
+ inputs: [
47
+ {
48
+ internalType: "address",
49
+ name: "sender",
50
+ type: "address",
51
+ },
52
+ {
53
+ internalType: "uint256",
54
+ name: "balance",
55
+ type: "uint256",
56
+ },
57
+ {
58
+ internalType: "uint256",
59
+ name: "needed",
60
+ type: "uint256",
61
+ },
62
+ {
63
+ internalType: "uint256",
64
+ name: "tokenId",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ name: "ERC1155InsufficientBalance",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [
73
+ {
74
+ internalType: "address",
75
+ name: "approver",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "ERC1155InvalidApprover",
80
+ type: "error",
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ internalType: "uint256",
86
+ name: "idsLength",
87
+ type: "uint256",
88
+ },
89
+ {
90
+ internalType: "uint256",
91
+ name: "valuesLength",
92
+ type: "uint256",
93
+ },
94
+ ],
95
+ name: "ERC1155InvalidArrayLength",
96
+ type: "error",
97
+ },
98
+ {
99
+ inputs: [
100
+ {
101
+ internalType: "address",
102
+ name: "operator",
103
+ type: "address",
104
+ },
105
+ ],
106
+ name: "ERC1155InvalidOperator",
107
+ type: "error",
108
+ },
109
+ {
110
+ inputs: [
111
+ {
112
+ internalType: "address",
113
+ name: "receiver",
114
+ type: "address",
115
+ },
116
+ ],
117
+ name: "ERC1155InvalidReceiver",
118
+ type: "error",
119
+ },
120
+ {
121
+ inputs: [
122
+ {
123
+ internalType: "address",
124
+ name: "sender",
125
+ type: "address",
126
+ },
127
+ ],
128
+ name: "ERC1155InvalidSender",
129
+ type: "error",
130
+ },
131
+ {
132
+ inputs: [
133
+ {
134
+ internalType: "address",
135
+ name: "operator",
136
+ type: "address",
137
+ },
138
+ {
139
+ internalType: "address",
140
+ name: "owner",
141
+ type: "address",
142
+ },
143
+ ],
144
+ name: "ERC1155MissingApprovalForAll",
145
+ type: "error",
146
+ },
147
+ {
148
+ inputs: [],
149
+ name: "InvalidInitialization",
150
+ type: "error",
151
+ },
152
+ {
153
+ inputs: [],
154
+ name: "LengthMismatch",
155
+ type: "error",
156
+ },
157
+ {
158
+ inputs: [],
159
+ name: "NotInitializing",
160
+ type: "error",
161
+ },
162
+ {
163
+ anonymous: false,
164
+ inputs: [
165
+ {
166
+ indexed: true,
167
+ internalType: "address",
168
+ name: "account",
169
+ type: "address",
170
+ },
171
+ {
172
+ indexed: true,
173
+ internalType: "address",
174
+ name: "operator",
175
+ type: "address",
176
+ },
177
+ {
178
+ indexed: false,
179
+ internalType: "bool",
180
+ name: "approved",
181
+ type: "bool",
182
+ },
183
+ ],
184
+ name: "ApprovalForAll",
185
+ type: "event",
186
+ },
187
+ {
188
+ anonymous: false,
189
+ inputs: [
190
+ {
191
+ indexed: true,
192
+ internalType: "address",
193
+ name: "pool",
194
+ type: "address",
195
+ },
196
+ {
197
+ indexed: false,
198
+ internalType: "uint256",
199
+ name: "oldAmount",
200
+ type: "uint256",
201
+ },
202
+ {
203
+ indexed: false,
204
+ internalType: "uint256",
205
+ name: "newAmount",
206
+ type: "uint256",
207
+ },
208
+ ],
209
+ name: "ExternalTVLSet",
210
+ type: "event",
211
+ },
212
+ {
213
+ anonymous: false,
214
+ inputs: [
215
+ {
216
+ indexed: false,
217
+ internalType: "uint64",
218
+ name: "version",
219
+ type: "uint64",
220
+ },
221
+ ],
222
+ name: "Initialized",
223
+ type: "event",
224
+ },
225
+ {
226
+ anonymous: false,
227
+ inputs: [
228
+ {
229
+ indexed: true,
230
+ internalType: "address",
231
+ name: "operator",
232
+ type: "address",
233
+ },
234
+ {
235
+ indexed: true,
236
+ internalType: "address",
237
+ name: "from",
238
+ type: "address",
239
+ },
240
+ {
241
+ indexed: true,
242
+ internalType: "address",
243
+ name: "to",
244
+ type: "address",
245
+ },
246
+ {
247
+ indexed: false,
248
+ internalType: "uint256[]",
249
+ name: "ids",
250
+ type: "uint256[]",
251
+ },
252
+ {
253
+ indexed: false,
254
+ internalType: "uint256[]",
255
+ name: "values",
256
+ type: "uint256[]",
257
+ },
258
+ ],
259
+ name: "TransferBatch",
260
+ type: "event",
261
+ },
262
+ {
263
+ anonymous: false,
264
+ inputs: [
265
+ {
266
+ indexed: true,
267
+ internalType: "address",
268
+ name: "operator",
269
+ type: "address",
270
+ },
271
+ {
272
+ indexed: true,
273
+ internalType: "address",
274
+ name: "from",
275
+ type: "address",
276
+ },
277
+ {
278
+ indexed: true,
279
+ internalType: "address",
280
+ name: "to",
281
+ type: "address",
282
+ },
283
+ {
284
+ indexed: false,
285
+ internalType: "uint256",
286
+ name: "id",
287
+ type: "uint256",
288
+ },
289
+ {
290
+ indexed: false,
291
+ internalType: "uint256",
292
+ name: "value",
293
+ type: "uint256",
294
+ },
295
+ ],
296
+ name: "TransferSingle",
297
+ type: "event",
298
+ },
299
+ {
300
+ anonymous: false,
301
+ inputs: [
302
+ {
303
+ indexed: false,
304
+ internalType: "string",
305
+ name: "value",
306
+ type: "string",
307
+ },
308
+ {
309
+ indexed: true,
310
+ internalType: "uint256",
311
+ name: "id",
312
+ type: "uint256",
313
+ },
314
+ ],
315
+ name: "URI",
316
+ type: "event",
317
+ },
318
+ {
319
+ inputs: [
320
+ {
321
+ internalType: "address",
322
+ name: "account",
323
+ type: "address",
324
+ },
325
+ {
326
+ internalType: "uint256",
327
+ name: "id",
328
+ type: "uint256",
329
+ },
330
+ ],
331
+ name: "balanceOf",
332
+ outputs: [
333
+ {
334
+ internalType: "uint256",
335
+ name: "",
336
+ type: "uint256",
337
+ },
338
+ ],
339
+ stateMutability: "view",
340
+ type: "function",
341
+ },
342
+ {
343
+ inputs: [
344
+ {
345
+ internalType: "address[]",
346
+ name: "accounts",
347
+ type: "address[]",
348
+ },
349
+ {
350
+ internalType: "uint256[]",
351
+ name: "ids",
352
+ type: "uint256[]",
353
+ },
354
+ ],
355
+ name: "balanceOfBatch",
356
+ outputs: [
357
+ {
358
+ internalType: "uint256[]",
359
+ name: "",
360
+ type: "uint256[]",
361
+ },
362
+ ],
363
+ stateMutability: "view",
364
+ type: "function",
365
+ },
366
+ {
367
+ inputs: [
368
+ {
369
+ internalType: "address",
370
+ name: "account",
371
+ type: "address",
372
+ },
373
+ {
374
+ internalType: "uint256",
375
+ name: "id",
376
+ type: "uint256",
377
+ },
378
+ {
379
+ internalType: "uint256",
380
+ name: "value",
381
+ type: "uint256",
382
+ },
383
+ ],
384
+ name: "burn",
385
+ outputs: [],
386
+ stateMutability: "nonpayable",
387
+ type: "function",
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ internalType: "address",
393
+ name: "account",
394
+ type: "address",
395
+ },
396
+ {
397
+ internalType: "uint256[]",
398
+ name: "ids",
399
+ type: "uint256[]",
400
+ },
401
+ {
402
+ internalType: "uint256[]",
403
+ name: "values",
404
+ type: "uint256[]",
405
+ },
406
+ ],
407
+ name: "burnBatch",
408
+ outputs: [],
409
+ stateMutability: "nonpayable",
410
+ type: "function",
411
+ },
412
+ {
413
+ inputs: [
414
+ {
415
+ internalType: "address",
416
+ name: "pool",
417
+ type: "address",
418
+ },
419
+ {
420
+ internalType: "uint256",
421
+ name: "amount",
422
+ type: "uint256",
423
+ },
424
+ ],
425
+ name: "burnExternalTVL",
426
+ outputs: [],
427
+ stateMutability: "nonpayable",
428
+ type: "function",
429
+ },
430
+ {
431
+ inputs: [
432
+ {
433
+ internalType: "uint256",
434
+ name: "id",
435
+ type: "uint256",
436
+ },
437
+ ],
438
+ name: "exists",
439
+ outputs: [
440
+ {
441
+ internalType: "bool",
442
+ name: "",
443
+ type: "bool",
444
+ },
445
+ ],
446
+ stateMutability: "view",
447
+ type: "function",
448
+ },
449
+ {
450
+ inputs: [
451
+ {
452
+ internalType: "address",
453
+ name: "pool",
454
+ type: "address",
455
+ },
456
+ ],
457
+ name: "externalTVLOfPool",
458
+ outputs: [
459
+ {
460
+ internalType: "uint256",
461
+ name: "",
462
+ type: "uint256",
463
+ },
464
+ ],
465
+ stateMutability: "view",
466
+ type: "function",
467
+ },
468
+ {
469
+ inputs: [
470
+ {
471
+ internalType: "string",
472
+ name: "baseURI_",
473
+ type: "string",
474
+ },
475
+ ],
476
+ name: "initialize",
477
+ outputs: [],
478
+ stateMutability: "nonpayable",
479
+ type: "function",
480
+ },
481
+ {
482
+ inputs: [
483
+ {
484
+ internalType: "address",
485
+ name: "account",
486
+ type: "address",
487
+ },
488
+ {
489
+ internalType: "address",
490
+ name: "operator",
491
+ type: "address",
492
+ },
493
+ ],
494
+ name: "isApprovedForAll",
495
+ outputs: [
496
+ {
497
+ internalType: "bool",
498
+ name: "",
499
+ type: "bool",
500
+ },
501
+ ],
502
+ stateMutability: "view",
503
+ type: "function",
504
+ },
505
+ {
506
+ inputs: [
507
+ {
508
+ internalType: "address",
509
+ name: "pool",
510
+ type: "address",
511
+ },
512
+ {
513
+ internalType: "uint256",
514
+ name: "amount",
515
+ type: "uint256",
516
+ },
517
+ ],
518
+ name: "mintExternalTVL",
519
+ outputs: [],
520
+ stateMutability: "nonpayable",
521
+ type: "function",
522
+ },
523
+ {
524
+ inputs: [
525
+ {
526
+ internalType: "address",
527
+ name: "",
528
+ type: "address",
529
+ },
530
+ {
531
+ internalType: "address",
532
+ name: "",
533
+ type: "address",
534
+ },
535
+ {
536
+ internalType: "uint256[]",
537
+ name: "",
538
+ type: "uint256[]",
539
+ },
540
+ {
541
+ internalType: "uint256[]",
542
+ name: "",
543
+ type: "uint256[]",
544
+ },
545
+ {
546
+ internalType: "bytes",
547
+ name: "",
548
+ type: "bytes",
549
+ },
550
+ ],
551
+ name: "onERC1155BatchReceived",
552
+ outputs: [
553
+ {
554
+ internalType: "bytes4",
555
+ name: "",
556
+ type: "bytes4",
557
+ },
558
+ ],
559
+ stateMutability: "nonpayable",
560
+ type: "function",
561
+ },
562
+ {
563
+ inputs: [
564
+ {
565
+ internalType: "address",
566
+ name: "",
567
+ type: "address",
568
+ },
569
+ {
570
+ internalType: "address",
571
+ name: "",
572
+ type: "address",
573
+ },
574
+ {
575
+ internalType: "uint256",
576
+ name: "",
577
+ type: "uint256",
578
+ },
579
+ {
580
+ internalType: "uint256",
581
+ name: "",
582
+ type: "uint256",
583
+ },
584
+ {
585
+ internalType: "bytes",
586
+ name: "",
587
+ type: "bytes",
588
+ },
589
+ ],
590
+ name: "onERC1155Received",
591
+ outputs: [
592
+ {
593
+ internalType: "bytes4",
594
+ name: "",
595
+ type: "bytes4",
596
+ },
597
+ ],
598
+ stateMutability: "nonpayable",
599
+ type: "function",
600
+ },
601
+ {
602
+ inputs: [
603
+ {
604
+ internalType: "address",
605
+ name: "pool",
606
+ type: "address",
607
+ },
608
+ ],
609
+ name: "poolId",
610
+ outputs: [
611
+ {
612
+ internalType: "uint256",
613
+ name: "",
614
+ type: "uint256",
615
+ },
616
+ ],
617
+ stateMutability: "pure",
618
+ type: "function",
619
+ },
620
+ {
621
+ inputs: [
622
+ {
623
+ internalType: "address",
624
+ name: "from",
625
+ type: "address",
626
+ },
627
+ {
628
+ internalType: "address",
629
+ name: "to",
630
+ type: "address",
631
+ },
632
+ {
633
+ internalType: "uint256[]",
634
+ name: "ids",
635
+ type: "uint256[]",
636
+ },
637
+ {
638
+ internalType: "uint256[]",
639
+ name: "values",
640
+ type: "uint256[]",
641
+ },
642
+ {
643
+ internalType: "bytes",
644
+ name: "data",
645
+ type: "bytes",
646
+ },
647
+ ],
648
+ name: "safeBatchTransferFrom",
649
+ outputs: [],
650
+ stateMutability: "nonpayable",
651
+ type: "function",
652
+ },
653
+ {
654
+ inputs: [
655
+ {
656
+ internalType: "address",
657
+ name: "from",
658
+ type: "address",
659
+ },
660
+ {
661
+ internalType: "address",
662
+ name: "to",
663
+ type: "address",
664
+ },
665
+ {
666
+ internalType: "uint256",
667
+ name: "id",
668
+ type: "uint256",
669
+ },
670
+ {
671
+ internalType: "uint256",
672
+ name: "value",
673
+ type: "uint256",
674
+ },
675
+ {
676
+ internalType: "bytes",
677
+ name: "data",
678
+ type: "bytes",
679
+ },
680
+ ],
681
+ name: "safeTransferFrom",
682
+ outputs: [],
683
+ stateMutability: "nonpayable",
684
+ type: "function",
685
+ },
686
+ {
687
+ inputs: [
688
+ {
689
+ internalType: "address",
690
+ name: "operator",
691
+ type: "address",
692
+ },
693
+ {
694
+ internalType: "bool",
695
+ name: "approved",
696
+ type: "bool",
697
+ },
698
+ ],
699
+ name: "setApprovalForAll",
700
+ outputs: [],
701
+ stateMutability: "nonpayable",
702
+ type: "function",
703
+ },
704
+ {
705
+ inputs: [
706
+ {
707
+ internalType: "address",
708
+ name: "pool",
709
+ type: "address",
710
+ },
711
+ {
712
+ internalType: "uint256",
713
+ name: "targetAmount",
714
+ type: "uint256",
715
+ },
716
+ ],
717
+ name: "setExternalTVL",
718
+ outputs: [],
719
+ stateMutability: "nonpayable",
720
+ type: "function",
721
+ },
722
+ {
723
+ inputs: [
724
+ {
725
+ internalType: "address[]",
726
+ name: "pools",
727
+ type: "address[]",
728
+ },
729
+ {
730
+ internalType: "uint256[]",
731
+ name: "targetAmounts",
732
+ type: "uint256[]",
733
+ },
734
+ ],
735
+ name: "setExternalTVLBatch",
736
+ outputs: [],
737
+ stateMutability: "nonpayable",
738
+ type: "function",
739
+ },
740
+ {
741
+ inputs: [
742
+ {
743
+ internalType: "string",
744
+ name: "newURI",
745
+ type: "string",
746
+ },
747
+ ],
748
+ name: "setURI",
749
+ outputs: [],
750
+ stateMutability: "nonpayable",
751
+ type: "function",
752
+ },
753
+ {
754
+ inputs: [
755
+ {
756
+ internalType: "bytes4",
757
+ name: "interfaceId",
758
+ type: "bytes4",
759
+ },
760
+ ],
761
+ name: "supportsInterface",
762
+ outputs: [
763
+ {
764
+ internalType: "bool",
765
+ name: "",
766
+ type: "bool",
767
+ },
768
+ ],
769
+ stateMutability: "view",
770
+ type: "function",
771
+ },
772
+ {
773
+ inputs: [],
774
+ name: "totalSupply",
775
+ outputs: [
776
+ {
777
+ internalType: "uint256",
778
+ name: "",
779
+ type: "uint256",
780
+ },
781
+ ],
782
+ stateMutability: "view",
783
+ type: "function",
784
+ },
785
+ {
786
+ inputs: [
787
+ {
788
+ internalType: "uint256",
789
+ name: "id",
790
+ type: "uint256",
791
+ },
792
+ ],
793
+ name: "totalSupply",
794
+ outputs: [
795
+ {
796
+ internalType: "uint256",
797
+ name: "",
798
+ type: "uint256",
799
+ },
800
+ ],
801
+ stateMutability: "view",
802
+ type: "function",
803
+ },
804
+ {
805
+ inputs: [
806
+ {
807
+ internalType: "uint256",
808
+ name: "",
809
+ type: "uint256",
810
+ },
811
+ ],
812
+ name: "uri",
813
+ outputs: [
814
+ {
815
+ internalType: "string",
816
+ name: "",
817
+ type: "string",
818
+ },
819
+ ],
820
+ stateMutability: "view",
821
+ type: "function",
822
+ },
823
+ ] as const;
824
+
825
+ export class KasuPoolExternalTVLAbi__factory {
826
+ static readonly abi = _abi;
827
+ static createInterface(): KasuPoolExternalTVLAbiInterface {
828
+ return new utils.Interface(_abi) as KasuPoolExternalTVLAbiInterface;
829
+ }
830
+ static connect(
831
+ address: string,
832
+ signerOrProvider: Signer | Provider
833
+ ): KasuPoolExternalTVLAbi {
834
+ return new Contract(
835
+ address,
836
+ _abi,
837
+ signerOrProvider
838
+ ) as KasuPoolExternalTVLAbi;
839
+ }
840
+ }