Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: snapshot id encoder and decoder #758

Merged
merged 4 commits into from
Nov 20, 2024
Merged

Conversation

peterpeterparker
Copy link
Member

Motivation

There isn't that a standard to represent snapshot_id but, after double checking with the team, it was confirmed that hex representation was already used in DFX (which makes sense). So let's also use such a format for the exposing the snapshots feature in ic-management.

Changes

  • Two utils that convert string to hex. Basically what we already have in utils but that way it makes it a bit explicit.

Copy link
Contributor

github-actions bot commented Nov 20, 2024

size-limit report 📦

Path Size
@dfinity/ckbtc 8.03 KB (0%)
@dfinity/cketh 3.68 KB (0%)
@dfinity/cmc 1.4 KB (0%)
@dfinity/ledger-icrc 4.17 KB (0%)
@dfinity/ledger-icp 15.43 KB (0%)
@dfinity/nns 36.68 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 16.78 KB (0%)
@dfinity/utils 4.66 KB (0%)
@dfinity/ic-management 3.07 KB (+1.13% 🔺)

Signed-off-by: David Dal Busco <[email protected]>
@peterpeterparker peterpeterparker merged commit 51c23f2 into main Nov 20, 2024
11 checks passed
@peterpeterparker peterpeterparker deleted the feat/snapshot-id branch November 20, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants