@superfluid-finance/sdk-core 0.3.1-dev.e75e426.0 → 0.3.2-dev.2da40ed.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 (80) hide show
  1. package/CHANGELOG.md +18 -3
  2. package/README.md +3 -3
  3. package/dist/index.umd.js +726 -1139
  4. package/dist/main/abi/IConstantFlowAgreementV1.json +58 -7
  5. package/dist/main/abi/IInstantDistributionAgreementV1.json +0 -7
  6. package/dist/main/abi/SuperToken.json +0 -33
  7. package/dist/main/constants.d.ts +10 -0
  8. package/dist/main/constants.d.ts.map +1 -1
  9. package/dist/main/constants.js +41 -31
  10. package/dist/main/constants.js.map +1 -1
  11. package/dist/main/events.d.ts +26 -5
  12. package/dist/main/events.d.ts.map +1 -1
  13. package/dist/main/index.js +5 -1
  14. package/dist/main/index.js.map +1 -1
  15. package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  16. package/dist/main/mapGetAllEventsQueryEvents.js +35 -4
  17. package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -1
  18. package/dist/main/subgraph/events/events.generated.d.ts +27 -0
  19. package/dist/main/subgraph/events/events.generated.d.ts.map +1 -1
  20. package/dist/main/subgraph/events/events.generated.js +1 -1
  21. package/dist/main/subgraph/events/events.generated.js.map +1 -1
  22. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +27 -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 +202 -0
  27. package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
  28. package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +36 -16
  29. package/dist/main/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
  30. package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts +0 -16
  31. package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -1
  32. package/dist/main/typechain/SuperToken.d.ts +0 -16
  33. package/dist/main/typechain/SuperToken.d.ts.map +1 -1
  34. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
  35. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js +58 -7
  36. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
  37. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -1
  38. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js +0 -7
  39. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -1
  40. package/dist/main/typechain/factories/SuperToken__factory.d.ts.map +1 -1
  41. package/dist/main/typechain/factories/SuperToken__factory.js +0 -33
  42. package/dist/main/typechain/factories/SuperToken__factory.js.map +1 -1
  43. package/dist/module/abi/IConstantFlowAgreementV1.json +58 -7
  44. package/dist/module/abi/IInstantDistributionAgreementV1.json +0 -7
  45. package/dist/module/abi/SuperToken.json +0 -33
  46. package/dist/module/constants.d.ts +10 -0
  47. package/dist/module/constants.d.ts.map +1 -1
  48. package/dist/module/constants.js +40 -30
  49. package/dist/module/constants.js.map +1 -1
  50. package/dist/module/events.d.ts +26 -5
  51. package/dist/module/events.d.ts.map +1 -1
  52. package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -1
  53. package/dist/module/mapGetAllEventsQueryEvents.js +35 -4
  54. package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -1
  55. package/dist/module/subgraph/events/events.generated.d.ts +27 -0
  56. package/dist/module/subgraph/events/events.generated.d.ts.map +1 -1
  57. package/dist/module/subgraph/events/events.generated.js +1 -1
  58. package/dist/module/subgraph/events/events.generated.js.map +1 -1
  59. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +27 -0
  60. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
  61. package/dist/module/subgraph/queries/getAllEvents.generated.js +1 -1
  62. package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -1
  63. package/dist/module/subgraph/schema.generated.d.ts +202 -0
  64. package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
  65. package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +36 -16
  66. package/dist/module/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
  67. package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts +0 -16
  68. package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -1
  69. package/dist/module/typechain/SuperToken.d.ts +0 -16
  70. package/dist/module/typechain/SuperToken.d.ts.map +1 -1
  71. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
  72. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js +58 -7
  73. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
  74. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -1
  75. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js +0 -7
  76. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -1
  77. package/dist/module/typechain/factories/SuperToken__factory.d.ts.map +1 -1
  78. package/dist/module/typechain/factories/SuperToken__factory.js +0 -33
  79. package/dist/module/typechain/factories/SuperToken__factory.js.map +1 -1
  80. package/package.json +8 -4
package/CHANGELOG.md CHANGED
@@ -4,9 +4,19 @@ 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
+
8
+ ## [0.3.1] - 2022-02-16
9
+
7
10
  ### Added
8
- - Added `indexValueCurrent` to `IndexSubscription` query to optimize calculating "total amount distributed" in consuming applications
9
- - Added `indexTotalUnits` to `IndexSubscription` query to optimize calculating "pool percentage" in consuming applications
11
+ - Added `indexValueCurrent` to `IndexSubscription` query to optimize calculating "total amount distributed" in consuming applications ([#629])
12
+ - Added `indexTotalUnits` to `IndexSubscription` query to optimize calculating "pool percentage" in consuming applications ([#630])
13
+
14
+ ### Fixed
15
+ - Typo for `networkName: "arbitrum-rinkeby"` fixed (was expecting `"arbitrium-rinkeby"`) in `Framework.create` ([#637])
16
+
17
+ ### Breaking
18
+ - Using `"xdai"` as the `networkName` will no longer work. Updated to `"gnosis"`
19
+ - Migration: change `networkName` from `"xdai"` to `"gnosis"`
10
20
 
11
21
  ## [0.3.0] - 2022-02-02
12
22
  ### Added
@@ -63,7 +73,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
63
73
  - New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
64
74
  - New `BatchCall` class for creating and executing batch calls with supported `Operation's`
65
75
 
66
- [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.3.0...HEAD
76
+ [Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.3.1...HEAD
77
+ [0.3.1]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.3.0...sdk-core%40v0.3.1
67
78
  [0.3.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.2.1...sdk-core%40v0.3.0
68
79
  [0.2.1]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.2.0...sdk-core%40v0.2.1
69
80
  [0.2.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.1.0...sdk-core%40v0.2.0
@@ -85,3 +96,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
85
96
  [#550]: https://github.com/superfluid-finance/protocol-monorepo/pull/550
86
97
  [#556]: https://github.com/superfluid-finance/protocol-monorepo/pull/556
87
98
  [#588]: https://github.com/superfluid-finance/protocol-monorepo/pull/588
99
+ [#629]: https://github.com/superfluid-finance/protocol-monorepo/pull/629
100
+ [#630]: https://github.com/superfluid-finance/protocol-monorepo/pull/630
101
+ [#630]: https://github.com/superfluid-finance/protocol-monorepo/pull/630
102
+ [#637]: https://github.com/superfluid-finance/protocol-monorepo/pull/637
package/README.md CHANGED
@@ -718,18 +718,18 @@ await usdcx.totalSupply({
718
718
 
719
719
  // Write operations
720
720
  usdcx.approve({
721
- recipient: string,
721
+ receiver: string,
722
722
  amount: string
723
723
  });
724
724
 
725
725
  usdcx.transfer({
726
- recipient: string,
726
+ receiver: string,
727
727
  amount: string
728
728
  });
729
729
 
730
730
  usdcx.transferFrom({
731
731
  sender: string,
732
- recipient: string,
732
+ receiver: string,
733
733
  amount: string
734
734
  });
735
735