Skip to content

Commit ecf77bf

Browse files
committed
chore: upgrade dependencies
1 parent 4a79288 commit ecf77bf

File tree

22 files changed

+465
-493
lines changed

22 files changed

+465
-493
lines changed

Cargo.lock

Lines changed: 364 additions & 457 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ strip = true
1919
opt-level = 's'
2020

2121
[workspace.package]
22-
version = "1.2.2"
22+
version = "1.2.3"
2323
edition = "2021"
2424
repository = "https://github.com/ldclabs/ic-oss"
2525
keywords = ["object_store", "storage", "oss", "s3", "icp"]
@@ -49,8 +49,8 @@ sha2 = "0.10"
4949
sha3 = "0.10"
5050
aes-gcm = "0.10"
5151
num-traits = "0.2"
52-
ic-cdk = "0.18"
53-
ic-cdk-timers = "0.12"
52+
ic-cdk = "0.19"
53+
ic-cdk-timers = "1.0"
5454
ic-stable-structures = "0.7"
5555
icrc-ledger-types = "0.1"
5656
ic-http-certification = { version = "3.0" }

examples/ai_canister/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ fn custom_getrandom(buf: &mut [u8]) -> Result<(), getrandom::Error> {
6060
}
6161

6262
pub fn init_rand() {
63-
ic_cdk_timers::set_timer(
64-
Duration::from_secs(0),
65-
|| ic_cdk::futures::spawn(set_rand()),
66-
);
63+
ic_cdk_timers::set_timer(Duration::from_secs(0), set_rand());
6764
getrandom::register_custom_getrandom!(custom_getrandom);
6865
}
6966

examples/upload_js/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"license": "ISC",
1212
"description": "",
1313
"dependencies": {
14-
"@dfinity/agent": "^3.2.4",
15-
"@dfinity/identity": "^3.2.4",
16-
"@dfinity/principal": "^3.2.4",
17-
"@dfinity/utils": "^3.0.1",
18-
"@ldclabs/ic_oss_ts": "^1.2.0"
14+
"@dfinity/agent": "^3.4.3",
15+
"@dfinity/identity": "^3.4.3",
16+
"@dfinity/principal": "^3.4.3",
17+
"@dfinity/utils": "^4.0.1",
18+
"@ldclabs/ic_oss_ts": "^1.2.3"
1919
}
2020
}

src/declarations/ic_oss_bucket/ic_oss_bucket.did

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ type CanisterStatusResult = record {
2323
memory_metrics : MemoryMetrics;
2424
status : CanisterStatusType;
2525
memory_size : nat;
26+
ready_for_migration : bool;
27+
version : nat64;
2628
cycles : nat;
2729
settings : DefiniteCanisterSettings;
2830
query_stats : QueryStats;
@@ -47,13 +49,15 @@ type CreateFolderInput = record { name : text; parent : nat32 };
4749
type DefiniteCanisterSettings = record {
4850
freezing_threshold : nat;
4951
wasm_memory_threshold : nat;
52+
environment_variables : vec EnvironmentVariable;
5053
controllers : vec principal;
5154
reserved_cycles_limit : nat;
5255
log_visibility : LogVisibility;
5356
wasm_memory_limit : nat;
5457
memory_allocation : nat;
5558
compute_allocation : nat;
5659
};
60+
type EnvironmentVariable = record { value : text; name : text };
5761
type FileInfo = record {
5862
ex : opt vec record { text; MetadataValue };
5963
id : nat32;

src/declarations/ic_oss_bucket/ic_oss_bucket.did.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export interface CanisterStatusResult {
2828
'memory_metrics' : MemoryMetrics,
2929
'status' : CanisterStatusType,
3030
'memory_size' : bigint,
31+
'ready_for_migration' : boolean,
32+
'version' : bigint,
3133
'cycles' : bigint,
3234
'settings' : DefiniteCanisterSettings,
3335
'query_stats' : QueryStats,
@@ -54,13 +56,15 @@ export interface CreateFolderInput { 'name' : string, 'parent' : number }
5456
export interface DefiniteCanisterSettings {
5557
'freezing_threshold' : bigint,
5658
'wasm_memory_threshold' : bigint,
59+
'environment_variables' : Array<EnvironmentVariable>,
5760
'controllers' : Array<Principal>,
5861
'reserved_cycles_limit' : bigint,
5962
'log_visibility' : LogVisibility,
6063
'wasm_memory_limit' : bigint,
6164
'memory_allocation' : bigint,
6265
'compute_allocation' : bigint,
6366
}
67+
export interface EnvironmentVariable { 'value' : string, 'name' : string }
6468
export interface FileInfo {
6569
'ex' : [] | [Array<[string, MetadataValue]>],
6670
'id' : number,

src/declarations/ic_oss_bucket/ic_oss_bucket.did.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ export const idlFactory = ({ IDL }) => {
9999
'stopping' : IDL.Null,
100100
'running' : IDL.Null,
101101
});
102+
const EnvironmentVariable = IDL.Record({
103+
'value' : IDL.Text,
104+
'name' : IDL.Text,
105+
});
102106
const LogVisibility = IDL.Variant({
103107
'controllers' : IDL.Null,
104108
'public' : IDL.Null,
@@ -107,6 +111,7 @@ export const idlFactory = ({ IDL }) => {
107111
const DefiniteCanisterSettings = IDL.Record({
108112
'freezing_threshold' : IDL.Nat,
109113
'wasm_memory_threshold' : IDL.Nat,
114+
'environment_variables' : IDL.Vec(EnvironmentVariable),
110115
'controllers' : IDL.Vec(IDL.Principal),
111116
'reserved_cycles_limit' : IDL.Nat,
112117
'log_visibility' : LogVisibility,
@@ -124,6 +129,8 @@ export const idlFactory = ({ IDL }) => {
124129
'memory_metrics' : MemoryMetrics,
125130
'status' : CanisterStatusType,
126131
'memory_size' : IDL.Nat,
132+
'ready_for_migration' : IDL.Bool,
133+
'version' : IDL.Nat64,
127134
'cycles' : IDL.Nat,
128135
'settings' : DefiniteCanisterSettings,
129136
'query_stats' : QueryStats,

src/declarations/ic_oss_cluster/ic_oss_cluster.did

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type BucketDeploymentInfo = record {
1010
type CanisterSettings = record {
1111
freezing_threshold : opt nat;
1212
wasm_memory_threshold : opt nat;
13+
environment_variables : opt vec EnvironmentVariable;
1314
controllers : opt vec principal;
1415
reserved_cycles_limit : opt nat;
1516
log_visibility : opt LogVisibility;
@@ -21,6 +22,8 @@ type CanisterStatusResult = record {
2122
memory_metrics : MemoryMetrics;
2223
status : CanisterStatusType;
2324
memory_size : nat;
25+
ready_for_migration : bool;
26+
version : nat64;
2427
cycles : nat;
2528
settings : DefiniteCanisterSettings;
2629
query_stats : QueryStats;
@@ -50,6 +53,7 @@ type ClusterInfo = record {
5053
type DefiniteCanisterSettings = record {
5154
freezing_threshold : nat;
5255
wasm_memory_threshold : nat;
56+
environment_variables : vec EnvironmentVariable;
5357
controllers : vec principal;
5458
reserved_cycles_limit : nat;
5559
log_visibility : LogVisibility;
@@ -58,6 +62,7 @@ type DefiniteCanisterSettings = record {
5862
compute_allocation : nat;
5963
};
6064
type DeployWasmInput = record { args : opt blob; canister : principal };
65+
type EnvironmentVariable = record { value : text; name : text };
6166
type InitArgs = record {
6267
ecdsa_key_name : text;
6368
governance_canister : opt principal;

src/declarations/ic_oss_cluster/ic_oss_cluster.did.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface BucketDeploymentInfo {
1717
export interface CanisterSettings {
1818
'freezing_threshold' : [] | [bigint],
1919
'wasm_memory_threshold' : [] | [bigint],
20+
'environment_variables' : [] | [Array<EnvironmentVariable>],
2021
'controllers' : [] | [Array<Principal>],
2122
'reserved_cycles_limit' : [] | [bigint],
2223
'log_visibility' : [] | [LogVisibility],
@@ -28,6 +29,8 @@ export interface CanisterStatusResult {
2829
'memory_metrics' : MemoryMetrics,
2930
'status' : CanisterStatusType,
3031
'memory_size' : bigint,
32+
'ready_for_migration' : boolean,
33+
'version' : bigint,
3134
'cycles' : bigint,
3235
'settings' : DefiniteCanisterSettings,
3336
'query_stats' : QueryStats,
@@ -60,6 +63,7 @@ export interface ClusterInfo {
6063
export interface DefiniteCanisterSettings {
6164
'freezing_threshold' : bigint,
6265
'wasm_memory_threshold' : bigint,
66+
'environment_variables' : Array<EnvironmentVariable>,
6367
'controllers' : Array<Principal>,
6468
'reserved_cycles_limit' : bigint,
6569
'log_visibility' : LogVisibility,
@@ -71,6 +75,7 @@ export interface DeployWasmInput {
7175
'args' : [] | [Uint8Array | number[]],
7276
'canister' : Principal,
7377
}
78+
export interface EnvironmentVariable { 'value' : string, 'name' : string }
7479
export interface InitArgs {
7580
'ecdsa_key_name' : string,
7681
'governance_canister' : [] | [Principal],

src/declarations/ic_oss_cluster/ic_oss_cluster.did.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export const idlFactory = ({ IDL }) => {
3131
'Ok' : IDL.Vec(IDL.Vec(IDL.Nat8)),
3232
'Err' : IDL.Text,
3333
});
34+
const EnvironmentVariable = IDL.Record({
35+
'value' : IDL.Text,
36+
'name' : IDL.Text,
37+
});
3438
const LogVisibility = IDL.Variant({
3539
'controllers' : IDL.Null,
3640
'public' : IDL.Null,
@@ -39,6 +43,7 @@ export const idlFactory = ({ IDL }) => {
3943
const CanisterSettings = IDL.Record({
4044
'freezing_threshold' : IDL.Opt(IDL.Nat),
4145
'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
46+
'environment_variables' : IDL.Opt(IDL.Vec(EnvironmentVariable)),
4247
'controllers' : IDL.Opt(IDL.Vec(IDL.Principal)),
4348
'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
4449
'log_visibility' : IDL.Opt(LogVisibility),
@@ -98,6 +103,7 @@ export const idlFactory = ({ IDL }) => {
98103
const DefiniteCanisterSettings = IDL.Record({
99104
'freezing_threshold' : IDL.Nat,
100105
'wasm_memory_threshold' : IDL.Nat,
106+
'environment_variables' : IDL.Vec(EnvironmentVariable),
101107
'controllers' : IDL.Vec(IDL.Principal),
102108
'reserved_cycles_limit' : IDL.Nat,
103109
'log_visibility' : LogVisibility,
@@ -115,6 +121,8 @@ export const idlFactory = ({ IDL }) => {
115121
'memory_metrics' : MemoryMetrics,
116122
'status' : CanisterStatusType,
117123
'memory_size' : IDL.Nat,
124+
'ready_for_migration' : IDL.Bool,
125+
'version' : IDL.Nat64,
118126
'cycles' : IDL.Nat,
119127
'settings' : DefiniteCanisterSettings,
120128
'query_stats' : QueryStats,

0 commit comments

Comments
 (0)