-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: improve DeploymentId encoding/decoding
This adds support for decoding/encoding to and from hex strings in addition to IPFS hashes / CIDv0. Introducing a dedicated `DeploymentIdError` type makes this a breaking change, but perhaps we're ok with that given the benefits. The reason this is useful is that in various places we store deployment IDs as hex strings (e.g. in the indexer software). Instead of explicitly handling these cases on one-off basis, the changes introduced here allow to treat them all the same.
- Loading branch information
Showing
1 changed file
with
83 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters