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 @@

ckBTC

  • notify
  • notify raw
  • notify with payment 128
  • -
  • performance counter
  • reject
  • reject code
  • reject message
  • @@ -3188,19 +3187,6 @@

    ckBTC

    return cyclesCanister.receiveCycles128().cycles128(1_000_000n).notify(); } -

    performance counter

    -

    This section is a work in progress.

    -

    Examples:

    - -
    import { ic, nat64, $query } from 'azle';
    -
    -$query;
    -export function performanceCounter(): nat64 {
    -    return ic.performanceCounter(0);
    -}
    -

    reject

    This section is a work in progress.

    Examples:

    @@ -4080,8 +4066,12 @@

    ckBTC

  • 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 @@

    ckBTC

    return ic.canisterBalance128(); } +

    canister version

    +

    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();
    +}
    +

    canister id

    This section is a work in progress.

    Examples:

    @@ -4182,6 +4186,48 @@

    ckBTC

    return ic.dataCertificate(); } +

    instruction counter

    +

    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();
    +}
    +
    +

    is controller

    +

    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);
    +}
    +
    +

    performance counter

    +

    This section is a work in progress.

    +

    Examples:

    + +
    import { ic, nat64, $query } from 'azle';
    +
    +$query;
    +export function performanceCounter(): nat64 {
    +    return ic.performanceCounter(0);
    +}
    +

    print

    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 @@

    Call APIs

  • 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 @@

    reject