diff --git a/docs/404.html b/docs/404.html
index f6aa6b761f..88118efd52 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -84,7 +84,7 @@
diff --git a/docs/azle.html b/docs/azle.html
index 27adfdd790..34ec6c4355 100644
--- a/docs/azle.html
+++ b/docs/azle.html
@@ -83,7 +83,7 @@
diff --git a/docs/candid.html b/docs/candid.html
index 6e98b1b2ca..99e7b27d5a 100644
--- a/docs/candid.html
+++ b/docs/candid.html
@@ -83,7 +83,7 @@
diff --git a/docs/canister_lifecycle.html b/docs/canister_lifecycle.html
index f24756ec9d..9a563450a7 100644
--- a/docs/canister_lifecycle.html
+++ b/docs/canister_lifecycle.html
@@ -83,7 +83,7 @@
diff --git a/docs/canisters_overview.html b/docs/canisters_overview.html
index 7ddd2a854d..2955b24223 100644
--- a/docs/canisters_overview.html
+++ b/docs/canisters_overview.html
@@ -83,7 +83,7 @@
diff --git a/docs/caveats.html b/docs/caveats.html
index c1a5513d6b..feb3e426ad 100644
--- a/docs/caveats.html
+++ b/docs/caveats.html
@@ -83,7 +83,7 @@
diff --git a/docs/cross_canister.html b/docs/cross_canister.html
index cf0d377f2f..c83fb15f22 100644
--- a/docs/cross_canister.html
+++ b/docs/cross_canister.html
@@ -83,7 +83,7 @@
diff --git a/docs/cycles.html b/docs/cycles.html
index 31d9f63ccb..96f858e1d3 100644
--- a/docs/cycles.html
+++ b/docs/cycles.html
@@ -83,7 +83,7 @@
diff --git a/docs/deployment.html b/docs/deployment.html
index c81b023e7a..d085353a37 100644
--- a/docs/deployment.html
+++ b/docs/deployment.html
@@ -83,7 +83,7 @@
diff --git a/docs/examples.html b/docs/examples.html
index 5352c9ff26..013f9448ba 100644
--- a/docs/examples.html
+++ b/docs/examples.html
@@ -83,7 +83,7 @@
diff --git a/docs/hello_world.html b/docs/hello_world.html
index 864f86f919..326f36842a 100644
--- a/docs/hello_world.html
+++ b/docs/hello_world.html
@@ -83,7 +83,7 @@
diff --git a/docs/http.html b/docs/http.html
index 35ea9bac02..fb4eb35e3f 100644
--- a/docs/http.html
+++ b/docs/http.html
@@ -83,7 +83,7 @@
diff --git a/docs/index.html b/docs/index.html
index 8ff8e8754e..bade81dd65 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -83,7 +83,7 @@
diff --git a/docs/installation.html b/docs/installation.html
index a11a288f64..1fa5d15239 100644
--- a/docs/installation.html
+++ b/docs/installation.html
@@ -83,7 +83,7 @@
diff --git a/docs/internet_computer_overview.html b/docs/internet_computer_overview.html
index 9f96bc4621..881af6860a 100644
--- a/docs/internet_computer_overview.html
+++ b/docs/internet_computer_overview.html
@@ -83,7 +83,7 @@
diff --git a/docs/management_canister.html b/docs/management_canister.html
index f838d2e811..389979a021 100644
--- a/docs/management_canister.html
+++ b/docs/management_canister.html
@@ -83,7 +83,7 @@
diff --git a/docs/print.html b/docs/print.html
index b833977c24..2804712d97 100644
--- a/docs/print.html
+++ b/docs/print.html
@@ -84,7 +84,7 @@
@@ -2741,7 +2741,6 @@
notify
notify raw
notify with payment 128
-performance counter
reject
reject code
reject message
@@ -3188,19 +3187,6 @@
return cyclesCanister.receiveCycles128().cycles128(1_000_000n).notify();
}
-
-This section is a work in progress.
-Examples:
-
-import { ic, nat64, $query } from 'azle';
-
-$query;
-export function performanceCounter(): nat64 {
- return ic.performanceCounter(0);
-}
-
This section is a work in progress.
Examples:
@@ -4080,8 +4066,12 @@
candid encode
canister balance
canister balance 128
+canister version
canister id
data certificate
+instruction counter
+is controller
+performance counter
print
set certified data
time
@@ -4150,6 +4140,20 @@
return ic.canisterBalance128();
}
+
+This section is a work in progress.
+Examples:
+
+import { ic, nat64, $query } from 'azle';
+
+// returns the canister's version number
+$query;
+export function canisterVersion(): nat64 {
+ return ic.canisterVersion();
+}
+
This section is a work in progress.
Examples:
@@ -4182,6 +4186,48 @@
return ic.dataCertificate();
}
+
+This section is a work in progress.
+Examples:
+
+import { ic, nat64, $query } from 'azle';
+
+// Returns the number of instructions that the canister executed since the last
+// entry point.
+$query;
+export function instructionCounter(): nat64 {
+ return ic.instructionCounter();
+}
+
+
+This section is a work in progress.
+Examples:
+
+import { ic, Principal, $query } from 'azle';
+
+// determines whether the given principal is a controller of the canister
+$query;
+export function isController(principal: Principal): boolean {
+ return ic.isController(principal);
+}
+
+
+This section is a work in progress.
+Examples:
+
+import { ic, nat64, $query } from 'azle';
+
+$query;
+export function performanceCounter(): nat64 {
+ return ic.performanceCounter(0);
+}
+
This section is a work in progress.
Examples:
diff --git a/docs/query_methods.html b/docs/query_methods.html
index 9abbfff03e..0db9e5a7f4 100644
--- a/docs/query_methods.html
+++ b/docs/query_methods.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/bitcoin.html b/docs/reference/bitcoin.html
index 74445d0dc0..57d0f341ac 100644
--- a/docs/reference/bitcoin.html
+++ b/docs/reference/bitcoin.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/accept_message.html b/docs/reference/call_apis/accept_message.html
index 6a70d78143..96725a0ec4 100644
--- a/docs/reference/call_apis/accept_message.html
+++ b/docs/reference/call_apis/accept_message.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/arg_data_raw.html b/docs/reference/call_apis/arg_data_raw.html
index 3fa6bdb2cc..e489b26b4d 100644
--- a/docs/reference/call_apis/arg_data_raw.html
+++ b/docs/reference/call_apis/arg_data_raw.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/arg_data_raw_size.html b/docs/reference/call_apis/arg_data_raw_size.html
index 261dd1ead9..a48ffcb729 100644
--- a/docs/reference/call_apis/arg_data_raw_size.html
+++ b/docs/reference/call_apis/arg_data_raw_size.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/call.html b/docs/reference/call_apis/call.html
index 0edf006d19..69e28283cf 100644
--- a/docs/reference/call_apis/call.html
+++ b/docs/reference/call_apis/call.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/call_apis.html b/docs/reference/call_apis/call_apis.html
index 799f010c87..198732360d 100644
--- a/docs/reference/call_apis/call_apis.html
+++ b/docs/reference/call_apis/call_apis.html
@@ -83,7 +83,7 @@
@@ -165,7 +165,6 @@
notify
notify raw
notify with payment 128
-performance counter
reject
reject code
reject message
diff --git a/docs/reference/call_apis/call_raw.html b/docs/reference/call_apis/call_raw.html
index 74902f1867..a2c4ad3959 100644
--- a/docs/reference/call_apis/call_raw.html
+++ b/docs/reference/call_apis/call_raw.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/call_raw128.html b/docs/reference/call_apis/call_raw128.html
index 5256b5d30f..951fec3c1f 100644
--- a/docs/reference/call_apis/call_raw128.html
+++ b/docs/reference/call_apis/call_raw128.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/call_with_payment.html b/docs/reference/call_apis/call_with_payment.html
index 61c333ce54..52a4539484 100644
--- a/docs/reference/call_apis/call_with_payment.html
+++ b/docs/reference/call_apis/call_with_payment.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/call_with_payment128.html b/docs/reference/call_apis/call_with_payment128.html
index 8a7d239941..1ae6a025d5 100644
--- a/docs/reference/call_apis/call_with_payment128.html
+++ b/docs/reference/call_apis/call_with_payment128.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/caller.html b/docs/reference/call_apis/caller.html
index 0df0daa81e..ce38b02594 100644
--- a/docs/reference/call_apis/caller.html
+++ b/docs/reference/call_apis/caller.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/method_name.html b/docs/reference/call_apis/method_name.html
index e322529efc..a16cdb951d 100644
--- a/docs/reference/call_apis/method_name.html
+++ b/docs/reference/call_apis/method_name.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/msg_cycles_accept.html b/docs/reference/call_apis/msg_cycles_accept.html
index 4b204d4108..af638c343a 100644
--- a/docs/reference/call_apis/msg_cycles_accept.html
+++ b/docs/reference/call_apis/msg_cycles_accept.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/msg_cycles_accept128.html b/docs/reference/call_apis/msg_cycles_accept128.html
index 2ed58e80bf..598b8af53a 100644
--- a/docs/reference/call_apis/msg_cycles_accept128.html
+++ b/docs/reference/call_apis/msg_cycles_accept128.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/msg_cycles_available.html b/docs/reference/call_apis/msg_cycles_available.html
index af144c4fb0..6a8e4e696d 100644
--- a/docs/reference/call_apis/msg_cycles_available.html
+++ b/docs/reference/call_apis/msg_cycles_available.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/msg_cycles_available128.html b/docs/reference/call_apis/msg_cycles_available128.html
index aee4bd5a85..585b98d437 100644
--- a/docs/reference/call_apis/msg_cycles_available128.html
+++ b/docs/reference/call_apis/msg_cycles_available128.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/msg_cycles_refunded.html b/docs/reference/call_apis/msg_cycles_refunded.html
index 7c78939811..a996a818f2 100644
--- a/docs/reference/call_apis/msg_cycles_refunded.html
+++ b/docs/reference/call_apis/msg_cycles_refunded.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/msg_cycles_refunded128.html b/docs/reference/call_apis/msg_cycles_refunded128.html
index 53524abf80..5d338a14ba 100644
--- a/docs/reference/call_apis/msg_cycles_refunded128.html
+++ b/docs/reference/call_apis/msg_cycles_refunded128.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/notify.html b/docs/reference/call_apis/notify.html
index 9b01f07a03..82081db76c 100644
--- a/docs/reference/call_apis/notify.html
+++ b/docs/reference/call_apis/notify.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/notify_raw.html b/docs/reference/call_apis/notify_raw.html
index 11659a685e..c6303c2f21 100644
--- a/docs/reference/call_apis/notify_raw.html
+++ b/docs/reference/call_apis/notify_raw.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/notify_with_payment_128.html b/docs/reference/call_apis/notify_with_payment_128.html
index 72d02df43d..3cf14125c1 100644
--- a/docs/reference/call_apis/notify_with_payment_128.html
+++ b/docs/reference/call_apis/notify_with_payment_128.html
@@ -83,7 +83,7 @@
@@ -167,7 +167,7 @@
-
+
@@ -181,7 +181,7 @@
-
+
diff --git a/docs/reference/call_apis/reject.html b/docs/reference/call_apis/reject.html
index 713dcbdc44..9f49c0fc8c 100644
--- a/docs/reference/call_apis/reject.html
+++ b/docs/reference/call_apis/reject.html
@@ -83,7 +83,7 @@
@@ -164,7 +164,7 @@
-
+
@@ -178,7 +178,7 @@
-
+
diff --git a/docs/reference/call_apis/reject_code.html b/docs/reference/call_apis/reject_code.html
index f27d9dc2e4..e1eb8b4a71 100644
--- a/docs/reference/call_apis/reject_code.html
+++ b/docs/reference/call_apis/reject_code.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/reject_message.html b/docs/reference/call_apis/reject_message.html
index 0320b4285d..b5c166d70c 100644
--- a/docs/reference/call_apis/reject_message.html
+++ b/docs/reference/call_apis/reject_message.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/reply.html b/docs/reference/call_apis/reply.html
index 267e65315b..4568c5607c 100644
--- a/docs/reference/call_apis/reply.html
+++ b/docs/reference/call_apis/reply.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/call_apis/reply_raw.html b/docs/reference/call_apis/reply_raw.html
index da08d46317..2230de233f 100644
--- a/docs/reference/call_apis/reply_raw.html
+++ b/docs/reference/call_apis/reply_raw.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/blob.html b/docs/reference/candid/blob.html
index d095634d5f..84da5b1d2c 100644
--- a/docs/reference/candid/blob.html
+++ b/docs/reference/candid/blob.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/bool.html b/docs/reference/candid/bool.html
index eadd875388..aa78ddc6de 100644
--- a/docs/reference/candid/bool.html
+++ b/docs/reference/candid/bool.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/candid.html b/docs/reference/candid/candid.html
index bfaf5081e4..0fa5bf9c0b 100644
--- a/docs/reference/candid/candid.html
+++ b/docs/reference/candid/candid.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/empty.html b/docs/reference/candid/empty.html
index 37b8d562fc..d0c47f795f 100644
--- a/docs/reference/candid/empty.html
+++ b/docs/reference/candid/empty.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/float32.html b/docs/reference/candid/float32.html
index 195aa85d92..0e6cbd2a39 100644
--- a/docs/reference/candid/float32.html
+++ b/docs/reference/candid/float32.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/float64.html b/docs/reference/candid/float64.html
index 01240ab545..020e44e40a 100644
--- a/docs/reference/candid/float64.html
+++ b/docs/reference/candid/float64.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/func.html b/docs/reference/candid/func.html
index 6b6ae7d486..157c3409e4 100644
--- a/docs/reference/candid/func.html
+++ b/docs/reference/candid/func.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/int.html b/docs/reference/candid/int.html
index ce16d87e53..fa8643b924 100644
--- a/docs/reference/candid/int.html
+++ b/docs/reference/candid/int.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/int16.html b/docs/reference/candid/int16.html
index c7b99a8fb5..e841ac62bd 100644
--- a/docs/reference/candid/int16.html
+++ b/docs/reference/candid/int16.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/int32.html b/docs/reference/candid/int32.html
index c511c2aa8f..0a0a2dd2ba 100644
--- a/docs/reference/candid/int32.html
+++ b/docs/reference/candid/int32.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/int64.html b/docs/reference/candid/int64.html
index 6acada89d1..63c0be17c3 100644
--- a/docs/reference/candid/int64.html
+++ b/docs/reference/candid/int64.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/int8.html b/docs/reference/candid/int8.html
index 97ddbcbe90..6edd3392c6 100644
--- a/docs/reference/candid/int8.html
+++ b/docs/reference/candid/int8.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/nat.html b/docs/reference/candid/nat.html
index 73d13c896a..0ae9ff064d 100644
--- a/docs/reference/candid/nat.html
+++ b/docs/reference/candid/nat.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/nat16.html b/docs/reference/candid/nat16.html
index de611448bc..fea713cccc 100644
--- a/docs/reference/candid/nat16.html
+++ b/docs/reference/candid/nat16.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/nat32.html b/docs/reference/candid/nat32.html
index 28fa96f24c..8087c5622c 100644
--- a/docs/reference/candid/nat32.html
+++ b/docs/reference/candid/nat32.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/nat64.html b/docs/reference/candid/nat64.html
index 3e856d1f87..120a2de95c 100644
--- a/docs/reference/candid/nat64.html
+++ b/docs/reference/candid/nat64.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/nat8.html b/docs/reference/candid/nat8.html
index c48a17736d..8b14a6b6e7 100644
--- a/docs/reference/candid/nat8.html
+++ b/docs/reference/candid/nat8.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/null.html b/docs/reference/candid/null.html
index 56973fb833..c483b8ebc2 100644
--- a/docs/reference/candid/null.html
+++ b/docs/reference/candid/null.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/opt.html b/docs/reference/candid/opt.html
index 42c60e27ae..48bf370627 100644
--- a/docs/reference/candid/opt.html
+++ b/docs/reference/candid/opt.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/principal.html b/docs/reference/candid/principal.html
index ff2b9cc4bd..53da8d3400 100644
--- a/docs/reference/candid/principal.html
+++ b/docs/reference/candid/principal.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/record.html b/docs/reference/candid/record.html
index 2476c0d6b0..a1c1cebf61 100644
--- a/docs/reference/candid/record.html
+++ b/docs/reference/candid/record.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/reserved.html b/docs/reference/candid/reserved.html
index 9ff54742b4..6f8195a09f 100644
--- a/docs/reference/candid/reserved.html
+++ b/docs/reference/candid/reserved.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/service.html b/docs/reference/candid/service.html
index 7fc56378de..ac2e934009 100644
--- a/docs/reference/candid/service.html
+++ b/docs/reference/candid/service.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/text.html b/docs/reference/candid/text.html
index 52c2902374..3a67e794e7 100644
--- a/docs/reference/candid/text.html
+++ b/docs/reference/candid/text.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/variant.html b/docs/reference/candid/variant.html
index 518f4f223c..aad30b076d 100644
--- a/docs/reference/candid/variant.html
+++ b/docs/reference/candid/variant.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/candid/vec.html b/docs/reference/candid/vec.html
index fa052c2247..35429d9b66 100644
--- a/docs/reference/candid/vec.html
+++ b/docs/reference/candid/vec.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/canister_apis/candid_decode.html b/docs/reference/canister_apis/candid_decode.html
index e7f62cff02..a5cd586f3f 100644
--- a/docs/reference/canister_apis/candid_decode.html
+++ b/docs/reference/canister_apis/candid_decode.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/canister_apis/candid_encode.html b/docs/reference/canister_apis/candid_encode.html
index 578abfeeea..b9b09d1467 100644
--- a/docs/reference/canister_apis/candid_encode.html
+++ b/docs/reference/canister_apis/candid_encode.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/canister_apis/canister_apis.html b/docs/reference/canister_apis/canister_apis.html
index 8247d9dd6b..b3b0e8c9e1 100644
--- a/docs/reference/canister_apis/canister_apis.html
+++ b/docs/reference/canister_apis/canister_apis.html
@@ -83,7 +83,7 @@
@@ -150,8 +150,12 @@
candid encode
canister balance
canister balance 128
+canister version
canister id
data certificate
+instruction counter
+is controller
+performance counter
print
set certified data
time
diff --git a/docs/reference/canister_apis/canister_balance.html b/docs/reference/canister_apis/canister_balance.html
index 288c39028b..cf91eb961e 100644
--- a/docs/reference/canister_apis/canister_balance.html
+++ b/docs/reference/canister_apis/canister_balance.html
@@ -83,7 +83,7 @@
diff --git a/docs/reference/canister_apis/canister_balance128.html b/docs/reference/canister_apis/canister_balance128.html
index e3de29e5a8..5ee3addfa3 100644
--- a/docs/reference/canister_apis/canister_balance128.html
+++ b/docs/reference/canister_apis/canister_balance128.html
@@ -83,7 +83,7 @@
@@ -168,7 +168,7 @@
-
+
@@ -182,7 +182,7 @@
diff --git a/docs/reference/canister_apis/canister_id.html b/docs/reference/canister_apis/canister_id.html
index 145570d276..35e8c63670 100644
--- a/docs/reference/canister_apis/canister_id.html
+++ b/docs/reference/canister_apis/canister_id.html
@@ -83,7 +83,7 @@
@@ -167,7 +167,7 @@
-
+
@@ -181,7 +181,7 @@
-
+
diff --git a/docs/reference/canister_apis/canister_version.html b/docs/reference/canister_apis/canister_version.html
new file mode 100644
index 0000000000..b373a03890
--- /dev/null
+++ b/docs/reference/canister_apis/canister_version.html
@@ -0,0 +1,212 @@
+
+
+
+
+
+ canister version - The Azle Book
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+This section is a work in progress.
+Examples:
+
+import { ic, nat64, $query } from 'azle';
+
+// returns the canister's version number
+$query;
+export function canisterVersion(): nat64 {
+ return ic.canisterVersion();
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/reference/canister_apis/data_certificate.html b/docs/reference/canister_apis/data_certificate.html
index 78fdcc3329..18ba8487f1 100644
--- a/docs/reference/canister_apis/data_certificate.html
+++ b/docs/reference/canister_apis/data_certificate.html
@@ -83,7 +83,7 @@
@@ -167,7 +167,7 @@
-
+
@@ -181,7 +181,7 @@
diff --git a/docs/reference/canister_apis/instruction_counter.html b/docs/reference/canister_apis/instruction_counter.html
new file mode 100644
index 0000000000..29a5defcf6
--- /dev/null
+++ b/docs/reference/canister_apis/instruction_counter.html
@@ -0,0 +1,213 @@
+
+
+
+
+
+ instruction counter - The Azle Book
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+This section is a work in progress.
+Examples:
+
+import { ic, nat64, $query } from 'azle';
+
+// Returns the number of instructions that the canister executed since the last
+// entry point.
+$query;
+export function instructionCounter(): nat64 {
+ return ic.instructionCounter();
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/reference/canister_apis/is_controller.html b/docs/reference/canister_apis/is_controller.html
new file mode 100644
index 0000000000..9500f380e9
--- /dev/null
+++ b/docs/reference/canister_apis/is_controller.html
@@ -0,0 +1,212 @@
+
+
+
+
+
+ is controller - The Azle Book
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+This section is a work in progress.
+Examples:
+
+import { ic, Principal, $query } from 'azle';
+
+// determines whether the given principal is a controller of the canister
+$query;
+export function isController(principal: Principal): boolean {
+ return ic.isController(principal);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/reference/call_apis/performance_counter.html b/docs/reference/canister_apis/performance_counter.html
similarity index 51%
rename from docs/reference/call_apis/performance_counter.html
rename to docs/reference/canister_apis/performance_counter.html
index 0981f5ccd1..974d397abb 100644
--- a/docs/reference/call_apis/performance_counter.html
+++ b/docs/reference/canister_apis/performance_counter.html
@@ -83,7 +83,7 @@
@@ -162,11 +162,11 @@