MCPcopy Create free account

hub / github.com/Psychedelic/cap / functions

Functions237 in github.com/Psychedelic/cap

↓ 78 callersMethodtry_into
(self)
common/src/transaction.rs:214
↓ 43 callersMethodmap_failure
(self, key: &'static str)
sdk/rust/standards/src/dip20/cap.rs:691
↓ 36 callersMethodget_detail
(&self, detail: &'static str)
sdk/rust/standards/src/dip20/cap.rs:671
↓ 36 callersMethodinsert
(mut self, key: impl Into<String>, value: impl Into<DetailValue>)
sdk/rust/src/details.rs:21
↓ 27 callersMethodinsert
Try to insert an event into the list.
common/src/transaction_list.rs:94
↓ 26 callersFunctione
(time: u64, caller: Principal)
common/src/transaction_list.rs:401
↓ 24 callersMethodlen
(&self)
common/src/transaction_list.rs:83
↓ 22 callersMethodroot_hash
(&self)
common/src/bucket.rs:220
↓ 19 callersMethodinsert
(&mut self, event: Event)
common/src/bucket.rs:209
↓ 18 callersMethodmap_failure
(self, key: &'static str)
sdk/rust/standards/src/xtc.rs:45
↓ 18 callersMethodroot_hash
(&self)
common/src/transaction_list.rs:268
↓ 18 callersFunctiontry_get_and_clone
( map: &HashMap<String, DetailValue>, key: &'static str, )
sdk/rust/standards/src/xtc.rs:51
↓ 17 callersMethodinto
(self)
common/src/transaction.rs:183
↓ 13 callersMethodget
()
sdk/rust/src/env.rs:38
↓ 11 callersMethodcontract_id
(&self)
common/src/bucket.rs:204
↓ 11 callersMethodmap_failure
(self, key: &'static str)
sdk/rust/standards/src/dip721.rs:186
↓ 11 callersFunctiontry_get_and_clone
( map: &HashMap<String, DetailValue>, key: &'static str, )
sdk/rust/standards/src/dip721.rs:192
↓ 9 callersMethodbuild
(self)
sdk/rust/src/details.rs:28
↓ 7 callersMethodinto
(self)
sdk/rust/src/transactions/mod.rs:43
↓ 7 callersMethodinto_str
(self)
sdk/rust/standards/src/dip20/mod.rs:38
↓ 6 callersMethodinto
(self)
sdk/rust/src/event/typed.rs:92
↓ 5 callersMethodextract_principal_ids
(&self)
common/src/transaction.rs:51
↓ 5 callersFunctioninsert
(event: IndefiniteEvent)
canisters/root/src/lib.rs:157
↓ 5 callersMethodinto
(self)
sdk/rust/standards/src/dip20/mod.rs:29
↓ 4 callersFunctionevent
Create a mock indefinite event.
canisters/root/src/upgrade.rs:164
↓ 4 callersMethodoperation
The operation of the event
sdk/rust/src/event/typed.rs:86
↓ 4 callersMethodsize
(&self)
common/src/bucket.rs:200
↓ 4 callersMethodstore
(&self)
canisters/root/src/migration.rs:32
↓ 4 callersFunctiontest_rescue
(id: Principal, title: &'static str, store: F)
canisters/root/src/upgrade.rs:186
↓ 4 callersMethodto_event
(self, time: u64)
common/src/transaction.rs:195
↓ 4 callersMethodwitness_transaction
(&self, id: u64)
common/src/transaction_list.rs:240
↓ 4 callersFunctionwrite_new_users_to_cap
( cap_id: Principal, contract_id: Principal, users: Vec<Principal>, )
canisters/root/src/lib.rs:276
↓ 3 callersFunctionflush_to_cap
Force a flush of pending transactions to Cap.
sdk/rust/src/transaction/insert.rs:167
↓ 3 callersMethodis_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 callersMethodis_empty
(&self)
common/src/transaction_list.rs:89
↓ 3 callersMethodmigrate
(self)
canisters/root/src/migration.rs:60
↓ 3 callersFunctiontime
()
canisters/root/src/lib.rs:139
↓ 2 callersMethodas_hash_tree
(&self)
common/src/bucket.rs:227
↓ 2 callersMethodas_hash_tree
(&self)
common/src/transaction_list.rs:284
↓ 2 callersMethodcaller
(mut self, caller: Principal)
sdk/rust/src/event/builder.rs:49
↓ 2 callersMethoddetails
(&self)
canisters/sdk_example/src/lib.rs:85
↓ 2 callersMethoddetails
(mut self, details: impl IntoEvent)
sdk/rust/src/event/builder.rs:80
↓ 2 callersMethodget_bucket_for
(&self, arg: WithIdArg)
common/src/bucket.rs:175
↓ 2 callersMethodget_next_canisters
(&self, arg: WithWitnessArg)
common/src/bucket.rs:39
↓ 2 callersMethodget_token_contract_root_bucket
Returns the root bucket canister associated with the given token contract.
sdk/rust/core/src/index.rs:27
↓ 2 callersMethodget_token_transactions
( &self, arg: GetTokenTransactionsArg, )
common/src/bucket.rs:143
↓ 2 callersMethodget_transaction
(&self, arg: WithIdArg)
common/src/bucket.rs:59
↓ 2 callersMethodget_transactions
(&self, arg: GetTransactionsArg)
common/src/bucket.rs:81
↓ 2 callersMethodget_transactions_for_user
(&self, principal: &Principal, page: u32)
common/src/transaction_list.rs:118
↓ 2 callersMethodget_user_transactions
( &self, arg: GetUserTransactionsArg, )
common/src/bucket.rs:112
↓ 2 callersFunctionhandshake
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 callersMethodhash
Compute the hash for the given event.
common/src/transaction.rs:104
↓ 2 callersMethodinsert_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 callersMethodinsert_many
Inserts the given transactions.
sdk/rust/core/src/root.rs:45
↓ 2 callersFunctioninsert_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 callersFunctioninstall_code
(canister_id: Principal, contract_id: Principal, writers: &[Principal])
canisters/router/src/installer.rs:34
↓ 2 callersMethodpage
(self)
sdk/rust/src/transactions/mod.rs:55
↓ 2 callersFunctionpending_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 callersMethodprogress
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 callersMethodstore
Stores the [`CapEnv`] in the canister.
sdk/rust/src/env.rs:34
↓ 2 callersFunctiont
(x: &str)
sdk/rust/src/transaction/insert.rs:206
↓ 2 callersFunctionupgrade_progress
()
canisters/root/src/upgrade.rs:115
↓ 2 callersMethodwitness_transactions_for_user
(&self, principal: &Principal, page: u32)
common/src/transaction_list.rs:171
↓ 1 callersFunctionarchive
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 callersFunctionbalance
()
canisters/root/src/lib.rs:294
↓ 1 callersFunctioncreate_events
(size: usize)
canisters/root/src/upgrade.rs:176
↓ 1 callersFunctiondomain_sep
(s: &str)
common/src/transaction.rs:321
↓ 1 callersFunctionexport_candid
()
canisters/bucket/src/lib.rs:111
↓ 1 callersFunctionexport_candid
()
canisters/root/src/lib.rs:305
↓ 1 callersFunctionexport_candid
()
canisters/sdk_example/src/lib.rs:206
↓ 1 callersFunctionexport_candid
()
canisters/router/src/lib.rs:178
↓ 1 callersMethodextract_token_ids
(&self)
common/src/transaction.rs:79
↓ 1 callersFunctionfrom_archive
(archive: Archive)
sdk/rust/src/archive.rs:62
↓ 1 callersMethodget_bucket_for
Returns a bucket that be used to query for the given transaction ID.
sdk/rust/core/src/root.rs:26
↓ 1 callersMethodget_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 callersFunctionget_transaction
(arg: WithIdArg)
canisters/root/src/lib.rs:107
↓ 1 callersMethodget_transaction
Returns the transaction corresponding to the passed transaction ID.
sdk/rust/core/src/bucket.rs:37
↓ 1 callersMethodget_transaction
(&self, id: u64)
common/src/transaction_list.rs:225
↓ 1 callersMethodget_transactions
Returns all of the transactions for this contract.
sdk/rust/core/src/bucket.rs:52
↓ 1 callersMethodget_transactions_for_contract
(&self, principal: &Principal, page: u32)
common/src/transaction_list.rs:136
↓ 1 callersMethodget_transactions_for_token
(&self, token_id: &u64, page: u32)
common/src/transaction_list.rs:154
↓ 1 callersFunctionget_user_root_buckets
(arg: GetUserRootBucketsArg)
canisters/router/src/lib.rs:87
↓ 1 callersMethodget_user_transactions
Returns all of the transactions associated with the given user.
sdk/rust/core/src/bucket.rs:70
↓ 1 callersFunctioninit
()
canisters/sdk_example/src/lib.rs:32
↓ 1 callersFunctioninsert_many
(transactions: Vec<IndefiniteEvent>)
canisters/root/src/lib.rs:197
↓ 1 callersFunctioninsert_many
Insert many transactions using one write to Cap.
sdk/rust/src/transaction/insert.rs:77
↓ 1 callersMethodinstall_code
(&self, canister: Principal)
sdk/rust/core/src/router.rs:27
↓ 1 callersMethodinto
(self)
sdk/rust/standards/src/dip20/cap.rs:566
↓ 1 callersMethodinto_txrecord
(self)
sdk/rust/standards/src/dip20/cap.rs:153
↓ 1 callersMethodlast_page_for_contract
(&self, principal: &Principal)
common/src/transaction_list.rs:146
↓ 1 callersMethodlast_page_for_token
(&self, token_id: &u64)
common/src/transaction_list.rs:163
↓ 1 callersMethodlast_page_for_user
(&self, principal: &Principal)
common/src/transaction_list.rs:128
↓ 1 callersMethodoperation
(mut self, operation: impl Into<String>)
sdk/rust/src/event/builder.rs:61
↓ 1 callersFunctionpost_upgrade
()
canisters/root/src/upgrade.rs:31
↓ 1 callersMethodrem
Return the number of remaining events.
canisters/root/src/multi_stage_reader.rs:101
↓ 1 callersFunctionrescue
()
canisters/root/src/upgrade.rs:89
↓ 1 callersFunctionrestore_pending_transactions
Restore the transactions, it keeps the previous pending transactions as well.
sdk/rust/src/transaction/insert.rs:159
↓ 1 callersMethodset_next_canisters
(&mut self, canisters: Vec<Principal>)
common/src/bucket.rs:214
↓ 1 callersMethodsignal
(&self)
sdk/rust/src/env.rs:116
↓ 1 callersMethodstatus
(&self)
canisters/root/src/multi_stage_reader.rs:36
next →1–100 of 237, ranked by callers