@dfinity/ckbtc 4.0.1 → 4.0.3

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.
@@ -1,4 +1,5 @@
1
1
  // Generated from dfinity/bitcoin-canister commit 47c5d1f14eff39282245ea6aec6e9f821571b024 for file 'canister/candid.did'
2
+
2
3
  type network = variant {
3
4
  mainnet;
4
5
  testnet; // Bitcoin testnet4.
@@ -40,6 +40,16 @@ export const idlFactory = ({ IDL }) => {
40
40
  'Upgrade' : IDL.Opt(UpgradeArgs),
41
41
  'Init' : InitArgs,
42
42
  });
43
+ const MemoryMetrics = IDL.Record({
44
+ 'wasm_binary_size' : IDL.Nat,
45
+ 'wasm_chunk_store_size' : IDL.Nat,
46
+ 'canister_history_size' : IDL.Nat,
47
+ 'stable_memory_size' : IDL.Nat,
48
+ 'snapshots_size' : IDL.Nat,
49
+ 'wasm_memory_size' : IDL.Nat,
50
+ 'global_memory_size' : IDL.Nat,
51
+ 'custom_sections_size' : IDL.Nat,
52
+ });
43
53
  const CanisterStatusType = IDL.Variant({
44
54
  'stopped' : IDL.Null,
45
55
  'stopping' : IDL.Null,
@@ -52,6 +62,7 @@ export const idlFactory = ({ IDL }) => {
52
62
  });
53
63
  const DefiniteCanisterSettings = IDL.Record({
54
64
  'freezing_threshold' : IDL.Nat,
65
+ 'wasm_memory_threshold' : IDL.Nat,
55
66
  'controllers' : IDL.Vec(IDL.Principal),
56
67
  'reserved_cycles_limit' : IDL.Nat,
57
68
  'log_visibility' : LogVisibility,
@@ -66,6 +77,7 @@ export const idlFactory = ({ IDL }) => {
66
77
  'request_payload_bytes_total' : IDL.Nat,
67
78
  });
68
79
  const CanisterStatusResponse = IDL.Record({
80
+ 'memory_metrics' : MemoryMetrics,
69
81
  'status' : CanisterStatusType,
70
82
  'memory_size' : IDL.Nat,
71
83
  'cycles' : IDL.Nat,