@superfluid-finance/sdk-core 0.5.7 → 0.5.8-dev.184e981.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 (52) hide show
  1. package/CHANGELOG.md +11 -3
  2. package/README.md +7 -0
  3. package/dist/index.umd.js +1791 -1104
  4. package/dist/main/Framework.d.ts.map +1 -1
  5. package/dist/main/Framework.js +40 -24
  6. package/dist/main/Framework.js.map +1 -1
  7. package/dist/main/Operation.d.ts +3 -2
  8. package/dist/main/Operation.d.ts.map +1 -1
  9. package/dist/main/Operation.js +19 -4
  10. package/dist/main/Operation.js.map +1 -1
  11. package/dist/main/constants.d.ts +2 -2
  12. package/dist/main/constants.d.ts.map +1 -1
  13. package/dist/main/constants.js +4 -9
  14. package/dist/main/constants.js.map +1 -1
  15. package/dist/main/defaultSubgraphReleaseTag.json +1 -1
  16. package/dist/main/interfaces.d.ts +0 -6
  17. package/dist/main/interfaces.d.ts.map +1 -1
  18. package/dist/main/subgraph/entities/stream/stream.d.ts +1 -0
  19. package/dist/main/subgraph/entities/stream/stream.d.ts.map +1 -1
  20. package/dist/main/subgraph/entities/stream/stream.js +1 -0
  21. package/dist/main/subgraph/entities/stream/stream.js.map +1 -1
  22. package/dist/main/subgraph/entities/stream/streams.generated.d.ts +1 -0
  23. package/dist/main/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
  24. package/dist/main/subgraph/entities/stream/streams.generated.js +1 -1
  25. package/dist/main/subgraph/entities/stream/streams.generated.js.map +1 -1
  26. package/dist/main/types.d.ts +16 -0
  27. package/dist/main/types.d.ts.map +1 -1
  28. package/dist/module/Framework.d.ts.map +1 -1
  29. package/dist/module/Framework.js +41 -25
  30. package/dist/module/Framework.js.map +1 -1
  31. package/dist/module/Operation.d.ts +3 -2
  32. package/dist/module/Operation.d.ts.map +1 -1
  33. package/dist/module/Operation.js +19 -4
  34. package/dist/module/Operation.js.map +1 -1
  35. package/dist/module/constants.d.ts +2 -2
  36. package/dist/module/constants.d.ts.map +1 -1
  37. package/dist/module/constants.js +4 -9
  38. package/dist/module/constants.js.map +1 -1
  39. package/dist/module/defaultSubgraphReleaseTag.json +1 -1
  40. package/dist/module/interfaces.d.ts +0 -6
  41. package/dist/module/interfaces.d.ts.map +1 -1
  42. package/dist/module/subgraph/entities/stream/stream.d.ts +1 -0
  43. package/dist/module/subgraph/entities/stream/stream.d.ts.map +1 -1
  44. package/dist/module/subgraph/entities/stream/stream.js +1 -0
  45. package/dist/module/subgraph/entities/stream/stream.js.map +1 -1
  46. package/dist/module/subgraph/entities/stream/streams.generated.d.ts +1 -0
  47. package/dist/module/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
  48. package/dist/module/subgraph/entities/stream/streams.generated.js +1 -1
  49. package/dist/module/subgraph/entities/stream/streams.generated.js.map +1 -1
  50. package/dist/module/types.d.ts +16 -0
  51. package/dist/module/types.d.ts.map +1 -1
  52. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -4,16 +4,22 @@ All notable changes to the SDK-core will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
6
  ## [Unreleased]
7
+ ### Added
8
+ - Map `deposit` to Stream when querying from Subgraph
9
+
10
+ ### Changed
11
+ - Framework initialization for supported networks utilizes `@superfluid-finance/metadata`, but still uses the resolver for unsupported/local testing environments
12
+ - > NOTE: This will not create any changes when doing `Framework.create` and is just a minor optimization.
13
+ - 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
+ - There is also the option to pass in an explicit multiplier when executing transactions: `Operation.exec(signer, 1.32)`.
7
15
 
8
16
  ## [0.5.7] - 2022-10-13
9
17
  ### Breaking
10
-
11
18
  - `CFAv1Forwarder` integrated into SDK-Core and will be the default way of calling CFA agreements and `sender` is now a required property.
12
19
  - Migration: pass sender into the affected CFAv1 callAgreement functions - `create/update/deleteFlow`.
13
20
  > NOTE: You must pass `shouldUseCallAgreement` explicitly as a property if you want to execute these calls via the Host.
14
21
 
15
22
  ### Added
16
-
17
23
  - typechain files consumed from `@superfluid-finance/ethereum-contracts` and exported from SDK-Core
18
24
 
19
25
  ## [0.5.6] - 2022-09-07
@@ -26,6 +32,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
26
32
  ## [0.5.5] - 2022-08-31
27
33
  ### Added
28
34
  - Support for: `optimism-goerli` and `arbitrum-goerli` added
35
+
29
36
  ### Breaking
30
37
  - Support for: `rinkeby`, `ropsten`, `kovan`, `optimism-kovan` and `arbitrum-rinkeby` removed
31
38
  - Don't throw `SFError` when executing `Operation` or `BatchCall`; let the original error bubble up
@@ -33,6 +40,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
33
40
  ### Fixes
34
41
  - Serialize a much smaller version of the cause in `SFError` (only `name`, `message`, `code`)
35
42
  - Change `SFError.name` from "Error" to "SFError"
43
+
36
44
  # [0.5.4] - 2022-08-19
37
45
 
38
46
  ### Fixes
@@ -234,7 +242,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
234
242
  - New `BatchCall` class for creating and executing batch calls with supported `Operation's`
235
243
 
236
244
  [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.7...HEAD
237
- [0.5.7]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.6...sdk-core%40v0.5.7
245
+ [0.5.6]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.6...sdk-core%40v0.5.7
238
246
  [0.5.6]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.5...sdk-core%40v0.5.6
239
247
  [0.5.5]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.4...sdk-core%40v0.5.5
240
248
  [0.5.4]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.3...sdk-core%40v0.5.4
package/README.md CHANGED
@@ -50,6 +50,13 @@ SDK-Core is in early active development and can have breaking releases without w
50
50
 
51
51
  # Prerequisites
52
52
 
53
+ > NOTE: You need to have graphql and ethers installed as a dependency in order to use SDK-Core:
54
+
55
+ ```bash
56
+ yarn install graphql ethers
57
+ ```
58
+
59
+
53
60
  To get the package up and running you'll need to install the necessary dependencies and build the project:
54
61
 
55
62
  ```bash