Skip to content

Commit 9ecd3c9

Browse files
feat: Update boilerplate (#203)
Co-authored-by: juno-bot <[email protected]>
1 parent c6aa9b1 commit 9ecd3c9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

boilerplate/functions/rust/src/satellite/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ edition = "2021"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
candid = "0.10.17"
10+
candid = "0.10.19"
1111
ic-cdk = "0.18.5"
1212
ic-cdk-macros = "0.18.5"
13-
serde = "1.0.217"
13+
serde = "1.0.225"
1414
serde_cbor = "0.11.2"
15-
junobuild-satellite = "0.2.5"
15+
junobuild-satellite = "0.2.6"
1616
junobuild-macros = "0.1.1"
1717
junobuild-utils = "0.1.3"
1818

boilerplate/functions/rust/src/satellite/satellite.did

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ type InitAssetKey = record {
9999
encoding_type : opt text;
100100
full_path : text;
101101
};
102+
type InitSatelliteArgs = record {
103+
controllers : vec principal;
104+
storage : opt InitStorageArgs;
105+
};
106+
type InitStorageArgs = record { system_memory : opt Memory };
102107
type InitUploadResult = record { batch_id : nat };
103108
type ListMatcher = record {
104109
key : opt text;
@@ -280,7 +285,7 @@ type UploadChunk = record {
280285
order_id : opt nat;
281286
};
282287
type UploadChunkResult = record { chunk_id : nat };
283-
service : () -> {
288+
service : (InitSatelliteArgs) -> {
284289
commit_asset_upload : (CommitBatch) -> ();
285290
commit_proposal : (CommitProposal) -> (null);
286291
commit_proposal_asset_upload : (CommitBatch) -> ();
@@ -350,6 +355,7 @@ service : () -> {
350355
set_rule : (CollectionType, text, SetRule) -> (Rule);
351356
set_storage_config : (SetStorageConfig) -> (StorageConfig);
352357
submit_proposal : (nat) -> (nat, Proposal);
358+
switch_storage_system_memory : () -> ();
353359
upload_asset_chunk : (UploadChunk) -> (UploadChunkResult);
354360
upload_proposal_asset_chunk : (UploadChunk) -> (UploadChunkResult);
355361
}

0 commit comments

Comments
 (0)