@jsm-mit/tigi-sharded-package 0.5.0 → 0.5.1

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.
@@ -14,6 +14,82 @@ type CanisterArgs = record { canister : principal };
14
14
  // composes the arguments and keeps the logic, the coordinator only forwards. A new
15
15
  // method of the chat group is a new case here, never a free method name.
16
16
  type ChatAdminMethod = variant { updateRoom; createRoom; deleteRoom };
17
+ // KO-21: the chat coordinator's reminder (`chatBillDue : (ChatBillDue) -> ()`), as the chat
18
+ // sends it (chat-sharded `coordinator/src/types.rs`).
19
+ type ChatBillDue = record {
20
+ // The chat's UTC day of the run.
21
+ day : nat64;
22
+ // The first reminder of this unpaid bill.
23
+ dueSinceNs : nat64;
24
+ // Cycles due now: every billed day not paid.
25
+ bill : nat;
26
+ // From then on `post` in the project fails while the bill stays unpaid.
27
+ blockAtNs : nat64;
28
+ projectId : text;
29
+ // The chat core: `payProjectBill` goes there.
30
+ payTo : principal;
31
+ multiplierPermille : nat32;
32
+ };
33
+ // KO-22: the last chat bill this coordinator paid, and every one together.
34
+ type ChatBillPaid = record {
35
+ day : nat64;
36
+ paidAtNs : nat64;
37
+ paidTotal : nat;
38
+ amount : nat;
39
+ };
40
+ // KO-22: the last reminder and what became of it. Stored in `Config.chatBill`.
41
+ type ChatBillRun = record {
42
+ day : nat64;
43
+ updatedAtNs : nat64;
44
+ dueSinceNs : nat64;
45
+ // What the reminder named.
46
+ reminded : nat;
47
+ blockAtNs : nat64;
48
+ step : ChatBillStep;
49
+ // D8: the driver rooms (`drv-…`) of the bill, and how many batches of them the core
50
+ // took so far.
51
+ driverRooms : opt nat32;
52
+ receivedAtNs : nat64;
53
+ projectId : text;
54
+ batchesSent : opt nat32;
55
+ payTo : principal;
56
+ // D8: cycles the coordinator keeps paying — the project's other rooms, pool canisters,
57
+ // rooms of no driver canister.
58
+ absorbed : opt nat;
59
+ // What the chat core took (`payProjectBill`).
60
+ accepted : opt nat;
61
+ // The bill as `getProjectBill` said it — what is paid.
62
+ amount : opt nat;
63
+ // D8: cycles that went into the drivers' accounts.
64
+ passed : opt nat;
65
+ // Why it is not paid, or why the shares wait.
66
+ problem : opt text;
67
+ };
68
+ // KO-22: where a payment of a chat bill is. Stored before every await (record-driven).
69
+ type ChatBillStep = variant {
70
+ // Reading the core's chat config, the chat core, the bill.
71
+ reading;
72
+ // Paid and passed on.
73
+ done;
74
+ // Not paid: `problem` says why (an alarm). The next reminder tries again.
75
+ unpaid;
76
+ // Paid; the drivers' shares are on their way to the core (D8).
77
+ sharing;
78
+ // The bill read was 0: nothing to pay.
79
+ nothingDue;
80
+ // The reminder is taken; the payment is not started.
81
+ received;
82
+ // `payProjectBill` is on its way with the cycles.
83
+ paying;
84
+ };
85
+ // KO-21: the copy of the core's chat config (`getChatConfig`): who may remind, which
86
+ // project is ours. Read from the core after an upgrade, by hand, and when a reminder comes
87
+ // from another caller (at most once an hour).
88
+ type ChatLink = record {
89
+ chatCoordinatorId : principal;
90
+ readAtNs : nat64;
91
+ projectId : text;
92
+ };
17
93
  type CommitWasmArgs = record {
18
94
  // Of the whole module. The coordinator refuses a module that does not match.
19
95
  sha256 : blob;
@@ -61,9 +137,15 @@ type Config = record {
61
137
  // What a new worker starts with, and what a worker or the core gets when it reports a
62
138
  // low balance. A worker asks below half of it.
63
139
  cyclesPerWorker : nat;
140
+ // KO-22: the last chat bill paid, with the total.
141
+ chatBillPaid : opt ChatBillPaid;
142
+ // KO-22: the last chat bill reminder and its payment.
143
+ chatBill : opt ChatBillRun;
64
144
  // false (STAGE, local): the coordinator never creates a worker or splits by itself,
65
145
  // whatever the load; the levels are only shown (KO-7). true (prod): it does.
66
146
  spread : bool;
147
+ // KO-21: the copy of the core's chat config. None = not read yet.
148
+ chatLink : opt ChatLink;
67
149
  nextEventId : nat64;
68
150
  // The ONE superadmin of a LIVE group: a person, who hands the role over on a request.
69
151
  superadmin : opt principal;
@@ -375,16 +457,17 @@ type Result_1 = variant { Ok : Roles; Err : CoordinatorError };
375
457
  type Result_10 = variant { Ok : vec WorkerLive; Err : CoordinatorError };
376
458
  type Result_11 = variant { Ok : bool; Err : CoordinatorError };
377
459
  type Result_12 = variant { Ok : vec WorkerRecord; Err : CoordinatorError };
378
- type Result_13 = variant { Ok : CoreRecord; Err : CoordinatorError };
379
- type Result_14 = variant { Ok : WorkerStatus; Err : CoordinatorError };
380
- type Result_15 = variant { Ok : Dependents; Err : CoordinatorError };
381
- type Result_16 = variant { Ok : Config; Err : CoordinatorError };
382
- type Result_17 = variant { Ok : SetWorkerConfigResult; Err : CoordinatorError };
383
- type Result_18 = variant { Ok : WorkerView; Err : CoordinatorError };
384
- type Result_19 = variant { Ok : SplitResult; Err : CoordinatorError };
460
+ type Result_13 = variant { Ok : opt ChatLink; Err : CoordinatorError };
461
+ type Result_14 = variant { Ok : CoreRecord; Err : CoordinatorError };
462
+ type Result_15 = variant { Ok : WorkerStatus; Err : CoordinatorError };
463
+ type Result_16 = variant { Ok : Dependents; Err : CoordinatorError };
464
+ type Result_17 = variant { Ok : Config; Err : CoordinatorError };
465
+ type Result_18 = variant { Ok : SetWorkerConfigResult; Err : CoordinatorError };
466
+ type Result_19 = variant { Ok : WorkerView; Err : CoordinatorError };
385
467
  type Result_2 = variant { Ok : vec PrefixEntry; Err : CoordinatorError };
386
- type Result_20 = variant { Ok : nat; Err : CoordinatorError };
387
- type Result_21 = variant { Ok : nat64; Err : CoordinatorError };
468
+ type Result_20 = variant { Ok : SplitResult; Err : CoordinatorError };
469
+ type Result_21 = variant { Ok : nat; Err : CoordinatorError };
470
+ type Result_22 = variant { Ok : nat64; Err : CoordinatorError };
388
471
  type Result_3 = variant { Ok : WasmInfo; Err : CoordinatorError };
389
472
  type Result_4 = variant { Ok : principal; Err : CoordinatorError };
390
473
  type Result_5 = variant { Ok : DeletedWorker; Err : CoordinatorError };
@@ -542,6 +625,11 @@ service : (InitArgs) -> {
542
625
  // A prefix to a worker, by hand: new reports and requests of the area go there from now
543
626
  // on.
544
627
  assignPrefix : (AssignPrefixArgs) -> (Result_2);
628
+ // KO-21: the chat coordinator reminds this coordinator of the chat bill of its project.
629
+ // Only the chat coordinator of the core's chat config (a trap otherwise; ingress refused in
630
+ // `inspect_message`). Answers at once: the payment runs in a task of its own (KO-22). Once
631
+ // per chat day.
632
+ chatBillDue : (ChatBillDue) -> ();
545
633
  // DEPLOYED → LIVE: the caller becomes THE superadmin. In prod the deploy admins lose
546
634
  // their rights here, in the coordinator and in the core.
547
635
  claimSuperadmin : () -> (Result_1);
@@ -622,10 +710,12 @@ service : (InitArgs) -> {
622
710
  locateGeohashes : (GeohashesArgs) -> (vec opt principal) query;
623
711
  // A superadmin reads the query load of every installed worker now.
624
712
  readQueryLoads : () -> (Result_12);
713
+ // KO-24: the superadmin reads the core's chat config again (the front's button).
714
+ refreshChatLink : () -> (Result_13);
625
715
  // What the management canister says of the core: its balance and its module.
626
- refreshCore : () -> (Result_13);
716
+ refreshCore : () -> (Result_14);
627
717
  // What a worker says of itself now. The coordinator keeps the memory and the cycles.
628
- refreshWorker : (CanisterArgs) -> (Result_14);
718
+ refreshWorker : (CanisterArgs) -> (Result_15);
629
719
  removeCoreAdmin : (PrincipalArgs) -> (Result);
630
720
  removeDeployAdmin : (PrincipalArgs) -> (Result_1);
631
721
  // KO-10, C-11: the core's balance is below `lowCyclesBelow`: it gets `cyclesPerWorker`,
@@ -653,23 +743,23 @@ service : (InitArgs) -> {
653
743
  // installed again from scratch — the same ids, the same cycles, no create fee — and the
654
744
  // map starts again: the first worker holds the world. One canister at a time; refused
655
745
  // while a split, a drain or an upgrade runs.
656
- resetGroup : () -> (Result_15);
746
+ resetGroup : () -> (Result_16);
657
747
  // Changes what a superadmin may: `spread`, the cycles of a worker, the own reserve,
658
748
  // `maxWorkers`, the query thresholds. Only the fields given are changed.
659
- setConfig : (SetConfigArgs) -> (Result_16);
749
+ setConfig : (SetConfigArgs) -> (Result_17);
660
750
  setCoreLoggingEnabled : (CoreLoggingArgs) -> (Result_11);
661
751
  // KO-19: the superadmin sets the thresholds of the fee multiplier (cycles per canister).
662
- setFeeThresholds : (FeeThresholds) -> (Result_16);
752
+ setFeeThresholds : (FeeThresholds) -> (Result_17);
663
753
  // The config of the workers of the group: the load thresholds, logging. Only the fields
664
754
  // given are changed. The result is stored, given to every worker that has its code, and
665
755
  // to every worker created later.
666
- setWorkerConfig : (WorkerConfigArgs) -> (Result_17);
756
+ setWorkerConfig : (WorkerConfigArgs) -> (Result_18);
667
757
  // Opens a worker to the prefixes of a split again, or closes it without giving anything
668
758
  // away.
669
- setWorkerOpen : (SetWorkerOpenArgs) -> (Result_18);
759
+ setWorkerOpen : (SetWorkerOpenArgs) -> (Result_19);
670
760
  // A superadmin splits a worker now, whatever its load and `spread` (KO-17): a fresh worker
671
761
  // takes about half of its prefixes. Answers with the new worker and the prefixes it got.
672
- splitWorker : (CanisterArgs) -> (Result_19);
762
+ splitWorker : (CanisterArgs) -> (Result_20);
673
763
  // A worker of the group sends its cycles here before it is deleted (`giveBackCycles`).
674
764
  // The workers only: somebody else's cycles are refused (they go back to the sender).
675
765
  takeCycles : () -> (nat);
@@ -677,9 +767,9 @@ service : (InitArgs) -> {
677
767
  // accepted and counted. No per-driver data: the bills are the core's. Only the core.
678
768
  takeFeeCycles : () -> (nat);
679
769
  // Cycles for the core, by hand: `cyclesPerWorker`, like a worker's top-up.
680
- topUpCore : () -> (Result_20);
770
+ topUpCore : () -> (Result_21);
681
771
  // Cycles for a worker, by hand.
682
- topUpWorker : (CanisterArgs) -> (Result_20);
772
+ topUpWorker : (CanisterArgs) -> (Result_21);
683
773
  // KO-11: a new build of the core: stop → upgrade → start; its state stays (C-12).
684
774
  upgradeCore : () -> (Result_3);
685
775
  // KO-11: a new worker build on a worker that runs: stop → upgrade → start. Its state
@@ -687,10 +777,10 @@ service : (InitArgs) -> {
687
777
  // a split or a drain holds the worker.
688
778
  upgradeWorker : (CanisterArgs) -> (Result_3);
689
779
  // The core wasm, in chunks like the worker's.
690
- uploadCoreWasmChunk : (WasmChunkArgs) -> (Result_21);
780
+ uploadCoreWasmChunk : (WasmChunkArgs) -> (Result_22);
691
781
  // One chunk of a NEW worker wasm. The first chunk (index 0) drops what was uploaded
692
782
  // before; the module counts only after `commitWorkerWasm`.
693
- uploadWorkerWasmChunk : (WasmChunkArgs) -> (Result_21);
783
+ uploadWorkerWasmChunk : (WasmChunkArgs) -> (Result_22);
694
784
  // KO-1, KO-2: the worker of the area a geohash lies in — the longest prefix of the map
695
785
  // wins. None = no installed worker serves the area (no worker yet, or its worker is being
696
786
  // installed). Uncertified: the package checks the answer against `listWorkers`, and a
@@ -30,6 +30,142 @@ export interface CanisterArgs { 'canister' : Principal }
30
30
  export type ChatAdminMethod = { 'updateRoom' : null } |
31
31
  { 'createRoom' : null } |
32
32
  { 'deleteRoom' : null };
33
+ /**
34
+ * KO-21: the chat coordinator's reminder (`chatBillDue : (ChatBillDue) -> ()`), as the chat
35
+ * sends it (chat-sharded `coordinator/src/types.rs`).
36
+ */
37
+ export interface ChatBillDue {
38
+ /**
39
+ * The chat's UTC day of the run.
40
+ */
41
+ 'day' : bigint,
42
+ /**
43
+ * The first reminder of this unpaid bill.
44
+ */
45
+ 'dueSinceNs' : bigint,
46
+ /**
47
+ * Cycles due now: every billed day not paid.
48
+ */
49
+ 'bill' : bigint,
50
+ /**
51
+ * From then on `post` in the project fails while the bill stays unpaid.
52
+ */
53
+ 'blockAtNs' : bigint,
54
+ 'projectId' : string,
55
+ /**
56
+ * The chat core: `payProjectBill` goes there.
57
+ */
58
+ 'payTo' : Principal,
59
+ 'multiplierPermille' : number,
60
+ }
61
+ /**
62
+ * KO-22: the last chat bill this coordinator paid, and every one together.
63
+ */
64
+ export interface ChatBillPaid {
65
+ 'day' : bigint,
66
+ 'paidAtNs' : bigint,
67
+ 'paidTotal' : bigint,
68
+ 'amount' : bigint,
69
+ }
70
+ /**
71
+ * KO-22: the last reminder and what became of it. Stored in `Config.chatBill`.
72
+ */
73
+ export interface ChatBillRun {
74
+ 'day' : bigint,
75
+ 'updatedAtNs' : bigint,
76
+ 'dueSinceNs' : bigint,
77
+ /**
78
+ * What the reminder named.
79
+ */
80
+ 'reminded' : bigint,
81
+ 'blockAtNs' : bigint,
82
+ 'step' : ChatBillStep,
83
+ /**
84
+ * D8: the driver rooms (`drv-…`) of the bill, and how many batches of them the core
85
+ * took so far.
86
+ */
87
+ 'driverRooms' : [] | [number],
88
+ 'receivedAtNs' : bigint,
89
+ 'projectId' : string,
90
+ 'batchesSent' : [] | [number],
91
+ 'payTo' : Principal,
92
+ /**
93
+ * D8: cycles the coordinator keeps paying — the project's other rooms, pool canisters,
94
+ * rooms of no driver canister.
95
+ */
96
+ 'absorbed' : [] | [bigint],
97
+ /**
98
+ * What the chat core took (`payProjectBill`).
99
+ */
100
+ 'accepted' : [] | [bigint],
101
+ /**
102
+ * The bill as `getProjectBill` said it — what is paid.
103
+ */
104
+ 'amount' : [] | [bigint],
105
+ /**
106
+ * D8: cycles that went into the drivers' accounts.
107
+ */
108
+ 'passed' : [] | [bigint],
109
+ /**
110
+ * Why it is not paid, or why the shares wait.
111
+ */
112
+ 'problem' : [] | [string],
113
+ }
114
+ /**
115
+ * KO-22: where a payment of a chat bill is. Stored before every await (record-driven).
116
+ */
117
+ export type ChatBillStep = {
118
+ /**
119
+ * Reading the core's chat config, the chat core, the bill.
120
+ */
121
+ 'reading' : null
122
+ } |
123
+ {
124
+ /**
125
+ * Paid and passed on.
126
+ */
127
+ 'done' : null
128
+ } |
129
+ {
130
+ /**
131
+ * Not paid: `problem` says why (an alarm). The next reminder tries again.
132
+ */
133
+ 'unpaid' : null
134
+ } |
135
+ {
136
+ /**
137
+ * Paid; the drivers' shares are on their way to the core (D8).
138
+ */
139
+ 'sharing' : null
140
+ } |
141
+ {
142
+ /**
143
+ * The bill read was 0: nothing to pay.
144
+ */
145
+ 'nothingDue' : null
146
+ } |
147
+ {
148
+ /**
149
+ * The reminder is taken; the payment is not started.
150
+ */
151
+ 'received' : null
152
+ } |
153
+ {
154
+ /**
155
+ * `payProjectBill` is on its way with the cycles.
156
+ */
157
+ 'paying' : null
158
+ };
159
+ /**
160
+ * KO-21: the copy of the core's chat config (`getChatConfig`): who may remind, which
161
+ * project is ours. Read from the core after an upgrade, by hand, and when a reminder comes
162
+ * from another caller (at most once an hour).
163
+ */
164
+ export interface ChatLink {
165
+ 'chatCoordinatorId' : Principal,
166
+ 'readAtNs' : bigint,
167
+ 'projectId' : string,
168
+ }
33
169
  export interface CommitWasmArgs {
34
170
  /**
35
171
  * Of the whole module. The coordinator refuses a module that does not match.
@@ -111,11 +247,23 @@ export interface Config {
111
247
  * low balance. A worker asks below half of it.
112
248
  */
113
249
  'cyclesPerWorker' : bigint,
250
+ /**
251
+ * KO-22: the last chat bill paid, with the total.
252
+ */
253
+ 'chatBillPaid' : [] | [ChatBillPaid],
254
+ /**
255
+ * KO-22: the last chat bill reminder and its payment.
256
+ */
257
+ 'chatBill' : [] | [ChatBillRun],
114
258
  /**
115
259
  * false (STAGE, local): the coordinator never creates a worker or splits by itself,
116
260
  * whatever the load; the levels are only shown (KO-7). true (prod): it does.
117
261
  */
118
262
  'spread' : boolean,
263
+ /**
264
+ * KO-21: the copy of the core's chat config. None = not read yet.
265
+ */
266
+ 'chatLink' : [] | [ChatLink],
119
267
  'nextEventId' : bigint,
120
268
  /**
121
269
  * The ONE superadmin of a LIVE group: a person, who hands the role over on a request.
@@ -563,26 +711,28 @@ export type Result_11 = { 'Ok' : boolean } |
563
711
  { 'Err' : CoordinatorError };
564
712
  export type Result_12 = { 'Ok' : Array<WorkerRecord> } |
565
713
  { 'Err' : CoordinatorError };
566
- export type Result_13 = { 'Ok' : CoreRecord } |
714
+ export type Result_13 = { 'Ok' : [] | [ChatLink] } |
567
715
  { 'Err' : CoordinatorError };
568
- export type Result_14 = { 'Ok' : WorkerStatus } |
716
+ export type Result_14 = { 'Ok' : CoreRecord } |
569
717
  { 'Err' : CoordinatorError };
570
- export type Result_15 = { 'Ok' : Dependents } |
718
+ export type Result_15 = { 'Ok' : WorkerStatus } |
571
719
  { 'Err' : CoordinatorError };
572
- export type Result_16 = { 'Ok' : Config } |
720
+ export type Result_16 = { 'Ok' : Dependents } |
573
721
  { 'Err' : CoordinatorError };
574
- export type Result_17 = { 'Ok' : SetWorkerConfigResult } |
722
+ export type Result_17 = { 'Ok' : Config } |
575
723
  { 'Err' : CoordinatorError };
576
- export type Result_18 = { 'Ok' : WorkerView } |
724
+ export type Result_18 = { 'Ok' : SetWorkerConfigResult } |
577
725
  { 'Err' : CoordinatorError };
578
- export type Result_19 = { 'Ok' : SplitResult } |
726
+ export type Result_19 = { 'Ok' : WorkerView } |
579
727
  { 'Err' : CoordinatorError };
580
728
  export type Result_2 = { 'Ok' : Array<PrefixEntry> } |
581
729
  { 'Err' : CoordinatorError };
582
- export type Result_20 = { 'Ok' : bigint } |
730
+ export type Result_20 = { 'Ok' : SplitResult } |
583
731
  { 'Err' : CoordinatorError };
584
732
  export type Result_21 = { 'Ok' : bigint } |
585
733
  { 'Err' : CoordinatorError };
734
+ export type Result_22 = { 'Ok' : bigint } |
735
+ { 'Err' : CoordinatorError };
586
736
  export type Result_3 = { 'Ok' : WasmInfo } |
587
737
  { 'Err' : CoordinatorError };
588
738
  export type Result_4 = { 'Ok' : Principal } |
@@ -826,6 +976,13 @@ export interface _SERVICE {
826
976
  * on.
827
977
  */
828
978
  'assignPrefix' : ActorMethod<[AssignPrefixArgs], Result_2>,
979
+ /**
980
+ * KO-21: the chat coordinator reminds this coordinator of the chat bill of its project.
981
+ * Only the chat coordinator of the core's chat config (a trap otherwise; ingress refused in
982
+ * `inspect_message`). Answers at once: the payment runs in a task of its own (KO-22). Once
983
+ * per chat day.
984
+ */
985
+ 'chatBillDue' : ActorMethod<[ChatBillDue], undefined>,
829
986
  /**
830
987
  * DEPLOYED → LIVE: the caller becomes THE superadmin. In prod the deploy admins lose
831
988
  * their rights here, in the coordinator and in the core.
@@ -958,14 +1115,18 @@ export interface _SERVICE {
958
1115
  * A superadmin reads the query load of every installed worker now.
959
1116
  */
960
1117
  'readQueryLoads' : ActorMethod<[], Result_12>,
1118
+ /**
1119
+ * KO-24: the superadmin reads the core's chat config again (the front's button).
1120
+ */
1121
+ 'refreshChatLink' : ActorMethod<[], Result_13>,
961
1122
  /**
962
1123
  * What the management canister says of the core: its balance and its module.
963
1124
  */
964
- 'refreshCore' : ActorMethod<[], Result_13>,
1125
+ 'refreshCore' : ActorMethod<[], Result_14>,
965
1126
  /**
966
1127
  * What a worker says of itself now. The coordinator keeps the memory and the cycles.
967
1128
  */
968
- 'refreshWorker' : ActorMethod<[CanisterArgs], Result_14>,
1129
+ 'refreshWorker' : ActorMethod<[CanisterArgs], Result_15>,
969
1130
  'removeCoreAdmin' : ActorMethod<[PrincipalArgs], Result>,
970
1131
  'removeDeployAdmin' : ActorMethod<[PrincipalArgs], Result_1>,
971
1132
  /**
@@ -1007,33 +1168,33 @@ export interface _SERVICE {
1007
1168
  * map starts again: the first worker holds the world. One canister at a time; refused
1008
1169
  * while a split, a drain or an upgrade runs.
1009
1170
  */
1010
- 'resetGroup' : ActorMethod<[], Result_15>,
1171
+ 'resetGroup' : ActorMethod<[], Result_16>,
1011
1172
  /**
1012
1173
  * Changes what a superadmin may: `spread`, the cycles of a worker, the own reserve,
1013
1174
  * `maxWorkers`, the query thresholds. Only the fields given are changed.
1014
1175
  */
1015
- 'setConfig' : ActorMethod<[SetConfigArgs], Result_16>,
1176
+ 'setConfig' : ActorMethod<[SetConfigArgs], Result_17>,
1016
1177
  'setCoreLoggingEnabled' : ActorMethod<[CoreLoggingArgs], Result_11>,
1017
1178
  /**
1018
1179
  * KO-19: the superadmin sets the thresholds of the fee multiplier (cycles per canister).
1019
1180
  */
1020
- 'setFeeThresholds' : ActorMethod<[FeeThresholds], Result_16>,
1181
+ 'setFeeThresholds' : ActorMethod<[FeeThresholds], Result_17>,
1021
1182
  /**
1022
1183
  * The config of the workers of the group: the load thresholds, logging. Only the fields
1023
1184
  * given are changed. The result is stored, given to every worker that has its code, and
1024
1185
  * to every worker created later.
1025
1186
  */
1026
- 'setWorkerConfig' : ActorMethod<[WorkerConfigArgs], Result_17>,
1187
+ 'setWorkerConfig' : ActorMethod<[WorkerConfigArgs], Result_18>,
1027
1188
  /**
1028
1189
  * Opens a worker to the prefixes of a split again, or closes it without giving anything
1029
1190
  * away.
1030
1191
  */
1031
- 'setWorkerOpen' : ActorMethod<[SetWorkerOpenArgs], Result_18>,
1192
+ 'setWorkerOpen' : ActorMethod<[SetWorkerOpenArgs], Result_19>,
1032
1193
  /**
1033
1194
  * A superadmin splits a worker now, whatever its load and `spread` (KO-17): a fresh worker
1034
1195
  * takes about half of its prefixes. Answers with the new worker and the prefixes it got.
1035
1196
  */
1036
- 'splitWorker' : ActorMethod<[CanisterArgs], Result_19>,
1197
+ 'splitWorker' : ActorMethod<[CanisterArgs], Result_20>,
1037
1198
  /**
1038
1199
  * A worker of the group sends its cycles here before it is deleted (`giveBackCycles`).
1039
1200
  * The workers only: somebody else's cycles are refused (they go back to the sender).
@@ -1047,11 +1208,11 @@ export interface _SERVICE {
1047
1208
  /**
1048
1209
  * Cycles for the core, by hand: `cyclesPerWorker`, like a worker's top-up.
1049
1210
  */
1050
- 'topUpCore' : ActorMethod<[], Result_20>,
1211
+ 'topUpCore' : ActorMethod<[], Result_21>,
1051
1212
  /**
1052
1213
  * Cycles for a worker, by hand.
1053
1214
  */
1054
- 'topUpWorker' : ActorMethod<[CanisterArgs], Result_20>,
1215
+ 'topUpWorker' : ActorMethod<[CanisterArgs], Result_21>,
1055
1216
  /**
1056
1217
  * KO-11: a new build of the core: stop → upgrade → start; its state stays (C-12).
1057
1218
  */
@@ -1065,12 +1226,12 @@ export interface _SERVICE {
1065
1226
  /**
1066
1227
  * The core wasm, in chunks like the worker's.
1067
1228
  */
1068
- 'uploadCoreWasmChunk' : ActorMethod<[WasmChunkArgs], Result_21>,
1229
+ 'uploadCoreWasmChunk' : ActorMethod<[WasmChunkArgs], Result_22>,
1069
1230
  /**
1070
1231
  * One chunk of a NEW worker wasm. The first chunk (index 0) drops what was uploaded
1071
1232
  * before; the module counts only after `commitWorkerWasm`.
1072
1233
  */
1073
- 'uploadWorkerWasmChunk' : ActorMethod<[WasmChunkArgs], Result_21>,
1234
+ 'uploadWorkerWasmChunk' : ActorMethod<[WasmChunkArgs], Result_22>,
1074
1235
  /**
1075
1236
  * KO-1, KO-2: the worker of the area a geohash lies in — the longest prefix of the map
1076
1237
  * wins. None = no installed worker serves the area (no worker yet, or its worker is being