@superfluid-finance/sdk-core 0.5.8-dev.faaf390.0 → 0.5.9

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 (53) hide show
  1. package/CHANGELOG.md +97 -5
  2. package/dist/index.umd.js +2113 -1250
  3. package/dist/main/defaultSubgraphReleaseTag.json +1 -1
  4. package/dist/main/events.d.ts +18 -1
  5. package/dist/main/events.d.ts.map +1 -1
  6. package/dist/main/events.js.map +1 -1
  7. package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  8. package/dist/main/mapGetAllEventsQueryEvents.js +41 -0
  9. package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -1
  10. package/dist/main/subgraph/entities/stream/stream.d.ts +1 -0
  11. package/dist/main/subgraph/entities/stream/stream.d.ts.map +1 -1
  12. package/dist/main/subgraph/entities/stream/stream.js +1 -0
  13. package/dist/main/subgraph/entities/stream/stream.js.map +1 -1
  14. package/dist/main/subgraph/entities/stream/streams.generated.d.ts +1 -0
  15. package/dist/main/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
  16. package/dist/main/subgraph/entities/stream/streams.generated.js +1 -1
  17. package/dist/main/subgraph/entities/stream/streams.generated.js.map +1 -1
  18. package/dist/main/subgraph/events/events.generated.d.ts +127 -0
  19. package/dist/main/subgraph/events/events.generated.d.ts.map +1 -1
  20. package/dist/main/subgraph/events/events.generated.js +5 -2
  21. package/dist/main/subgraph/events/events.generated.js.map +1 -1
  22. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +35 -0
  23. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
  24. package/dist/main/subgraph/queries/getAllEvents.generated.js +1 -1
  25. package/dist/main/subgraph/queries/getAllEvents.generated.js.map +1 -1
  26. package/dist/main/subgraph/schema.generated.d.ts +746 -41
  27. package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
  28. package/dist/module/defaultSubgraphReleaseTag.json +1 -1
  29. package/dist/module/events.d.ts +18 -1
  30. package/dist/module/events.d.ts.map +1 -1
  31. package/dist/module/events.js.map +1 -1
  32. package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  33. package/dist/module/mapGetAllEventsQueryEvents.js +41 -0
  34. package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -1
  35. package/dist/module/subgraph/entities/stream/stream.d.ts +1 -0
  36. package/dist/module/subgraph/entities/stream/stream.d.ts.map +1 -1
  37. package/dist/module/subgraph/entities/stream/stream.js +1 -0
  38. package/dist/module/subgraph/entities/stream/stream.js.map +1 -1
  39. package/dist/module/subgraph/entities/stream/streams.generated.d.ts +1 -0
  40. package/dist/module/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
  41. package/dist/module/subgraph/entities/stream/streams.generated.js +1 -1
  42. package/dist/module/subgraph/entities/stream/streams.generated.js.map +1 -1
  43. package/dist/module/subgraph/events/events.generated.d.ts +127 -0
  44. package/dist/module/subgraph/events/events.generated.d.ts.map +1 -1
  45. package/dist/module/subgraph/events/events.generated.js +4 -1
  46. package/dist/module/subgraph/events/events.generated.js.map +1 -1
  47. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +35 -0
  48. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
  49. package/dist/module/subgraph/queries/getAllEvents.generated.js +1 -1
  50. package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -1
  51. package/dist/module/subgraph/schema.generated.d.ts +746 -41
  52. package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
  53. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -5,8 +5,20 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
- ### Changed
8
+ ## [0.5.9] - 2022-12-15
9
+ ### Added
10
+ - Added toga events to be part of query
11
+
12
+ ### Fixes
13
+ - Added CFAForwarderV1 address to sdk-core
14
+
15
+ ## [0.5.8] - 2022-11-15
16
+
17
+ ### Added
18
+ - Support for eth-mainnet
19
+ - Map `deposit` to Stream when querying from Subgraph
9
20
 
21
+ ### Changed
10
22
  - Framework initialization for supported networks utilizes `@superfluid-finance/metadata`, but still uses the resolver for unsupported/local testing environments
11
23
  - > NOTE: This will not create any changes when doing `Framework.create` and is just a minor optimization.
12
24
  - All transactions executed via SDK-Core have a default multiplier (1.2x) applied to the provider estimated gas limit **unless** an ethers `Overrides` object is passed during creation of the `Operation`.
@@ -14,13 +26,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
14
26
 
15
27
  ## [0.5.7] - 2022-10-13
16
28
  ### Breaking
17
-
18
29
  - `CFAv1Forwarder` integrated into SDK-Core and will be the default way of calling CFA agreements and `sender` is now a required property.
19
30
  - Migration: pass sender into the affected CFAv1 callAgreement functions - `create/update/deleteFlow`.
20
31
  > NOTE: You must pass `shouldUseCallAgreement` explicitly as a property if you want to execute these calls via the Host.
21
32
 
22
33
  ### Added
23
-
24
34
  - typechain files consumed from `@superfluid-finance/ethereum-contracts` and exported from SDK-Core
25
35
 
26
36
  ## [0.5.6] - 2022-09-07
@@ -95,6 +105,87 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
95
105
  ### Breaking
96
106
  - `SFError.errorObject` renamed to `SFError.cause`
97
107
 
108
+ ## [0.5.7] - 2022-10-13
109
+ ### Breaking
110
+
111
+ - `CFAv1Forwarder` integrated into SDK-Core and will be the default way of calling CFA agreements and `sender` is now a required property.
112
+ - Migration: pass sender into the affected CFAv1 callAgreement functions - `create/update/deleteFlow`.
113
+ > NOTE: You must pass `shouldUseCallAgreement` explicitly as a property if you want to execute these calls via the Host.
114
+
115
+ ### Added
116
+
117
+ - typechain files consumed from `@superfluid-finance/ethereum-contracts` and exported from SDK-Core
118
+
119
+ ## [0.5.6] - 2022-09-07
120
+ ### Fixes
121
+ - Correct `subgraphAPIEndpoint` in `getResolverData`
122
+
123
+ ### Breaking
124
+ - Don't wrap `SubgraphClient` with `SFError`
125
+
126
+ ## [0.5.5] - 2022-08-31
127
+ ### Added
128
+ - Support for: `optimism-goerli` and `arbitrum-goerli` added
129
+ ### Breaking
130
+ - Support for: `rinkeby`, `ropsten`, `kovan`, `optimism-kovan` and `arbitrum-rinkeby` removed
131
+ - Don't throw `SFError` when executing `Operation` or `BatchCall`; let the original error bubble up
132
+
133
+ ### Fixes
134
+ - Serialize a much smaller version of the cause in `SFError` (only `name`, `message`, `code`)
135
+ - Change `SFError.name` from "Error" to "SFError"
136
+ # [0.5.4] - 2022-08-19
137
+
138
+ ### Fixes
139
+ - Properly console the cause, not the caught serialization error
140
+
141
+ ## [0.5.3] - 2022-08-15
142
+
143
+ ### Added
144
+ - Map `indexId` to `IndexSubscription` when querying from Subgraph
145
+
146
+ ### Fixes
147
+ - Catch and handle serialization error
148
+
149
+ ## [0.5.2] - 2022-07-26
150
+
151
+ ### Added
152
+ - Support for `isNativeAssetSuperToken` property on SuperToken entity queries
153
+ - `callAppAction` Operation creator added to `Host` class
154
+
155
+ ### Breaking
156
+ - `BatchCall.getCallDataFunctionArgs` deprecates the old `BatchCall.getCallAgreementFunctionArgs`
157
+ - Migration:
158
+ - Replace `getCallAgreementFunctionArgs` with `getCallDataFunctionArgs` and pass in the fragment/ABI as the first argument, whilst keeping the same `callData` argument.
159
+ - `Host.populateCallAgreementTxnAndReturnOperation` is replaced by `Host.callAgreement`
160
+ - Migration:
161
+ - Replace instances of `populateCallAgreementTxnAndReturnOperation` with `callAgreement`
162
+
163
+ ### Fixes
164
+ - Handle `CALL_APP_ACTION` operation type correctly in SDK-Core when doing a batch call
165
+ - Undefined `process` in `constants.ts` in React and client-side apps using SDK-Core directly
166
+
167
+ ## [0.5.1] - 2022-07-26
168
+
169
+ ### Fixes
170
+ - Patch fix serializeError strange serialization
171
+
172
+ ## [0.5.0] - 2022-07-14
173
+
174
+ ### Added
175
+ - Support for SetEvent and Subgraph v1.4.4
176
+ - `Framework.operation` method for easily creating `Operation` instances
177
+
178
+ ### Fixes
179
+ - Compile AJV validations to prevent unsafe-eval and did not allow SDK-Core usage inside Google Chrome extension due to unsafe-eval CSP
180
+
181
+ ### Changed
182
+ - `SFError` refactor to be more conventional. It inherits `Error` and uses `cause` to wrap internal errors.
183
+ - Use `serialize-error` for serializing error object inside the message.
184
+ - Export Operation & OperationType
185
+
186
+ ### Breaking
187
+ - `SFError.errorObject` renamed to `SFError.cause`
188
+
98
189
  ## [0.4.4] - 2022-06-30
99
190
 
100
191
  ### Added
@@ -242,8 +333,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
242
333
  - New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
243
334
  - New `BatchCall` class for creating and executing batch calls with supported `Operation's`
244
335
 
245
- [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.7...HEAD
246
- [0.5.6]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.6...sdk-core%40v0.5.7
336
+ [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.8...HEAD
337
+ [0.5.8]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.7...sdk-core%40v0.5.8
338
+ [0.5.7]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.6...sdk-core%40v0.5.7
247
339
  [0.5.6]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.5...sdk-core%40v0.5.6
248
340
  [0.5.5]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.4...sdk-core%40v0.5.5
249
341
  [0.5.4]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.3...sdk-core%40v0.5.4