@superfluid-finance/sdk-core 0.3.3-dev.6e6d5ef.0 → 0.3.3-dev.812e77d.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 (208) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -0
  3. package/dist/index.umd.js +29110 -25151
  4. package/dist/main/BatchCall.d.ts +6 -6
  5. package/dist/main/BatchCall.js +8 -8
  6. package/dist/main/BatchCall.js.map +1 -1
  7. package/dist/main/ConstantFlowAgreementV1.d.ts +109 -17
  8. package/dist/main/ConstantFlowAgreementV1.d.ts.map +1 -1
  9. package/dist/main/ConstantFlowAgreementV1.js +245 -50
  10. package/dist/main/ConstantFlowAgreementV1.js.map +1 -1
  11. package/dist/main/ERC20Token.d.ts +15 -12
  12. package/dist/main/ERC20Token.d.ts.map +1 -1
  13. package/dist/main/ERC20Token.js +26 -30
  14. package/dist/main/ERC20Token.js.map +1 -1
  15. package/dist/main/Framework.d.ts +16 -7
  16. package/dist/main/Framework.d.ts.map +1 -1
  17. package/dist/main/Framework.js +34 -15
  18. package/dist/main/Framework.js.map +1 -1
  19. package/dist/main/Governance.d.ts +40 -0
  20. package/dist/main/Governance.d.ts.map +1 -0
  21. package/dist/main/Governance.js +82 -0
  22. package/dist/main/Governance.js.map +1 -0
  23. package/dist/main/Host.d.ts +3 -3
  24. package/dist/main/Host.d.ts.map +1 -1
  25. package/dist/main/Host.js +4 -4
  26. package/dist/main/Host.js.map +1 -1
  27. package/dist/main/InstantDistributionAgreementV1.d.ts +25 -22
  28. package/dist/main/InstantDistributionAgreementV1.d.ts.map +1 -1
  29. package/dist/main/InstantDistributionAgreementV1.js +69 -71
  30. package/dist/main/InstantDistributionAgreementV1.js.map +1 -1
  31. package/dist/main/Operation.d.ts +5 -5
  32. package/dist/main/Operation.js +5 -5
  33. package/dist/main/Query.d.ts +1 -1
  34. package/dist/main/Query.js +1 -1
  35. package/dist/main/SFError.d.ts +1 -1
  36. package/dist/main/SFError.d.ts.map +1 -1
  37. package/dist/main/SFError.js +2 -0
  38. package/dist/main/SFError.js.map +1 -1
  39. package/dist/main/SuperToken.d.ts +228 -67
  40. package/dist/main/SuperToken.d.ts.map +1 -1
  41. package/dist/main/SuperToken.js +316 -130
  42. package/dist/main/SuperToken.js.map +1 -1
  43. package/dist/main/abi/IConstantFlowAgreementV1.json +350 -2
  44. package/dist/main/abi/ISETH.json +1604 -0
  45. package/dist/main/abi/SuperfluidGovernanceII.json +939 -0
  46. package/dist/main/constants.d.ts +4 -0
  47. package/dist/main/constants.d.ts.map +1 -1
  48. package/dist/main/constants.js +19 -1
  49. package/dist/main/constants.js.map +1 -1
  50. package/dist/main/events.d.ts +14 -2
  51. package/dist/main/events.d.ts.map +1 -1
  52. package/dist/main/frameworkHelpers.d.ts +2 -2
  53. package/dist/main/frameworkHelpers.js +2 -2
  54. package/dist/main/index.d.ts +14 -6
  55. package/dist/main/index.d.ts.map +1 -1
  56. package/dist/main/index.js +9 -1
  57. package/dist/main/index.js.map +1 -1
  58. package/dist/main/interfaces.d.ts +82 -8
  59. package/dist/main/interfaces.d.ts.map +1 -1
  60. package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  61. package/dist/main/mapGetAllEventsQueryEvents.js +22 -1
  62. package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -1
  63. package/dist/main/pagination.d.ts +9 -8
  64. package/dist/main/pagination.d.ts.map +1 -1
  65. package/dist/main/pagination.js +2 -2
  66. package/dist/main/pagination.js.map +1 -1
  67. package/dist/main/subgraph/events/events.generated.d.ts +46 -3
  68. package/dist/main/subgraph/events/events.generated.d.ts.map +1 -1
  69. package/dist/main/subgraph/events/events.generated.js +4 -3
  70. package/dist/main/subgraph/events/events.generated.js.map +1 -1
  71. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +12 -0
  72. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
  73. package/dist/main/subgraph/queries/getAllEvents.generated.js +1 -1
  74. package/dist/main/subgraph/queries/getAllEvents.generated.js.map +1 -1
  75. package/dist/main/subgraph/schema.generated.d.ts +817 -5
  76. package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
  77. package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +187 -5
  78. package/dist/main/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
  79. package/dist/main/typechain/ISETH.d.ts +1068 -0
  80. package/dist/main/typechain/ISETH.d.ts.map +1 -0
  81. package/dist/main/typechain/ISETH.js +3 -0
  82. package/dist/main/typechain/ISETH.js.map +1 -0
  83. package/dist/main/typechain/SuperfluidGovernanceII.d.ts +633 -0
  84. package/dist/main/typechain/SuperfluidGovernanceII.d.ts.map +1 -0
  85. package/dist/main/typechain/SuperfluidGovernanceII.js +3 -0
  86. package/dist/main/typechain/SuperfluidGovernanceII.js.map +1 -0
  87. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
  88. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js +350 -2
  89. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
  90. package/dist/main/typechain/factories/ISETH__factory.d.ts +36 -0
  91. package/dist/main/typechain/factories/ISETH__factory.d.ts.map +1 -0
  92. package/dist/main/typechain/factories/ISETH__factory.js +1622 -0
  93. package/dist/main/typechain/factories/ISETH__factory.js.map +1 -0
  94. package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.d.ts +36 -0
  95. package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.d.ts.map +1 -0
  96. package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.js +957 -0
  97. package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.js.map +1 -0
  98. package/dist/main/typechain/index.d.ts +4 -0
  99. package/dist/main/typechain/index.d.ts.map +1 -1
  100. package/dist/main/typechain/index.js +5 -1
  101. package/dist/main/typechain/index.js.map +1 -1
  102. package/dist/main/utils.d.ts +15 -13
  103. package/dist/main/utils.d.ts.map +1 -1
  104. package/dist/main/utils.js +29 -15
  105. package/dist/main/utils.js.map +1 -1
  106. package/dist/module/BatchCall.d.ts +6 -6
  107. package/dist/module/BatchCall.js +8 -8
  108. package/dist/module/BatchCall.js.map +1 -1
  109. package/dist/module/ConstantFlowAgreementV1.d.ts +109 -17
  110. package/dist/module/ConstantFlowAgreementV1.d.ts.map +1 -1
  111. package/dist/module/ConstantFlowAgreementV1.js +246 -51
  112. package/dist/module/ConstantFlowAgreementV1.js.map +1 -1
  113. package/dist/module/ERC20Token.d.ts +15 -12
  114. package/dist/module/ERC20Token.d.ts.map +1 -1
  115. package/dist/module/ERC20Token.js +26 -30
  116. package/dist/module/ERC20Token.js.map +1 -1
  117. package/dist/module/Framework.d.ts +16 -7
  118. package/dist/module/Framework.d.ts.map +1 -1
  119. package/dist/module/Framework.js +34 -15
  120. package/dist/module/Framework.js.map +1 -1
  121. package/dist/module/Governance.d.ts +40 -0
  122. package/dist/module/Governance.d.ts.map +1 -0
  123. package/dist/module/Governance.js +76 -0
  124. package/dist/module/Governance.js.map +1 -0
  125. package/dist/module/Host.d.ts +3 -3
  126. package/dist/module/Host.d.ts.map +1 -1
  127. package/dist/module/Host.js +4 -4
  128. package/dist/module/Host.js.map +1 -1
  129. package/dist/module/InstantDistributionAgreementV1.d.ts +25 -22
  130. package/dist/module/InstantDistributionAgreementV1.d.ts.map +1 -1
  131. package/dist/module/InstantDistributionAgreementV1.js +69 -71
  132. package/dist/module/InstantDistributionAgreementV1.js.map +1 -1
  133. package/dist/module/Operation.d.ts +5 -5
  134. package/dist/module/Operation.js +5 -5
  135. package/dist/module/Query.d.ts +1 -1
  136. package/dist/module/Query.js +1 -1
  137. package/dist/module/SFError.d.ts +1 -1
  138. package/dist/module/SFError.d.ts.map +1 -1
  139. package/dist/module/SFError.js +2 -0
  140. package/dist/module/SFError.js.map +1 -1
  141. package/dist/module/SuperToken.d.ts +228 -67
  142. package/dist/module/SuperToken.d.ts.map +1 -1
  143. package/dist/module/SuperToken.js +313 -131
  144. package/dist/module/SuperToken.js.map +1 -1
  145. package/dist/module/abi/IConstantFlowAgreementV1.json +350 -2
  146. package/dist/module/abi/ISETH.json +1604 -0
  147. package/dist/module/abi/SuperfluidGovernanceII.json +939 -0
  148. package/dist/module/constants.d.ts +4 -0
  149. package/dist/module/constants.d.ts.map +1 -1
  150. package/dist/module/constants.js +18 -0
  151. package/dist/module/constants.js.map +1 -1
  152. package/dist/module/events.d.ts +14 -2
  153. package/dist/module/events.d.ts.map +1 -1
  154. package/dist/module/frameworkHelpers.d.ts +2 -2
  155. package/dist/module/frameworkHelpers.js +2 -2
  156. package/dist/module/index.d.ts +14 -6
  157. package/dist/module/index.d.ts.map +1 -1
  158. package/dist/module/index.js +14 -6
  159. package/dist/module/index.js.map +1 -1
  160. package/dist/module/interfaces.d.ts +82 -8
  161. package/dist/module/interfaces.d.ts.map +1 -1
  162. package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  163. package/dist/module/mapGetAllEventsQueryEvents.js +22 -1
  164. package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -1
  165. package/dist/module/pagination.d.ts +9 -8
  166. package/dist/module/pagination.d.ts.map +1 -1
  167. package/dist/module/pagination.js +2 -2
  168. package/dist/module/pagination.js.map +1 -1
  169. package/dist/module/subgraph/events/events.generated.d.ts +46 -3
  170. package/dist/module/subgraph/events/events.generated.d.ts.map +1 -1
  171. package/dist/module/subgraph/events/events.generated.js +3 -2
  172. package/dist/module/subgraph/events/events.generated.js.map +1 -1
  173. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +12 -0
  174. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
  175. package/dist/module/subgraph/queries/getAllEvents.generated.js +1 -1
  176. package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -1
  177. package/dist/module/subgraph/schema.generated.d.ts +817 -5
  178. package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
  179. package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +187 -5
  180. package/dist/module/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
  181. package/dist/module/typechain/ISETH.d.ts +1068 -0
  182. package/dist/module/typechain/ISETH.d.ts.map +1 -0
  183. package/dist/module/typechain/ISETH.js +2 -0
  184. package/dist/module/typechain/ISETH.js.map +1 -0
  185. package/dist/module/typechain/SuperfluidGovernanceII.d.ts +633 -0
  186. package/dist/module/typechain/SuperfluidGovernanceII.d.ts.map +1 -0
  187. package/dist/module/typechain/SuperfluidGovernanceII.js +2 -0
  188. package/dist/module/typechain/SuperfluidGovernanceII.js.map +1 -0
  189. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
  190. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js +350 -2
  191. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
  192. package/dist/module/typechain/factories/ISETH__factory.d.ts +36 -0
  193. package/dist/module/typechain/factories/ISETH__factory.d.ts.map +1 -0
  194. package/dist/module/typechain/factories/ISETH__factory.js +1618 -0
  195. package/dist/module/typechain/factories/ISETH__factory.js.map +1 -0
  196. package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.d.ts +36 -0
  197. package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.d.ts.map +1 -0
  198. package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.js +953 -0
  199. package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.js.map +1 -0
  200. package/dist/module/typechain/index.d.ts +4 -0
  201. package/dist/module/typechain/index.d.ts.map +1 -1
  202. package/dist/module/typechain/index.js +2 -0
  203. package/dist/module/typechain/index.js.map +1 -1
  204. package/dist/module/utils.d.ts +15 -13
  205. package/dist/module/utils.d.ts.map +1 -1
  206. package/dist/module/utils.js +27 -15
  207. package/dist/module/utils.js.map +1 -1
  208. package/package.json +10 -40
package/CHANGELOG.md CHANGED
@@ -12,6 +12,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
12
12
  - Added `PageNumberPaging` for UI development friendly pagination API
13
13
  - Added `AllPaging` to recursively query all results from Subgraph
14
14
  - Added support for `TypedDocumentNode` for `SubgraphClient`
15
+ - Expose underlying ethers.js contracts for each class: CFAv1, Host, IDAv1 and `contracts` property in `Framework` class
16
+ - Added new ACL function support: authorizing flow operator permissions and create/update/delete flow by operator
17
+ - Added `nativeTokenSymbol` property to `constants.ts`
18
+ - Split `SuperToken` class into: `WrapperSuperToken`, `PureSuperToken` and `NativeAssetSuperToken` classes
19
+ - Support `upgrade`, `upgradeTo` and `downgrade` functions via `NativeAssetSuperToken`
20
+ - Added `upgradeTo` to `WrapperSuperToken` class as this was missing as well
15
21
 
16
22
  ### Changed
17
23
  - Renamed `Token` to `ERC20Token`
package/README.md CHANGED
@@ -55,6 +55,8 @@ To get the package up and running you'll need to install the necessary dependenc
55
55
  yarn install && yarn build
56
56
  ```
57
57
 
58
+ > NOTE: `yarn build` has a prerequisite that the contracts in `ethereum-contracts` have been built.
59
+
58
60
  # Tutorial
59
61
 
60
62
  For the best and most immersive experience of learning how to use the main sdk-core features, I would highly recommend heading over to our [interactive tutorials](https://docs.superfluid.finance/superfluid/protocol-tutorials/interactive-tutorials).