@superfluid-finance/sdk-core 0.5.8 → 0.6.1-dev.05f4cba.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 +6 -86
- package/dist/index.umd.js +30796 -31428
- package/dist/main/Framework.d.ts +1 -1
- package/dist/main/Framework.d.ts.map +1 -1
- package/dist/main/Framework.js.map +1 -1
- package/dist/main/Operation.d.ts +1 -1
- package/dist/main/Operation.d.ts.map +1 -1
- package/dist/main/SFError.d.ts +1 -1
- package/dist/main/SFError.d.ts.map +1 -1
- package/dist/main/SuperToken.js.map +1 -1
- package/dist/main/defaultSubgraphReleaseTag.json +1 -1
- package/dist/main/events.d.ts +4 -4
- package/dist/main/events.d.ts.map +1 -1
- package/dist/main/interfaces.d.ts +6 -6
- package/dist/main/interfaces.d.ts.map +1 -1
- package/dist/main/ordering.d.ts +1 -1
- package/dist/main/ordering.d.ts.map +1 -1
- package/dist/main/pagination.d.ts +5 -5
- package/dist/main/pagination.d.ts.map +1 -1
- package/dist/main/subgraph/SubgraphClient.d.ts +2 -2
- package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/main/subgraph/SubgraphClient.js +1 -1
- package/dist/main/subgraph/SubgraphClient.js.map +1 -1
- package/dist/main/subgraph/entities/account/account.d.ts +1 -1
- package/dist/main/subgraph/entities/account/account.d.ts.map +1 -1
- package/dist/main/subgraph/entities/account/accounts.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/account/accounts.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLog.d.ts +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLog.d.ts.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLogs.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLogs.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/index/index.d.ts +1 -1
- package/dist/main/subgraph/entities/index/index.d.ts.map +1 -1
- package/dist/main/subgraph/entities/index/indexes.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/index/indexes.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscription.d.ts +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscription.d.ts.map +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/stream/stream.d.ts +1 -1
- package/dist/main/subgraph/entities/stream/stream.d.ts.map +1 -1
- package/dist/main/subgraph/entities/stream/streams.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriod.d.ts +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriod.d.ts.map +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/token/token.d.ts +1 -1
- package/dist/main/subgraph/entities/token/token.d.ts.map +1 -1
- package/dist/main/subgraph/entities/token/tokens.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistic.d.ts +1 -1
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistic.d.ts.map +1 -1
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/tokenStatisticLog/tokenStatisticLog.d.ts +1 -1
- package/dist/main/subgraph/entities/tokenStatisticLog/tokenStatisticLog.d.ts.map +1 -1
- package/dist/main/subgraph/entities/tokenStatisticLog/tokenStatisticLogs.generated.d.ts +2 -2
- package/dist/main/subgraph/entities/tokenStatisticLog/tokenStatisticLogs.generated.d.ts.map +1 -1
- package/dist/main/subgraph/events/events.d.ts +1 -1
- package/dist/main/subgraph/events/events.d.ts.map +1 -1
- package/dist/main/subgraph/events/events.generated.d.ts +76 -76
- package/dist/main/subgraph/events/events.generated.d.ts.map +1 -1
- package/dist/main/subgraph/events/flowUpdatedEvent.d.ts +1 -1
- package/dist/main/subgraph/events/flowUpdatedEvent.d.ts.map +1 -1
- package/dist/main/subgraph/events/indexUpdatedEvent.d.ts +1 -1
- package/dist/main/subgraph/events/indexUpdatedEvent.d.ts.map +1 -1
- package/dist/main/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts +1 -1
- package/dist/main/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts.map +1 -1
- package/dist/main/subgraph/events/transferEvents.d.ts +1 -1
- package/dist/main/subgraph/events/transferEvents.d.ts.map +1 -1
- package/dist/main/subgraph/mappedSubgraphTypes.d.ts +5 -5
- package/dist/main/subgraph/mappedSubgraphTypes.d.ts.map +1 -1
- package/dist/main/subgraph/meta/meta.d.ts +1 -1
- package/dist/main/subgraph/meta/meta.d.ts.map +1 -1
- package/dist/main/subgraph/meta/meta.generated.d.ts +2 -2
- package/dist/main/subgraph/meta/meta.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +2 -2
- package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +2 -2
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts +2 -2
- package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getIndexes.generated.d.ts +2 -2
- package/dist/main/subgraph/queries/getIndexes.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getStreams.generated.d.ts +2 -2
- package/dist/main/subgraph/queries/getStreams.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getTokens.generated.d.ts +2 -2
- package/dist/main/subgraph/queries/getTokens.generated.d.ts.map +1 -1
- package/dist/main/subgraph/schema.generated.d.ts +61 -61
- package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
- package/dist/main/types.d.ts +2 -2
- package/dist/main/types.d.ts.map +1 -1
- package/dist/module/Framework.d.ts +1 -1
- package/dist/module/Framework.d.ts.map +1 -1
- package/dist/module/Framework.js.map +1 -1
- package/dist/module/Operation.d.ts +1 -1
- package/dist/module/Operation.d.ts.map +1 -1
- package/dist/module/SFError.d.ts +1 -1
- package/dist/module/SFError.d.ts.map +1 -1
- package/dist/module/SuperToken.js.map +1 -1
- package/dist/module/defaultSubgraphReleaseTag.json +1 -1
- package/dist/module/events.d.ts +4 -4
- package/dist/module/events.d.ts.map +1 -1
- package/dist/module/interfaces.d.ts +6 -6
- package/dist/module/interfaces.d.ts.map +1 -1
- package/dist/module/ordering.d.ts +1 -1
- package/dist/module/ordering.d.ts.map +1 -1
- package/dist/module/pagination.d.ts +5 -5
- package/dist/module/pagination.d.ts.map +1 -1
- package/dist/module/subgraph/SubgraphClient.d.ts +2 -2
- package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/module/subgraph/SubgraphClient.js +1 -1
- package/dist/module/subgraph/SubgraphClient.js.map +1 -1
- package/dist/module/subgraph/entities/account/account.d.ts +1 -1
- package/dist/module/subgraph/entities/account/account.d.ts.map +1 -1
- package/dist/module/subgraph/entities/account/accounts.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/account/accounts.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLog.d.ts +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLog.d.ts.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLogs.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/accountTokenSnapshotLog/accountTokenSnapshotLogs.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/index/index.d.ts +1 -1
- package/dist/module/subgraph/entities/index/index.d.ts.map +1 -1
- package/dist/module/subgraph/entities/index/indexes.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/index/indexes.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscription.d.ts +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscription.d.ts.map +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/stream/stream.d.ts +1 -1
- package/dist/module/subgraph/entities/stream/stream.d.ts.map +1 -1
- package/dist/module/subgraph/entities/stream/streams.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriod.d.ts +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriod.d.ts.map +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/token/token.d.ts +1 -1
- package/dist/module/subgraph/entities/token/token.d.ts.map +1 -1
- package/dist/module/subgraph/entities/token/tokens.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistic.d.ts +1 -1
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistic.d.ts.map +1 -1
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/tokenStatisticLog/tokenStatisticLog.d.ts +1 -1
- package/dist/module/subgraph/entities/tokenStatisticLog/tokenStatisticLog.d.ts.map +1 -1
- package/dist/module/subgraph/entities/tokenStatisticLog/tokenStatisticLogs.generated.d.ts +2 -2
- package/dist/module/subgraph/entities/tokenStatisticLog/tokenStatisticLogs.generated.d.ts.map +1 -1
- package/dist/module/subgraph/events/events.d.ts +1 -1
- package/dist/module/subgraph/events/events.d.ts.map +1 -1
- package/dist/module/subgraph/events/events.generated.d.ts +76 -76
- package/dist/module/subgraph/events/events.generated.d.ts.map +1 -1
- package/dist/module/subgraph/events/flowUpdatedEvent.d.ts +1 -1
- package/dist/module/subgraph/events/flowUpdatedEvent.d.ts.map +1 -1
- package/dist/module/subgraph/events/indexUpdatedEvent.d.ts +1 -1
- package/dist/module/subgraph/events/indexUpdatedEvent.d.ts.map +1 -1
- package/dist/module/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts +1 -1
- package/dist/module/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts.map +1 -1
- package/dist/module/subgraph/events/transferEvents.d.ts +1 -1
- package/dist/module/subgraph/events/transferEvents.d.ts.map +1 -1
- package/dist/module/subgraph/mappedSubgraphTypes.d.ts +5 -5
- package/dist/module/subgraph/mappedSubgraphTypes.d.ts.map +1 -1
- package/dist/module/subgraph/meta/meta.d.ts +1 -1
- package/dist/module/subgraph/meta/meta.d.ts.map +1 -1
- package/dist/module/subgraph/meta/meta.generated.d.ts +2 -2
- package/dist/module/subgraph/meta/meta.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +2 -2
- package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +2 -2
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts +2 -2
- package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getIndexes.generated.d.ts +2 -2
- package/dist/module/subgraph/queries/getIndexes.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getStreams.generated.d.ts +2 -2
- package/dist/module/subgraph/queries/getStreams.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getTokens.generated.d.ts +2 -2
- package/dist/module/subgraph/queries/getTokens.generated.d.ts.map +1 -1
- package/dist/module/subgraph/schema.generated.d.ts +61 -61
- package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
- package/dist/module/types.d.ts +2 -2
- package/dist/module/types.d.ts.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,12 +4,13 @@ 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
|
|
7
9
|
|
|
8
|
-
## [0.
|
|
10
|
+
## [0.6.0] - 2022-11-02
|
|
9
11
|
|
|
10
12
|
### Added
|
|
11
|
-
- Support for
|
|
12
|
-
- Map `deposit` to Stream when querying from Subgraph
|
|
13
|
+
- Support for mainnet
|
|
13
14
|
|
|
14
15
|
### Changed
|
|
15
16
|
- Framework initialization for supported networks utilizes `@superfluid-finance/metadata`, but still uses the resolver for unsupported/local testing environments
|
|
@@ -98,87 +99,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
98
99
|
### Breaking
|
|
99
100
|
- `SFError.errorObject` renamed to `SFError.cause`
|
|
100
101
|
|
|
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
|
-
|
|
182
102
|
## [0.4.4] - 2022-06-30
|
|
183
103
|
|
|
184
104
|
### Added
|
|
@@ -326,8 +246,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
326
246
|
- New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
|
|
327
247
|
- New `BatchCall` class for creating and executing batch calls with supported `Operation's`
|
|
328
248
|
|
|
329
|
-
[Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.
|
|
330
|
-
[0.
|
|
249
|
+
[Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.6.0...HEAD
|
|
250
|
+
[0.6.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.7...sdk-core%40v0.6.0
|
|
331
251
|
[0.5.7]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.6...sdk-core%40v0.5.7
|
|
332
252
|
[0.5.6]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.5...sdk-core%40v0.5.6
|
|
333
253
|
[0.5.5]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.4...sdk-core%40v0.5.5
|