Skip to content

Commit bf7dcd5

Browse files
feat: update ic-js did declarations for cli (#232)
* feat: update ic-js did declarations for cli * chore: update did
1 parent ad6ad9a commit bf7dcd5

File tree

14 files changed

+2157
-1020
lines changed

14 files changed

+2157
-1020
lines changed

cli/src/declarations/cmc.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ export type BlockIndex = bigint;
1515
export interface CanisterSettings {
1616
freezing_threshold: [] | [bigint];
1717
wasm_memory_threshold: [] | [bigint];
18+
environment_variables: [] | [Array<environment_variable>];
1819
controllers: [] | [Array<Principal>];
1920
reserved_cycles_limit: [] | [bigint];
2021
log_visibility: [] | [log_visibility];
22+
log_memory_limit: [] | [bigint];
2123
wasm_memory_limit: [] | [bigint];
2224
memory_allocation: [] | [bigint];
2325
compute_allocation: [] | [bigint];
@@ -272,7 +274,14 @@ export type SubnetSelection =
272274
export interface SubnetTypesToSubnetsResponse {
273275
data: Array<[string, Array<Principal>]>;
274276
}
275-
export type log_visibility = {controllers: null} | {public: null};
277+
export interface environment_variable {
278+
value: string;
279+
name: string;
280+
}
281+
export type log_visibility =
282+
| {controllers: null}
283+
| {public: null}
284+
| {allowed_viewers: Array<Principal>};
276285
export interface _SERVICE {
277286
/**
278287
* Creates a canister using the cycles attached to the function call.

cli/src/declarations/cmc.did

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ type BlockIndex = nat64;
33
type log_visibility = variant {
44
controllers;
55
public;
6+
allowed_viewers : vec principal;
7+
};
8+
type environment_variable = record {
9+
name: text;
10+
value: text;
611
};
712
type CanisterSettings = record {
813
controllers : opt vec principal;
@@ -13,6 +18,8 @@ type CanisterSettings = record {
1318
log_visibility : opt log_visibility;
1419
wasm_memory_limit : opt nat;
1520
wasm_memory_threshold : opt nat;
21+
environment_variables : opt vec environment_variable;
22+
log_memory_limit : opt nat;
1623
};
1724
type Subaccount = opt blob;
1825
type Memo = opt blob;

cli/src/declarations/cmc.idl.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,23 @@ export const idlFactory = ({IDL}) => {
2525
Filter: SubnetFilter,
2626
Subnet: IDL.Record({subnet: IDL.Principal})
2727
});
28+
const environment_variable = IDL.Record({
29+
value: IDL.Text,
30+
name: IDL.Text
31+
});
2832
const log_visibility = IDL.Variant({
2933
controllers: IDL.Null,
30-
public: IDL.Null
34+
public: IDL.Null,
35+
allowed_viewers: IDL.Vec(IDL.Principal)
3136
});
3237
const CanisterSettings = IDL.Record({
3338
freezing_threshold: IDL.Opt(IDL.Nat),
3439
wasm_memory_threshold: IDL.Opt(IDL.Nat),
40+
environment_variables: IDL.Opt(IDL.Vec(environment_variable)),
3541
controllers: IDL.Opt(IDL.Vec(IDL.Principal)),
3642
reserved_cycles_limit: IDL.Opt(IDL.Nat),
3743
log_visibility: IDL.Opt(log_visibility),
44+
log_memory_limit: IDL.Opt(IDL.Nat),
3845
wasm_memory_limit: IDL.Opt(IDL.Nat),
3946
memory_allocation: IDL.Opt(IDL.Nat),
4047
compute_allocation: IDL.Opt(IDL.Nat)

0 commit comments

Comments
 (0)