@superfluid-finance/sdk-core 0.1.1-dev.8caff13.0 → 0.1.1-dev.b8d3bbf.0

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 (440) hide show
  1. package/README.md +37 -11
  2. package/dist/index.umd.js +45852 -0
  3. package/dist/main/BatchCall.d.ts +1 -0
  4. package/dist/main/BatchCall.d.ts.map +1 -0
  5. package/dist/main/BatchCall.js +128 -0
  6. package/dist/main/BatchCall.js.map +1 -0
  7. package/dist/main/ConstantFlowAgreementV1.d.ts +7 -3
  8. package/dist/main/ConstantFlowAgreementV1.d.ts.map +1 -0
  9. package/dist/main/ConstantFlowAgreementV1.js +178 -0
  10. package/dist/main/ConstantFlowAgreementV1.js.map +1 -0
  11. package/dist/main/Framework.d.ts +7 -2
  12. package/dist/main/Framework.d.ts.map +1 -0
  13. package/dist/main/Framework.js +177 -0
  14. package/dist/main/Framework.js.map +1 -0
  15. package/dist/main/Host.d.ts +6 -1
  16. package/dist/main/Host.d.ts.map +1 -0
  17. package/dist/main/Host.js +31 -0
  18. package/dist/main/Host.js.map +1 -0
  19. package/dist/main/InstantDistributionAgreementV1.d.ts +18 -9
  20. package/dist/main/InstantDistributionAgreementV1.d.ts.map +1 -0
  21. package/dist/main/InstantDistributionAgreementV1.js +249 -0
  22. package/dist/main/InstantDistributionAgreementV1.js.map +1 -0
  23. package/dist/main/Operation.d.ts +1 -0
  24. package/dist/main/Operation.d.ts.map +1 -0
  25. package/dist/main/Operation.js +86 -0
  26. package/dist/main/Operation.js.map +1 -0
  27. package/dist/main/Query.d.ts +1 -0
  28. package/dist/main/Query.d.ts.map +1 -0
  29. package/dist/main/Query.js +310 -0
  30. package/dist/main/Query.js.map +1 -0
  31. package/dist/main/SFError.d.ts +1 -0
  32. package/dist/main/SFError.d.ts.map +1 -0
  33. package/dist/main/SFError.js +36 -0
  34. package/dist/main/SFError.js.map +1 -0
  35. package/dist/main/SuperToken.d.ts +34 -14
  36. package/dist/main/SuperToken.d.ts.map +1 -0
  37. package/dist/main/SuperToken.js +396 -0
  38. package/dist/main/SuperToken.js.map +1 -0
  39. package/dist/main/Token.d.ts +7 -3
  40. package/dist/main/Token.d.ts.map +1 -0
  41. package/dist/main/Token.js +166 -0
  42. package/dist/main/Token.js.map +1 -0
  43. package/dist/main/abi/ERC20WithTokenInfo.json +224 -0
  44. package/dist/main/abi/IConstantFlowAgreementV1.json +406 -0
  45. package/dist/main/abi/IInstantDistributionAgreementV1.json +947 -0
  46. package/dist/main/abi/IResolver.json +58 -0
  47. package/dist/main/abi/SuperToken.json +1549 -0
  48. package/dist/main/abi/Superfluid.json +1159 -0
  49. package/dist/main/abi/SuperfluidLoader.json +54 -0
  50. package/dist/main/constants.d.ts +2 -1
  51. package/dist/main/constants.d.ts.map +1 -0
  52. package/dist/main/constants.js +134 -0
  53. package/dist/main/constants.js.map +1 -0
  54. package/dist/main/events.d.ts +1 -0
  55. package/dist/main/events.d.ts.map +1 -0
  56. package/dist/main/events.js +3 -0
  57. package/dist/main/events.js.map +1 -0
  58. package/dist/main/frameworkHelpers.d.ts +1 -0
  59. package/dist/main/frameworkHelpers.d.ts.map +1 -0
  60. package/dist/main/frameworkHelpers.js +89 -0
  61. package/dist/main/frameworkHelpers.js.map +1 -0
  62. package/dist/main/index.d.ts +6 -0
  63. package/dist/main/index.d.ts.map +1 -0
  64. package/dist/main/index.js +38 -7597
  65. package/dist/main/index.js.map +1 -0
  66. package/dist/main/interfaces.d.ts +100 -10
  67. package/dist/main/interfaces.d.ts.map +1 -0
  68. package/dist/main/interfaces.js +3 -0
  69. package/dist/main/interfaces.js.map +1 -0
  70. package/dist/main/mapGetAllEventsQueryEvents.d.ts +1 -0
  71. package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -0
  72. package/dist/main/mapGetAllEventsQueryEvents.js +432 -0
  73. package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -0
  74. package/dist/main/ordering.d.ts +1 -0
  75. package/dist/main/ordering.d.ts.map +1 -0
  76. package/dist/main/ordering.js +3 -0
  77. package/dist/main/ordering.js.map +1 -0
  78. package/dist/main/pagination.d.ts +1 -0
  79. package/dist/main/pagination.d.ts.map +1 -0
  80. package/dist/main/pagination.js +60 -0
  81. package/dist/main/pagination.js.map +1 -0
  82. package/dist/main/subgraph/SubgraphClient.d.ts +1 -0
  83. package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -0
  84. package/dist/main/subgraph/SubgraphClient.js +51 -0
  85. package/dist/main/subgraph/SubgraphClient.js.map +1 -0
  86. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +1 -0
  87. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -0
  88. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js +5 -0
  89. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -0
  90. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +1 -0
  91. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -0
  92. package/dist/main/subgraph/queries/getAllEvents.generated.js +6 -0
  93. package/dist/main/subgraph/queries/getAllEvents.generated.js.map +1 -0
  94. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts +1 -0
  95. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -0
  96. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js +5 -0
  97. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -0
  98. package/dist/main/subgraph/queries/getIndexes.generated.d.ts +1 -0
  99. package/dist/main/subgraph/queries/getIndexes.generated.d.ts.map +1 -0
  100. package/dist/main/subgraph/queries/getIndexes.generated.js +5 -0
  101. package/dist/main/subgraph/queries/getIndexes.generated.js.map +1 -0
  102. package/dist/main/subgraph/queries/getStreams.generated.d.ts +1 -0
  103. package/dist/main/subgraph/queries/getStreams.generated.d.ts.map +1 -0
  104. package/dist/main/subgraph/queries/getStreams.generated.js +5 -0
  105. package/dist/main/subgraph/queries/getStreams.generated.js.map +1 -0
  106. package/dist/main/subgraph/queries/getTokens.generated.d.ts +1 -0
  107. package/dist/main/subgraph/queries/getTokens.generated.d.ts.map +1 -0
  108. package/dist/main/subgraph/queries/getTokens.generated.js +5 -0
  109. package/dist/main/subgraph/queries/getTokens.generated.js.map +1 -0
  110. package/dist/main/subgraph/schema.generated.d.ts +1 -0
  111. package/dist/main/subgraph/schema.generated.d.ts.map +1 -0
  112. package/dist/main/subgraph/schema.generated.js +3 -0
  113. package/dist/main/subgraph/schema.generated.js.map +1 -0
  114. package/dist/main/typechain/ERC20WithTokenInfo.d.ts +1 -0
  115. package/dist/main/typechain/ERC20WithTokenInfo.d.ts.map +1 -0
  116. package/dist/main/typechain/ERC20WithTokenInfo.js +3 -0
  117. package/dist/main/typechain/ERC20WithTokenInfo.js.map +1 -0
  118. package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +1 -0
  119. package/dist/main/typechain/IConstantFlowAgreementV1.d.ts.map +1 -0
  120. package/dist/main/typechain/IConstantFlowAgreementV1.js +3 -0
  121. package/dist/main/typechain/IConstantFlowAgreementV1.js.map +1 -0
  122. package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts +1 -0
  123. package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -0
  124. package/dist/main/typechain/IInstantDistributionAgreementV1.js +3 -0
  125. package/dist/main/typechain/IInstantDistributionAgreementV1.js.map +1 -0
  126. package/dist/main/typechain/IResolver.d.ts +7 -6
  127. package/dist/main/typechain/IResolver.d.ts.map +1 -0
  128. package/dist/main/typechain/IResolver.js +3 -0
  129. package/dist/main/typechain/IResolver.js.map +1 -0
  130. package/dist/main/typechain/SuperToken.d.ts +1 -0
  131. package/dist/main/typechain/SuperToken.d.ts.map +1 -0
  132. package/dist/main/typechain/SuperToken.js +3 -0
  133. package/dist/main/typechain/SuperToken.js.map +1 -0
  134. package/dist/main/typechain/Superfluid.d.ts +1 -0
  135. package/dist/main/typechain/Superfluid.d.ts.map +1 -0
  136. package/dist/main/typechain/Superfluid.js +3 -0
  137. package/dist/main/typechain/Superfluid.js.map +1 -0
  138. package/dist/main/typechain/SuperfluidLoader.d.ts +1 -0
  139. package/dist/main/typechain/SuperfluidLoader.d.ts.map +1 -0
  140. package/dist/main/typechain/SuperfluidLoader.js +3 -0
  141. package/dist/main/typechain/SuperfluidLoader.js.map +1 -0
  142. package/dist/main/typechain/TestToken.d.ts +1 -0
  143. package/dist/main/typechain/TestToken.d.ts.map +1 -0
  144. package/dist/main/typechain/TestToken.js +3 -0
  145. package/dist/main/typechain/TestToken.js.map +1 -0
  146. package/dist/main/typechain/common.d.ts +1 -0
  147. package/dist/main/typechain/common.d.ts.map +1 -0
  148. package/dist/main/typechain/common.js +3 -0
  149. package/dist/main/typechain/common.js.map +1 -0
  150. package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.d.ts +1 -0
  151. package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.d.ts.map +1 -0
  152. package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.js +242 -0
  153. package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.js.map +1 -0
  154. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +1 -0
  155. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -0
  156. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js +424 -0
  157. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -0
  158. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +1 -0
  159. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -0
  160. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js +965 -0
  161. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -0
  162. package/dist/main/typechain/factories/IResolver__factory.d.ts +1 -0
  163. package/dist/main/typechain/factories/IResolver__factory.d.ts.map +1 -0
  164. package/dist/main/typechain/factories/IResolver__factory.js +76 -0
  165. package/dist/main/typechain/factories/IResolver__factory.js.map +1 -0
  166. package/dist/main/typechain/factories/SuperToken__factory.d.ts +1 -0
  167. package/dist/main/typechain/factories/SuperToken__factory.d.ts.map +1 -0
  168. package/dist/main/typechain/factories/SuperToken__factory.js +1567 -0
  169. package/dist/main/typechain/factories/SuperToken__factory.js.map +1 -0
  170. package/dist/main/typechain/factories/SuperfluidLoader__factory.d.ts +1 -0
  171. package/dist/main/typechain/factories/SuperfluidLoader__factory.d.ts.map +1 -0
  172. package/dist/main/typechain/factories/SuperfluidLoader__factory.js +72 -0
  173. package/dist/main/typechain/factories/SuperfluidLoader__factory.js.map +1 -0
  174. package/dist/main/typechain/factories/Superfluid__factory.d.ts +1 -0
  175. package/dist/main/typechain/factories/Superfluid__factory.d.ts.map +1 -0
  176. package/dist/main/typechain/factories/Superfluid__factory.js +1177 -0
  177. package/dist/main/typechain/factories/Superfluid__factory.js.map +1 -0
  178. package/dist/main/typechain/factories/TestToken__factory.d.ts +1 -0
  179. package/dist/main/typechain/factories/TestToken__factory.d.ts.map +1 -0
  180. package/dist/main/typechain/factories/TestToken__factory.js +348 -0
  181. package/dist/main/typechain/factories/TestToken__factory.js.map +1 -0
  182. package/dist/main/typechain/index.d.ts +1 -0
  183. package/dist/main/typechain/index.d.ts.map +1 -0
  184. package/dist/main/typechain/index.js +20 -0
  185. package/dist/main/typechain/index.js.map +1 -0
  186. package/dist/main/types.d.ts +1 -0
  187. package/dist/main/types.d.ts.map +1 -0
  188. package/dist/main/types.js +3 -0
  189. package/dist/main/types.js.map +1 -0
  190. package/dist/main/utils.d.ts +6 -0
  191. package/dist/main/utils.d.ts.map +1 -0
  192. package/dist/main/utils.js +178 -0
  193. package/dist/main/utils.js.map +1 -0
  194. package/dist/main/validation.d.ts +1 -0
  195. package/dist/main/validation.d.ts.map +1 -0
  196. package/dist/main/validation.js +98 -0
  197. package/dist/main/validation.js.map +1 -0
  198. package/dist/module/BatchCall.d.ts +1 -0
  199. package/dist/module/BatchCall.d.ts.map +1 -0
  200. package/dist/module/BatchCall.js +122 -0
  201. package/dist/module/BatchCall.js.map +1 -0
  202. package/dist/module/ConstantFlowAgreementV1.d.ts +7 -3
  203. package/dist/module/ConstantFlowAgreementV1.d.ts.map +1 -0
  204. package/dist/module/ConstantFlowAgreementV1.js +172 -0
  205. package/dist/module/ConstantFlowAgreementV1.js.map +1 -0
  206. package/dist/module/Framework.d.ts +7 -2
  207. package/dist/module/Framework.d.ts.map +1 -0
  208. package/dist/module/Framework.js +171 -0
  209. package/dist/module/Framework.js.map +1 -0
  210. package/dist/module/Host.d.ts +6 -1
  211. package/dist/module/Host.d.ts.map +1 -0
  212. package/dist/module/Host.js +25 -0
  213. package/dist/module/Host.js.map +1 -0
  214. package/dist/module/InstantDistributionAgreementV1.d.ts +18 -9
  215. package/dist/module/InstantDistributionAgreementV1.d.ts.map +1 -0
  216. package/dist/module/InstantDistributionAgreementV1.js +243 -0
  217. package/dist/module/InstantDistributionAgreementV1.js.map +1 -0
  218. package/dist/module/Operation.d.ts +1 -0
  219. package/dist/module/Operation.d.ts.map +1 -0
  220. package/dist/module/Operation.js +80 -0
  221. package/dist/module/Operation.js.map +1 -0
  222. package/dist/module/Query.d.ts +1 -0
  223. package/dist/module/Query.d.ts.map +1 -0
  224. package/dist/module/Query.js +304 -0
  225. package/dist/module/Query.js.map +1 -0
  226. package/dist/module/SFError.d.ts +1 -0
  227. package/dist/module/SFError.d.ts.map +1 -0
  228. package/dist/module/SFError.js +33 -0
  229. package/dist/module/SFError.js.map +1 -0
  230. package/dist/module/SuperToken.d.ts +34 -14
  231. package/dist/module/SuperToken.d.ts.map +1 -0
  232. package/dist/module/SuperToken.js +390 -0
  233. package/dist/module/SuperToken.js.map +1 -0
  234. package/dist/module/Token.d.ts +7 -3
  235. package/dist/module/Token.d.ts.map +1 -0
  236. package/dist/module/Token.js +160 -0
  237. package/dist/module/Token.js.map +1 -0
  238. package/dist/module/abi/ERC20WithTokenInfo.json +224 -0
  239. package/dist/module/abi/IConstantFlowAgreementV1.json +406 -0
  240. package/dist/module/abi/IInstantDistributionAgreementV1.json +947 -0
  241. package/dist/module/abi/IResolver.json +58 -0
  242. package/dist/module/abi/SuperToken.json +1549 -0
  243. package/dist/module/abi/Superfluid.json +1159 -0
  244. package/dist/module/abi/SuperfluidLoader.json +54 -0
  245. package/dist/module/constants.d.ts +2 -1
  246. package/dist/module/constants.d.ts.map +1 -0
  247. package/dist/module/constants.js +131 -0
  248. package/dist/module/constants.js.map +1 -0
  249. package/dist/module/events.d.ts +1 -0
  250. package/dist/module/events.d.ts.map +1 -0
  251. package/dist/module/events.js +2 -0
  252. package/dist/module/events.js.map +1 -0
  253. package/dist/module/frameworkHelpers.d.ts +1 -0
  254. package/dist/module/frameworkHelpers.d.ts.map +1 -0
  255. package/dist/module/frameworkHelpers.js +80 -0
  256. package/dist/module/frameworkHelpers.js.map +1 -0
  257. package/dist/module/index.d.ts +6 -0
  258. package/dist/module/index.d.ts.map +1 -0
  259. package/dist/module/index.js +25 -7561
  260. package/dist/module/index.js.map +1 -0
  261. package/dist/module/interfaces.d.ts +100 -10
  262. package/dist/module/interfaces.d.ts.map +1 -0
  263. package/dist/module/interfaces.js +2 -0
  264. package/dist/module/interfaces.js.map +1 -0
  265. package/dist/module/mapGetAllEventsQueryEvents.d.ts +1 -0
  266. package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -0
  267. package/dist/module/mapGetAllEventsQueryEvents.js +428 -0
  268. package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -0
  269. package/dist/module/ordering.d.ts +1 -0
  270. package/dist/module/ordering.d.ts.map +1 -0
  271. package/dist/module/ordering.js +2 -0
  272. package/dist/module/ordering.js.map +1 -0
  273. package/dist/module/pagination.d.ts +1 -0
  274. package/dist/module/pagination.d.ts.map +1 -0
  275. package/dist/module/pagination.js +51 -0
  276. package/dist/module/pagination.js.map +1 -0
  277. package/dist/module/subgraph/SubgraphClient.d.ts +1 -0
  278. package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -0
  279. package/dist/module/subgraph/SubgraphClient.js +44 -0
  280. package/dist/module/subgraph/SubgraphClient.js.map +1 -0
  281. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +1 -0
  282. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -0
  283. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js +2 -0
  284. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -0
  285. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +1 -0
  286. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -0
  287. package/dist/module/subgraph/queries/getAllEvents.generated.js +3 -0
  288. package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -0
  289. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts +1 -0
  290. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -0
  291. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js +2 -0
  292. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -0
  293. package/dist/module/subgraph/queries/getIndexes.generated.d.ts +1 -0
  294. package/dist/module/subgraph/queries/getIndexes.generated.d.ts.map +1 -0
  295. package/dist/module/subgraph/queries/getIndexes.generated.js +2 -0
  296. package/dist/module/subgraph/queries/getIndexes.generated.js.map +1 -0
  297. package/dist/module/subgraph/queries/getStreams.generated.d.ts +1 -0
  298. package/dist/module/subgraph/queries/getStreams.generated.d.ts.map +1 -0
  299. package/dist/module/subgraph/queries/getStreams.generated.js +2 -0
  300. package/dist/module/subgraph/queries/getStreams.generated.js.map +1 -0
  301. package/dist/module/subgraph/queries/getTokens.generated.d.ts +1 -0
  302. package/dist/module/subgraph/queries/getTokens.generated.d.ts.map +1 -0
  303. package/dist/module/subgraph/queries/getTokens.generated.js +2 -0
  304. package/dist/module/subgraph/queries/getTokens.generated.js.map +1 -0
  305. package/dist/module/subgraph/schema.generated.d.ts +1 -0
  306. package/dist/module/subgraph/schema.generated.d.ts.map +1 -0
  307. package/dist/module/subgraph/schema.generated.js +2 -0
  308. package/dist/module/subgraph/schema.generated.js.map +1 -0
  309. package/dist/module/typechain/ERC20WithTokenInfo.d.ts +1 -0
  310. package/dist/module/typechain/ERC20WithTokenInfo.d.ts.map +1 -0
  311. package/dist/module/typechain/ERC20WithTokenInfo.js +2 -0
  312. package/dist/module/typechain/ERC20WithTokenInfo.js.map +1 -0
  313. package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +1 -0
  314. package/dist/module/typechain/IConstantFlowAgreementV1.d.ts.map +1 -0
  315. package/dist/module/typechain/IConstantFlowAgreementV1.js +2 -0
  316. package/dist/module/typechain/IConstantFlowAgreementV1.js.map +1 -0
  317. package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts +1 -0
  318. package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -0
  319. package/dist/module/typechain/IInstantDistributionAgreementV1.js +2 -0
  320. package/dist/module/typechain/IInstantDistributionAgreementV1.js.map +1 -0
  321. package/dist/module/typechain/IResolver.d.ts +7 -6
  322. package/dist/module/typechain/IResolver.d.ts.map +1 -0
  323. package/dist/module/typechain/IResolver.js +2 -0
  324. package/dist/module/typechain/IResolver.js.map +1 -0
  325. package/dist/module/typechain/SuperToken.d.ts +1 -0
  326. package/dist/module/typechain/SuperToken.d.ts.map +1 -0
  327. package/dist/module/typechain/SuperToken.js +2 -0
  328. package/dist/module/typechain/SuperToken.js.map +1 -0
  329. package/dist/module/typechain/Superfluid.d.ts +1 -0
  330. package/dist/module/typechain/Superfluid.d.ts.map +1 -0
  331. package/dist/module/typechain/Superfluid.js +2 -0
  332. package/dist/module/typechain/Superfluid.js.map +1 -0
  333. package/dist/module/typechain/SuperfluidLoader.d.ts +1 -0
  334. package/dist/module/typechain/SuperfluidLoader.d.ts.map +1 -0
  335. package/dist/module/typechain/SuperfluidLoader.js +2 -0
  336. package/dist/module/typechain/SuperfluidLoader.js.map +1 -0
  337. package/dist/module/typechain/TestToken.d.ts +1 -0
  338. package/dist/module/typechain/TestToken.d.ts.map +1 -0
  339. package/dist/module/typechain/TestToken.js +2 -0
  340. package/dist/module/typechain/TestToken.js.map +1 -0
  341. package/dist/module/typechain/common.d.ts +1 -0
  342. package/dist/module/typechain/common.d.ts.map +1 -0
  343. package/dist/module/typechain/common.js +2 -0
  344. package/dist/module/typechain/common.js.map +1 -0
  345. package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.d.ts +1 -0
  346. package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.d.ts.map +1 -0
  347. package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.js +238 -0
  348. package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.js.map +1 -0
  349. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +1 -0
  350. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -0
  351. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js +420 -0
  352. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -0
  353. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +1 -0
  354. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -0
  355. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js +961 -0
  356. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -0
  357. package/dist/module/typechain/factories/IResolver__factory.d.ts +1 -0
  358. package/dist/module/typechain/factories/IResolver__factory.d.ts.map +1 -0
  359. package/dist/module/typechain/factories/IResolver__factory.js +72 -0
  360. package/dist/module/typechain/factories/IResolver__factory.js.map +1 -0
  361. package/dist/module/typechain/factories/SuperToken__factory.d.ts +1 -0
  362. package/dist/module/typechain/factories/SuperToken__factory.d.ts.map +1 -0
  363. package/dist/module/typechain/factories/SuperToken__factory.js +1563 -0
  364. package/dist/module/typechain/factories/SuperToken__factory.js.map +1 -0
  365. package/dist/module/typechain/factories/SuperfluidLoader__factory.d.ts +1 -0
  366. package/dist/module/typechain/factories/SuperfluidLoader__factory.d.ts.map +1 -0
  367. package/dist/module/typechain/factories/SuperfluidLoader__factory.js +68 -0
  368. package/dist/module/typechain/factories/SuperfluidLoader__factory.js.map +1 -0
  369. package/dist/module/typechain/factories/Superfluid__factory.d.ts +1 -0
  370. package/dist/module/typechain/factories/Superfluid__factory.d.ts.map +1 -0
  371. package/dist/module/typechain/factories/Superfluid__factory.js +1173 -0
  372. package/dist/module/typechain/factories/Superfluid__factory.js.map +1 -0
  373. package/dist/module/typechain/factories/TestToken__factory.d.ts +1 -0
  374. package/dist/module/typechain/factories/TestToken__factory.d.ts.map +1 -0
  375. package/dist/module/typechain/factories/TestToken__factory.js +344 -0
  376. package/dist/module/typechain/factories/TestToken__factory.js.map +1 -0
  377. package/dist/module/typechain/index.d.ts +1 -0
  378. package/dist/module/typechain/index.d.ts.map +1 -0
  379. package/dist/{umd/typechain/index.d.ts → module/typechain/index.js} +1 -8
  380. package/dist/module/typechain/index.js.map +1 -0
  381. package/dist/module/types.d.ts +1 -0
  382. package/dist/module/types.d.ts.map +1 -0
  383. package/dist/module/types.js +2 -0
  384. package/dist/module/types.js.map +1 -0
  385. package/dist/module/utils.d.ts +6 -0
  386. package/dist/module/utils.d.ts.map +1 -0
  387. package/dist/module/utils.js +153 -0
  388. package/dist/module/utils.js.map +1 -0
  389. package/dist/module/validation.d.ts +1 -0
  390. package/dist/module/validation.d.ts.map +1 -0
  391. package/dist/module/validation.js +92 -0
  392. package/dist/module/validation.js.map +1 -0
  393. package/package.json +29 -15
  394. package/dist/umd/BatchCall.d.ts +0 -53
  395. package/dist/umd/ConstantFlowAgreementV1.d.ts +0 -74
  396. package/dist/umd/Framework.d.ts +0 -75
  397. package/dist/umd/Host.d.ts +0 -18
  398. package/dist/umd/InstantDistributionAgreementV1.d.ts +0 -107
  399. package/dist/umd/Operation.d.ts +0 -38
  400. package/dist/umd/Query.d.ts +0 -31
  401. package/dist/umd/SFError.d.ts +0 -13
  402. package/dist/umd/SuperToken.d.ts +0 -191
  403. package/dist/umd/Token.d.ts +0 -76
  404. package/dist/umd/constants.d.ts +0 -17
  405. package/dist/umd/events.d.ts +0 -255
  406. package/dist/umd/frameworkHelpers.d.ts +0 -20
  407. package/dist/umd/index.d.ts +0 -19
  408. package/dist/umd/index.js +0 -7599
  409. package/dist/umd/interfaces.d.ts +0 -304
  410. package/dist/umd/mapGetAllEventsQueryEvents.d.ts +0 -3
  411. package/dist/umd/ordering.d.ts +0 -13
  412. package/dist/umd/pagination.d.ts +0 -65
  413. package/dist/umd/subgraph/SubgraphClient.d.ts +0 -16
  414. package/dist/umd/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +0 -45
  415. package/dist/umd/subgraph/queries/getAllEvents.generated.d.ts +0 -651
  416. package/dist/umd/subgraph/queries/getIndexSubscriptions.generated.d.ts +0 -46
  417. package/dist/umd/subgraph/queries/getIndexes.generated.d.ts +0 -44
  418. package/dist/umd/subgraph/queries/getStreams.generated.d.ts +0 -58
  419. package/dist/umd/subgraph/queries/getTokens.generated.d.ts +0 -27
  420. package/dist/umd/subgraph/schema.generated.d.ts +0 -6478
  421. package/dist/umd/typechain/ERC20WithTokenInfo.d.ts +0 -159
  422. package/dist/umd/typechain/IConstantFlowAgreementV1.d.ts +0 -305
  423. package/dist/umd/typechain/IInstantDistributionAgreementV1.d.ts +0 -585
  424. package/dist/umd/typechain/IResolver.d.ts +0 -71
  425. package/dist/umd/typechain/SuperToken.d.ts +0 -1011
  426. package/dist/umd/typechain/Superfluid.d.ts +0 -780
  427. package/dist/umd/typechain/SuperfluidLoader.d.ts +0 -55
  428. package/dist/umd/typechain/TestToken.d.ts +0 -215
  429. package/dist/umd/typechain/common.d.ts +0 -21
  430. package/dist/umd/typechain/factories/ERC20WithTokenInfo__factory.d.ts +0 -35
  431. package/dist/umd/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +0 -35
  432. package/dist/umd/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +0 -35
  433. package/dist/umd/typechain/factories/IResolver__factory.d.ts +0 -35
  434. package/dist/umd/typechain/factories/SuperToken__factory.d.ts +0 -46
  435. package/dist/umd/typechain/factories/SuperfluidLoader__factory.d.ts +0 -37
  436. package/dist/umd/typechain/factories/Superfluid__factory.d.ts +0 -82
  437. package/dist/umd/typechain/factories/TestToken__factory.d.ts +0 -46
  438. package/dist/umd/types.d.ts +0 -2
  439. package/dist/umd/utils.d.ts +0 -106
  440. package/dist/umd/validation.d.ts +0 -8
@@ -0,0 +1,965 @@
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.IInstantDistributionAgreementV1__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "contract ISuperfluidToken",
15
+ name: "token",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: true,
20
+ internalType: "address",
21
+ name: "publisher",
22
+ type: "address",
23
+ },
24
+ {
25
+ indexed: true,
26
+ internalType: "uint32",
27
+ name: "indexId",
28
+ type: "uint32",
29
+ },
30
+ {
31
+ indexed: false,
32
+ internalType: "bytes",
33
+ name: "userData",
34
+ type: "bytes",
35
+ },
36
+ ],
37
+ name: "IndexCreated",
38
+ type: "event",
39
+ },
40
+ {
41
+ anonymous: false,
42
+ inputs: [
43
+ {
44
+ indexed: true,
45
+ internalType: "contract ISuperfluidToken",
46
+ name: "token",
47
+ type: "address",
48
+ },
49
+ {
50
+ indexed: true,
51
+ internalType: "address",
52
+ name: "publisher",
53
+ type: "address",
54
+ },
55
+ {
56
+ indexed: true,
57
+ internalType: "uint32",
58
+ name: "indexId",
59
+ type: "uint32",
60
+ },
61
+ {
62
+ indexed: false,
63
+ internalType: "address",
64
+ name: "subscriber",
65
+ type: "address",
66
+ },
67
+ {
68
+ indexed: false,
69
+ internalType: "uint256",
70
+ name: "amount",
71
+ type: "uint256",
72
+ },
73
+ ],
74
+ name: "IndexDistributionClaimed",
75
+ type: "event",
76
+ },
77
+ {
78
+ anonymous: false,
79
+ inputs: [
80
+ {
81
+ indexed: true,
82
+ internalType: "contract ISuperfluidToken",
83
+ name: "token",
84
+ type: "address",
85
+ },
86
+ {
87
+ indexed: true,
88
+ internalType: "address",
89
+ name: "publisher",
90
+ type: "address",
91
+ },
92
+ {
93
+ indexed: true,
94
+ internalType: "uint32",
95
+ name: "indexId",
96
+ type: "uint32",
97
+ },
98
+ {
99
+ indexed: false,
100
+ internalType: "address",
101
+ name: "subscriber",
102
+ type: "address",
103
+ },
104
+ {
105
+ indexed: false,
106
+ internalType: "bytes",
107
+ name: "userData",
108
+ type: "bytes",
109
+ },
110
+ ],
111
+ name: "IndexSubscribed",
112
+ type: "event",
113
+ },
114
+ {
115
+ anonymous: false,
116
+ inputs: [
117
+ {
118
+ indexed: true,
119
+ internalType: "contract ISuperfluidToken",
120
+ name: "token",
121
+ type: "address",
122
+ },
123
+ {
124
+ indexed: true,
125
+ internalType: "address",
126
+ name: "publisher",
127
+ type: "address",
128
+ },
129
+ {
130
+ indexed: true,
131
+ internalType: "uint32",
132
+ name: "indexId",
133
+ type: "uint32",
134
+ },
135
+ {
136
+ indexed: false,
137
+ internalType: "address",
138
+ name: "subscriber",
139
+ type: "address",
140
+ },
141
+ {
142
+ indexed: false,
143
+ internalType: "uint128",
144
+ name: "units",
145
+ type: "uint128",
146
+ },
147
+ {
148
+ indexed: false,
149
+ internalType: "bytes",
150
+ name: "userData",
151
+ type: "bytes",
152
+ },
153
+ ],
154
+ name: "IndexUnitsUpdated",
155
+ type: "event",
156
+ },
157
+ {
158
+ anonymous: false,
159
+ inputs: [
160
+ {
161
+ indexed: true,
162
+ internalType: "contract ISuperfluidToken",
163
+ name: "token",
164
+ type: "address",
165
+ },
166
+ {
167
+ indexed: true,
168
+ internalType: "address",
169
+ name: "publisher",
170
+ type: "address",
171
+ },
172
+ {
173
+ indexed: true,
174
+ internalType: "uint32",
175
+ name: "indexId",
176
+ type: "uint32",
177
+ },
178
+ {
179
+ indexed: false,
180
+ internalType: "address",
181
+ name: "subscriber",
182
+ type: "address",
183
+ },
184
+ {
185
+ indexed: false,
186
+ internalType: "bytes",
187
+ name: "userData",
188
+ type: "bytes",
189
+ },
190
+ ],
191
+ name: "IndexUnsubscribed",
192
+ type: "event",
193
+ },
194
+ {
195
+ anonymous: false,
196
+ inputs: [
197
+ {
198
+ indexed: true,
199
+ internalType: "contract ISuperfluidToken",
200
+ name: "token",
201
+ type: "address",
202
+ },
203
+ {
204
+ indexed: true,
205
+ internalType: "address",
206
+ name: "publisher",
207
+ type: "address",
208
+ },
209
+ {
210
+ indexed: true,
211
+ internalType: "uint32",
212
+ name: "indexId",
213
+ type: "uint32",
214
+ },
215
+ {
216
+ indexed: false,
217
+ internalType: "uint128",
218
+ name: "oldIndexValue",
219
+ type: "uint128",
220
+ },
221
+ {
222
+ indexed: false,
223
+ internalType: "uint128",
224
+ name: "newIndexValue",
225
+ type: "uint128",
226
+ },
227
+ {
228
+ indexed: false,
229
+ internalType: "uint128",
230
+ name: "totalUnitsPending",
231
+ type: "uint128",
232
+ },
233
+ {
234
+ indexed: false,
235
+ internalType: "uint128",
236
+ name: "totalUnitsApproved",
237
+ type: "uint128",
238
+ },
239
+ {
240
+ indexed: false,
241
+ internalType: "bytes",
242
+ name: "userData",
243
+ type: "bytes",
244
+ },
245
+ ],
246
+ name: "IndexUpdated",
247
+ type: "event",
248
+ },
249
+ {
250
+ anonymous: false,
251
+ inputs: [
252
+ {
253
+ indexed: true,
254
+ internalType: "contract ISuperfluidToken",
255
+ name: "token",
256
+ type: "address",
257
+ },
258
+ {
259
+ indexed: true,
260
+ internalType: "address",
261
+ name: "subscriber",
262
+ type: "address",
263
+ },
264
+ {
265
+ indexed: false,
266
+ internalType: "address",
267
+ name: "publisher",
268
+ type: "address",
269
+ },
270
+ {
271
+ indexed: false,
272
+ internalType: "uint32",
273
+ name: "indexId",
274
+ type: "uint32",
275
+ },
276
+ {
277
+ indexed: false,
278
+ internalType: "bytes",
279
+ name: "userData",
280
+ type: "bytes",
281
+ },
282
+ ],
283
+ name: "SubscriptionApproved",
284
+ type: "event",
285
+ },
286
+ {
287
+ anonymous: false,
288
+ inputs: [
289
+ {
290
+ indexed: true,
291
+ internalType: "contract ISuperfluidToken",
292
+ name: "token",
293
+ type: "address",
294
+ },
295
+ {
296
+ indexed: true,
297
+ internalType: "address",
298
+ name: "subscriber",
299
+ type: "address",
300
+ },
301
+ {
302
+ indexed: false,
303
+ internalType: "address",
304
+ name: "publisher",
305
+ type: "address",
306
+ },
307
+ {
308
+ indexed: false,
309
+ internalType: "uint32",
310
+ name: "indexId",
311
+ type: "uint32",
312
+ },
313
+ {
314
+ indexed: false,
315
+ internalType: "uint256",
316
+ name: "amount",
317
+ type: "uint256",
318
+ },
319
+ ],
320
+ name: "SubscriptionDistributionClaimed",
321
+ type: "event",
322
+ },
323
+ {
324
+ anonymous: false,
325
+ inputs: [
326
+ {
327
+ indexed: true,
328
+ internalType: "contract ISuperfluidToken",
329
+ name: "token",
330
+ type: "address",
331
+ },
332
+ {
333
+ indexed: true,
334
+ internalType: "address",
335
+ name: "subscriber",
336
+ type: "address",
337
+ },
338
+ {
339
+ indexed: false,
340
+ internalType: "address",
341
+ name: "publisher",
342
+ type: "address",
343
+ },
344
+ {
345
+ indexed: false,
346
+ internalType: "uint32",
347
+ name: "indexId",
348
+ type: "uint32",
349
+ },
350
+ {
351
+ indexed: false,
352
+ internalType: "bytes",
353
+ name: "userData",
354
+ type: "bytes",
355
+ },
356
+ ],
357
+ name: "SubscriptionRevoked",
358
+ type: "event",
359
+ },
360
+ {
361
+ anonymous: false,
362
+ inputs: [
363
+ {
364
+ indexed: true,
365
+ internalType: "contract ISuperfluidToken",
366
+ name: "token",
367
+ type: "address",
368
+ },
369
+ {
370
+ indexed: true,
371
+ internalType: "address",
372
+ name: "subscriber",
373
+ type: "address",
374
+ },
375
+ {
376
+ indexed: false,
377
+ internalType: "address",
378
+ name: "publisher",
379
+ type: "address",
380
+ },
381
+ {
382
+ indexed: false,
383
+ internalType: "uint32",
384
+ name: "indexId",
385
+ type: "uint32",
386
+ },
387
+ {
388
+ indexed: false,
389
+ internalType: "uint128",
390
+ name: "units",
391
+ type: "uint128",
392
+ },
393
+ {
394
+ indexed: false,
395
+ internalType: "bytes",
396
+ name: "userData",
397
+ type: "bytes",
398
+ },
399
+ ],
400
+ name: "SubscriptionUnitsUpdated",
401
+ type: "event",
402
+ },
403
+ {
404
+ inputs: [],
405
+ name: "initialize",
406
+ outputs: [],
407
+ stateMutability: "nonpayable",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [
412
+ {
413
+ internalType: "contract ISuperfluidToken",
414
+ name: "token",
415
+ type: "address",
416
+ },
417
+ {
418
+ internalType: "address",
419
+ name: "account",
420
+ type: "address",
421
+ },
422
+ {
423
+ internalType: "uint256",
424
+ name: "time",
425
+ type: "uint256",
426
+ },
427
+ ],
428
+ name: "realtimeBalanceOf",
429
+ outputs: [
430
+ {
431
+ internalType: "int256",
432
+ name: "dynamicBalance",
433
+ type: "int256",
434
+ },
435
+ {
436
+ internalType: "uint256",
437
+ name: "deposit",
438
+ type: "uint256",
439
+ },
440
+ {
441
+ internalType: "uint256",
442
+ name: "owedDeposit",
443
+ type: "uint256",
444
+ },
445
+ ],
446
+ stateMutability: "view",
447
+ type: "function",
448
+ },
449
+ {
450
+ inputs: [],
451
+ name: "agreementType",
452
+ outputs: [
453
+ {
454
+ internalType: "bytes32",
455
+ name: "",
456
+ type: "bytes32",
457
+ },
458
+ ],
459
+ stateMutability: "pure",
460
+ type: "function",
461
+ },
462
+ {
463
+ inputs: [
464
+ {
465
+ internalType: "contract ISuperfluidToken",
466
+ name: "token",
467
+ type: "address",
468
+ },
469
+ {
470
+ internalType: "uint32",
471
+ name: "indexId",
472
+ type: "uint32",
473
+ },
474
+ {
475
+ internalType: "bytes",
476
+ name: "ctx",
477
+ type: "bytes",
478
+ },
479
+ ],
480
+ name: "createIndex",
481
+ outputs: [
482
+ {
483
+ internalType: "bytes",
484
+ name: "newCtx",
485
+ type: "bytes",
486
+ },
487
+ ],
488
+ stateMutability: "nonpayable",
489
+ type: "function",
490
+ },
491
+ {
492
+ inputs: [
493
+ {
494
+ internalType: "contract ISuperfluidToken",
495
+ name: "token",
496
+ type: "address",
497
+ },
498
+ {
499
+ internalType: "address",
500
+ name: "publisher",
501
+ type: "address",
502
+ },
503
+ {
504
+ internalType: "uint32",
505
+ name: "indexId",
506
+ type: "uint32",
507
+ },
508
+ ],
509
+ name: "getIndex",
510
+ outputs: [
511
+ {
512
+ internalType: "bool",
513
+ name: "exist",
514
+ type: "bool",
515
+ },
516
+ {
517
+ internalType: "uint128",
518
+ name: "indexValue",
519
+ type: "uint128",
520
+ },
521
+ {
522
+ internalType: "uint128",
523
+ name: "totalUnitsApproved",
524
+ type: "uint128",
525
+ },
526
+ {
527
+ internalType: "uint128",
528
+ name: "totalUnitsPending",
529
+ type: "uint128",
530
+ },
531
+ ],
532
+ stateMutability: "view",
533
+ type: "function",
534
+ },
535
+ {
536
+ inputs: [
537
+ {
538
+ internalType: "contract ISuperfluidToken",
539
+ name: "token",
540
+ type: "address",
541
+ },
542
+ {
543
+ internalType: "address",
544
+ name: "publisher",
545
+ type: "address",
546
+ },
547
+ {
548
+ internalType: "uint32",
549
+ name: "indexId",
550
+ type: "uint32",
551
+ },
552
+ {
553
+ internalType: "uint256",
554
+ name: "amount",
555
+ type: "uint256",
556
+ },
557
+ ],
558
+ name: "calculateDistribution",
559
+ outputs: [
560
+ {
561
+ internalType: "uint256",
562
+ name: "actualAmount",
563
+ type: "uint256",
564
+ },
565
+ {
566
+ internalType: "uint128",
567
+ name: "newIndexValue",
568
+ type: "uint128",
569
+ },
570
+ ],
571
+ stateMutability: "view",
572
+ type: "function",
573
+ },
574
+ {
575
+ inputs: [
576
+ {
577
+ internalType: "contract ISuperfluidToken",
578
+ name: "token",
579
+ type: "address",
580
+ },
581
+ {
582
+ internalType: "uint32",
583
+ name: "indexId",
584
+ type: "uint32",
585
+ },
586
+ {
587
+ internalType: "uint128",
588
+ name: "indexValue",
589
+ type: "uint128",
590
+ },
591
+ {
592
+ internalType: "bytes",
593
+ name: "ctx",
594
+ type: "bytes",
595
+ },
596
+ ],
597
+ name: "updateIndex",
598
+ outputs: [
599
+ {
600
+ internalType: "bytes",
601
+ name: "newCtx",
602
+ type: "bytes",
603
+ },
604
+ ],
605
+ stateMutability: "nonpayable",
606
+ type: "function",
607
+ },
608
+ {
609
+ inputs: [
610
+ {
611
+ internalType: "contract ISuperfluidToken",
612
+ name: "token",
613
+ type: "address",
614
+ },
615
+ {
616
+ internalType: "uint32",
617
+ name: "indexId",
618
+ type: "uint32",
619
+ },
620
+ {
621
+ internalType: "uint256",
622
+ name: "amount",
623
+ type: "uint256",
624
+ },
625
+ {
626
+ internalType: "bytes",
627
+ name: "ctx",
628
+ type: "bytes",
629
+ },
630
+ ],
631
+ name: "distribute",
632
+ outputs: [
633
+ {
634
+ internalType: "bytes",
635
+ name: "newCtx",
636
+ type: "bytes",
637
+ },
638
+ ],
639
+ stateMutability: "nonpayable",
640
+ type: "function",
641
+ },
642
+ {
643
+ inputs: [
644
+ {
645
+ internalType: "contract ISuperfluidToken",
646
+ name: "token",
647
+ type: "address",
648
+ },
649
+ {
650
+ internalType: "address",
651
+ name: "publisher",
652
+ type: "address",
653
+ },
654
+ {
655
+ internalType: "uint32",
656
+ name: "indexId",
657
+ type: "uint32",
658
+ },
659
+ {
660
+ internalType: "bytes",
661
+ name: "ctx",
662
+ type: "bytes",
663
+ },
664
+ ],
665
+ name: "approveSubscription",
666
+ outputs: [
667
+ {
668
+ internalType: "bytes",
669
+ name: "newCtx",
670
+ type: "bytes",
671
+ },
672
+ ],
673
+ stateMutability: "nonpayable",
674
+ type: "function",
675
+ },
676
+ {
677
+ inputs: [
678
+ {
679
+ internalType: "contract ISuperfluidToken",
680
+ name: "token",
681
+ type: "address",
682
+ },
683
+ {
684
+ internalType: "address",
685
+ name: "publisher",
686
+ type: "address",
687
+ },
688
+ {
689
+ internalType: "uint32",
690
+ name: "indexId",
691
+ type: "uint32",
692
+ },
693
+ {
694
+ internalType: "bytes",
695
+ name: "ctx",
696
+ type: "bytes",
697
+ },
698
+ ],
699
+ name: "revokeSubscription",
700
+ outputs: [
701
+ {
702
+ internalType: "bytes",
703
+ name: "newCtx",
704
+ type: "bytes",
705
+ },
706
+ ],
707
+ stateMutability: "nonpayable",
708
+ type: "function",
709
+ },
710
+ {
711
+ inputs: [
712
+ {
713
+ internalType: "contract ISuperfluidToken",
714
+ name: "token",
715
+ type: "address",
716
+ },
717
+ {
718
+ internalType: "uint32",
719
+ name: "indexId",
720
+ type: "uint32",
721
+ },
722
+ {
723
+ internalType: "address",
724
+ name: "subscriber",
725
+ type: "address",
726
+ },
727
+ {
728
+ internalType: "uint128",
729
+ name: "units",
730
+ type: "uint128",
731
+ },
732
+ {
733
+ internalType: "bytes",
734
+ name: "ctx",
735
+ type: "bytes",
736
+ },
737
+ ],
738
+ name: "updateSubscription",
739
+ outputs: [
740
+ {
741
+ internalType: "bytes",
742
+ name: "newCtx",
743
+ type: "bytes",
744
+ },
745
+ ],
746
+ stateMutability: "nonpayable",
747
+ type: "function",
748
+ },
749
+ {
750
+ inputs: [
751
+ {
752
+ internalType: "contract ISuperfluidToken",
753
+ name: "token",
754
+ type: "address",
755
+ },
756
+ {
757
+ internalType: "address",
758
+ name: "publisher",
759
+ type: "address",
760
+ },
761
+ {
762
+ internalType: "uint32",
763
+ name: "indexId",
764
+ type: "uint32",
765
+ },
766
+ {
767
+ internalType: "address",
768
+ name: "subscriber",
769
+ type: "address",
770
+ },
771
+ ],
772
+ name: "getSubscription",
773
+ outputs: [
774
+ {
775
+ internalType: "bool",
776
+ name: "exist",
777
+ type: "bool",
778
+ },
779
+ {
780
+ internalType: "bool",
781
+ name: "approved",
782
+ type: "bool",
783
+ },
784
+ {
785
+ internalType: "uint128",
786
+ name: "units",
787
+ type: "uint128",
788
+ },
789
+ {
790
+ internalType: "uint256",
791
+ name: "pendingDistribution",
792
+ type: "uint256",
793
+ },
794
+ ],
795
+ stateMutability: "view",
796
+ type: "function",
797
+ },
798
+ {
799
+ inputs: [
800
+ {
801
+ internalType: "contract ISuperfluidToken",
802
+ name: "token",
803
+ type: "address",
804
+ },
805
+ {
806
+ internalType: "bytes32",
807
+ name: "agreementId",
808
+ type: "bytes32",
809
+ },
810
+ ],
811
+ name: "getSubscriptionByID",
812
+ outputs: [
813
+ {
814
+ internalType: "address",
815
+ name: "publisher",
816
+ type: "address",
817
+ },
818
+ {
819
+ internalType: "uint32",
820
+ name: "indexId",
821
+ type: "uint32",
822
+ },
823
+ {
824
+ internalType: "bool",
825
+ name: "approved",
826
+ type: "bool",
827
+ },
828
+ {
829
+ internalType: "uint128",
830
+ name: "units",
831
+ type: "uint128",
832
+ },
833
+ {
834
+ internalType: "uint256",
835
+ name: "pendingDistribution",
836
+ type: "uint256",
837
+ },
838
+ ],
839
+ stateMutability: "view",
840
+ type: "function",
841
+ },
842
+ {
843
+ inputs: [
844
+ {
845
+ internalType: "contract ISuperfluidToken",
846
+ name: "token",
847
+ type: "address",
848
+ },
849
+ {
850
+ internalType: "address",
851
+ name: "subscriber",
852
+ type: "address",
853
+ },
854
+ ],
855
+ name: "listSubscriptions",
856
+ outputs: [
857
+ {
858
+ internalType: "address[]",
859
+ name: "publishers",
860
+ type: "address[]",
861
+ },
862
+ {
863
+ internalType: "uint32[]",
864
+ name: "indexIds",
865
+ type: "uint32[]",
866
+ },
867
+ {
868
+ internalType: "uint128[]",
869
+ name: "unitsList",
870
+ type: "uint128[]",
871
+ },
872
+ ],
873
+ stateMutability: "view",
874
+ type: "function",
875
+ },
876
+ {
877
+ inputs: [
878
+ {
879
+ internalType: "contract ISuperfluidToken",
880
+ name: "token",
881
+ type: "address",
882
+ },
883
+ {
884
+ internalType: "address",
885
+ name: "publisher",
886
+ type: "address",
887
+ },
888
+ {
889
+ internalType: "uint32",
890
+ name: "indexId",
891
+ type: "uint32",
892
+ },
893
+ {
894
+ internalType: "address",
895
+ name: "subscriber",
896
+ type: "address",
897
+ },
898
+ {
899
+ internalType: "bytes",
900
+ name: "ctx",
901
+ type: "bytes",
902
+ },
903
+ ],
904
+ name: "deleteSubscription",
905
+ outputs: [
906
+ {
907
+ internalType: "bytes",
908
+ name: "newCtx",
909
+ type: "bytes",
910
+ },
911
+ ],
912
+ stateMutability: "nonpayable",
913
+ type: "function",
914
+ },
915
+ {
916
+ inputs: [
917
+ {
918
+ internalType: "contract ISuperfluidToken",
919
+ name: "token",
920
+ type: "address",
921
+ },
922
+ {
923
+ internalType: "address",
924
+ name: "publisher",
925
+ type: "address",
926
+ },
927
+ {
928
+ internalType: "uint32",
929
+ name: "indexId",
930
+ type: "uint32",
931
+ },
932
+ {
933
+ internalType: "address",
934
+ name: "subscriber",
935
+ type: "address",
936
+ },
937
+ {
938
+ internalType: "bytes",
939
+ name: "ctx",
940
+ type: "bytes",
941
+ },
942
+ ],
943
+ name: "claim",
944
+ outputs: [
945
+ {
946
+ internalType: "bytes",
947
+ name: "newCtx",
948
+ type: "bytes",
949
+ },
950
+ ],
951
+ stateMutability: "nonpayable",
952
+ type: "function",
953
+ },
954
+ ];
955
+ class IInstantDistributionAgreementV1__factory {
956
+ static createInterface() {
957
+ return new ethers_1.utils.Interface(_abi);
958
+ }
959
+ static connect(address, signerOrProvider) {
960
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
961
+ }
962
+ }
963
+ exports.IInstantDistributionAgreementV1__factory = IInstantDistributionAgreementV1__factory;
964
+ IInstantDistributionAgreementV1__factory.abi = _abi;
965
+ //# sourceMappingURL=IInstantDistributionAgreementV1__factory.js.map