Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dfinity/orbit
/ functions
Functions
3,207 in github.com/dfinity/orbit
⨍
Functions
3,207
◇
Types & classes
1,930
↓ 632 callers
Method
map
(&self)
core/station/impl/src/models/metadata.rs:52
↓ 421 callers
Method
insert
Inserts a key-value pair into the cache.
core/station/impl/src/core/cache.rs:37
↓ 369 callers
Method
iter
Returns an iterator over the cache's key-value pairs.
core/station/impl/src/core/cache.rs:78
↓ 316 callers
Function
variantIs
( p: EnumType, key: KeysOfUnion<T>, )
apps/wallet/src/utils/helper.utils.ts:53
↓ 255 callers
Function
mount
( component: T, options: ComponentMountingOptions<T> = {}, overrides: { initialPiniaState?: StateTre
apps/wallet/src/test.utils.ts:34
↓ 235 callers
Method
exists
Checks if an address book entry exists for the given blockchain and address.
core/station/impl/src/repositories/address_book.rs:140
↓ 178 callers
Method
to_key
(&self)
core/station/impl/src/models/user.rs:70
↓ 95 callers
Method
len
Returns the number of elements in the cache.
core/station/impl/src/core/cache.rs:27
↓ 95 callers
Function
services
()
apps/wallet/src/plugins/services.plugin.ts:48
↓ 90 callers
Method
to_vec
(&self)
core/station/impl/src/models/resource.rs:278
↓ 83 callers
Method
key
(&self)
core/station/impl/src/models/user.rs:43
↓ 78 callers
Function
mock_request
()
core/station/impl/src/models/request.rs:821
↓ 75 callers
Method
insert
(&self, key: UserKey, value: User)
core/control-panel/impl/src/repositories/user.rs:62
↓ 75 callers
Function
setup_new_env
()
tests/integration/src/setup.rs:66
↓ 74 callers
Function
print
(s: S)
libs/orbit-essentials/src/cdk.rs:96
↓ 62 callers
Method
contains
(&self, item: &MetadataItem)
core/station/impl/src/models/metadata.rs:45
↓ 62 callers
Function
mock_user
()
core/station/impl/src/models/user.rs:297
↓ 53 callers
Method
get
Returns a reference to the value at the key if it exists.
core/station/impl/src/core/cache.rs:53
↓ 52 callers
Function
next_time
Returns the current time in nanoseconds since the epoch. This function increments the time by 1ns for each call in the same round.
libs/orbit-essentials/src/cdk.rs:9
↓ 49 callers
Function
create_registry_entry
()
core/control-panel/impl/src/models/registry_entry.rs:614
↓ 46 callers
Function
execute_request
( env: &PocketIc, user_id: Principal, station_canister_id: CanisterId, request_operation_input
tests/integration/src/utils.rs:305
↓ 44 callers
Function
get_canister_wasm
(canister_name: &str)
tests/integration/src/setup.rs:266
↓ 42 callers
Method
len
(&self)
core/control-panel/impl/src/repositories/indexes/artifact_index.rs:66
↓ 42 callers
Method
mock
()
core/station/impl/src/models/metadata.rs:89
↓ 41 callers
Method
create_request
Creates a new request adding the caller user as the requester. By default, the request has an expiration date of 7 days from the creation date.
core/station/impl/src/services/request.rs:324
↓ 41 callers
Function
user_test_id
(n: u64)
tests/integration/src/utils.rs:119
↓ 40 callers
Function
submit_request
( env: &PocketIc, user_id: Principal, station_canister_id: CanisterId, request_operation_input
tests/integration/src/utils.rs:237
↓ 39 callers
Method
set
(&self, value: DisasterRecovery)
core/upgrader/impl/src/services/disaster_recovery.rs:83
↓ 38 callers
Method
log
Logs an entry to the storage. If it cannot log the entry, it prints to the canister's logs.
core/upgrader/impl/src/services/logger.rs:52
↓ 35 callers
Method
get
(&self, key: &UserKey)
core/station/impl/src/repositories/user.rs:130
↓ 35 callers
Method
to_key
(&self)
core/control-panel/impl/src/models/user.rs:89
↓ 35 callers
Function
update_raw
( env: &PocketIc, canister_id: CanisterId, sender: Principal, method: &str, payload: Vec<u
tests/integration/src/utils.rs:490
↓ 35 callers
Method
validate
(&self)
core/station/impl/src/models/user.rs:128
↓ 34 callers
Method
create
( &self, request_id: UUID, requested_by_user: UUID, input: station_api::Create
core/station/impl/src/factories/requests/add_user.rs:14
↓ 34 callers
Method
get
(&self, asset_id: &AssetId)
core/station/impl/src/services/asset.rs:41
↓ 34 callers
Function
timestamp_to_rfc3339
(nanoseconds_since_epoch: &Timestamp)
libs/orbit-essentials/src/utils/time.rs:5
↓ 34 callers
Function
unreachable
(input: never)
apps/wallet/src/utils/helper.utils.ts:47
↓ 34 callers
Method
validate
(&self)
core/station/impl/src/models/request_specifier.rs:30
↓ 33 callers
Function
mock_asset
()
core/station/impl/src/models/asset.rs:155
↓ 33 callers
Function
wait_for_request
( env: &PocketIc, user_id: Principal, station_canister_id: CanisterId, request: RequestDTO, )
tests/integration/src/utils.rs:258
↓ 31 callers
Function
call_context
Creates the call context of the current request
core/station/impl/src/core/middlewares.rs:11
↓ 31 callers
Function
get_system_info
( env: &PocketIc, user_id: Principal, station_canister_id: CanisterId, )
tests/integration/src/utils.rs:354
↓ 31 callers
Function
mock_user
()
core/control-panel/impl/src/models/user.rs:263
↓ 30 callers
Method
get
(&self)
core/station/impl/src/models/system.rs:242
↓ 30 callers
Function
time
()
libs/orbit-essentials/src/cdk.rs:80
↓ 29 callers
Method
list
( &self, input: ListAssetsInput, ctx: Option<&CallContext>, )
core/station/impl/src/services/asset.rs:153
↓ 29 callers
Method
parse
(version: string)
apps/wallet/src/utils/helper.utils.ts:244
↓ 28 callers
Function
mock_account
()
core/station/impl/src/models/account.rs:373
↓ 28 callers
Method
validate
(&self)
core/station/impl/src/models/request_operation.rs:831
↓ 27 callers
Method
all
(&self)
core/station/impl/src/repositories/indexes/request_policy_resource_index.rs:109
↓ 26 callers
Function
disable_mock_resource_validation
()
core/station/impl/src/core/validation.rs:34
↓ 25 callers
Function
mock_request_policy
()
core/station/impl/src/models/request_policy.rs:180
↓ 24 callers
Method
inc
(&mut self, service_name: &str)
libs/orbit-essentials/src/metrics.rs:361
↓ 23 callers
Method
edit_permission
Edits a permission for a given resource.
core/station/impl/src/services/permission.rs:73
↓ 23 callers
Method
find_ids_where
Finds the ids of the registry entries by the given where clause.
core/control-panel/impl/src/repositories/registry.rs:105
↓ 23 callers
Function
makeUser
(overrides: Partial<User> = {})
cli/src/audit/checks/fixtures.ts:20
↓ 23 callers
Method
reject
( &self, request_id: String, reason: Option<String>, )
tools/dfx-orbit/src/station/agent.rs:52
↓ 23 callers
Method
toString
()
apps/wallet/src/utils/helper.utils.ts:263
↓ 23 callers
Function
with_metrics_registry
Executes the given closure with the metric store for the given service name.
libs/orbit-essentials/src/metrics.rs:17
↓ 22 callers
Function
canister_status
( env: &PocketIc, sender: Option<Principal>, canister_id: Principal, )
tests/integration/src/utils.rs:413
↓ 22 callers
Method
get
(&self)
core/control-panel/impl/src/core/config.rs:70
↓ 22 callers
Method
insert
(&self, key: RequestKey, value: Request)
core/station/impl/src/repositories/request.rs:133
↓ 22 callers
Function
request_disaster_recovery
( env: &PocketIc, upgrader_id: Principal, user: Principal, request: upgrader_api::RequestDisas
tests/integration/src/utils.rs:1283
↓ 22 callers
Method
update
(methodName: string, arg: ArrayBuffer | string)
apps/wallet/src/utils/agent.utils.ts:16
↓ 21 callers
Method
is_empty
Returns true if the cache is empty.
core/station/impl/src/core/cache.rs:32
↓ 21 callers
Function
mock_address_book_entry
()
core/station/impl/src/models/address_book.rs:267
↓ 21 callers
Function
spawn
(_future: F)
libs/orbit-essentials/src/cdk.rs:41
↓ 20 callers
Method
create
( &self, input: AddAssetOperationInput, with_asset_id: Option<AssetId>, )
core/station/impl/src/services/asset.rs:52
↓ 20 callers
Method
get
()
apps/wallet/src/core/ic-agent.core.ts:27
↓ 20 callers
Method
install_canister
( &self, canister_id: Principal, mode: CanisterInstallMode, module: &[u8],
core/station/impl/src/services/change_canister.rs:160
↓ 20 callers
Method
len
(&self)
core/station/impl/src/repositories/indexes/request_policy_resource_index.rs:40
↓ 20 callers
Function
makePolicy
( specifier: RequestSpecifier, rule: RequestPolicyRule, )
cli/src/audit/checks/fixtures.ts:33
↓ 20 callers
Function
mock_transfer
()
core/station/impl/src/models/transfer.rs:322
↓ 20 callers
Function
trap
(message: &str)
libs/orbit-essentials/src/cdk.rs:92
↓ 20 callers
Function
write_system_info
A helper function to write the system information to stable memory.
core/station/impl/src/core/memory.rs:73
↓ 19 callers
Method
find_ids_where
Find request ids based on the provided condition. The request ids are sorted based on the provided sort strategy.
core/station/impl/src/repositories/request.rs:282
↓ 19 callers
Function
minVotesForRule
( rule: RequestPolicyRule, users: User[], namedRules: Map<UUID, NamedRule>, visited: Set<UUID> = new S
cli/src/audit/resolver.ts:105
↓ 19 callers
Function
upload_canister_chunks_to_asset_canister
( env: &PocketIc, canister_wasm: Vec<u8>, chunk_len: usize, )
tests/integration/src/utils.rs:1008
↓ 18 callers
Method
clear
Clears the repository by removing all the entries.
core/station/impl/src/repositories/indexes/transfer_status_index.rs:22
↓ 18 callers
Method
from
(snapshot: mgmt::Snapshot)
core/upgrader/api/src/lib.rs:222
↓ 18 callers
Method
get
(&self)
core/upgrader/impl/src/services/disaster_recovery.rs:79
↓ 18 callers
Function
toCyclesUnit
(cycles: bigint, unit: CyclesUnit)
apps/wallet/src/mappers/cycles.mapper.ts:15
↓ 17 callers
Method
add_external_canister
Adds a new external canister to the system. Can be used to create another canister to a subnet or add an existing canister.
core/station/impl/src/services/external_canister.rs:478
↓ 17 callers
Method
add_request_policy
( &self, input: AddRequestPolicyOperationInput, )
core/station/impl/src/services/request_policy.rs:56
↓ 17 callers
Function
fromCyclesUnit
(cycles: number, unit: CyclesUnit)
apps/wallet/src/mappers/cycles.mapper.ts:56
↓ 17 callers
Function
get_request
( env: &PocketIc, user_id: Principal, station_canister_id: CanisterId, request: RequestDTO, )
tests/integration/src/utils.rs:146
↓ 17 callers
Function
setupComponent
( setupFunction: () => RawBindings, )
apps/wallet/src/test.utils.ts:68
↓ 17 callers
Method
to_unique_indexes
Extracts all unique indexes for the address book entry.
core/station/impl/src/models/indexes/unique_index.rs:41
↓ 17 callers
Method
validate
(&self)
core/control-panel/impl/src/models/user.rs:178
↓ 16 callers
Method
to_bytes
(&self)
core/station/impl/src/models/system.rs:256
↓ 15 callers
Function
caller
()
libs/orbit-essentials/src/cdk.rs:37
↓ 15 callers
Method
canister_id
Gets the ID of a given canister name. If the name is already an ID, it is returned as is.
tools/dfx-orbit/src/lib.rs:69
↓ 15 callers
Function
create_canister
(env: &PocketIc, controller: Principal)
tests/integration/src/setup.rs:159
↓ 15 callers
Method
increment_request_count
(&mut self)
tests/integration/src/station_test_data.rs:146
↓ 15 callers
Function
paginated_items
Paginates a list of items based on limit and offset.
core/station/impl/src/core/utils.rs:34
↓ 15 callers
Method
remove
Removes a key from the cache and returns the value at the key if it exists.
core/station/impl/src/core/cache.rs:58
↓ 15 callers
Function
rfc3339_to_timestamp
(rfc3339: &str)
libs/orbit-essentials/src/utils/time.rs:15
↓ 15 callers
Method
values
Returns an iterator over the cache's values.
core/station/impl/src/core/cache.rs:73
↓ 14 callers
Method
add
Record an event at time `now`. It's expected that `now` is monotonically non-decreasing.
core/station/impl/src/core/limiter.rs:27
↓ 14 callers
Method
and_fullname
(mut self, fullname: &str)
core/control-panel/impl/src/repositories/registry.rs:364
next →
1–100 of 3,207, ranked by callers