You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/asset-canister/SKILL.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Access patterns:
34
34
35
35
5.**Deploying to the wrong canister name.** If dfx.json has `"frontend"` but you run `dfx deploy assets`, it creates a new canister instead of updating the existing one.
36
36
37
-
6.**Exceeding the 2GB canister storage limit.** The asset canister stores all files in a single canister. Large media files (videos, datasets) will exhaust canister storage. Use a dedicated storage solution for large files.
37
+
6.**Exceeding the 4GB Wasm heap memory limit.** The asset canister stores all files in a single canister. Large media files (videos, datasets) will exhaust canister storage. Use a dedicated storage solution for large files.
38
38
39
39
7.**Not configuring `allow_raw_access` for API responses.** By default, the asset canister serves certified responses through the `ic0.app` domain. If you need raw (uncertified) access for specific assets, configure it in `.ic-assets.json5`.
40
40
@@ -74,13 +74,11 @@ Recommended approach: place the file in your `public/` or `static/` folder so yo
ICRC-1 is the fungible token standard on Internet Computer, defining transfer, balance, and metadata interfaces. ICRC-2 extends it with approve/transferFrom (allowance) mechanics, enabling third-party spending like ERC-20 on Ethereum.
6
6
7
7
## Prerequisites
8
8
- dfx >= 0.24.0
9
9
- For Motoko: mops with `core = "2.0.0"` in mops.toml
10
-
- For Rust: `ic-cdk = "0.17"`, `candid = "0.10"`, `icrc-ledger-types = "0.1"` in Cargo.toml
10
+
- For Rust: `ic-cdk = "0.18"`, `candid = "0.10"`, `icrc-ledger-types = "0.1"` in Cargo.toml
11
11
12
12
## Canister IDs
13
13
@@ -47,6 +47,7 @@ Index canisters (for transaction history):
47
47
```motoko
48
48
import Principal "mo:core/Principal";
49
49
import Nat "mo:core/Nat";
50
+
import Nat8 "mo:core/Nat8";
50
51
import Nat64 "mo:core/Nat64";
51
52
import Blob "mo:core/Blob";
52
53
import Time "mo:core/Time";
@@ -219,8 +220,7 @@ persistent actor {
219
220
220
221
```toml
221
222
[dependencies]
222
-
ic-cdk = "0.17"
223
-
ic-cdk-timers = "0.11"
223
+
ic-cdk = "0.18"
224
224
candid = "0.10"
225
225
icrc-ledger-types = "0.1"
226
226
serde = { version = "1", features = ["derive"] }
@@ -234,7 +234,7 @@ use icrc_ledger_types::icrc1::account::Account;
0 commit comments