Skip to content

Kaia/sdk 2075 uint8 candid interfaces #1012

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

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

krpeacock
Copy link
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Fixes # (issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

krpeacock and others added 30 commits April 14, 2025 16:14
* chore: fix linting

* style: fix or disable linter errors

* docs: improve jsdocs
#994)

* simplifies subtyping on Opt to always succeed with an opt on the right

* applies subtype check before decoding functions or services

* stores positive/negative subtyping checks in a global cache

* don't assume function annotations are sorted

* remember failed subtyping checks

* clear subtype cache after decoding to avoid leaking space

---------

Co-authored-by: Christoph Hegemann <[email protected]>
Co-authored-by: Kaia Peacock <[email protected]>
* refactor: use new error system and error codes

* test: update throw assertions to use the new error classes

* feat: cbor error

* test: assert error kind

* test: fix e2e and mitm tests for certificate errors

* test: remove console logs

* fix: remove code and kind props from AgentErrorV2

* feat: der errors

* feat: der error on public key

* feat: hex decode error

* feat: timeout errors

* feat: polling errors

* feat: canister status errors

* feat: hash value errors

* refactor: use error kind constructors

* refactor: extend class instead of implementing abstract
Co-authored-by: Luca Bertelli <[email protected]>
Co-authored-by: Nathan Mc Grath <[email protected]>
…up_subtree` (#1009)

* refactor: unreachable error constant

* refactor: distinguish between lookup errors

* feat: make lookup path compliant with the spec (https://github.com/dfinity/portal/blob/8015a4ab50232176723ffd95e32a02f1bf7fef30/docs/references/ic-interface-spec.md#L3069)

* feat!: lookup_subpath and stronger hashtree types

* feat!: `lookup_path` and `lookup_subtree` in `Certificate` class

* refactor: stronger types on `find_label`

* test: cover lookup_path new cases and unreachable errors

* chore: update changelog

* chore: update changelog to be more specific

* chore: minor changelog updates

* refactor: rename lookup results

* fix: import after renamings

* test: fix import after renaming
Copy link
Contributor

github-actions bot commented May 2, 2025

size-limit report 📦

Path Size
@dfinity/agent 70.82 KB (+0.44% 🔺)
@dfinity/candid 12.86 KB (+3.45% 🔺)
@dfinity/principal 4.2 KB (-0.26% 🔽)
@dfinity/auth-client 47.59 KB (+0.04% 🔺)
@dfinity/assets 76.95 KB (+0.47% 🔺)
@dfinity/identity 45.21 KB (+0.3% 🔺)
@dfinity/identity-secp256k1 102.61 KB (-0.09% 🔽)

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.

3 participants