Skip to content

Commit

Permalink
[Sk-core patch fix (superfluid-finance#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee authored Aug 16, 2022
1 parent d249828 commit 8464790
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 8 additions & 1 deletion packages/sdk-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

## [0.5.3] - 2022-08-15

### Added
- Map `indexId` to `IndexSubscription` when querying from Subgraph

### Fixes
- Catch and handle serialization error

## [0.5.2] - 2022-07-26

### Added
Expand Down Expand Up @@ -194,7 +200,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- New `SuperToken` class with `SuperToken` CRUD functionality and an underlying `Token` class with basic `ERC20` functionality
- New `BatchCall` class for creating and executing batch calls with supported `Operation's`

[Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.2...HEAD
[Unreleased]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.3...HEAD
[0.5.3]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.2...sdk-core%40v0.5.3
[0.5.2]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.1...sdk-core%40v0.5.2
[0.5.1]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.5.0...sdk-core%40v0.5.1
[0.5.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-core%40v0.4.4...sdk-core%40v0.5.0
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superfluid-finance/sdk-core",
"version": "0.5.2",
"version": "0.5.3",
"description": "SDK Core for building with Superfluid Protocol",
"homepage": "https://github.com/superfluid-finance/protocol-monorepo/tree/dev/packages/sdk-core#readme",
"repository": {
Expand Down
7 changes: 6 additions & 1 deletion packages/sdk-core/src/SFError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ const stringifyCause = (cause?: Error | unknown) => {
try {
return JSON.stringify(serializeError(cause), null, 2);
} catch (err) {
return JSON.stringify(cause, null, 2);
try {
return JSON.stringify(cause, null, 2);
} catch (err) {
console.error("Caused by: ", err);
return "[Couldn't serialize error. Error logged to console.]";
}
}
};

Expand Down
2 changes: 1 addition & 1 deletion packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"dependencies": {
"@graphprotocol/graph-cli": "0.29.0",
"@graphprotocol/graph-ts": "0.27.0",
"@superfluid-finance/sdk-core": "0.5.2",
"@superfluid-finance/sdk-core": "0.5.3",
"mustache": "^4.2.0"
},
"devDependencies": {
Expand Down

0 comments on commit 8464790

Please sign in to comment.