Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Psychedelic/cap
/ functions
Functions
237 in github.com/Psychedelic/cap
⨍
Functions
237
◇
Types & classes
82
↓ 78 callers
Method
try_into
(self)
common/src/transaction.rs:214
↓ 43 callers
Method
map_failure
(self, key: &'static str)
sdk/rust/standards/src/dip20/cap.rs:691
↓ 36 callers
Method
get_detail
(&self, detail: &'static str)
sdk/rust/standards/src/dip20/cap.rs:671
↓ 36 callers
Method
insert
(mut self, key: impl Into<String>, value: impl Into<DetailValue>)
sdk/rust/src/details.rs:21
↓ 27 callers
Method
insert
Try to insert an event into the list.
common/src/transaction_list.rs:94
↓ 26 callers
Function
e
(time: u64, caller: Principal)
common/src/transaction_list.rs:401
↓ 24 callers
Method
len
(&self)
common/src/transaction_list.rs:83
↓ 22 callers
Method
root_hash
(&self)
common/src/bucket.rs:220
↓ 19 callers
Method
insert
(&mut self, event: Event)
common/src/bucket.rs:209
↓ 18 callers
Method
map_failure
(self, key: &'static str)
sdk/rust/standards/src/xtc.rs:45
↓ 18 callers
Method
root_hash
(&self)
common/src/transaction_list.rs:268
↓ 18 callers
Function
try_get_and_clone
( map: &HashMap<String, DetailValue>, key: &'static str, )
sdk/rust/standards/src/xtc.rs:51
↓ 17 callers
Method
into
(self)
common/src/transaction.rs:183
↓ 13 callers
Method
get
()
sdk/rust/src/env.rs:38
↓ 11 callers
Method
contract_id
(&self)
common/src/bucket.rs:204
↓ 11 callers
Method
map_failure
(self, key: &'static str)
sdk/rust/standards/src/dip721.rs:186
↓ 11 callers
Function
try_get_and_clone
( map: &HashMap<String, DetailValue>, key: &'static str, )
sdk/rust/standards/src/dip721.rs:192
↓ 9 callers
Method
build
(self)
sdk/rust/src/details.rs:28
↓ 7 callers
Method
into
(self)
sdk/rust/src/transactions/mod.rs:43
↓ 7 callers
Method
into_str
(self)
sdk/rust/standards/src/dip20/mod.rs:38
↓ 6 callers
Method
into
(self)
sdk/rust/src/event/typed.rs:92
↓ 5 callers
Method
extract_principal_ids
(&self)
common/src/transaction.rs:51
↓ 5 callers
Function
insert
(event: IndefiniteEvent)
canisters/root/src/lib.rs:157
↓ 5 callers
Method
into
(self)
sdk/rust/standards/src/dip20/mod.rs:29
↓ 4 callers
Function
event
Create a mock indefinite event.
canisters/root/src/upgrade.rs:164
↓ 4 callers
Method
operation
The operation of the event
sdk/rust/src/event/typed.rs:86
↓ 4 callers
Method
size
(&self)
common/src/bucket.rs:200
↓ 4 callers
Method
store
(&self)
canisters/root/src/migration.rs:32
↓ 4 callers
Function
test_rescue
(id: Principal, title: &'static str, store: F)
canisters/root/src/upgrade.rs:186
↓ 4 callers
Method
to_event
(self, time: u64)
common/src/transaction.rs:195
↓ 4 callers
Method
witness_transaction
(&self, id: u64)
common/src/transaction_list.rs:240
↓ 4 callers
Function
write_new_users_to_cap
( cap_id: Principal, contract_id: Principal, users: Vec<Principal>, )
canisters/root/src/lib.rs:276
↓ 3 callers
Function
flush_to_cap
Force a flush of pending transactions to Cap.
sdk/rust/src/transaction/insert.rs:167
↓ 3 callers
Method
is_complete
Returns `true` if all of the events have been processes and we're ready to convert to a
canisters/root/src/multi_stage_reader.rs:96
↓ 3 callers
Method
is_empty
(&self)
common/src/transaction_list.rs:89
↓ 3 callers
Method
migrate
(self)
canisters/root/src/migration.rs:60
↓ 3 callers
Function
time
()
canisters/root/src/lib.rs:139
↓ 2 callers
Method
as_hash_tree
(&self)
common/src/bucket.rs:227
↓ 2 callers
Method
as_hash_tree
(&self)
common/src/transaction_list.rs:284
↓ 2 callers
Method
caller
(mut self, caller: Principal)
sdk/rust/src/event/builder.rs:49
↓ 2 callers
Method
details
(&self)
canisters/sdk_example/src/lib.rs:85
↓ 2 callers
Method
details
(mut self, details: impl IntoEvent)
sdk/rust/src/event/builder.rs:80
↓ 2 callers
Method
get_bucket_for
(&self, arg: WithIdArg)
common/src/bucket.rs:175
↓ 2 callers
Method
get_next_canisters
(&self, arg: WithWitnessArg)
common/src/bucket.rs:39
↓ 2 callers
Method
get_token_contract_root_bucket
Returns the root bucket canister associated with the given token contract.
sdk/rust/core/src/index.rs:27
↓ 2 callers
Method
get_token_transactions
( &self, arg: GetTokenTransactionsArg, )
common/src/bucket.rs:143
↓ 2 callers
Method
get_transaction
(&self, arg: WithIdArg)
common/src/bucket.rs:59
↓ 2 callers
Method
get_transactions
(&self, arg: GetTransactionsArg)
common/src/bucket.rs:81
↓ 2 callers
Method
get_transactions_for_user
(&self, principal: &Principal, page: u32)
common/src/transaction_list.rs:118
↓ 2 callers
Method
get_user_transactions
( &self, arg: GetUserTransactionsArg, )
common/src/bucket.rs:112
↓ 2 callers
Function
handshake
Handshakes with Cap. This either grabs important metadata or creates the root bucket for this contract and gives it `creation_cycles` cycles. # Panic
sdk/rust/src/handshake.rs:24
↓ 2 callers
Method
hash
Compute the hash for the given event.
common/src/transaction.rs:104
↓ 2 callers
Method
insert_batch
Insert a batch of transaction to the hash queue, this is used when an in-progress reader is still working.
canisters/root/src/multi_stage_reader.rs:42
↓ 2 callers
Method
insert_many
Inserts the given transactions.
sdk/rust/core/src/root.rs:45
↓ 2 callers
Function
insert_sync
Insert a transaction into Cap without needing an await, this method guarantees finality of the transactions and can handle insertion errors that might
sdk/rust/src/transaction/insert.rs:126
↓ 2 callers
Function
install_code
(canister_id: Principal, contract_id: Principal, writers: &[Principal])
canisters/router/src/installer.rs:34
↓ 2 callers
Method
page
(self)
sdk/rust/src/transactions/mod.rs:55
↓ 2 callers
Function
pending_transactions
Return the array of pending transactions. Can be used in a pre-upgrade hook. # Panics If there is an ongoing flush that is not finalized yet.
sdk/rust/src/transaction/insert.rs:151
↓ 2 callers
Method
progress
Make further progress on this reader by reading `n` items from the v2 structure and putting it in the transaction list.
canisters/root/src/multi_stage_reader.rs:84
↓ 2 callers
Method
store
Stores the [`CapEnv`] in the canister.
sdk/rust/src/env.rs:34
↓ 2 callers
Function
t
(x: &str)
sdk/rust/src/transaction/insert.rs:206
↓ 2 callers
Function
upgrade_progress
()
canisters/root/src/upgrade.rs:115
↓ 2 callers
Method
witness_transactions_for_user
(&self, principal: &Principal, page: u32)
common/src/transaction_list.rs:171
↓ 1 callers
Function
archive
Combines all the backup logic required for Cap in a safe way. It's recommended to use this method instead of the old [CapEnv::to_archive]. # Panics
sdk/rust/src/archive.rs:36
↓ 1 callers
Function
balance
()
canisters/root/src/lib.rs:294
↓ 1 callers
Function
create_events
(size: usize)
canisters/root/src/upgrade.rs:176
↓ 1 callers
Function
domain_sep
(s: &str)
common/src/transaction.rs:321
↓ 1 callers
Function
export_candid
()
canisters/bucket/src/lib.rs:111
↓ 1 callers
Function
export_candid
()
canisters/root/src/lib.rs:305
↓ 1 callers
Function
export_candid
()
canisters/sdk_example/src/lib.rs:206
↓ 1 callers
Function
export_candid
()
canisters/router/src/lib.rs:178
↓ 1 callers
Method
extract_token_ids
(&self)
common/src/transaction.rs:79
↓ 1 callers
Function
from_archive
(archive: Archive)
sdk/rust/src/archive.rs:62
↓ 1 callers
Method
get_bucket_for
Returns a bucket that be used to query for the given transaction ID.
sdk/rust/core/src/root.rs:26
↓ 1 callers
Method
get_data
If there are no more work to be done on this reader, return the Data instance. the InProgressReadFromStable should be deleted after this call.
canisters/root/src/multi_stage_reader.rs:107
↓ 1 callers
Function
get_transaction
(arg: WithIdArg)
canisters/root/src/lib.rs:107
↓ 1 callers
Method
get_transaction
Returns the transaction corresponding to the passed transaction ID.
sdk/rust/core/src/bucket.rs:37
↓ 1 callers
Method
get_transaction
(&self, id: u64)
common/src/transaction_list.rs:225
↓ 1 callers
Method
get_transactions
Returns all of the transactions for this contract.
sdk/rust/core/src/bucket.rs:52
↓ 1 callers
Method
get_transactions_for_contract
(&self, principal: &Principal, page: u32)
common/src/transaction_list.rs:136
↓ 1 callers
Method
get_transactions_for_token
(&self, token_id: &u64, page: u32)
common/src/transaction_list.rs:154
↓ 1 callers
Function
get_user_root_buckets
(arg: GetUserRootBucketsArg)
canisters/router/src/lib.rs:87
↓ 1 callers
Method
get_user_transactions
Returns all of the transactions associated with the given user.
sdk/rust/core/src/bucket.rs:70
↓ 1 callers
Function
init
()
canisters/sdk_example/src/lib.rs:32
↓ 1 callers
Function
insert_many
(transactions: Vec<IndefiniteEvent>)
canisters/root/src/lib.rs:197
↓ 1 callers
Function
insert_many
Insert many transactions using one write to Cap.
sdk/rust/src/transaction/insert.rs:77
↓ 1 callers
Method
install_code
(&self, canister: Principal)
sdk/rust/core/src/router.rs:27
↓ 1 callers
Method
into
(self)
sdk/rust/standards/src/dip20/cap.rs:566
↓ 1 callers
Method
into_txrecord
(self)
sdk/rust/standards/src/dip20/cap.rs:153
↓ 1 callers
Method
last_page_for_contract
(&self, principal: &Principal)
common/src/transaction_list.rs:146
↓ 1 callers
Method
last_page_for_token
(&self, token_id: &u64)
common/src/transaction_list.rs:163
↓ 1 callers
Method
last_page_for_user
(&self, principal: &Principal)
common/src/transaction_list.rs:128
↓ 1 callers
Method
operation
(mut self, operation: impl Into<String>)
sdk/rust/src/event/builder.rs:61
↓ 1 callers
Function
post_upgrade
()
canisters/root/src/upgrade.rs:31
↓ 1 callers
Method
rem
Return the number of remaining events.
canisters/root/src/multi_stage_reader.rs:101
↓ 1 callers
Function
rescue
()
canisters/root/src/upgrade.rs:89
↓ 1 callers
Function
restore_pending_transactions
Restore the transactions, it keeps the previous pending transactions as well.
sdk/rust/src/transaction/insert.rs:159
↓ 1 callers
Method
set_next_canisters
(&mut self, canisters: Vec<Principal>)
common/src/bucket.rs:214
↓ 1 callers
Method
signal
(&self)
sdk/rust/src/env.rs:116
↓ 1 callers
Method
status
(&self)
canisters/root/src/multi_stage_reader.rs:36
next →
1–100 of 237, ranked by callers