From faf850c2de8a0fbf7115a97242a611ef5b7a2da6 Mon Sep 17 00:00:00 2001 From: Kyle Peacock Date: Thu, 19 May 2022 15:42:44 -0700 Subject: [PATCH] feat: CanisterStatus utility (#572) --- .nvmrc | 2 +- docs/generated/changelog.html | 23 ++ packages/agent/package.json | 2 +- .../__snapshots__/index.test.ts.snap | 87 +++++++ .../agent/src/canisterStatus/index.test.ts | 180 ++++++++++++++ packages/agent/src/canisterStatus/index.ts | 232 ++++++++++++++++++ packages/agent/src/index.ts | 9 + packages/candid/src/index.ts | 1 + 8 files changed, 534 insertions(+), 2 deletions(-) create mode 100644 packages/agent/src/canisterStatus/__snapshots__/index.test.ts.snap create mode 100644 packages/agent/src/canisterStatus/index.test.ts create mode 100644 packages/agent/src/canisterStatus/index.ts diff --git a/.nvmrc b/.nvmrc index bc467a161..0d68f8a0e 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14.15 \ No newline at end of file +16.0 diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html index e42febf40..f212bd2d4 100644 --- a/docs/generated/changelog.html +++ b/docs/generated/changelog.html @@ -16,6 +16,29 @@

Version 0.11.2

Adds a default callback to the IdleManager that will refresh the page after clearing the storage +
  • + Adds a new utility method, +
    canisterStatus
    + , to @agent/js. Canister status now allows you to query paths from the canister + certificate with a simple interface, using the API from theinterface specification
    + Comes with nicely configured options for +
    time
    + , +
    controllers
    + , +
    subnet
    + , +
    module_hash
    + , and +
    candid
    + . Additionally, has a utility for reading custom MetaData set using + ic-wasm, as well as generic custom paths + in the format of ArrayBuffers. +
  • +
  • updates to package.json files for metadata in npm
  • Version 0.11.1