Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dfinity/ic
/ functions
Functions
45,639 in github.com/dfinity/ic
⨍
Functions
45,639
◇
Types & classes
9,372
↳
Endpoints
8
↓ 154 callers
Method
exists
Whether the layout has any files.
rs/state_layout/src/state_layout.rs:2195
↓ 154 callers
Function
spawn
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 callers
Method
with_arg
(mut self, arg: Vec<u8>)
rs/nervous_system/root/src/change_canister.rs:151
↓ 153 callers
Method
apply
(&self, metrics: &CheckpointMetrics)
rs/state_manager/src/checkpoint.rs:707
↓ 153 callers
Function
invariant_compliant_registry
(mutation_id: u8)
rs/registry/canister/src/common/test_helpers.rs:30
↓ 153 callers
Method
on_reject
(mut self, callback: C)
rs/universal_canister/lib/src/lib.rs:979
↓ 153 callers
Method
with_manual_execution
(self)
rs/test_utilities/execution_environment/src/lib.rs:2661
↓ 152 callers
Method
call_with_cycles
( mut self, callee: P, method: S, call_args: CallArgs, cycles: Cycles,
rs/universal_canister/lib/src/lib.rs:330
↓ 149 callers
Method
execute_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 callers
Method
into_bytes
(self)
rs/registry/canister/src/proto_on_wire.rs:27
↓ 147 callers
Method
setup_and_start
(&mut self, env: &TestEnv)
rs/tests/driver/src/driver/ic.rs:350
↓ 146 callers
Function
crypto_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 callers
Method
len
Accessors by NodeIndex:
rs/crypto/internal/crypto_lib/types/src/encrypt/forward_secure.rs:187
↓ 146 callers
Method
run
( &mut self, name: &str, params: Vec<WastArg>, id: Option<Id<'a>>, )
rs/embedders/tests/spec_tests.rs:429
↓ 145 callers
Method
count
(&self)
rs/crypto/src/sign/threshold_sig/ni_dkg/transcript.rs:196
↓ 145 callers
Method
len
(&self)
rs/ledger_suite/common/ledger_core/src/approvals.rs:401
↓ 144 callers
Method
len
(&self)
rs/sns/governance/src/lib.rs:89
↓ 144 callers
Method
push
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 callers
Method
add_nodes
Add the given number of nodes to the subnet.
rs/tests/driver/src/driver/ic.rs:715
↓ 143 callers
Method
get_canister_id
(&self)
rs/types/base_types/src/lib.rs:212
↓ 142 callers
Method
as_nanos_since_unix_epoch
Number of nanoseconds since `UNIX EPOCH`.
rs/types/types/src/time.rs:63
↓ 140 callers
Method
build
(self)
rs/validator/ingress_message/src/internal/mod.rs:267
↓ 140 callers
Function
empty
()
rs/tests/test_canisters/kv_store/src/chunk.rs:83
↓ 140 callers
Method
reject_message
(mut self)
rs/universal_canister/lib/src/lib.rs:477
↓ 140 callers
Function
state_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 callers
Method
block_hash
(&self)
rs/bitcoin/adapter/src/common.rs:249
↓ 138 callers
Method
on_reply
(mut self, callback: C)
rs/universal_canister/lib/src/lib.rs:974
↓ 137 callers
Method
add_neuron
(&mut self, new_neuron: &Neuron)
rs/nns/governance/src/storage/neuron_indexes.rs:178
↓ 137 callers
Method
keys
Returns a sorted slice of the keys contained in this map.
rs/crypto/tree_hash/src/flat_map.rs:181
↓ 136 callers
Method
advance_time
Advances the time in `ReplicatedState` by the provided duration.
rs/execution_environment/src/scheduler/test_utilities.rs:703
↓ 136 callers
Method
insert
(&mut self, key: Key, value: Value, now: T)
rs/bitcoin/ckbtc/minter/src/lib.rs:1983
↓ 135 callers
Method
build_default_agent
(&self)
rs/tests/driver/src/driver/test_env_api.rs:2010
↓ 135 callers
Method
into
Returns the internal instance being tested.
packages/ic-metrics-assert/src/lib.rs:92
↓ 134 callers
Method
get
(&self, height: BlockIndex)
rs/ledger_suite/common/ledger_canister_core/src/blockchain.rs:85
↓ 132 callers
Method
build
(&self)
rs/registry/canister/src/init.rs:69
↓ 132 callers
Method
debug_print
(mut self, msg: &[u8])
rs/universal_canister/lib/src/lib.rs:563
↓ 132 callers
Method
id
Returns the neuron's ID.
rs/nns/governance/src/neuron/types.rs:168
↓ 132 callers
Method
last
A UTXO with the largest value.
rs/bitcoin/ckbtc/minter/src/state/utxos.rs:52
↓ 131 callers
Method
balance
( &self, acc: AccountIdentifier, )
rs/rosetta-api/icp/test_utils/src/rosetta_api_serv.rs:429
↓ 131 callers
Method
histogram
Create and register a histogram with specified options.
rs/monitoring/metrics/src/registry.rs:59
↓ 131 callers
Method
len
(&self)
rs/state_manager/src/state_sync/types.rs:400
↓ 131 callers
Method
len
Returns the length of the allocated region in bytes.
rs/sys/src/mmap.rs:76
↓ 131 callers
Method
sort
(self, addresses)
rs/cross-chain/scripts/generate_blocklist.py:63
↓ 130 callers
Method
build
(self)
packages/pocket-ic/src/lib.rs:209
↓ 130 callers
Method
build
Builds the IC instance.
rs/tests/testnets/io_perf_benchmark.rs:214
↓ 130 callers
Method
get
Retrieves an entry from the ingress history given a `MessageId`.
rs/replicated_state/src/metadata_state.rs:1677
↓ 130 callers
Method
latest_version
(&self)
rs/registry/canister/src/registry.rs:238
↓ 130 callers
Method
len
(&self)
rs/crypto/internal/crypto_lib/threshold_sig/canister_threshold_sig/src/utils/poly.rs:608
↓ 130 callers
Method
start_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 callers
Method
get
(&self)
rs/canister_sandbox/src/sandbox_server.rs:350
↓ 129 callers
Function
ingress
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 callers
Method
iter
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 callers
Method
with_nns_subnet
Add an empty NNS subnet unless an NNS subnet has already been added.
packages/pocket-ic/src/lib.rs:311
↓ 128 callers
Method
as_ref
(&self)
rs/replicated_state/src/canister_state/execution_state.rs:109
↓ 128 callers
Method
is_ok
(&self)
rs/sns/governance/src/types.rs:1507
↓ 128 callers
Method
max
(&self)
rs/types/types/src/lib.rs:287
↓ 128 callers
Method
non_replicated_query
( time: Time, caller: PrincipalId, own_subnet_id: SubnetId, incoming_payload:
rs/embedders/src/wasmtime_embedder/system_api.rs:523
↓ 127 callers
Method
add_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 callers
Method
ingress_status
(&self, message_id: &MessageId)
rs/execution_environment/src/scheduler/test_utilities.rs:374
↓ 126 callers
Method
contains_key
Checks if this map contains the specified key. Complexity: O(log(N))
rs/crypto/tree_hash/src/flat_map.rs:145
↓ 126 callers
Method
height
(&self)
rs/consensus/certification/src/certifier.rs:382
↓ 126 callers
Method
int_gauge
Create and register an `IntGauge`.
rs/monitoring/metrics/src/registry.rs:80
↓ 126 callers
Method
time
(&self)
rs/embedders/src/wasmtime_embedder/system_api.rs:838
↓ 125 callers
Method
clone
(&self)
rs/test_utilities/in_memory_logger/src/lib.rs:108
↓ 125 callers
Method
get
(&self, key: &Key, now: T)
rs/bitcoin/ckbtc/minter/src/lib.rs:1989
↓ 125 callers
Method
header
(&self)
rs/types/types/src/xnet.rs:357
↓ 125 callers
Function
new_node_test_id
Returns a [`NodeId`] that can be used in tests.
rs/types/types_test_utils/src/ids.rs:172
↓ 125 callers
Method
reply_data
(mut self, data: &[u8])
rs/universal_canister/lib/src/lib.rs:104
↓ 124 callers
Method
ingress_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 callers
Method
insert_validated
(&mut self, value: T)
rs/test_utilities/artifact_pool/src/consensus_pool.rs:816
↓ 124 callers
Method
with_wat
(self, wat: &str)
rs/test_utilities/embedders/src/lib.rs:78
↓ 123 callers
Function
decimal_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 callers
Method
increment
Returns the amount incremented by 1.
rs/phantom_newtype/src/amountof.rs:337
↓ 123 callers
Method
universal_canister_with_cycles
Creates and installs a universal canister with cycles
rs/test_utilities/execution_environment/src/lib.rs:1208
↓ 122 callers
Method
build
(self)
rs/execution_environment/src/scheduler/round_schedule/tests.rs:394
↓ 121 callers
Method
build
(&mut self)
rs/sns/governance/src/init.rs:78
↓ 121 callers
Method
push_back
Pushes a new record to the back, updating the used bytes.
rs/types/types/src/canister_log.rs:80
↓ 121 callers
Method
update_from_sender
( &'a self, method_name: S, _: Witness, input: Input::Inner, sender: &
rs/rust_canisters/canister_test/src/canister.rs:641
↓ 120 callers
Method
as_ref
(&self)
rs/ethereum/cketh/minter/src/tx.rs:101
↓ 120 callers
Method
as_secs
(&self)
rs/sns/governance/src/reward.rs:92
↓ 120 callers
Method
execute_slice
Advances progress of the given paused execution by executing one slice.
rs/execution_environment/src/scheduler/test_utilities.rs:1333
↓ 120 callers
Method
inter_update
An update from a UC to another UC.
rs/universal_canister/lib/src/lib.rs:316
↓ 120 callers
Method
root_subnet
(&self)
rs/tests/driver/src/driver/test_env_api.rs:549
↓ 119 callers
Method
add_cert
(self, node_id: NodeId, cert: X509PublicKeyCert)
rs/crypto/test_utils/tls/src/registry.rs:25
↓ 119 callers
Method
map
(v: V)
packages/icrc-ledger-types/src/icrc/generic_value.rs:106
↓ 119 callers
Method
remove
(&mut self, id: IDkgMessageId)
rs/interfaces/src/idkg.rs:47
↓ 119 callers
Method
repeat
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 callers
Method
spawn
(&mut self, spawn: &Spawn)
rs/rosetta-api/icp/src/request_types.rs:1378
↓ 119 callers
Method
update_to_latest_version
Calls `get_updates_since()` on the data provider and updates the cache accordingly.
rs/registry/fake/src/lib.rs:35
↓ 119 callers
Method
with_application_subnet
Add an empty generic application subnet.
packages/pocket-ic/src/lib.rs:426
↓ 118 callers
Method
await_status_is_healthy
Waits until the is_healthy() returns true
rs/tests/driver/src/driver/test_env_api.rs:1901
↓ 118 callers
Method
canister_id
(&self, canister_name: &str)
rs/tests/sdk/src/dfx.rs:114
↓ 118 callers
Method
handle
(&self, msg: Message)
rs/canister_sandbox/src/transport.rs:88
↓ 117 callers
Method
histogram_vec
Create and register a `HistogramVec`
rs/monitoring/metrics/src/registry.rs:66
↓ 116 callers
Function
benchmark_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 callers
Method
load
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 callers
Function
runtime_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 callers
Method
update_
( &'a self, method_name: S, _: Witness, input: Input::Inner, )
rs/rust_canisters/canister_test/src/canister.rs:620
↓ 116 callers
Method
with_neuron
( &self, nid: &NeuronId, map: impl FnOnce(&Neuron) -> R, )
rs/nns/governance/src/governance.rs:1475
↓ 115 callers
Method
reject
(mut self)
rs/universal_canister/lib/src/lib.rs:487
← previous
next →
201–300 of 45,639, ranked by callers