@junobuild/core 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/declarations/cmc/index.js +6 -1
  2. package/declarations/console/console.did.d.ts +5 -4
  3. package/declarations/console/console.factory.did.js +3 -2
  4. package/declarations/console/console.factory.did.mjs +3 -2
  5. package/declarations/console/index.js +6 -1
  6. package/declarations/ic/ic.did +131 -18
  7. package/declarations/ic/ic.did.d.ts +184 -53
  8. package/declarations/ic/ic.factory.did.js +167 -24
  9. package/declarations/mission_control/index.js +7 -1
  10. package/declarations/mission_control/mission_control.did.d.ts +1 -0
  11. package/declarations/mission_control/mission_control.factory.did.js +5 -0
  12. package/declarations/observatory/index.js +7 -1
  13. package/declarations/satellite/index.js +6 -1
  14. package/declarations/satellite/satellite.did.d.ts +1 -0
  15. package/declarations/satellite/satellite.factory.did.js +1 -0
  16. package/declarations/satellite/satellite.factory.did.mjs +1 -0
  17. package/dist/browser/index.js +3 -3
  18. package/dist/browser/index.js.map +2 -2
  19. package/dist/declarations/cmc/index.js +6 -1
  20. package/dist/declarations/console/console.did.d.ts +5 -4
  21. package/dist/declarations/console/console.factory.did.js +3 -2
  22. package/dist/declarations/console/console.factory.did.mjs +3 -2
  23. package/dist/declarations/console/index.js +6 -1
  24. package/dist/declarations/ic/ic.did +131 -18
  25. package/dist/declarations/ic/ic.did.d.ts +184 -53
  26. package/dist/declarations/ic/ic.factory.did.js +167 -24
  27. package/dist/declarations/mission_control/index.js +7 -1
  28. package/dist/declarations/mission_control/mission_control.did.d.ts +1 -0
  29. package/dist/declarations/mission_control/mission_control.factory.did.js +5 -0
  30. package/dist/declarations/observatory/index.js +7 -1
  31. package/dist/declarations/satellite/index.js +6 -1
  32. package/dist/declarations/satellite/satellite.did.d.ts +1 -0
  33. package/dist/declarations/satellite/satellite.factory.did.js +1 -0
  34. package/dist/declarations/satellite/satellite.factory.did.mjs +1 -0
  35. package/dist/node/index.mjs +1 -1
  36. package/dist/node/index.mjs.map +2 -2
  37. package/package.json +1 -1
  38. package/declarations/frontend/frontend.did +0 -188
  39. package/declarations/frontend/frontend.did.d.ts +0 -172
  40. package/declarations/frontend/frontend.factory.did.js +0 -210
  41. package/declarations/frontend/index.d.ts +0 -45
  42. package/declarations/frontend/index.js +0 -32
  43. package/declarations/internet_identity/index.d.ts +0 -45
  44. package/declarations/internet_identity/index.js +0 -32
  45. package/declarations/internet_identity/internet_identity.did +0 -378
  46. package/declarations/internet_identity/internet_identity.did.d.ts +0 -231
  47. package/declarations/internet_identity/internet_identity.factory.did.js +0 -277
  48. package/declarations/ledger/index.d.ts +0 -45
  49. package/declarations/ledger/index.js +0 -32
  50. package/declarations/ledger/ledger.did +0 -266
  51. package/declarations/ledger/ledger.did.d.ts +0 -117
  52. package/declarations/ledger/ledger.factory.did.js +0 -115
  53. package/dist/declarations/frontend/frontend.did +0 -188
  54. package/dist/declarations/frontend/frontend.did.d.ts +0 -172
  55. package/dist/declarations/frontend/frontend.factory.did.js +0 -210
  56. package/dist/declarations/frontend/index.d.ts +0 -45
  57. package/dist/declarations/frontend/index.js +0 -32
  58. package/dist/declarations/internet_identity/index.d.ts +0 -45
  59. package/dist/declarations/internet_identity/index.js +0 -32
  60. package/dist/declarations/internet_identity/internet_identity.did +0 -378
  61. package/dist/declarations/internet_identity/internet_identity.did.d.ts +0 -231
  62. package/dist/declarations/internet_identity/internet_identity.factory.did.js +0 -277
  63. package/dist/declarations/ledger/index.d.ts +0 -45
  64. package/dist/declarations/ledger/index.js +0 -32
  65. package/dist/declarations/ledger/ledger.did +0 -266
  66. package/dist/declarations/ledger/ledger.did.d.ts +0 -117
  67. package/dist/declarations/ledger/ledger.factory.did.js +0 -115
@@ -4,7 +4,12 @@ import {Actor, HttpAgent} from '@dfinity/agent';
4
4
  import {idlFactory} from './cmc.did.js';
5
5
  export {idlFactory} from './cmc.did.js';
6
6
 
7
- // CANISTER_ID is replaced by webpack based on node environment
7
+ /* CANISTER_ID is replaced by webpack based on node environment
8
+ * Note: canister environment variable will be standardized as
9
+ * process.env.CANISTER_ID_<CANISTER_NAME_UPPERCASE>
10
+ * beginning in dfx 0.15.0
11
+ */
12
+ export const canisterId = process.env.CANISTER_ID_CMC || process.env.CMC_CANISTER_ID;
8
13
 
9
14
  export const createActor = (canisterId, options = {}) => {
10
15
  const agent = options.agent || new HttpAgent({...options.agentOptions});
@@ -1,6 +1,9 @@
1
1
  import type {ActorMethod} from '@dfinity/agent';
2
2
  import type {Principal} from '@dfinity/principal';
3
3
 
4
+ export interface AddCreditsArgs {
5
+ user: Principal;
6
+ }
4
7
  export interface AssertMissionControlCenterArgs {
5
8
  mission_control_id: Principal;
6
9
  user: Principal;
@@ -13,9 +16,6 @@ export interface CreateSatelliteArgs {
13
16
  export interface DeleteControllersArgs {
14
17
  controllers: Array<Principal>;
15
18
  }
16
- export interface GetCreateSatelliteFeeArgs {
17
- user: Principal;
18
- }
19
19
  export interface LoadRelease {
20
20
  total: bigint;
21
21
  chunks: bigint;
@@ -49,11 +49,12 @@ export interface Tokens {
49
49
  e8s: bigint;
50
50
  }
51
51
  export interface _SERVICE {
52
+ add_credits: ActorMethod<[AddCreditsArgs], undefined>;
52
53
  add_invitation_code: ActorMethod<[string], undefined>;
53
54
  assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
54
55
  create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
55
56
  del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
56
- get_create_satellite_fee: ActorMethod<[GetCreateSatelliteFeeArgs], [] | [Tokens]>;
57
+ get_create_satellite_fee: ActorMethod<[AddCreditsArgs], [] | [Tokens]>;
57
58
  get_credits: ActorMethod<[], Tokens>;
58
59
  get_releases_version: ActorMethod<[], ReleasesVersion>;
59
60
  get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
@@ -1,5 +1,6 @@
1
1
  // @ts-ignore
2
2
  export const idlFactory = ({IDL}) => {
3
+ const AddCreditsArgs = IDL.Record({user: IDL.Principal});
3
4
  const AssertMissionControlCenterArgs = IDL.Record({
4
5
  mission_control_id: IDL.Principal,
5
6
  user: IDL.Principal
@@ -11,7 +12,6 @@ export const idlFactory = ({IDL}) => {
11
12
  const DeleteControllersArgs = IDL.Record({
12
13
  controllers: IDL.Vec(IDL.Principal)
13
14
  });
14
- const GetCreateSatelliteFeeArgs = IDL.Record({user: IDL.Principal});
15
15
  const Tokens = IDL.Record({e8s: IDL.Nat64});
16
16
  const ReleasesVersion = IDL.Record({
17
17
  satellite: IDL.Opt(IDL.Text),
@@ -47,11 +47,12 @@ export const idlFactory = ({IDL}) => {
47
47
  time_per_token_ns: IDL.Nat64
48
48
  });
49
49
  return IDL.Service({
50
+ add_credits: IDL.Func([AddCreditsArgs], [], []),
50
51
  add_invitation_code: IDL.Func([IDL.Text], [], []),
51
52
  assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
52
53
  create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
53
54
  del_controllers: IDL.Func([DeleteControllersArgs], [], []),
54
- get_create_satellite_fee: IDL.Func([GetCreateSatelliteFeeArgs], [IDL.Opt(Tokens)], ['query']),
55
+ get_create_satellite_fee: IDL.Func([AddCreditsArgs], [IDL.Opt(Tokens)], ['query']),
55
56
  get_credits: IDL.Func([], [Tokens], ['query']),
56
57
  get_releases_version: IDL.Func([], [ReleasesVersion], ['query']),
57
58
  get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
@@ -1,5 +1,6 @@
1
1
  // @ts-ignore
2
2
  export const idlFactory = ({IDL}) => {
3
+ const AddCreditsArgs = IDL.Record({user: IDL.Principal});
3
4
  const AssertMissionControlCenterArgs = IDL.Record({
4
5
  mission_control_id: IDL.Principal,
5
6
  user: IDL.Principal
@@ -11,7 +12,6 @@ export const idlFactory = ({IDL}) => {
11
12
  const DeleteControllersArgs = IDL.Record({
12
13
  controllers: IDL.Vec(IDL.Principal)
13
14
  });
14
- const GetCreateSatelliteFeeArgs = IDL.Record({user: IDL.Principal});
15
15
  const Tokens = IDL.Record({e8s: IDL.Nat64});
16
16
  const ReleasesVersion = IDL.Record({
17
17
  satellite: IDL.Opt(IDL.Text),
@@ -47,11 +47,12 @@ export const idlFactory = ({IDL}) => {
47
47
  time_per_token_ns: IDL.Nat64
48
48
  });
49
49
  return IDL.Service({
50
+ add_credits: IDL.Func([AddCreditsArgs], [], []),
50
51
  add_invitation_code: IDL.Func([IDL.Text], [], []),
51
52
  assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
52
53
  create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
53
54
  del_controllers: IDL.Func([DeleteControllersArgs], [], []),
54
- get_create_satellite_fee: IDL.Func([GetCreateSatelliteFeeArgs], [IDL.Opt(Tokens)], ['query']),
55
+ get_create_satellite_fee: IDL.Func([AddCreditsArgs], [IDL.Opt(Tokens)], ['query']),
55
56
  get_credits: IDL.Func([], [Tokens], ['query']),
56
57
  get_releases_version: IDL.Func([], [ReleasesVersion], ['query']),
57
58
  get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
@@ -4,7 +4,12 @@ import {Actor, HttpAgent} from '@dfinity/agent';
4
4
  import {idlFactory} from './console.did.js';
5
5
  export {idlFactory} from './console.did.js';
6
6
 
7
- // CANISTER_ID is replaced by webpack based on node environment
7
+ /* CANISTER_ID is replaced by webpack based on node environment
8
+ * Note: canister environment variable will be standardized as
9
+ * process.env.CANISTER_ID_<CANISTER_NAME_UPPERCASE>
10
+ * beginning in dfx 0.15.0
11
+ */
12
+ export const canisterId = process.env.CANISTER_ID_CONSOLE || process.env.CONSOLE_CANISTER_ID;
8
13
 
9
14
  export const createActor = (canisterId, options = {}) => {
10
15
  const agent = options.agent || new HttpAgent({...options.agentOptions});
@@ -1,5 +1,4 @@
1
1
  type canister_id = principal;
2
- type user_id = principal;
3
2
  type wasm_module = blob;
4
3
 
5
4
  type canister_settings = record {
@@ -16,6 +15,37 @@ type definite_canister_settings = record {
16
15
  freezing_threshold : nat;
17
16
  };
18
17
 
18
+ type change_origin = variant {
19
+ from_user : record {
20
+ user_id : principal;
21
+ };
22
+ from_canister : record {
23
+ canister_id : principal;
24
+ canister_version : opt nat64;
25
+ };
26
+ };
27
+
28
+ type change_details = variant {
29
+ creation : record {
30
+ controllers : vec principal;
31
+ };
32
+ code_uninstall;
33
+ code_deployment : record {
34
+ mode : variant {install; reinstall; upgrade};
35
+ module_hash : blob;
36
+ };
37
+ controllers_change : record {
38
+ controllers : vec principal;
39
+ };
40
+ };
41
+
42
+ type change = record {
43
+ timestamp_nanos : nat64;
44
+ canister_version : nat64;
45
+ origin : change_origin;
46
+ details : change_details;
47
+ };
48
+
19
49
  type http_header = record { name: text; value: text };
20
50
 
21
51
  type http_response = record {
@@ -24,32 +54,84 @@ type http_response = record {
24
54
  body: blob;
25
55
  };
26
56
 
27
- type http_request_error = variant {
28
- no_consensus;
29
- timeout;
30
- bad_tls;
31
- invalid_url;
32
- transform_error;
33
- dns_error;
34
- unreachable;
35
- conn_timeout;
57
+ type ecdsa_curve = variant { secp256k1; };
58
+
59
+ type satoshi = nat64;
60
+
61
+ type bitcoin_network = variant {
62
+ mainnet;
63
+ testnet;
64
+ };
65
+
66
+ type bitcoin_address = text;
67
+
68
+ type block_hash = blob;
69
+
70
+ type outpoint = record {
71
+ txid : blob;
72
+ vout : nat32
73
+ };
74
+
75
+ type utxo = record {
76
+ outpoint: outpoint;
77
+ value: satoshi;
78
+ height: nat32;
36
79
  };
37
80
 
81
+ type get_utxos_request = record {
82
+ address : bitcoin_address;
83
+ network: bitcoin_network;
84
+ filter: opt variant {
85
+ min_confirmations: nat32;
86
+ page: blob;
87
+ };
88
+ };
89
+
90
+ type get_current_fee_percentiles_request = record {
91
+ network: bitcoin_network;
92
+ };
93
+
94
+ type get_utxos_response = record {
95
+ utxos: vec utxo;
96
+ tip_block_hash: block_hash;
97
+ tip_height: nat32;
98
+ next_page: opt blob;
99
+ };
100
+
101
+ type get_balance_request = record {
102
+ address : bitcoin_address;
103
+ network: bitcoin_network;
104
+ min_confirmations: opt nat32;
105
+ };
106
+
107
+ type send_transaction_request = record {
108
+ transaction: blob;
109
+ network: bitcoin_network;
110
+ };
111
+
112
+ type millisatoshi_per_byte = nat64;
113
+
38
114
  service ic : {
39
115
  create_canister : (record {
40
- settings : opt canister_settings
116
+ settings : opt canister_settings;
117
+ sender_canister_version : opt nat64;
41
118
  }) -> (record {canister_id : canister_id});
42
119
  update_settings : (record {
43
120
  canister_id : principal;
44
- settings : canister_settings
121
+ settings : canister_settings;
122
+ sender_canister_version : opt nat64;
45
123
  }) -> ();
46
124
  install_code : (record {
47
125
  mode : variant {install; reinstall; upgrade};
48
126
  canister_id : canister_id;
49
127
  wasm_module : wasm_module;
50
128
  arg : blob;
129
+ sender_canister_version : opt nat64;
130
+ }) -> ();
131
+ uninstall_code : (record {
132
+ canister_id : canister_id;
133
+ sender_canister_version : opt nat64;
51
134
  }) -> ();
52
- uninstall_code : (record {canister_id : canister_id}) -> ();
53
135
  start_canister : (record {canister_id : canister_id}) -> ();
54
136
  stop_canister : (record {canister_id : canister_id}) -> ();
55
137
  canister_status : (record {canister_id : canister_id}) -> (record {
@@ -58,24 +140,55 @@ service ic : {
58
140
  module_hash: opt blob;
59
141
  memory_size: nat;
60
142
  cycles: nat;
143
+ idle_cycles_burned_per_day: nat;
144
+ });
145
+ canister_info : (record {
146
+ canister_id : canister_id;
147
+ num_requested_changes : opt nat64;
148
+ }) -> (record {
149
+ total_num_changes : nat64;
150
+ recent_changes : vec change;
151
+ module_hash : opt blob;
152
+ controllers : vec principal;
61
153
  });
62
154
  delete_canister : (record {canister_id : canister_id}) -> ();
63
155
  deposit_cycles : (record {canister_id : canister_id}) -> ();
64
156
  raw_rand : () -> (blob);
65
157
  http_request : (record {
66
158
  url : text;
67
- method : variant { get };
159
+ max_response_bytes: opt nat64;
160
+ method : variant { get; head; post };
68
161
  headers: vec http_header;
69
162
  body : opt blob;
70
- transform : opt variant {
71
- function: func (http_response) -> (http_response) query
163
+ transform : opt record {
164
+ function : func (record {response : http_response; context : blob}) -> (http_response) query;
165
+ context : blob
72
166
  };
73
- }) -> (variant { Ok : http_response; Err: opt http_request_error });
167
+ }) -> (http_response);
168
+
169
+ // Threshold ECDSA signature
170
+ ecdsa_public_key : (record {
171
+ canister_id : opt canister_id;
172
+ derivation_path : vec blob;
173
+ key_id : record { curve: ecdsa_curve; name: text };
174
+ }) -> (record { public_key : blob; chain_code : blob; });
175
+ sign_with_ecdsa : (record {
176
+ message_hash : blob;
177
+ derivation_path : vec blob;
178
+ key_id : record { curve: ecdsa_curve; name: text };
179
+ }) -> (record { signature : blob });
180
+
181
+ // bitcoin interface
182
+ bitcoin_get_balance: (get_balance_request) -> (satoshi);
183
+ bitcoin_get_utxos: (get_utxos_request) -> (get_utxos_response);
184
+ bitcoin_send_transaction: (send_transaction_request) -> ();
185
+ bitcoin_get_current_fee_percentiles: (get_current_fee_percentiles_request) -> (vec millisatoshi_per_byte);
74
186
 
75
187
  // provisional interfaces for the pre-ledger world
76
188
  provisional_create_canister_with_cycles : (record {
77
189
  amount: opt nat;
78
- settings : opt canister_settings
190
+ settings : opt canister_settings;
191
+ specified_id: opt canister_id;
79
192
  }) -> (record {canister_id : canister_id});
80
193
  provisional_top_up_canister :
81
194
  (record { canister_id: canister_id; amount: nat }) -> ();
@@ -1,4 +1,9 @@
1
+ import type {ActorMethod} from '@dfinity/agent';
1
2
  import type {Principal} from '@dfinity/principal';
3
+
4
+ export type bitcoin_address = string;
5
+ export type bitcoin_network = {mainnet: null} | {testnet: null};
6
+ export type block_hash = Uint8Array;
2
7
  export type canister_id = Principal;
3
8
  export interface canister_settings {
4
9
  freezing_threshold: [] | [bigint];
@@ -6,72 +11,198 @@ export interface canister_settings {
6
11
  memory_allocation: [] | [bigint];
7
12
  compute_allocation: [] | [bigint];
8
13
  }
14
+ export interface change {
15
+ timestamp_nanos: bigint;
16
+ canister_version: bigint;
17
+ origin: change_origin;
18
+ details: change_details;
19
+ }
20
+ export type change_details =
21
+ | {
22
+ creation: {controllers: Array<Principal>};
23
+ }
24
+ | {
25
+ code_deployment: {
26
+ mode: {reinstall: null} | {upgrade: null} | {install: null};
27
+ module_hash: Uint8Array;
28
+ };
29
+ }
30
+ | {controllers_change: {controllers: Array<Principal>}}
31
+ | {code_uninstall: null};
32
+ export type change_origin =
33
+ | {from_user: {user_id: Principal}}
34
+ | {
35
+ from_canister: {
36
+ canister_version: [] | [bigint];
37
+ canister_id: Principal;
38
+ };
39
+ };
9
40
  export interface definite_canister_settings {
10
41
  freezing_threshold: bigint;
11
42
  controllers: Array<Principal>;
12
43
  memory_allocation: bigint;
13
44
  compute_allocation: bigint;
14
45
  }
46
+ export type ecdsa_curve = {secp256k1: null};
47
+ export interface get_balance_request {
48
+ network: bitcoin_network;
49
+ address: bitcoin_address;
50
+ min_confirmations: [] | [number];
51
+ }
52
+ export interface get_current_fee_percentiles_request {
53
+ network: bitcoin_network;
54
+ }
55
+ export interface get_utxos_request {
56
+ network: bitcoin_network;
57
+ filter: [] | [{page: Uint8Array} | {min_confirmations: number}];
58
+ address: bitcoin_address;
59
+ }
60
+ export interface get_utxos_response {
61
+ next_page: [] | [Uint8Array];
62
+ tip_height: number;
63
+ tip_block_hash: block_hash;
64
+ utxos: Array<utxo>;
65
+ }
15
66
  export interface http_header {
16
67
  value: string;
17
68
  name: string;
18
69
  }
19
- export type http_request_error =
20
- | {dns_error: null}
21
- | {no_consensus: null}
22
- | {transform_error: null}
23
- | {unreachable: null}
24
- | {bad_tls: null}
25
- | {conn_timeout: null}
26
- | {invalid_url: null}
27
- | {timeout: null};
28
70
  export interface http_response {
29
71
  status: bigint;
30
- body: Array<number>;
72
+ body: Uint8Array;
31
73
  headers: Array<http_header>;
32
74
  }
33
- export type user_id = Principal;
34
- export type wasm_module = Array<number>;
75
+ export type millisatoshi_per_byte = bigint;
76
+ export interface outpoint {
77
+ txid: Uint8Array;
78
+ vout: number;
79
+ }
80
+ export type satoshi = bigint;
81
+ export interface send_transaction_request {
82
+ transaction: Uint8Array;
83
+ network: bitcoin_network;
84
+ }
85
+ export interface utxo {
86
+ height: number;
87
+ value: satoshi;
88
+ outpoint: outpoint;
89
+ }
90
+ export type wasm_module = Uint8Array;
35
91
  export interface _SERVICE {
36
- canister_status: (arg_0: {canister_id: canister_id}) => Promise<{
37
- status: {stopped: null} | {stopping: null} | {running: null};
38
- memory_size: bigint;
39
- cycles: bigint;
40
- settings: definite_canister_settings;
41
- module_hash: [] | [Array<number>];
42
- }>;
43
- create_canister: (arg_0: {
44
- settings: [] | [canister_settings];
45
- }) => Promise<{canister_id: canister_id}>;
46
- delete_canister: (arg_0: {canister_id: canister_id}) => Promise<undefined>;
47
- deposit_cycles: (arg_0: {canister_id: canister_id}) => Promise<undefined>;
48
- http_request: (arg_0: {
49
- url: string;
50
- method: {get: null};
51
- body: [] | [Array<number>];
52
- transform: [] | [{function: [Principal, string]}];
53
- headers: Array<http_header>;
54
- }) => Promise<{Ok: http_response} | {Err: [] | [http_request_error]}>;
55
- install_code: (arg_0: {
56
- arg: Array<number>;
57
- wasm_module: wasm_module;
58
- mode: {reinstall: null} | {upgrade: null} | {install: null};
59
- canister_id: canister_id;
60
- }) => Promise<undefined>;
61
- provisional_create_canister_with_cycles: (arg_0: {
62
- settings: [] | [canister_settings];
63
- amount: [] | [bigint];
64
- }) => Promise<{canister_id: canister_id}>;
65
- provisional_top_up_canister: (arg_0: {
66
- canister_id: canister_id;
67
- amount: bigint;
68
- }) => Promise<undefined>;
69
- raw_rand: () => Promise<Array<number>>;
70
- start_canister: (arg_0: {canister_id: canister_id}) => Promise<undefined>;
71
- stop_canister: (arg_0: {canister_id: canister_id}) => Promise<undefined>;
72
- uninstall_code: (arg_0: {canister_id: canister_id}) => Promise<undefined>;
73
- update_settings: (arg_0: {
74
- canister_id: Principal;
75
- settings: canister_settings;
76
- }) => Promise<undefined>;
92
+ bitcoin_get_balance: ActorMethod<[get_balance_request], satoshi>;
93
+ bitcoin_get_current_fee_percentiles: ActorMethod<
94
+ [get_current_fee_percentiles_request],
95
+ BigUint64Array
96
+ >;
97
+ bitcoin_get_utxos: ActorMethod<[get_utxos_request], get_utxos_response>;
98
+ bitcoin_send_transaction: ActorMethod<[send_transaction_request], undefined>;
99
+ canister_info: ActorMethod<
100
+ [{canister_id: canister_id; num_requested_changes: [] | [bigint]}],
101
+ {
102
+ controllers: Array<Principal>;
103
+ module_hash: [] | [Uint8Array];
104
+ recent_changes: Array<change>;
105
+ total_num_changes: bigint;
106
+ }
107
+ >;
108
+ canister_status: ActorMethod<
109
+ [{canister_id: canister_id}],
110
+ {
111
+ status: {stopped: null} | {stopping: null} | {running: null};
112
+ memory_size: bigint;
113
+ cycles: bigint;
114
+ settings: definite_canister_settings;
115
+ idle_cycles_burned_per_day: bigint;
116
+ module_hash: [] | [Uint8Array];
117
+ }
118
+ >;
119
+ create_canister: ActorMethod<
120
+ [
121
+ {
122
+ settings: [] | [canister_settings];
123
+ sender_canister_version: [] | [bigint];
124
+ }
125
+ ],
126
+ {canister_id: canister_id}
127
+ >;
128
+ delete_canister: ActorMethod<[{canister_id: canister_id}], undefined>;
129
+ deposit_cycles: ActorMethod<[{canister_id: canister_id}], undefined>;
130
+ ecdsa_public_key: ActorMethod<
131
+ [
132
+ {
133
+ key_id: {name: string; curve: ecdsa_curve};
134
+ canister_id: [] | [canister_id];
135
+ derivation_path: Array<Uint8Array>;
136
+ }
137
+ ],
138
+ {public_key: Uint8Array; chain_code: Uint8Array}
139
+ >;
140
+ http_request: ActorMethod<
141
+ [
142
+ {
143
+ url: string;
144
+ method: {get: null} | {head: null} | {post: null};
145
+ max_response_bytes: [] | [bigint];
146
+ body: [] | [Uint8Array];
147
+ transform: [] | [{function: [Principal, string]; context: Uint8Array}];
148
+ headers: Array<http_header>;
149
+ }
150
+ ],
151
+ http_response
152
+ >;
153
+ install_code: ActorMethod<
154
+ [
155
+ {
156
+ arg: Uint8Array;
157
+ wasm_module: wasm_module;
158
+ mode: {reinstall: null} | {upgrade: null} | {install: null};
159
+ canister_id: canister_id;
160
+ sender_canister_version: [] | [bigint];
161
+ }
162
+ ],
163
+ undefined
164
+ >;
165
+ provisional_create_canister_with_cycles: ActorMethod<
166
+ [
167
+ {
168
+ settings: [] | [canister_settings];
169
+ specified_id: [] | [canister_id];
170
+ amount: [] | [bigint];
171
+ }
172
+ ],
173
+ {canister_id: canister_id}
174
+ >;
175
+ provisional_top_up_canister: ActorMethod<[{canister_id: canister_id; amount: bigint}], undefined>;
176
+ raw_rand: ActorMethod<[], Uint8Array>;
177
+ sign_with_ecdsa: ActorMethod<
178
+ [
179
+ {
180
+ key_id: {name: string; curve: ecdsa_curve};
181
+ derivation_path: Array<Uint8Array>;
182
+ message_hash: Uint8Array;
183
+ }
184
+ ],
185
+ {signature: Uint8Array}
186
+ >;
187
+ start_canister: ActorMethod<[{canister_id: canister_id}], undefined>;
188
+ stop_canister: ActorMethod<[{canister_id: canister_id}], undefined>;
189
+ uninstall_code: ActorMethod<
190
+ [
191
+ {
192
+ canister_id: canister_id;
193
+ sender_canister_version: [] | [bigint];
194
+ }
195
+ ],
196
+ undefined
197
+ >;
198
+ update_settings: ActorMethod<
199
+ [
200
+ {
201
+ canister_id: Principal;
202
+ settings: canister_settings;
203
+ sender_canister_version: [] | [bigint];
204
+ }
205
+ ],
206
+ undefined
207
+ >;
77
208
  }