@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,438 @@
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
+ IClearingCoordinatorAbi,
9
+ IClearingCoordinatorAbiInterface,
10
+ } from "../IClearingCoordinatorAbi";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "contract ISystemVariables",
17
+ name: "systemVariables_",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "contract IUserManager",
22
+ name: "userManager_",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "contract ILendingPoolManager",
27
+ name: "lendingPoolManager_",
28
+ type: "address",
29
+ },
30
+ ],
31
+ stateMutability: "nonpayable",
32
+ type: "constructor",
33
+ },
34
+ {
35
+ inputs: [
36
+ {
37
+ internalType: "uint256",
38
+ name: "epoch",
39
+ type: "uint256",
40
+ },
41
+ ],
42
+ name: "ClearingAlreadyExecuted",
43
+ type: "error",
44
+ },
45
+ {
46
+ inputs: [],
47
+ name: "ConfigurationAddressZero",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [
52
+ {
53
+ internalType: "address",
54
+ name: "lendingPool",
55
+ type: "address",
56
+ },
57
+ {
58
+ internalType: "uint256",
59
+ name: "targetEpoch",
60
+ type: "uint256",
61
+ },
62
+ {
63
+ internalType: "uint256",
64
+ name: "nextEpoch",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ name: "InvalidClearingTargetEpochForLendingPool",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: "InvalidInitialization",
74
+ type: "error",
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "lendingPool",
81
+ type: "address",
82
+ },
83
+ ],
84
+ name: "InvalidLendingPool",
85
+ type: "error",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "address",
91
+ name: "lendingPool",
92
+ type: "address",
93
+ },
94
+ {
95
+ internalType: "address",
96
+ name: "tranche",
97
+ type: "address",
98
+ },
99
+ ],
100
+ name: "InvalidTranche",
101
+ type: "error",
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: "LendingPoolIsNotStopped",
106
+ type: "error",
107
+ },
108
+ {
109
+ inputs: [],
110
+ name: "LendingPoolIsStopped",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [],
115
+ name: "NotInitializing",
116
+ type: "error",
117
+ },
118
+ {
119
+ inputs: [],
120
+ name: "OnlyClearingCoordinator",
121
+ type: "error",
122
+ },
123
+ {
124
+ inputs: [],
125
+ name: "OnlyLendingPoolManager",
126
+ type: "error",
127
+ },
128
+ {
129
+ inputs: [
130
+ {
131
+ internalType: "address",
132
+ name: "sender",
133
+ type: "address",
134
+ },
135
+ {
136
+ internalType: "address",
137
+ name: "ownLendingPool",
138
+ type: "address",
139
+ },
140
+ ],
141
+ name: "OnlyOwnLendingPool",
142
+ type: "error",
143
+ },
144
+ {
145
+ inputs: [
146
+ {
147
+ internalType: "address",
148
+ name: "sender",
149
+ type: "address",
150
+ },
151
+ {
152
+ internalType: "address",
153
+ name: "ownPendingPool",
154
+ type: "address",
155
+ },
156
+ ],
157
+ name: "OnlyOwnPendingPool",
158
+ type: "error",
159
+ },
160
+ {
161
+ inputs: [
162
+ {
163
+ internalType: "uint256",
164
+ name: "targetEpoch",
165
+ type: "uint256",
166
+ },
167
+ ],
168
+ name: "TargetEpochClearingNotStarted",
169
+ type: "error",
170
+ },
171
+ {
172
+ inputs: [
173
+ {
174
+ internalType: "uint256",
175
+ name: "targetEpoch",
176
+ type: "uint256",
177
+ },
178
+ ],
179
+ name: "UserLoyaltyLevelsNotYetProcessed",
180
+ type: "error",
181
+ },
182
+ {
183
+ anonymous: false,
184
+ inputs: [
185
+ {
186
+ indexed: true,
187
+ internalType: "address",
188
+ name: "lendingPool",
189
+ type: "address",
190
+ },
191
+ {
192
+ indexed: true,
193
+ internalType: "uint256",
194
+ name: "epoch",
195
+ type: "uint256",
196
+ },
197
+ {
198
+ components: [
199
+ {
200
+ internalType: "uint256",
201
+ name: "drawAmount",
202
+ type: "uint256",
203
+ },
204
+ {
205
+ internalType: "uint256[]",
206
+ name: "trancheDesiredRatios",
207
+ type: "uint256[]",
208
+ },
209
+ {
210
+ internalType: "uint256",
211
+ name: "maxExcessPercentage",
212
+ type: "uint256",
213
+ },
214
+ {
215
+ internalType: "uint256",
216
+ name: "minExcessPercentage",
217
+ type: "uint256",
218
+ },
219
+ ],
220
+ indexed: false,
221
+ internalType: "struct ClearingConfiguration",
222
+ name: "clearingConfig",
223
+ type: "tuple",
224
+ },
225
+ ],
226
+ name: "ClearingConfigSet",
227
+ type: "event",
228
+ },
229
+ {
230
+ anonymous: false,
231
+ inputs: [
232
+ {
233
+ indexed: true,
234
+ internalType: "address",
235
+ name: "lendingPool",
236
+ type: "address",
237
+ },
238
+ {
239
+ indexed: true,
240
+ internalType: "uint256",
241
+ name: "epoch",
242
+ type: "uint256",
243
+ },
244
+ {
245
+ indexed: false,
246
+ internalType: "enum ClearingStatus",
247
+ name: "clearingStatus",
248
+ type: "uint8",
249
+ },
250
+ ],
251
+ name: "ClearingExecuted",
252
+ type: "event",
253
+ },
254
+ {
255
+ anonymous: false,
256
+ inputs: [
257
+ {
258
+ indexed: false,
259
+ internalType: "uint64",
260
+ name: "version",
261
+ type: "uint64",
262
+ },
263
+ ],
264
+ name: "Initialized",
265
+ type: "event",
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: "address",
271
+ name: "lendingPool",
272
+ type: "address",
273
+ },
274
+ {
275
+ internalType: "uint256",
276
+ name: "targetEpoch",
277
+ type: "uint256",
278
+ },
279
+ {
280
+ internalType: "uint256",
281
+ name: "priorityCalculationBatchSize",
282
+ type: "uint256",
283
+ },
284
+ {
285
+ internalType: "uint256",
286
+ name: "acceptRequestsBatchSize",
287
+ type: "uint256",
288
+ },
289
+ {
290
+ components: [
291
+ {
292
+ internalType: "uint256",
293
+ name: "drawAmount",
294
+ type: "uint256",
295
+ },
296
+ {
297
+ internalType: "uint256[]",
298
+ name: "trancheDesiredRatios",
299
+ type: "uint256[]",
300
+ },
301
+ {
302
+ internalType: "uint256",
303
+ name: "maxExcessPercentage",
304
+ type: "uint256",
305
+ },
306
+ {
307
+ internalType: "uint256",
308
+ name: "minExcessPercentage",
309
+ type: "uint256",
310
+ },
311
+ ],
312
+ internalType: "struct ClearingConfiguration",
313
+ name: "clearingConfig",
314
+ type: "tuple",
315
+ },
316
+ {
317
+ internalType: "bool",
318
+ name: "isConfigOverridden",
319
+ type: "bool",
320
+ },
321
+ ],
322
+ name: "doClearing",
323
+ outputs: [],
324
+ stateMutability: "nonpayable",
325
+ type: "function",
326
+ },
327
+ {
328
+ inputs: [
329
+ {
330
+ internalType: "address",
331
+ name: "lendingPool",
332
+ type: "address",
333
+ },
334
+ ],
335
+ name: "initializeLendingPool",
336
+ outputs: [],
337
+ stateMutability: "nonpayable",
338
+ type: "function",
339
+ },
340
+ {
341
+ inputs: [
342
+ {
343
+ internalType: "address",
344
+ name: "lendingPool",
345
+ type: "address",
346
+ },
347
+ ],
348
+ name: "isLendingPoolClearingPending",
349
+ outputs: [
350
+ {
351
+ internalType: "bool",
352
+ name: "isPending",
353
+ type: "bool",
354
+ },
355
+ ],
356
+ stateMutability: "view",
357
+ type: "function",
358
+ },
359
+ {
360
+ inputs: [
361
+ {
362
+ internalType: "address",
363
+ name: "lendingPool",
364
+ type: "address",
365
+ },
366
+ {
367
+ internalType: "uint256",
368
+ name: "epoch",
369
+ type: "uint256",
370
+ },
371
+ ],
372
+ name: "lendingPoolClearingStatus",
373
+ outputs: [
374
+ {
375
+ internalType: "enum ClearingStatus",
376
+ name: "status",
377
+ type: "uint8",
378
+ },
379
+ ],
380
+ stateMutability: "view",
381
+ type: "function",
382
+ },
383
+ {
384
+ inputs: [
385
+ {
386
+ internalType: "address",
387
+ name: "lendingPool",
388
+ type: "address",
389
+ },
390
+ ],
391
+ name: "lendingPoolMaxDrawAmount",
392
+ outputs: [
393
+ {
394
+ internalType: "uint256",
395
+ name: "",
396
+ type: "uint256",
397
+ },
398
+ ],
399
+ stateMutability: "view",
400
+ type: "function",
401
+ },
402
+ {
403
+ inputs: [
404
+ {
405
+ internalType: "address",
406
+ name: "lendingPool",
407
+ type: "address",
408
+ },
409
+ ],
410
+ name: "nextLendingPoolClearingEpoch",
411
+ outputs: [
412
+ {
413
+ internalType: "uint256",
414
+ name: "nextClearingEpoch",
415
+ type: "uint256",
416
+ },
417
+ ],
418
+ stateMutability: "view",
419
+ type: "function",
420
+ },
421
+ ] as const;
422
+
423
+ export class IClearingCoordinatorAbi__factory {
424
+ static readonly abi = _abi;
425
+ static createInterface(): IClearingCoordinatorAbiInterface {
426
+ return new utils.Interface(_abi) as IClearingCoordinatorAbiInterface;
427
+ }
428
+ static connect(
429
+ address: string,
430
+ signerOrProvider: Signer | Provider
431
+ ): IClearingCoordinatorAbi {
432
+ return new Contract(
433
+ address,
434
+ _abi,
435
+ signerOrProvider
436
+ ) as IClearingCoordinatorAbi;
437
+ }
438
+ }
@@ -0,0 +1,248 @@
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
+ IERC20MetadataAbi,
9
+ IERC20MetadataAbiInterface,
10
+ } from "../IERC20MetadataAbi";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "owner",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "spender",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "value",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "Approval",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: true,
43
+ internalType: "address",
44
+ name: "from",
45
+ type: "address",
46
+ },
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "to",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256",
56
+ name: "value",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ name: "Transfer",
61
+ type: "event",
62
+ },
63
+ {
64
+ inputs: [
65
+ {
66
+ internalType: "address",
67
+ name: "owner",
68
+ type: "address",
69
+ },
70
+ {
71
+ internalType: "address",
72
+ name: "spender",
73
+ type: "address",
74
+ },
75
+ ],
76
+ name: "allowance",
77
+ outputs: [
78
+ {
79
+ internalType: "uint256",
80
+ name: "",
81
+ type: "uint256",
82
+ },
83
+ ],
84
+ stateMutability: "view",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "address",
91
+ name: "spender",
92
+ type: "address",
93
+ },
94
+ {
95
+ internalType: "uint256",
96
+ name: "value",
97
+ type: "uint256",
98
+ },
99
+ ],
100
+ name: "approve",
101
+ outputs: [
102
+ {
103
+ internalType: "bool",
104
+ name: "",
105
+ type: "bool",
106
+ },
107
+ ],
108
+ stateMutability: "nonpayable",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [
113
+ {
114
+ internalType: "address",
115
+ name: "account",
116
+ type: "address",
117
+ },
118
+ ],
119
+ name: "balanceOf",
120
+ outputs: [
121
+ {
122
+ internalType: "uint256",
123
+ name: "",
124
+ type: "uint256",
125
+ },
126
+ ],
127
+ stateMutability: "view",
128
+ type: "function",
129
+ },
130
+ {
131
+ inputs: [],
132
+ name: "decimals",
133
+ outputs: [
134
+ {
135
+ internalType: "uint8",
136
+ name: "",
137
+ type: "uint8",
138
+ },
139
+ ],
140
+ stateMutability: "view",
141
+ type: "function",
142
+ },
143
+ {
144
+ inputs: [],
145
+ name: "name",
146
+ outputs: [
147
+ {
148
+ internalType: "string",
149
+ name: "",
150
+ type: "string",
151
+ },
152
+ ],
153
+ stateMutability: "view",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [],
158
+ name: "symbol",
159
+ outputs: [
160
+ {
161
+ internalType: "string",
162
+ name: "",
163
+ type: "string",
164
+ },
165
+ ],
166
+ stateMutability: "view",
167
+ type: "function",
168
+ },
169
+ {
170
+ inputs: [],
171
+ name: "totalSupply",
172
+ outputs: [
173
+ {
174
+ internalType: "uint256",
175
+ name: "",
176
+ type: "uint256",
177
+ },
178
+ ],
179
+ stateMutability: "view",
180
+ type: "function",
181
+ },
182
+ {
183
+ inputs: [
184
+ {
185
+ internalType: "address",
186
+ name: "to",
187
+ type: "address",
188
+ },
189
+ {
190
+ internalType: "uint256",
191
+ name: "value",
192
+ type: "uint256",
193
+ },
194
+ ],
195
+ name: "transfer",
196
+ outputs: [
197
+ {
198
+ internalType: "bool",
199
+ name: "",
200
+ type: "bool",
201
+ },
202
+ ],
203
+ stateMutability: "nonpayable",
204
+ type: "function",
205
+ },
206
+ {
207
+ inputs: [
208
+ {
209
+ internalType: "address",
210
+ name: "from",
211
+ type: "address",
212
+ },
213
+ {
214
+ internalType: "address",
215
+ name: "to",
216
+ type: "address",
217
+ },
218
+ {
219
+ internalType: "uint256",
220
+ name: "value",
221
+ type: "uint256",
222
+ },
223
+ ],
224
+ name: "transferFrom",
225
+ outputs: [
226
+ {
227
+ internalType: "bool",
228
+ name: "",
229
+ type: "bool",
230
+ },
231
+ ],
232
+ stateMutability: "nonpayable",
233
+ type: "function",
234
+ },
235
+ ] as const;
236
+
237
+ export class IERC20MetadataAbi__factory {
238
+ static readonly abi = _abi;
239
+ static createInterface(): IERC20MetadataAbiInterface {
240
+ return new utils.Interface(_abi) as IERC20MetadataAbiInterface;
241
+ }
242
+ static connect(
243
+ address: string,
244
+ signerOrProvider: Signer | Provider
245
+ ): IERC20MetadataAbi {
246
+ return new Contract(address, _abi, signerOrProvider) as IERC20MetadataAbi;
247
+ }
248
+ }