@superfluid-finance/sdk-core 0.5.6-dev.fc916ff.0 → 0.5.6

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 (121) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/index.umd.js +8498 -26189
  3. package/dist/main/BatchCall.d.ts.map +1 -1
  4. package/dist/main/BatchCall.js +8 -26
  5. package/dist/main/BatchCall.js.map +1 -1
  6. package/dist/main/ConstantFlowAgreementV1.d.ts +1 -1
  7. package/dist/main/ConstantFlowAgreementV1.js +1 -1
  8. package/dist/main/Governance.js +2 -2
  9. package/dist/main/InstantDistributionAgreementV1.d.ts +3 -3
  10. package/dist/main/InstantDistributionAgreementV1.js +3 -3
  11. package/dist/main/Operation.d.ts +3 -3
  12. package/dist/main/Operation.d.ts.map +1 -1
  13. package/dist/main/Operation.js +10 -39
  14. package/dist/main/Operation.js.map +1 -1
  15. package/dist/main/SFError.d.ts +1 -1
  16. package/dist/main/SFError.d.ts.map +1 -1
  17. package/dist/main/SFError.js +12 -19
  18. package/dist/main/SFError.js.map +1 -1
  19. package/dist/main/abi/Superfluid.json +18 -13
  20. package/dist/main/constants.d.ts.map +1 -1
  21. package/dist/main/constants.js +5 -2
  22. package/dist/main/constants.js.map +1 -1
  23. package/dist/main/defaultSubgraphReleaseTag.json +1 -1
  24. package/dist/main/interfaces.d.ts +0 -1
  25. package/dist/main/interfaces.d.ts.map +1 -1
  26. package/dist/main/miniSerializeError.d.ts +14 -0
  27. package/dist/main/miniSerializeError.d.ts.map +1 -0
  28. package/dist/main/miniSerializeError.js +29 -0
  29. package/dist/main/miniSerializeError.js.map +1 -0
  30. package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -1
  31. package/dist/main/subgraph/SubgraphClient.js +1 -17
  32. package/dist/main/subgraph/SubgraphClient.js.map +1 -1
  33. package/dist/main/subgraph/entities/token/tokens.generated.d.ts +0 -1
  34. package/dist/main/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
  35. package/dist/main/subgraph/entities/token/tokens.generated.js +1 -1
  36. package/dist/main/subgraph/entities/token/tokens.generated.js.map +1 -1
  37. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +0 -1
  38. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -1
  39. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js +1 -1
  40. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -1
  41. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts +0 -1
  42. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -1
  43. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js +1 -1
  44. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -1
  45. package/dist/main/subgraph/queries/getIndexes.generated.d.ts +0 -1
  46. package/dist/main/subgraph/queries/getIndexes.generated.d.ts.map +1 -1
  47. package/dist/main/subgraph/queries/getIndexes.generated.js +1 -1
  48. package/dist/main/subgraph/queries/getIndexes.generated.js.map +1 -1
  49. package/dist/main/subgraph/queries/getStreams.generated.d.ts +0 -1
  50. package/dist/main/subgraph/queries/getStreams.generated.d.ts.map +1 -1
  51. package/dist/main/subgraph/queries/getStreams.generated.js +1 -1
  52. package/dist/main/subgraph/queries/getStreams.generated.js.map +1 -1
  53. package/dist/main/subgraph/queries/getTokens.generated.d.ts +0 -1
  54. package/dist/main/subgraph/queries/getTokens.generated.d.ts.map +1 -1
  55. package/dist/main/subgraph/queries/getTokens.generated.js +1 -1
  56. package/dist/main/subgraph/queries/getTokens.generated.js.map +1 -1
  57. package/dist/main/typechain/Superfluid.d.ts +49 -45
  58. package/dist/main/typechain/Superfluid.d.ts.map +1 -1
  59. package/dist/main/typechain/factories/Superfluid__factory.d.ts.map +1 -1
  60. package/dist/main/typechain/factories/Superfluid__factory.js +18 -13
  61. package/dist/main/typechain/factories/Superfluid__factory.js.map +1 -1
  62. package/dist/module/BatchCall.d.ts.map +1 -1
  63. package/dist/module/BatchCall.js +8 -26
  64. package/dist/module/BatchCall.js.map +1 -1
  65. package/dist/module/ConstantFlowAgreementV1.d.ts +1 -1
  66. package/dist/module/ConstantFlowAgreementV1.js +1 -1
  67. package/dist/module/Governance.js +2 -2
  68. package/dist/module/InstantDistributionAgreementV1.d.ts +3 -3
  69. package/dist/module/InstantDistributionAgreementV1.js +3 -3
  70. package/dist/module/Operation.d.ts +3 -3
  71. package/dist/module/Operation.d.ts.map +1 -1
  72. package/dist/module/Operation.js +10 -39
  73. package/dist/module/Operation.js.map +1 -1
  74. package/dist/module/SFError.d.ts +1 -1
  75. package/dist/module/SFError.d.ts.map +1 -1
  76. package/dist/module/SFError.js +12 -19
  77. package/dist/module/SFError.js.map +1 -1
  78. package/dist/module/abi/Superfluid.json +18 -13
  79. package/dist/module/constants.d.ts.map +1 -1
  80. package/dist/module/constants.js +5 -2
  81. package/dist/module/constants.js.map +1 -1
  82. package/dist/module/defaultSubgraphReleaseTag.json +1 -1
  83. package/dist/module/interfaces.d.ts +0 -1
  84. package/dist/module/interfaces.d.ts.map +1 -1
  85. package/dist/module/miniSerializeError.d.ts +14 -0
  86. package/dist/module/miniSerializeError.d.ts.map +1 -0
  87. package/dist/module/miniSerializeError.js +25 -0
  88. package/dist/module/miniSerializeError.js.map +1 -0
  89. package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -1
  90. package/dist/module/subgraph/SubgraphClient.js +1 -17
  91. package/dist/module/subgraph/SubgraphClient.js.map +1 -1
  92. package/dist/module/subgraph/entities/token/tokens.generated.d.ts +0 -1
  93. package/dist/module/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
  94. package/dist/module/subgraph/entities/token/tokens.generated.js +1 -1
  95. package/dist/module/subgraph/entities/token/tokens.generated.js.map +1 -1
  96. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +0 -1
  97. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -1
  98. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js +1 -1
  99. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -1
  100. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts +0 -1
  101. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -1
  102. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js +1 -1
  103. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -1
  104. package/dist/module/subgraph/queries/getIndexes.generated.d.ts +0 -1
  105. package/dist/module/subgraph/queries/getIndexes.generated.d.ts.map +1 -1
  106. package/dist/module/subgraph/queries/getIndexes.generated.js +1 -1
  107. package/dist/module/subgraph/queries/getIndexes.generated.js.map +1 -1
  108. package/dist/module/subgraph/queries/getStreams.generated.d.ts +0 -1
  109. package/dist/module/subgraph/queries/getStreams.generated.d.ts.map +1 -1
  110. package/dist/module/subgraph/queries/getStreams.generated.js +1 -1
  111. package/dist/module/subgraph/queries/getStreams.generated.js.map +1 -1
  112. package/dist/module/subgraph/queries/getTokens.generated.d.ts +0 -1
  113. package/dist/module/subgraph/queries/getTokens.generated.d.ts.map +1 -1
  114. package/dist/module/subgraph/queries/getTokens.generated.js +1 -1
  115. package/dist/module/subgraph/queries/getTokens.generated.js.map +1 -1
  116. package/dist/module/typechain/Superfluid.d.ts +49 -45
  117. package/dist/module/typechain/Superfluid.d.ts.map +1 -1
  118. package/dist/module/typechain/factories/Superfluid__factory.d.ts.map +1 -1
  119. package/dist/module/typechain/factories/Superfluid__factory.js +18 -13
  120. package/dist/module/typechain/factories/Superfluid__factory.js.map +1 -1
  121. package/package.json +2 -3
package/CHANGELOG.md CHANGED
@@ -5,11 +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.6] - 2022-09-07
9
+ ### Fixes
10
+ - Correct `subgraphAPIEndpoint` in `getResolverData`
11
+
12
+ ### Breaking
13
+ - Don't wrap `SubgraphClient` with `SFError`
14
+
8
15
  ## [0.5.5] - 2022-08-31
9
16
  ### Added
10
17
  - Support for: `optimism-goerli` and `arbitrum-goerli` added
11
18
  ### Breaking
12
19
  - Support for: `rinkeby`, `ropsten`, `kovan`, `optimism-kovan` and `arbitrum-rinkeby` removed
20
+ - Don't throw `SFError` when executing `Operation` or `BatchCall`; let the original error bubble up
21
+
22
+ ### Fixes
23
+ - Serialize a much smaller version of the cause in `SFError` (only `name`, `message`, `code`)
24
+ - Change `SFError.name` from "Error" to "SFError"
13
25
  # [0.5.4] - 2022-08-19
14
26
 
15
27
  ### Fixes
@@ -210,7 +222,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
210
222
  - New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
211
223
  - New `BatchCall` class for creating and executing batch calls with supported `Operation's`
212
224
 
213
- [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.5...HEAD
225
+ [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.6...HEAD
226
+ [0.5.6]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.5...sdk-core%40v0.5.6
214
227
  [0.5.5]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.4...sdk-core%40v0.5.5
215
228
  [0.5.4]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.3...sdk-core%40v0.5.4
216
229
  [0.5.3]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.2...sdk-core%40v0.5.3