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
↓ 83 callers
Function
insert_dummy_canister
(state: &mut ReplicatedState, canister_id: CanisterId)
rs/state_manager/tests/common/mod.rs:356
↓ 83 callers
Method
iter
(&'a self)
rs/nervous_system/collections/union_multi_map/src/std_get_implementations/std_collection_implementations.rs:18
↓ 83 callers
Method
path
(&self)
rs/crypto/internal/crypto_lib/threshold_sig/canister_threshold_sig/src/signing/key_derivation.rs:60
↓ 83 callers
Method
set_checkpoints_enabled
If the argument is true, the state machine will create an on-disk checkpoint for each new state it creates. You have to call this function with `true
rs/state_machine_tests/src/lib.rs:2615
↓ 83 callers
Function
set_up_registry_canister
Creates and installs the registry canister.
rs/nns/test_utils/src/itest_helpers.rs:630
↓ 82 callers
Method
canister_state
(&self, canister_id: &CanisterId)
rs/replica_tests/src/lib.rs:578
↓ 82 callers
Function
check_ingress_status
Checks that the ingress status corresponds to a completed outcome and extracts it.
rs/test_utilities/execution_environment/src/lib.rs:3240
↓ 82 callers
Method
get
(&self)
rs/replicated_state/src/canister_state/system_state/log_memory_store/memory.rs:16
↓ 82 callers
Function
over
Over allows you to create canister endpoints easily ```no_run # use dfn_core::over; #[unsafe(export_name = "canister_query happy_birthday")] fn hb() {
rs/rust_canisters/dfn_core/src/endpoint.rs:23
↓ 81 callers
Method
add_field
(mut self, key: impl ToString, value: impl Into<SelfDescribingValue>)
rs/nns/governance/src/proposals/self_describing.rs:106
↓ 81 callers
Method
build
(self)
rs/crypto/internal/crypto_service_provider/src/builder_for_test/mod.rs:18
↓ 81 callers
Function
exhaustive_set
(input: TokenStream)
rs/types/exhaustive_derive/src/lib.rs:111
↓ 81 callers
Function
ledger_wasm
()
rs/ledger_suite/icrc1/ledger/tests/tests.rs:130
↓ 81 callers
Method
pop_front
(&mut self)
rs/bitcoin/adapter/src/common.rs:382
↓ 81 callers
Method
push
(&self, layer: BoxedRegistryLayer)
rs/monitoring/tracing/src/lib.rs:18
↓ 80 callers
Method
len
Returns how many in flight canister calls there are being made on behalf of some other (NNS) canister.
rs/nervous_system/proxied_canister_calls_tracker/src/lib.rs:126
↓ 80 callers
Method
nonce
(&self)
rs/ethereum/cketh/minter/src/tx.rs:384
↓ 80 callers
Method
with_own_subnet_id
(self, own_subnet_id: SubnetId)
rs/test_utilities/execution_environment/src/lib.rs:2482
↓ 79 callers
Method
advance_round_normal_operation_n
(&mut self, steps: u64)
rs/test_utilities/artifact_pool/src/consensus_pool.rs:426
↓ 79 callers
Method
post
(&self, path: &str)
rs/tests/driver/src/driver/farm.rs:326
↓ 79 callers
Method
state_layout
Returns `StateLayout` pointing to the directory managed by this StateManager.
rs/state_manager/src/lib.rs:1731
↓ 79 callers
Method
state_mut
(&mut self)
rs/execution_environment/src/scheduler/test_utilities.rs:159
↓ 78 callers
Method
contains
(&self, node_id: NodeId)
rs/crypto/tls_interfaces/src/lib.rs:234
↓ 78 callers
Method
get_fake_cmc
(&self)
rs/nns/governance/tests/fake.rs:215
↓ 78 callers
Method
get_fake_randomness_generator
(&self)
rs/nns/governance/tests/fake.rs:222
↓ 78 callers
Method
stop_canister
Signals a canister to stop. If the canister is running, then the canister is marked as "stopping". Stopping is meant to be an ephemeral state where t
rs/execution_environment/src/canister_manager.rs:1000
↓ 77 callers
Method
cycle_balance
Returns the cycle balance of the specified canister. # Panics This function panics if the specified canister does not exist.
rs/state_machine_tests/src/lib.rs:5106
↓ 77 callers
Method
keys
Returns an iterator over the keys. The keys are guaranteed to be sorted. A full traversal requires `O(N)` operations.
rs/replicated_state/src/page_map/int_map.rs:788
↓ 77 callers
Method
reload
Resets the registry to version 0 and reloads all data from the attached data provider. Useful to pick up data that were added at an existing version
rs/registry/fake/src/lib.rs:75
↓ 77 callers
Function
set_of_nodes
(ids: &[u64])
rs/crypto/test_utils/canister_threshold_sigs/src/lib.rs:1391
↓ 77 callers
Method
sha256_hash
Calculate the sha256 hash for the wasm.
rs/nns/sns-wasm/src/pb/mod.rs:78
↓ 77 callers
Method
with_timeout_per_test
(mut self, t: Duration)
rs/tests/driver/src/driver/group.rs:996
↓ 76 callers
Method
is_empty
Returns true if this map is empty. Returns false otherwise.
rs/crypto/tree_hash/src/flat_map.rs:192
↓ 76 callers
Function
make_subnet_list_record_key
Returns the only key whose payload is the list of subnets.
rs/registry/keys/src/lib.rs:87
↓ 76 callers
Method
reply_data_append
(mut self)
rs/universal_canister/lib/src/lib.rs:122
↓ 76 callers
Function
sigsegv
(tracker: &dyn MemoryTracker, page_index: PageIndex, access_kind: AccessKind)
rs/memory_tracker/src/tests.rs:138
↓ 76 callers
Method
with_test_neurons
(&mut self)
rs/nns/test_utils/src/common.rs:136
↓ 75 callers
Method
add
(&self, query_stats: &QueryStats)
rs/query_stats/src/metrics.rs:41
↓ 75 callers
Function
all_supported_versions
Returns a list of all certification versions from `MIN_SUPPORTED_CERTIFICATION_VERSION` up to `MAX_SUPPORTED_CERTIFICATION_VERSION`.
rs/canonical_state/certification_version/src/lib.rs:72
↓ 75 callers
Method
inc_by
(&self, count: usize)
rs/replicated_state/src/page_map/page_allocator.rs:143
↓ 75 callers
Method
raw_path
Returns the the raw root path for state
rs/state_layout/src/state_layout.rs:703
↓ 75 callers
Method
update_call
( &self, canister_id: CanisterId, sender: Principal, method: &str, pay
packages/pocket-ic/src/lib.rs:1063
↓ 74 callers
Method
as_bytes
(&self)
rs/crypto/internal/crypto_lib/types/src/curves.rs:29
↓ 74 callers
Method
build
(self)
rs/rosetta-api/icrc1/tests/system_tests.rs:165
↓ 74 callers
Method
context
(&self)
rs/replicated_state/src/canister_state/queues/message_pool.rs:134
↓ 74 callers
Method
get
(&self)
rs/types/types/src/consensus/idkg.rs:1612
↓ 74 callers
Method
get_ip_addr
(&self)
rs/tests/driver/src/driver/test_env_api.rs:859
↓ 74 callers
Method
get_own_subnet_cycles_config
(&self)
rs/execution_environment/src/scheduler/test_utilities.rs:707
↓ 74 callers
Function
invariant_compliant_mutation_as_atomic_req
Returns a `RegistryAtomicMutateRequest` containing all the invariant compliant mutations to initialize the registry. The argument `mutation_id` shoul
rs/nns/test_utils/src/registry.rs:96
↓ 74 callers
Method
now
Returns `Instant::now()` iff metrics are enabled. This is a performance optimization to avoid calling `Instant::now()` if metrics are disabled. This
rs/crypto/internal/logmon/src/metrics.rs:53
↓ 74 callers
Method
random_filtered_by_receivers
( &'a self, idkg_receivers: T, rng: &mut R, )
rs/crypto/test_utils/canister_threshold_sigs/src/lib.rs:856
↓ 74 callers
Method
upgrade_canister
( &self, canister_id: Principal, wasm_module: Vec<u8>, )
rs/ethereum/ledger-suite-orchestrator/src/management/mod.rs:296
↓ 74 callers
Function
wait_for_checkpoint
(state_manager: &impl StateManager, h: Height)
rs/state_manager/tests/common/mod.rs:331
↓ 74 callers
Method
with_scheduler_config
(self, scheduler_config: SchedulerConfig)
rs/execution_environment/src/scheduler/test_utilities.rs:916
↓ 73 callers
Method
append
(&mut self, record: &CanisterLogRecord)
rs/replicated_state/src/canister_state/system_state/log_memory_store/ring_buffer.rs:129
↓ 73 callers
Method
call
( &self, canister_id: impl Into<Principal> + Send, request: R, )
rs/nervous_system/agent/src/mock.rs:62
↓ 73 callers
Method
instruction_counter_is_at_least
Loops until the instruction counter is at least the specified amount.
rs/universal_canister/lib/src/lib.rs:747
↓ 73 callers
Method
query
(&self, payload: P)
rs/tests/driver/src/util.rs:554
↓ 73 callers
Method
state
(&self)
rs/execution_environment/src/scheduler/test_utilities.rs:155
↓ 72 callers
Method
as_slice
It is guaranteed to be safe to deserialize this array into a `wasmtime::Module`.
rs/embedders/src/serialized_module.rs:46
↓ 72 callers
Function
dependencies
Creates most common consensus components used for testing. All components share the same mocked registry with one registry version holding the subnet
rs/consensus/mocks/src/lib.rs:232
↓ 72 callers
Method
execute
(&self, command: String)
rs/recovery/src/util.rs:68
↓ 72 callers
Method
or_else
(self, f: F)
rs/interfaces/src/consensus_pool.rs:93
↓ 72 callers
Method
remove
(&mut self, key: &K)
rs/nervous_system/rate_limits/src/lib.rs:78
↓ 71 callers
Function
apply_state_transition
Updates the state to reflect the given state transition. public because it's used in tests since process_event requires canister infrastructure to ret
rs/ethereum/cketh/minter/src/state/audit.rs:15
↓ 71 callers
Method
flatten
(self)
rs/tests/driver/src/driver/plan.rs:127
↓ 71 callers
Method
get_fake_env
Constructs an `Environment` that interacts with this driver.
rs/nns/governance/tests/fake.rs:200
↓ 71 callers
Method
install
(self)
rs/tests/driver/src/driver/test_env_api.rs:1219
↓ 71 callers
Method
next
(&mut self)
rs/crypto/tree_hash/src/flat_map.rs:221
↓ 71 callers
Method
observe_duration_seconds
Observes a crypto method duration, measuring the the full duration, which includes actual cryptographic computation and the potential RPC overhead. `m
rs/crypto/internal/logmon/src/metrics.rs:82
↓ 71 callers
Function
setup_masked_random_params
Returns an `IDkgTranscriptParams` appropriate for creating a random masked sharing in this environment.
rs/crypto/test_utils/canister_threshold_sigs/src/lib.rs:1707
↓ 71 callers
Method
with_cached_neuron_stake_e8s
(mut self, cached_neuron_stake_e8s: u64)
rs/nns/governance/src/neuron/types.rs:1827
↓ 70 callers
Function
default_validation_context
The default validation context used in the validation tests
rs/https_outcalls/consensus/src/payload_builder/tests.rs:1768
↓ 70 callers
Function
message_test_id
Returns a [`MessageId`] that can be used in tests.
rs/types/types_test_utils/src/ids.rs:192
↓ 70 callers
Method
push_bytes
(mut self, data: &[u8])
rs/universal_canister/lib/src/lib.rs:169
↓ 70 callers
Method
skip
(self, count: usize)
rs/ethereum/cketh/test_utils/src/events.rs:38
↓ 70 callers
Method
state
(&self)
rs/execution_environment/src/scheduler/tests/subnet_messages.rs:527
↓ 70 callers
Method
take_cycles
(self)
rs/embedders/src/wasmtime_embedder/system_api/request_in_prep.rs:156
↓ 70 callers
Method
with_caller
(mut self, caller: Principal)
rs/ledger_suite/icrc1/test_utils/src/icrc3.rs:390
↓ 70 callers
Method
with_controllers
(self, controllers: Vec<PrincipalId>)
rs/execution_environment/src/canister_settings.rs:295
↓ 69 callers
Method
build_async
(self)
packages/pocket-ic/src/lib.rs:229
↓ 69 callers
Method
canister
( &self, canister_id: &CanisterId, )
rs/state_layout/src/state_layout.rs:1773
↓ 69 callers
Method
collect
(&self)
rs/monitoring/metrics/src/process_collector.rs:47
↓ 69 callers
Function
from_hex
(hex: &str)
rs/rosetta-api/icp/src/convert.rs:428
↓ 69 callers
Method
get
(&self, version: &Option<Version>)
rs/boundary_node/rate_limits/canister/getter.rs:92
↓ 69 callers
Method
get_first_healthy_node_snapshot
(&self)
rs/tests/driver/src/driver/test_env_api.rs:1349
↓ 69 callers
Method
get_latest_state
(&self)
rs/state_manager/src/lib.rs:3973
↓ 69 callers
Function
ledger_wasm
()
rs/ledger_suite/icp/ledger/tests/tests.rs:55
↓ 69 callers
Method
len
(&self)
rs/http_endpoints/async_utils/src/join_map.rs:56
↓ 69 callers
Method
memory_usage
Returns the memory usage of the statuses in the ingress history. See the documentation of `IngressStatus` for how the byte size of an individual `Ingr
rs/replicated_state/src/metadata_state.rs:1789
↓ 69 callers
Method
status
(&self)
rs/sns/root/src/lib.rs:174
↓ 69 callers
Function
take
Returns the prefix of the range `r` that contains at most `n` elements.
rs/ledger_suite/common/ledger_canister_core/src/range_utils.rs:48
↓ 68 callers
Method
build
(self)
rs/ethereum/cketh/test_utils/src/mock.rs:385
↓ 68 callers
Method
now
If there is a bug (related to lock acquisition), this could return u64::MAX.
rs/nns/governance/src/neuron_store.rs:286
↓ 68 callers
Method
saturating_sub
(&self, other: MemorySize)
rs/replicated_state/src/canister_state/system_state/log_memory_store/memory.rs:98
↓ 68 callers
Method
validated
()
rs/consensus/src/consensus/validator.rs:4272
↓ 68 callers
Method
with_node_id
(mut self, node_id: NodeId)
rs/crypto/temp_crypto/src/lib.rs:172
↓ 67 callers
Method
add_record
Adds a new log record.
rs/types/types/src/canister_log.rs:229
↓ 67 callers
Method
as_ref
(&self)
rs/interfaces/src/p2p/consensus.rs:153
↓ 67 callers
Function
basic_governance_proto
()
rs/sns/governance/src/governance/test_helpers.rs:54
← previous
next →
401–500 of 45,639, ranked by callers