@huma-finance/shared 0.0.22 → 0.0.25

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 (506) hide show
  1. package/LICENSE +660 -660
  2. package/README.md +46 -46
  3. package/dist/abis/BaseCreditPool.json +1179 -1179
  4. package/dist/abis/BaseFeeManager.json +480 -480
  5. package/dist/abis/BasePoolConfig.json +1364 -1364
  6. package/dist/abis/ERC20TransferableReceivable.json +648 -648
  7. package/dist/abis/HDT.json +512 -512
  8. package/dist/abis/IConstantFlowAgreementV1.json +890 -890
  9. package/dist/abis/ISuperfluid.json +1122 -1122
  10. package/dist/abis/InvoiceNFT.json +625 -625
  11. package/dist/abis/Multisend.json +26 -26
  12. package/dist/abis/RealWorldReceivable.json +823 -823
  13. package/dist/abis/ReceivableFactoringPool.json +1529 -1529
  14. package/dist/abis/StreamFactoringPool.json +1523 -1523
  15. package/dist/abis/StreamFeeManager.json +522 -522
  16. package/dist/abis/SuperfluidPoolProcessor.json +692 -692
  17. package/dist/abis/TestERC20.json +358 -358
  18. package/dist/abis/TradableStream.json +850 -850
  19. package/dist/abis/Transfer.json +24 -24
  20. package/dist/abis/TransferNFT.json +27 -27
  21. package/dist/abis/erc20.json +117 -117
  22. package/dist/abis/erc2612.json +132 -132
  23. package/dist/abis/erc721.json +673 -673
  24. package/dist/abis/index.d.ts +3 -3
  25. package/dist/abis/index.js +3 -3
  26. package/dist/abis/types/BaseCreditPool.d.ts +803 -803
  27. package/dist/abis/types/BaseCreditPool.js +1 -1
  28. package/dist/abis/types/BaseFeeManager.d.ts +408 -408
  29. package/dist/abis/types/BaseFeeManager.js +1 -1
  30. package/dist/abis/types/BasePoolConfig.d.ts +1097 -1097
  31. package/dist/abis/types/BasePoolConfig.js +1 -1
  32. package/dist/abis/types/ERC20TransferableReceivable.d.ts +407 -407
  33. package/dist/abis/types/ERC20TransferableReceivable.js +1 -1
  34. package/dist/abis/types/Erc20.d.ts +168 -168
  35. package/dist/abis/types/Erc20.js +1 -1
  36. package/dist/abis/types/Erc2612.d.ts +192 -192
  37. package/dist/abis/types/Erc2612.js +1 -1
  38. package/dist/abis/types/Erc721.d.ts +474 -474
  39. package/dist/abis/types/Erc721.js +1 -1
  40. package/dist/abis/types/HDT.d.ts +369 -369
  41. package/dist/abis/types/HDT.js +1 -1
  42. package/dist/abis/types/IConstantFlowAgreementV1.d.ts +573 -573
  43. package/dist/abis/types/IConstantFlowAgreementV1.js +1 -1
  44. package/dist/abis/types/ISuperfluid.d.ts +728 -728
  45. package/dist/abis/types/ISuperfluid.js +1 -1
  46. package/dist/abis/types/InvoiceNFT.d.ts +425 -425
  47. package/dist/abis/types/InvoiceNFT.js +1 -1
  48. package/dist/abis/types/Multisend.d.ts +50 -50
  49. package/dist/abis/types/Multisend.js +1 -1
  50. package/dist/abis/types/RealWorldReceivable.d.ts +564 -564
  51. package/dist/abis/types/RealWorldReceivable.js +1 -1
  52. package/dist/abis/types/ReceivableFactoringPool.d.ts +999 -999
  53. package/dist/abis/types/ReceivableFactoringPool.js +1 -1
  54. package/dist/abis/types/StreamFactoringPool.d.ts +985 -985
  55. package/dist/abis/types/StreamFactoringPool.js +1 -1
  56. package/dist/abis/types/StreamFeeManager.d.ts +440 -440
  57. package/dist/abis/types/StreamFeeManager.js +1 -1
  58. package/dist/abis/types/SuperfluidPoolProcessor.d.ts +398 -398
  59. package/dist/abis/types/SuperfluidPoolProcessor.js +1 -1
  60. package/dist/abis/types/TestERC20.d.ts +270 -270
  61. package/dist/abis/types/TestERC20.js +1 -1
  62. package/dist/abis/types/TradableStream.d.ts +607 -607
  63. package/dist/abis/types/TradableStream.js +1 -1
  64. package/dist/abis/types/Transfer.d.ts +45 -45
  65. package/dist/abis/types/Transfer.js +1 -1
  66. package/dist/abis/types/TransferNFT.d.ts +45 -45
  67. package/dist/abis/types/TransferNFT.js +1 -1
  68. package/dist/abis/types/common.d.ts +22 -22
  69. package/dist/abis/types/common.js +1 -1
  70. package/dist/abis/types/factories/BaseCreditPool__factory.d.ts +931 -931
  71. package/dist/abis/types/factories/BaseCreditPool__factory.js +1192 -1192
  72. package/dist/abis/types/factories/BaseFeeManager__factory.d.ts +379 -379
  73. package/dist/abis/types/factories/BaseFeeManager__factory.js +493 -493
  74. package/dist/abis/types/factories/BasePoolConfig__factory.d.ts +1074 -1074
  75. package/dist/abis/types/factories/BasePoolConfig__factory.js +1377 -1377
  76. package/dist/abis/types/factories/ERC20TransferableReceivable__factory.d.ts +508 -508
  77. package/dist/abis/types/factories/ERC20TransferableReceivable__factory.js +661 -661
  78. package/dist/abis/types/factories/Erc20__factory.d.ts +175 -175
  79. package/dist/abis/types/factories/Erc20__factory.js +235 -235
  80. package/dist/abis/types/factories/Erc2612__factory.d.ts +209 -209
  81. package/dist/abis/types/factories/Erc2612__factory.js +278 -278
  82. package/dist/abis/types/factories/Erc721__factory.d.ts +539 -539
  83. package/dist/abis/types/factories/Erc721__factory.js +686 -686
  84. package/dist/abis/types/factories/HDT__factory.d.ts +399 -399
  85. package/dist/abis/types/factories/HDT__factory.js +525 -525
  86. package/dist/abis/types/factories/IConstantFlowAgreementV1__factory.d.ts +695 -695
  87. package/dist/abis/types/factories/IConstantFlowAgreementV1__factory.js +903 -903
  88. package/dist/abis/types/factories/ISuperfluid__factory.d.ts +866 -866
  89. package/dist/abis/types/factories/ISuperfluid__factory.js +1135 -1135
  90. package/dist/abis/types/factories/InvoiceNFT__factory.d.ts +489 -489
  91. package/dist/abis/types/factories/InvoiceNFT__factory.js +638 -638
  92. package/dist/abis/types/factories/Multisend__factory.d.ts +26 -26
  93. package/dist/abis/types/factories/Multisend__factory.js +39 -39
  94. package/dist/abis/types/factories/RealWorldReceivable__factory.d.ts +645 -645
  95. package/dist/abis/types/factories/RealWorldReceivable__factory.js +836 -836
  96. package/dist/abis/types/factories/ReceivableFactoringPool__factory.d.ts +1204 -1204
  97. package/dist/abis/types/factories/ReceivableFactoringPool__factory.js +1542 -1542
  98. package/dist/abis/types/factories/StreamFactoringPool__factory.d.ts +1200 -1200
  99. package/dist/abis/types/factories/StreamFactoringPool__factory.js +1536 -1536
  100. package/dist/abis/types/factories/StreamFeeManager__factory.d.ts +412 -412
  101. package/dist/abis/types/factories/StreamFeeManager__factory.js +535 -535
  102. package/dist/abis/types/factories/SuperfluidPoolProcessor__factory.d.ts +546 -546
  103. package/dist/abis/types/factories/SuperfluidPoolProcessor__factory.js +705 -705
  104. package/dist/abis/types/factories/TestERC20__factory.d.ts +280 -280
  105. package/dist/abis/types/factories/TestERC20__factory.js +371 -371
  106. package/dist/abis/types/factories/TradableStream__factory.d.ts +663 -663
  107. package/dist/abis/types/factories/TradableStream__factory.js +863 -863
  108. package/dist/abis/types/factories/TransferNFT__factory.d.ts +28 -28
  109. package/dist/abis/types/factories/TransferNFT__factory.js +40 -40
  110. package/dist/abis/types/factories/Transfer__factory.d.ts +25 -25
  111. package/dist/abis/types/factories/Transfer__factory.js +37 -37
  112. package/dist/abis/types/factories/index.d.ts +21 -21
  113. package/dist/abis/types/factories/index.js +24 -24
  114. package/dist/abis/types/index.d.ts +43 -43
  115. package/dist/abis/types/index.js +22 -22
  116. package/dist/cjs/abis/BaseCreditPool.json +1179 -1179
  117. package/dist/cjs/abis/BaseFeeManager.json +480 -480
  118. package/dist/cjs/abis/BasePoolConfig.json +1364 -1364
  119. package/dist/cjs/abis/ERC20TransferableReceivable.json +648 -648
  120. package/dist/cjs/abis/HDT.json +512 -512
  121. package/dist/cjs/abis/IConstantFlowAgreementV1.json +890 -890
  122. package/dist/cjs/abis/ISuperfluid.json +1122 -1122
  123. package/dist/cjs/abis/InvoiceNFT.json +625 -625
  124. package/dist/cjs/abis/Multisend.json +26 -26
  125. package/dist/cjs/abis/RealWorldReceivable.json +823 -823
  126. package/dist/cjs/abis/ReceivableFactoringPool.json +1529 -1529
  127. package/dist/cjs/abis/StreamFactoringPool.json +1523 -1523
  128. package/dist/cjs/abis/StreamFeeManager.json +522 -522
  129. package/dist/cjs/abis/SuperfluidPoolProcessor.json +692 -692
  130. package/dist/cjs/abis/TestERC20.json +358 -358
  131. package/dist/cjs/abis/TradableStream.json +850 -850
  132. package/dist/cjs/abis/Transfer.json +24 -24
  133. package/dist/cjs/abis/TransferNFT.json +27 -27
  134. package/dist/cjs/abis/erc20.json +117 -117
  135. package/dist/cjs/abis/erc2612.json +132 -132
  136. package/dist/cjs/abis/erc721.json +673 -673
  137. package/dist/cjs/abis/index.d.ts +3 -3
  138. package/dist/cjs/abis/index.js +12 -12
  139. package/dist/cjs/abis/types/BaseCreditPool.d.ts +803 -803
  140. package/dist/cjs/abis/types/BaseCreditPool.js +2 -2
  141. package/dist/cjs/abis/types/BaseFeeManager.d.ts +408 -408
  142. package/dist/cjs/abis/types/BaseFeeManager.js +2 -2
  143. package/dist/cjs/abis/types/BasePoolConfig.d.ts +1097 -1097
  144. package/dist/cjs/abis/types/BasePoolConfig.js +2 -2
  145. package/dist/cjs/abis/types/ERC20TransferableReceivable.d.ts +407 -407
  146. package/dist/cjs/abis/types/ERC20TransferableReceivable.js +2 -2
  147. package/dist/cjs/abis/types/Erc20.d.ts +168 -168
  148. package/dist/cjs/abis/types/Erc20.js +2 -2
  149. package/dist/cjs/abis/types/Erc2612.d.ts +192 -192
  150. package/dist/cjs/abis/types/Erc2612.js +2 -2
  151. package/dist/cjs/abis/types/Erc721.d.ts +474 -474
  152. package/dist/cjs/abis/types/Erc721.js +2 -2
  153. package/dist/cjs/abis/types/HDT.d.ts +369 -369
  154. package/dist/cjs/abis/types/HDT.js +2 -2
  155. package/dist/cjs/abis/types/IConstantFlowAgreementV1.d.ts +573 -573
  156. package/dist/cjs/abis/types/IConstantFlowAgreementV1.js +2 -2
  157. package/dist/cjs/abis/types/ISuperfluid.d.ts +728 -728
  158. package/dist/cjs/abis/types/ISuperfluid.js +2 -2
  159. package/dist/cjs/abis/types/InvoiceNFT.d.ts +425 -425
  160. package/dist/cjs/abis/types/InvoiceNFT.js +2 -2
  161. package/dist/cjs/abis/types/Multisend.d.ts +50 -50
  162. package/dist/cjs/abis/types/Multisend.js +2 -2
  163. package/dist/cjs/abis/types/RealWorldReceivable.d.ts +564 -564
  164. package/dist/cjs/abis/types/RealWorldReceivable.js +2 -2
  165. package/dist/cjs/abis/types/ReceivableFactoringPool.d.ts +999 -999
  166. package/dist/cjs/abis/types/ReceivableFactoringPool.js +2 -2
  167. package/dist/cjs/abis/types/StreamFactoringPool.d.ts +985 -985
  168. package/dist/cjs/abis/types/StreamFactoringPool.js +2 -2
  169. package/dist/cjs/abis/types/StreamFeeManager.d.ts +440 -440
  170. package/dist/cjs/abis/types/StreamFeeManager.js +2 -2
  171. package/dist/cjs/abis/types/SuperfluidPoolProcessor.d.ts +398 -398
  172. package/dist/cjs/abis/types/SuperfluidPoolProcessor.js +2 -2
  173. package/dist/cjs/abis/types/TestERC20.d.ts +270 -270
  174. package/dist/cjs/abis/types/TestERC20.js +2 -2
  175. package/dist/cjs/abis/types/TradableStream.d.ts +607 -607
  176. package/dist/cjs/abis/types/TradableStream.js +2 -2
  177. package/dist/cjs/abis/types/Transfer.d.ts +45 -45
  178. package/dist/cjs/abis/types/Transfer.js +2 -2
  179. package/dist/cjs/abis/types/TransferNFT.d.ts +45 -45
  180. package/dist/cjs/abis/types/TransferNFT.js +2 -2
  181. package/dist/cjs/abis/types/common.d.ts +22 -22
  182. package/dist/cjs/abis/types/common.js +2 -2
  183. package/dist/cjs/abis/types/factories/BaseCreditPool__factory.d.ts +931 -931
  184. package/dist/cjs/abis/types/factories/BaseCreditPool__factory.js +1196 -1196
  185. package/dist/cjs/abis/types/factories/BaseFeeManager__factory.d.ts +379 -379
  186. package/dist/cjs/abis/types/factories/BaseFeeManager__factory.js +497 -497
  187. package/dist/cjs/abis/types/factories/BasePoolConfig__factory.d.ts +1074 -1074
  188. package/dist/cjs/abis/types/factories/BasePoolConfig__factory.js +1381 -1381
  189. package/dist/cjs/abis/types/factories/ERC20TransferableReceivable__factory.d.ts +508 -508
  190. package/dist/cjs/abis/types/factories/ERC20TransferableReceivable__factory.js +665 -665
  191. package/dist/cjs/abis/types/factories/Erc20__factory.d.ts +175 -175
  192. package/dist/cjs/abis/types/factories/Erc20__factory.js +239 -239
  193. package/dist/cjs/abis/types/factories/Erc2612__factory.d.ts +209 -209
  194. package/dist/cjs/abis/types/factories/Erc2612__factory.js +282 -282
  195. package/dist/cjs/abis/types/factories/Erc721__factory.d.ts +539 -539
  196. package/dist/cjs/abis/types/factories/Erc721__factory.js +690 -690
  197. package/dist/cjs/abis/types/factories/HDT__factory.d.ts +399 -399
  198. package/dist/cjs/abis/types/factories/HDT__factory.js +529 -529
  199. package/dist/cjs/abis/types/factories/IConstantFlowAgreementV1__factory.d.ts +695 -695
  200. package/dist/cjs/abis/types/factories/IConstantFlowAgreementV1__factory.js +907 -907
  201. package/dist/cjs/abis/types/factories/ISuperfluid__factory.d.ts +866 -866
  202. package/dist/cjs/abis/types/factories/ISuperfluid__factory.js +1139 -1139
  203. package/dist/cjs/abis/types/factories/InvoiceNFT__factory.d.ts +489 -489
  204. package/dist/cjs/abis/types/factories/InvoiceNFT__factory.js +642 -642
  205. package/dist/cjs/abis/types/factories/Multisend__factory.d.ts +26 -26
  206. package/dist/cjs/abis/types/factories/Multisend__factory.js +43 -43
  207. package/dist/cjs/abis/types/factories/RealWorldReceivable__factory.d.ts +645 -645
  208. package/dist/cjs/abis/types/factories/RealWorldReceivable__factory.js +840 -840
  209. package/dist/cjs/abis/types/factories/ReceivableFactoringPool__factory.d.ts +1204 -1204
  210. package/dist/cjs/abis/types/factories/ReceivableFactoringPool__factory.js +1546 -1546
  211. package/dist/cjs/abis/types/factories/StreamFactoringPool__factory.d.ts +1200 -1200
  212. package/dist/cjs/abis/types/factories/StreamFactoringPool__factory.js +1540 -1540
  213. package/dist/cjs/abis/types/factories/StreamFeeManager__factory.d.ts +412 -412
  214. package/dist/cjs/abis/types/factories/StreamFeeManager__factory.js +539 -539
  215. package/dist/cjs/abis/types/factories/SuperfluidPoolProcessor__factory.d.ts +546 -546
  216. package/dist/cjs/abis/types/factories/SuperfluidPoolProcessor__factory.js +709 -709
  217. package/dist/cjs/abis/types/factories/TestERC20__factory.d.ts +280 -280
  218. package/dist/cjs/abis/types/factories/TestERC20__factory.js +375 -375
  219. package/dist/cjs/abis/types/factories/TradableStream__factory.d.ts +663 -663
  220. package/dist/cjs/abis/types/factories/TradableStream__factory.js +867 -867
  221. package/dist/cjs/abis/types/factories/TransferNFT__factory.d.ts +28 -28
  222. package/dist/cjs/abis/types/factories/TransferNFT__factory.js +44 -44
  223. package/dist/cjs/abis/types/factories/Transfer__factory.d.ts +25 -25
  224. package/dist/cjs/abis/types/factories/Transfer__factory.js +41 -41
  225. package/dist/cjs/abis/types/factories/index.d.ts +21 -21
  226. package/dist/cjs/abis/types/factories/index.js +48 -48
  227. package/dist/cjs/abis/types/index.d.ts +43 -43
  228. package/dist/cjs/abis/types/index.js +47 -47
  229. package/dist/cjs/hooks/index.d.ts +18 -18
  230. package/dist/cjs/hooks/index.js +21 -21
  231. package/dist/cjs/hooks/useActiveRoute.d.ts +8 -8
  232. package/dist/cjs/hooks/useActiveRoute.js +11 -11
  233. package/dist/cjs/hooks/useAsyncError.d.ts +14 -14
  234. package/dist/cjs/hooks/useAsyncError.js +26 -26
  235. package/dist/cjs/hooks/useCLPoolContract.d.ts +27 -27
  236. package/dist/cjs/hooks/useCLPoolContract.js +53 -53
  237. package/dist/cjs/hooks/useContract.d.ts +7 -7
  238. package/dist/cjs/hooks/useContract.js +49 -49
  239. package/dist/cjs/hooks/useContractFunction.d.ts +18 -18
  240. package/dist/cjs/hooks/useContractFunction.js +57 -57
  241. package/dist/cjs/hooks/useERC2612Permit/ethPermit/index.d.ts +35 -35
  242. package/dist/cjs/hooks/useERC2612Permit/ethPermit/index.js +145 -145
  243. package/dist/cjs/hooks/useERC2612Permit/ethPermit/lib.d.ts +1 -1
  244. package/dist/cjs/hooks/useERC2612Permit/ethPermit/lib.js +26 -26
  245. package/dist/cjs/hooks/useERC2612Permit/ethPermit/rpc.d.ts +10 -10
  246. package/dist/cjs/hooks/useERC2612Permit/ethPermit/rpc.js +106 -106
  247. package/dist/cjs/hooks/useERC2612Permit/index.d.ts +6 -6
  248. package/dist/cjs/hooks/useERC2612Permit/index.js +35 -35
  249. package/dist/cjs/hooks/useFactoring.d.ts +19 -19
  250. package/dist/cjs/hooks/useFactoring.js +94 -94
  251. package/dist/cjs/hooks/useForceRefresh.d.ts +1 -1
  252. package/dist/cjs/hooks/useForceRefresh.js +12 -12
  253. package/dist/cjs/hooks/useGetSizes.d.ts +12 -12
  254. package/dist/cjs/hooks/useGetSizes.js +23 -23
  255. package/dist/cjs/hooks/useInvoiceNFTContract.d.ts +11 -11
  256. package/dist/cjs/hooks/useInvoiceNFTContract.js +72 -72
  257. package/dist/cjs/hooks/useMQ.d.ts +6 -6
  258. package/dist/cjs/hooks/useMQ.js +18 -18
  259. package/dist/cjs/hooks/useMount.d.ts +2 -2
  260. package/dist/cjs/hooks/useMount.js +13 -13
  261. package/dist/cjs/hooks/useParamsSearch.d.ts +2 -2
  262. package/dist/cjs/hooks/useParamsSearch.js +11 -11
  263. package/dist/cjs/hooks/usePool.d.ts +4 -4
  264. package/dist/cjs/hooks/usePool.js +45 -45
  265. package/dist/cjs/hooks/usePoolContract.d.ts +73 -73
  266. package/dist/cjs/hooks/usePoolContract.js +309 -309
  267. package/dist/cjs/hooks/useRFPoolContract.d.ts +22 -22
  268. package/dist/cjs/hooks/useRFPoolContract.js +41 -41
  269. package/dist/cjs/hooks/useRefresh.d.ts +1 -1
  270. package/dist/cjs/hooks/useRefresh.js +51 -51
  271. package/dist/cjs/hooks/web3/index.d.ts +15 -15
  272. package/dist/cjs/hooks/web3/index.js +147 -147
  273. package/dist/cjs/hooks/web3/useConnectors.d.ts +17 -17
  274. package/dist/cjs/hooks/web3/useConnectors.js +30 -30
  275. package/dist/cjs/hooks/web3/useJsonRpcUrlsMap.d.ts +13 -13
  276. package/dist/cjs/hooks/web3/useJsonRpcUrlsMap.js +62 -62
  277. package/dist/cjs/index.d.ts +5 -5
  278. package/dist/cjs/index.js +8 -8
  279. package/dist/cjs/services/EAService.d.ts +113 -153
  280. package/dist/cjs/services/EAService.js +67 -80
  281. package/dist/cjs/services/EAService.js.map +1 -1
  282. package/dist/cjs/services/RNService.d.ts +14 -14
  283. package/dist/cjs/services/RNService.js +13 -13
  284. package/dist/cjs/services/index.d.ts +2 -2
  285. package/dist/cjs/services/index.js +5 -5
  286. package/dist/cjs/utils/JsonRpcConnector.d.ts +11 -11
  287. package/dist/cjs/utils/JsonRpcConnector.js +42 -42
  288. package/dist/cjs/utils/WalletConnect.d.ts +10 -10
  289. package/dist/cjs/utils/WalletConnect.js +55 -55
  290. package/dist/cjs/utils/chain.d.ts +34 -34
  291. package/dist/cjs/utils/chain.js +108 -108
  292. package/dist/cjs/utils/common.d.ts +4 -4
  293. package/dist/cjs/utils/common.js +17 -17
  294. package/dist/cjs/utils/config.d.ts +6 -6
  295. package/dist/cjs/utils/config.js +30 -30
  296. package/dist/cjs/utils/const.d.ts +2 -2
  297. package/dist/cjs/utils/const.js +5 -5
  298. package/dist/cjs/utils/contractError.json +73 -73
  299. package/dist/cjs/utils/contractconfig.json +19 -19
  300. package/dist/cjs/utils/credit.d.ts +21 -21
  301. package/dist/cjs/utils/credit.js +39 -39
  302. package/dist/cjs/utils/errors.d.ts +26 -26
  303. package/dist/cjs/utils/errors.js +46 -46
  304. package/dist/cjs/utils/index.d.ts +18 -18
  305. package/dist/cjs/utils/index.js +21 -21
  306. package/dist/cjs/utils/jsonRpcEndpoints.d.ts +12 -12
  307. package/dist/cjs/utils/jsonRpcEndpoints.js +28 -28
  308. package/dist/cjs/utils/number.d.ts +5 -5
  309. package/dist/cjs/utils/number.js +55 -55
  310. package/dist/cjs/utils/pool.d.ts +81 -82
  311. package/dist/cjs/utils/pool.js +286 -344
  312. package/dist/cjs/utils/pool.js.map +1 -1
  313. package/dist/cjs/utils/request.d.ts +2 -2
  314. package/dist/cjs/utils/request.js +27 -30
  315. package/dist/cjs/utils/request.js.map +1 -1
  316. package/dist/cjs/utils/scientificToDecimal.d.ts +1 -1
  317. package/dist/cjs/utils/scientificToDecimal.js +61 -61
  318. package/dist/cjs/utils/string.d.ts +1 -1
  319. package/dist/cjs/utils/string.js +5 -5
  320. package/dist/cjs/utils/style.d.ts +1 -1
  321. package/dist/cjs/utils/style.js +16 -16
  322. package/dist/cjs/utils/time.d.ts +26 -26
  323. package/dist/cjs/utils/time.js +58 -58
  324. package/dist/cjs/utils/transaction.d.ts +32 -32
  325. package/dist/cjs/utils/transaction.js +96 -96
  326. package/dist/cjs/utils/web3.d.ts +4 -4
  327. package/dist/cjs/utils/web3.js +39 -39
  328. package/dist/hooks/index.d.ts +18 -18
  329. package/dist/hooks/index.js +18 -18
  330. package/dist/hooks/useActiveRoute.d.ts +8 -8
  331. package/dist/hooks/useActiveRoute.js +7 -7
  332. package/dist/hooks/useAsyncError.d.ts +14 -14
  333. package/dist/hooks/useAsyncError.js +22 -22
  334. package/dist/hooks/useCLPoolContract.d.ts +27 -27
  335. package/dist/hooks/useCLPoolContract.js +38 -38
  336. package/dist/hooks/useContract.d.ts +7 -7
  337. package/dist/hooks/useContract.js +40 -40
  338. package/dist/hooks/useContractFunction.d.ts +18 -18
  339. package/dist/hooks/useContractFunction.js +54 -54
  340. package/dist/hooks/useERC2612Permit/ethPermit/index.d.ts +35 -35
  341. package/dist/hooks/useERC2612Permit/ethPermit/index.js +139 -139
  342. package/dist/hooks/useERC2612Permit/ethPermit/lib.d.ts +1 -1
  343. package/dist/hooks/useERC2612Permit/ethPermit/lib.js +21 -21
  344. package/dist/hooks/useERC2612Permit/ethPermit/rpc.d.ts +10 -10
  345. package/dist/hooks/useERC2612Permit/ethPermit/rpc.js +98 -98
  346. package/dist/hooks/useERC2612Permit/index.d.ts +6 -6
  347. package/dist/hooks/useERC2612Permit/index.js +31 -31
  348. package/dist/hooks/useFactoring.d.ts +19 -19
  349. package/dist/hooks/useFactoring.js +90 -90
  350. package/dist/hooks/useForceRefresh.d.ts +1 -1
  351. package/dist/hooks/useForceRefresh.js +8 -8
  352. package/dist/hooks/useGetSizes.d.ts +12 -12
  353. package/dist/hooks/useGetSizes.js +19 -19
  354. package/dist/hooks/useInvoiceNFTContract.d.ts +11 -11
  355. package/dist/hooks/useInvoiceNFTContract.js +64 -64
  356. package/dist/hooks/useMQ.d.ts +6 -6
  357. package/dist/hooks/useMQ.js +14 -14
  358. package/dist/hooks/useMount.d.ts +2 -2
  359. package/dist/hooks/useMount.js +8 -8
  360. package/dist/hooks/useParamsSearch.d.ts +2 -2
  361. package/dist/hooks/useParamsSearch.js +6 -6
  362. package/dist/hooks/usePool.d.ts +4 -4
  363. package/dist/hooks/usePool.js +39 -39
  364. package/dist/hooks/usePoolContract.d.ts +73 -73
  365. package/dist/hooks/usePoolContract.js +286 -286
  366. package/dist/hooks/useRFPoolContract.d.ts +22 -22
  367. package/dist/hooks/useRFPoolContract.js +29 -29
  368. package/dist/hooks/useRefresh.d.ts +1 -1
  369. package/dist/hooks/useRefresh.js +47 -47
  370. package/dist/hooks/web3/index.d.ts +15 -15
  371. package/dist/hooks/web3/index.js +142 -142
  372. package/dist/hooks/web3/useConnectors.d.ts +17 -17
  373. package/dist/hooks/web3/useConnectors.js +24 -24
  374. package/dist/hooks/web3/useJsonRpcUrlsMap.d.ts +13 -13
  375. package/dist/hooks/web3/useJsonRpcUrlsMap.js +53 -53
  376. package/dist/index.d.ts +5 -5
  377. package/dist/index.js +5 -5
  378. package/dist/services/EAService.d.ts +113 -153
  379. package/dist/services/EAService.js +64 -77
  380. package/dist/services/EAService.js.map +1 -1
  381. package/dist/services/RNService.d.ts +14 -14
  382. package/dist/services/RNService.js +10 -10
  383. package/dist/services/index.d.ts +2 -2
  384. package/dist/services/index.js +2 -2
  385. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  386. package/dist/utils/JsonRpcConnector.d.ts +11 -11
  387. package/dist/utils/JsonRpcConnector.js +38 -38
  388. package/dist/utils/WalletConnect.d.ts +10 -10
  389. package/dist/utils/WalletConnect.js +49 -49
  390. package/dist/utils/chain.d.ts +34 -34
  391. package/dist/utils/chain.js +102 -102
  392. package/dist/utils/common.d.ts +4 -4
  393. package/dist/utils/common.js +10 -10
  394. package/dist/utils/config.d.ts +6 -6
  395. package/dist/utils/config.js +27 -27
  396. package/dist/utils/const.d.ts +2 -2
  397. package/dist/utils/const.js +2 -2
  398. package/dist/utils/contractError.json +73 -73
  399. package/dist/utils/contractconfig.json +19 -19
  400. package/dist/utils/credit.d.ts +21 -21
  401. package/dist/utils/credit.js +35 -35
  402. package/dist/utils/errors.d.ts +26 -26
  403. package/dist/utils/errors.js +39 -39
  404. package/dist/utils/index.d.ts +18 -18
  405. package/dist/utils/index.js +18 -18
  406. package/dist/utils/jsonRpcEndpoints.d.ts +12 -12
  407. package/dist/utils/jsonRpcEndpoints.js +25 -25
  408. package/dist/utils/number.d.ts +5 -5
  409. package/dist/utils/number.js +48 -48
  410. package/dist/utils/pool.d.ts +81 -82
  411. package/dist/utils/pool.js +280 -338
  412. package/dist/utils/pool.js.map +1 -1
  413. package/dist/utils/request.d.ts +2 -2
  414. package/dist/utils/request.js +22 -24
  415. package/dist/utils/request.js.map +1 -1
  416. package/dist/utils/scientificToDecimal.d.ts +1 -1
  417. package/dist/utils/scientificToDecimal.js +57 -57
  418. package/dist/utils/string.d.ts +1 -1
  419. package/dist/utils/string.js +1 -1
  420. package/dist/utils/style.d.ts +1 -1
  421. package/dist/utils/style.js +12 -12
  422. package/dist/utils/time.d.ts +26 -26
  423. package/dist/utils/time.js +50 -50
  424. package/dist/utils/transaction.d.ts +32 -32
  425. package/dist/utils/transaction.js +87 -87
  426. package/dist/utils/web3.d.ts +4 -4
  427. package/dist/utils/web3.js +34 -34
  428. package/package.json +2 -2
  429. package/dist/abis/BaseCreditPoolReceivable.json +0 -764
  430. package/dist/abis/ERC20TransferrableReceivable.json +0 -648
  431. package/dist/abis/types/BaseCreditPoolReceivable.d.ts +0 -518
  432. package/dist/abis/types/BaseCreditPoolReceivable.js +0 -2
  433. package/dist/abis/types/BaseCreditPoolReceivable.js.map +0 -1
  434. package/dist/abis/types/ERC20TransferrableReceivable.d.ts +0 -407
  435. package/dist/abis/types/ERC20TransferrableReceivable.js +0 -2
  436. package/dist/abis/types/ERC20TransferrableReceivable.js.map +0 -1
  437. package/dist/abis/types/factories/BaseCreditPoolReceivable__factory.d.ts +0 -597
  438. package/dist/abis/types/factories/BaseCreditPoolReceivable__factory.js +0 -778
  439. package/dist/abis/types/factories/BaseCreditPoolReceivable__factory.js.map +0 -1
  440. package/dist/abis/types/factories/ERC20TransferrableReceivable__factory.d.ts +0 -508
  441. package/dist/abis/types/factories/ERC20TransferrableReceivable__factory.js +0 -663
  442. package/dist/abis/types/factories/ERC20TransferrableReceivable__factory.js.map +0 -1
  443. package/dist/cjs/abis/BaseCreditPoolReceivable.json +0 -764
  444. package/dist/cjs/abis/types/BaseCreditPoolReceivable.d.ts +0 -518
  445. package/dist/cjs/abis/types/BaseCreditPoolReceivable.js +0 -3
  446. package/dist/cjs/abis/types/BaseCreditPoolReceivable.js.map +0 -1
  447. package/dist/cjs/abis/types/factories/BaseCreditPoolReceivable__factory.d.ts +0 -597
  448. package/dist/cjs/abis/types/factories/BaseCreditPoolReceivable__factory.js +0 -782
  449. package/dist/cjs/abis/types/factories/BaseCreditPoolReceivable__factory.js.map +0 -1
  450. package/dist/components/icons/approve-lender.svg +0 -30
  451. package/dist/components/icons/auto-payback.svg +0 -40
  452. package/dist/components/icons/check-circle.svg +0 -3
  453. package/dist/components/icons/check-green.svg +0 -3
  454. package/dist/components/icons/check.svg +0 -10
  455. package/dist/components/icons/donut.svg +0 -904
  456. package/dist/components/icons/ellipse.svg +0 -3
  457. package/dist/components/icons/ethereum.svg +0 -1
  458. package/dist/components/icons/huma-full.svg +0 -22
  459. package/dist/components/icons/huma.svg +0 -15
  460. package/dist/components/icons/index.d.ts +0 -19
  461. package/dist/components/icons/index.js +0 -70
  462. package/dist/components/icons/index.js.map +0 -1
  463. package/dist/components/icons/loader.svg +0 -229
  464. package/dist/components/icons/metamask.svg +0 -31
  465. package/dist/components/icons/polygon.svg +0 -16
  466. package/dist/components/icons/receipt.svg +0 -3
  467. package/dist/components/icons/separator.svg +0 -3
  468. package/dist/components/icons/sorry.svg +0 -31
  469. package/dist/components/icons/usdc.svg +0 -5
  470. package/dist/components/icons/wallet-connect.svg +0 -12
  471. package/dist/theme/breakpoints.d.ts +0 -5
  472. package/dist/theme/breakpoints.js +0 -4
  473. package/dist/theme/breakpoints.js.map +0 -1
  474. package/dist/theme/components.d.ts +0 -6
  475. package/dist/theme/components.js +0 -62
  476. package/dist/theme/components.js.map +0 -1
  477. package/dist/theme/coreThemeConstants.d.ts +0 -18
  478. package/dist/theme/coreThemeConstants.js +0 -30
  479. package/dist/theme/coreThemeConstants.js.map +0 -1
  480. package/dist/theme/cssMixins.d.ts +0 -20
  481. package/dist/theme/cssMixins.js +0 -90
  482. package/dist/theme/cssMixins.js.map +0 -1
  483. package/dist/theme/index.d.ts +0 -8
  484. package/dist/theme/index.js +0 -27
  485. package/dist/theme/index.js.map +0 -1
  486. package/dist/theme/palette.d.ts +0 -53
  487. package/dist/theme/palette.js +0 -137
  488. package/dist/theme/palette.js.map +0 -1
  489. package/dist/theme/shape.d.ts +0 -2
  490. package/dist/theme/shape.js +0 -5
  491. package/dist/theme/shape.js.map +0 -1
  492. package/dist/theme/theme.types.d.ts +0 -72
  493. package/dist/theme/theme.types.js +0 -2
  494. package/dist/theme/theme.types.js.map +0 -1
  495. package/dist/theme/typography.d.ts +0 -2
  496. package/dist/theme/typography.js +0 -116
  497. package/dist/theme/typography.js.map +0 -1
  498. package/dist/utils/ddLogger.d.ts +0 -4
  499. package/dist/utils/ddLogger.js +0 -48
  500. package/dist/utils/ddLogger.js.map +0 -1
  501. package/dist/utils/sentry.d.ts +0 -1
  502. package/dist/utils/sentry.js +0 -19
  503. package/dist/utils/sentry.js.map +0 -1
  504. package/dist/utils/storage.d.ts +0 -12
  505. package/dist/utils/storage.js +0 -32
  506. package/dist/utils/storage.js.map +0 -1
@@ -1,691 +1,691 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Erc721__factory = void 0;
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- inputs: [
11
- {
12
- internalType: 'address',
13
- name: 'punkContract',
14
- type: 'address',
15
- },
16
- ],
17
- payable: false,
18
- stateMutability: 'nonpayable',
19
- type: 'constructor',
20
- },
21
- {
22
- anonymous: false,
23
- inputs: [
24
- {
25
- indexed: true,
26
- internalType: 'address',
27
- name: 'owner',
28
- type: 'address',
29
- },
30
- {
31
- indexed: true,
32
- internalType: 'address',
33
- name: 'approved',
34
- type: 'address',
35
- },
36
- {
37
- indexed: true,
38
- internalType: 'uint256',
39
- name: 'tokenId',
40
- type: 'uint256',
41
- },
42
- ],
43
- name: 'Approval',
44
- type: 'event',
45
- },
46
- {
47
- anonymous: false,
48
- inputs: [
49
- {
50
- indexed: true,
51
- internalType: 'address',
52
- name: 'owner',
53
- type: 'address',
54
- },
55
- {
56
- indexed: true,
57
- internalType: 'address',
58
- name: 'operator',
59
- type: 'address',
60
- },
61
- {
62
- indexed: false,
63
- internalType: 'bool',
64
- name: 'approved',
65
- type: 'bool',
66
- },
67
- ],
68
- name: 'ApprovalForAll',
69
- type: 'event',
70
- },
71
- {
72
- anonymous: false,
73
- inputs: [
74
- {
75
- indexed: true,
76
- internalType: 'address',
77
- name: 'previousOwner',
78
- type: 'address',
79
- },
80
- {
81
- indexed: true,
82
- internalType: 'address',
83
- name: 'newOwner',
84
- type: 'address',
85
- },
86
- ],
87
- name: 'OwnershipTransferred',
88
- type: 'event',
89
- },
90
- {
91
- anonymous: false,
92
- inputs: [
93
- {
94
- indexed: false,
95
- internalType: 'address',
96
- name: 'account',
97
- type: 'address',
98
- },
99
- ],
100
- name: 'Paused',
101
- type: 'event',
102
- },
103
- {
104
- anonymous: false,
105
- inputs: [
106
- {
107
- indexed: false,
108
- internalType: 'address',
109
- name: 'user',
110
- type: 'address',
111
- },
112
- {
113
- indexed: false,
114
- internalType: 'address',
115
- name: 'proxy',
116
- type: 'address',
117
- },
118
- ],
119
- name: 'ProxyRegistered',
120
- type: 'event',
121
- },
122
- {
123
- anonymous: false,
124
- inputs: [
125
- {
126
- indexed: true,
127
- internalType: 'address',
128
- name: 'from',
129
- type: 'address',
130
- },
131
- {
132
- indexed: true,
133
- internalType: 'address',
134
- name: 'to',
135
- type: 'address',
136
- },
137
- {
138
- indexed: true,
139
- internalType: 'uint256',
140
- name: 'tokenId',
141
- type: 'uint256',
142
- },
143
- ],
144
- name: 'Transfer',
145
- type: 'event',
146
- },
147
- {
148
- anonymous: false,
149
- inputs: [
150
- {
151
- indexed: false,
152
- internalType: 'address',
153
- name: 'account',
154
- type: 'address',
155
- },
156
- ],
157
- name: 'Unpaused',
158
- type: 'event',
159
- },
160
- {
161
- constant: false,
162
- inputs: [
163
- {
164
- internalType: 'address',
165
- name: 'to',
166
- type: 'address',
167
- },
168
- {
169
- internalType: 'uint256',
170
- name: 'tokenId',
171
- type: 'uint256',
172
- },
173
- ],
174
- name: 'approve',
175
- outputs: [],
176
- payable: false,
177
- stateMutability: 'nonpayable',
178
- type: 'function',
179
- },
180
- {
181
- constant: true,
182
- inputs: [
183
- {
184
- internalType: 'address',
185
- name: 'owner',
186
- type: 'address',
187
- },
188
- ],
189
- name: 'balanceOf',
190
- outputs: [
191
- {
192
- internalType: 'uint256',
193
- name: '',
194
- type: 'uint256',
195
- },
196
- ],
197
- payable: false,
198
- stateMutability: 'view',
199
- type: 'function',
200
- },
201
- {
202
- constant: true,
203
- inputs: [],
204
- name: 'baseURI',
205
- outputs: [
206
- {
207
- internalType: 'string',
208
- name: '',
209
- type: 'string',
210
- },
211
- ],
212
- payable: false,
213
- stateMutability: 'view',
214
- type: 'function',
215
- },
216
- {
217
- constant: false,
218
- inputs: [
219
- {
220
- internalType: 'uint256',
221
- name: 'punkIndex',
222
- type: 'uint256',
223
- },
224
- ],
225
- name: 'burn',
226
- outputs: [],
227
- payable: false,
228
- stateMutability: 'nonpayable',
229
- type: 'function',
230
- },
231
- {
232
- constant: true,
233
- inputs: [
234
- {
235
- internalType: 'uint256',
236
- name: 'tokenId',
237
- type: 'uint256',
238
- },
239
- ],
240
- name: 'getApproved',
241
- outputs: [
242
- {
243
- internalType: 'address',
244
- name: '',
245
- type: 'address',
246
- },
247
- ],
248
- payable: false,
249
- stateMutability: 'view',
250
- type: 'function',
251
- },
252
- {
253
- constant: true,
254
- inputs: [
255
- {
256
- internalType: 'address',
257
- name: 'owner',
258
- type: 'address',
259
- },
260
- {
261
- internalType: 'address',
262
- name: 'operator',
263
- type: 'address',
264
- },
265
- ],
266
- name: 'isApprovedForAll',
267
- outputs: [
268
- {
269
- internalType: 'bool',
270
- name: '',
271
- type: 'bool',
272
- },
273
- ],
274
- payable: false,
275
- stateMutability: 'view',
276
- type: 'function',
277
- },
278
- {
279
- constant: false,
280
- inputs: [
281
- {
282
- internalType: 'uint256',
283
- name: 'punkIndex',
284
- type: 'uint256',
285
- },
286
- ],
287
- name: 'mint',
288
- outputs: [],
289
- payable: false,
290
- stateMutability: 'nonpayable',
291
- type: 'function',
292
- },
293
- {
294
- constant: true,
295
- inputs: [],
296
- name: 'name',
297
- outputs: [
298
- {
299
- internalType: 'string',
300
- name: '',
301
- type: 'string',
302
- },
303
- ],
304
- payable: false,
305
- stateMutability: 'view',
306
- type: 'function',
307
- },
308
- {
309
- constant: true,
310
- inputs: [],
311
- name: 'owner',
312
- outputs: [
313
- {
314
- internalType: 'address',
315
- name: '',
316
- type: 'address',
317
- },
318
- ],
319
- payable: false,
320
- stateMutability: 'view',
321
- type: 'function',
322
- },
323
- {
324
- constant: true,
325
- inputs: [
326
- {
327
- internalType: 'uint256',
328
- name: 'tokenId',
329
- type: 'uint256',
330
- },
331
- ],
332
- name: 'ownerOf',
333
- outputs: [
334
- {
335
- internalType: 'address',
336
- name: '',
337
- type: 'address',
338
- },
339
- ],
340
- payable: false,
341
- stateMutability: 'view',
342
- type: 'function',
343
- },
344
- {
345
- constant: false,
346
- inputs: [],
347
- name: 'pause',
348
- outputs: [],
349
- payable: false,
350
- stateMutability: 'nonpayable',
351
- type: 'function',
352
- },
353
- {
354
- constant: true,
355
- inputs: [],
356
- name: 'paused',
357
- outputs: [
358
- {
359
- internalType: 'bool',
360
- name: '',
361
- type: 'bool',
362
- },
363
- ],
364
- payable: false,
365
- stateMutability: 'view',
366
- type: 'function',
367
- },
368
- {
369
- constant: true,
370
- inputs: [
371
- {
372
- internalType: 'address',
373
- name: 'user',
374
- type: 'address',
375
- },
376
- ],
377
- name: 'proxyInfo',
378
- outputs: [
379
- {
380
- internalType: 'address',
381
- name: '',
382
- type: 'address',
383
- },
384
- ],
385
- payable: false,
386
- stateMutability: 'view',
387
- type: 'function',
388
- },
389
- {
390
- constant: true,
391
- inputs: [],
392
- name: 'punkContract',
393
- outputs: [
394
- {
395
- internalType: 'address',
396
- name: '',
397
- type: 'address',
398
- },
399
- ],
400
- payable: false,
401
- stateMutability: 'view',
402
- type: 'function',
403
- },
404
- {
405
- constant: false,
406
- inputs: [],
407
- name: 'registerProxy',
408
- outputs: [],
409
- payable: false,
410
- stateMutability: 'nonpayable',
411
- type: 'function',
412
- },
413
- {
414
- constant: false,
415
- inputs: [],
416
- name: 'renounceOwnership',
417
- outputs: [],
418
- payable: false,
419
- stateMutability: 'nonpayable',
420
- type: 'function',
421
- },
422
- {
423
- constant: false,
424
- inputs: [
425
- {
426
- internalType: 'address',
427
- name: 'from',
428
- type: 'address',
429
- },
430
- {
431
- internalType: 'address',
432
- name: 'to',
433
- type: 'address',
434
- },
435
- {
436
- internalType: 'uint256',
437
- name: 'tokenId',
438
- type: 'uint256',
439
- },
440
- ],
441
- name: 'safeTransferFrom',
442
- outputs: [],
443
- payable: false,
444
- stateMutability: 'nonpayable',
445
- type: 'function',
446
- },
447
- {
448
- constant: false,
449
- inputs: [
450
- {
451
- internalType: 'address',
452
- name: 'from',
453
- type: 'address',
454
- },
455
- {
456
- internalType: 'address',
457
- name: 'to',
458
- type: 'address',
459
- },
460
- {
461
- internalType: 'uint256',
462
- name: 'tokenId',
463
- type: 'uint256',
464
- },
465
- {
466
- internalType: 'bytes',
467
- name: '_data',
468
- type: 'bytes',
469
- },
470
- ],
471
- name: 'safeTransferFrom',
472
- outputs: [],
473
- payable: false,
474
- stateMutability: 'nonpayable',
475
- type: 'function',
476
- },
477
- {
478
- constant: false,
479
- inputs: [
480
- {
481
- internalType: 'address',
482
- name: 'to',
483
- type: 'address',
484
- },
485
- {
486
- internalType: 'bool',
487
- name: 'approved',
488
- type: 'bool',
489
- },
490
- ],
491
- name: 'setApprovalForAll',
492
- outputs: [],
493
- payable: false,
494
- stateMutability: 'nonpayable',
495
- type: 'function',
496
- },
497
- {
498
- constant: false,
499
- inputs: [
500
- {
501
- internalType: 'string',
502
- name: 'baseUri',
503
- type: 'string',
504
- },
505
- ],
506
- name: 'setBaseURI',
507
- outputs: [],
508
- payable: false,
509
- stateMutability: 'nonpayable',
510
- type: 'function',
511
- },
512
- {
513
- constant: true,
514
- inputs: [
515
- {
516
- internalType: 'bytes4',
517
- name: 'interfaceId',
518
- type: 'bytes4',
519
- },
520
- ],
521
- name: 'supportsInterface',
522
- outputs: [
523
- {
524
- internalType: 'bool',
525
- name: '',
526
- type: 'bool',
527
- },
528
- ],
529
- payable: false,
530
- stateMutability: 'view',
531
- type: 'function',
532
- },
533
- {
534
- constant: true,
535
- inputs: [],
536
- name: 'symbol',
537
- outputs: [
538
- {
539
- internalType: 'string',
540
- name: '',
541
- type: 'string',
542
- },
543
- ],
544
- payable: false,
545
- stateMutability: 'view',
546
- type: 'function',
547
- },
548
- {
549
- constant: true,
550
- inputs: [
551
- {
552
- internalType: 'uint256',
553
- name: 'index',
554
- type: 'uint256',
555
- },
556
- ],
557
- name: 'tokenByIndex',
558
- outputs: [
559
- {
560
- internalType: 'uint256',
561
- name: '',
562
- type: 'uint256',
563
- },
564
- ],
565
- payable: false,
566
- stateMutability: 'view',
567
- type: 'function',
568
- },
569
- {
570
- constant: true,
571
- inputs: [
572
- {
573
- internalType: 'address',
574
- name: 'owner',
575
- type: 'address',
576
- },
577
- {
578
- internalType: 'uint256',
579
- name: 'index',
580
- type: 'uint256',
581
- },
582
- ],
583
- name: 'tokenOfOwnerByIndex',
584
- outputs: [
585
- {
586
- internalType: 'uint256',
587
- name: '',
588
- type: 'uint256',
589
- },
590
- ],
591
- payable: false,
592
- stateMutability: 'view',
593
- type: 'function',
594
- },
595
- {
596
- constant: true,
597
- inputs: [
598
- {
599
- internalType: 'uint256',
600
- name: 'tokenId',
601
- type: 'uint256',
602
- },
603
- ],
604
- name: 'tokenURI',
605
- outputs: [
606
- {
607
- internalType: 'string',
608
- name: '',
609
- type: 'string',
610
- },
611
- ],
612
- payable: false,
613
- stateMutability: 'view',
614
- type: 'function',
615
- },
616
- {
617
- constant: true,
618
- inputs: [],
619
- name: 'totalSupply',
620
- outputs: [
621
- {
622
- internalType: 'uint256',
623
- name: '',
624
- type: 'uint256',
625
- },
626
- ],
627
- payable: false,
628
- stateMutability: 'view',
629
- type: 'function',
630
- },
631
- {
632
- constant: false,
633
- inputs: [
634
- {
635
- internalType: 'address',
636
- name: 'from',
637
- type: 'address',
638
- },
639
- {
640
- internalType: 'address',
641
- name: 'to',
642
- type: 'address',
643
- },
644
- {
645
- internalType: 'uint256',
646
- name: 'tokenId',
647
- type: 'uint256',
648
- },
649
- ],
650
- name: 'transferFrom',
651
- outputs: [],
652
- payable: false,
653
- stateMutability: 'nonpayable',
654
- type: 'function',
655
- },
656
- {
657
- constant: false,
658
- inputs: [
659
- {
660
- internalType: 'address',
661
- name: 'newOwner',
662
- type: 'address',
663
- },
664
- ],
665
- name: 'transferOwnership',
666
- outputs: [],
667
- payable: false,
668
- stateMutability: 'nonpayable',
669
- type: 'function',
670
- },
671
- {
672
- constant: false,
673
- inputs: [],
674
- name: 'unpause',
675
- outputs: [],
676
- payable: false,
677
- stateMutability: 'nonpayable',
678
- type: 'function',
679
- },
680
- ];
681
- class Erc721__factory {
682
- static createInterface() {
683
- return new ethers_1.utils.Interface(_abi);
684
- }
685
- static connect(address, signerOrProvider) {
686
- return new ethers_1.Contract(address, _abi, signerOrProvider);
687
- }
688
- }
689
- exports.Erc721__factory = Erc721__factory;
690
- Erc721__factory.abi = _abi;
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Erc721__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: 'address',
13
+ name: 'punkContract',
14
+ type: 'address',
15
+ },
16
+ ],
17
+ payable: false,
18
+ stateMutability: 'nonpayable',
19
+ type: 'constructor',
20
+ },
21
+ {
22
+ anonymous: false,
23
+ inputs: [
24
+ {
25
+ indexed: true,
26
+ internalType: 'address',
27
+ name: 'owner',
28
+ type: 'address',
29
+ },
30
+ {
31
+ indexed: true,
32
+ internalType: 'address',
33
+ name: 'approved',
34
+ type: 'address',
35
+ },
36
+ {
37
+ indexed: true,
38
+ internalType: 'uint256',
39
+ name: 'tokenId',
40
+ type: 'uint256',
41
+ },
42
+ ],
43
+ name: 'Approval',
44
+ type: 'event',
45
+ },
46
+ {
47
+ anonymous: false,
48
+ inputs: [
49
+ {
50
+ indexed: true,
51
+ internalType: 'address',
52
+ name: 'owner',
53
+ type: 'address',
54
+ },
55
+ {
56
+ indexed: true,
57
+ internalType: 'address',
58
+ name: 'operator',
59
+ type: 'address',
60
+ },
61
+ {
62
+ indexed: false,
63
+ internalType: 'bool',
64
+ name: 'approved',
65
+ type: 'bool',
66
+ },
67
+ ],
68
+ name: 'ApprovalForAll',
69
+ type: 'event',
70
+ },
71
+ {
72
+ anonymous: false,
73
+ inputs: [
74
+ {
75
+ indexed: true,
76
+ internalType: 'address',
77
+ name: 'previousOwner',
78
+ type: 'address',
79
+ },
80
+ {
81
+ indexed: true,
82
+ internalType: 'address',
83
+ name: 'newOwner',
84
+ type: 'address',
85
+ },
86
+ ],
87
+ name: 'OwnershipTransferred',
88
+ type: 'event',
89
+ },
90
+ {
91
+ anonymous: false,
92
+ inputs: [
93
+ {
94
+ indexed: false,
95
+ internalType: 'address',
96
+ name: 'account',
97
+ type: 'address',
98
+ },
99
+ ],
100
+ name: 'Paused',
101
+ type: 'event',
102
+ },
103
+ {
104
+ anonymous: false,
105
+ inputs: [
106
+ {
107
+ indexed: false,
108
+ internalType: 'address',
109
+ name: 'user',
110
+ type: 'address',
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: 'address',
115
+ name: 'proxy',
116
+ type: 'address',
117
+ },
118
+ ],
119
+ name: 'ProxyRegistered',
120
+ type: 'event',
121
+ },
122
+ {
123
+ anonymous: false,
124
+ inputs: [
125
+ {
126
+ indexed: true,
127
+ internalType: 'address',
128
+ name: 'from',
129
+ type: 'address',
130
+ },
131
+ {
132
+ indexed: true,
133
+ internalType: 'address',
134
+ name: 'to',
135
+ type: 'address',
136
+ },
137
+ {
138
+ indexed: true,
139
+ internalType: 'uint256',
140
+ name: 'tokenId',
141
+ type: 'uint256',
142
+ },
143
+ ],
144
+ name: 'Transfer',
145
+ type: 'event',
146
+ },
147
+ {
148
+ anonymous: false,
149
+ inputs: [
150
+ {
151
+ indexed: false,
152
+ internalType: 'address',
153
+ name: 'account',
154
+ type: 'address',
155
+ },
156
+ ],
157
+ name: 'Unpaused',
158
+ type: 'event',
159
+ },
160
+ {
161
+ constant: false,
162
+ inputs: [
163
+ {
164
+ internalType: 'address',
165
+ name: 'to',
166
+ type: 'address',
167
+ },
168
+ {
169
+ internalType: 'uint256',
170
+ name: 'tokenId',
171
+ type: 'uint256',
172
+ },
173
+ ],
174
+ name: 'approve',
175
+ outputs: [],
176
+ payable: false,
177
+ stateMutability: 'nonpayable',
178
+ type: 'function',
179
+ },
180
+ {
181
+ constant: true,
182
+ inputs: [
183
+ {
184
+ internalType: 'address',
185
+ name: 'owner',
186
+ type: 'address',
187
+ },
188
+ ],
189
+ name: 'balanceOf',
190
+ outputs: [
191
+ {
192
+ internalType: 'uint256',
193
+ name: '',
194
+ type: 'uint256',
195
+ },
196
+ ],
197
+ payable: false,
198
+ stateMutability: 'view',
199
+ type: 'function',
200
+ },
201
+ {
202
+ constant: true,
203
+ inputs: [],
204
+ name: 'baseURI',
205
+ outputs: [
206
+ {
207
+ internalType: 'string',
208
+ name: '',
209
+ type: 'string',
210
+ },
211
+ ],
212
+ payable: false,
213
+ stateMutability: 'view',
214
+ type: 'function',
215
+ },
216
+ {
217
+ constant: false,
218
+ inputs: [
219
+ {
220
+ internalType: 'uint256',
221
+ name: 'punkIndex',
222
+ type: 'uint256',
223
+ },
224
+ ],
225
+ name: 'burn',
226
+ outputs: [],
227
+ payable: false,
228
+ stateMutability: 'nonpayable',
229
+ type: 'function',
230
+ },
231
+ {
232
+ constant: true,
233
+ inputs: [
234
+ {
235
+ internalType: 'uint256',
236
+ name: 'tokenId',
237
+ type: 'uint256',
238
+ },
239
+ ],
240
+ name: 'getApproved',
241
+ outputs: [
242
+ {
243
+ internalType: 'address',
244
+ name: '',
245
+ type: 'address',
246
+ },
247
+ ],
248
+ payable: false,
249
+ stateMutability: 'view',
250
+ type: 'function',
251
+ },
252
+ {
253
+ constant: true,
254
+ inputs: [
255
+ {
256
+ internalType: 'address',
257
+ name: 'owner',
258
+ type: 'address',
259
+ },
260
+ {
261
+ internalType: 'address',
262
+ name: 'operator',
263
+ type: 'address',
264
+ },
265
+ ],
266
+ name: 'isApprovedForAll',
267
+ outputs: [
268
+ {
269
+ internalType: 'bool',
270
+ name: '',
271
+ type: 'bool',
272
+ },
273
+ ],
274
+ payable: false,
275
+ stateMutability: 'view',
276
+ type: 'function',
277
+ },
278
+ {
279
+ constant: false,
280
+ inputs: [
281
+ {
282
+ internalType: 'uint256',
283
+ name: 'punkIndex',
284
+ type: 'uint256',
285
+ },
286
+ ],
287
+ name: 'mint',
288
+ outputs: [],
289
+ payable: false,
290
+ stateMutability: 'nonpayable',
291
+ type: 'function',
292
+ },
293
+ {
294
+ constant: true,
295
+ inputs: [],
296
+ name: 'name',
297
+ outputs: [
298
+ {
299
+ internalType: 'string',
300
+ name: '',
301
+ type: 'string',
302
+ },
303
+ ],
304
+ payable: false,
305
+ stateMutability: 'view',
306
+ type: 'function',
307
+ },
308
+ {
309
+ constant: true,
310
+ inputs: [],
311
+ name: 'owner',
312
+ outputs: [
313
+ {
314
+ internalType: 'address',
315
+ name: '',
316
+ type: 'address',
317
+ },
318
+ ],
319
+ payable: false,
320
+ stateMutability: 'view',
321
+ type: 'function',
322
+ },
323
+ {
324
+ constant: true,
325
+ inputs: [
326
+ {
327
+ internalType: 'uint256',
328
+ name: 'tokenId',
329
+ type: 'uint256',
330
+ },
331
+ ],
332
+ name: 'ownerOf',
333
+ outputs: [
334
+ {
335
+ internalType: 'address',
336
+ name: '',
337
+ type: 'address',
338
+ },
339
+ ],
340
+ payable: false,
341
+ stateMutability: 'view',
342
+ type: 'function',
343
+ },
344
+ {
345
+ constant: false,
346
+ inputs: [],
347
+ name: 'pause',
348
+ outputs: [],
349
+ payable: false,
350
+ stateMutability: 'nonpayable',
351
+ type: 'function',
352
+ },
353
+ {
354
+ constant: true,
355
+ inputs: [],
356
+ name: 'paused',
357
+ outputs: [
358
+ {
359
+ internalType: 'bool',
360
+ name: '',
361
+ type: 'bool',
362
+ },
363
+ ],
364
+ payable: false,
365
+ stateMutability: 'view',
366
+ type: 'function',
367
+ },
368
+ {
369
+ constant: true,
370
+ inputs: [
371
+ {
372
+ internalType: 'address',
373
+ name: 'user',
374
+ type: 'address',
375
+ },
376
+ ],
377
+ name: 'proxyInfo',
378
+ outputs: [
379
+ {
380
+ internalType: 'address',
381
+ name: '',
382
+ type: 'address',
383
+ },
384
+ ],
385
+ payable: false,
386
+ stateMutability: 'view',
387
+ type: 'function',
388
+ },
389
+ {
390
+ constant: true,
391
+ inputs: [],
392
+ name: 'punkContract',
393
+ outputs: [
394
+ {
395
+ internalType: 'address',
396
+ name: '',
397
+ type: 'address',
398
+ },
399
+ ],
400
+ payable: false,
401
+ stateMutability: 'view',
402
+ type: 'function',
403
+ },
404
+ {
405
+ constant: false,
406
+ inputs: [],
407
+ name: 'registerProxy',
408
+ outputs: [],
409
+ payable: false,
410
+ stateMutability: 'nonpayable',
411
+ type: 'function',
412
+ },
413
+ {
414
+ constant: false,
415
+ inputs: [],
416
+ name: 'renounceOwnership',
417
+ outputs: [],
418
+ payable: false,
419
+ stateMutability: 'nonpayable',
420
+ type: 'function',
421
+ },
422
+ {
423
+ constant: false,
424
+ inputs: [
425
+ {
426
+ internalType: 'address',
427
+ name: 'from',
428
+ type: 'address',
429
+ },
430
+ {
431
+ internalType: 'address',
432
+ name: 'to',
433
+ type: 'address',
434
+ },
435
+ {
436
+ internalType: 'uint256',
437
+ name: 'tokenId',
438
+ type: 'uint256',
439
+ },
440
+ ],
441
+ name: 'safeTransferFrom',
442
+ outputs: [],
443
+ payable: false,
444
+ stateMutability: 'nonpayable',
445
+ type: 'function',
446
+ },
447
+ {
448
+ constant: false,
449
+ inputs: [
450
+ {
451
+ internalType: 'address',
452
+ name: 'from',
453
+ type: 'address',
454
+ },
455
+ {
456
+ internalType: 'address',
457
+ name: 'to',
458
+ type: 'address',
459
+ },
460
+ {
461
+ internalType: 'uint256',
462
+ name: 'tokenId',
463
+ type: 'uint256',
464
+ },
465
+ {
466
+ internalType: 'bytes',
467
+ name: '_data',
468
+ type: 'bytes',
469
+ },
470
+ ],
471
+ name: 'safeTransferFrom',
472
+ outputs: [],
473
+ payable: false,
474
+ stateMutability: 'nonpayable',
475
+ type: 'function',
476
+ },
477
+ {
478
+ constant: false,
479
+ inputs: [
480
+ {
481
+ internalType: 'address',
482
+ name: 'to',
483
+ type: 'address',
484
+ },
485
+ {
486
+ internalType: 'bool',
487
+ name: 'approved',
488
+ type: 'bool',
489
+ },
490
+ ],
491
+ name: 'setApprovalForAll',
492
+ outputs: [],
493
+ payable: false,
494
+ stateMutability: 'nonpayable',
495
+ type: 'function',
496
+ },
497
+ {
498
+ constant: false,
499
+ inputs: [
500
+ {
501
+ internalType: 'string',
502
+ name: 'baseUri',
503
+ type: 'string',
504
+ },
505
+ ],
506
+ name: 'setBaseURI',
507
+ outputs: [],
508
+ payable: false,
509
+ stateMutability: 'nonpayable',
510
+ type: 'function',
511
+ },
512
+ {
513
+ constant: true,
514
+ inputs: [
515
+ {
516
+ internalType: 'bytes4',
517
+ name: 'interfaceId',
518
+ type: 'bytes4',
519
+ },
520
+ ],
521
+ name: 'supportsInterface',
522
+ outputs: [
523
+ {
524
+ internalType: 'bool',
525
+ name: '',
526
+ type: 'bool',
527
+ },
528
+ ],
529
+ payable: false,
530
+ stateMutability: 'view',
531
+ type: 'function',
532
+ },
533
+ {
534
+ constant: true,
535
+ inputs: [],
536
+ name: 'symbol',
537
+ outputs: [
538
+ {
539
+ internalType: 'string',
540
+ name: '',
541
+ type: 'string',
542
+ },
543
+ ],
544
+ payable: false,
545
+ stateMutability: 'view',
546
+ type: 'function',
547
+ },
548
+ {
549
+ constant: true,
550
+ inputs: [
551
+ {
552
+ internalType: 'uint256',
553
+ name: 'index',
554
+ type: 'uint256',
555
+ },
556
+ ],
557
+ name: 'tokenByIndex',
558
+ outputs: [
559
+ {
560
+ internalType: 'uint256',
561
+ name: '',
562
+ type: 'uint256',
563
+ },
564
+ ],
565
+ payable: false,
566
+ stateMutability: 'view',
567
+ type: 'function',
568
+ },
569
+ {
570
+ constant: true,
571
+ inputs: [
572
+ {
573
+ internalType: 'address',
574
+ name: 'owner',
575
+ type: 'address',
576
+ },
577
+ {
578
+ internalType: 'uint256',
579
+ name: 'index',
580
+ type: 'uint256',
581
+ },
582
+ ],
583
+ name: 'tokenOfOwnerByIndex',
584
+ outputs: [
585
+ {
586
+ internalType: 'uint256',
587
+ name: '',
588
+ type: 'uint256',
589
+ },
590
+ ],
591
+ payable: false,
592
+ stateMutability: 'view',
593
+ type: 'function',
594
+ },
595
+ {
596
+ constant: true,
597
+ inputs: [
598
+ {
599
+ internalType: 'uint256',
600
+ name: 'tokenId',
601
+ type: 'uint256',
602
+ },
603
+ ],
604
+ name: 'tokenURI',
605
+ outputs: [
606
+ {
607
+ internalType: 'string',
608
+ name: '',
609
+ type: 'string',
610
+ },
611
+ ],
612
+ payable: false,
613
+ stateMutability: 'view',
614
+ type: 'function',
615
+ },
616
+ {
617
+ constant: true,
618
+ inputs: [],
619
+ name: 'totalSupply',
620
+ outputs: [
621
+ {
622
+ internalType: 'uint256',
623
+ name: '',
624
+ type: 'uint256',
625
+ },
626
+ ],
627
+ payable: false,
628
+ stateMutability: 'view',
629
+ type: 'function',
630
+ },
631
+ {
632
+ constant: false,
633
+ inputs: [
634
+ {
635
+ internalType: 'address',
636
+ name: 'from',
637
+ type: 'address',
638
+ },
639
+ {
640
+ internalType: 'address',
641
+ name: 'to',
642
+ type: 'address',
643
+ },
644
+ {
645
+ internalType: 'uint256',
646
+ name: 'tokenId',
647
+ type: 'uint256',
648
+ },
649
+ ],
650
+ name: 'transferFrom',
651
+ outputs: [],
652
+ payable: false,
653
+ stateMutability: 'nonpayable',
654
+ type: 'function',
655
+ },
656
+ {
657
+ constant: false,
658
+ inputs: [
659
+ {
660
+ internalType: 'address',
661
+ name: 'newOwner',
662
+ type: 'address',
663
+ },
664
+ ],
665
+ name: 'transferOwnership',
666
+ outputs: [],
667
+ payable: false,
668
+ stateMutability: 'nonpayable',
669
+ type: 'function',
670
+ },
671
+ {
672
+ constant: false,
673
+ inputs: [],
674
+ name: 'unpause',
675
+ outputs: [],
676
+ payable: false,
677
+ stateMutability: 'nonpayable',
678
+ type: 'function',
679
+ },
680
+ ];
681
+ class Erc721__factory {
682
+ static createInterface() {
683
+ return new ethers_1.utils.Interface(_abi);
684
+ }
685
+ static connect(address, signerOrProvider) {
686
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
687
+ }
688
+ }
689
+ exports.Erc721__factory = Erc721__factory;
690
+ Erc721__factory.abi = _abi;
691
691
  //# sourceMappingURL=Erc721__factory.js.map