@superfluid-finance/sdk-core 0.5.1-dev.cfb8f07.0 → 0.5.2

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 (85) hide show
  1. package/CHANGELOG.md +45 -2
  2. package/dist/index.umd.js +25460 -7752
  3. package/dist/main/BatchCall.d.ts +5 -3
  4. package/dist/main/BatchCall.d.ts.map +1 -1
  5. package/dist/main/BatchCall.js +23 -15
  6. package/dist/main/BatchCall.js.map +1 -1
  7. package/dist/main/ConstantFlowAgreementV1.js +21 -21
  8. package/dist/main/ConstantFlowAgreementV1.js.map +1 -1
  9. package/dist/main/ERC20Token.js +10 -10
  10. package/dist/main/ERC20Token.js.map +1 -1
  11. package/dist/main/Framework.d.ts +8 -1
  12. package/dist/main/Framework.d.ts.map +1 -1
  13. package/dist/main/Framework.js +21 -11
  14. package/dist/main/Framework.js.map +1 -1
  15. package/dist/main/Host.d.ts +11 -1
  16. package/dist/main/Host.d.ts.map +1 -1
  17. package/dist/main/Host.js +12 -1
  18. package/dist/main/Host.js.map +1 -1
  19. package/dist/main/InstantDistributionAgreementV1.js +12 -12
  20. package/dist/main/InstantDistributionAgreementV1.js.map +1 -1
  21. package/dist/main/Operation.js +6 -6
  22. package/dist/main/Operation.js.map +1 -1
  23. package/dist/main/SFError.d.ts +6 -7
  24. package/dist/main/SFError.d.ts.map +1 -1
  25. package/dist/main/SFError.js +27 -10
  26. package/dist/main/SFError.js.map +1 -1
  27. package/dist/main/SuperToken.js +5 -5
  28. package/dist/main/SuperToken.js.map +1 -1
  29. package/dist/main/constants.js +1 -1
  30. package/dist/main/constants.js.map +1 -1
  31. package/dist/main/defaultSubgraphReleaseTag.json +1 -1
  32. package/dist/main/frameworkHelpers.js +3 -3
  33. package/dist/main/frameworkHelpers.js.map +1 -1
  34. package/dist/main/index.d.ts +2 -0
  35. package/dist/main/index.d.ts.map +1 -1
  36. package/dist/main/index.js +3 -1
  37. package/dist/main/index.js.map +1 -1
  38. package/dist/main/interfaces.d.ts.map +1 -1
  39. package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -1
  40. package/dist/main/subgraph/SubgraphClient.js +8 -2
  41. package/dist/main/subgraph/SubgraphClient.js.map +1 -1
  42. package/dist/main/utils.js +1 -1
  43. package/dist/main/utils.js.map +1 -1
  44. package/dist/module/BatchCall.d.ts +5 -3
  45. package/dist/module/BatchCall.d.ts.map +1 -1
  46. package/dist/module/BatchCall.js +23 -15
  47. package/dist/module/BatchCall.js.map +1 -1
  48. package/dist/module/ConstantFlowAgreementV1.js +21 -21
  49. package/dist/module/ConstantFlowAgreementV1.js.map +1 -1
  50. package/dist/module/ERC20Token.js +10 -10
  51. package/dist/module/ERC20Token.js.map +1 -1
  52. package/dist/module/Framework.d.ts +8 -1
  53. package/dist/module/Framework.d.ts.map +1 -1
  54. package/dist/module/Framework.js +21 -11
  55. package/dist/module/Framework.js.map +1 -1
  56. package/dist/module/Host.d.ts +11 -1
  57. package/dist/module/Host.d.ts.map +1 -1
  58. package/dist/module/Host.js +12 -1
  59. package/dist/module/Host.js.map +1 -1
  60. package/dist/module/InstantDistributionAgreementV1.js +12 -12
  61. package/dist/module/InstantDistributionAgreementV1.js.map +1 -1
  62. package/dist/module/Operation.js +6 -6
  63. package/dist/module/Operation.js.map +1 -1
  64. package/dist/module/SFError.d.ts +6 -7
  65. package/dist/module/SFError.d.ts.map +1 -1
  66. package/dist/module/SFError.js +27 -10
  67. package/dist/module/SFError.js.map +1 -1
  68. package/dist/module/SuperToken.js +5 -5
  69. package/dist/module/SuperToken.js.map +1 -1
  70. package/dist/module/constants.js +1 -1
  71. package/dist/module/constants.js.map +1 -1
  72. package/dist/module/defaultSubgraphReleaseTag.json +1 -1
  73. package/dist/module/frameworkHelpers.js +3 -3
  74. package/dist/module/frameworkHelpers.js.map +1 -1
  75. package/dist/module/index.d.ts +2 -0
  76. package/dist/module/index.d.ts.map +1 -1
  77. package/dist/module/index.js +2 -0
  78. package/dist/module/index.js.map +1 -1
  79. package/dist/module/interfaces.d.ts.map +1 -1
  80. package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -1
  81. package/dist/module/subgraph/SubgraphClient.js +8 -2
  82. package/dist/module/subgraph/SubgraphClient.js.map +1 -1
  83. package/dist/module/utils.js +1 -1
  84. package/dist/module/utils.js.map +1 -1
  85. package/package.json +3 -1
package/CHANGELOG.md CHANGED
@@ -5,9 +5,49 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.5.2] - 2022-07-26
9
+
10
+ ### Added
11
+ - Support for `isNativeAssetSuperToken` property on SuperToken entity queries
12
+ - `callAppAction` Operation creator added to `Host` class
13
+
14
+ ### Breaking
15
+ - `BatchCall.getCallDataFunctionArgs` deprecates the old `BatchCall.getCallAgreementFunctionArgs`
16
+ - Migration:
17
+ - Replace `getCallAgreementFunctionArgs` with `getCallDataFunctionArgs` and pass in the fragment/ABI as the first argument, whilst keeping the same `callData` argument.
18
+ - `Host.populateCallAgreementTxnAndReturnOperation` is replaced by `Host.callAgreement`
19
+ - Migration:
20
+ - Replace instances of `populateCallAgreementTxnAndReturnOperation` with `callAgreement`
21
+
22
+ ### Fixes
23
+ - Handle `CALL_APP_ACTION` operation type correctly in SDK-Core when doing a batch call
24
+ - Undefined `process` in `constants.ts` in React and client-side apps using SDK-Core directly
25
+
26
+ ## [0.5.1] - 2022-07-26
27
+
28
+ ### Fixes
29
+ - Patch fix serializeError strange serialization
30
+
31
+ ## [0.5.0] - 2022-07-14
32
+
33
+ ### Added
34
+ - Support for SetEvent and Subgraph v1.4.4
35
+ - `Framework.operation` method for easily creating `Operation` instances
36
+
37
+ ### Fixes
38
+ - Compile AJV validations to prevent unsafe-eval and did not allow SDK-Core usage inside Google Chrome extension due to unsafe-eval CSP
39
+
40
+ ### Changed
41
+ - `SFError` refactor to be more conventional. It inherits `Error` and uses `cause` to wrap internal errors.
42
+ - Use `serialize-error` for serializing error object inside the message.
43
+ - Export Operation & OperationType
44
+
45
+ ### Breaking
46
+ - `SFError.errorObject` renamed to `SFError.cause`
47
+
8
48
  ## [0.4.4] - 2022-06-30
9
49
 
10
- ## Added
50
+ ### Added
11
51
  - Support for new event properties for Subgraph v1.4.1
12
52
 
13
53
  ### Breaking
@@ -152,7 +192,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
152
192
  - New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
153
193
  - New `BatchCall` class for creating and executing batch calls with supported `Operation's`
154
194
 
155
- [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.4...HEAD
195
+ [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.2...HEAD
196
+ [0.5.2]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.1...sdk-core%40v0.5.2
197
+ [0.5.1]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.0...sdk-core%40v0.5.1
198
+ [0.5.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.4...sdk-core%40v0.5.0
156
199
  [0.4.4]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.3...sdk-core%40v0.4.4
157
200
  [0.4.3]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.2...sdk-core%40v0.4.3
158
201
  [0.4.2]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.1...sdk-core%40v0.4.2