You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update to the specifications related to the new `last_install_timestamp`
and `canister_creation_timestamp` leaves in the state tree.
---------
Co-authored-by: Martin Raszyk <martin.raszyk@dfinity.org>
Copy file name to clipboardExpand all lines: docs/references/ic-interface-spec/https-interface.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -314,6 +314,10 @@ All requested paths must have the following form:
314
314
315
315
-`/canister/<canister_id>/controllers`. Can be requested if `<canister_id>` matches `<effective_canister_id>`. The order of controllers in the value at this path may vary depending on the implementation.
316
316
317
+
-`/canister/<canister_id>/canister_creation_timestamp`. Can be requested if `<canister_id>` matches `<effective_canister_id>`.
318
+
319
+
-`/canister/<canister_id>/last_install_timestamp`. Can be requested if `<canister_id>` matches `<effective_canister_id>`.
320
+
317
321
-`/canister/<canister_id>/metadata/<name>`. Can be requested if `<canister_id>` matches `<effective_canister_id>`, `<name>` is encoded in UTF-8, and
318
322
319
323
- canister with canister id `<canister_id>` does not exist or
Copy file name to clipboardExpand all lines: docs/references/ic-interface-spec/index.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -615,7 +615,7 @@ Request statuses will not actually be kept around indefinitely, and eventually t
615
615
616
616
### Canister information {#state-tree-canister-information}
617
617
618
-
Users have the ability to learn about the hash of the canister's module, its current controllers, and metadata in a certified way.
618
+
Users have the ability to learn about the hash of the canister's module, its current controllers, metadata, creation time, and last install time in a certified way.
619
619
620
620
- `/canister/<canister_id>/module_hash` (blob):
621
621
@@ -625,6 +625,14 @@ Users have the ability to learn about the hash of the canister's module, its cur
625
625
626
626
The current controllers of the canister. The value consists of a CBOR (see [CBOR](#cbor)) data item with major type 6 ("Semantic tag") and tag value `55799`, followed by an array of principals in their binary form (CDDL `#6.55799([* bytes .size (0..29)])`, see [CDDL](#cddl)).
The time at which the canister was created, expressed in nanoseconds since 1970-01-01. If the canister was created before this information was recorded, this path does not exist.
The time at which the canister's code was most recently deployed ([code install, reinstall, or upgrade](./management-canister.md#ic-install_code)) or a [snapshot was loaded](./management-canister.md#ic-load_canister_snapshot) onto it, expressed in nanoseconds since 1970-01-01. If the canister is empty, or its code was deployed before this information was recorded, this path does not exist.
If the canister has a [custom section](https://webassembly.github.io/spec/core/binary/modules.html#custom-section) called `icp:public <name>` or `icp:private <name>`, this path contains the content of the custom section. Otherwise, this path does not exist.
0 commit comments