File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
boilerplate/functions/rust/src/satellite Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ edition = "2021"
77crate-type = [" cdylib" ]
88
99[dependencies ]
10- candid = " 0.10.17 "
10+ candid = " 0.10.19 "
1111ic-cdk = " 0.18.5"
1212ic-cdk-macros = " 0.18.5"
13- serde = " 1.0.217 "
13+ serde = " 1.0.225 "
1414serde_cbor = " 0.11.2"
15- junobuild-satellite = " 0.2.5 "
15+ junobuild-satellite = " 0.2.6 "
1616junobuild-macros = " 0.1.1"
1717junobuild-utils = " 0.1.3"
1818
Original file line number Diff line number Diff 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 };
102107type InitUploadResult = record { batch_id : nat };
103108type ListMatcher = record {
104109 key : opt text;
@@ -280,7 +285,7 @@ type UploadChunk = record {
280285 order_id : opt nat;
281286};
282287type 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}
You can’t perform that action at this time.
0 commit comments