@superfluid-finance/sdk-core 0.1.1-dev.ed7f292.0 → 0.2.1-dev.3f01c4b.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 +63560 -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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +48 -34
  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,1173 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, utils } from "ethers";
5
+ const _abi = [
6
+ {
7
+ inputs: [
8
+ {
9
+ internalType: "bool",
10
+ name: "nonUpgradable",
11
+ type: "bool",
12
+ },
13
+ {
14
+ internalType: "bool",
15
+ name: "appWhiteListingEnabled",
16
+ type: "bool",
17
+ },
18
+ ],
19
+ stateMutability: "nonpayable",
20
+ type: "constructor",
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ indexed: false,
27
+ internalType: "bytes32",
28
+ name: "agreementType",
29
+ type: "bytes32",
30
+ },
31
+ {
32
+ indexed: false,
33
+ internalType: "address",
34
+ name: "code",
35
+ type: "address",
36
+ },
37
+ ],
38
+ name: "AgreementClassRegistered",
39
+ type: "event",
40
+ },
41
+ {
42
+ anonymous: false,
43
+ inputs: [
44
+ {
45
+ indexed: false,
46
+ internalType: "bytes32",
47
+ name: "agreementType",
48
+ type: "bytes32",
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: "address",
53
+ name: "code",
54
+ type: "address",
55
+ },
56
+ ],
57
+ name: "AgreementClassUpdated",
58
+ type: "event",
59
+ },
60
+ {
61
+ anonymous: false,
62
+ inputs: [
63
+ {
64
+ indexed: true,
65
+ internalType: "contract ISuperApp",
66
+ name: "app",
67
+ type: "address",
68
+ },
69
+ ],
70
+ name: "AppRegistered",
71
+ type: "event",
72
+ },
73
+ {
74
+ anonymous: false,
75
+ inputs: [
76
+ {
77
+ indexed: false,
78
+ internalType: "bytes32",
79
+ name: "uuid",
80
+ type: "bytes32",
81
+ },
82
+ {
83
+ indexed: false,
84
+ internalType: "address",
85
+ name: "codeAddress",
86
+ type: "address",
87
+ },
88
+ ],
89
+ name: "CodeUpdated",
90
+ type: "event",
91
+ },
92
+ {
93
+ anonymous: false,
94
+ inputs: [
95
+ {
96
+ indexed: false,
97
+ internalType: "contract ISuperfluidGovernance",
98
+ name: "oldGov",
99
+ type: "address",
100
+ },
101
+ {
102
+ indexed: false,
103
+ internalType: "contract ISuperfluidGovernance",
104
+ name: "newGov",
105
+ type: "address",
106
+ },
107
+ ],
108
+ name: "GovernanceReplaced",
109
+ type: "event",
110
+ },
111
+ {
112
+ anonymous: false,
113
+ inputs: [
114
+ {
115
+ indexed: true,
116
+ internalType: "contract ISuperApp",
117
+ name: "app",
118
+ type: "address",
119
+ },
120
+ {
121
+ indexed: false,
122
+ internalType: "uint256",
123
+ name: "reason",
124
+ type: "uint256",
125
+ },
126
+ ],
127
+ name: "Jail",
128
+ type: "event",
129
+ },
130
+ {
131
+ anonymous: false,
132
+ inputs: [
133
+ {
134
+ indexed: false,
135
+ internalType: "contract ISuperTokenFactory",
136
+ name: "newFactory",
137
+ type: "address",
138
+ },
139
+ ],
140
+ name: "SuperTokenFactoryUpdated",
141
+ type: "event",
142
+ },
143
+ {
144
+ anonymous: false,
145
+ inputs: [
146
+ {
147
+ indexed: true,
148
+ internalType: "contract ISuperToken",
149
+ name: "token",
150
+ type: "address",
151
+ },
152
+ {
153
+ indexed: false,
154
+ internalType: "address",
155
+ name: "code",
156
+ type: "address",
157
+ },
158
+ ],
159
+ name: "SuperTokenLogicUpdated",
160
+ type: "event",
161
+ },
162
+ {
163
+ inputs: [],
164
+ name: "APP_WHITE_LISTING_ENABLED",
165
+ outputs: [
166
+ {
167
+ internalType: "bool",
168
+ name: "",
169
+ type: "bool",
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function",
174
+ },
175
+ {
176
+ inputs: [],
177
+ name: "CALLBACK_GAS_LIMIT",
178
+ outputs: [
179
+ {
180
+ internalType: "uint64",
181
+ name: "",
182
+ type: "uint64",
183
+ },
184
+ ],
185
+ stateMutability: "view",
186
+ type: "function",
187
+ },
188
+ {
189
+ inputs: [],
190
+ name: "MAX_APP_LEVEL",
191
+ outputs: [
192
+ {
193
+ internalType: "uint256",
194
+ name: "",
195
+ type: "uint256",
196
+ },
197
+ ],
198
+ stateMutability: "view",
199
+ type: "function",
200
+ },
201
+ {
202
+ inputs: [],
203
+ name: "NON_UPGRADABLE_DEPLOYMENT",
204
+ outputs: [
205
+ {
206
+ internalType: "bool",
207
+ name: "",
208
+ type: "bool",
209
+ },
210
+ ],
211
+ stateMutability: "view",
212
+ type: "function",
213
+ },
214
+ {
215
+ inputs: [],
216
+ name: "getCodeAddress",
217
+ outputs: [
218
+ {
219
+ internalType: "address",
220
+ name: "codeAddress",
221
+ type: "address",
222
+ },
223
+ ],
224
+ stateMutability: "view",
225
+ type: "function",
226
+ },
227
+ {
228
+ inputs: [
229
+ {
230
+ internalType: "contract ISuperfluidGovernance",
231
+ name: "gov",
232
+ type: "address",
233
+ },
234
+ ],
235
+ name: "initialize",
236
+ outputs: [],
237
+ stateMutability: "nonpayable",
238
+ type: "function",
239
+ },
240
+ {
241
+ inputs: [],
242
+ name: "proxiableUUID",
243
+ outputs: [
244
+ {
245
+ internalType: "bytes32",
246
+ name: "",
247
+ type: "bytes32",
248
+ },
249
+ ],
250
+ stateMutability: "pure",
251
+ type: "function",
252
+ },
253
+ {
254
+ inputs: [
255
+ {
256
+ internalType: "address",
257
+ name: "newAddress",
258
+ type: "address",
259
+ },
260
+ ],
261
+ name: "updateCode",
262
+ outputs: [],
263
+ stateMutability: "nonpayable",
264
+ type: "function",
265
+ },
266
+ {
267
+ inputs: [],
268
+ name: "getGovernance",
269
+ outputs: [
270
+ {
271
+ internalType: "contract ISuperfluidGovernance",
272
+ name: "",
273
+ type: "address",
274
+ },
275
+ ],
276
+ stateMutability: "view",
277
+ type: "function",
278
+ },
279
+ {
280
+ inputs: [
281
+ {
282
+ internalType: "contract ISuperfluidGovernance",
283
+ name: "newGov",
284
+ type: "address",
285
+ },
286
+ ],
287
+ name: "replaceGovernance",
288
+ outputs: [],
289
+ stateMutability: "nonpayable",
290
+ type: "function",
291
+ },
292
+ {
293
+ inputs: [
294
+ {
295
+ internalType: "contract ISuperAgreement",
296
+ name: "agreementClassLogic",
297
+ type: "address",
298
+ },
299
+ ],
300
+ name: "registerAgreementClass",
301
+ outputs: [],
302
+ stateMutability: "nonpayable",
303
+ type: "function",
304
+ },
305
+ {
306
+ inputs: [
307
+ {
308
+ internalType: "contract ISuperAgreement",
309
+ name: "agreementClassLogic",
310
+ type: "address",
311
+ },
312
+ ],
313
+ name: "updateAgreementClass",
314
+ outputs: [],
315
+ stateMutability: "nonpayable",
316
+ type: "function",
317
+ },
318
+ {
319
+ inputs: [
320
+ {
321
+ internalType: "bytes32",
322
+ name: "agreementType",
323
+ type: "bytes32",
324
+ },
325
+ ],
326
+ name: "isAgreementTypeListed",
327
+ outputs: [
328
+ {
329
+ internalType: "bool",
330
+ name: "yes",
331
+ type: "bool",
332
+ },
333
+ ],
334
+ stateMutability: "view",
335
+ type: "function",
336
+ },
337
+ {
338
+ inputs: [
339
+ {
340
+ internalType: "contract ISuperAgreement",
341
+ name: "agreementClass",
342
+ type: "address",
343
+ },
344
+ ],
345
+ name: "isAgreementClassListed",
346
+ outputs: [
347
+ {
348
+ internalType: "bool",
349
+ name: "yes",
350
+ type: "bool",
351
+ },
352
+ ],
353
+ stateMutability: "view",
354
+ type: "function",
355
+ },
356
+ {
357
+ inputs: [
358
+ {
359
+ internalType: "bytes32",
360
+ name: "agreementType",
361
+ type: "bytes32",
362
+ },
363
+ ],
364
+ name: "getAgreementClass",
365
+ outputs: [
366
+ {
367
+ internalType: "contract ISuperAgreement",
368
+ name: "agreementClass",
369
+ type: "address",
370
+ },
371
+ ],
372
+ stateMutability: "view",
373
+ type: "function",
374
+ },
375
+ {
376
+ inputs: [
377
+ {
378
+ internalType: "uint256",
379
+ name: "bitmap",
380
+ type: "uint256",
381
+ },
382
+ ],
383
+ name: "mapAgreementClasses",
384
+ outputs: [
385
+ {
386
+ internalType: "contract ISuperAgreement[]",
387
+ name: "agreementClasses",
388
+ type: "address[]",
389
+ },
390
+ ],
391
+ stateMutability: "view",
392
+ type: "function",
393
+ },
394
+ {
395
+ inputs: [
396
+ {
397
+ internalType: "uint256",
398
+ name: "bitmap",
399
+ type: "uint256",
400
+ },
401
+ {
402
+ internalType: "bytes32",
403
+ name: "agreementType",
404
+ type: "bytes32",
405
+ },
406
+ ],
407
+ name: "addToAgreementClassesBitmap",
408
+ outputs: [
409
+ {
410
+ internalType: "uint256",
411
+ name: "newBitmap",
412
+ type: "uint256",
413
+ },
414
+ ],
415
+ stateMutability: "view",
416
+ type: "function",
417
+ },
418
+ {
419
+ inputs: [
420
+ {
421
+ internalType: "uint256",
422
+ name: "bitmap",
423
+ type: "uint256",
424
+ },
425
+ {
426
+ internalType: "bytes32",
427
+ name: "agreementType",
428
+ type: "bytes32",
429
+ },
430
+ ],
431
+ name: "removeFromAgreementClassesBitmap",
432
+ outputs: [
433
+ {
434
+ internalType: "uint256",
435
+ name: "newBitmap",
436
+ type: "uint256",
437
+ },
438
+ ],
439
+ stateMutability: "view",
440
+ type: "function",
441
+ },
442
+ {
443
+ inputs: [],
444
+ name: "getSuperTokenFactory",
445
+ outputs: [
446
+ {
447
+ internalType: "contract ISuperTokenFactory",
448
+ name: "factory",
449
+ type: "address",
450
+ },
451
+ ],
452
+ stateMutability: "view",
453
+ type: "function",
454
+ },
455
+ {
456
+ inputs: [],
457
+ name: "getSuperTokenFactoryLogic",
458
+ outputs: [
459
+ {
460
+ internalType: "address",
461
+ name: "logic",
462
+ type: "address",
463
+ },
464
+ ],
465
+ stateMutability: "view",
466
+ type: "function",
467
+ },
468
+ {
469
+ inputs: [
470
+ {
471
+ internalType: "contract ISuperTokenFactory",
472
+ name: "newFactory",
473
+ type: "address",
474
+ },
475
+ ],
476
+ name: "updateSuperTokenFactory",
477
+ outputs: [],
478
+ stateMutability: "nonpayable",
479
+ type: "function",
480
+ },
481
+ {
482
+ inputs: [
483
+ {
484
+ internalType: "contract ISuperToken",
485
+ name: "token",
486
+ type: "address",
487
+ },
488
+ ],
489
+ name: "updateSuperTokenLogic",
490
+ outputs: [],
491
+ stateMutability: "nonpayable",
492
+ type: "function",
493
+ },
494
+ {
495
+ inputs: [
496
+ {
497
+ internalType: "uint256",
498
+ name: "configWord",
499
+ type: "uint256",
500
+ },
501
+ ],
502
+ name: "registerApp",
503
+ outputs: [],
504
+ stateMutability: "nonpayable",
505
+ type: "function",
506
+ },
507
+ {
508
+ inputs: [
509
+ {
510
+ internalType: "uint256",
511
+ name: "configWord",
512
+ type: "uint256",
513
+ },
514
+ {
515
+ internalType: "string",
516
+ name: "registrationKey",
517
+ type: "string",
518
+ },
519
+ ],
520
+ name: "registerAppWithKey",
521
+ outputs: [],
522
+ stateMutability: "nonpayable",
523
+ type: "function",
524
+ },
525
+ {
526
+ inputs: [
527
+ {
528
+ internalType: "contract ISuperApp",
529
+ name: "app",
530
+ type: "address",
531
+ },
532
+ {
533
+ internalType: "uint256",
534
+ name: "configWord",
535
+ type: "uint256",
536
+ },
537
+ ],
538
+ name: "registerAppByFactory",
539
+ outputs: [],
540
+ stateMutability: "nonpayable",
541
+ type: "function",
542
+ },
543
+ {
544
+ inputs: [
545
+ {
546
+ internalType: "contract ISuperApp",
547
+ name: "app",
548
+ type: "address",
549
+ },
550
+ ],
551
+ name: "isApp",
552
+ outputs: [
553
+ {
554
+ internalType: "bool",
555
+ name: "",
556
+ type: "bool",
557
+ },
558
+ ],
559
+ stateMutability: "view",
560
+ type: "function",
561
+ },
562
+ {
563
+ inputs: [
564
+ {
565
+ internalType: "contract ISuperApp",
566
+ name: "appAddr",
567
+ type: "address",
568
+ },
569
+ ],
570
+ name: "getAppLevel",
571
+ outputs: [
572
+ {
573
+ internalType: "uint8",
574
+ name: "",
575
+ type: "uint8",
576
+ },
577
+ ],
578
+ stateMutability: "view",
579
+ type: "function",
580
+ },
581
+ {
582
+ inputs: [
583
+ {
584
+ internalType: "contract ISuperApp",
585
+ name: "app",
586
+ type: "address",
587
+ },
588
+ ],
589
+ name: "getAppManifest",
590
+ outputs: [
591
+ {
592
+ internalType: "bool",
593
+ name: "isSuperApp",
594
+ type: "bool",
595
+ },
596
+ {
597
+ internalType: "bool",
598
+ name: "isJailed",
599
+ type: "bool",
600
+ },
601
+ {
602
+ internalType: "uint256",
603
+ name: "noopMask",
604
+ type: "uint256",
605
+ },
606
+ ],
607
+ stateMutability: "view",
608
+ type: "function",
609
+ },
610
+ {
611
+ inputs: [
612
+ {
613
+ internalType: "contract ISuperApp",
614
+ name: "app",
615
+ type: "address",
616
+ },
617
+ ],
618
+ name: "isAppJailed",
619
+ outputs: [
620
+ {
621
+ internalType: "bool",
622
+ name: "",
623
+ type: "bool",
624
+ },
625
+ ],
626
+ stateMutability: "view",
627
+ type: "function",
628
+ },
629
+ {
630
+ inputs: [
631
+ {
632
+ internalType: "contract ISuperApp",
633
+ name: "targetApp",
634
+ type: "address",
635
+ },
636
+ ],
637
+ name: "allowCompositeApp",
638
+ outputs: [],
639
+ stateMutability: "nonpayable",
640
+ type: "function",
641
+ },
642
+ {
643
+ inputs: [
644
+ {
645
+ internalType: "contract ISuperApp",
646
+ name: "app",
647
+ type: "address",
648
+ },
649
+ {
650
+ internalType: "contract ISuperApp",
651
+ name: "targetApp",
652
+ type: "address",
653
+ },
654
+ ],
655
+ name: "isCompositeAppAllowed",
656
+ outputs: [
657
+ {
658
+ internalType: "bool",
659
+ name: "",
660
+ type: "bool",
661
+ },
662
+ ],
663
+ stateMutability: "view",
664
+ type: "function",
665
+ },
666
+ {
667
+ inputs: [
668
+ {
669
+ internalType: "contract ISuperApp",
670
+ name: "app",
671
+ type: "address",
672
+ },
673
+ {
674
+ internalType: "bytes",
675
+ name: "callData",
676
+ type: "bytes",
677
+ },
678
+ {
679
+ internalType: "bool",
680
+ name: "isTermination",
681
+ type: "bool",
682
+ },
683
+ {
684
+ internalType: "bytes",
685
+ name: "ctx",
686
+ type: "bytes",
687
+ },
688
+ ],
689
+ name: "callAppBeforeCallback",
690
+ outputs: [
691
+ {
692
+ internalType: "bytes",
693
+ name: "cbdata",
694
+ type: "bytes",
695
+ },
696
+ ],
697
+ stateMutability: "nonpayable",
698
+ type: "function",
699
+ },
700
+ {
701
+ inputs: [
702
+ {
703
+ internalType: "contract ISuperApp",
704
+ name: "app",
705
+ type: "address",
706
+ },
707
+ {
708
+ internalType: "bytes",
709
+ name: "callData",
710
+ type: "bytes",
711
+ },
712
+ {
713
+ internalType: "bool",
714
+ name: "isTermination",
715
+ type: "bool",
716
+ },
717
+ {
718
+ internalType: "bytes",
719
+ name: "ctx",
720
+ type: "bytes",
721
+ },
722
+ ],
723
+ name: "callAppAfterCallback",
724
+ outputs: [
725
+ {
726
+ internalType: "bytes",
727
+ name: "newCtx",
728
+ type: "bytes",
729
+ },
730
+ ],
731
+ stateMutability: "nonpayable",
732
+ type: "function",
733
+ },
734
+ {
735
+ inputs: [
736
+ {
737
+ internalType: "bytes",
738
+ name: "ctx",
739
+ type: "bytes",
740
+ },
741
+ {
742
+ internalType: "contract ISuperApp",
743
+ name: "app",
744
+ type: "address",
745
+ },
746
+ {
747
+ internalType: "uint256",
748
+ name: "appAllowanceGranted",
749
+ type: "uint256",
750
+ },
751
+ {
752
+ internalType: "int256",
753
+ name: "appAllowanceUsed",
754
+ type: "int256",
755
+ },
756
+ {
757
+ internalType: "contract ISuperfluidToken",
758
+ name: "appAllowanceToken",
759
+ type: "address",
760
+ },
761
+ ],
762
+ name: "appCallbackPush",
763
+ outputs: [
764
+ {
765
+ internalType: "bytes",
766
+ name: "appCtx",
767
+ type: "bytes",
768
+ },
769
+ ],
770
+ stateMutability: "nonpayable",
771
+ type: "function",
772
+ },
773
+ {
774
+ inputs: [
775
+ {
776
+ internalType: "bytes",
777
+ name: "ctx",
778
+ type: "bytes",
779
+ },
780
+ {
781
+ internalType: "int256",
782
+ name: "appAllowanceUsedDelta",
783
+ type: "int256",
784
+ },
785
+ ],
786
+ name: "appCallbackPop",
787
+ outputs: [
788
+ {
789
+ internalType: "bytes",
790
+ name: "newCtx",
791
+ type: "bytes",
792
+ },
793
+ ],
794
+ stateMutability: "nonpayable",
795
+ type: "function",
796
+ },
797
+ {
798
+ inputs: [
799
+ {
800
+ internalType: "bytes",
801
+ name: "ctx",
802
+ type: "bytes",
803
+ },
804
+ {
805
+ internalType: "uint256",
806
+ name: "appAllowanceWantedMore",
807
+ type: "uint256",
808
+ },
809
+ {
810
+ internalType: "int256",
811
+ name: "appAllowanceUsedDelta",
812
+ type: "int256",
813
+ },
814
+ ],
815
+ name: "ctxUseAllowance",
816
+ outputs: [
817
+ {
818
+ internalType: "bytes",
819
+ name: "newCtx",
820
+ type: "bytes",
821
+ },
822
+ ],
823
+ stateMutability: "nonpayable",
824
+ type: "function",
825
+ },
826
+ {
827
+ inputs: [
828
+ {
829
+ internalType: "bytes",
830
+ name: "ctx",
831
+ type: "bytes",
832
+ },
833
+ {
834
+ internalType: "contract ISuperApp",
835
+ name: "app",
836
+ type: "address",
837
+ },
838
+ {
839
+ internalType: "uint256",
840
+ name: "reason",
841
+ type: "uint256",
842
+ },
843
+ ],
844
+ name: "jailApp",
845
+ outputs: [
846
+ {
847
+ internalType: "bytes",
848
+ name: "newCtx",
849
+ type: "bytes",
850
+ },
851
+ ],
852
+ stateMutability: "nonpayable",
853
+ type: "function",
854
+ },
855
+ {
856
+ inputs: [
857
+ {
858
+ internalType: "contract ISuperAgreement",
859
+ name: "agreementClass",
860
+ type: "address",
861
+ },
862
+ {
863
+ internalType: "bytes",
864
+ name: "callData",
865
+ type: "bytes",
866
+ },
867
+ {
868
+ internalType: "bytes",
869
+ name: "userData",
870
+ type: "bytes",
871
+ },
872
+ ],
873
+ name: "callAgreement",
874
+ outputs: [
875
+ {
876
+ internalType: "bytes",
877
+ name: "returnedData",
878
+ type: "bytes",
879
+ },
880
+ ],
881
+ stateMutability: "nonpayable",
882
+ type: "function",
883
+ },
884
+ {
885
+ inputs: [
886
+ {
887
+ internalType: "contract ISuperApp",
888
+ name: "app",
889
+ type: "address",
890
+ },
891
+ {
892
+ internalType: "bytes",
893
+ name: "callData",
894
+ type: "bytes",
895
+ },
896
+ ],
897
+ name: "callAppAction",
898
+ outputs: [
899
+ {
900
+ internalType: "bytes",
901
+ name: "returnedData",
902
+ type: "bytes",
903
+ },
904
+ ],
905
+ stateMutability: "nonpayable",
906
+ type: "function",
907
+ },
908
+ {
909
+ inputs: [
910
+ {
911
+ internalType: "contract ISuperAgreement",
912
+ name: "agreementClass",
913
+ type: "address",
914
+ },
915
+ {
916
+ internalType: "bytes",
917
+ name: "callData",
918
+ type: "bytes",
919
+ },
920
+ {
921
+ internalType: "bytes",
922
+ name: "userData",
923
+ type: "bytes",
924
+ },
925
+ {
926
+ internalType: "bytes",
927
+ name: "ctx",
928
+ type: "bytes",
929
+ },
930
+ ],
931
+ name: "callAgreementWithContext",
932
+ outputs: [
933
+ {
934
+ internalType: "bytes",
935
+ name: "newCtx",
936
+ type: "bytes",
937
+ },
938
+ {
939
+ internalType: "bytes",
940
+ name: "returnedData",
941
+ type: "bytes",
942
+ },
943
+ ],
944
+ stateMutability: "nonpayable",
945
+ type: "function",
946
+ },
947
+ {
948
+ inputs: [
949
+ {
950
+ internalType: "contract ISuperApp",
951
+ name: "app",
952
+ type: "address",
953
+ },
954
+ {
955
+ internalType: "bytes",
956
+ name: "callData",
957
+ type: "bytes",
958
+ },
959
+ {
960
+ internalType: "bytes",
961
+ name: "ctx",
962
+ type: "bytes",
963
+ },
964
+ ],
965
+ name: "callAppActionWithContext",
966
+ outputs: [
967
+ {
968
+ internalType: "bytes",
969
+ name: "newCtx",
970
+ type: "bytes",
971
+ },
972
+ ],
973
+ stateMutability: "nonpayable",
974
+ type: "function",
975
+ },
976
+ {
977
+ inputs: [
978
+ {
979
+ internalType: "bytes",
980
+ name: "ctx",
981
+ type: "bytes",
982
+ },
983
+ ],
984
+ name: "decodeCtx",
985
+ outputs: [
986
+ {
987
+ components: [
988
+ {
989
+ internalType: "uint8",
990
+ name: "appLevel",
991
+ type: "uint8",
992
+ },
993
+ {
994
+ internalType: "uint8",
995
+ name: "callType",
996
+ type: "uint8",
997
+ },
998
+ {
999
+ internalType: "uint256",
1000
+ name: "timestamp",
1001
+ type: "uint256",
1002
+ },
1003
+ {
1004
+ internalType: "address",
1005
+ name: "msgSender",
1006
+ type: "address",
1007
+ },
1008
+ {
1009
+ internalType: "bytes4",
1010
+ name: "agreementSelector",
1011
+ type: "bytes4",
1012
+ },
1013
+ {
1014
+ internalType: "bytes",
1015
+ name: "userData",
1016
+ type: "bytes",
1017
+ },
1018
+ {
1019
+ internalType: "uint256",
1020
+ name: "appAllowanceGranted",
1021
+ type: "uint256",
1022
+ },
1023
+ {
1024
+ internalType: "uint256",
1025
+ name: "appAllowanceWanted",
1026
+ type: "uint256",
1027
+ },
1028
+ {
1029
+ internalType: "int256",
1030
+ name: "appAllowanceUsed",
1031
+ type: "int256",
1032
+ },
1033
+ {
1034
+ internalType: "address",
1035
+ name: "appAddress",
1036
+ type: "address",
1037
+ },
1038
+ {
1039
+ internalType: "contract ISuperfluidToken",
1040
+ name: "appAllowanceToken",
1041
+ type: "address",
1042
+ },
1043
+ ],
1044
+ internalType: "struct ISuperfluid.Context",
1045
+ name: "context",
1046
+ type: "tuple",
1047
+ },
1048
+ ],
1049
+ stateMutability: "pure",
1050
+ type: "function",
1051
+ },
1052
+ {
1053
+ inputs: [
1054
+ {
1055
+ internalType: "bytes",
1056
+ name: "ctx",
1057
+ type: "bytes",
1058
+ },
1059
+ ],
1060
+ name: "isCtxValid",
1061
+ outputs: [
1062
+ {
1063
+ internalType: "bool",
1064
+ name: "",
1065
+ type: "bool",
1066
+ },
1067
+ ],
1068
+ stateMutability: "view",
1069
+ type: "function",
1070
+ },
1071
+ {
1072
+ inputs: [
1073
+ {
1074
+ components: [
1075
+ {
1076
+ internalType: "uint32",
1077
+ name: "operationType",
1078
+ type: "uint32",
1079
+ },
1080
+ {
1081
+ internalType: "address",
1082
+ name: "target",
1083
+ type: "address",
1084
+ },
1085
+ {
1086
+ internalType: "bytes",
1087
+ name: "data",
1088
+ type: "bytes",
1089
+ },
1090
+ ],
1091
+ internalType: "struct ISuperfluid.Operation[]",
1092
+ name: "operations",
1093
+ type: "tuple[]",
1094
+ },
1095
+ ],
1096
+ name: "batchCall",
1097
+ outputs: [],
1098
+ stateMutability: "nonpayable",
1099
+ type: "function",
1100
+ },
1101
+ {
1102
+ inputs: [
1103
+ {
1104
+ components: [
1105
+ {
1106
+ internalType: "uint32",
1107
+ name: "operationType",
1108
+ type: "uint32",
1109
+ },
1110
+ {
1111
+ internalType: "address",
1112
+ name: "target",
1113
+ type: "address",
1114
+ },
1115
+ {
1116
+ internalType: "bytes",
1117
+ name: "data",
1118
+ type: "bytes",
1119
+ },
1120
+ ],
1121
+ internalType: "struct ISuperfluid.Operation[]",
1122
+ name: "operations",
1123
+ type: "tuple[]",
1124
+ },
1125
+ ],
1126
+ name: "forwardBatchCall",
1127
+ outputs: [],
1128
+ stateMutability: "nonpayable",
1129
+ type: "function",
1130
+ },
1131
+ {
1132
+ inputs: [
1133
+ {
1134
+ internalType: "address",
1135
+ name: "forwarder",
1136
+ type: "address",
1137
+ },
1138
+ ],
1139
+ name: "isTrustedForwarder",
1140
+ outputs: [
1141
+ {
1142
+ internalType: "bool",
1143
+ name: "",
1144
+ type: "bool",
1145
+ },
1146
+ ],
1147
+ stateMutability: "view",
1148
+ type: "function",
1149
+ },
1150
+ {
1151
+ inputs: [],
1152
+ name: "versionRecipient",
1153
+ outputs: [
1154
+ {
1155
+ internalType: "string",
1156
+ name: "",
1157
+ type: "string",
1158
+ },
1159
+ ],
1160
+ stateMutability: "pure",
1161
+ type: "function",
1162
+ },
1163
+ ];
1164
+ export class Superfluid__factory {
1165
+ static createInterface() {
1166
+ return new utils.Interface(_abi);
1167
+ }
1168
+ static connect(address, signerOrProvider) {
1169
+ return new Contract(address, _abi, signerOrProvider);
1170
+ }
1171
+ }
1172
+ Superfluid__factory.abi = _abi;
1173
+ //# sourceMappingURL=Superfluid__factory.js.map