@superfluid-finance/sdk-core 0.5.1-dev.0b53009.0 → 0.5.1-dev.2ac801d.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 (123) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/index.umd.js +25359 -7678
  3. package/dist/main/BatchCall.d.ts.map +1 -1
  4. package/dist/main/BatchCall.js +6 -6
  5. package/dist/main/BatchCall.js.map +1 -1
  6. package/dist/main/ConstantFlowAgreementV1.js +12 -12
  7. package/dist/main/ConstantFlowAgreementV1.js.map +1 -1
  8. package/dist/main/ERC20Token.js +10 -10
  9. package/dist/main/ERC20Token.js.map +1 -1
  10. package/dist/main/Framework.d.ts +8 -1
  11. package/dist/main/Framework.d.ts.map +1 -1
  12. package/dist/main/Framework.js +21 -11
  13. package/dist/main/Framework.js.map +1 -1
  14. package/dist/main/InstantDistributionAgreementV1.js +4 -4
  15. package/dist/main/InstantDistributionAgreementV1.js.map +1 -1
  16. package/dist/main/Operation.js +6 -6
  17. package/dist/main/Operation.js.map +1 -1
  18. package/dist/main/SFError.d.ts +6 -7
  19. package/dist/main/SFError.d.ts.map +1 -1
  20. package/dist/main/SFError.js +17 -10
  21. package/dist/main/SFError.js.map +1 -1
  22. package/dist/main/SuperToken.js +5 -5
  23. package/dist/main/SuperToken.js.map +1 -1
  24. package/dist/main/frameworkHelpers.js +3 -3
  25. package/dist/main/frameworkHelpers.js.map +1 -1
  26. package/dist/main/index.d.ts +2 -0
  27. package/dist/main/index.d.ts.map +1 -1
  28. package/dist/main/index.js +3 -1
  29. package/dist/main/index.js.map +1 -1
  30. package/dist/main/interfaces.d.ts +1 -0
  31. package/dist/main/interfaces.d.ts.map +1 -1
  32. package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -1
  33. package/dist/main/subgraph/SubgraphClient.js +8 -2
  34. package/dist/main/subgraph/SubgraphClient.js.map +1 -1
  35. package/dist/main/subgraph/entities/token/tokens.generated.d.ts +1 -0
  36. package/dist/main/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
  37. package/dist/main/subgraph/entities/token/tokens.generated.js +1 -1
  38. package/dist/main/subgraph/entities/token/tokens.generated.js.map +1 -1
  39. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +1 -0
  40. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -1
  41. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js +1 -1
  42. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -1
  43. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts +1 -0
  44. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -1
  45. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js +1 -1
  46. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -1
  47. package/dist/main/subgraph/queries/getIndexes.generated.d.ts +1 -0
  48. package/dist/main/subgraph/queries/getIndexes.generated.d.ts.map +1 -1
  49. package/dist/main/subgraph/queries/getIndexes.generated.js +1 -1
  50. package/dist/main/subgraph/queries/getIndexes.generated.js.map +1 -1
  51. package/dist/main/subgraph/queries/getStreams.generated.d.ts +1 -0
  52. package/dist/main/subgraph/queries/getStreams.generated.d.ts.map +1 -1
  53. package/dist/main/subgraph/queries/getStreams.generated.js +1 -1
  54. package/dist/main/subgraph/queries/getStreams.generated.js.map +1 -1
  55. package/dist/main/subgraph/queries/getTokens.generated.d.ts +1 -0
  56. package/dist/main/subgraph/queries/getTokens.generated.d.ts.map +1 -1
  57. package/dist/main/subgraph/queries/getTokens.generated.js +1 -1
  58. package/dist/main/subgraph/queries/getTokens.generated.js.map +1 -1
  59. package/dist/main/subgraph/schema.generated.d.ts +5 -1
  60. package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
  61. package/dist/main/utils.js +1 -1
  62. package/dist/main/utils.js.map +1 -1
  63. package/dist/module/BatchCall.d.ts.map +1 -1
  64. package/dist/module/BatchCall.js +6 -6
  65. package/dist/module/BatchCall.js.map +1 -1
  66. package/dist/module/ConstantFlowAgreementV1.js +12 -12
  67. package/dist/module/ConstantFlowAgreementV1.js.map +1 -1
  68. package/dist/module/ERC20Token.js +10 -10
  69. package/dist/module/ERC20Token.js.map +1 -1
  70. package/dist/module/Framework.d.ts +8 -1
  71. package/dist/module/Framework.d.ts.map +1 -1
  72. package/dist/module/Framework.js +21 -11
  73. package/dist/module/Framework.js.map +1 -1
  74. package/dist/module/InstantDistributionAgreementV1.js +4 -4
  75. package/dist/module/InstantDistributionAgreementV1.js.map +1 -1
  76. package/dist/module/Operation.js +6 -6
  77. package/dist/module/Operation.js.map +1 -1
  78. package/dist/module/SFError.d.ts +6 -7
  79. package/dist/module/SFError.d.ts.map +1 -1
  80. package/dist/module/SFError.js +17 -10
  81. package/dist/module/SFError.js.map +1 -1
  82. package/dist/module/SuperToken.js +5 -5
  83. package/dist/module/SuperToken.js.map +1 -1
  84. package/dist/module/frameworkHelpers.js +3 -3
  85. package/dist/module/frameworkHelpers.js.map +1 -1
  86. package/dist/module/index.d.ts +2 -0
  87. package/dist/module/index.d.ts.map +1 -1
  88. package/dist/module/index.js +2 -0
  89. package/dist/module/index.js.map +1 -1
  90. package/dist/module/interfaces.d.ts +1 -0
  91. package/dist/module/interfaces.d.ts.map +1 -1
  92. package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -1
  93. package/dist/module/subgraph/SubgraphClient.js +8 -2
  94. package/dist/module/subgraph/SubgraphClient.js.map +1 -1
  95. package/dist/module/subgraph/entities/token/tokens.generated.d.ts +1 -0
  96. package/dist/module/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
  97. package/dist/module/subgraph/entities/token/tokens.generated.js +1 -1
  98. package/dist/module/subgraph/entities/token/tokens.generated.js.map +1 -1
  99. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +1 -0
  100. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -1
  101. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js +1 -1
  102. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -1
  103. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts +1 -0
  104. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -1
  105. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js +1 -1
  106. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -1
  107. package/dist/module/subgraph/queries/getIndexes.generated.d.ts +1 -0
  108. package/dist/module/subgraph/queries/getIndexes.generated.d.ts.map +1 -1
  109. package/dist/module/subgraph/queries/getIndexes.generated.js +1 -1
  110. package/dist/module/subgraph/queries/getIndexes.generated.js.map +1 -1
  111. package/dist/module/subgraph/queries/getStreams.generated.d.ts +1 -0
  112. package/dist/module/subgraph/queries/getStreams.generated.d.ts.map +1 -1
  113. package/dist/module/subgraph/queries/getStreams.generated.js +1 -1
  114. package/dist/module/subgraph/queries/getStreams.generated.js.map +1 -1
  115. package/dist/module/subgraph/queries/getTokens.generated.d.ts +1 -0
  116. package/dist/module/subgraph/queries/getTokens.generated.d.ts.map +1 -1
  117. package/dist/module/subgraph/queries/getTokens.generated.js +1 -1
  118. package/dist/module/subgraph/queries/getTokens.generated.js.map +1 -1
  119. package/dist/module/subgraph/schema.generated.d.ts +5 -1
  120. package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
  121. package/dist/module/utils.js +1 -1
  122. package/dist/module/utils.js.map +1 -1
  123. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.5.0] - 2022-07-14
9
+
10
+ ## Added
11
+ - Support for SetEvent and Subgraph v1.4.4
12
+ - `Framework.operation` method for easily creating `Operation` instances
13
+
14
+ ## Fixes
15
+ - Compile AJV validations to prevent unsafe-eval and did not allow SDK-Core usage inside Google Chrome extension due to unsafe-eval CSP
16
+
17
+ ### Changed
18
+ - `SFError` refactor to be more conventional. It inherits `Error` and uses `cause` to wrap internal errors.
19
+ - Use `serialize-error` for serializing error object inside the message.
20
+ - Export Operation & OperationType
21
+
22
+ ### Breaking
23
+ - `SFError.errorObject` renamed to `SFError.cause`
24
+
8
25
  ## [0.4.4] - 2022-06-30
9
26
 
10
27
  ## Added
@@ -152,7 +169,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
152
169
  - New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
153
170
  - New `BatchCall` class for creating and executing batch calls with supported `Operation's`
154
171
 
155
- [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.4...HEAD
172
+ [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.0...HEAD
173
+ [0.5.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.4...sdk-core%40v0.5.0
156
174
  [0.4.4]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.3...sdk-core%40v0.4.4
157
175
  [0.4.3]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.2...sdk-core%40v0.4.3
158
176
  [0.4.2]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.1...sdk-core%40v0.4.2