Skip to content

Commit f947586

Browse files
committed
Add display property to SubgraphDeploymentID
1 parent 69e6026 commit f947586

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/common-ts/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.0.47] - 2020-07-06
10+
### Added
11+
- Add `display` property to `SubgraphDeploymentID`
12+
913
## [0.0.46] - 2020-07-06
1014
### Changed
1115
- Customize logger interface
@@ -198,7 +202,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
198202
- Common database module for simplifying database setup
199203
- Connext client module with Postgres-based store implementation
200204

201-
[Unreleased]: https://github.com/graphprotocol/common/compare/v0.0.46...HEAD
205+
[Unreleased]: https://github.com/graphprotocol/common/compare/v0.0.47...HEAD
206+
[0.0.47]: https://github.com/graphprotocol/common/compare/v0.0.46...v0.0.47
202207
[0.0.46]: https://github.com/graphprotocol/common/compare/v0.0.45...v0.0.46
203208
[0.0.45]: https://github.com/graphprotocol/common/compare/v0.0.44...v0.0.45
204209
[0.0.44]: https://github.com/graphprotocol/common/compare/v0.0.43...v0.0.44

packages/common-ts/src/subgraphs/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ export class SubgraphDeploymentID {
3434
return this.value
3535
}
3636

37+
get display(): { bytes32: string; ipfsHash: string; humanReadable: string } {
38+
return {
39+
bytes32: this.bytes32,
40+
ipfsHash: this.ipfsHash,
41+
humanReadable: this.humanReadable,
42+
}
43+
}
44+
3745
get bytes32(): string {
3846
return this.value
3947
}

0 commit comments

Comments
 (0)