@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,1421 @@
|
|
|
1
|
+
import { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import { IDL } from '@dfinity/candid';
|
|
3
|
+
import { Principal } from '@dfinity/principal';
|
|
4
|
+
|
|
5
|
+
export interface AddApiBoundaryNodesPayload {
|
|
6
|
+
version: string;
|
|
7
|
+
node_ids: Array<Principal>;
|
|
8
|
+
}
|
|
9
|
+
export interface AddFirewallRulesPayload {
|
|
10
|
+
expected_hash: string;
|
|
11
|
+
scope: FirewallRulesScope;
|
|
12
|
+
positions: Int32Array | number[];
|
|
13
|
+
rules: Array<FirewallRule>;
|
|
14
|
+
}
|
|
15
|
+
export interface AddNodeOperatorPayload {
|
|
16
|
+
ipv6: [] | [string];
|
|
17
|
+
node_operator_principal_id: [] | [Principal];
|
|
18
|
+
node_allowance: bigint;
|
|
19
|
+
rewardable_nodes: Array<[string, number]>;
|
|
20
|
+
node_provider_principal_id: [] | [Principal];
|
|
21
|
+
dc_id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface AddNodePayload {
|
|
24
|
+
prometheus_metrics_endpoint: string;
|
|
25
|
+
http_endpoint: string;
|
|
26
|
+
idkg_dealing_encryption_pk: [] | [Uint8Array | number[]];
|
|
27
|
+
domain: [] | [string];
|
|
28
|
+
public_ipv4_config: [] | [IPv4Config];
|
|
29
|
+
xnet_endpoint: string;
|
|
30
|
+
chip_id: [] | [Uint8Array | number[]];
|
|
31
|
+
committee_signing_pk: Uint8Array | number[];
|
|
32
|
+
node_reward_type: [] | [string];
|
|
33
|
+
node_signing_pk: Uint8Array | number[];
|
|
34
|
+
transport_tls_cert: Uint8Array | number[];
|
|
35
|
+
ni_dkg_dealing_encryption_pk: Uint8Array | number[];
|
|
36
|
+
p2p_flow_endpoints: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
export interface AddNodesToSubnetPayload {
|
|
39
|
+
subnet_id: Principal;
|
|
40
|
+
node_ids: Array<Principal>;
|
|
41
|
+
}
|
|
42
|
+
export interface AddOrRemoveDataCentersProposalPayload {
|
|
43
|
+
data_centers_to_add: Array<DataCenterRecord>;
|
|
44
|
+
data_centers_to_remove: Array<string>;
|
|
45
|
+
}
|
|
46
|
+
export interface ApiBoundaryNodeIdRecord {
|
|
47
|
+
id: [] | [Principal];
|
|
48
|
+
}
|
|
49
|
+
export interface CanisterIdRange {
|
|
50
|
+
end: Principal;
|
|
51
|
+
start: Principal;
|
|
52
|
+
}
|
|
53
|
+
export interface ChainKeyConfig {
|
|
54
|
+
signature_request_timeout_ns: [] | [bigint];
|
|
55
|
+
key_configs: Array<KeyConfig>;
|
|
56
|
+
idkg_key_rotation_period_ms: [] | [bigint];
|
|
57
|
+
}
|
|
58
|
+
export interface ChangeSubnetMembershipPayload {
|
|
59
|
+
node_ids_add: Array<Principal>;
|
|
60
|
+
subnet_id: Principal;
|
|
61
|
+
node_ids_remove: Array<Principal>;
|
|
62
|
+
}
|
|
63
|
+
export interface CompleteCanisterMigrationPayload {
|
|
64
|
+
canister_id_ranges: Array<CanisterIdRange>;
|
|
65
|
+
migration_trace: Array<Principal>;
|
|
66
|
+
}
|
|
67
|
+
export interface CreateSubnetPayload {
|
|
68
|
+
unit_delay_millis: bigint;
|
|
69
|
+
features: SubnetFeatures;
|
|
70
|
+
gossip_registry_poll_period_ms: number;
|
|
71
|
+
max_ingress_bytes_per_message: bigint;
|
|
72
|
+
dkg_dealings_per_block: bigint;
|
|
73
|
+
max_block_payload_size: bigint;
|
|
74
|
+
start_as_nns: boolean;
|
|
75
|
+
is_halted: boolean;
|
|
76
|
+
gossip_pfn_evaluation_period_ms: number;
|
|
77
|
+
max_ingress_messages_per_block: bigint;
|
|
78
|
+
max_number_of_canisters: bigint;
|
|
79
|
+
gossip_max_artifact_streams_per_peer: number;
|
|
80
|
+
replica_version_id: string;
|
|
81
|
+
gossip_max_duplicity: number;
|
|
82
|
+
gossip_max_chunk_wait_ms: number;
|
|
83
|
+
dkg_interval_length: bigint;
|
|
84
|
+
subnet_id_override: [] | [Principal];
|
|
85
|
+
ssh_backup_access: Array<string>;
|
|
86
|
+
ingress_bytes_per_block_soft_cap: bigint;
|
|
87
|
+
initial_notary_delay_millis: bigint;
|
|
88
|
+
chain_key_config: [] | [InitialChainKeyConfig];
|
|
89
|
+
gossip_max_chunk_size: number;
|
|
90
|
+
subnet_type: SubnetType;
|
|
91
|
+
ssh_readonly_access: Array<string>;
|
|
92
|
+
gossip_retransmission_request_ms: number;
|
|
93
|
+
gossip_receive_check_cache_size: number;
|
|
94
|
+
node_ids: Array<Principal>;
|
|
95
|
+
}
|
|
96
|
+
export interface DataCenterRecord {
|
|
97
|
+
id: string;
|
|
98
|
+
gps: [] | [Gps];
|
|
99
|
+
region: string;
|
|
100
|
+
owner: string;
|
|
101
|
+
}
|
|
102
|
+
export interface DeployGuestosToAllSubnetNodesPayload {
|
|
103
|
+
subnet_id: Principal;
|
|
104
|
+
replica_version_id: string;
|
|
105
|
+
}
|
|
106
|
+
export interface DeployGuestosToAllUnassignedNodesPayload {
|
|
107
|
+
elected_replica_version: string;
|
|
108
|
+
}
|
|
109
|
+
export interface DeployGuestosToSomeApiBoundaryNodes {
|
|
110
|
+
version: string;
|
|
111
|
+
node_ids: Array<Principal>;
|
|
112
|
+
}
|
|
113
|
+
export interface DeployHostosToSomeNodes {
|
|
114
|
+
hostos_version_id: [] | [string];
|
|
115
|
+
node_ids: Array<Principal>;
|
|
116
|
+
}
|
|
117
|
+
export interface EcdsaConfig {
|
|
118
|
+
quadruples_to_create_in_advance: number;
|
|
119
|
+
max_queue_size: [] | [number];
|
|
120
|
+
key_ids: Array<EcdsaKeyId>;
|
|
121
|
+
signature_request_timeout_ns: [] | [bigint];
|
|
122
|
+
idkg_key_rotation_period_ms: [] | [bigint];
|
|
123
|
+
}
|
|
124
|
+
export type EcdsaCurve = { secp256k1: null };
|
|
125
|
+
export interface EcdsaInitialConfig {
|
|
126
|
+
quadruples_to_create_in_advance: number;
|
|
127
|
+
max_queue_size: [] | [number];
|
|
128
|
+
keys: Array<EcdsaKeyRequest>;
|
|
129
|
+
signature_request_timeout_ns: [] | [bigint];
|
|
130
|
+
idkg_key_rotation_period_ms: [] | [bigint];
|
|
131
|
+
}
|
|
132
|
+
export interface EcdsaKeyId {
|
|
133
|
+
name: string;
|
|
134
|
+
curve: EcdsaCurve;
|
|
135
|
+
}
|
|
136
|
+
export interface EcdsaKeyRequest {
|
|
137
|
+
key_id: EcdsaKeyId;
|
|
138
|
+
subnet_id: [] | [Principal];
|
|
139
|
+
}
|
|
140
|
+
export interface FirewallRule {
|
|
141
|
+
ipv4_prefixes: Array<string>;
|
|
142
|
+
direction: [] | [number];
|
|
143
|
+
action: number;
|
|
144
|
+
user: [] | [string];
|
|
145
|
+
comment: string;
|
|
146
|
+
ipv6_prefixes: Array<string>;
|
|
147
|
+
ports: Uint32Array | number[];
|
|
148
|
+
}
|
|
149
|
+
export type FirewallRulesScope =
|
|
150
|
+
| { Node: Principal }
|
|
151
|
+
| { ReplicaNodes: null }
|
|
152
|
+
| { ApiBoundaryNodes: null }
|
|
153
|
+
| { Subnet: Principal }
|
|
154
|
+
| { Global: null };
|
|
155
|
+
export type GetApiBoundaryNodeIdsRequest = {};
|
|
156
|
+
export type GetApiBoundaryNodeIdsResponse =
|
|
157
|
+
| {
|
|
158
|
+
Ok: Array<ApiBoundaryNodeIdRecord>;
|
|
159
|
+
}
|
|
160
|
+
| { Err: string };
|
|
161
|
+
export type GetNodeOperatorsAndDcsOfNodeProviderResponse =
|
|
162
|
+
| {
|
|
163
|
+
Ok: Array<[DataCenterRecord, NodeOperatorRecord]>;
|
|
164
|
+
}
|
|
165
|
+
| { Err: string };
|
|
166
|
+
export type GetNodeProvidersMonthlyXdrRewardsResponse =
|
|
167
|
+
| {
|
|
168
|
+
Ok: NodeProvidersMonthlyXdrRewards;
|
|
169
|
+
}
|
|
170
|
+
| { Err: string };
|
|
171
|
+
export interface GetSubnetForCanisterRequest {
|
|
172
|
+
principal: [] | [Principal];
|
|
173
|
+
}
|
|
174
|
+
export type GetSubnetForCanisterResponse =
|
|
175
|
+
| {
|
|
176
|
+
Ok: { subnet_id: [] | [Principal] };
|
|
177
|
+
}
|
|
178
|
+
| { Err: string };
|
|
179
|
+
export interface Gps {
|
|
180
|
+
latitude: number;
|
|
181
|
+
longitude: number;
|
|
182
|
+
}
|
|
183
|
+
export interface IPv4Config {
|
|
184
|
+
prefix_length: number;
|
|
185
|
+
gateway_ip_addr: string;
|
|
186
|
+
ip_addr: string;
|
|
187
|
+
}
|
|
188
|
+
export interface InitialChainKeyConfig {
|
|
189
|
+
signature_request_timeout_ns: [] | [bigint];
|
|
190
|
+
key_configs: Array<KeyConfigRequest>;
|
|
191
|
+
idkg_key_rotation_period_ms: [] | [bigint];
|
|
192
|
+
}
|
|
193
|
+
export interface KeyConfig {
|
|
194
|
+
max_queue_size: [] | [number];
|
|
195
|
+
key_id: [] | [MasterPublicKeyId];
|
|
196
|
+
pre_signatures_to_create_in_advance: [] | [number];
|
|
197
|
+
}
|
|
198
|
+
export interface KeyConfigRequest {
|
|
199
|
+
subnet_id: [] | [Principal];
|
|
200
|
+
key_config: [] | [KeyConfig];
|
|
201
|
+
}
|
|
202
|
+
export type MasterPublicKeyId =
|
|
203
|
+
| { Schnorr: SchnorrKeyId }
|
|
204
|
+
| { VetKd: VetKdKeyId }
|
|
205
|
+
| { Ecdsa: EcdsaKeyId };
|
|
206
|
+
export interface NodeOperatorPrincipals {
|
|
207
|
+
principals: Array<Principal>;
|
|
208
|
+
}
|
|
209
|
+
export interface NodeOperatorRecord {
|
|
210
|
+
ipv6: [] | [string];
|
|
211
|
+
node_operator_principal_id: Uint8Array | number[];
|
|
212
|
+
node_allowance: bigint;
|
|
213
|
+
rewardable_nodes: Array<[string, number]>;
|
|
214
|
+
node_provider_principal_id: Uint8Array | number[];
|
|
215
|
+
dc_id: string;
|
|
216
|
+
}
|
|
217
|
+
export interface NodeProvidersMonthlyXdrRewards {
|
|
218
|
+
registry_version: [] | [bigint];
|
|
219
|
+
rewards: Array<[string, bigint]>;
|
|
220
|
+
}
|
|
221
|
+
export interface NodeRewardRate {
|
|
222
|
+
xdr_permyriad_per_node_per_month: bigint;
|
|
223
|
+
reward_coefficient_percent: [] | [number];
|
|
224
|
+
}
|
|
225
|
+
export interface NodeRewardRates {
|
|
226
|
+
rates: Array<[string, NodeRewardRate]>;
|
|
227
|
+
}
|
|
228
|
+
export interface PrepareCanisterMigrationPayload {
|
|
229
|
+
canister_id_ranges: Array<CanisterIdRange>;
|
|
230
|
+
source_subnet: Principal;
|
|
231
|
+
destination_subnet: Principal;
|
|
232
|
+
}
|
|
233
|
+
export interface RecoverSubnetPayload {
|
|
234
|
+
height: bigint;
|
|
235
|
+
replacement_nodes: [] | [Array<Principal>];
|
|
236
|
+
subnet_id: Principal;
|
|
237
|
+
registry_store_uri: [] | [[string, string, bigint]];
|
|
238
|
+
state_hash: Uint8Array | number[];
|
|
239
|
+
chain_key_config: [] | [InitialChainKeyConfig];
|
|
240
|
+
time_ns: bigint;
|
|
241
|
+
}
|
|
242
|
+
export interface RemoveApiBoundaryNodesPayload {
|
|
243
|
+
node_ids: Array<Principal>;
|
|
244
|
+
}
|
|
245
|
+
export interface RemoveFirewallRulesPayload {
|
|
246
|
+
expected_hash: string;
|
|
247
|
+
scope: FirewallRulesScope;
|
|
248
|
+
positions: Int32Array | number[];
|
|
249
|
+
}
|
|
250
|
+
export interface RemoveNodeDirectlyPayload {
|
|
251
|
+
node_id: Principal;
|
|
252
|
+
}
|
|
253
|
+
export interface RemoveNodeOperatorsPayload {
|
|
254
|
+
node_operator_principals_to_remove: [] | [NodeOperatorPrincipals];
|
|
255
|
+
node_operators_to_remove: Array<Uint8Array | number[]>;
|
|
256
|
+
}
|
|
257
|
+
export interface RemoveNodesFromSubnetPayload {
|
|
258
|
+
node_ids: Array<Principal>;
|
|
259
|
+
}
|
|
260
|
+
export interface RemoveNodesPayload {
|
|
261
|
+
node_ids: Array<Principal>;
|
|
262
|
+
}
|
|
263
|
+
export interface RerouteCanisterRangesPayload {
|
|
264
|
+
source_subnet: Principal;
|
|
265
|
+
reassigned_canister_ranges: Array<CanisterIdRange>;
|
|
266
|
+
destination_subnet: Principal;
|
|
267
|
+
}
|
|
268
|
+
export interface ReviseElectedGuestosVersionsPayload {
|
|
269
|
+
release_package_urls: Array<string>;
|
|
270
|
+
replica_versions_to_unelect: Array<string>;
|
|
271
|
+
replica_version_to_elect: [] | [string];
|
|
272
|
+
guest_launch_measurement_sha256_hex: [] | [string];
|
|
273
|
+
release_package_sha256_hex: [] | [string];
|
|
274
|
+
}
|
|
275
|
+
export interface ReviseElectedHostosVersionsPayload {
|
|
276
|
+
release_package_urls: Array<string>;
|
|
277
|
+
hostos_version_to_elect: [] | [string];
|
|
278
|
+
hostos_versions_to_unelect: Array<string>;
|
|
279
|
+
release_package_sha256_hex: [] | [string];
|
|
280
|
+
}
|
|
281
|
+
export type SchnorrAlgorithm = { ed25519: null } | { bip340secp256k1: null };
|
|
282
|
+
export interface SchnorrKeyId {
|
|
283
|
+
algorithm: SchnorrAlgorithm;
|
|
284
|
+
name: string;
|
|
285
|
+
}
|
|
286
|
+
export interface SetFirewallConfigPayload {
|
|
287
|
+
ipv4_prefixes: Array<string>;
|
|
288
|
+
firewall_config: string;
|
|
289
|
+
ipv6_prefixes: Array<string>;
|
|
290
|
+
}
|
|
291
|
+
export interface SubnetFeatures {
|
|
292
|
+
canister_sandboxing: boolean;
|
|
293
|
+
http_requests: boolean;
|
|
294
|
+
sev_enabled: [] | [boolean];
|
|
295
|
+
}
|
|
296
|
+
export type SubnetType =
|
|
297
|
+
| { application: null }
|
|
298
|
+
| { verified_application: null }
|
|
299
|
+
| { system: null };
|
|
300
|
+
export interface UpdateApiBoundaryNodesVersionPayload {
|
|
301
|
+
version: string;
|
|
302
|
+
node_ids: Array<Principal>;
|
|
303
|
+
}
|
|
304
|
+
export interface UpdateElectedHostosVersionsPayload {
|
|
305
|
+
release_package_urls: Array<string>;
|
|
306
|
+
hostos_version_to_elect: [] | [string];
|
|
307
|
+
hostos_versions_to_unelect: Array<string>;
|
|
308
|
+
release_package_sha256_hex: [] | [string];
|
|
309
|
+
}
|
|
310
|
+
export interface UpdateFirewallRulesPayload {
|
|
311
|
+
expected_hash: string;
|
|
312
|
+
scope: FirewallRulesScope;
|
|
313
|
+
positions: Int32Array | number[];
|
|
314
|
+
rules: Array<FirewallRule>;
|
|
315
|
+
}
|
|
316
|
+
export interface UpdateNodeDirectlyPayload {
|
|
317
|
+
idkg_dealing_encryption_pk: [] | [Uint8Array | number[]];
|
|
318
|
+
}
|
|
319
|
+
export interface UpdateNodeDomainDirectlyPayload {
|
|
320
|
+
node_id: Principal;
|
|
321
|
+
domain: [] | [string];
|
|
322
|
+
}
|
|
323
|
+
export type UpdateNodeDomainDirectlyResponse = { Ok: null } | { Err: string };
|
|
324
|
+
export interface UpdateNodeIPv4ConfigDirectlyPayload {
|
|
325
|
+
ipv4_config: [] | [IPv4Config];
|
|
326
|
+
node_id: Principal;
|
|
327
|
+
}
|
|
328
|
+
export type UpdateNodeIpv4ConfigDirectlyResponse =
|
|
329
|
+
| { Ok: null }
|
|
330
|
+
| { Err: string };
|
|
331
|
+
export interface UpdateNodeOperatorConfigDirectlyPayload {
|
|
332
|
+
node_operator_id: [] | [Principal];
|
|
333
|
+
node_provider_id: [] | [Principal];
|
|
334
|
+
}
|
|
335
|
+
export interface UpdateNodeOperatorConfigPayload {
|
|
336
|
+
node_operator_id: [] | [Principal];
|
|
337
|
+
set_ipv6_to_none: [] | [boolean];
|
|
338
|
+
ipv6: [] | [string];
|
|
339
|
+
node_provider_id: [] | [Principal];
|
|
340
|
+
node_allowance: [] | [bigint];
|
|
341
|
+
rewardable_nodes: Array<[string, number]>;
|
|
342
|
+
dc_id: [] | [string];
|
|
343
|
+
}
|
|
344
|
+
export interface UpdateNodeRewardsTableProposalPayload {
|
|
345
|
+
new_entries: Array<[string, NodeRewardRates]>;
|
|
346
|
+
}
|
|
347
|
+
export interface UpdateNodesHostosVersionPayload {
|
|
348
|
+
hostos_version_id: [] | [string];
|
|
349
|
+
node_ids: Array<Principal>;
|
|
350
|
+
}
|
|
351
|
+
export interface UpdateSshReadOnlyAccessForAllUnassignedNodesPayload {
|
|
352
|
+
ssh_readonly_keys: Array<string>;
|
|
353
|
+
}
|
|
354
|
+
export interface UpdateSubnetPayload {
|
|
355
|
+
unit_delay_millis: [] | [bigint];
|
|
356
|
+
max_duplicity: [] | [number];
|
|
357
|
+
features: [] | [SubnetFeatures];
|
|
358
|
+
set_gossip_config_to_default: boolean;
|
|
359
|
+
halt_at_cup_height: [] | [boolean];
|
|
360
|
+
pfn_evaluation_period_ms: [] | [number];
|
|
361
|
+
subnet_id: Principal;
|
|
362
|
+
max_ingress_bytes_per_message: [] | [bigint];
|
|
363
|
+
dkg_dealings_per_block: [] | [bigint];
|
|
364
|
+
max_block_payload_size: [] | [bigint];
|
|
365
|
+
start_as_nns: [] | [boolean];
|
|
366
|
+
is_halted: [] | [boolean];
|
|
367
|
+
chain_key_signing_enable: [] | [Array<MasterPublicKeyId>];
|
|
368
|
+
max_ingress_messages_per_block: [] | [bigint];
|
|
369
|
+
max_number_of_canisters: [] | [bigint];
|
|
370
|
+
retransmission_request_ms: [] | [number];
|
|
371
|
+
dkg_interval_length: [] | [bigint];
|
|
372
|
+
registry_poll_period_ms: [] | [number];
|
|
373
|
+
max_chunk_wait_ms: [] | [number];
|
|
374
|
+
receive_check_cache_size: [] | [number];
|
|
375
|
+
ssh_backup_access: [] | [Array<string>];
|
|
376
|
+
max_chunk_size: [] | [number];
|
|
377
|
+
initial_notary_delay_millis: [] | [bigint];
|
|
378
|
+
chain_key_config: [] | [ChainKeyConfig];
|
|
379
|
+
max_artifact_streams_per_peer: [] | [number];
|
|
380
|
+
subnet_type: [] | [SubnetType];
|
|
381
|
+
ssh_readonly_access: [] | [Array<string>];
|
|
382
|
+
chain_key_signing_disable: [] | [Array<MasterPublicKeyId>];
|
|
383
|
+
}
|
|
384
|
+
export interface UpdateUnassignedNodesConfigPayload {
|
|
385
|
+
replica_version: [] | [string];
|
|
386
|
+
ssh_readonly_access: [] | [Array<string>];
|
|
387
|
+
}
|
|
388
|
+
export type VetKdCurve = { bls12_381_g2: null };
|
|
389
|
+
export interface VetKdKeyId {
|
|
390
|
+
name: string;
|
|
391
|
+
curve: VetKdCurve;
|
|
392
|
+
}
|
|
393
|
+
export interface _SERVICE {
|
|
394
|
+
add_api_boundary_nodes: ActorMethod<
|
|
395
|
+
[AddApiBoundaryNodesPayload],
|
|
396
|
+
undefined
|
|
397
|
+
>;
|
|
398
|
+
add_firewall_rules: ActorMethod<[AddFirewallRulesPayload], undefined>;
|
|
399
|
+
add_node: ActorMethod<[AddNodePayload], Principal>;
|
|
400
|
+
add_node_operator: ActorMethod<[AddNodeOperatorPayload], undefined>;
|
|
401
|
+
add_nodes_to_subnet: ActorMethod<[AddNodesToSubnetPayload], undefined>;
|
|
402
|
+
add_or_remove_data_centers: ActorMethod<
|
|
403
|
+
[AddOrRemoveDataCentersProposalPayload],
|
|
404
|
+
undefined
|
|
405
|
+
>;
|
|
406
|
+
change_subnet_membership: ActorMethod<
|
|
407
|
+
[ChangeSubnetMembershipPayload],
|
|
408
|
+
undefined
|
|
409
|
+
>;
|
|
410
|
+
clear_provisional_whitelist: ActorMethod<[], undefined>;
|
|
411
|
+
complete_canister_migration: ActorMethod<
|
|
412
|
+
[CompleteCanisterMigrationPayload],
|
|
413
|
+
undefined
|
|
414
|
+
>;
|
|
415
|
+
create_subnet: ActorMethod<[CreateSubnetPayload], undefined>;
|
|
416
|
+
deploy_guestos_to_all_subnet_nodes: ActorMethod<
|
|
417
|
+
[DeployGuestosToAllSubnetNodesPayload],
|
|
418
|
+
undefined
|
|
419
|
+
>;
|
|
420
|
+
deploy_guestos_to_all_unassigned_nodes: ActorMethod<
|
|
421
|
+
[DeployGuestosToAllUnassignedNodesPayload],
|
|
422
|
+
undefined
|
|
423
|
+
>;
|
|
424
|
+
deploy_guestos_to_some_api_boundary_nodes: ActorMethod<
|
|
425
|
+
[DeployGuestosToSomeApiBoundaryNodes],
|
|
426
|
+
undefined
|
|
427
|
+
>;
|
|
428
|
+
deploy_hostos_to_some_nodes: ActorMethod<
|
|
429
|
+
[DeployHostosToSomeNodes],
|
|
430
|
+
undefined
|
|
431
|
+
>;
|
|
432
|
+
get_api_boundary_node_ids: ActorMethod<
|
|
433
|
+
[GetApiBoundaryNodeIdsRequest],
|
|
434
|
+
GetApiBoundaryNodeIdsResponse
|
|
435
|
+
>;
|
|
436
|
+
get_build_metadata: ActorMethod<[], string>;
|
|
437
|
+
get_node_operators_and_dcs_of_node_provider: ActorMethod<
|
|
438
|
+
[Principal],
|
|
439
|
+
GetNodeOperatorsAndDcsOfNodeProviderResponse
|
|
440
|
+
>;
|
|
441
|
+
get_node_providers_monthly_xdr_rewards: ActorMethod<
|
|
442
|
+
[],
|
|
443
|
+
GetNodeProvidersMonthlyXdrRewardsResponse
|
|
444
|
+
>;
|
|
445
|
+
get_subnet_for_canister: ActorMethod<
|
|
446
|
+
[GetSubnetForCanisterRequest],
|
|
447
|
+
GetSubnetForCanisterResponse
|
|
448
|
+
>;
|
|
449
|
+
prepare_canister_migration: ActorMethod<
|
|
450
|
+
[PrepareCanisterMigrationPayload],
|
|
451
|
+
undefined
|
|
452
|
+
>;
|
|
453
|
+
recover_subnet: ActorMethod<[RecoverSubnetPayload], undefined>;
|
|
454
|
+
remove_api_boundary_nodes: ActorMethod<
|
|
455
|
+
[RemoveApiBoundaryNodesPayload],
|
|
456
|
+
undefined
|
|
457
|
+
>;
|
|
458
|
+
remove_firewall_rules: ActorMethod<[RemoveFirewallRulesPayload], undefined>;
|
|
459
|
+
remove_node_directly: ActorMethod<[RemoveNodeDirectlyPayload], undefined>;
|
|
460
|
+
remove_node_operators: ActorMethod<[RemoveNodeOperatorsPayload], undefined>;
|
|
461
|
+
remove_nodes: ActorMethod<[RemoveNodesPayload], undefined>;
|
|
462
|
+
remove_nodes_from_subnet: ActorMethod<[RemoveNodesPayload], undefined>;
|
|
463
|
+
reroute_canister_ranges: ActorMethod<
|
|
464
|
+
[RerouteCanisterRangesPayload],
|
|
465
|
+
undefined
|
|
466
|
+
>;
|
|
467
|
+
revise_elected_guestos_versions: ActorMethod<
|
|
468
|
+
[ReviseElectedGuestosVersionsPayload],
|
|
469
|
+
undefined
|
|
470
|
+
>;
|
|
471
|
+
revise_elected_hostos_versions: ActorMethod<
|
|
472
|
+
[ReviseElectedHostosVersionsPayload],
|
|
473
|
+
undefined
|
|
474
|
+
>;
|
|
475
|
+
revise_elected_replica_versions: ActorMethod<
|
|
476
|
+
[ReviseElectedGuestosVersionsPayload],
|
|
477
|
+
undefined
|
|
478
|
+
>;
|
|
479
|
+
set_firewall_config: ActorMethod<[SetFirewallConfigPayload], undefined>;
|
|
480
|
+
update_api_boundary_nodes_version: ActorMethod<
|
|
481
|
+
[UpdateApiBoundaryNodesVersionPayload],
|
|
482
|
+
undefined
|
|
483
|
+
>;
|
|
484
|
+
update_elected_hostos_versions: ActorMethod<
|
|
485
|
+
[UpdateElectedHostosVersionsPayload],
|
|
486
|
+
undefined
|
|
487
|
+
>;
|
|
488
|
+
update_firewall_rules: ActorMethod<[UpdateFirewallRulesPayload], undefined>;
|
|
489
|
+
update_node_directly: ActorMethod<[UpdateNodeDirectlyPayload], undefined>;
|
|
490
|
+
update_node_domain_directly: ActorMethod<
|
|
491
|
+
[UpdateNodeDomainDirectlyPayload],
|
|
492
|
+
UpdateNodeDomainDirectlyResponse
|
|
493
|
+
>;
|
|
494
|
+
update_node_ipv4_config_directly: ActorMethod<
|
|
495
|
+
[UpdateNodeIPv4ConfigDirectlyPayload],
|
|
496
|
+
UpdateNodeIpv4ConfigDirectlyResponse
|
|
497
|
+
>;
|
|
498
|
+
update_node_operator_config: ActorMethod<
|
|
499
|
+
[UpdateNodeOperatorConfigPayload],
|
|
500
|
+
undefined
|
|
501
|
+
>;
|
|
502
|
+
update_node_operator_config_directly: ActorMethod<
|
|
503
|
+
[UpdateNodeOperatorConfigDirectlyPayload],
|
|
504
|
+
undefined
|
|
505
|
+
>;
|
|
506
|
+
update_node_rewards_table: ActorMethod<
|
|
507
|
+
[UpdateNodeRewardsTableProposalPayload],
|
|
508
|
+
undefined
|
|
509
|
+
>;
|
|
510
|
+
update_nodes_hostos_version: ActorMethod<
|
|
511
|
+
[UpdateNodesHostosVersionPayload],
|
|
512
|
+
undefined
|
|
513
|
+
>;
|
|
514
|
+
update_ssh_readonly_access_for_all_unassigned_nodes: ActorMethod<
|
|
515
|
+
[UpdateSshReadOnlyAccessForAllUnassignedNodesPayload],
|
|
516
|
+
undefined
|
|
517
|
+
>;
|
|
518
|
+
update_subnet: ActorMethod<[UpdateSubnetPayload], undefined>;
|
|
519
|
+
update_unassigned_nodes_config: ActorMethod<
|
|
520
|
+
[UpdateUnassignedNodesConfigPayload],
|
|
521
|
+
undefined
|
|
522
|
+
>;
|
|
523
|
+
}
|
|
524
|
+
export type idlFactory = IDL.InterfaceFactory;
|
|
525
|
+
export type init = (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
526
|
+
export const AddApiBoundaryNodesPayload = IDL.Record({
|
|
527
|
+
version: IDL.Text,
|
|
528
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
529
|
+
});
|
|
530
|
+
export const FirewallRulesScope = IDL.Variant({
|
|
531
|
+
Node: IDL.Principal,
|
|
532
|
+
ReplicaNodes: IDL.Null,
|
|
533
|
+
ApiBoundaryNodes: IDL.Null,
|
|
534
|
+
Subnet: IDL.Principal,
|
|
535
|
+
Global: IDL.Null
|
|
536
|
+
});
|
|
537
|
+
export const FirewallRule = IDL.Record({
|
|
538
|
+
ipv4_prefixes: IDL.Vec(IDL.Text),
|
|
539
|
+
direction: IDL.Opt(IDL.Int32),
|
|
540
|
+
action: IDL.Int32,
|
|
541
|
+
user: IDL.Opt(IDL.Text),
|
|
542
|
+
comment: IDL.Text,
|
|
543
|
+
ipv6_prefixes: IDL.Vec(IDL.Text),
|
|
544
|
+
ports: IDL.Vec(IDL.Nat32)
|
|
545
|
+
});
|
|
546
|
+
export const AddFirewallRulesPayload = IDL.Record({
|
|
547
|
+
expected_hash: IDL.Text,
|
|
548
|
+
scope: FirewallRulesScope,
|
|
549
|
+
positions: IDL.Vec(IDL.Int32),
|
|
550
|
+
rules: IDL.Vec(FirewallRule)
|
|
551
|
+
});
|
|
552
|
+
export const IPv4Config = IDL.Record({
|
|
553
|
+
prefix_length: IDL.Nat32,
|
|
554
|
+
gateway_ip_addr: IDL.Text,
|
|
555
|
+
ip_addr: IDL.Text
|
|
556
|
+
});
|
|
557
|
+
export const AddNodePayload = IDL.Record({
|
|
558
|
+
prometheus_metrics_endpoint: IDL.Text,
|
|
559
|
+
http_endpoint: IDL.Text,
|
|
560
|
+
idkg_dealing_encryption_pk: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
561
|
+
domain: IDL.Opt(IDL.Text),
|
|
562
|
+
public_ipv4_config: IDL.Opt(IPv4Config),
|
|
563
|
+
xnet_endpoint: IDL.Text,
|
|
564
|
+
chip_id: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
565
|
+
committee_signing_pk: IDL.Vec(IDL.Nat8),
|
|
566
|
+
node_reward_type: IDL.Opt(IDL.Text),
|
|
567
|
+
node_signing_pk: IDL.Vec(IDL.Nat8),
|
|
568
|
+
transport_tls_cert: IDL.Vec(IDL.Nat8),
|
|
569
|
+
ni_dkg_dealing_encryption_pk: IDL.Vec(IDL.Nat8),
|
|
570
|
+
p2p_flow_endpoints: IDL.Vec(IDL.Text)
|
|
571
|
+
});
|
|
572
|
+
export const AddNodeOperatorPayload = IDL.Record({
|
|
573
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
574
|
+
node_operator_principal_id: IDL.Opt(IDL.Principal),
|
|
575
|
+
node_allowance: IDL.Nat64,
|
|
576
|
+
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
577
|
+
node_provider_principal_id: IDL.Opt(IDL.Principal),
|
|
578
|
+
dc_id: IDL.Text
|
|
579
|
+
});
|
|
580
|
+
export const AddNodesToSubnetPayload = IDL.Record({
|
|
581
|
+
subnet_id: IDL.Principal,
|
|
582
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
583
|
+
});
|
|
584
|
+
export const Gps = IDL.Record({
|
|
585
|
+
latitude: IDL.Float32,
|
|
586
|
+
longitude: IDL.Float32
|
|
587
|
+
});
|
|
588
|
+
export const DataCenterRecord = IDL.Record({
|
|
589
|
+
id: IDL.Text,
|
|
590
|
+
gps: IDL.Opt(Gps),
|
|
591
|
+
region: IDL.Text,
|
|
592
|
+
owner: IDL.Text
|
|
593
|
+
});
|
|
594
|
+
export const AddOrRemoveDataCentersProposalPayload = IDL.Record({
|
|
595
|
+
data_centers_to_add: IDL.Vec(DataCenterRecord),
|
|
596
|
+
data_centers_to_remove: IDL.Vec(IDL.Text)
|
|
597
|
+
});
|
|
598
|
+
export const ChangeSubnetMembershipPayload = IDL.Record({
|
|
599
|
+
node_ids_add: IDL.Vec(IDL.Principal),
|
|
600
|
+
subnet_id: IDL.Principal,
|
|
601
|
+
node_ids_remove: IDL.Vec(IDL.Principal)
|
|
602
|
+
});
|
|
603
|
+
export const CanisterIdRange = IDL.Record({
|
|
604
|
+
end: IDL.Principal,
|
|
605
|
+
start: IDL.Principal
|
|
606
|
+
});
|
|
607
|
+
export const CompleteCanisterMigrationPayload = IDL.Record({
|
|
608
|
+
canister_id_ranges: IDL.Vec(CanisterIdRange),
|
|
609
|
+
migration_trace: IDL.Vec(IDL.Principal)
|
|
610
|
+
});
|
|
611
|
+
export const SubnetFeatures = IDL.Record({
|
|
612
|
+
canister_sandboxing: IDL.Bool,
|
|
613
|
+
http_requests: IDL.Bool,
|
|
614
|
+
sev_enabled: IDL.Opt(IDL.Bool)
|
|
615
|
+
});
|
|
616
|
+
export const SchnorrAlgorithm = IDL.Variant({
|
|
617
|
+
ed25519: IDL.Null,
|
|
618
|
+
bip340secp256k1: IDL.Null
|
|
619
|
+
});
|
|
620
|
+
export const SchnorrKeyId = IDL.Record({
|
|
621
|
+
algorithm: SchnorrAlgorithm,
|
|
622
|
+
name: IDL.Text
|
|
623
|
+
});
|
|
624
|
+
export const VetKdCurve = IDL.Variant({ bls12_381_g2: IDL.Null });
|
|
625
|
+
export const VetKdKeyId = IDL.Record({
|
|
626
|
+
name: IDL.Text,
|
|
627
|
+
curve: VetKdCurve
|
|
628
|
+
});
|
|
629
|
+
export const EcdsaCurve = IDL.Variant({ secp256k1: IDL.Null });
|
|
630
|
+
export const EcdsaKeyId = IDL.Record({
|
|
631
|
+
name: IDL.Text,
|
|
632
|
+
curve: EcdsaCurve
|
|
633
|
+
});
|
|
634
|
+
export const MasterPublicKeyId = IDL.Variant({
|
|
635
|
+
Schnorr: SchnorrKeyId,
|
|
636
|
+
VetKd: VetKdKeyId,
|
|
637
|
+
Ecdsa: EcdsaKeyId
|
|
638
|
+
});
|
|
639
|
+
export const KeyConfig = IDL.Record({
|
|
640
|
+
max_queue_size: IDL.Opt(IDL.Nat32),
|
|
641
|
+
key_id: IDL.Opt(MasterPublicKeyId),
|
|
642
|
+
pre_signatures_to_create_in_advance: IDL.Opt(IDL.Nat32)
|
|
643
|
+
});
|
|
644
|
+
export const KeyConfigRequest = IDL.Record({
|
|
645
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
646
|
+
key_config: IDL.Opt(KeyConfig)
|
|
647
|
+
});
|
|
648
|
+
export const InitialChainKeyConfig = IDL.Record({
|
|
649
|
+
signature_request_timeout_ns: IDL.Opt(IDL.Nat64),
|
|
650
|
+
key_configs: IDL.Vec(KeyConfigRequest),
|
|
651
|
+
idkg_key_rotation_period_ms: IDL.Opt(IDL.Nat64)
|
|
652
|
+
});
|
|
653
|
+
export const SubnetType = IDL.Variant({
|
|
654
|
+
application: IDL.Null,
|
|
655
|
+
verified_application: IDL.Null,
|
|
656
|
+
system: IDL.Null
|
|
657
|
+
});
|
|
658
|
+
export const CreateSubnetPayload = IDL.Record({
|
|
659
|
+
unit_delay_millis: IDL.Nat64,
|
|
660
|
+
features: SubnetFeatures,
|
|
661
|
+
gossip_registry_poll_period_ms: IDL.Nat32,
|
|
662
|
+
max_ingress_bytes_per_message: IDL.Nat64,
|
|
663
|
+
dkg_dealings_per_block: IDL.Nat64,
|
|
664
|
+
max_block_payload_size: IDL.Nat64,
|
|
665
|
+
start_as_nns: IDL.Bool,
|
|
666
|
+
is_halted: IDL.Bool,
|
|
667
|
+
gossip_pfn_evaluation_period_ms: IDL.Nat32,
|
|
668
|
+
max_ingress_messages_per_block: IDL.Nat64,
|
|
669
|
+
max_number_of_canisters: IDL.Nat64,
|
|
670
|
+
gossip_max_artifact_streams_per_peer: IDL.Nat32,
|
|
671
|
+
replica_version_id: IDL.Text,
|
|
672
|
+
gossip_max_duplicity: IDL.Nat32,
|
|
673
|
+
gossip_max_chunk_wait_ms: IDL.Nat32,
|
|
674
|
+
dkg_interval_length: IDL.Nat64,
|
|
675
|
+
subnet_id_override: IDL.Opt(IDL.Principal),
|
|
676
|
+
ssh_backup_access: IDL.Vec(IDL.Text),
|
|
677
|
+
ingress_bytes_per_block_soft_cap: IDL.Nat64,
|
|
678
|
+
initial_notary_delay_millis: IDL.Nat64,
|
|
679
|
+
chain_key_config: IDL.Opt(InitialChainKeyConfig),
|
|
680
|
+
gossip_max_chunk_size: IDL.Nat32,
|
|
681
|
+
subnet_type: SubnetType,
|
|
682
|
+
ssh_readonly_access: IDL.Vec(IDL.Text),
|
|
683
|
+
gossip_retransmission_request_ms: IDL.Nat32,
|
|
684
|
+
gossip_receive_check_cache_size: IDL.Nat32,
|
|
685
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
686
|
+
});
|
|
687
|
+
export const DeployGuestosToAllSubnetNodesPayload = IDL.Record({
|
|
688
|
+
subnet_id: IDL.Principal,
|
|
689
|
+
replica_version_id: IDL.Text
|
|
690
|
+
});
|
|
691
|
+
export const DeployGuestosToAllUnassignedNodesPayload = IDL.Record({
|
|
692
|
+
elected_replica_version: IDL.Text
|
|
693
|
+
});
|
|
694
|
+
export const DeployGuestosToSomeApiBoundaryNodes = IDL.Record({
|
|
695
|
+
version: IDL.Text,
|
|
696
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
697
|
+
});
|
|
698
|
+
export const DeployHostosToSomeNodes = IDL.Record({
|
|
699
|
+
hostos_version_id: IDL.Opt(IDL.Text),
|
|
700
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
701
|
+
});
|
|
702
|
+
export const GetApiBoundaryNodeIdsRequest = IDL.Record({});
|
|
703
|
+
export const ApiBoundaryNodeIdRecord = IDL.Record({
|
|
704
|
+
id: IDL.Opt(IDL.Principal)
|
|
705
|
+
});
|
|
706
|
+
export const GetApiBoundaryNodeIdsResponse = IDL.Variant({
|
|
707
|
+
Ok: IDL.Vec(ApiBoundaryNodeIdRecord),
|
|
708
|
+
Err: IDL.Text
|
|
709
|
+
});
|
|
710
|
+
export const NodeOperatorRecord = IDL.Record({
|
|
711
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
712
|
+
node_operator_principal_id: IDL.Vec(IDL.Nat8),
|
|
713
|
+
node_allowance: IDL.Nat64,
|
|
714
|
+
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
715
|
+
node_provider_principal_id: IDL.Vec(IDL.Nat8),
|
|
716
|
+
dc_id: IDL.Text
|
|
717
|
+
});
|
|
718
|
+
export const GetNodeOperatorsAndDcsOfNodeProviderResponse = IDL.Variant({
|
|
719
|
+
Ok: IDL.Vec(IDL.Tuple(DataCenterRecord, NodeOperatorRecord)),
|
|
720
|
+
Err: IDL.Text
|
|
721
|
+
});
|
|
722
|
+
export const NodeProvidersMonthlyXdrRewards = IDL.Record({
|
|
723
|
+
registry_version: IDL.Opt(IDL.Nat64),
|
|
724
|
+
rewards: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat64))
|
|
725
|
+
});
|
|
726
|
+
export const GetNodeProvidersMonthlyXdrRewardsResponse = IDL.Variant({
|
|
727
|
+
Ok: NodeProvidersMonthlyXdrRewards,
|
|
728
|
+
Err: IDL.Text
|
|
729
|
+
});
|
|
730
|
+
export const GetSubnetForCanisterRequest = IDL.Record({
|
|
731
|
+
principal: IDL.Opt(IDL.Principal)
|
|
732
|
+
});
|
|
733
|
+
export const GetSubnetForCanisterResponse = IDL.Variant({
|
|
734
|
+
Ok: IDL.Record({ subnet_id: IDL.Opt(IDL.Principal) }),
|
|
735
|
+
Err: IDL.Text
|
|
736
|
+
});
|
|
737
|
+
export const PrepareCanisterMigrationPayload = IDL.Record({
|
|
738
|
+
canister_id_ranges: IDL.Vec(CanisterIdRange),
|
|
739
|
+
source_subnet: IDL.Principal,
|
|
740
|
+
destination_subnet: IDL.Principal
|
|
741
|
+
});
|
|
742
|
+
export const RecoverSubnetPayload = IDL.Record({
|
|
743
|
+
height: IDL.Nat64,
|
|
744
|
+
replacement_nodes: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
745
|
+
subnet_id: IDL.Principal,
|
|
746
|
+
registry_store_uri: IDL.Opt(IDL.Tuple(IDL.Text, IDL.Text, IDL.Nat64)),
|
|
747
|
+
state_hash: IDL.Vec(IDL.Nat8),
|
|
748
|
+
chain_key_config: IDL.Opt(InitialChainKeyConfig),
|
|
749
|
+
time_ns: IDL.Nat64
|
|
750
|
+
});
|
|
751
|
+
export const RemoveApiBoundaryNodesPayload = IDL.Record({
|
|
752
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
753
|
+
});
|
|
754
|
+
export const RemoveFirewallRulesPayload = IDL.Record({
|
|
755
|
+
expected_hash: IDL.Text,
|
|
756
|
+
scope: FirewallRulesScope,
|
|
757
|
+
positions: IDL.Vec(IDL.Int32)
|
|
758
|
+
});
|
|
759
|
+
export const RemoveNodeDirectlyPayload = IDL.Record({
|
|
760
|
+
node_id: IDL.Principal
|
|
761
|
+
});
|
|
762
|
+
export const NodeOperatorPrincipals = IDL.Record({
|
|
763
|
+
principals: IDL.Vec(IDL.Principal)
|
|
764
|
+
});
|
|
765
|
+
export const RemoveNodeOperatorsPayload = IDL.Record({
|
|
766
|
+
node_operator_principals_to_remove: IDL.Opt(NodeOperatorPrincipals),
|
|
767
|
+
node_operators_to_remove: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
768
|
+
});
|
|
769
|
+
export const RemoveNodesPayload = IDL.Record({
|
|
770
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
771
|
+
});
|
|
772
|
+
export const RerouteCanisterRangesPayload = IDL.Record({
|
|
773
|
+
source_subnet: IDL.Principal,
|
|
774
|
+
reassigned_canister_ranges: IDL.Vec(CanisterIdRange),
|
|
775
|
+
destination_subnet: IDL.Principal
|
|
776
|
+
});
|
|
777
|
+
export const ReviseElectedGuestosVersionsPayload = IDL.Record({
|
|
778
|
+
release_package_urls: IDL.Vec(IDL.Text),
|
|
779
|
+
replica_versions_to_unelect: IDL.Vec(IDL.Text),
|
|
780
|
+
replica_version_to_elect: IDL.Opt(IDL.Text),
|
|
781
|
+
guest_launch_measurement_sha256_hex: IDL.Opt(IDL.Text),
|
|
782
|
+
release_package_sha256_hex: IDL.Opt(IDL.Text)
|
|
783
|
+
});
|
|
784
|
+
export const ReviseElectedHostosVersionsPayload = IDL.Record({
|
|
785
|
+
release_package_urls: IDL.Vec(IDL.Text),
|
|
786
|
+
hostos_version_to_elect: IDL.Opt(IDL.Text),
|
|
787
|
+
hostos_versions_to_unelect: IDL.Vec(IDL.Text),
|
|
788
|
+
release_package_sha256_hex: IDL.Opt(IDL.Text)
|
|
789
|
+
});
|
|
790
|
+
export const SetFirewallConfigPayload = IDL.Record({
|
|
791
|
+
ipv4_prefixes: IDL.Vec(IDL.Text),
|
|
792
|
+
firewall_config: IDL.Text,
|
|
793
|
+
ipv6_prefixes: IDL.Vec(IDL.Text)
|
|
794
|
+
});
|
|
795
|
+
export const UpdateApiBoundaryNodesVersionPayload = IDL.Record({
|
|
796
|
+
version: IDL.Text,
|
|
797
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
798
|
+
});
|
|
799
|
+
export const UpdateElectedHostosVersionsPayload = IDL.Record({
|
|
800
|
+
release_package_urls: IDL.Vec(IDL.Text),
|
|
801
|
+
hostos_version_to_elect: IDL.Opt(IDL.Text),
|
|
802
|
+
hostos_versions_to_unelect: IDL.Vec(IDL.Text),
|
|
803
|
+
release_package_sha256_hex: IDL.Opt(IDL.Text)
|
|
804
|
+
});
|
|
805
|
+
export const UpdateFirewallRulesPayload = IDL.Record({
|
|
806
|
+
expected_hash: IDL.Text,
|
|
807
|
+
scope: FirewallRulesScope,
|
|
808
|
+
positions: IDL.Vec(IDL.Int32),
|
|
809
|
+
rules: IDL.Vec(FirewallRule)
|
|
810
|
+
});
|
|
811
|
+
export const UpdateNodeDirectlyPayload = IDL.Record({
|
|
812
|
+
idkg_dealing_encryption_pk: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
813
|
+
});
|
|
814
|
+
export const UpdateNodeDomainDirectlyPayload = IDL.Record({
|
|
815
|
+
node_id: IDL.Principal,
|
|
816
|
+
domain: IDL.Opt(IDL.Text)
|
|
817
|
+
});
|
|
818
|
+
export const UpdateNodeDomainDirectlyResponse = IDL.Variant({
|
|
819
|
+
Ok: IDL.Null,
|
|
820
|
+
Err: IDL.Text
|
|
821
|
+
});
|
|
822
|
+
export const UpdateNodeIPv4ConfigDirectlyPayload = IDL.Record({
|
|
823
|
+
ipv4_config: IDL.Opt(IPv4Config),
|
|
824
|
+
node_id: IDL.Principal
|
|
825
|
+
});
|
|
826
|
+
export const UpdateNodeIpv4ConfigDirectlyResponse = IDL.Variant({
|
|
827
|
+
Ok: IDL.Null,
|
|
828
|
+
Err: IDL.Text
|
|
829
|
+
});
|
|
830
|
+
export const UpdateNodeOperatorConfigPayload = IDL.Record({
|
|
831
|
+
node_operator_id: IDL.Opt(IDL.Principal),
|
|
832
|
+
set_ipv6_to_none: IDL.Opt(IDL.Bool),
|
|
833
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
834
|
+
node_provider_id: IDL.Opt(IDL.Principal),
|
|
835
|
+
node_allowance: IDL.Opt(IDL.Nat64),
|
|
836
|
+
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
837
|
+
dc_id: IDL.Opt(IDL.Text)
|
|
838
|
+
});
|
|
839
|
+
export const UpdateNodeOperatorConfigDirectlyPayload = IDL.Record({
|
|
840
|
+
node_operator_id: IDL.Opt(IDL.Principal),
|
|
841
|
+
node_provider_id: IDL.Opt(IDL.Principal)
|
|
842
|
+
});
|
|
843
|
+
export const NodeRewardRate = IDL.Record({
|
|
844
|
+
xdr_permyriad_per_node_per_month: IDL.Nat64,
|
|
845
|
+
reward_coefficient_percent: IDL.Opt(IDL.Int32)
|
|
846
|
+
});
|
|
847
|
+
export const NodeRewardRates = IDL.Record({
|
|
848
|
+
rates: IDL.Vec(IDL.Tuple(IDL.Text, NodeRewardRate))
|
|
849
|
+
});
|
|
850
|
+
export const UpdateNodeRewardsTableProposalPayload = IDL.Record({
|
|
851
|
+
new_entries: IDL.Vec(IDL.Tuple(IDL.Text, NodeRewardRates))
|
|
852
|
+
});
|
|
853
|
+
export const UpdateNodesHostosVersionPayload = IDL.Record({
|
|
854
|
+
hostos_version_id: IDL.Opt(IDL.Text),
|
|
855
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
856
|
+
});
|
|
857
|
+
export const UpdateSshReadOnlyAccessForAllUnassignedNodesPayload = IDL.Record({
|
|
858
|
+
ssh_readonly_keys: IDL.Vec(IDL.Text)
|
|
859
|
+
});
|
|
860
|
+
export const ChainKeyConfig = IDL.Record({
|
|
861
|
+
signature_request_timeout_ns: IDL.Opt(IDL.Nat64),
|
|
862
|
+
key_configs: IDL.Vec(KeyConfig),
|
|
863
|
+
idkg_key_rotation_period_ms: IDL.Opt(IDL.Nat64)
|
|
864
|
+
});
|
|
865
|
+
export const UpdateSubnetPayload = IDL.Record({
|
|
866
|
+
unit_delay_millis: IDL.Opt(IDL.Nat64),
|
|
867
|
+
max_duplicity: IDL.Opt(IDL.Nat32),
|
|
868
|
+
features: IDL.Opt(SubnetFeatures),
|
|
869
|
+
set_gossip_config_to_default: IDL.Bool,
|
|
870
|
+
halt_at_cup_height: IDL.Opt(IDL.Bool),
|
|
871
|
+
pfn_evaluation_period_ms: IDL.Opt(IDL.Nat32),
|
|
872
|
+
subnet_id: IDL.Principal,
|
|
873
|
+
max_ingress_bytes_per_message: IDL.Opt(IDL.Nat64),
|
|
874
|
+
dkg_dealings_per_block: IDL.Opt(IDL.Nat64),
|
|
875
|
+
max_block_payload_size: IDL.Opt(IDL.Nat64),
|
|
876
|
+
start_as_nns: IDL.Opt(IDL.Bool),
|
|
877
|
+
is_halted: IDL.Opt(IDL.Bool),
|
|
878
|
+
chain_key_signing_enable: IDL.Opt(IDL.Vec(MasterPublicKeyId)),
|
|
879
|
+
max_ingress_messages_per_block: IDL.Opt(IDL.Nat64),
|
|
880
|
+
max_number_of_canisters: IDL.Opt(IDL.Nat64),
|
|
881
|
+
retransmission_request_ms: IDL.Opt(IDL.Nat32),
|
|
882
|
+
dkg_interval_length: IDL.Opt(IDL.Nat64),
|
|
883
|
+
registry_poll_period_ms: IDL.Opt(IDL.Nat32),
|
|
884
|
+
max_chunk_wait_ms: IDL.Opt(IDL.Nat32),
|
|
885
|
+
receive_check_cache_size: IDL.Opt(IDL.Nat32),
|
|
886
|
+
ssh_backup_access: IDL.Opt(IDL.Vec(IDL.Text)),
|
|
887
|
+
max_chunk_size: IDL.Opt(IDL.Nat32),
|
|
888
|
+
initial_notary_delay_millis: IDL.Opt(IDL.Nat64),
|
|
889
|
+
chain_key_config: IDL.Opt(ChainKeyConfig),
|
|
890
|
+
max_artifact_streams_per_peer: IDL.Opt(IDL.Nat32),
|
|
891
|
+
subnet_type: IDL.Opt(SubnetType),
|
|
892
|
+
ssh_readonly_access: IDL.Opt(IDL.Vec(IDL.Text)),
|
|
893
|
+
chain_key_signing_disable: IDL.Opt(IDL.Vec(MasterPublicKeyId))
|
|
894
|
+
});
|
|
895
|
+
export const UpdateUnassignedNodesConfigPayload = IDL.Record({
|
|
896
|
+
replica_version: IDL.Opt(IDL.Text),
|
|
897
|
+
ssh_readonly_access: IDL.Opt(IDL.Vec(IDL.Text))
|
|
898
|
+
});
|
|
899
|
+
export const idlFactory: idlFactory = ({ IDL }) => {
|
|
900
|
+
const AddApiBoundaryNodesPayload = IDL.Record({
|
|
901
|
+
version: IDL.Text,
|
|
902
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
903
|
+
});
|
|
904
|
+
const FirewallRulesScope = IDL.Variant({
|
|
905
|
+
Node: IDL.Principal,
|
|
906
|
+
ReplicaNodes: IDL.Null,
|
|
907
|
+
ApiBoundaryNodes: IDL.Null,
|
|
908
|
+
Subnet: IDL.Principal,
|
|
909
|
+
Global: IDL.Null
|
|
910
|
+
});
|
|
911
|
+
const FirewallRule = IDL.Record({
|
|
912
|
+
ipv4_prefixes: IDL.Vec(IDL.Text),
|
|
913
|
+
direction: IDL.Opt(IDL.Int32),
|
|
914
|
+
action: IDL.Int32,
|
|
915
|
+
user: IDL.Opt(IDL.Text),
|
|
916
|
+
comment: IDL.Text,
|
|
917
|
+
ipv6_prefixes: IDL.Vec(IDL.Text),
|
|
918
|
+
ports: IDL.Vec(IDL.Nat32)
|
|
919
|
+
});
|
|
920
|
+
const AddFirewallRulesPayload = IDL.Record({
|
|
921
|
+
expected_hash: IDL.Text,
|
|
922
|
+
scope: FirewallRulesScope,
|
|
923
|
+
positions: IDL.Vec(IDL.Int32),
|
|
924
|
+
rules: IDL.Vec(FirewallRule)
|
|
925
|
+
});
|
|
926
|
+
const IPv4Config = IDL.Record({
|
|
927
|
+
prefix_length: IDL.Nat32,
|
|
928
|
+
gateway_ip_addr: IDL.Text,
|
|
929
|
+
ip_addr: IDL.Text
|
|
930
|
+
});
|
|
931
|
+
const AddNodePayload = IDL.Record({
|
|
932
|
+
prometheus_metrics_endpoint: IDL.Text,
|
|
933
|
+
http_endpoint: IDL.Text,
|
|
934
|
+
idkg_dealing_encryption_pk: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
935
|
+
domain: IDL.Opt(IDL.Text),
|
|
936
|
+
public_ipv4_config: IDL.Opt(IPv4Config),
|
|
937
|
+
xnet_endpoint: IDL.Text,
|
|
938
|
+
chip_id: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
939
|
+
committee_signing_pk: IDL.Vec(IDL.Nat8),
|
|
940
|
+
node_reward_type: IDL.Opt(IDL.Text),
|
|
941
|
+
node_signing_pk: IDL.Vec(IDL.Nat8),
|
|
942
|
+
transport_tls_cert: IDL.Vec(IDL.Nat8),
|
|
943
|
+
ni_dkg_dealing_encryption_pk: IDL.Vec(IDL.Nat8),
|
|
944
|
+
p2p_flow_endpoints: IDL.Vec(IDL.Text)
|
|
945
|
+
});
|
|
946
|
+
const AddNodeOperatorPayload = IDL.Record({
|
|
947
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
948
|
+
node_operator_principal_id: IDL.Opt(IDL.Principal),
|
|
949
|
+
node_allowance: IDL.Nat64,
|
|
950
|
+
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
951
|
+
node_provider_principal_id: IDL.Opt(IDL.Principal),
|
|
952
|
+
dc_id: IDL.Text
|
|
953
|
+
});
|
|
954
|
+
const AddNodesToSubnetPayload = IDL.Record({
|
|
955
|
+
subnet_id: IDL.Principal,
|
|
956
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
957
|
+
});
|
|
958
|
+
const Gps = IDL.Record({
|
|
959
|
+
latitude: IDL.Float32,
|
|
960
|
+
longitude: IDL.Float32
|
|
961
|
+
});
|
|
962
|
+
const DataCenterRecord = IDL.Record({
|
|
963
|
+
id: IDL.Text,
|
|
964
|
+
gps: IDL.Opt(Gps),
|
|
965
|
+
region: IDL.Text,
|
|
966
|
+
owner: IDL.Text
|
|
967
|
+
});
|
|
968
|
+
const AddOrRemoveDataCentersProposalPayload = IDL.Record({
|
|
969
|
+
data_centers_to_add: IDL.Vec(DataCenterRecord),
|
|
970
|
+
data_centers_to_remove: IDL.Vec(IDL.Text)
|
|
971
|
+
});
|
|
972
|
+
const ChangeSubnetMembershipPayload = IDL.Record({
|
|
973
|
+
node_ids_add: IDL.Vec(IDL.Principal),
|
|
974
|
+
subnet_id: IDL.Principal,
|
|
975
|
+
node_ids_remove: IDL.Vec(IDL.Principal)
|
|
976
|
+
});
|
|
977
|
+
const CanisterIdRange = IDL.Record({
|
|
978
|
+
end: IDL.Principal,
|
|
979
|
+
start: IDL.Principal
|
|
980
|
+
});
|
|
981
|
+
const CompleteCanisterMigrationPayload = IDL.Record({
|
|
982
|
+
canister_id_ranges: IDL.Vec(CanisterIdRange),
|
|
983
|
+
migration_trace: IDL.Vec(IDL.Principal)
|
|
984
|
+
});
|
|
985
|
+
const SubnetFeatures = IDL.Record({
|
|
986
|
+
canister_sandboxing: IDL.Bool,
|
|
987
|
+
http_requests: IDL.Bool,
|
|
988
|
+
sev_enabled: IDL.Opt(IDL.Bool)
|
|
989
|
+
});
|
|
990
|
+
const SchnorrAlgorithm = IDL.Variant({
|
|
991
|
+
ed25519: IDL.Null,
|
|
992
|
+
bip340secp256k1: IDL.Null
|
|
993
|
+
});
|
|
994
|
+
const SchnorrKeyId = IDL.Record({
|
|
995
|
+
algorithm: SchnorrAlgorithm,
|
|
996
|
+
name: IDL.Text
|
|
997
|
+
});
|
|
998
|
+
const VetKdCurve = IDL.Variant({ bls12_381_g2: IDL.Null });
|
|
999
|
+
const VetKdKeyId = IDL.Record({ name: IDL.Text, curve: VetKdCurve });
|
|
1000
|
+
const EcdsaCurve = IDL.Variant({ secp256k1: IDL.Null });
|
|
1001
|
+
const EcdsaKeyId = IDL.Record({ name: IDL.Text, curve: EcdsaCurve });
|
|
1002
|
+
const MasterPublicKeyId = IDL.Variant({
|
|
1003
|
+
Schnorr: SchnorrKeyId,
|
|
1004
|
+
VetKd: VetKdKeyId,
|
|
1005
|
+
Ecdsa: EcdsaKeyId
|
|
1006
|
+
});
|
|
1007
|
+
const KeyConfig = IDL.Record({
|
|
1008
|
+
max_queue_size: IDL.Opt(IDL.Nat32),
|
|
1009
|
+
key_id: IDL.Opt(MasterPublicKeyId),
|
|
1010
|
+
pre_signatures_to_create_in_advance: IDL.Opt(IDL.Nat32)
|
|
1011
|
+
});
|
|
1012
|
+
const KeyConfigRequest = IDL.Record({
|
|
1013
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
1014
|
+
key_config: IDL.Opt(KeyConfig)
|
|
1015
|
+
});
|
|
1016
|
+
const InitialChainKeyConfig = IDL.Record({
|
|
1017
|
+
signature_request_timeout_ns: IDL.Opt(IDL.Nat64),
|
|
1018
|
+
key_configs: IDL.Vec(KeyConfigRequest),
|
|
1019
|
+
idkg_key_rotation_period_ms: IDL.Opt(IDL.Nat64)
|
|
1020
|
+
});
|
|
1021
|
+
const SubnetType = IDL.Variant({
|
|
1022
|
+
application: IDL.Null,
|
|
1023
|
+
verified_application: IDL.Null,
|
|
1024
|
+
system: IDL.Null
|
|
1025
|
+
});
|
|
1026
|
+
const CreateSubnetPayload = IDL.Record({
|
|
1027
|
+
unit_delay_millis: IDL.Nat64,
|
|
1028
|
+
features: SubnetFeatures,
|
|
1029
|
+
gossip_registry_poll_period_ms: IDL.Nat32,
|
|
1030
|
+
max_ingress_bytes_per_message: IDL.Nat64,
|
|
1031
|
+
dkg_dealings_per_block: IDL.Nat64,
|
|
1032
|
+
max_block_payload_size: IDL.Nat64,
|
|
1033
|
+
start_as_nns: IDL.Bool,
|
|
1034
|
+
is_halted: IDL.Bool,
|
|
1035
|
+
gossip_pfn_evaluation_period_ms: IDL.Nat32,
|
|
1036
|
+
max_ingress_messages_per_block: IDL.Nat64,
|
|
1037
|
+
max_number_of_canisters: IDL.Nat64,
|
|
1038
|
+
gossip_max_artifact_streams_per_peer: IDL.Nat32,
|
|
1039
|
+
replica_version_id: IDL.Text,
|
|
1040
|
+
gossip_max_duplicity: IDL.Nat32,
|
|
1041
|
+
gossip_max_chunk_wait_ms: IDL.Nat32,
|
|
1042
|
+
dkg_interval_length: IDL.Nat64,
|
|
1043
|
+
subnet_id_override: IDL.Opt(IDL.Principal),
|
|
1044
|
+
ssh_backup_access: IDL.Vec(IDL.Text),
|
|
1045
|
+
ingress_bytes_per_block_soft_cap: IDL.Nat64,
|
|
1046
|
+
initial_notary_delay_millis: IDL.Nat64,
|
|
1047
|
+
chain_key_config: IDL.Opt(InitialChainKeyConfig),
|
|
1048
|
+
gossip_max_chunk_size: IDL.Nat32,
|
|
1049
|
+
subnet_type: SubnetType,
|
|
1050
|
+
ssh_readonly_access: IDL.Vec(IDL.Text),
|
|
1051
|
+
gossip_retransmission_request_ms: IDL.Nat32,
|
|
1052
|
+
gossip_receive_check_cache_size: IDL.Nat32,
|
|
1053
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
1054
|
+
});
|
|
1055
|
+
const DeployGuestosToAllSubnetNodesPayload = IDL.Record({
|
|
1056
|
+
subnet_id: IDL.Principal,
|
|
1057
|
+
replica_version_id: IDL.Text
|
|
1058
|
+
});
|
|
1059
|
+
const DeployGuestosToAllUnassignedNodesPayload = IDL.Record({
|
|
1060
|
+
elected_replica_version: IDL.Text
|
|
1061
|
+
});
|
|
1062
|
+
const DeployGuestosToSomeApiBoundaryNodes = IDL.Record({
|
|
1063
|
+
version: IDL.Text,
|
|
1064
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
1065
|
+
});
|
|
1066
|
+
const DeployHostosToSomeNodes = IDL.Record({
|
|
1067
|
+
hostos_version_id: IDL.Opt(IDL.Text),
|
|
1068
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
1069
|
+
});
|
|
1070
|
+
const GetApiBoundaryNodeIdsRequest = IDL.Record({});
|
|
1071
|
+
const ApiBoundaryNodeIdRecord = IDL.Record({ id: IDL.Opt(IDL.Principal) });
|
|
1072
|
+
const GetApiBoundaryNodeIdsResponse = IDL.Variant({
|
|
1073
|
+
Ok: IDL.Vec(ApiBoundaryNodeIdRecord),
|
|
1074
|
+
Err: IDL.Text
|
|
1075
|
+
});
|
|
1076
|
+
const NodeOperatorRecord = IDL.Record({
|
|
1077
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
1078
|
+
node_operator_principal_id: IDL.Vec(IDL.Nat8),
|
|
1079
|
+
node_allowance: IDL.Nat64,
|
|
1080
|
+
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
1081
|
+
node_provider_principal_id: IDL.Vec(IDL.Nat8),
|
|
1082
|
+
dc_id: IDL.Text
|
|
1083
|
+
});
|
|
1084
|
+
const GetNodeOperatorsAndDcsOfNodeProviderResponse = IDL.Variant({
|
|
1085
|
+
Ok: IDL.Vec(IDL.Tuple(DataCenterRecord, NodeOperatorRecord)),
|
|
1086
|
+
Err: IDL.Text
|
|
1087
|
+
});
|
|
1088
|
+
const NodeProvidersMonthlyXdrRewards = IDL.Record({
|
|
1089
|
+
registry_version: IDL.Opt(IDL.Nat64),
|
|
1090
|
+
rewards: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat64))
|
|
1091
|
+
});
|
|
1092
|
+
const GetNodeProvidersMonthlyXdrRewardsResponse = IDL.Variant({
|
|
1093
|
+
Ok: NodeProvidersMonthlyXdrRewards,
|
|
1094
|
+
Err: IDL.Text
|
|
1095
|
+
});
|
|
1096
|
+
const GetSubnetForCanisterRequest = IDL.Record({
|
|
1097
|
+
principal: IDL.Opt(IDL.Principal)
|
|
1098
|
+
});
|
|
1099
|
+
const GetSubnetForCanisterResponse = IDL.Variant({
|
|
1100
|
+
Ok: IDL.Record({ subnet_id: IDL.Opt(IDL.Principal) }),
|
|
1101
|
+
Err: IDL.Text
|
|
1102
|
+
});
|
|
1103
|
+
const PrepareCanisterMigrationPayload = IDL.Record({
|
|
1104
|
+
canister_id_ranges: IDL.Vec(CanisterIdRange),
|
|
1105
|
+
source_subnet: IDL.Principal,
|
|
1106
|
+
destination_subnet: IDL.Principal
|
|
1107
|
+
});
|
|
1108
|
+
const RecoverSubnetPayload = IDL.Record({
|
|
1109
|
+
height: IDL.Nat64,
|
|
1110
|
+
replacement_nodes: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
1111
|
+
subnet_id: IDL.Principal,
|
|
1112
|
+
registry_store_uri: IDL.Opt(IDL.Tuple(IDL.Text, IDL.Text, IDL.Nat64)),
|
|
1113
|
+
state_hash: IDL.Vec(IDL.Nat8),
|
|
1114
|
+
chain_key_config: IDL.Opt(InitialChainKeyConfig),
|
|
1115
|
+
time_ns: IDL.Nat64
|
|
1116
|
+
});
|
|
1117
|
+
const RemoveApiBoundaryNodesPayload = IDL.Record({
|
|
1118
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
1119
|
+
});
|
|
1120
|
+
const RemoveFirewallRulesPayload = IDL.Record({
|
|
1121
|
+
expected_hash: IDL.Text,
|
|
1122
|
+
scope: FirewallRulesScope,
|
|
1123
|
+
positions: IDL.Vec(IDL.Int32)
|
|
1124
|
+
});
|
|
1125
|
+
const RemoveNodeDirectlyPayload = IDL.Record({ node_id: IDL.Principal });
|
|
1126
|
+
const NodeOperatorPrincipals = IDL.Record({
|
|
1127
|
+
principals: IDL.Vec(IDL.Principal)
|
|
1128
|
+
});
|
|
1129
|
+
const RemoveNodeOperatorsPayload = IDL.Record({
|
|
1130
|
+
node_operator_principals_to_remove: IDL.Opt(NodeOperatorPrincipals),
|
|
1131
|
+
node_operators_to_remove: IDL.Vec(IDL.Vec(IDL.Nat8))
|
|
1132
|
+
});
|
|
1133
|
+
const RemoveNodesPayload = IDL.Record({
|
|
1134
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
1135
|
+
});
|
|
1136
|
+
const RerouteCanisterRangesPayload = IDL.Record({
|
|
1137
|
+
source_subnet: IDL.Principal,
|
|
1138
|
+
reassigned_canister_ranges: IDL.Vec(CanisterIdRange),
|
|
1139
|
+
destination_subnet: IDL.Principal
|
|
1140
|
+
});
|
|
1141
|
+
const ReviseElectedGuestosVersionsPayload = IDL.Record({
|
|
1142
|
+
release_package_urls: IDL.Vec(IDL.Text),
|
|
1143
|
+
replica_versions_to_unelect: IDL.Vec(IDL.Text),
|
|
1144
|
+
replica_version_to_elect: IDL.Opt(IDL.Text),
|
|
1145
|
+
guest_launch_measurement_sha256_hex: IDL.Opt(IDL.Text),
|
|
1146
|
+
release_package_sha256_hex: IDL.Opt(IDL.Text)
|
|
1147
|
+
});
|
|
1148
|
+
const ReviseElectedHostosVersionsPayload = IDL.Record({
|
|
1149
|
+
release_package_urls: IDL.Vec(IDL.Text),
|
|
1150
|
+
hostos_version_to_elect: IDL.Opt(IDL.Text),
|
|
1151
|
+
hostos_versions_to_unelect: IDL.Vec(IDL.Text),
|
|
1152
|
+
release_package_sha256_hex: IDL.Opt(IDL.Text)
|
|
1153
|
+
});
|
|
1154
|
+
const SetFirewallConfigPayload = IDL.Record({
|
|
1155
|
+
ipv4_prefixes: IDL.Vec(IDL.Text),
|
|
1156
|
+
firewall_config: IDL.Text,
|
|
1157
|
+
ipv6_prefixes: IDL.Vec(IDL.Text)
|
|
1158
|
+
});
|
|
1159
|
+
const UpdateApiBoundaryNodesVersionPayload = IDL.Record({
|
|
1160
|
+
version: IDL.Text,
|
|
1161
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
1162
|
+
});
|
|
1163
|
+
const UpdateElectedHostosVersionsPayload = IDL.Record({
|
|
1164
|
+
release_package_urls: IDL.Vec(IDL.Text),
|
|
1165
|
+
hostos_version_to_elect: IDL.Opt(IDL.Text),
|
|
1166
|
+
hostos_versions_to_unelect: IDL.Vec(IDL.Text),
|
|
1167
|
+
release_package_sha256_hex: IDL.Opt(IDL.Text)
|
|
1168
|
+
});
|
|
1169
|
+
const UpdateFirewallRulesPayload = IDL.Record({
|
|
1170
|
+
expected_hash: IDL.Text,
|
|
1171
|
+
scope: FirewallRulesScope,
|
|
1172
|
+
positions: IDL.Vec(IDL.Int32),
|
|
1173
|
+
rules: IDL.Vec(FirewallRule)
|
|
1174
|
+
});
|
|
1175
|
+
const UpdateNodeDirectlyPayload = IDL.Record({
|
|
1176
|
+
idkg_dealing_encryption_pk: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
1177
|
+
});
|
|
1178
|
+
const UpdateNodeDomainDirectlyPayload = IDL.Record({
|
|
1179
|
+
node_id: IDL.Principal,
|
|
1180
|
+
domain: IDL.Opt(IDL.Text)
|
|
1181
|
+
});
|
|
1182
|
+
const UpdateNodeDomainDirectlyResponse = IDL.Variant({
|
|
1183
|
+
Ok: IDL.Null,
|
|
1184
|
+
Err: IDL.Text
|
|
1185
|
+
});
|
|
1186
|
+
const UpdateNodeIPv4ConfigDirectlyPayload = IDL.Record({
|
|
1187
|
+
ipv4_config: IDL.Opt(IPv4Config),
|
|
1188
|
+
node_id: IDL.Principal
|
|
1189
|
+
});
|
|
1190
|
+
const UpdateNodeIpv4ConfigDirectlyResponse = IDL.Variant({
|
|
1191
|
+
Ok: IDL.Null,
|
|
1192
|
+
Err: IDL.Text
|
|
1193
|
+
});
|
|
1194
|
+
const UpdateNodeOperatorConfigPayload = IDL.Record({
|
|
1195
|
+
node_operator_id: IDL.Opt(IDL.Principal),
|
|
1196
|
+
set_ipv6_to_none: IDL.Opt(IDL.Bool),
|
|
1197
|
+
ipv6: IDL.Opt(IDL.Text),
|
|
1198
|
+
node_provider_id: IDL.Opt(IDL.Principal),
|
|
1199
|
+
node_allowance: IDL.Opt(IDL.Nat64),
|
|
1200
|
+
rewardable_nodes: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
1201
|
+
dc_id: IDL.Opt(IDL.Text)
|
|
1202
|
+
});
|
|
1203
|
+
const UpdateNodeOperatorConfigDirectlyPayload = IDL.Record({
|
|
1204
|
+
node_operator_id: IDL.Opt(IDL.Principal),
|
|
1205
|
+
node_provider_id: IDL.Opt(IDL.Principal)
|
|
1206
|
+
});
|
|
1207
|
+
const NodeRewardRate = IDL.Record({
|
|
1208
|
+
xdr_permyriad_per_node_per_month: IDL.Nat64,
|
|
1209
|
+
reward_coefficient_percent: IDL.Opt(IDL.Int32)
|
|
1210
|
+
});
|
|
1211
|
+
const NodeRewardRates = IDL.Record({
|
|
1212
|
+
rates: IDL.Vec(IDL.Tuple(IDL.Text, NodeRewardRate))
|
|
1213
|
+
});
|
|
1214
|
+
const UpdateNodeRewardsTableProposalPayload = IDL.Record({
|
|
1215
|
+
new_entries: IDL.Vec(IDL.Tuple(IDL.Text, NodeRewardRates))
|
|
1216
|
+
});
|
|
1217
|
+
const UpdateNodesHostosVersionPayload = IDL.Record({
|
|
1218
|
+
hostos_version_id: IDL.Opt(IDL.Text),
|
|
1219
|
+
node_ids: IDL.Vec(IDL.Principal)
|
|
1220
|
+
});
|
|
1221
|
+
const UpdateSshReadOnlyAccessForAllUnassignedNodesPayload = IDL.Record({
|
|
1222
|
+
ssh_readonly_keys: IDL.Vec(IDL.Text)
|
|
1223
|
+
});
|
|
1224
|
+
const ChainKeyConfig = IDL.Record({
|
|
1225
|
+
signature_request_timeout_ns: IDL.Opt(IDL.Nat64),
|
|
1226
|
+
key_configs: IDL.Vec(KeyConfig),
|
|
1227
|
+
idkg_key_rotation_period_ms: IDL.Opt(IDL.Nat64)
|
|
1228
|
+
});
|
|
1229
|
+
const UpdateSubnetPayload = IDL.Record({
|
|
1230
|
+
unit_delay_millis: IDL.Opt(IDL.Nat64),
|
|
1231
|
+
max_duplicity: IDL.Opt(IDL.Nat32),
|
|
1232
|
+
features: IDL.Opt(SubnetFeatures),
|
|
1233
|
+
set_gossip_config_to_default: IDL.Bool,
|
|
1234
|
+
halt_at_cup_height: IDL.Opt(IDL.Bool),
|
|
1235
|
+
pfn_evaluation_period_ms: IDL.Opt(IDL.Nat32),
|
|
1236
|
+
subnet_id: IDL.Principal,
|
|
1237
|
+
max_ingress_bytes_per_message: IDL.Opt(IDL.Nat64),
|
|
1238
|
+
dkg_dealings_per_block: IDL.Opt(IDL.Nat64),
|
|
1239
|
+
max_block_payload_size: IDL.Opt(IDL.Nat64),
|
|
1240
|
+
start_as_nns: IDL.Opt(IDL.Bool),
|
|
1241
|
+
is_halted: IDL.Opt(IDL.Bool),
|
|
1242
|
+
chain_key_signing_enable: IDL.Opt(IDL.Vec(MasterPublicKeyId)),
|
|
1243
|
+
max_ingress_messages_per_block: IDL.Opt(IDL.Nat64),
|
|
1244
|
+
max_number_of_canisters: IDL.Opt(IDL.Nat64),
|
|
1245
|
+
retransmission_request_ms: IDL.Opt(IDL.Nat32),
|
|
1246
|
+
dkg_interval_length: IDL.Opt(IDL.Nat64),
|
|
1247
|
+
registry_poll_period_ms: IDL.Opt(IDL.Nat32),
|
|
1248
|
+
max_chunk_wait_ms: IDL.Opt(IDL.Nat32),
|
|
1249
|
+
receive_check_cache_size: IDL.Opt(IDL.Nat32),
|
|
1250
|
+
ssh_backup_access: IDL.Opt(IDL.Vec(IDL.Text)),
|
|
1251
|
+
max_chunk_size: IDL.Opt(IDL.Nat32),
|
|
1252
|
+
initial_notary_delay_millis: IDL.Opt(IDL.Nat64),
|
|
1253
|
+
chain_key_config: IDL.Opt(ChainKeyConfig),
|
|
1254
|
+
max_artifact_streams_per_peer: IDL.Opt(IDL.Nat32),
|
|
1255
|
+
subnet_type: IDL.Opt(SubnetType),
|
|
1256
|
+
ssh_readonly_access: IDL.Opt(IDL.Vec(IDL.Text)),
|
|
1257
|
+
chain_key_signing_disable: IDL.Opt(IDL.Vec(MasterPublicKeyId))
|
|
1258
|
+
});
|
|
1259
|
+
const UpdateUnassignedNodesConfigPayload = IDL.Record({
|
|
1260
|
+
replica_version: IDL.Opt(IDL.Text),
|
|
1261
|
+
ssh_readonly_access: IDL.Opt(IDL.Vec(IDL.Text))
|
|
1262
|
+
});
|
|
1263
|
+
return IDL.Service({
|
|
1264
|
+
add_api_boundary_nodes: IDL.Func([AddApiBoundaryNodesPayload], [], []),
|
|
1265
|
+
add_firewall_rules: IDL.Func([AddFirewallRulesPayload], [], []),
|
|
1266
|
+
add_node: IDL.Func([AddNodePayload], [IDL.Principal], []),
|
|
1267
|
+
add_node_operator: IDL.Func([AddNodeOperatorPayload], [], []),
|
|
1268
|
+
add_nodes_to_subnet: IDL.Func([AddNodesToSubnetPayload], [], []),
|
|
1269
|
+
add_or_remove_data_centers: IDL.Func(
|
|
1270
|
+
[AddOrRemoveDataCentersProposalPayload],
|
|
1271
|
+
[],
|
|
1272
|
+
[]
|
|
1273
|
+
),
|
|
1274
|
+
change_subnet_membership: IDL.Func(
|
|
1275
|
+
[ChangeSubnetMembershipPayload],
|
|
1276
|
+
[],
|
|
1277
|
+
[]
|
|
1278
|
+
),
|
|
1279
|
+
clear_provisional_whitelist: IDL.Func([], [], []),
|
|
1280
|
+
complete_canister_migration: IDL.Func(
|
|
1281
|
+
[CompleteCanisterMigrationPayload],
|
|
1282
|
+
[],
|
|
1283
|
+
[]
|
|
1284
|
+
),
|
|
1285
|
+
create_subnet: IDL.Func([CreateSubnetPayload], [], []),
|
|
1286
|
+
deploy_guestos_to_all_subnet_nodes: IDL.Func(
|
|
1287
|
+
[DeployGuestosToAllSubnetNodesPayload],
|
|
1288
|
+
[],
|
|
1289
|
+
[]
|
|
1290
|
+
),
|
|
1291
|
+
deploy_guestos_to_all_unassigned_nodes: IDL.Func(
|
|
1292
|
+
[DeployGuestosToAllUnassignedNodesPayload],
|
|
1293
|
+
[],
|
|
1294
|
+
[]
|
|
1295
|
+
),
|
|
1296
|
+
deploy_guestos_to_some_api_boundary_nodes: IDL.Func(
|
|
1297
|
+
[DeployGuestosToSomeApiBoundaryNodes],
|
|
1298
|
+
[],
|
|
1299
|
+
[]
|
|
1300
|
+
),
|
|
1301
|
+
deploy_hostos_to_some_nodes: IDL.Func(
|
|
1302
|
+
[DeployHostosToSomeNodes],
|
|
1303
|
+
[],
|
|
1304
|
+
[]
|
|
1305
|
+
),
|
|
1306
|
+
get_api_boundary_node_ids: IDL.Func(
|
|
1307
|
+
[GetApiBoundaryNodeIdsRequest],
|
|
1308
|
+
[GetApiBoundaryNodeIdsResponse],
|
|
1309
|
+
['query']
|
|
1310
|
+
),
|
|
1311
|
+
get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
|
|
1312
|
+
get_node_operators_and_dcs_of_node_provider: IDL.Func(
|
|
1313
|
+
[IDL.Principal],
|
|
1314
|
+
[GetNodeOperatorsAndDcsOfNodeProviderResponse],
|
|
1315
|
+
['query']
|
|
1316
|
+
),
|
|
1317
|
+
get_node_providers_monthly_xdr_rewards: IDL.Func(
|
|
1318
|
+
[],
|
|
1319
|
+
[GetNodeProvidersMonthlyXdrRewardsResponse],
|
|
1320
|
+
['query']
|
|
1321
|
+
),
|
|
1322
|
+
get_subnet_for_canister: IDL.Func(
|
|
1323
|
+
[GetSubnetForCanisterRequest],
|
|
1324
|
+
[GetSubnetForCanisterResponse],
|
|
1325
|
+
['query']
|
|
1326
|
+
),
|
|
1327
|
+
prepare_canister_migration: IDL.Func(
|
|
1328
|
+
[PrepareCanisterMigrationPayload],
|
|
1329
|
+
[],
|
|
1330
|
+
[]
|
|
1331
|
+
),
|
|
1332
|
+
recover_subnet: IDL.Func([RecoverSubnetPayload], [], []),
|
|
1333
|
+
remove_api_boundary_nodes: IDL.Func(
|
|
1334
|
+
[RemoveApiBoundaryNodesPayload],
|
|
1335
|
+
[],
|
|
1336
|
+
[]
|
|
1337
|
+
),
|
|
1338
|
+
remove_firewall_rules: IDL.Func([RemoveFirewallRulesPayload], [], []),
|
|
1339
|
+
remove_node_directly: IDL.Func([RemoveNodeDirectlyPayload], [], []),
|
|
1340
|
+
remove_node_operators: IDL.Func([RemoveNodeOperatorsPayload], [], []),
|
|
1341
|
+
remove_nodes: IDL.Func([RemoveNodesPayload], [], []),
|
|
1342
|
+
remove_nodes_from_subnet: IDL.Func([RemoveNodesPayload], [], []),
|
|
1343
|
+
reroute_canister_ranges: IDL.Func(
|
|
1344
|
+
[RerouteCanisterRangesPayload],
|
|
1345
|
+
[],
|
|
1346
|
+
[]
|
|
1347
|
+
),
|
|
1348
|
+
revise_elected_guestos_versions: IDL.Func(
|
|
1349
|
+
[ReviseElectedGuestosVersionsPayload],
|
|
1350
|
+
[],
|
|
1351
|
+
[]
|
|
1352
|
+
),
|
|
1353
|
+
revise_elected_hostos_versions: IDL.Func(
|
|
1354
|
+
[ReviseElectedHostosVersionsPayload],
|
|
1355
|
+
[],
|
|
1356
|
+
[]
|
|
1357
|
+
),
|
|
1358
|
+
revise_elected_replica_versions: IDL.Func(
|
|
1359
|
+
[ReviseElectedGuestosVersionsPayload],
|
|
1360
|
+
[],
|
|
1361
|
+
[]
|
|
1362
|
+
),
|
|
1363
|
+
set_firewall_config: IDL.Func([SetFirewallConfigPayload], [], []),
|
|
1364
|
+
update_api_boundary_nodes_version: IDL.Func(
|
|
1365
|
+
[UpdateApiBoundaryNodesVersionPayload],
|
|
1366
|
+
[],
|
|
1367
|
+
[]
|
|
1368
|
+
),
|
|
1369
|
+
update_elected_hostos_versions: IDL.Func(
|
|
1370
|
+
[UpdateElectedHostosVersionsPayload],
|
|
1371
|
+
[],
|
|
1372
|
+
[]
|
|
1373
|
+
),
|
|
1374
|
+
update_firewall_rules: IDL.Func([UpdateFirewallRulesPayload], [], []),
|
|
1375
|
+
update_node_directly: IDL.Func([UpdateNodeDirectlyPayload], [], []),
|
|
1376
|
+
update_node_domain_directly: IDL.Func(
|
|
1377
|
+
[UpdateNodeDomainDirectlyPayload],
|
|
1378
|
+
[UpdateNodeDomainDirectlyResponse],
|
|
1379
|
+
[]
|
|
1380
|
+
),
|
|
1381
|
+
update_node_ipv4_config_directly: IDL.Func(
|
|
1382
|
+
[UpdateNodeIPv4ConfigDirectlyPayload],
|
|
1383
|
+
[UpdateNodeIpv4ConfigDirectlyResponse],
|
|
1384
|
+
[]
|
|
1385
|
+
),
|
|
1386
|
+
update_node_operator_config: IDL.Func(
|
|
1387
|
+
[UpdateNodeOperatorConfigPayload],
|
|
1388
|
+
[],
|
|
1389
|
+
[]
|
|
1390
|
+
),
|
|
1391
|
+
update_node_operator_config_directly: IDL.Func(
|
|
1392
|
+
[UpdateNodeOperatorConfigDirectlyPayload],
|
|
1393
|
+
[],
|
|
1394
|
+
[]
|
|
1395
|
+
),
|
|
1396
|
+
update_node_rewards_table: IDL.Func(
|
|
1397
|
+
[UpdateNodeRewardsTableProposalPayload],
|
|
1398
|
+
[],
|
|
1399
|
+
[]
|
|
1400
|
+
),
|
|
1401
|
+
update_nodes_hostos_version: IDL.Func(
|
|
1402
|
+
[UpdateNodesHostosVersionPayload],
|
|
1403
|
+
[],
|
|
1404
|
+
[]
|
|
1405
|
+
),
|
|
1406
|
+
update_ssh_readonly_access_for_all_unassigned_nodes: IDL.Func(
|
|
1407
|
+
[UpdateSshReadOnlyAccessForAllUnassignedNodesPayload],
|
|
1408
|
+
[],
|
|
1409
|
+
[]
|
|
1410
|
+
),
|
|
1411
|
+
update_subnet: IDL.Func([UpdateSubnetPayload], [], []),
|
|
1412
|
+
update_unassigned_nodes_config: IDL.Func(
|
|
1413
|
+
[UpdateUnassignedNodesConfigPayload],
|
|
1414
|
+
[],
|
|
1415
|
+
[]
|
|
1416
|
+
)
|
|
1417
|
+
});
|
|
1418
|
+
};
|
|
1419
|
+
export const init: init = () => {
|
|
1420
|
+
return [];
|
|
1421
|
+
};
|