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