@ohos-ports/azle 0.33.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.scripts/add_metadata_to_dfx_json.js +54 -0
- package/.scripts/cargo_expand.sh +17 -0
- package/.scripts/class_migration/add_example_dependency.js +54 -0
- package/.scripts/class_migration/change_to_custom_candid_gen.js +76 -0
- package/.scripts/class_migration/clean_package.js +27 -0
- package/.scripts/class_migration/copy_generated_candid_from_example.js +90 -0
- package/.scripts/class_migration/delete_tests_file.js +22 -0
- package/.scripts/class_migration/do_all_packages.js +61 -0
- package/.scripts/class_migration/modify_pretest.js +57 -0
- package/.scripts/class_migration/name_package.js +62 -0
- package/.scripts/class_migration/update_test.js +38 -0
- package/.scripts/class_migration/update_ts_config.js +48 -0
- package/.scripts/class_migration/update_typescript.js +99 -0
- package/.scripts/clean_all_projects.ts +91 -0
- package/.scripts/delete_git_branches.sh +20 -0
- package/.scripts/dev_dependencies/add_dev_dependencies.js +53 -0
- package/.scripts/dev_dependencies/remove_dev_dependencies.js +44 -0
- package/.scripts/examples-survey.json +5651 -0
- package/.scripts/file_generator/bin.js +4 -0
- package/.scripts/file_generator/index.ts +59 -0
- package/.scripts/file_generator/main.ts +55 -0
- package/.scripts/find_multiline_files.ts +101 -0
- package/.scripts/hash_file.ts +9 -0
- package/.scripts/hash_file_by_parts/bin.js +4 -0
- package/.scripts/hash_file_by_parts/index.ts +48 -0
- package/.scripts/hash_file_by_parts/main.ts +10 -0
- package/.scripts/jest_isolate_modules.js +29 -0
- package/.scripts/jest_migration.sh +31 -0
- package/.scripts/reorder_dfx_json.js +72 -0
- package/.scripts/setup_release_branch.sh +34 -0
- package/.scripts/simplify_tsconfig.js +37 -0
- package/.scripts/survey_examples.ts +396 -0
- package/.scripts/tsx_migration/ts_node_to_tsx.js +76 -0
- package/.scripts/update_candid.sh +40 -0
- package/.scripts/update_dfx_json_main.js +66 -0
- package/.scripts/update_dfx_json_with_optimize.py +22 -0
- package/.scripts/update_jest_configs.ts +248 -0
- package/LICENSE +21 -0
- package/LICENSE_EXTENSION.md +42 -0
- package/NOTICE +222 -0
- package/README.md +78 -0
- package/dist/canister_templates/experimental.wasm +0 -0
- package/dist/canister_templates/licenses.yml +29186 -0
- package/dist/canister_templates/stable.wasm +0 -0
- package/examples/README.md +22 -0
- package/examples/experimental/demo/hello_world_http_server/README.md +120 -0
- package/examples/experimental/demo/hello_world_http_server/benchmarks.json +42 -0
- package/examples/experimental/demo/hello_world_http_server/benchmarks.md +28 -0
- package/examples/experimental/demo/hello_world_http_server/dfx.json +13 -0
- package/examples/experimental/demo/hello_world_http_server/env.d.ts +9 -0
- package/examples/experimental/demo/hello_world_http_server/jest.config.js +10 -0
- package/examples/experimental/demo/hello_world_http_server/package-lock.json +8409 -0
- package/examples/experimental/demo/hello_world_http_server/package.json +20 -0
- package/examples/experimental/demo/hello_world_http_server/src/backend/index.ts +23 -0
- package/examples/experimental/demo/hello_world_http_server/src/frontend/index.html +16 -0
- package/examples/experimental/demo/hello_world_http_server/src/frontend/index.ts +62 -0
- package/examples/experimental/demo/hello_world_http_server/test/pretest.ts +13 -0
- package/examples/experimental/demo/hello_world_http_server/test/test.ts +9 -0
- package/examples/experimental/demo/hello_world_http_server/test/tests.ts +27 -0
- package/examples/experimental/demo/hello_world_http_server/tsconfig.json +13 -0
- package/examples/package-lock.json +8746 -0
- package/examples/package.json +17 -0
- package/examples/stable/demo/hello_world/README.md +97 -0
- package/examples/stable/demo/hello_world/benchmarks.json +28 -0
- package/examples/stable/demo/hello_world/benchmarks.md +26 -0
- package/examples/stable/demo/hello_world/dfx.json +12 -0
- package/examples/stable/demo/hello_world/jest.config.js +10 -0
- package/examples/stable/demo/hello_world/package-lock.json +5524 -0
- package/examples/stable/demo/hello_world/package.json +14 -0
- package/examples/stable/demo/hello_world/src/index.ts +15 -0
- package/examples/stable/demo/hello_world/test/pretest.ts +17 -0
- package/examples/stable/demo/hello_world/test/test.ts +15 -0
- package/examples/stable/demo/hello_world/test/tests.ts +27 -0
- package/examples/stable/demo/hello_world/tsconfig.json +10 -0
- package/jest.config.dev.js +10 -0
- package/package.json +102 -0
- package/src/build.ts +98 -0
- package/src/experimental/build/assert_experimental.ts +5 -0
- package/src/experimental/build/commands/build/candid_and_method_meta.ts +30 -0
- package/src/experimental/build/commands/build/custom_js_modules/acorn/acorn.ts +6 -0
- package/src/experimental/build/commands/build/custom_js_modules/acorn/walk.ts +6 -0
- package/src/experimental/build/commands/build/custom_js_modules/async_hooks.ts +11 -0
- package/src/experimental/build/commands/build/custom_js_modules/https.ts +6 -0
- package/src/experimental/build/commands/build/custom_js_modules/perf_hooks.ts +12 -0
- package/src/experimental/build/commands/build/file_watcher/file_watcher.ts +152 -0
- package/src/experimental/build/commands/build/file_watcher/file_watcher_loader.js +9 -0
- package/src/experimental/build/commands/build/file_watcher/setup_file_watcher.ts +61 -0
- package/src/experimental/build/commands/build/get_context.ts +61 -0
- package/src/experimental/build/commands/build/index.ts +87 -0
- package/src/experimental/build/commands/build/javascript.ts +194 -0
- package/src/experimental/build/commands/build/wasm_binary/index.ts +32 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/Cargo.toml +26 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/autoreload.rs +46 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/benchmarking.rs +35 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/candid.rs +106 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/chunk.rs +11 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/execute_method_js.rs +46 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/guards.rs +9 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/accept_message.rs +10 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/call_raw.rs +265 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/candid_compiler.rs +19 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/candid_decode.rs +17 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/candid_encode.rs +17 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/canister_cycle_balance.rs +12 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/canister_self.rs +10 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/canister_version.rs +10 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/certified_data_set.rs +17 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/clear_timer.rs +18 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/cycles_burn.rs +17 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/data_certificate.rs +13 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/debug_print.rs +17 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/drain_microtasks.rs +23 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/in_replicated_execution.rs +8 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/is_controller.rs +16 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/mod.rs +351 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_arg_data.rs +10 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_caller.rs +10 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_cycles_accept.rs +17 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_cycles_available.rs +10 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_cycles_refunded.rs +10 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_method_name.rs +8 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_reject.rs +16 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_reject_code.rs +8 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_reject_msg.rs +8 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/msg_reply.rs +19 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/notify_raw.rs +65 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/performance_counter.rs +19 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/rand_bytes.rs +25 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/rand_seed.rs +30 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/set_timer.rs +83 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/set_timer_interval.rs +66 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_contains_key.rs +32 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_get.rs +36 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_init.rs +29 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_insert.rs +46 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_is_empty.rs +23 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_items.rs +59 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_keys.rs +54 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_len.rs +23 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_remove.rs +36 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/stable_b_tree_map_values.rs +54 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/time.rs +8 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/ic/trap.rs +14 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/init_and_post_upgrade.rs +212 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/internal_canister_methods.rs +142 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/lib.rs +35 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/stable_b_tree_map.rs +50 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/upload_file/bytes_to_human_readable.rs +20 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/upload_file/file_info.rs +60 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/upload_file/hash.rs +111 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/upload_file/mod.rs +20 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/upload_file/reset.rs +15 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/upload_file/upload_file_chunk.rs +88 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/wasm_binary_manipulation.rs +276 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/web_assembly/instantiate.rs +195 -0
- package/src/experimental/build/commands/build/wasm_binary/rust/experimental_canister_template/src/web_assembly/mod.rs +24 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/bytes_to_human_readable.ts +27 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/expand_paths.ts +50 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/get_files_to_upload.ts +21 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/incomplete_files.ts +28 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/index.ts +43 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/on_before_exit.ts +34 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/upload_file.ts +91 -0
- package/src/experimental/build/commands/upload_assets/file_uploader/uploader_actor.ts +51 -0
- package/src/experimental/build/commands/upload_assets/index.ts +16 -0
- package/src/experimental/build/commands/upload_assets/uploader_identity.ts +23 -0
- package/src/experimental/build/index.ts +61 -0
- package/src/experimental/build/utils/dfx.ts +212 -0
- package/src/experimental/build/utils/filter_async.ts +14 -0
- package/src/experimental/build/utils/find_project_root.ts +67 -0
- package/src/experimental/build/utils/global_paths.ts +8 -0
- package/src/experimental/build/utils/log_success.ts +18 -0
- package/src/experimental/build/utils/types.ts +34 -0
- package/src/experimental/lib/assert_experimental.ts +19 -0
- package/src/experimental/lib/fetch/file.ts +15 -0
- package/src/experimental/lib/fetch/headers.ts +85 -0
- package/src/experimental/lib/fetch/http.ts +293 -0
- package/src/experimental/lib/fetch/icp.ts +98 -0
- package/src/experimental/lib/fetch/index.ts +97 -0
- package/src/experimental/lib/fetch/response.ts +171 -0
- package/src/experimental/lib/fetch/url.ts +15 -0
- package/src/experimental/lib/globals.ts +146 -0
- package/src/experimental/lib/http_client/fetch_ic/actor.ts +131 -0
- package/src/experimental/lib/http_client/fetch_ic/agent.ts +20 -0
- package/src/experimental/lib/http_client/fetch_ic/call.ts +257 -0
- package/src/experimental/lib/http_client/fetch_ic/get_canister_id.ts +25 -0
- package/src/experimental/lib/http_client/fetch_ic/host.ts +30 -0
- package/src/experimental/lib/http_client/fetch_ic/identity.ts +52 -0
- package/src/experimental/lib/http_client/fetch_ic/index.ts +95 -0
- package/src/experimental/lib/http_client/fetch_ic/response.ts +8 -0
- package/src/experimental/lib/http_client/index.ts +6 -0
- package/src/experimental/lib/http_client/to_jwt.ts +6 -0
- package/src/experimental/lib/ic/azle_ic_experimental.ts +92 -0
- package/src/experimental/lib/ic/candid_compiler.ts +14 -0
- package/src/experimental/lib/ic/index.ts +10 -0
- package/src/experimental/lib/ic/set_outgoing_http_options.ts +18 -0
- package/src/experimental/lib/index.ts +7 -0
- package/src/experimental/lib/server.ts +279 -0
- package/src/experimental/lib/threshold_wallet/calculate_rsv_for_tecdsa.ts +45 -0
- package/src/experimental/lib/threshold_wallet/ecdsa_public_key.ts +33 -0
- package/src/experimental/lib/threshold_wallet/index.ts +7 -0
- package/src/experimental/lib/threshold_wallet/register_get_url.ts +36 -0
- package/src/experimental/lib/threshold_wallet/sign_with_ecdsa.ts +28 -0
- package/src/experimental/lib/threshold_wallet/wallet.ts +99 -0
- package/src/experimental/test/property/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts +113 -0
- package/src/experimental/test/property/arbitraries/candid/candid_definition_arb/index.ts +73 -0
- package/src/experimental/test/property/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts +28 -0
- package/src/experimental/test/property/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts +116 -0
- package/src/experimental/test/property/arbitraries/candid/candid_definition_arb/types.ts +117 -0
- package/src/experimental/test/property/arbitraries/candid/candid_return_type_arb.ts +22 -0
- package/src/experimental/test/property/arbitraries/candid/candid_type.ts +83 -0
- package/src/experimental/test/property/arbitraries/candid/candid_value_and_meta_arb.ts +84 -0
- package/src/experimental/test/property/arbitraries/candid/candid_value_and_meta_arb_generator.ts +63 -0
- package/src/experimental/test/property/arbitraries/candid/candid_values_arb.ts +173 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/blob_arb/definition_arb.ts +11 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/blob_arb/index.ts +19 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/blob_arb/values_arb.ts +11 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/opt_arb/definition_arb.ts +172 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/opt_arb/index.ts +29 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/opt_arb/values_arb.ts +88 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/record_arb/definition_arb.ts +184 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/record_arb/index.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/record_arb/values_arb.ts +95 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/tuple_arb/definition_arb.ts +159 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/tuple_arb/index.ts +31 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/tuple_arb/values_arbs.ts +76 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/variant_arb/definition_arbs.ts +257 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/variant_arb/index.ts +37 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/variant_arb/values_arb.ts +92 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/vec_arb/definition_arb.ts +203 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/vec_arb/index.ts +39 -0
- package/src/experimental/test/property/arbitraries/candid/constructed/vec_arb/values_arb.ts +257 -0
- package/src/experimental/test/property/arbitraries/candid/corresponding_js_type.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/bool_arb.ts +28 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/floats/float32_arb.ts +56 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/floats/float64_arb.ts +56 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/ints/index.ts +11 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/ints/int16_arb.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/ints/int32_arb.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/ints/int64_arb.ts +41 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/ints/int8_arb.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/ints/int_arb.ts +39 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/nats/index.ts +11 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/nats/nat16_arb.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/nats/nat32_arb.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/nats/nat64_arb.ts +41 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/nats/nat8_arb.ts +34 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/nats/nat_arb.ts +39 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/null_arb.ts +33 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/text_arb.ts +47 -0
- package/src/experimental/test/property/arbitraries/candid/primitive/void_arb.ts +33 -0
- package/src/experimental/test/property/arbitraries/candid/recursive/definition_arb.ts +125 -0
- package/src/experimental/test/property/arbitraries/candid/recursive/index.ts +35 -0
- package/src/experimental/test/property/arbitraries/candid/recursive/values_arb.ts +43 -0
- package/src/experimental/test/property/arbitraries/candid/reference/func_arb/definition_arb.ts +198 -0
- package/src/experimental/test/property/arbitraries/candid/reference/func_arb/index.ts +23 -0
- package/src/experimental/test/property/arbitraries/candid/reference/func_arb/values_arb.ts +70 -0
- package/src/experimental/test/property/arbitraries/candid/reference/principal_arb.ts +43 -0
- package/src/experimental/test/property/arbitraries/candid/reference/service_arb/definition_arb.ts +163 -0
- package/src/experimental/test/property/arbitraries/candid/reference/service_arb/index.ts +41 -0
- package/src/experimental/test/property/arbitraries/candid/reference/service_arb/service_method_arb.ts +110 -0
- package/src/experimental/test/property/arbitraries/candid/reference/service_arb/values_arb.ts +20 -0
- package/src/experimental/test/property/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts +66 -0
- package/src/experimental/test/property/arbitraries/candid/simple_type_arbs/definition_arb.ts +95 -0
- package/src/experimental/test/property/arbitraries/candid/simple_type_arbs/values_arb.ts +19 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/bigint.ts +5 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/blob.ts +5 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/boolean.ts +5 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/float.ts +18 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/null.ts +5 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/number.ts +5 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/principal.ts +7 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/string.ts +12 -0
- package/src/experimental/test/property/arbitraries/candid/to_src_literal/void.ts +5 -0
- package/src/experimental/test/property/arbitraries/canister_arb.ts +195 -0
- package/src/experimental/test/property/arbitraries/canister_methods/index.ts +79 -0
- package/src/experimental/test/property/arbitraries/canister_methods/init_method_arb.ts +127 -0
- package/src/experimental/test/property/arbitraries/canister_methods/inspect_message_method_arb.ts +55 -0
- package/src/experimental/test/property/arbitraries/canister_methods/post_upgrade_method_arb.ts +133 -0
- package/src/experimental/test/property/arbitraries/canister_methods/pre_upgrade_method_arb.ts +57 -0
- package/src/experimental/test/property/arbitraries/canister_methods/query_method_arb.ts +141 -0
- package/src/experimental/test/property/arbitraries/canister_methods/update_method_arb.ts +158 -0
- package/src/experimental/test/property/arbitraries/config.ts +4 -0
- package/src/experimental/test/property/arbitraries/http/body_arb.ts +7 -0
- package/src/experimental/test/property/arbitraries/http/headers_arb.ts +22 -0
- package/src/experimental/test/property/arbitraries/http/request_arb.ts +158 -0
- package/src/experimental/test/property/arbitraries/http/response_arb.ts +192 -0
- package/src/experimental/test/property/arbitraries/js_name_arb.ts +144 -0
- package/src/experimental/test/property/arbitraries/stable_b_tree_map_arb.ts +55 -0
- package/src/experimental/test/property/arbitraries/types.ts +24 -0
- package/src/experimental/test/property/arbitraries/unique_identifier_arb.ts +38 -0
- package/src/experimental/test/property/arbitraries/unique_primitive_arb.ts +22 -0
- package/src/experimental/test/property/are_params_correctly_ordered.ts +19 -0
- package/src/experimental/test/property/get_actor.ts +39 -0
- package/src/experimental/test/property/index.ts +141 -0
- package/src/experimental/test/property/test/index.ts +226 -0
- package/src/experimental/test/property/visitors/LICENCE +201 -0
- package/src/experimental/test/property/visitors/cli-string-visitor.ts +138 -0
- package/src/experimental/test/set_experimental.ts +1 -0
- package/src/exports/_internal/dfx.ts +1 -0
- package/src/exports/_internal/globals.ts +1 -0
- package/src/exports/_internal/test/candid_deep_equal.ts +1 -0
- package/src/exports/_internal/test.ts +1 -0
- package/src/exports/_internal/type_tests/assert_type.ts +1 -0
- package/src/exports/_internal.ts +1 -0
- package/src/exports/canisters/ck_btc_ledger/idl.ts +1 -0
- package/src/exports/canisters/ck_eth_ledger/idl.ts +1 -0
- package/src/exports/canisters/cycles_ledger/idl.ts +1 -0
- package/src/exports/canisters/evm_rpc/idl.ts +1 -0
- package/src/exports/canisters/exchange_rate/idl.ts +1 -0
- package/src/exports/canisters/http_gateway/idl.ts +1 -0
- package/src/exports/canisters/icrc_1/idl.ts +1 -0
- package/src/exports/canisters/icrc_10/idl.ts +1 -0
- package/src/exports/canisters/icrc_2/idl.ts +1 -0
- package/src/exports/canisters/icrc_3/idl.ts +1 -0
- package/src/exports/canisters/icrc_37/idl.ts +1 -0
- package/src/exports/canisters/icrc_7/idl.ts +1 -0
- package/src/exports/canisters/llm/idl.ts +1 -0
- package/src/exports/canisters/management/idl.ts +1 -0
- package/src/exports/canisters/nns_cycles_minting/idl.ts +1 -0
- package/src/exports/canisters/nns_governance/idl.ts +1 -0
- package/src/exports/canisters/nns_icp_ledger/idl.ts +1 -0
- package/src/exports/canisters/nns_internet_identity/idl.ts +1 -0
- package/src/exports/canisters/nns_registry/idl.ts +1 -0
- package/src/exports/canisters/nns_sns_w/idl.ts +1 -0
- package/src/exports/experimental/_internal/dfx.ts +1 -0
- package/src/exports/experimental/_internal/globals.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/candid_definition_arb/types.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/candid_definition_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/candid_return_type_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/candid_value_and_meta_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/candid_value_and_meta_arb_generator.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/candid_values_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/constructed/blob_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/constructed/opt_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/constructed/record_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/constructed/tuple_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/constructed/variant_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/constructed/vec_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/corresponding_js_type.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/bool_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/floats/float32_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/floats/float64_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/ints/int16_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/ints/int32_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/ints/int64_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/ints/int8_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/ints/int_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/nats/nat16_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/nats/nat32_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/nats/nat64_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/nats/nat8_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/nats/nat_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/null_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/text_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/primitive/void_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/recursive.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/reference/func_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/reference/principal_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/candid/reference/service_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_methods/init_method_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_methods/inspect_message_method_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_methods/post_upgrade_method_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_methods/pre_upgrade_method_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_methods/query_method_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_methods/update_method_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/canister_methods.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/config.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/http/body_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/http/headers_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/http/request_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/http/response_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/stable_b_tree_map_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/types.ts +1 -0
- package/src/exports/experimental/_internal/test/property/arbitraries/unique_identifier_arb.ts +1 -0
- package/src/exports/experimental/_internal/test/property/are_params_correctly_ordered.ts +1 -0
- package/src/exports/experimental/_internal/test/property/test.ts +1 -0
- package/src/exports/experimental/_internal/test/property.ts +1 -0
- package/src/exports/experimental/_internal/test/set_experimental.ts +1 -0
- package/src/exports/experimental/_internal.ts +8 -0
- package/src/exports/experimental/http_client.ts +1 -0
- package/src/exports/experimental.ts +3 -0
- package/src/stable/build/commands/build/candid_and_method_meta/execute.ts +134 -0
- package/src/stable/build/commands/build/candid_and_method_meta/index.ts +27 -0
- package/src/stable/build/commands/build/get_context.ts +79 -0
- package/src/stable/build/commands/build/index.ts +48 -0
- package/src/stable/build/commands/build/javascript.ts +259 -0
- package/src/stable/build/commands/build/wasm_binary/compile.ts +27 -0
- package/src/stable/build/commands/build/wasm_binary/index.ts +30 -0
- package/src/stable/build/commands/build/wasm_binary/manipulate.ts +268 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/Cargo.toml +23 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/benchmarking.rs +45 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/candid_and_method_meta.rs +49 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/execute_method_js.rs +65 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/guards.rs +11 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/accept_message.rs +6 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/call_raw.rs +362 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/candid_decode.rs +18 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/candid_encode.rs +19 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/canister_cycle_balance.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/canister_self.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/canister_version.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/certified_data_set.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/clear_timer.rs +15 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/cycles_burn.rs +17 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/data_certificate.rs +13 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/debug_print.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/drain_microtasks.rs +22 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/in_replicated_execution.rs +6 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/is_controller.rs +11 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/mod.rs +219 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_arg_data.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_caller.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_cycles_accept.rs +17 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_cycles_available.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_cycles_refunded.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_method_name.rs +6 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_reject.rs +6 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_reject_code.rs +6 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_reject_msg.rs +6 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/msg_reply.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/notify_raw.rs +62 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/performance_counter.rs +17 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/rand_bytes.rs +21 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/rand_seed.rs +26 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/set_timer.rs +92 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/set_timer_interval.rs +62 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_contains_key.rs +18 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_get.rs +21 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_init.rs +19 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_insert.rs +44 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_is_empty.rs +11 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_items.rs +48 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_keys.rs +43 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_len.rs +16 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_remove.rs +21 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/stable_b_tree_map_values.rs +43 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/time.rs +8 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/trap.rs +22 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/init_and_post_upgrade.rs +98 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/initialize_context.rs +102 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/internal_canister_methods.rs +122 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/lib.rs +39 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/rquickjs_utils/call_with_error_handling.rs +26 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/rquickjs_utils/error.rs +27 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/rquickjs_utils/mod.rs +7 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/rquickjs_utils/with_ctx.rs +24 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/stable_b_tree_map.rs +84 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/state.rs +55 -0
- package/src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/wasm_binary_manipulation.rs +296 -0
- package/src/stable/build/commands/clean.ts +15 -0
- package/src/stable/build/commands/dev/audit.ts +39 -0
- package/src/stable/build/commands/dev/setup/index.ts +41 -0
- package/src/stable/build/commands/dev/setup/install_cargo-audit.sh +11 -0
- package/src/stable/build/commands/dev/setup/install_cargo-auditable.sh +16 -0
- package/src/stable/build/commands/dev/setup/install_cargo-bundle-licenses.sh +11 -0
- package/src/stable/build/commands/dev/setup/install_cargo-deny.sh +11 -0
- package/src/stable/build/commands/dev/setup/install_dfx.sh +36 -0
- package/src/stable/build/commands/dev/setup/install_node.sh +25 -0
- package/src/stable/build/commands/dev/setup/install_rust.sh +24 -0
- package/src/stable/build/commands/dev/setup/install_wasi2ic.sh +11 -0
- package/src/stable/build/commands/dev/template/experimental.ts +28 -0
- package/src/stable/build/commands/dev/template/generate_licenses.ts +28 -0
- package/src/stable/build/commands/dev/template/stable.ts +27 -0
- package/src/stable/build/commands/extension/install.ts +25 -0
- package/src/stable/build/commands/generate/index.ts +21 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/Cargo.toml +12 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/build.sh +9 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/licenses.md +1 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/pkg/candid_to_ts_js.d.ts +18 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/pkg/candid_to_ts_js.js +144 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/pkg/candid_to_ts_js_bg.wasm +0 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/pkg/candid_to_ts_js_bg.wasm.d.ts +9 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/pkg/package.json +11 -0
- package/src/stable/build/commands/generate/rust/candid_to_ts_js/src/lib.rs +31 -0
- package/src/stable/build/commands/new.ts +165 -0
- package/src/stable/build/commands/version.ts +5 -0
- package/src/stable/build/dfx_extension/extension.json +36 -0
- package/src/stable/build/dfx_extension/install.sh +10 -0
- package/src/stable/build/index.ts +282 -0
- package/src/stable/build/utils/dfx.ts +10 -0
- package/src/stable/build/utils/dfx_root.ts +34 -0
- package/src/stable/build/utils/exec_sync_pretty.ts +17 -0
- package/src/stable/build/utils/experimental_message.ts +19 -0
- package/src/stable/build/utils/get_canister_config.ts +52 -0
- package/src/stable/build/utils/global_paths.ts +26 -0
- package/src/stable/build/utils/types.ts +87 -0
- package/src/stable/lib/canister_methods/heartbeat.ts +29 -0
- package/src/stable/lib/canister_methods/index.ts +405 -0
- package/src/stable/lib/canister_methods/init.ts +71 -0
- package/src/stable/lib/canister_methods/inspect_message.ts +79 -0
- package/src/stable/lib/canister_methods/on_low_wasm_memory.ts +27 -0
- package/src/stable/lib/canister_methods/post_upgrade.ts +73 -0
- package/src/stable/lib/canister_methods/pre_upgrade.ts +27 -0
- package/src/stable/lib/canister_methods/query.ts +69 -0
- package/src/stable/lib/canister_methods/update.ts +66 -0
- package/src/stable/lib/canisters/NOTICE +15 -0
- package/src/stable/lib/canisters/ck_btc_ledger/idl/README.md +9 -0
- package/src/stable/lib/canisters/ck_btc_ledger/idl/index.did +289 -0
- package/src/stable/lib/canisters/ck_btc_ledger/idl/index.ts +1143 -0
- package/src/stable/lib/canisters/ck_eth_ledger/idl/README.md +9 -0
- package/src/stable/lib/canisters/ck_eth_ledger/idl/index.did +289 -0
- package/src/stable/lib/canisters/ck_eth_ledger/idl/index.ts +1143 -0
- package/src/stable/lib/canisters/cycles_ledger/idl/README.md +9 -0
- package/src/stable/lib/canisters/cycles_ledger/idl/index.did +272 -0
- package/src/stable/lib/canisters/cycles_ledger/idl/index.ts +978 -0
- package/src/stable/lib/canisters/evm_rpc/idl/README.md +9 -0
- package/src/stable/lib/canisters/evm_rpc/idl/index.did +311 -0
- package/src/stable/lib/canisters/evm_rpc/idl/index.ts +1028 -0
- package/src/stable/lib/canisters/exchange_rate/idl/README.md +9 -0
- package/src/stable/lib/canisters/exchange_rate/idl/index.did +83 -0
- package/src/stable/lib/canisters/exchange_rate/idl/index.ts +165 -0
- package/src/stable/lib/canisters/http_gateway/idl/README.md +9 -0
- package/src/stable/lib/canisters/http_gateway/idl/http-gateway.did +49 -0
- package/src/stable/lib/canisters/http_gateway/idl/index.ts +120 -0
- package/src/stable/lib/canisters/icrc_1/idl/ICRC-1.did +63 -0
- package/src/stable/lib/canisters/icrc_1/idl/LICENSE +202 -0
- package/src/stable/lib/canisters/icrc_1/idl/index.ts +151 -0
- package/src/stable/lib/canisters/icrc_10/idl/ICRC-10.did +8 -0
- package/src/stable/lib/canisters/icrc_10/idl/LICENSE +202 -0
- package/src/stable/lib/canisters/icrc_10/idl/index.ts +32 -0
- package/src/stable/lib/canisters/icrc_2/idl/ICRC-2.did +76 -0
- package/src/stable/lib/canisters/icrc_2/idl/LICENSE +202 -0
- package/src/stable/lib/canisters/icrc_2/idl/index.ts +226 -0
- package/src/stable/lib/canisters/icrc_3/idl/ICRC-3.did +59 -0
- package/src/stable/lib/canisters/icrc_3/idl/LICENSE +202 -0
- package/src/stable/lib/canisters/icrc_3/idl/index.ts +156 -0
- package/src/stable/lib/canisters/icrc_37/idl/ICRC-37.did +152 -0
- package/src/stable/lib/canisters/icrc_37/idl/LICENSE +202 -0
- package/src/stable/lib/canisters/icrc_37/idl/index.ts +466 -0
- package/src/stable/lib/canisters/icrc_7/idl/ICRC-7.did +67 -0
- package/src/stable/lib/canisters/icrc_7/idl/LICENSE +202 -0
- package/src/stable/lib/canisters/icrc_7/idl/index.ts +213 -0
- package/src/stable/lib/canisters/llm/idl/README.md +9 -0
- package/src/stable/lib/canisters/llm/idl/index.did +21 -0
- package/src/stable/lib/canisters/llm/idl/index.ts +43 -0
- package/src/stable/lib/canisters/management/idl/README.md +10 -0
- package/src/stable/lib/canisters/management/idl/ic.did +502 -0
- package/src/stable/lib/canisters/management/idl/index.ts +1257 -0
- package/src/stable/lib/canisters/nns_cycles_minting/idl/README.md +9 -0
- package/src/stable/lib/canisters/nns_cycles_minting/idl/index.did +241 -0
- package/src/stable/lib/canisters/nns_cycles_minting/idl/index.ts +394 -0
- package/src/stable/lib/canisters/nns_governance/idl/README.md +9 -0
- package/src/stable/lib/canisters/nns_governance/idl/index.did +1316 -0
- package/src/stable/lib/canisters/nns_governance/idl/index.ts +3599 -0
- package/src/stable/lib/canisters/nns_icp_ledger/idl/LICENSE +202 -0
- package/src/stable/lib/canisters/nns_icp_ledger/idl/NOTICE +14 -0
- package/src/stable/lib/canisters/nns_icp_ledger/idl/README.md +18 -0
- package/src/stable/lib/canisters/nns_icp_ledger/idl/address/index.ts +82 -0
- package/src/stable/lib/canisters/nns_icp_ledger/idl/index.did +264 -0
- package/src/stable/lib/canisters/nns_icp_ledger/idl/index.ts +1020 -0
- package/src/stable/lib/canisters/nns_internet_identity/idl/README.md +9 -0
- package/src/stable/lib/canisters/nns_internet_identity/idl/index.did +779 -0
- package/src/stable/lib/canisters/nns_internet_identity/idl/index.ts +1509 -0
- package/src/stable/lib/canisters/nns_registry/idl/README.md +9 -0
- package/src/stable/lib/canisters/nns_registry/idl/index.did +493 -0
- package/src/stable/lib/canisters/nns_registry/idl/index.ts +1421 -0
- package/src/stable/lib/canisters/nns_sns_w/idl/README.md +9 -0
- package/src/stable/lib/canisters/nns_sns_w/idl/index.did +352 -0
- package/src/stable/lib/canisters/nns_sns_w/idl/index.ts +887 -0
- package/src/stable/lib/did_file/idl_to_string.ts +79 -0
- package/src/stable/lib/did_file/index.ts +2 -0
- package/src/stable/lib/did_file/visitor/did_visitor.ts +135 -0
- package/src/stable/lib/did_file/visitor/escape_candid_name.ts +100 -0
- package/src/stable/lib/did_file/visitor/extract_candid.ts +31 -0
- package/src/stable/lib/did_file/visitor/index.ts +1 -0
- package/src/stable/lib/did_file/visitor/visit/func.ts +31 -0
- package/src/stable/lib/did_file/visitor/visit/opt.ts +16 -0
- package/src/stable/lib/did_file/visitor/visit/primitive.ts +11 -0
- package/src/stable/lib/did_file/visitor/visit/record.ts +24 -0
- package/src/stable/lib/did_file/visitor/visit/recursive.ts +32 -0
- package/src/stable/lib/did_file/visitor/visit/service.ts +107 -0
- package/src/stable/lib/did_file/visitor/visit/tuple.ts +20 -0
- package/src/stable/lib/did_file/visitor/visit/variant.ts +26 -0
- package/src/stable/lib/did_file/visitor/visit/vec.ts +16 -0
- package/src/stable/lib/error.ts +55 -0
- package/src/stable/lib/execute_and_reply_with_candid_serde.ts +245 -0
- package/src/stable/lib/func.ts +7 -0
- package/src/stable/lib/globals.ts +250 -0
- package/src/stable/lib/ic_apis/NOTICE +203 -0
- package/src/stable/lib/ic_apis/azle_ic_stable.ts +86 -0
- package/src/stable/lib/ic_apis/call.ts +397 -0
- package/src/stable/lib/ic_apis/candid_decode.ts +26 -0
- package/src/stable/lib/ic_apis/candid_encode.ts +27 -0
- package/src/stable/lib/ic_apis/canister_cycle_balance.ts +28 -0
- package/src/stable/lib/ic_apis/canister_self.ts +25 -0
- package/src/stable/lib/ic_apis/canister_version.ts +33 -0
- package/src/stable/lib/ic_apis/certified_data_set.ts +35 -0
- package/src/stable/lib/ic_apis/chunk.ts +42 -0
- package/src/stable/lib/ic_apis/clear_timer.ts +53 -0
- package/src/stable/lib/ic_apis/cycles_burn.ts +32 -0
- package/src/stable/lib/ic_apis/data_certificate.ts +30 -0
- package/src/stable/lib/ic_apis/in_replicated_execution.ts +20 -0
- package/src/stable/lib/ic_apis/index.ts +37 -0
- package/src/stable/lib/ic_apis/is_controller.ts +31 -0
- package/src/stable/lib/ic_apis/msg_arg_data.ts +28 -0
- package/src/stable/lib/ic_apis/msg_caller.ts +32 -0
- package/src/stable/lib/ic_apis/msg_cycles_accept.ts +27 -0
- package/src/stable/lib/ic_apis/msg_cycles_available.ts +25 -0
- package/src/stable/lib/ic_apis/msg_cycles_refunded.ts +25 -0
- package/src/stable/lib/ic_apis/msg_method_name.ts +21 -0
- package/src/stable/lib/ic_apis/msg_reject.ts +28 -0
- package/src/stable/lib/ic_apis/msg_reject_code.ts +40 -0
- package/src/stable/lib/ic_apis/msg_reject_msg.ts +24 -0
- package/src/stable/lib/ic_apis/msg_reply.ts +34 -0
- package/src/stable/lib/ic_apis/performance_counter.ts +31 -0
- package/src/stable/lib/ic_apis/rand_seed.ts +40 -0
- package/src/stable/lib/ic_apis/set_timer.ts +80 -0
- package/src/stable/lib/ic_apis/set_timer_interval.ts +87 -0
- package/src/stable/lib/ic_apis/time.ts +26 -0
- package/src/stable/lib/ic_apis/trap.ts +29 -0
- package/src/stable/lib/index.ts +16 -0
- package/src/stable/lib/json.ts +39 -0
- package/src/stable/lib/stable_structures/stable_b_tree_map.ts +488 -0
- package/src/stable/lib/stable_structures/stable_json.ts +254 -0
- package/src/stable/lib/state.ts +322 -0
- package/src/stable/test/benchmarks/_azle_get_benchmarks.did +9 -0
- package/src/stable/test/benchmarks/index.ts +273 -0
- package/src/stable/test/candid_deep_equal.ts +99 -0
- package/src/stable/test/canister_names.ts +36 -0
- package/src/stable/test/fuzz.ts +102 -0
- package/src/stable/test/get_canister_actor.ts +45 -0
- package/src/stable/test/global_state.ts +202 -0
- package/src/stable/test/index.ts +274 -0
- package/src/stable/test/memory_state.ts +187 -0
- package/src/stable/test/property/default_prop_test_params.ts +36 -0
- package/src/stable/test/type/assert_type.ts +9 -0
- package/tsconfig.dev.json +10 -0
|
@@ -0,0 +1,1257 @@
|
|
|
1
|
+
import { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import { IDL } from '@dfinity/candid';
|
|
3
|
+
import { Principal } from '@dfinity/principal';
|
|
4
|
+
|
|
5
|
+
export type bitcoin_address = string;
|
|
6
|
+
export type bitcoin_block_hash = Uint8Array | number[];
|
|
7
|
+
export type bitcoin_block_header = Uint8Array | number[];
|
|
8
|
+
export type bitcoin_block_height = number;
|
|
9
|
+
export interface bitcoin_get_balance_args {
|
|
10
|
+
network: bitcoin_network;
|
|
11
|
+
address: bitcoin_address;
|
|
12
|
+
min_confirmations: [] | [number];
|
|
13
|
+
}
|
|
14
|
+
export type bitcoin_get_balance_result = satoshi;
|
|
15
|
+
export interface bitcoin_get_block_headers_args {
|
|
16
|
+
start_height: bitcoin_block_height;
|
|
17
|
+
end_height: [] | [bitcoin_block_height];
|
|
18
|
+
network: bitcoin_network;
|
|
19
|
+
}
|
|
20
|
+
export interface bitcoin_get_block_headers_result {
|
|
21
|
+
tip_height: bitcoin_block_height;
|
|
22
|
+
block_headers: Array<bitcoin_block_header>;
|
|
23
|
+
}
|
|
24
|
+
export interface bitcoin_get_current_fee_percentiles_args {
|
|
25
|
+
network: bitcoin_network;
|
|
26
|
+
}
|
|
27
|
+
export type bitcoin_get_current_fee_percentiles_result =
|
|
28
|
+
| BigUint64Array
|
|
29
|
+
| bigint[];
|
|
30
|
+
export interface bitcoin_get_utxos_args {
|
|
31
|
+
network: bitcoin_network;
|
|
32
|
+
filter:
|
|
33
|
+
| []
|
|
34
|
+
| [{ page: Uint8Array | number[] } | { min_confirmations: number }];
|
|
35
|
+
address: bitcoin_address;
|
|
36
|
+
}
|
|
37
|
+
export interface bitcoin_get_utxos_result {
|
|
38
|
+
next_page: [] | [Uint8Array | number[]];
|
|
39
|
+
tip_height: bitcoin_block_height;
|
|
40
|
+
tip_block_hash: bitcoin_block_hash;
|
|
41
|
+
utxos: Array<utxo>;
|
|
42
|
+
}
|
|
43
|
+
export type bitcoin_network =
|
|
44
|
+
| { mainnet: null }
|
|
45
|
+
| { regtest: null }
|
|
46
|
+
| { testnet: null };
|
|
47
|
+
export interface bitcoin_send_transaction_args {
|
|
48
|
+
transaction: Uint8Array | number[];
|
|
49
|
+
network: bitcoin_network;
|
|
50
|
+
}
|
|
51
|
+
export type canister_id = Principal;
|
|
52
|
+
export interface canister_info_args {
|
|
53
|
+
canister_id: canister_id;
|
|
54
|
+
num_requested_changes: [] | [bigint];
|
|
55
|
+
}
|
|
56
|
+
export interface canister_info_result {
|
|
57
|
+
controllers: Array<Principal>;
|
|
58
|
+
module_hash: [] | [Uint8Array | number[]];
|
|
59
|
+
recent_changes: Array<change>;
|
|
60
|
+
total_num_changes: bigint;
|
|
61
|
+
}
|
|
62
|
+
export type canister_install_mode =
|
|
63
|
+
| { reinstall: null }
|
|
64
|
+
| {
|
|
65
|
+
upgrade:
|
|
66
|
+
| []
|
|
67
|
+
| [
|
|
68
|
+
{
|
|
69
|
+
wasm_memory_persistence:
|
|
70
|
+
| []
|
|
71
|
+
| [{ keep: null } | { replace: null }];
|
|
72
|
+
skip_pre_upgrade: [] | [boolean];
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
| { install: null };
|
|
77
|
+
export interface canister_log_record {
|
|
78
|
+
idx: bigint;
|
|
79
|
+
timestamp_nanos: bigint;
|
|
80
|
+
content: Uint8Array | number[];
|
|
81
|
+
}
|
|
82
|
+
export interface canister_settings {
|
|
83
|
+
freezing_threshold: [] | [bigint];
|
|
84
|
+
controllers: [] | [Array<Principal>];
|
|
85
|
+
reserved_cycles_limit: [] | [bigint];
|
|
86
|
+
log_visibility: [] | [log_visibility];
|
|
87
|
+
wasm_memory_limit: [] | [bigint];
|
|
88
|
+
memory_allocation: [] | [bigint];
|
|
89
|
+
compute_allocation: [] | [bigint];
|
|
90
|
+
}
|
|
91
|
+
export interface canister_status_args {
|
|
92
|
+
canister_id: canister_id;
|
|
93
|
+
}
|
|
94
|
+
export interface canister_status_result {
|
|
95
|
+
status: { stopped: null } | { stopping: null } | { running: null };
|
|
96
|
+
memory_size: bigint;
|
|
97
|
+
cycles: bigint;
|
|
98
|
+
settings: definite_canister_settings;
|
|
99
|
+
query_stats: {
|
|
100
|
+
response_payload_bytes_total: bigint;
|
|
101
|
+
num_instructions_total: bigint;
|
|
102
|
+
num_calls_total: bigint;
|
|
103
|
+
request_payload_bytes_total: bigint;
|
|
104
|
+
};
|
|
105
|
+
idle_cycles_burned_per_day: bigint;
|
|
106
|
+
module_hash: [] | [Uint8Array | number[]];
|
|
107
|
+
reserved_cycles: bigint;
|
|
108
|
+
}
|
|
109
|
+
export interface change {
|
|
110
|
+
timestamp_nanos: bigint;
|
|
111
|
+
canister_version: bigint;
|
|
112
|
+
origin: change_origin;
|
|
113
|
+
details: change_details;
|
|
114
|
+
}
|
|
115
|
+
export type change_details =
|
|
116
|
+
| {
|
|
117
|
+
creation: { controllers: Array<Principal> };
|
|
118
|
+
}
|
|
119
|
+
| {
|
|
120
|
+
code_deployment: {
|
|
121
|
+
mode: { reinstall: null } | { upgrade: null } | { install: null };
|
|
122
|
+
module_hash: Uint8Array | number[];
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
| {
|
|
126
|
+
load_snapshot: {
|
|
127
|
+
canister_version: bigint;
|
|
128
|
+
taken_at_timestamp: bigint;
|
|
129
|
+
snapshot_id: snapshot_id;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
| { controllers_change: { controllers: Array<Principal> } }
|
|
133
|
+
| { code_uninstall: null };
|
|
134
|
+
export type change_origin =
|
|
135
|
+
| { from_user: { user_id: Principal } }
|
|
136
|
+
| {
|
|
137
|
+
from_canister: {
|
|
138
|
+
canister_version: [] | [bigint];
|
|
139
|
+
canister_id: Principal;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export interface chunk_hash {
|
|
143
|
+
hash: Uint8Array | number[];
|
|
144
|
+
}
|
|
145
|
+
export interface clear_chunk_store_args {
|
|
146
|
+
canister_id: canister_id;
|
|
147
|
+
}
|
|
148
|
+
export interface create_canister_args {
|
|
149
|
+
settings: [] | [canister_settings];
|
|
150
|
+
sender_canister_version: [] | [bigint];
|
|
151
|
+
}
|
|
152
|
+
export interface create_canister_result {
|
|
153
|
+
canister_id: canister_id;
|
|
154
|
+
}
|
|
155
|
+
export interface definite_canister_settings {
|
|
156
|
+
freezing_threshold: bigint;
|
|
157
|
+
controllers: Array<Principal>;
|
|
158
|
+
reserved_cycles_limit: bigint;
|
|
159
|
+
log_visibility: log_visibility;
|
|
160
|
+
wasm_memory_limit: bigint;
|
|
161
|
+
memory_allocation: bigint;
|
|
162
|
+
compute_allocation: bigint;
|
|
163
|
+
}
|
|
164
|
+
export interface delete_canister_args {
|
|
165
|
+
canister_id: canister_id;
|
|
166
|
+
}
|
|
167
|
+
export interface delete_canister_snapshot_args {
|
|
168
|
+
canister_id: canister_id;
|
|
169
|
+
snapshot_id: snapshot_id;
|
|
170
|
+
}
|
|
171
|
+
export interface deposit_cycles_args {
|
|
172
|
+
canister_id: canister_id;
|
|
173
|
+
}
|
|
174
|
+
export type ecdsa_curve = { secp256k1: null };
|
|
175
|
+
export interface ecdsa_public_key_args {
|
|
176
|
+
key_id: { name: string; curve: ecdsa_curve };
|
|
177
|
+
canister_id: [] | [canister_id];
|
|
178
|
+
derivation_path: Array<Uint8Array | number[]>;
|
|
179
|
+
}
|
|
180
|
+
export interface ecdsa_public_key_result {
|
|
181
|
+
public_key: Uint8Array | number[];
|
|
182
|
+
chain_code: Uint8Array | number[];
|
|
183
|
+
}
|
|
184
|
+
export interface fetch_canister_logs_args {
|
|
185
|
+
canister_id: canister_id;
|
|
186
|
+
}
|
|
187
|
+
export interface fetch_canister_logs_result {
|
|
188
|
+
canister_log_records: Array<canister_log_record>;
|
|
189
|
+
}
|
|
190
|
+
export interface http_header {
|
|
191
|
+
value: string;
|
|
192
|
+
name: string;
|
|
193
|
+
}
|
|
194
|
+
export interface http_request_args {
|
|
195
|
+
url: string;
|
|
196
|
+
method: { get: null } | { head: null } | { post: null };
|
|
197
|
+
max_response_bytes: [] | [bigint];
|
|
198
|
+
body: [] | [Uint8Array | number[]];
|
|
199
|
+
transform: [] | [http_transform];
|
|
200
|
+
headers: Array<http_header>;
|
|
201
|
+
}
|
|
202
|
+
export interface http_request_result {
|
|
203
|
+
status: bigint;
|
|
204
|
+
body: Uint8Array | number[];
|
|
205
|
+
headers: Array<http_header>;
|
|
206
|
+
}
|
|
207
|
+
export interface http_transform {
|
|
208
|
+
function: [Principal, string];
|
|
209
|
+
context: Uint8Array | number[];
|
|
210
|
+
}
|
|
211
|
+
export interface http_transform_args {
|
|
212
|
+
context: Uint8Array | number[];
|
|
213
|
+
response: http_request_result;
|
|
214
|
+
}
|
|
215
|
+
export interface install_chunked_code_args {
|
|
216
|
+
arg: Uint8Array | number[];
|
|
217
|
+
wasm_module_hash: Uint8Array | number[];
|
|
218
|
+
mode: canister_install_mode;
|
|
219
|
+
chunk_hashes_list: Array<chunk_hash>;
|
|
220
|
+
target_canister: canister_id;
|
|
221
|
+
store_canister: [] | [canister_id];
|
|
222
|
+
sender_canister_version: [] | [bigint];
|
|
223
|
+
}
|
|
224
|
+
export interface install_code_args {
|
|
225
|
+
arg: Uint8Array | number[];
|
|
226
|
+
wasm_module: wasm_module;
|
|
227
|
+
mode: canister_install_mode;
|
|
228
|
+
canister_id: canister_id;
|
|
229
|
+
sender_canister_version: [] | [bigint];
|
|
230
|
+
}
|
|
231
|
+
export interface list_canister_snapshots_args {
|
|
232
|
+
canister_id: canister_id;
|
|
233
|
+
}
|
|
234
|
+
export type list_canister_snapshots_result = Array<snapshot>;
|
|
235
|
+
export interface load_canister_snapshot_args {
|
|
236
|
+
canister_id: canister_id;
|
|
237
|
+
sender_canister_version: [] | [bigint];
|
|
238
|
+
snapshot_id: snapshot_id;
|
|
239
|
+
}
|
|
240
|
+
export type log_visibility =
|
|
241
|
+
| { controllers: null }
|
|
242
|
+
| { public: null }
|
|
243
|
+
| { allowed_viewers: Array<Principal> };
|
|
244
|
+
export type millisatoshi_per_byte = bigint;
|
|
245
|
+
export interface node_metrics {
|
|
246
|
+
num_block_failures_total: bigint;
|
|
247
|
+
node_id: Principal;
|
|
248
|
+
num_blocks_proposed_total: bigint;
|
|
249
|
+
}
|
|
250
|
+
export interface node_metrics_history_args {
|
|
251
|
+
start_at_timestamp_nanos: bigint;
|
|
252
|
+
subnet_id: Principal;
|
|
253
|
+
}
|
|
254
|
+
export type node_metrics_history_result = Array<{
|
|
255
|
+
timestamp_nanos: bigint;
|
|
256
|
+
node_metrics: Array<node_metrics>;
|
|
257
|
+
}>;
|
|
258
|
+
export interface outpoint {
|
|
259
|
+
txid: Uint8Array | number[];
|
|
260
|
+
vout: number;
|
|
261
|
+
}
|
|
262
|
+
export interface provisional_create_canister_with_cycles_args {
|
|
263
|
+
settings: [] | [canister_settings];
|
|
264
|
+
specified_id: [] | [canister_id];
|
|
265
|
+
amount: [] | [bigint];
|
|
266
|
+
sender_canister_version: [] | [bigint];
|
|
267
|
+
}
|
|
268
|
+
export interface provisional_create_canister_with_cycles_result {
|
|
269
|
+
canister_id: canister_id;
|
|
270
|
+
}
|
|
271
|
+
export interface provisional_top_up_canister_args {
|
|
272
|
+
canister_id: canister_id;
|
|
273
|
+
amount: bigint;
|
|
274
|
+
}
|
|
275
|
+
export type raw_rand_result = Uint8Array | number[];
|
|
276
|
+
export type satoshi = bigint;
|
|
277
|
+
export type schnorr_algorithm = { ed25519: null } | { bip340secp256k1: null };
|
|
278
|
+
export type schnorr_aux = {
|
|
279
|
+
bip341: { merkle_root_hash: Uint8Array | number[] };
|
|
280
|
+
};
|
|
281
|
+
export interface schnorr_public_key_args {
|
|
282
|
+
key_id: { algorithm: schnorr_algorithm; name: string };
|
|
283
|
+
canister_id: [] | [canister_id];
|
|
284
|
+
derivation_path: Array<Uint8Array | number[]>;
|
|
285
|
+
}
|
|
286
|
+
export interface schnorr_public_key_result {
|
|
287
|
+
public_key: Uint8Array | number[];
|
|
288
|
+
chain_code: Uint8Array | number[];
|
|
289
|
+
}
|
|
290
|
+
export interface sign_with_ecdsa_args {
|
|
291
|
+
key_id: { name: string; curve: ecdsa_curve };
|
|
292
|
+
derivation_path: Array<Uint8Array | number[]>;
|
|
293
|
+
message_hash: Uint8Array | number[];
|
|
294
|
+
}
|
|
295
|
+
export interface sign_with_ecdsa_result {
|
|
296
|
+
signature: Uint8Array | number[];
|
|
297
|
+
}
|
|
298
|
+
export interface sign_with_schnorr_args {
|
|
299
|
+
aux: [] | [schnorr_aux];
|
|
300
|
+
key_id: { algorithm: schnorr_algorithm; name: string };
|
|
301
|
+
derivation_path: Array<Uint8Array | number[]>;
|
|
302
|
+
message: Uint8Array | number[];
|
|
303
|
+
}
|
|
304
|
+
export interface sign_with_schnorr_result {
|
|
305
|
+
signature: Uint8Array | number[];
|
|
306
|
+
}
|
|
307
|
+
export interface snapshot {
|
|
308
|
+
id: snapshot_id;
|
|
309
|
+
total_size: bigint;
|
|
310
|
+
taken_at_timestamp: bigint;
|
|
311
|
+
}
|
|
312
|
+
export type snapshot_id = Uint8Array | number[];
|
|
313
|
+
export interface start_canister_args {
|
|
314
|
+
canister_id: canister_id;
|
|
315
|
+
}
|
|
316
|
+
export interface stop_canister_args {
|
|
317
|
+
canister_id: canister_id;
|
|
318
|
+
}
|
|
319
|
+
export interface stored_chunks_args {
|
|
320
|
+
canister_id: canister_id;
|
|
321
|
+
}
|
|
322
|
+
export type stored_chunks_result = Array<chunk_hash>;
|
|
323
|
+
export interface subnet_info_args {
|
|
324
|
+
subnet_id: Principal;
|
|
325
|
+
}
|
|
326
|
+
export interface subnet_info_result {
|
|
327
|
+
replica_version: string;
|
|
328
|
+
}
|
|
329
|
+
export interface take_canister_snapshot_args {
|
|
330
|
+
replace_snapshot: [] | [snapshot_id];
|
|
331
|
+
canister_id: canister_id;
|
|
332
|
+
}
|
|
333
|
+
export type take_canister_snapshot_result = snapshot;
|
|
334
|
+
export interface uninstall_code_args {
|
|
335
|
+
canister_id: canister_id;
|
|
336
|
+
sender_canister_version: [] | [bigint];
|
|
337
|
+
}
|
|
338
|
+
export interface update_settings_args {
|
|
339
|
+
canister_id: Principal;
|
|
340
|
+
settings: canister_settings;
|
|
341
|
+
sender_canister_version: [] | [bigint];
|
|
342
|
+
}
|
|
343
|
+
export interface upload_chunk_args {
|
|
344
|
+
chunk: Uint8Array | number[];
|
|
345
|
+
canister_id: Principal;
|
|
346
|
+
}
|
|
347
|
+
export type upload_chunk_result = chunk_hash;
|
|
348
|
+
export interface utxo {
|
|
349
|
+
height: number;
|
|
350
|
+
value: satoshi;
|
|
351
|
+
outpoint: outpoint;
|
|
352
|
+
}
|
|
353
|
+
export type wasm_module = Uint8Array | number[];
|
|
354
|
+
export interface _SERVICE {
|
|
355
|
+
bitcoin_get_balance: ActorMethod<
|
|
356
|
+
[bitcoin_get_balance_args],
|
|
357
|
+
bitcoin_get_balance_result
|
|
358
|
+
>;
|
|
359
|
+
bitcoin_get_block_headers: ActorMethod<
|
|
360
|
+
[bitcoin_get_block_headers_args],
|
|
361
|
+
bitcoin_get_block_headers_result
|
|
362
|
+
>;
|
|
363
|
+
bitcoin_get_current_fee_percentiles: ActorMethod<
|
|
364
|
+
[bitcoin_get_current_fee_percentiles_args],
|
|
365
|
+
bitcoin_get_current_fee_percentiles_result
|
|
366
|
+
>;
|
|
367
|
+
bitcoin_get_utxos: ActorMethod<
|
|
368
|
+
[bitcoin_get_utxos_args],
|
|
369
|
+
bitcoin_get_utxos_result
|
|
370
|
+
>;
|
|
371
|
+
bitcoin_send_transaction: ActorMethod<
|
|
372
|
+
[bitcoin_send_transaction_args],
|
|
373
|
+
undefined
|
|
374
|
+
>;
|
|
375
|
+
canister_info: ActorMethod<[canister_info_args], canister_info_result>;
|
|
376
|
+
canister_status: ActorMethod<
|
|
377
|
+
[canister_status_args],
|
|
378
|
+
canister_status_result
|
|
379
|
+
>;
|
|
380
|
+
clear_chunk_store: ActorMethod<[clear_chunk_store_args], undefined>;
|
|
381
|
+
create_canister: ActorMethod<
|
|
382
|
+
[create_canister_args],
|
|
383
|
+
create_canister_result
|
|
384
|
+
>;
|
|
385
|
+
delete_canister: ActorMethod<[delete_canister_args], undefined>;
|
|
386
|
+
delete_canister_snapshot: ActorMethod<
|
|
387
|
+
[delete_canister_snapshot_args],
|
|
388
|
+
undefined
|
|
389
|
+
>;
|
|
390
|
+
deposit_cycles: ActorMethod<[deposit_cycles_args], undefined>;
|
|
391
|
+
ecdsa_public_key: ActorMethod<
|
|
392
|
+
[ecdsa_public_key_args],
|
|
393
|
+
ecdsa_public_key_result
|
|
394
|
+
>;
|
|
395
|
+
fetch_canister_logs: ActorMethod<
|
|
396
|
+
[fetch_canister_logs_args],
|
|
397
|
+
fetch_canister_logs_result
|
|
398
|
+
>;
|
|
399
|
+
http_request: ActorMethod<[http_request_args], http_request_result>;
|
|
400
|
+
install_chunked_code: ActorMethod<[install_chunked_code_args], undefined>;
|
|
401
|
+
install_code: ActorMethod<[install_code_args], undefined>;
|
|
402
|
+
list_canister_snapshots: ActorMethod<
|
|
403
|
+
[list_canister_snapshots_args],
|
|
404
|
+
list_canister_snapshots_result
|
|
405
|
+
>;
|
|
406
|
+
load_canister_snapshot: ActorMethod<
|
|
407
|
+
[load_canister_snapshot_args],
|
|
408
|
+
undefined
|
|
409
|
+
>;
|
|
410
|
+
node_metrics_history: ActorMethod<
|
|
411
|
+
[node_metrics_history_args],
|
|
412
|
+
node_metrics_history_result
|
|
413
|
+
>;
|
|
414
|
+
provisional_create_canister_with_cycles: ActorMethod<
|
|
415
|
+
[provisional_create_canister_with_cycles_args],
|
|
416
|
+
provisional_create_canister_with_cycles_result
|
|
417
|
+
>;
|
|
418
|
+
provisional_top_up_canister: ActorMethod<
|
|
419
|
+
[provisional_top_up_canister_args],
|
|
420
|
+
undefined
|
|
421
|
+
>;
|
|
422
|
+
raw_rand: ActorMethod<[], raw_rand_result>;
|
|
423
|
+
schnorr_public_key: ActorMethod<
|
|
424
|
+
[schnorr_public_key_args],
|
|
425
|
+
schnorr_public_key_result
|
|
426
|
+
>;
|
|
427
|
+
sign_with_ecdsa: ActorMethod<
|
|
428
|
+
[sign_with_ecdsa_args],
|
|
429
|
+
sign_with_ecdsa_result
|
|
430
|
+
>;
|
|
431
|
+
sign_with_schnorr: ActorMethod<
|
|
432
|
+
[sign_with_schnorr_args],
|
|
433
|
+
sign_with_schnorr_result
|
|
434
|
+
>;
|
|
435
|
+
start_canister: ActorMethod<[start_canister_args], undefined>;
|
|
436
|
+
stop_canister: ActorMethod<[stop_canister_args], undefined>;
|
|
437
|
+
stored_chunks: ActorMethod<[stored_chunks_args], stored_chunks_result>;
|
|
438
|
+
subnet_info: ActorMethod<[subnet_info_args], subnet_info_result>;
|
|
439
|
+
take_canister_snapshot: ActorMethod<
|
|
440
|
+
[take_canister_snapshot_args],
|
|
441
|
+
take_canister_snapshot_result
|
|
442
|
+
>;
|
|
443
|
+
uninstall_code: ActorMethod<[uninstall_code_args], undefined>;
|
|
444
|
+
update_settings: ActorMethod<[update_settings_args], undefined>;
|
|
445
|
+
upload_chunk: ActorMethod<[upload_chunk_args], upload_chunk_result>;
|
|
446
|
+
}
|
|
447
|
+
export type idlFactory = IDL.InterfaceFactory;
|
|
448
|
+
export type init = (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
449
|
+
export const bitcoin_network = IDL.Variant({
|
|
450
|
+
mainnet: IDL.Null,
|
|
451
|
+
regtest: IDL.Null,
|
|
452
|
+
testnet: IDL.Null
|
|
453
|
+
});
|
|
454
|
+
export const bitcoin_address = IDL.Text;
|
|
455
|
+
export const bitcoin_get_balance_args = IDL.Record({
|
|
456
|
+
network: bitcoin_network,
|
|
457
|
+
address: bitcoin_address,
|
|
458
|
+
min_confirmations: IDL.Opt(IDL.Nat32)
|
|
459
|
+
});
|
|
460
|
+
export const satoshi = IDL.Nat64;
|
|
461
|
+
export const bitcoin_get_balance_result = satoshi;
|
|
462
|
+
export const bitcoin_block_height = IDL.Nat32;
|
|
463
|
+
export const bitcoin_get_block_headers_args = IDL.Record({
|
|
464
|
+
start_height: bitcoin_block_height,
|
|
465
|
+
end_height: IDL.Opt(bitcoin_block_height),
|
|
466
|
+
network: bitcoin_network
|
|
467
|
+
});
|
|
468
|
+
export const bitcoin_block_header = IDL.Vec(IDL.Nat8);
|
|
469
|
+
export const bitcoin_get_block_headers_result = IDL.Record({
|
|
470
|
+
tip_height: bitcoin_block_height,
|
|
471
|
+
block_headers: IDL.Vec(bitcoin_block_header)
|
|
472
|
+
});
|
|
473
|
+
export const bitcoin_get_current_fee_percentiles_args = IDL.Record({
|
|
474
|
+
network: bitcoin_network
|
|
475
|
+
});
|
|
476
|
+
export const millisatoshi_per_byte = IDL.Nat64;
|
|
477
|
+
export const bitcoin_get_current_fee_percentiles_result = IDL.Vec(
|
|
478
|
+
millisatoshi_per_byte
|
|
479
|
+
);
|
|
480
|
+
export const bitcoin_get_utxos_args = IDL.Record({
|
|
481
|
+
network: bitcoin_network,
|
|
482
|
+
filter: IDL.Opt(
|
|
483
|
+
IDL.Variant({ page: IDL.Vec(IDL.Nat8), min_confirmations: IDL.Nat32 })
|
|
484
|
+
),
|
|
485
|
+
address: bitcoin_address
|
|
486
|
+
});
|
|
487
|
+
export const bitcoin_block_hash = IDL.Vec(IDL.Nat8);
|
|
488
|
+
export const outpoint = IDL.Record({
|
|
489
|
+
txid: IDL.Vec(IDL.Nat8),
|
|
490
|
+
vout: IDL.Nat32
|
|
491
|
+
});
|
|
492
|
+
export const utxo = IDL.Record({
|
|
493
|
+
height: IDL.Nat32,
|
|
494
|
+
value: satoshi,
|
|
495
|
+
outpoint: outpoint
|
|
496
|
+
});
|
|
497
|
+
export const bitcoin_get_utxos_result = IDL.Record({
|
|
498
|
+
next_page: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
499
|
+
tip_height: bitcoin_block_height,
|
|
500
|
+
tip_block_hash: bitcoin_block_hash,
|
|
501
|
+
utxos: IDL.Vec(utxo)
|
|
502
|
+
});
|
|
503
|
+
export const bitcoin_send_transaction_args = IDL.Record({
|
|
504
|
+
transaction: IDL.Vec(IDL.Nat8),
|
|
505
|
+
network: bitcoin_network
|
|
506
|
+
});
|
|
507
|
+
export const canister_id = IDL.Principal;
|
|
508
|
+
export const canister_info_args = IDL.Record({
|
|
509
|
+
canister_id: canister_id,
|
|
510
|
+
num_requested_changes: IDL.Opt(IDL.Nat64)
|
|
511
|
+
});
|
|
512
|
+
export const change_origin = IDL.Variant({
|
|
513
|
+
from_user: IDL.Record({ user_id: IDL.Principal }),
|
|
514
|
+
from_canister: IDL.Record({
|
|
515
|
+
canister_version: IDL.Opt(IDL.Nat64),
|
|
516
|
+
canister_id: IDL.Principal
|
|
517
|
+
})
|
|
518
|
+
});
|
|
519
|
+
export const snapshot_id = IDL.Vec(IDL.Nat8);
|
|
520
|
+
export const change_details = IDL.Variant({
|
|
521
|
+
creation: IDL.Record({ controllers: IDL.Vec(IDL.Principal) }),
|
|
522
|
+
code_deployment: IDL.Record({
|
|
523
|
+
mode: IDL.Variant({
|
|
524
|
+
reinstall: IDL.Null,
|
|
525
|
+
upgrade: IDL.Null,
|
|
526
|
+
install: IDL.Null
|
|
527
|
+
}),
|
|
528
|
+
module_hash: IDL.Vec(IDL.Nat8)
|
|
529
|
+
}),
|
|
530
|
+
load_snapshot: IDL.Record({
|
|
531
|
+
canister_version: IDL.Nat64,
|
|
532
|
+
taken_at_timestamp: IDL.Nat64,
|
|
533
|
+
snapshot_id: snapshot_id
|
|
534
|
+
}),
|
|
535
|
+
controllers_change: IDL.Record({ controllers: IDL.Vec(IDL.Principal) }),
|
|
536
|
+
code_uninstall: IDL.Null
|
|
537
|
+
});
|
|
538
|
+
export const change = IDL.Record({
|
|
539
|
+
timestamp_nanos: IDL.Nat64,
|
|
540
|
+
canister_version: IDL.Nat64,
|
|
541
|
+
origin: change_origin,
|
|
542
|
+
details: change_details
|
|
543
|
+
});
|
|
544
|
+
export const canister_info_result = IDL.Record({
|
|
545
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
546
|
+
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
547
|
+
recent_changes: IDL.Vec(change),
|
|
548
|
+
total_num_changes: IDL.Nat64
|
|
549
|
+
});
|
|
550
|
+
export const canister_status_args = IDL.Record({ canister_id: canister_id });
|
|
551
|
+
export const log_visibility = IDL.Variant({
|
|
552
|
+
controllers: IDL.Null,
|
|
553
|
+
public: IDL.Null,
|
|
554
|
+
allowed_viewers: IDL.Vec(IDL.Principal)
|
|
555
|
+
});
|
|
556
|
+
export const definite_canister_settings = IDL.Record({
|
|
557
|
+
freezing_threshold: IDL.Nat,
|
|
558
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
559
|
+
reserved_cycles_limit: IDL.Nat,
|
|
560
|
+
log_visibility: log_visibility,
|
|
561
|
+
wasm_memory_limit: IDL.Nat,
|
|
562
|
+
memory_allocation: IDL.Nat,
|
|
563
|
+
compute_allocation: IDL.Nat
|
|
564
|
+
});
|
|
565
|
+
export const canister_status_result = IDL.Record({
|
|
566
|
+
status: IDL.Variant({
|
|
567
|
+
stopped: IDL.Null,
|
|
568
|
+
stopping: IDL.Null,
|
|
569
|
+
running: IDL.Null
|
|
570
|
+
}),
|
|
571
|
+
memory_size: IDL.Nat,
|
|
572
|
+
cycles: IDL.Nat,
|
|
573
|
+
settings: definite_canister_settings,
|
|
574
|
+
query_stats: IDL.Record({
|
|
575
|
+
response_payload_bytes_total: IDL.Nat,
|
|
576
|
+
num_instructions_total: IDL.Nat,
|
|
577
|
+
num_calls_total: IDL.Nat,
|
|
578
|
+
request_payload_bytes_total: IDL.Nat
|
|
579
|
+
}),
|
|
580
|
+
idle_cycles_burned_per_day: IDL.Nat,
|
|
581
|
+
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
582
|
+
reserved_cycles: IDL.Nat
|
|
583
|
+
});
|
|
584
|
+
export const clear_chunk_store_args = IDL.Record({
|
|
585
|
+
canister_id: canister_id
|
|
586
|
+
});
|
|
587
|
+
export const canister_settings = IDL.Record({
|
|
588
|
+
freezing_threshold: IDL.Opt(IDL.Nat),
|
|
589
|
+
controllers: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
590
|
+
reserved_cycles_limit: IDL.Opt(IDL.Nat),
|
|
591
|
+
log_visibility: IDL.Opt(log_visibility),
|
|
592
|
+
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
593
|
+
memory_allocation: IDL.Opt(IDL.Nat),
|
|
594
|
+
compute_allocation: IDL.Opt(IDL.Nat)
|
|
595
|
+
});
|
|
596
|
+
export const create_canister_args = IDL.Record({
|
|
597
|
+
settings: IDL.Opt(canister_settings),
|
|
598
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
599
|
+
});
|
|
600
|
+
export const create_canister_result = IDL.Record({
|
|
601
|
+
canister_id: canister_id
|
|
602
|
+
});
|
|
603
|
+
export const delete_canister_args = IDL.Record({ canister_id: canister_id });
|
|
604
|
+
export const delete_canister_snapshot_args = IDL.Record({
|
|
605
|
+
canister_id: canister_id,
|
|
606
|
+
snapshot_id: snapshot_id
|
|
607
|
+
});
|
|
608
|
+
export const deposit_cycles_args = IDL.Record({ canister_id: canister_id });
|
|
609
|
+
export const ecdsa_curve = IDL.Variant({ secp256k1: IDL.Null });
|
|
610
|
+
export const ecdsa_public_key_args = IDL.Record({
|
|
611
|
+
key_id: IDL.Record({ name: IDL.Text, curve: ecdsa_curve }),
|
|
612
|
+
canister_id: IDL.Opt(canister_id),
|
|
613
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
614
|
+
});
|
|
615
|
+
export const ecdsa_public_key_result = IDL.Record({
|
|
616
|
+
public_key: IDL.Vec(IDL.Nat8),
|
|
617
|
+
chain_code: IDL.Vec(IDL.Nat8)
|
|
618
|
+
});
|
|
619
|
+
export const fetch_canister_logs_args = IDL.Record({
|
|
620
|
+
canister_id: canister_id
|
|
621
|
+
});
|
|
622
|
+
export const canister_log_record = IDL.Record({
|
|
623
|
+
idx: IDL.Nat64,
|
|
624
|
+
timestamp_nanos: IDL.Nat64,
|
|
625
|
+
content: IDL.Vec(IDL.Nat8)
|
|
626
|
+
});
|
|
627
|
+
export const fetch_canister_logs_result = IDL.Record({
|
|
628
|
+
canister_log_records: IDL.Vec(canister_log_record)
|
|
629
|
+
});
|
|
630
|
+
export const http_header = IDL.Record({
|
|
631
|
+
value: IDL.Text,
|
|
632
|
+
name: IDL.Text
|
|
633
|
+
});
|
|
634
|
+
export const http_request_result = IDL.Record({
|
|
635
|
+
status: IDL.Nat,
|
|
636
|
+
body: IDL.Vec(IDL.Nat8),
|
|
637
|
+
headers: IDL.Vec(http_header)
|
|
638
|
+
});
|
|
639
|
+
export const http_transform_args = IDL.Record({
|
|
640
|
+
context: IDL.Vec(IDL.Nat8),
|
|
641
|
+
response: http_request_result
|
|
642
|
+
});
|
|
643
|
+
export const http_transform = IDL.Record({
|
|
644
|
+
function: IDL.Func([http_transform_args], [http_request_result], ['query']),
|
|
645
|
+
context: IDL.Vec(IDL.Nat8)
|
|
646
|
+
});
|
|
647
|
+
export const http_request_args = IDL.Record({
|
|
648
|
+
url: IDL.Text,
|
|
649
|
+
method: IDL.Variant({
|
|
650
|
+
get: IDL.Null,
|
|
651
|
+
head: IDL.Null,
|
|
652
|
+
post: IDL.Null
|
|
653
|
+
}),
|
|
654
|
+
max_response_bytes: IDL.Opt(IDL.Nat64),
|
|
655
|
+
body: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
656
|
+
transform: IDL.Opt(http_transform),
|
|
657
|
+
headers: IDL.Vec(http_header)
|
|
658
|
+
});
|
|
659
|
+
export const canister_install_mode = IDL.Variant({
|
|
660
|
+
reinstall: IDL.Null,
|
|
661
|
+
upgrade: IDL.Opt(
|
|
662
|
+
IDL.Record({
|
|
663
|
+
wasm_memory_persistence: IDL.Opt(
|
|
664
|
+
IDL.Variant({ keep: IDL.Null, replace: IDL.Null })
|
|
665
|
+
),
|
|
666
|
+
skip_pre_upgrade: IDL.Opt(IDL.Bool)
|
|
667
|
+
})
|
|
668
|
+
),
|
|
669
|
+
install: IDL.Null
|
|
670
|
+
});
|
|
671
|
+
export const chunk_hash = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
672
|
+
export const install_chunked_code_args = IDL.Record({
|
|
673
|
+
arg: IDL.Vec(IDL.Nat8),
|
|
674
|
+
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
675
|
+
mode: canister_install_mode,
|
|
676
|
+
chunk_hashes_list: IDL.Vec(chunk_hash),
|
|
677
|
+
target_canister: canister_id,
|
|
678
|
+
store_canister: IDL.Opt(canister_id),
|
|
679
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
680
|
+
});
|
|
681
|
+
export const wasm_module = IDL.Vec(IDL.Nat8);
|
|
682
|
+
export const install_code_args = IDL.Record({
|
|
683
|
+
arg: IDL.Vec(IDL.Nat8),
|
|
684
|
+
wasm_module: wasm_module,
|
|
685
|
+
mode: canister_install_mode,
|
|
686
|
+
canister_id: canister_id,
|
|
687
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
688
|
+
});
|
|
689
|
+
export const list_canister_snapshots_args = IDL.Record({
|
|
690
|
+
canister_id: canister_id
|
|
691
|
+
});
|
|
692
|
+
export const snapshot = IDL.Record({
|
|
693
|
+
id: snapshot_id,
|
|
694
|
+
total_size: IDL.Nat64,
|
|
695
|
+
taken_at_timestamp: IDL.Nat64
|
|
696
|
+
});
|
|
697
|
+
export const list_canister_snapshots_result = IDL.Vec(snapshot);
|
|
698
|
+
export const load_canister_snapshot_args = IDL.Record({
|
|
699
|
+
canister_id: canister_id,
|
|
700
|
+
sender_canister_version: IDL.Opt(IDL.Nat64),
|
|
701
|
+
snapshot_id: snapshot_id
|
|
702
|
+
});
|
|
703
|
+
export const node_metrics_history_args = IDL.Record({
|
|
704
|
+
start_at_timestamp_nanos: IDL.Nat64,
|
|
705
|
+
subnet_id: IDL.Principal
|
|
706
|
+
});
|
|
707
|
+
export const node_metrics = IDL.Record({
|
|
708
|
+
num_block_failures_total: IDL.Nat64,
|
|
709
|
+
node_id: IDL.Principal,
|
|
710
|
+
num_blocks_proposed_total: IDL.Nat64
|
|
711
|
+
});
|
|
712
|
+
export const node_metrics_history_result = IDL.Vec(
|
|
713
|
+
IDL.Record({
|
|
714
|
+
timestamp_nanos: IDL.Nat64,
|
|
715
|
+
node_metrics: IDL.Vec(node_metrics)
|
|
716
|
+
})
|
|
717
|
+
);
|
|
718
|
+
export const provisional_create_canister_with_cycles_args = IDL.Record({
|
|
719
|
+
settings: IDL.Opt(canister_settings),
|
|
720
|
+
specified_id: IDL.Opt(canister_id),
|
|
721
|
+
amount: IDL.Opt(IDL.Nat),
|
|
722
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
723
|
+
});
|
|
724
|
+
export const provisional_create_canister_with_cycles_result = IDL.Record({
|
|
725
|
+
canister_id: canister_id
|
|
726
|
+
});
|
|
727
|
+
export const provisional_top_up_canister_args = IDL.Record({
|
|
728
|
+
canister_id: canister_id,
|
|
729
|
+
amount: IDL.Nat
|
|
730
|
+
});
|
|
731
|
+
export const raw_rand_result = IDL.Vec(IDL.Nat8);
|
|
732
|
+
export const schnorr_algorithm = IDL.Variant({
|
|
733
|
+
ed25519: IDL.Null,
|
|
734
|
+
bip340secp256k1: IDL.Null
|
|
735
|
+
});
|
|
736
|
+
export const schnorr_public_key_args = IDL.Record({
|
|
737
|
+
key_id: IDL.Record({ algorithm: schnorr_algorithm, name: IDL.Text }),
|
|
738
|
+
canister_id: IDL.Opt(canister_id),
|
|
739
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
740
|
+
});
|
|
741
|
+
export const schnorr_public_key_result = IDL.Record({
|
|
742
|
+
public_key: IDL.Vec(IDL.Nat8),
|
|
743
|
+
chain_code: IDL.Vec(IDL.Nat8)
|
|
744
|
+
});
|
|
745
|
+
export const sign_with_ecdsa_args = IDL.Record({
|
|
746
|
+
key_id: IDL.Record({ name: IDL.Text, curve: ecdsa_curve }),
|
|
747
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
748
|
+
message_hash: IDL.Vec(IDL.Nat8)
|
|
749
|
+
});
|
|
750
|
+
export const sign_with_ecdsa_result = IDL.Record({
|
|
751
|
+
signature: IDL.Vec(IDL.Nat8)
|
|
752
|
+
});
|
|
753
|
+
export const schnorr_aux = IDL.Variant({
|
|
754
|
+
bip341: IDL.Record({ merkle_root_hash: IDL.Vec(IDL.Nat8) })
|
|
755
|
+
});
|
|
756
|
+
export const sign_with_schnorr_args = IDL.Record({
|
|
757
|
+
aux: IDL.Opt(schnorr_aux),
|
|
758
|
+
key_id: IDL.Record({ algorithm: schnorr_algorithm, name: IDL.Text }),
|
|
759
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
760
|
+
message: IDL.Vec(IDL.Nat8)
|
|
761
|
+
});
|
|
762
|
+
export const sign_with_schnorr_result = IDL.Record({
|
|
763
|
+
signature: IDL.Vec(IDL.Nat8)
|
|
764
|
+
});
|
|
765
|
+
export const start_canister_args = IDL.Record({ canister_id: canister_id });
|
|
766
|
+
export const stop_canister_args = IDL.Record({ canister_id: canister_id });
|
|
767
|
+
export const stored_chunks_args = IDL.Record({ canister_id: canister_id });
|
|
768
|
+
export const stored_chunks_result = IDL.Vec(chunk_hash);
|
|
769
|
+
export const subnet_info_args = IDL.Record({ subnet_id: IDL.Principal });
|
|
770
|
+
export const subnet_info_result = IDL.Record({ replica_version: IDL.Text });
|
|
771
|
+
export const take_canister_snapshot_args = IDL.Record({
|
|
772
|
+
replace_snapshot: IDL.Opt(snapshot_id),
|
|
773
|
+
canister_id: canister_id
|
|
774
|
+
});
|
|
775
|
+
export const take_canister_snapshot_result = snapshot;
|
|
776
|
+
export const uninstall_code_args = IDL.Record({
|
|
777
|
+
canister_id: canister_id,
|
|
778
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
779
|
+
});
|
|
780
|
+
export const update_settings_args = IDL.Record({
|
|
781
|
+
canister_id: IDL.Principal,
|
|
782
|
+
settings: canister_settings,
|
|
783
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
784
|
+
});
|
|
785
|
+
export const upload_chunk_args = IDL.Record({
|
|
786
|
+
chunk: IDL.Vec(IDL.Nat8),
|
|
787
|
+
canister_id: IDL.Principal
|
|
788
|
+
});
|
|
789
|
+
export const upload_chunk_result = chunk_hash;
|
|
790
|
+
export const idlFactory: idlFactory = ({ IDL }) => {
|
|
791
|
+
const bitcoin_network = IDL.Variant({
|
|
792
|
+
mainnet: IDL.Null,
|
|
793
|
+
regtest: IDL.Null,
|
|
794
|
+
testnet: IDL.Null
|
|
795
|
+
});
|
|
796
|
+
const bitcoin_address = IDL.Text;
|
|
797
|
+
const bitcoin_get_balance_args = IDL.Record({
|
|
798
|
+
network: bitcoin_network,
|
|
799
|
+
address: bitcoin_address,
|
|
800
|
+
min_confirmations: IDL.Opt(IDL.Nat32)
|
|
801
|
+
});
|
|
802
|
+
const satoshi = IDL.Nat64;
|
|
803
|
+
const bitcoin_get_balance_result = satoshi;
|
|
804
|
+
const bitcoin_block_height = IDL.Nat32;
|
|
805
|
+
const bitcoin_get_block_headers_args = IDL.Record({
|
|
806
|
+
start_height: bitcoin_block_height,
|
|
807
|
+
end_height: IDL.Opt(bitcoin_block_height),
|
|
808
|
+
network: bitcoin_network
|
|
809
|
+
});
|
|
810
|
+
const bitcoin_block_header = IDL.Vec(IDL.Nat8);
|
|
811
|
+
const bitcoin_get_block_headers_result = IDL.Record({
|
|
812
|
+
tip_height: bitcoin_block_height,
|
|
813
|
+
block_headers: IDL.Vec(bitcoin_block_header)
|
|
814
|
+
});
|
|
815
|
+
const bitcoin_get_current_fee_percentiles_args = IDL.Record({
|
|
816
|
+
network: bitcoin_network
|
|
817
|
+
});
|
|
818
|
+
const millisatoshi_per_byte = IDL.Nat64;
|
|
819
|
+
const bitcoin_get_current_fee_percentiles_result = IDL.Vec(
|
|
820
|
+
millisatoshi_per_byte
|
|
821
|
+
);
|
|
822
|
+
const bitcoin_get_utxos_args = IDL.Record({
|
|
823
|
+
network: bitcoin_network,
|
|
824
|
+
filter: IDL.Opt(
|
|
825
|
+
IDL.Variant({
|
|
826
|
+
page: IDL.Vec(IDL.Nat8),
|
|
827
|
+
min_confirmations: IDL.Nat32
|
|
828
|
+
})
|
|
829
|
+
),
|
|
830
|
+
address: bitcoin_address
|
|
831
|
+
});
|
|
832
|
+
const bitcoin_block_hash = IDL.Vec(IDL.Nat8);
|
|
833
|
+
const outpoint = IDL.Record({
|
|
834
|
+
txid: IDL.Vec(IDL.Nat8),
|
|
835
|
+
vout: IDL.Nat32
|
|
836
|
+
});
|
|
837
|
+
const utxo = IDL.Record({
|
|
838
|
+
height: IDL.Nat32,
|
|
839
|
+
value: satoshi,
|
|
840
|
+
outpoint: outpoint
|
|
841
|
+
});
|
|
842
|
+
const bitcoin_get_utxos_result = IDL.Record({
|
|
843
|
+
next_page: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
844
|
+
tip_height: bitcoin_block_height,
|
|
845
|
+
tip_block_hash: bitcoin_block_hash,
|
|
846
|
+
utxos: IDL.Vec(utxo)
|
|
847
|
+
});
|
|
848
|
+
const bitcoin_send_transaction_args = IDL.Record({
|
|
849
|
+
transaction: IDL.Vec(IDL.Nat8),
|
|
850
|
+
network: bitcoin_network
|
|
851
|
+
});
|
|
852
|
+
const canister_id = IDL.Principal;
|
|
853
|
+
const canister_info_args = IDL.Record({
|
|
854
|
+
canister_id: canister_id,
|
|
855
|
+
num_requested_changes: IDL.Opt(IDL.Nat64)
|
|
856
|
+
});
|
|
857
|
+
const change_origin = IDL.Variant({
|
|
858
|
+
from_user: IDL.Record({ user_id: IDL.Principal }),
|
|
859
|
+
from_canister: IDL.Record({
|
|
860
|
+
canister_version: IDL.Opt(IDL.Nat64),
|
|
861
|
+
canister_id: IDL.Principal
|
|
862
|
+
})
|
|
863
|
+
});
|
|
864
|
+
const snapshot_id = IDL.Vec(IDL.Nat8);
|
|
865
|
+
const change_details = IDL.Variant({
|
|
866
|
+
creation: IDL.Record({ controllers: IDL.Vec(IDL.Principal) }),
|
|
867
|
+
code_deployment: IDL.Record({
|
|
868
|
+
mode: IDL.Variant({
|
|
869
|
+
reinstall: IDL.Null,
|
|
870
|
+
upgrade: IDL.Null,
|
|
871
|
+
install: IDL.Null
|
|
872
|
+
}),
|
|
873
|
+
module_hash: IDL.Vec(IDL.Nat8)
|
|
874
|
+
}),
|
|
875
|
+
load_snapshot: IDL.Record({
|
|
876
|
+
canister_version: IDL.Nat64,
|
|
877
|
+
taken_at_timestamp: IDL.Nat64,
|
|
878
|
+
snapshot_id: snapshot_id
|
|
879
|
+
}),
|
|
880
|
+
controllers_change: IDL.Record({
|
|
881
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
882
|
+
}),
|
|
883
|
+
code_uninstall: IDL.Null
|
|
884
|
+
});
|
|
885
|
+
const change = IDL.Record({
|
|
886
|
+
timestamp_nanos: IDL.Nat64,
|
|
887
|
+
canister_version: IDL.Nat64,
|
|
888
|
+
origin: change_origin,
|
|
889
|
+
details: change_details
|
|
890
|
+
});
|
|
891
|
+
const canister_info_result = IDL.Record({
|
|
892
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
893
|
+
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
894
|
+
recent_changes: IDL.Vec(change),
|
|
895
|
+
total_num_changes: IDL.Nat64
|
|
896
|
+
});
|
|
897
|
+
const canister_status_args = IDL.Record({ canister_id: canister_id });
|
|
898
|
+
const log_visibility = IDL.Variant({
|
|
899
|
+
controllers: IDL.Null,
|
|
900
|
+
public: IDL.Null,
|
|
901
|
+
allowed_viewers: IDL.Vec(IDL.Principal)
|
|
902
|
+
});
|
|
903
|
+
const definite_canister_settings = IDL.Record({
|
|
904
|
+
freezing_threshold: IDL.Nat,
|
|
905
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
906
|
+
reserved_cycles_limit: IDL.Nat,
|
|
907
|
+
log_visibility: log_visibility,
|
|
908
|
+
wasm_memory_limit: IDL.Nat,
|
|
909
|
+
memory_allocation: IDL.Nat,
|
|
910
|
+
compute_allocation: IDL.Nat
|
|
911
|
+
});
|
|
912
|
+
const canister_status_result = IDL.Record({
|
|
913
|
+
status: IDL.Variant({
|
|
914
|
+
stopped: IDL.Null,
|
|
915
|
+
stopping: IDL.Null,
|
|
916
|
+
running: IDL.Null
|
|
917
|
+
}),
|
|
918
|
+
memory_size: IDL.Nat,
|
|
919
|
+
cycles: IDL.Nat,
|
|
920
|
+
settings: definite_canister_settings,
|
|
921
|
+
query_stats: IDL.Record({
|
|
922
|
+
response_payload_bytes_total: IDL.Nat,
|
|
923
|
+
num_instructions_total: IDL.Nat,
|
|
924
|
+
num_calls_total: IDL.Nat,
|
|
925
|
+
request_payload_bytes_total: IDL.Nat
|
|
926
|
+
}),
|
|
927
|
+
idle_cycles_burned_per_day: IDL.Nat,
|
|
928
|
+
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
929
|
+
reserved_cycles: IDL.Nat
|
|
930
|
+
});
|
|
931
|
+
const clear_chunk_store_args = IDL.Record({ canister_id: canister_id });
|
|
932
|
+
const canister_settings = IDL.Record({
|
|
933
|
+
freezing_threshold: IDL.Opt(IDL.Nat),
|
|
934
|
+
controllers: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
935
|
+
reserved_cycles_limit: IDL.Opt(IDL.Nat),
|
|
936
|
+
log_visibility: IDL.Opt(log_visibility),
|
|
937
|
+
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
938
|
+
memory_allocation: IDL.Opt(IDL.Nat),
|
|
939
|
+
compute_allocation: IDL.Opt(IDL.Nat)
|
|
940
|
+
});
|
|
941
|
+
const create_canister_args = IDL.Record({
|
|
942
|
+
settings: IDL.Opt(canister_settings),
|
|
943
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
944
|
+
});
|
|
945
|
+
const create_canister_result = IDL.Record({ canister_id: canister_id });
|
|
946
|
+
const delete_canister_args = IDL.Record({ canister_id: canister_id });
|
|
947
|
+
const delete_canister_snapshot_args = IDL.Record({
|
|
948
|
+
canister_id: canister_id,
|
|
949
|
+
snapshot_id: snapshot_id
|
|
950
|
+
});
|
|
951
|
+
const deposit_cycles_args = IDL.Record({ canister_id: canister_id });
|
|
952
|
+
const ecdsa_curve = IDL.Variant({ secp256k1: IDL.Null });
|
|
953
|
+
const ecdsa_public_key_args = IDL.Record({
|
|
954
|
+
key_id: IDL.Record({ name: IDL.Text, curve: ecdsa_curve }),
|
|
955
|
+
canister_id: IDL.Opt(canister_id),
|
|
956
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
957
|
+
});
|
|
958
|
+
const ecdsa_public_key_result = IDL.Record({
|
|
959
|
+
public_key: IDL.Vec(IDL.Nat8),
|
|
960
|
+
chain_code: IDL.Vec(IDL.Nat8)
|
|
961
|
+
});
|
|
962
|
+
const fetch_canister_logs_args = IDL.Record({ canister_id: canister_id });
|
|
963
|
+
const canister_log_record = IDL.Record({
|
|
964
|
+
idx: IDL.Nat64,
|
|
965
|
+
timestamp_nanos: IDL.Nat64,
|
|
966
|
+
content: IDL.Vec(IDL.Nat8)
|
|
967
|
+
});
|
|
968
|
+
const fetch_canister_logs_result = IDL.Record({
|
|
969
|
+
canister_log_records: IDL.Vec(canister_log_record)
|
|
970
|
+
});
|
|
971
|
+
const http_header = IDL.Record({ value: IDL.Text, name: IDL.Text });
|
|
972
|
+
const http_request_result = IDL.Record({
|
|
973
|
+
status: IDL.Nat,
|
|
974
|
+
body: IDL.Vec(IDL.Nat8),
|
|
975
|
+
headers: IDL.Vec(http_header)
|
|
976
|
+
});
|
|
977
|
+
const http_transform_args = IDL.Record({
|
|
978
|
+
context: IDL.Vec(IDL.Nat8),
|
|
979
|
+
response: http_request_result
|
|
980
|
+
});
|
|
981
|
+
const http_transform = IDL.Record({
|
|
982
|
+
function: IDL.Func(
|
|
983
|
+
[http_transform_args],
|
|
984
|
+
[http_request_result],
|
|
985
|
+
['query']
|
|
986
|
+
),
|
|
987
|
+
context: IDL.Vec(IDL.Nat8)
|
|
988
|
+
});
|
|
989
|
+
const http_request_args = IDL.Record({
|
|
990
|
+
url: IDL.Text,
|
|
991
|
+
method: IDL.Variant({
|
|
992
|
+
get: IDL.Null,
|
|
993
|
+
head: IDL.Null,
|
|
994
|
+
post: IDL.Null
|
|
995
|
+
}),
|
|
996
|
+
max_response_bytes: IDL.Opt(IDL.Nat64),
|
|
997
|
+
body: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
998
|
+
transform: IDL.Opt(http_transform),
|
|
999
|
+
headers: IDL.Vec(http_header)
|
|
1000
|
+
});
|
|
1001
|
+
const canister_install_mode = IDL.Variant({
|
|
1002
|
+
reinstall: IDL.Null,
|
|
1003
|
+
upgrade: IDL.Opt(
|
|
1004
|
+
IDL.Record({
|
|
1005
|
+
wasm_memory_persistence: IDL.Opt(
|
|
1006
|
+
IDL.Variant({ keep: IDL.Null, replace: IDL.Null })
|
|
1007
|
+
),
|
|
1008
|
+
skip_pre_upgrade: IDL.Opt(IDL.Bool)
|
|
1009
|
+
})
|
|
1010
|
+
),
|
|
1011
|
+
install: IDL.Null
|
|
1012
|
+
});
|
|
1013
|
+
const chunk_hash = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
1014
|
+
const install_chunked_code_args = IDL.Record({
|
|
1015
|
+
arg: IDL.Vec(IDL.Nat8),
|
|
1016
|
+
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
1017
|
+
mode: canister_install_mode,
|
|
1018
|
+
chunk_hashes_list: IDL.Vec(chunk_hash),
|
|
1019
|
+
target_canister: canister_id,
|
|
1020
|
+
store_canister: IDL.Opt(canister_id),
|
|
1021
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
1022
|
+
});
|
|
1023
|
+
const wasm_module = IDL.Vec(IDL.Nat8);
|
|
1024
|
+
const install_code_args = IDL.Record({
|
|
1025
|
+
arg: IDL.Vec(IDL.Nat8),
|
|
1026
|
+
wasm_module: wasm_module,
|
|
1027
|
+
mode: canister_install_mode,
|
|
1028
|
+
canister_id: canister_id,
|
|
1029
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
1030
|
+
});
|
|
1031
|
+
const list_canister_snapshots_args = IDL.Record({
|
|
1032
|
+
canister_id: canister_id
|
|
1033
|
+
});
|
|
1034
|
+
const snapshot = IDL.Record({
|
|
1035
|
+
id: snapshot_id,
|
|
1036
|
+
total_size: IDL.Nat64,
|
|
1037
|
+
taken_at_timestamp: IDL.Nat64
|
|
1038
|
+
});
|
|
1039
|
+
const list_canister_snapshots_result = IDL.Vec(snapshot);
|
|
1040
|
+
const load_canister_snapshot_args = IDL.Record({
|
|
1041
|
+
canister_id: canister_id,
|
|
1042
|
+
sender_canister_version: IDL.Opt(IDL.Nat64),
|
|
1043
|
+
snapshot_id: snapshot_id
|
|
1044
|
+
});
|
|
1045
|
+
const node_metrics_history_args = IDL.Record({
|
|
1046
|
+
start_at_timestamp_nanos: IDL.Nat64,
|
|
1047
|
+
subnet_id: IDL.Principal
|
|
1048
|
+
});
|
|
1049
|
+
const node_metrics = IDL.Record({
|
|
1050
|
+
num_block_failures_total: IDL.Nat64,
|
|
1051
|
+
node_id: IDL.Principal,
|
|
1052
|
+
num_blocks_proposed_total: IDL.Nat64
|
|
1053
|
+
});
|
|
1054
|
+
const node_metrics_history_result = IDL.Vec(
|
|
1055
|
+
IDL.Record({
|
|
1056
|
+
timestamp_nanos: IDL.Nat64,
|
|
1057
|
+
node_metrics: IDL.Vec(node_metrics)
|
|
1058
|
+
})
|
|
1059
|
+
);
|
|
1060
|
+
const provisional_create_canister_with_cycles_args = IDL.Record({
|
|
1061
|
+
settings: IDL.Opt(canister_settings),
|
|
1062
|
+
specified_id: IDL.Opt(canister_id),
|
|
1063
|
+
amount: IDL.Opt(IDL.Nat),
|
|
1064
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
1065
|
+
});
|
|
1066
|
+
const provisional_create_canister_with_cycles_result = IDL.Record({
|
|
1067
|
+
canister_id: canister_id
|
|
1068
|
+
});
|
|
1069
|
+
const provisional_top_up_canister_args = IDL.Record({
|
|
1070
|
+
canister_id: canister_id,
|
|
1071
|
+
amount: IDL.Nat
|
|
1072
|
+
});
|
|
1073
|
+
const raw_rand_result = IDL.Vec(IDL.Nat8);
|
|
1074
|
+
const schnorr_algorithm = IDL.Variant({
|
|
1075
|
+
ed25519: IDL.Null,
|
|
1076
|
+
bip340secp256k1: IDL.Null
|
|
1077
|
+
});
|
|
1078
|
+
const schnorr_public_key_args = IDL.Record({
|
|
1079
|
+
key_id: IDL.Record({
|
|
1080
|
+
algorithm: schnorr_algorithm,
|
|
1081
|
+
name: IDL.Text
|
|
1082
|
+
}),
|
|
1083
|
+
canister_id: IDL.Opt(canister_id),
|
|
1084
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
1085
|
+
});
|
|
1086
|
+
const schnorr_public_key_result = IDL.Record({
|
|
1087
|
+
public_key: IDL.Vec(IDL.Nat8),
|
|
1088
|
+
chain_code: IDL.Vec(IDL.Nat8)
|
|
1089
|
+
});
|
|
1090
|
+
const sign_with_ecdsa_args = IDL.Record({
|
|
1091
|
+
key_id: IDL.Record({ name: IDL.Text, curve: ecdsa_curve }),
|
|
1092
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
1093
|
+
message_hash: IDL.Vec(IDL.Nat8)
|
|
1094
|
+
});
|
|
1095
|
+
const sign_with_ecdsa_result = IDL.Record({
|
|
1096
|
+
signature: IDL.Vec(IDL.Nat8)
|
|
1097
|
+
});
|
|
1098
|
+
const schnorr_aux = IDL.Variant({
|
|
1099
|
+
bip341: IDL.Record({ merkle_root_hash: IDL.Vec(IDL.Nat8) })
|
|
1100
|
+
});
|
|
1101
|
+
const sign_with_schnorr_args = IDL.Record({
|
|
1102
|
+
aux: IDL.Opt(schnorr_aux),
|
|
1103
|
+
key_id: IDL.Record({
|
|
1104
|
+
algorithm: schnorr_algorithm,
|
|
1105
|
+
name: IDL.Text
|
|
1106
|
+
}),
|
|
1107
|
+
derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
1108
|
+
message: IDL.Vec(IDL.Nat8)
|
|
1109
|
+
});
|
|
1110
|
+
const sign_with_schnorr_result = IDL.Record({
|
|
1111
|
+
signature: IDL.Vec(IDL.Nat8)
|
|
1112
|
+
});
|
|
1113
|
+
const start_canister_args = IDL.Record({ canister_id: canister_id });
|
|
1114
|
+
const stop_canister_args = IDL.Record({ canister_id: canister_id });
|
|
1115
|
+
const stored_chunks_args = IDL.Record({ canister_id: canister_id });
|
|
1116
|
+
const stored_chunks_result = IDL.Vec(chunk_hash);
|
|
1117
|
+
const subnet_info_args = IDL.Record({ subnet_id: IDL.Principal });
|
|
1118
|
+
const subnet_info_result = IDL.Record({ replica_version: IDL.Text });
|
|
1119
|
+
const take_canister_snapshot_args = IDL.Record({
|
|
1120
|
+
replace_snapshot: IDL.Opt(snapshot_id),
|
|
1121
|
+
canister_id: canister_id
|
|
1122
|
+
});
|
|
1123
|
+
const take_canister_snapshot_result = snapshot;
|
|
1124
|
+
const uninstall_code_args = IDL.Record({
|
|
1125
|
+
canister_id: canister_id,
|
|
1126
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
1127
|
+
});
|
|
1128
|
+
const update_settings_args = IDL.Record({
|
|
1129
|
+
canister_id: IDL.Principal,
|
|
1130
|
+
settings: canister_settings,
|
|
1131
|
+
sender_canister_version: IDL.Opt(IDL.Nat64)
|
|
1132
|
+
});
|
|
1133
|
+
const upload_chunk_args = IDL.Record({
|
|
1134
|
+
chunk: IDL.Vec(IDL.Nat8),
|
|
1135
|
+
canister_id: IDL.Principal
|
|
1136
|
+
});
|
|
1137
|
+
const upload_chunk_result = chunk_hash;
|
|
1138
|
+
return IDL.Service({
|
|
1139
|
+
bitcoin_get_balance: IDL.Func(
|
|
1140
|
+
[bitcoin_get_balance_args],
|
|
1141
|
+
[bitcoin_get_balance_result],
|
|
1142
|
+
[]
|
|
1143
|
+
),
|
|
1144
|
+
bitcoin_get_block_headers: IDL.Func(
|
|
1145
|
+
[bitcoin_get_block_headers_args],
|
|
1146
|
+
[bitcoin_get_block_headers_result],
|
|
1147
|
+
[]
|
|
1148
|
+
),
|
|
1149
|
+
bitcoin_get_current_fee_percentiles: IDL.Func(
|
|
1150
|
+
[bitcoin_get_current_fee_percentiles_args],
|
|
1151
|
+
[bitcoin_get_current_fee_percentiles_result],
|
|
1152
|
+
[]
|
|
1153
|
+
),
|
|
1154
|
+
bitcoin_get_utxos: IDL.Func(
|
|
1155
|
+
[bitcoin_get_utxos_args],
|
|
1156
|
+
[bitcoin_get_utxos_result],
|
|
1157
|
+
[]
|
|
1158
|
+
),
|
|
1159
|
+
bitcoin_send_transaction: IDL.Func(
|
|
1160
|
+
[bitcoin_send_transaction_args],
|
|
1161
|
+
[],
|
|
1162
|
+
[]
|
|
1163
|
+
),
|
|
1164
|
+
canister_info: IDL.Func(
|
|
1165
|
+
[canister_info_args],
|
|
1166
|
+
[canister_info_result],
|
|
1167
|
+
[]
|
|
1168
|
+
),
|
|
1169
|
+
canister_status: IDL.Func(
|
|
1170
|
+
[canister_status_args],
|
|
1171
|
+
[canister_status_result],
|
|
1172
|
+
[]
|
|
1173
|
+
),
|
|
1174
|
+
clear_chunk_store: IDL.Func([clear_chunk_store_args], [], []),
|
|
1175
|
+
create_canister: IDL.Func(
|
|
1176
|
+
[create_canister_args],
|
|
1177
|
+
[create_canister_result],
|
|
1178
|
+
[]
|
|
1179
|
+
),
|
|
1180
|
+
delete_canister: IDL.Func([delete_canister_args], [], []),
|
|
1181
|
+
delete_canister_snapshot: IDL.Func(
|
|
1182
|
+
[delete_canister_snapshot_args],
|
|
1183
|
+
[],
|
|
1184
|
+
[]
|
|
1185
|
+
),
|
|
1186
|
+
deposit_cycles: IDL.Func([deposit_cycles_args], [], []),
|
|
1187
|
+
ecdsa_public_key: IDL.Func(
|
|
1188
|
+
[ecdsa_public_key_args],
|
|
1189
|
+
[ecdsa_public_key_result],
|
|
1190
|
+
[]
|
|
1191
|
+
),
|
|
1192
|
+
fetch_canister_logs: IDL.Func(
|
|
1193
|
+
[fetch_canister_logs_args],
|
|
1194
|
+
[fetch_canister_logs_result],
|
|
1195
|
+
['query']
|
|
1196
|
+
),
|
|
1197
|
+
http_request: IDL.Func([http_request_args], [http_request_result], []),
|
|
1198
|
+
install_chunked_code: IDL.Func([install_chunked_code_args], [], []),
|
|
1199
|
+
install_code: IDL.Func([install_code_args], [], []),
|
|
1200
|
+
list_canister_snapshots: IDL.Func(
|
|
1201
|
+
[list_canister_snapshots_args],
|
|
1202
|
+
[list_canister_snapshots_result],
|
|
1203
|
+
[]
|
|
1204
|
+
),
|
|
1205
|
+
load_canister_snapshot: IDL.Func([load_canister_snapshot_args], [], []),
|
|
1206
|
+
node_metrics_history: IDL.Func(
|
|
1207
|
+
[node_metrics_history_args],
|
|
1208
|
+
[node_metrics_history_result],
|
|
1209
|
+
[]
|
|
1210
|
+
),
|
|
1211
|
+
provisional_create_canister_with_cycles: IDL.Func(
|
|
1212
|
+
[provisional_create_canister_with_cycles_args],
|
|
1213
|
+
[provisional_create_canister_with_cycles_result],
|
|
1214
|
+
[]
|
|
1215
|
+
),
|
|
1216
|
+
provisional_top_up_canister: IDL.Func(
|
|
1217
|
+
[provisional_top_up_canister_args],
|
|
1218
|
+
[],
|
|
1219
|
+
[]
|
|
1220
|
+
),
|
|
1221
|
+
raw_rand: IDL.Func([], [raw_rand_result], []),
|
|
1222
|
+
schnorr_public_key: IDL.Func(
|
|
1223
|
+
[schnorr_public_key_args],
|
|
1224
|
+
[schnorr_public_key_result],
|
|
1225
|
+
[]
|
|
1226
|
+
),
|
|
1227
|
+
sign_with_ecdsa: IDL.Func(
|
|
1228
|
+
[sign_with_ecdsa_args],
|
|
1229
|
+
[sign_with_ecdsa_result],
|
|
1230
|
+
[]
|
|
1231
|
+
),
|
|
1232
|
+
sign_with_schnorr: IDL.Func(
|
|
1233
|
+
[sign_with_schnorr_args],
|
|
1234
|
+
[sign_with_schnorr_result],
|
|
1235
|
+
[]
|
|
1236
|
+
),
|
|
1237
|
+
start_canister: IDL.Func([start_canister_args], [], []),
|
|
1238
|
+
stop_canister: IDL.Func([stop_canister_args], [], []),
|
|
1239
|
+
stored_chunks: IDL.Func(
|
|
1240
|
+
[stored_chunks_args],
|
|
1241
|
+
[stored_chunks_result],
|
|
1242
|
+
[]
|
|
1243
|
+
),
|
|
1244
|
+
subnet_info: IDL.Func([subnet_info_args], [subnet_info_result], []),
|
|
1245
|
+
take_canister_snapshot: IDL.Func(
|
|
1246
|
+
[take_canister_snapshot_args],
|
|
1247
|
+
[take_canister_snapshot_result],
|
|
1248
|
+
[]
|
|
1249
|
+
),
|
|
1250
|
+
uninstall_code: IDL.Func([uninstall_code_args], [], []),
|
|
1251
|
+
update_settings: IDL.Func([update_settings_args], [], []),
|
|
1252
|
+
upload_chunk: IDL.Func([upload_chunk_args], [upload_chunk_result], [])
|
|
1253
|
+
});
|
|
1254
|
+
};
|
|
1255
|
+
export const init: init = () => {
|
|
1256
|
+
return [];
|
|
1257
|
+
};
|