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

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