@superfluid-finance/sdk-core 0.5.10-dev.99ada30.0 → 0.6.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 (81) hide show
  1. package/CHANGELOG.md +102 -2
  2. package/dist/index.umd.js +16561 -13442
  3. package/dist/main/BatchCall.d.ts.map +1 -1
  4. package/dist/main/BatchCall.js +8 -7
  5. package/dist/main/BatchCall.js.map +1 -1
  6. package/dist/main/ConstantFlowAgreementV1.js +6 -6
  7. package/dist/main/ConstantFlowAgreementV1.js.map +1 -1
  8. package/dist/main/Framework.d.ts +2 -2
  9. package/dist/main/Framework.d.ts.map +1 -1
  10. package/dist/main/Framework.js.map +1 -1
  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.map +1 -1
  14. package/dist/main/SuperToken.d.ts +25 -3
  15. package/dist/main/SuperToken.d.ts.map +1 -1
  16. package/dist/main/SuperToken.js +27 -2
  17. package/dist/main/SuperToken.js.map +1 -1
  18. package/dist/main/defaultSubgraphReleaseTag.json +1 -1
  19. package/dist/main/events.d.ts +18 -1
  20. package/dist/main/events.d.ts.map +1 -1
  21. package/dist/main/events.js.map +1 -1
  22. package/dist/main/index.d.ts +2 -2
  23. package/dist/main/index.d.ts.map +1 -1
  24. package/dist/main/index.js.map +1 -1
  25. package/dist/main/interfaces.d.ts +39 -79
  26. package/dist/main/interfaces.d.ts.map +1 -1
  27. package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  28. package/dist/main/mapGetAllEventsQueryEvents.js +41 -0
  29. package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -1
  30. package/dist/main/subgraph/events/events.generated.d.ts +127 -0
  31. package/dist/main/subgraph/events/events.generated.d.ts.map +1 -1
  32. package/dist/main/subgraph/events/events.generated.js +5 -2
  33. package/dist/main/subgraph/events/events.generated.js.map +1 -1
  34. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +35 -0
  35. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
  36. package/dist/main/subgraph/queries/getAllEvents.generated.js +1 -1
  37. package/dist/main/subgraph/queries/getAllEvents.generated.js.map +1 -1
  38. package/dist/main/subgraph/schema.generated.d.ts +708 -40
  39. package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
  40. package/dist/main/utils.d.ts +1 -1
  41. package/dist/main/utils.js +1 -1
  42. package/dist/module/BatchCall.d.ts.map +1 -1
  43. package/dist/module/BatchCall.js +8 -7
  44. package/dist/module/BatchCall.js.map +1 -1
  45. package/dist/module/ConstantFlowAgreementV1.js +6 -6
  46. package/dist/module/ConstantFlowAgreementV1.js.map +1 -1
  47. package/dist/module/Framework.d.ts +2 -2
  48. package/dist/module/Framework.d.ts.map +1 -1
  49. package/dist/module/Framework.js.map +1 -1
  50. package/dist/module/Operation.d.ts +3 -3
  51. package/dist/module/Operation.d.ts.map +1 -1
  52. package/dist/module/Operation.js.map +1 -1
  53. package/dist/module/SuperToken.d.ts +25 -3
  54. package/dist/module/SuperToken.d.ts.map +1 -1
  55. package/dist/module/SuperToken.js +27 -2
  56. package/dist/module/SuperToken.js.map +1 -1
  57. package/dist/module/defaultSubgraphReleaseTag.json +1 -1
  58. package/dist/module/events.d.ts +18 -1
  59. package/dist/module/events.d.ts.map +1 -1
  60. package/dist/module/events.js.map +1 -1
  61. package/dist/module/index.d.ts +2 -2
  62. package/dist/module/index.d.ts.map +1 -1
  63. package/dist/module/index.js.map +1 -1
  64. package/dist/module/interfaces.d.ts +39 -79
  65. package/dist/module/interfaces.d.ts.map +1 -1
  66. package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  67. package/dist/module/mapGetAllEventsQueryEvents.js +41 -0
  68. package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -1
  69. package/dist/module/subgraph/events/events.generated.d.ts +127 -0
  70. package/dist/module/subgraph/events/events.generated.d.ts.map +1 -1
  71. package/dist/module/subgraph/events/events.generated.js +4 -1
  72. package/dist/module/subgraph/events/events.generated.js.map +1 -1
  73. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +35 -0
  74. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
  75. package/dist/module/subgraph/queries/getAllEvents.generated.js +1 -1
  76. package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -1
  77. package/dist/module/subgraph/schema.generated.d.ts +708 -40
  78. package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
  79. package/dist/module/utils.d.ts +1 -1
  80. package/dist/module/utils.js +1 -1
  81. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,11 +3,29 @@ All notable changes to the SDK-core will be documented in this file.
3
3
 
4
4
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
- ## [Unreleased]
6
+ ## [0.6.0] - 2022-12-19
7
+
8
+ ### Added
9
+ - `SuperToken` class has `send` function
10
+ - `batchCall` supports new `send` batch operation
11
+ - Added `downgradeTo` function on `SuperToken` class
12
+ - Added toga events to be part of query
13
+
14
+ ### Changed
15
+ - Make `sender` field optional in CFAv1 write functions
7
16
 
8
17
  ## [0.5.9] - 2022-12-05
9
18
 
10
19
  ### Added
20
+ - Added toga events to be part of query
21
+
22
+ ### Fixes
23
+ - Added CFAForwarderV1 address to sdk-core
24
+
25
+ ## [0.5.8] - 2022-11-15
26
+
27
+ ### Added
28
+ - Support for eth-mainnet
11
29
  - Map `deposit` to Stream when querying from Subgraph
12
30
 
13
31
  ### Fixes
@@ -105,6 +123,87 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
105
123
  ### Breaking
106
124
  - `SFError.errorObject` renamed to `SFError.cause`
107
125
 
126
+ ## [0.5.7] - 2022-10-13
127
+ ### Breaking
128
+
129
+ - `CFAv1Forwarder` integrated into SDK-Core and will be the default way of calling CFA agreements and `sender` is now a required property.
130
+ - Migration: pass sender into the affected CFAv1 callAgreement functions - `create/update/deleteFlow`.
131
+ > NOTE: You must pass `shouldUseCallAgreement` explicitly as a property if you want to execute these calls via the Host.
132
+
133
+ ### Added
134
+
135
+ - typechain files consumed from `@superfluid-finance/ethereum-contracts` and exported from SDK-Core
136
+
137
+ ## [0.5.6] - 2022-09-07
138
+ ### Fixes
139
+ - Correct `subgraphAPIEndpoint` in `getResolverData`
140
+
141
+ ### Breaking
142
+ - Don't wrap `SubgraphClient` with `SFError`
143
+
144
+ ## [0.5.5] - 2022-08-31
145
+ ### Added
146
+ - Support for: `optimism-goerli` and `arbitrum-goerli` added
147
+ ### Breaking
148
+ - Support for: `rinkeby`, `ropsten`, `kovan`, `optimism-kovan` and `arbitrum-rinkeby` removed
149
+ - Don't throw `SFError` when executing `Operation` or `BatchCall`; let the original error bubble up
150
+
151
+ ### Fixes
152
+ - Serialize a much smaller version of the cause in `SFError` (only `name`, `message`, `code`)
153
+ - Change `SFError.name` from "Error" to "SFError"
154
+ # [0.5.4] - 2022-08-19
155
+
156
+ ### Fixes
157
+ - Properly console the cause, not the caught serialization error
158
+
159
+ ## [0.5.3] - 2022-08-15
160
+
161
+ ### Added
162
+ - Map `indexId` to `IndexSubscription` when querying from Subgraph
163
+
164
+ ### Fixes
165
+ - Catch and handle serialization error
166
+
167
+ ## [0.5.2] - 2022-07-26
168
+
169
+ ### Added
170
+ - Support for `isNativeAssetSuperToken` property on SuperToken entity queries
171
+ - `callAppAction` Operation creator added to `Host` class
172
+
173
+ ### Breaking
174
+ - `BatchCall.getCallDataFunctionArgs` deprecates the old `BatchCall.getCallAgreementFunctionArgs`
175
+ - Migration:
176
+ - Replace `getCallAgreementFunctionArgs` with `getCallDataFunctionArgs` and pass in the fragment/ABI as the first argument, whilst keeping the same `callData` argument.
177
+ - `Host.populateCallAgreementTxnAndReturnOperation` is replaced by `Host.callAgreement`
178
+ - Migration:
179
+ - Replace instances of `populateCallAgreementTxnAndReturnOperation` with `callAgreement`
180
+
181
+ ### Fixes
182
+ - Handle `CALL_APP_ACTION` operation type correctly in SDK-Core when doing a batch call
183
+ - Undefined `process` in `constants.ts` in React and client-side apps using SDK-Core directly
184
+
185
+ ## [0.5.1] - 2022-07-26
186
+
187
+ ### Fixes
188
+ - Patch fix serializeError strange serialization
189
+
190
+ ## [0.5.0] - 2022-07-14
191
+
192
+ ### Added
193
+ - Support for SetEvent and Subgraph v1.4.4
194
+ - `Framework.operation` method for easily creating `Operation` instances
195
+
196
+ ### Fixes
197
+ - Compile AJV validations to prevent unsafe-eval and did not allow SDK-Core usage inside Google Chrome extension due to unsafe-eval CSP
198
+
199
+ ### Changed
200
+ - `SFError` refactor to be more conventional. It inherits `Error` and uses `cause` to wrap internal errors.
201
+ - Use `serialize-error` for serializing error object inside the message.
202
+ - Export Operation & OperationType
203
+
204
+ ### Breaking
205
+ - `SFError.errorObject` renamed to `SFError.cause`
206
+
108
207
  ## [0.4.4] - 2022-06-30
109
208
 
110
209
  ### Added
@@ -252,7 +351,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
252
351
  - New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
253
352
  - New `BatchCall` class for creating and executing batch calls with supported `Operation's`
254
353
 
255
- [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.9...HEAD
354
+ [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.6.0...HEAD
355
+ [0.6.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.9...sdk-core%40v0.6.0
256
356
  [0.5.9]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.8...sdk-core%40v0.5.9
257
357
  [0.5.8]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.7...sdk-core%40v0.5.8
258
358
  [0.5.7]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.6...sdk-core%40v0.5.7