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