MCPcopy Create free account

hub / github.com/dfinity/ic / functions

Functions45,639 in github.com/dfinity/ic

↓ 154 callersMethodexists
Whether the layout has any files.
rs/state_layout/src/state_layout.rs:2195
↓ 154 callersFunctionspawn
Spawns a future running concurrently with the caller. Note: the main purpose of this function is to kick-start top-level canister async method calls.
rs/rust_canisters/dfn_core/src/api/futures.rs:202
↓ 154 callersMethodwith_arg
(mut self, arg: Vec<u8>)
rs/nervous_system/root/src/change_canister.rs:151
↓ 153 callersMethodapply
(&self, metrics: &CheckpointMetrics)
rs/state_manager/src/checkpoint.rs:707
↓ 153 callersFunctioninvariant_compliant_registry
(mutation_id: u8)
rs/registry/canister/src/common/test_helpers.rs:30
↓ 153 callersMethodon_reject
(mut self, callback: C)
rs/universal_canister/lib/src/lib.rs:979
↓ 153 callersMethodwith_manual_execution
(self)
rs/test_utilities/execution_environment/src/lib.rs:2661
↓ 152 callersMethodcall_with_cycles
( mut self, callee: P, method: S, call_args: CallArgs, cycles: Cycles,
rs/universal_canister/lib/src/lib.rs:330
↓ 149 callersMethodexecute_ingress_as
Executes an ingress message on the canister with the specified ID. This function is synchronous, it blocks until the result of the ingress message is
rs/state_machine_tests/src/lib.rs:4605
↓ 148 callersMethodinto_bytes
(self)
rs/registry/canister/src/proto_on_wire.rs:27
↓ 147 callersMethodsetup_and_start
(&mut self, env: &TestEnv)
rs/tests/driver/src/driver/ic.rs:350
↓ 146 callersFunctioncrypto_hash
Creates a (typed) domain-separated cryptographic hash. The bytes that are hashed are a combination of the byte representation of the hash domain obta
rs/types/types/src/crypto/hash.rs:448
↓ 146 callersMethodlen
Accessors by NodeIndex:
rs/crypto/internal/crypto_lib/types/src/encrypt/forward_secure.rs:187
↓ 146 callersMethodrun
( &mut self, name: &str, params: Vec<WastArg>, id: Option<Id<'a>>, )
rs/embedders/tests/spec_tests.rs:429
↓ 145 callersMethodcount
(&self)
rs/crypto/src/sign/threshold_sig/ni_dkg/transcript.rs:196
↓ 145 callersMethodlen
(&self)
rs/ledger_suite/common/ledger_core/src/approvals.rs:401
↓ 144 callersMethodlen
(&self)
rs/sns/governance/src/lib.rs:89
↓ 144 callersMethodpush
Pushes a key-value pair into the cache. If an entry with key `k` already exists in the cache or other cache entries are evicted (due to the cache capa
rs/utils/lru_cache/src/lib.rs:77
↓ 143 callersMethodadd_nodes
Add the given number of nodes to the subnet.
rs/tests/driver/src/driver/ic.rs:715
↓ 143 callersMethodget_canister_id
(&self)
rs/types/base_types/src/lib.rs:212
↓ 142 callersMethodas_nanos_since_unix_epoch
Number of nanoseconds since `UNIX EPOCH`.
rs/types/types/src/time.rs:63
↓ 140 callersMethodbuild
(self)
rs/validator/ingress_message/src/internal/mod.rs:267
↓ 140 callersFunctionempty
()
rs/tests/test_canisters/kv_store/src/chunk.rs:83
↓ 140 callersMethodreject_message
(mut self)
rs/universal_canister/lib/src/lib.rs:477
↓ 140 callersFunctionstate_machine_test_on_nns_subnet
Runs a test in a StateMachine in a way that is (mostly) compatible with local_test_on_nns_subnet_with_mutations
rs/nns/test_utils/src/itest_helpers.rs:884
↓ 139 callersMethodblock_hash
(&self)
rs/bitcoin/adapter/src/common.rs:249
↓ 138 callersMethodon_reply
(mut self, callback: C)
rs/universal_canister/lib/src/lib.rs:974
↓ 137 callersMethodadd_neuron
(&mut self, new_neuron: &Neuron)
rs/nns/governance/src/storage/neuron_indexes.rs:178
↓ 137 callersMethodkeys
Returns a sorted slice of the keys contained in this map.
rs/crypto/tree_hash/src/flat_map.rs:181
↓ 136 callersMethodadvance_time
Advances the time in `ReplicatedState` by the provided duration.
rs/execution_environment/src/scheduler/test_utilities.rs:703
↓ 136 callersMethodinsert
(&mut self, key: Key, value: Value, now: T)
rs/bitcoin/ckbtc/minter/src/lib.rs:1983
↓ 135 callersMethodbuild_default_agent
(&self)
rs/tests/driver/src/driver/test_env_api.rs:2010
↓ 135 callersMethodinto
Returns the internal instance being tested.
packages/ic-metrics-assert/src/lib.rs:92
↓ 134 callersMethodget
(&self, height: BlockIndex)
rs/ledger_suite/common/ledger_canister_core/src/blockchain.rs:85
↓ 132 callersMethodbuild
(&self)
rs/registry/canister/src/init.rs:69
↓ 132 callersMethoddebug_print
(mut self, msg: &[u8])
rs/universal_canister/lib/src/lib.rs:563
↓ 132 callersMethodid
Returns the neuron's ID.
rs/nns/governance/src/neuron/types.rs:168
↓ 132 callersMethodlast
A UTXO with the largest value.
rs/bitcoin/ckbtc/minter/src/state/utxos.rs:52
↓ 131 callersMethodbalance
( &self, acc: AccountIdentifier, )
rs/rosetta-api/icp/test_utils/src/rosetta_api_serv.rs:429
↓ 131 callersMethodhistogram
Create and register a histogram with specified options.
rs/monitoring/metrics/src/registry.rs:59
↓ 131 callersMethodlen
(&self)
rs/state_manager/src/state_sync/types.rs:400
↓ 131 callersMethodlen
Returns the length of the allocated region in bytes.
rs/sys/src/mmap.rs:76
↓ 131 callersMethodsort
(self, addresses)
rs/cross-chain/scripts/generate_blocklist.py:63
↓ 130 callersMethodbuild
(self)
packages/pocket-ic/src/lib.rs:209
↓ 130 callersMethodbuild
Builds the IC instance.
rs/tests/testnets/io_perf_benchmark.rs:214
↓ 130 callersMethodget
Retrieves an entry from the ingress history given a `MessageId`.
rs/replicated_state/src/metadata_state.rs:1677
↓ 130 callersMethodlatest_version
(&self)
rs/registry/canister/src/registry.rs:238
↓ 130 callersMethodlen
(&self)
rs/crypto/internal/crypto_lib/threshold_sig/canister_threshold_sig/src/utils/poly.rs:608
↓ 130 callersMethodstart_timer
Starts a timer when the instance is created. `label_names` must include all label names used in the definition of `hist`, in the same order. `label_v
rs/monitoring/metrics/src/histogram_vec_timer.rs:29
↓ 129 callersMethodget
(&self)
rs/canister_sandbox/src/sandbox_server.rs:350
↓ 129 callersFunctioningress
A helper to create an ingress test message. Note that the canister id is not needed and will be specified by the function that enqueues the ingress.
rs/execution_environment/src/scheduler/test_utilities.rs:1209
↓ 129 callersMethoditer
Returns an iterator over key-value pairs. The keys are guaranteed to be sorted. A full traversal requires `O(N)` operations.
rs/replicated_state/src/page_map/int_map.rs:780
↓ 129 callersMethodwith_nns_subnet
Add an empty NNS subnet unless an NNS subnet has already been added.
packages/pocket-ic/src/lib.rs:311
↓ 128 callersMethodas_ref
(&self)
rs/replicated_state/src/canister_state/execution_state.rs:109
↓ 128 callersMethodis_ok
(&self)
rs/sns/governance/src/types.rs:1507
↓ 128 callersMethodmax
(&self)
rs/types/types/src/lib.rs:287
↓ 128 callersMethodnon_replicated_query
( time: Time, caller: PrincipalId, own_subnet_id: SubnetId, incoming_payload:
rs/embedders/src/wasmtime_embedder/system_api.rs:523
↓ 127 callersMethodadd_argument
Add an argument to the end of a kernel command line. This does not replace previous arguments of the same name.
rs/ic_os/linux_kernel_command_line/src/lib.rs:114
↓ 127 callersMethodingress_status
(&self, message_id: &MessageId)
rs/execution_environment/src/scheduler/test_utilities.rs:374
↓ 126 callersMethodcontains_key
Checks if this map contains the specified key. Complexity: O(log(N))
rs/crypto/tree_hash/src/flat_map.rs:145
↓ 126 callersMethodheight
(&self)
rs/consensus/certification/src/certifier.rs:382
↓ 126 callersMethodint_gauge
Create and register an `IntGauge`.
rs/monitoring/metrics/src/registry.rs:80
↓ 126 callersMethodtime
(&self)
rs/embedders/src/wasmtime_embedder/system_api.rs:838
↓ 125 callersMethodclone
(&self)
rs/test_utilities/in_memory_logger/src/lib.rs:108
↓ 125 callersMethodget
(&self, key: &Key, now: T)
rs/bitcoin/ckbtc/minter/src/lib.rs:1989
↓ 125 callersMethodheader
(&self)
rs/types/types/src/xnet.rs:357
↓ 125 callersFunctionnew_node_test_id
Returns a [`NodeId`] that can be used in tests.
rs/types/types_test_utils/src/ids.rs:172
↓ 125 callersMethodreply_data
(mut self, data: &[u8])
rs/universal_canister/lib/src/lib.rs:104
↓ 124 callersMethodingress_raw
Sends an ingress message to the given canister to call an update or a query method. In the latter case the query runs in update context. Returns a raw
rs/test_utilities/execution_environment/src/lib.rs:1241
↓ 124 callersMethodinsert_validated
(&mut self, value: T)
rs/test_utilities/artifact_pool/src/consensus_pool.rs:816
↓ 124 callersMethodwith_wat
(self, wat: &str)
rs/test_utilities/embedders/src/lib.rs:78
↓ 123 callersFunctiondecimal_buckets
Create log-scale buckets on a decimal 1–2–5 grid: `{1, 2, 5} × 10^n`. Range — from `10^min_power` up to `5×10^max_power` (inclusive). Count — `3 * (ma
rs/monitoring/metrics/src/buckets.rs:23
↓ 123 callersMethodincrement
Returns the amount incremented by 1.
rs/phantom_newtype/src/amountof.rs:337
↓ 123 callersMethoduniversal_canister_with_cycles
Creates and installs a universal canister with cycles
rs/test_utilities/execution_environment/src/lib.rs:1208
↓ 122 callersMethodbuild
(self)
rs/execution_environment/src/scheduler/round_schedule/tests.rs:394
↓ 121 callersMethodbuild
(&mut self)
rs/sns/governance/src/init.rs:78
↓ 121 callersMethodpush_back
Pushes a new record to the back, updating the used bytes.
rs/types/types/src/canister_log.rs:80
↓ 121 callersMethodupdate_from_sender
( &'a self, method_name: S, _: Witness, input: Input::Inner, sender: &
rs/rust_canisters/canister_test/src/canister.rs:641
↓ 120 callersMethodas_ref
(&self)
rs/ethereum/cketh/minter/src/tx.rs:101
↓ 120 callersMethodas_secs
(&self)
rs/sns/governance/src/reward.rs:92
↓ 120 callersMethodexecute_slice
Advances progress of the given paused execution by executing one slice.
rs/execution_environment/src/scheduler/test_utilities.rs:1333
↓ 120 callersMethodinter_update
An update from a UC to another UC.
rs/universal_canister/lib/src/lib.rs:316
↓ 120 callersMethodroot_subnet
(&self)
rs/tests/driver/src/driver/test_env_api.rs:549
↓ 119 callersMethodadd_cert
(self, node_id: NodeId, cert: X509PublicKeyCert)
rs/crypto/test_utils/tls/src/registry.rs:25
↓ 119 callersMethodmap
(v: V)
packages/icrc-ledger-types/src/icrc/generic_value.rs:106
↓ 119 callersMethodremove
(&mut self, id: IDkgMessageId)
rs/interfaces/src/idkg.rs:47
↓ 119 callersMethodrepeat
Loop a block of operations `count` times. This uses native WebAssembly `(loop)` instructions internally, meaning `count` can be extremely high (e.g.
rs/test_utilities/execution_environment/src/wat_canister/fn_builder.rs:129
↓ 119 callersMethodspawn
(&mut self, spawn: &Spawn)
rs/rosetta-api/icp/src/request_types.rs:1378
↓ 119 callersMethodupdate_to_latest_version
Calls `get_updates_since()` on the data provider and updates the cache accordingly.
rs/registry/fake/src/lib.rs:35
↓ 119 callersMethodwith_application_subnet
Add an empty generic application subnet.
packages/pocket-ic/src/lib.rs:426
↓ 118 callersMethodawait_status_is_healthy
Waits until the is_healthy() returns true
rs/tests/driver/src/driver/test_env_api.rs:1901
↓ 118 callersMethodcanister_id
(&self, canister_name: &str)
rs/tests/sdk/src/dfx.rs:114
↓ 118 callersMethodhandle
(&self, msg: Message)
rs/canister_sandbox/src/transport.rs:88
↓ 117 callersMethodhistogram_vec
Create and register a `HistogramVec`
rs/monitoring/metrics/src/registry.rs:66
↓ 116 callersFunctionbenchmark_with_confirmation
Creates a benchmark with its confirmation for the specified `code` snippet. The confirmation benchmark is to make sure there is no compiler optimizat
rs/execution_environment/benches/wasm_instructions/helper.rs:24
↓ 116 callersMethodload
Loads a value from the provided config source. The source is expected to be a valid JSON5 document.
rs/config/src/config_parser.rs:80
↓ 116 callersFunctionruntime_from_url
Initializes a testing [Runtime] from a node's url. You should really think of this runtime as a _HTTP Agent_, perhaps one day we should rename it. Any
rs/tests/driver/src/util.rs:114
↓ 116 callersMethodupdate_
( &'a self, method_name: S, _: Witness, input: Input::Inner, )
rs/rust_canisters/canister_test/src/canister.rs:620
↓ 116 callersMethodwith_neuron
( &self, nid: &NeuronId, map: impl FnOnce(&Neuron) -> R, )
rs/nns/governance/src/governance.rs:1475
↓ 115 callersMethodreject
(mut self)
rs/universal_canister/lib/src/lib.rs:487
← previousnext →201–300 of 45,639, ranked by callers