Expand description
cap_core
is a low-level library for interacting with cap from an IC
canister.
If you’re looking to interact with cap, you may be looking for the cap_dk
instead.
Modules§
- did
- This file contains all of the type definitions used in the candid files across the different canisters and the services.
- transaction
- transaction_
list
Structs§
- Bucket
- A contract-specific bucket canister.
- Bucket
Init Args - GetBucket
Response - GetIndex
Canisters Response - GetNext
Canisters Response - GetToken
Contract Root Bucket Arg - GetToken
Contract Root Bucket Response - GetToken
Transactions Arg - GetTransactions
Arg - GetTransactions
Response - GetTransactions
Response Borrowed - GetUser
Root Buckets Arg - GetUser
Root Buckets Response - GetUser
Transactions Arg - Index
- A Cap index canister.
- Root
Bucket - A root bucket.
- Router
- A router.
- Transaction
List - A list contains a series of transactions and appropriate indexers.
- With
IdArg - With
Witness Arg - Witness
Enums§
- GetContract
Root Error - An error thrown when querying for a contract’s root bucket.
- GetTransaction
Response
Type Aliases§
- Bucket
Id - The principal id of a bucket canister.
- Event
Hash - Hash of an even which is obtained by
Event::hash
- Index
Canister Id - The principal id of a index canister.
- Root
Bucket Id - The principal id of a root bucket canister.
- Token
Contract Id - The principal id of a token contract this is integrating Cap.
- Transaction
Id - The numeric type used to represent a transaction id.
- UserId
- The principal id of a user.