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