@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.
- package/CHANGELOG.md +18 -3
- package/README.md +3 -3
- package/dist/index.umd.js +726 -1139
- package/dist/main/abi/IConstantFlowAgreementV1.json +58 -7
- package/dist/main/abi/IInstantDistributionAgreementV1.json +0 -7
- package/dist/main/abi/SuperToken.json +0 -33
- package/dist/main/constants.d.ts +10 -0
- package/dist/main/constants.d.ts.map +1 -1
- package/dist/main/constants.js +41 -31
- package/dist/main/constants.js.map +1 -1
- package/dist/main/events.d.ts +26 -5
- package/dist/main/events.d.ts.map +1 -1
- package/dist/main/index.js +5 -1
- package/dist/main/index.js.map +1 -1
- package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -1
- package/dist/main/mapGetAllEventsQueryEvents.js +35 -4
- package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -1
- package/dist/main/subgraph/events/events.generated.d.ts +27 -0
- package/dist/main/subgraph/events/events.generated.d.ts.map +1 -1
- package/dist/main/subgraph/events/events.generated.js +1 -1
- package/dist/main/subgraph/events/events.generated.js.map +1 -1
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +27 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getAllEvents.generated.js +1 -1
- package/dist/main/subgraph/queries/getAllEvents.generated.js.map +1 -1
- package/dist/main/subgraph/schema.generated.d.ts +202 -0
- package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
- package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +36 -16
- package/dist/main/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
- package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts +0 -16
- package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -1
- package/dist/main/typechain/SuperToken.d.ts +0 -16
- package/dist/main/typechain/SuperToken.d.ts.map +1 -1
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js +58 -7
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js +0 -7
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -1
- package/dist/main/typechain/factories/SuperToken__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/SuperToken__factory.js +0 -33
- package/dist/main/typechain/factories/SuperToken__factory.js.map +1 -1
- package/dist/module/abi/IConstantFlowAgreementV1.json +58 -7
- package/dist/module/abi/IInstantDistributionAgreementV1.json +0 -7
- package/dist/module/abi/SuperToken.json +0 -33
- package/dist/module/constants.d.ts +10 -0
- package/dist/module/constants.d.ts.map +1 -1
- package/dist/module/constants.js +40 -30
- package/dist/module/constants.js.map +1 -1
- package/dist/module/events.d.ts +26 -5
- package/dist/module/events.d.ts.map +1 -1
- package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -1
- package/dist/module/mapGetAllEventsQueryEvents.js +35 -4
- package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -1
- package/dist/module/subgraph/events/events.generated.d.ts +27 -0
- package/dist/module/subgraph/events/events.generated.d.ts.map +1 -1
- package/dist/module/subgraph/events/events.generated.js +1 -1
- package/dist/module/subgraph/events/events.generated.js.map +1 -1
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +27 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getAllEvents.generated.js +1 -1
- package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -1
- package/dist/module/subgraph/schema.generated.d.ts +202 -0
- package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
- package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +36 -16
- package/dist/module/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
- package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts +0 -16
- package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -1
- package/dist/module/typechain/SuperToken.d.ts +0 -16
- package/dist/module/typechain/SuperToken.d.ts.map +1 -1
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js +58 -7
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js +0 -7
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -1
- package/dist/module/typechain/factories/SuperToken__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/SuperToken__factory.js +0 -33
- package/dist/module/typechain/factories/SuperToken__factory.js.map +1 -1
- 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.
|
|
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
|
-
|
|
721
|
+
receiver: string,
|
|
722
722
|
amount: string
|
|
723
723
|
});
|
|
724
724
|
|
|
725
725
|
usdcx.transfer({
|
|
726
|
-
|
|
726
|
+
receiver: string,
|
|
727
727
|
amount: string
|
|
728
728
|
});
|
|
729
729
|
|
|
730
730
|
usdcx.transferFrom({
|
|
731
731
|
sender: string,
|
|
732
|
-
|
|
732
|
+
receiver: string,
|
|
733
733
|
amount: string
|
|
734
734
|
});
|
|
735
735
|
|