From 62ba61b1149cc8fcc3b58d0871f36b354f8cadc8 Mon Sep 17 00:00:00 2001 From: Kyle Peacock Date: Fri, 29 Sep 2023 11:18:57 -0700 Subject: [PATCH] feat: fetch node keys from subnet certificate (#776) * wip * working certificate subnet node keys * cleaning up * adding certificate node caching tests * fixing canisterStatus test for extra call * tests passing * cleaning up lookup, changelog * more cleanup --- docs/generated/changelog.html | 8 +- .../goldenCertificates.test.ts | 10 + packages/agent/src/agent/http/index.ts | 19 ++ .../agent/src/canisterStatus/index.test.ts | 2 +- packages/agent/src/canisterStatus/index.ts | 41 +++- packages/agent/src/certificate.test.ts | 226 +++++++++++++++++- packages/agent/src/certificate.ts | 146 +++++++++-- packages/assets/src/index.ts | 3 +- 8 files changed, 423 insertions(+), 32 deletions(-) create mode 100644 packages/agent/src/agent/http/__certificates__/goldenCertificates.test.ts diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html index 1edf0a1cb..8d8cf012b 100644 --- a/docs/generated/changelog.html +++ b/docs/generated/changelog.html @@ -11,7 +11,13 @@

Agent-JS Changelog

Version x.x.x

- +

Version 0.19.3