dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.
https://agent-js.icp.xyz
Apache License 2.0
151 stars 93 forks source link

feat: support for management canister logging #863

Closed krpeacock closed 5 months ago

krpeacock commented 5 months ago

Description

Previously, management canister queries had not been implemented, and attempts to use the new bitcoin and fetch_canister_logs features were not working correctly.

This adds support for queries to the management canister using effective canister ids, similar to how we have already done them for calls. Also adds e2e tests (locally) for reading logs

Screenshot 2024-03-20 at 2 20 12 PM

Note: logs are not enabled on all subnets on mainnet at present

Fixes SDK-1506

How Has This Been Tested?

new e2e tests

Checklist:

github-actions[bot] commented 5 months ago

size-limit report 📦

Path Size
@dfinity/agent 102.23 KB (+0.41% 🔺)
@dfinity/candid 13.62 KB (+0.08% 🔺)
@dfinity/principal 5.04 KB (0%)
@dfinity/auth-client 92.84 KB (+0.11% 🔺)
@dfinity/assets 93.88 KB (+0.48% 🔺)
@dfinity/identity 90.1 KB (+0.15% 🔺)
@dfinity/identity-secp256k1 281.7 KB (+0.19% 🔺)