@jsm-mit/tigi-sharded-package 0.8.0 → 0.9.0

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.
@@ -48,7 +48,7 @@ type TigiCore =
48
48
  /// joins the next daily bill of the room's OWN driver canister as it is (the chat priced
49
49
  /// it; no multiplier). A pool canister's share and a room of no canister of the registry
50
50
  /// are absorbed (the coordinator keeps paying them). Once per `batchId`.
51
- addChatShares: (args: ChatSharesArgs) -> (Result_32);
51
+ addChatShares: (args: ChatSharesArgs) -> (Result_34);
52
52
  /// Admins: a canister the core controls joins the demo pool (U-35).
53
53
  addPoolCanister: (args: CanisterArgs) -> (Result_6);
54
54
  /// Admins: a driver canister, or one driver in it (`driverKey`), is blocked; the workers
@@ -61,63 +61,68 @@ type TigiCore =
61
61
  /// answers the same NotAuthorized. The room of the canister gets the caller (C-15).
62
62
  claimDriverCanister: (args: ClaimArgs) -> (Result_6);
63
63
  clearLogs: () -> ();
64
+ /// Admins (F-24): the chunks become THE app; drivers' canisters take it at their "Aktualizuj".
65
+ commitDriverApk: (args: ApkCommitArgs) -> (Result_33);
64
66
  /// Admins: the chunks become THE module of their kind. A new driver wasm is released
65
67
  /// (F-11) and its hash goes to the workers.
66
- commitDriverWasm: (args: WasmCommitArgs) -> (Result_31);
68
+ commitDriverWasm: (args: WasmCommitArgs) -> (Result_32);
67
69
  /// Admins, localTest: an empty canister from the core's cycles joins the demo pool.
68
70
  createLocalPoolCanister: () -> (Result_6);
69
- /// F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
70
71
  createMyDriverCanister: () -> (Result_6);
71
72
  /// Admins: the simulator, created once (F-18).
72
- ensureSimulator: () -> (Result_30);
73
+ ensureSimulator: () -> (Result_31);
73
74
  /// F-8: 15 min more for the holder of a demo canister.
74
75
  extendDemoLease: () -> (Result_6);
75
- getAdmins: () -> (Result_29) query;
76
+ getAdmins: () -> (Result_30) query;
76
77
  /// For the fronts (through the package): where the chat of this environment is. Null =
77
78
  /// no chat here yet. The room of a driver is `ChatRoomFunctions.driverRoomId`.
78
79
  getChatConfig: () -> (opt ChatConfig) query;
79
80
  /// Admins: how far the driver rooms are (C-15).
80
- getChatRoomsStatus: () -> (Result_28) query;
81
+ getChatRoomsStatus: () -> (Result_29) query;
82
+ /// F-24 (public): the current app — what a driver canister compares its own with.
83
+ getDriverApk: () -> (opt ApkInfo) query;
84
+ /// F-24 (public): one chunk of the current app; a driver canister reads them in order.
85
+ getDriverApkChunk: (index: nat32) -> (opt blob) query;
81
86
  /// WO-1, WO-2: what the core knows of a canister — for the workers and anybody.
82
87
  getDriverCanisterStatus: (args: CanisterArgs) ->
83
88
  (DriverCanisterStatus) query;
84
89
  /// Admins: the account of one driver canister (C-17 … C-20).
85
- getDriverFeeAccount: (args: CanisterArgs) -> (Result_27) query;
90
+ getDriverFeeAccount: (args: CanisterArgs) -> (Result_28) query;
86
91
  /// C-19: a driver canister of the registry asks for its bill — the events since its
87
92
  /// last settlement, priced on the fee's day. Called by the canister at its first
88
93
  /// "Przyjmuję zlecenia" of a day. A pool canister owes nothing (C-18).
89
- getDriverFeeBill: () -> (Result_26);
94
+ getDriverFeeBill: () -> (Result_27);
90
95
  /// Admins (stage 7): the aggregated rating of one driver (sum and count of stars; null =
91
96
  /// no rating yet) — the value the workers get through the outbox (C-6).
92
- getDriverRating: (args: DriverRatingArgs) -> (Result_22) query;
93
- getDriverRollout: () -> (Result_25) query;
94
- getFactoryStatus: () -> (Result_24) query;
97
+ getDriverRating: (args: DriverRatingArgs) -> (Result_23) query;
98
+ getDriverRollout: () -> (Result_26) query;
99
+ getFactoryStatus: () -> (Result_25) query;
95
100
  /// C-22: the rates, the day, the multiplier cached, the totals.
96
- getFeeStatus: () -> (Result_23) query;
101
+ getFeeStatus: () -> (Result_24) query;
97
102
  getLogs: () -> (text) query;
98
103
  /// The caller's own canister, or the demo canister the caller holds now.
99
104
  getMyDriverCanister: () -> (Result_6) query;
100
105
  getMyProfile: () -> (Result_4) query;
101
106
  /// C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
102
107
  /// rating yet). Ratings reach the core in the workers' batches, up to a minute late.
103
- getMyRating: () -> (Result_22) query;
108
+ getMyRating: () -> (Result_23) query;
104
109
  /// C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
105
110
  /// details screen after a reload and to show the rating after `rateMyRide`. Another
106
111
  /// rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
107
- getMyRide: (args: RequestIdArgs) -> (Result_21) query;
112
+ getMyRide: (args: RequestIdArgs) -> (Result_22) query;
108
113
  /// C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
109
114
  /// can still be rated (KU-5, C-23).
110
- getMyRides: (args: RidesPageArgs) -> (Result_20) query;
115
+ getMyRides: (args: RidesPageArgs) -> (Result_21) query;
111
116
  /// C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
112
- getProfiles: (args: ProfilesArgs) -> (Result_19) query;
117
+ getProfiles: (args: ProfilesArgs) -> (Result_20) query;
113
118
  /// F-11: the driver wasms released so far, oldest first.
114
119
  getReleasedDriverWasms: () -> (vec ReleasedWasm) query;
115
120
  /// F-18: the simulator of this group; none in prod or before ensureSimulator.
116
121
  getSimulator: () -> (opt principal) query;
117
122
  /// Admins: the coordinator, the workers confirmed so far, the mode.
118
- getWiring: () -> (Result_18) query;
123
+ getWiring: () -> (Result_19) query;
119
124
  /// Admins: how far the outbox to the workers is (C-6, C-7).
120
- getWorkerOutbox: () -> (Result_17) query;
125
+ getWorkerOutbox: () -> (Result_18) query;
121
126
  /// Workers of the group: the core asks the coordinator once and remembers the worker,
122
127
  /// which then gets the network state through the outbox. A worker calls it once after
123
128
  /// its install. Answers true.
@@ -125,27 +130,30 @@ type TigiCore =
125
130
  /// Workers of the group: finished rides and ratings, at most MAX_RIDE_BATCH (C-4, C-5).
126
131
  /// Idempotent: a known requestId and a counted rating count once. Invalid entries are
127
132
  /// rejected and logged; the worker drops the whole batch after an ok.
128
- ingestRideBatch: (batch: RideBatch) -> (Result_16);
133
+ ingestRideBatch: (batch: RideBatch) -> (Result_17);
129
134
  /// C-14: the accounts gate of the chat (U-43). The chat core asks this group's
130
135
  /// coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
131
136
  /// account with a name exists for the principal and the rider is not blocked.
132
137
  isUser: ("principal": principal) -> (bool) query;
133
138
  /// F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
134
139
  /// one-time claim code (F-20, U-45).
135
- leaseDemoDriverCanister: () -> (Result_15);
136
- listBlocks: (args: PageArgs) -> (Result_14) query;
137
- listDriverCanisters: (args: PageArgs) -> (Result_13) query;
140
+ leaseDemoDriverCanister: () -> (Result_16);
141
+ listBlocks: (args: PageArgs) -> (Result_15) query;
142
+ listDriverCanisters: (args: PageArgs) -> (Result_14) query;
138
143
  /// Admins: the accounts, 100 a page at most.
139
- listDriverFeeAccounts: (args: PageArgs) -> (Result_12) query;
144
+ listDriverFeeAccounts: (args: PageArgs) -> (Result_13) query;
140
145
  /// Admins: the driver rooms as the core wants them, 100 a page at most.
141
- listDriverRooms: (args: PageArgs) -> (Result_11) query;
146
+ listDriverRooms: (args: PageArgs) -> (Result_12) query;
142
147
  /// F-20: a fresh claim code for the caller's running demo lease; the old one stops
143
148
  /// working.
144
- newClaimCode: () -> (Result_10);
149
+ newClaimCode: () -> (Result_11);
145
150
  /// C-20: the driver canister pays the bill of `day` with the cycles attached to this
146
151
  /// call. The core takes exactly the bill (the rest goes back), or nothing when less is
147
152
  /// attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
148
- payDriverFee: (args: FeePayArgs) -> (Result_9);
153
+ payDriverFee: (args: FeePayArgs) -> (Result_10);
154
+ /// F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
155
+ /// F-1 (user 2026-10-31): what a driver canister costs now and the caller's account to pay to.
156
+ quoteMyDriverCanister: () -> (Result_9);
149
157
  /// C-23 (KU-5, stage 7): the rider rates the driver of a finished ride from the history.
150
158
  /// Only the ride's rider; a completed ride within 24 h of its end (K-8); once per ride
151
159
  /// over both paths — a live rating through the worker and this one count once together
@@ -184,6 +192,8 @@ type TigiCore =
184
192
  unblockRider: (args: UnblockRiderArgs) -> (Result_2);
185
193
  /// Admins: the simulator gets the current simulator wasm (stop → upgrade → start).
186
194
  upgradeSimulator: () -> (Result_1);
195
+ /// Admins (F-24): one chunk of a new Android app.
196
+ uploadDriverApkChunk: (args: ApkChunkArgs) -> (Result);
187
197
  /// Admins: one chunk of a new driver or simulator module (gzipped: ~0.7 MB).
188
198
  uploadDriverWasmChunk: (args: WasmChunkArgs) -> (Result);
189
199
  };
@@ -274,7 +284,7 @@ type RideBatch =
274
284
  type Result_9 =
275
285
  variant {
276
286
  err: Error;
277
- ok: FeePaid;
287
+ ok: DriverCanisterQuote;
278
288
  };
279
289
  type Result_8 =
280
290
  variant {
@@ -301,21 +311,31 @@ type Result_4 =
301
311
  err: Error;
302
312
  ok: Profile;
303
313
  };
304
- type Result_32 =
314
+ type Result_34 =
305
315
  variant {
306
316
  err: Error;
307
317
  ok: ChatSharesAck;
308
318
  };
309
- type Result_31 =
319
+ type Result_33 =
320
+ variant {
321
+ err: Error;
322
+ ok: ApkInfo;
323
+ };
324
+ type Result_32 =
310
325
  variant {
311
326
  err: Error;
312
327
  ok: WasmInfo;
313
328
  };
314
- type Result_30 =
329
+ type Result_31 =
315
330
  variant {
316
331
  err: Error;
317
332
  ok: principal;
318
333
  };
334
+ type Result_30 =
335
+ variant {
336
+ err: Error;
337
+ ok: vec principal;
338
+ };
319
339
  type Result_3 =
320
340
  variant {
321
341
  err: Error;
@@ -324,52 +344,52 @@ type Result_3 =
324
344
  type Result_29 =
325
345
  variant {
326
346
  err: Error;
327
- ok: vec principal;
347
+ ok: ChatRoomsStatus;
328
348
  };
329
349
  type Result_28 =
330
350
  variant {
331
351
  err: Error;
332
- ok: ChatRoomsStatus;
352
+ ok: DriverFeeAccountView;
333
353
  };
334
354
  type Result_27 =
335
355
  variant {
336
356
  err: Error;
337
- ok: DriverFeeAccountView;
357
+ ok: FeeBillAnswer;
338
358
  };
339
359
  type Result_26 =
340
360
  variant {
341
361
  err: Error;
342
- ok: FeeBillAnswer;
362
+ ok: opt RolloutView;
343
363
  };
344
364
  type Result_25 =
345
365
  variant {
346
366
  err: Error;
347
- ok: opt RolloutView;
367
+ ok: FactoryStatus;
348
368
  };
349
369
  type Result_24 =
350
370
  variant {
351
371
  err: Error;
352
- ok: FactoryStatus;
372
+ ok: FeeStatus;
353
373
  };
354
374
  type Result_23 =
355
375
  variant {
356
376
  err: Error;
357
- ok: FeeStatus;
377
+ ok: opt Rating;
358
378
  };
359
379
  type Result_22 =
360
380
  variant {
361
381
  err: Error;
362
- ok: opt Rating;
382
+ ok: RideView;
363
383
  };
364
384
  type Result_21 =
365
385
  variant {
366
386
  err: Error;
367
- ok: RideView;
387
+ ok: RidesPage;
368
388
  };
369
389
  type Result_20 =
370
390
  variant {
371
391
  err: Error;
372
- ok: RidesPage;
392
+ ok: vec ProfileEntry;
373
393
  };
374
394
  type Result_2 =
375
395
  variant {
@@ -377,16 +397,11 @@ type Result_2 =
377
397
  ok: bool;
378
398
  };
379
399
  type Result_19 =
380
- variant {
381
- err: Error;
382
- ok: vec ProfileEntry;
383
- };
384
- type Result_18 =
385
400
  variant {
386
401
  err: Error;
387
402
  ok: Wiring;
388
403
  };
389
- type Result_17 =
404
+ type Result_18 =
390
405
  variant {
391
406
  err: Error;
392
407
  ok:
@@ -397,41 +412,46 @@ type Result_17 =
397
412
  subjects: nat;
398
413
  };
399
414
  };
400
- type Result_16 =
415
+ type Result_17 =
401
416
  variant {
402
417
  err: Error;
403
418
  ok: RideBatchResult;
404
419
  };
405
- type Result_15 =
420
+ type Result_16 =
406
421
  variant {
407
422
  err: Error;
408
423
  ok: LeaseAnswer;
409
424
  };
410
- type Result_14 =
425
+ type Result_15 =
411
426
  variant {
412
427
  err: Error;
413
428
  ok: vec Block;
414
429
  };
415
- type Result_13 =
430
+ type Result_14 =
416
431
  variant {
417
432
  err: Error;
418
433
  ok: DriverCanistersPage;
419
434
  };
420
- type Result_12 =
435
+ type Result_13 =
421
436
  variant {
422
437
  err: Error;
423
438
  ok: vec DriverFeeAccountView;
424
439
  };
425
- type Result_11 =
440
+ type Result_12 =
426
441
  variant {
427
442
  err: Error;
428
443
  ok: vec DriverRoomView;
429
444
  };
430
- type Result_10 =
445
+ type Result_11 =
431
446
  variant {
432
447
  err: Error;
433
448
  ok: ClaimCode;
434
449
  };
450
+ type Result_10 =
451
+ variant {
452
+ err: Error;
453
+ ok: FeePaid;
454
+ };
435
455
  type Result_1 =
436
456
  variant {
437
457
  err: Error;
@@ -670,6 +690,15 @@ type DriverCanisterStatus =
670
690
  moduleHash: opt blob;
671
691
  registered: bool;
672
692
  };
693
+ type DriverCanisterQuote =
694
+ record {
695
+ accountId: blob;
696
+ balanceE8s: nat;
697
+ minimumE8s: nat;
698
+ priceCycles: nat;
699
+ suggestedE8s: nat;
700
+ xdrPermyriadPerIcp: nat;
701
+ };
673
702
  type DriverCanisterKind =
674
703
  variant {
675
704
  own;
@@ -773,4 +802,25 @@ type Block =
773
802
  reason: text;
774
803
  target: BlockTarget;
775
804
  };
805
+ type ApkInfo =
806
+ record {
807
+ chunks: nat32;
808
+ committedAtNs: int;
809
+ sha256: blob;
810
+ size: nat;
811
+ versionCode: nat32;
812
+ versionName: text;
813
+ };
814
+ type ApkCommitArgs =
815
+ record {
816
+ chunks: nat32;
817
+ sha256: blob;
818
+ versionCode: nat32;
819
+ versionName: text;
820
+ };
821
+ type ApkChunkArgs =
822
+ record {
823
+ bytes: blob;
824
+ index: nat32;
825
+ };
776
826
  service : (init: InitArgs) -> TigiCore
@@ -2,6 +2,24 @@ import type { Principal } from '@icp-sdk/core/principal';
2
2
  import type { ActorMethod } from '@icp-sdk/core/agent';
3
3
  import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
+ export interface ApkChunkArgs {
6
+ 'bytes' : Uint8Array | number[],
7
+ 'index' : number,
8
+ }
9
+ export interface ApkCommitArgs {
10
+ 'sha256' : Uint8Array | number[],
11
+ 'chunks' : number,
12
+ 'versionCode' : number,
13
+ 'versionName' : string,
14
+ }
15
+ export interface ApkInfo {
16
+ 'sha256' : Uint8Array | number[],
17
+ 'size' : bigint,
18
+ 'committedAtNs' : bigint,
19
+ 'chunks' : number,
20
+ 'versionCode' : number,
21
+ 'versionName' : string,
22
+ }
5
23
  export interface Block {
6
24
  'by' : Principal,
7
25
  'atNs' : bigint,
@@ -74,6 +92,14 @@ export interface DriverCanister {
74
92
  }
75
93
  export type DriverCanisterKind = { 'own' : null } |
76
94
  { 'pool' : null };
95
+ export interface DriverCanisterQuote {
96
+ 'accountId' : Uint8Array | number[],
97
+ 'minimumE8s' : bigint,
98
+ 'xdrPermyriadPerIcp' : bigint,
99
+ 'balanceE8s' : bigint,
100
+ 'suggestedE8s' : bigint,
101
+ 'priceCycles' : bigint,
102
+ }
77
103
  export interface DriverCanisterStatus {
78
104
  'moduleHash' : [] | [Uint8Array | number[]],
79
105
  'blocked' : boolean,
@@ -242,21 +268,23 @@ export type Result = { 'ok' : bigint } |
242
268
  { 'err' : Error };
243
269
  export type Result_1 = { 'ok' : Uint8Array | number[] } |
244
270
  { 'err' : Error };
245
- export type Result_10 = { 'ok' : ClaimCode } |
271
+ export type Result_10 = { 'ok' : FeePaid } |
246
272
  { 'err' : Error };
247
- export type Result_11 = { 'ok' : Array<DriverRoomView> } |
273
+ export type Result_11 = { 'ok' : ClaimCode } |
248
274
  { 'err' : Error };
249
- export type Result_12 = { 'ok' : Array<DriverFeeAccountView> } |
275
+ export type Result_12 = { 'ok' : Array<DriverRoomView> } |
250
276
  { 'err' : Error };
251
- export type Result_13 = { 'ok' : DriverCanistersPage } |
277
+ export type Result_13 = { 'ok' : Array<DriverFeeAccountView> } |
252
278
  { 'err' : Error };
253
- export type Result_14 = { 'ok' : Array<Block> } |
279
+ export type Result_14 = { 'ok' : DriverCanistersPage } |
254
280
  { 'err' : Error };
255
- export type Result_15 = { 'ok' : LeaseAnswer } |
281
+ export type Result_15 = { 'ok' : Array<Block> } |
256
282
  { 'err' : Error };
257
- export type Result_16 = { 'ok' : RideBatchResult } |
283
+ export type Result_16 = { 'ok' : LeaseAnswer } |
258
284
  { 'err' : Error };
259
- export type Result_17 = {
285
+ export type Result_17 = { 'ok' : RideBatchResult } |
286
+ { 'err' : Error };
287
+ export type Result_18 = {
260
288
  'ok' : {
261
289
  'subjects' : bigint,
262
290
  'headSeq' : bigint,
@@ -265,39 +293,41 @@ export type Result_17 = {
265
293
  }
266
294
  } |
267
295
  { 'err' : Error };
268
- export type Result_18 = { 'ok' : Wiring } |
269
- { 'err' : Error };
270
- export type Result_19 = { 'ok' : Array<ProfileEntry> } |
296
+ export type Result_19 = { 'ok' : Wiring } |
271
297
  { 'err' : Error };
272
298
  export type Result_2 = { 'ok' : boolean } |
273
299
  { 'err' : Error };
274
- export type Result_20 = { 'ok' : RidesPage } |
300
+ export type Result_20 = { 'ok' : Array<ProfileEntry> } |
275
301
  { 'err' : Error };
276
- export type Result_21 = { 'ok' : RideView } |
302
+ export type Result_21 = { 'ok' : RidesPage } |
277
303
  { 'err' : Error };
278
- export type Result_22 = { 'ok' : [] | [Rating] } |
304
+ export type Result_22 = { 'ok' : RideView } |
279
305
  { 'err' : Error };
280
- export type Result_23 = { 'ok' : FeeStatus } |
306
+ export type Result_23 = { 'ok' : [] | [Rating] } |
281
307
  { 'err' : Error };
282
- export type Result_24 = { 'ok' : FactoryStatus } |
308
+ export type Result_24 = { 'ok' : FeeStatus } |
283
309
  { 'err' : Error };
284
- export type Result_25 = { 'ok' : [] | [RolloutView] } |
310
+ export type Result_25 = { 'ok' : FactoryStatus } |
285
311
  { 'err' : Error };
286
- export type Result_26 = { 'ok' : FeeBillAnswer } |
312
+ export type Result_26 = { 'ok' : [] | [RolloutView] } |
287
313
  { 'err' : Error };
288
- export type Result_27 = { 'ok' : DriverFeeAccountView } |
314
+ export type Result_27 = { 'ok' : FeeBillAnswer } |
289
315
  { 'err' : Error };
290
- export type Result_28 = { 'ok' : ChatRoomsStatus } |
316
+ export type Result_28 = { 'ok' : DriverFeeAccountView } |
291
317
  { 'err' : Error };
292
- export type Result_29 = { 'ok' : Array<Principal> } |
318
+ export type Result_29 = { 'ok' : ChatRoomsStatus } |
293
319
  { 'err' : Error };
294
320
  export type Result_3 = { 'ok' : RolloutView } |
295
321
  { 'err' : Error };
296
- export type Result_30 = { 'ok' : Principal } |
322
+ export type Result_30 = { 'ok' : Array<Principal> } |
323
+ { 'err' : Error };
324
+ export type Result_31 = { 'ok' : Principal } |
297
325
  { 'err' : Error };
298
- export type Result_31 = { 'ok' : WasmInfo } |
326
+ export type Result_32 = { 'ok' : WasmInfo } |
299
327
  { 'err' : Error };
300
- export type Result_32 = { 'ok' : ChatSharesAck } |
328
+ export type Result_33 = { 'ok' : ApkInfo } |
329
+ { 'err' : Error };
330
+ export type Result_34 = { 'ok' : ChatSharesAck } |
301
331
  { 'err' : Error };
302
332
  export type Result_4 = { 'ok' : Profile } |
303
333
  { 'err' : Error };
@@ -309,7 +339,7 @@ export type Result_7 = { 'ok' : ChatConfig } |
309
339
  { 'err' : Error };
310
340
  export type Result_8 = { 'ok' : RateRideOutcome } |
311
341
  { 'err' : Error };
312
- export type Result_9 = { 'ok' : FeePaid } |
342
+ export type Result_9 = { 'ok' : DriverCanisterQuote } |
313
343
  { 'err' : Error };
314
344
  export interface RideBatch {
315
345
  'ratings' : Array<RatingEntry>,
@@ -393,7 +423,7 @@ export interface TigiCore {
393
423
  * / it; no multiplier). A pool canister's share and a room of no canister of the registry
394
424
  * / are absorbed (the coordinator keeps paying them). Once per `batchId`.
395
425
  */
396
- 'addChatShares' : ActorMethod<[ChatSharesArgs], Result_32>,
426
+ 'addChatShares' : ActorMethod<[ChatSharesArgs], Result_34>,
397
427
  /**
398
428
  * / Admins: a canister the core controls joins the demo pool (U-35).
399
429
  */
@@ -414,28 +444,29 @@ export interface TigiCore {
414
444
  */
415
445
  'claimDriverCanister' : ActorMethod<[ClaimArgs], Result_6>,
416
446
  'clearLogs' : ActorMethod<[], undefined>,
447
+ /**
448
+ * / Admins (F-24): the chunks become THE app; drivers' canisters take it at their "Aktualizuj".
449
+ */
450
+ 'commitDriverApk' : ActorMethod<[ApkCommitArgs], Result_33>,
417
451
  /**
418
452
  * / Admins: the chunks become THE module of their kind. A new driver wasm is released
419
453
  * / (F-11) and its hash goes to the workers.
420
454
  */
421
- 'commitDriverWasm' : ActorMethod<[WasmCommitArgs], Result_31>,
455
+ 'commitDriverWasm' : ActorMethod<[WasmCommitArgs], Result_32>,
422
456
  /**
423
457
  * / Admins, localTest: an empty canister from the core's cycles joins the demo pool.
424
458
  */
425
459
  'createLocalPoolCanister' : ActorMethod<[], Result_6>,
426
- /**
427
- * / F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
428
- */
429
460
  'createMyDriverCanister' : ActorMethod<[], Result_6>,
430
461
  /**
431
462
  * / Admins: the simulator, created once (F-18).
432
463
  */
433
- 'ensureSimulator' : ActorMethod<[], Result_30>,
464
+ 'ensureSimulator' : ActorMethod<[], Result_31>,
434
465
  /**
435
466
  * / F-8: 15 min more for the holder of a demo canister.
436
467
  */
437
468
  'extendDemoLease' : ActorMethod<[], Result_6>,
438
- 'getAdmins' : ActorMethod<[], Result_29>,
469
+ 'getAdmins' : ActorMethod<[], Result_30>,
439
470
  /**
440
471
  * / For the fronts (through the package): where the chat of this environment is. Null =
441
472
  * / no chat here yet. The room of a driver is `ChatRoomFunctions.driverRoomId`.
@@ -444,7 +475,15 @@ export interface TigiCore {
444
475
  /**
445
476
  * / Admins: how far the driver rooms are (C-15).
446
477
  */
447
- 'getChatRoomsStatus' : ActorMethod<[], Result_28>,
478
+ 'getChatRoomsStatus' : ActorMethod<[], Result_29>,
479
+ /**
480
+ * / F-24 (public): the current app — what a driver canister compares its own with.
481
+ */
482
+ 'getDriverApk' : ActorMethod<[], [] | [ApkInfo]>,
483
+ /**
484
+ * / F-24 (public): one chunk of the current app; a driver canister reads them in order.
485
+ */
486
+ 'getDriverApkChunk' : ActorMethod<[number], [] | [Uint8Array | number[]]>,
448
487
  /**
449
488
  * / WO-1, WO-2: what the core knows of a canister — for the workers and anybody.
450
489
  */
@@ -452,24 +491,24 @@ export interface TigiCore {
452
491
  /**
453
492
  * / Admins: the account of one driver canister (C-17 … C-20).
454
493
  */
455
- 'getDriverFeeAccount' : ActorMethod<[CanisterArgs], Result_27>,
494
+ 'getDriverFeeAccount' : ActorMethod<[CanisterArgs], Result_28>,
456
495
  /**
457
496
  * / C-19: a driver canister of the registry asks for its bill — the events since its
458
497
  * / last settlement, priced on the fee's day. Called by the canister at its first
459
498
  * / "Przyjmuję zlecenia" of a day. A pool canister owes nothing (C-18).
460
499
  */
461
- 'getDriverFeeBill' : ActorMethod<[], Result_26>,
500
+ 'getDriverFeeBill' : ActorMethod<[], Result_27>,
462
501
  /**
463
502
  * / Admins (stage 7): the aggregated rating of one driver (sum and count of stars; null =
464
503
  * / no rating yet) — the value the workers get through the outbox (C-6).
465
504
  */
466
- 'getDriverRating' : ActorMethod<[DriverRatingArgs], Result_22>,
467
- 'getDriverRollout' : ActorMethod<[], Result_25>,
468
- 'getFactoryStatus' : ActorMethod<[], Result_24>,
505
+ 'getDriverRating' : ActorMethod<[DriverRatingArgs], Result_23>,
506
+ 'getDriverRollout' : ActorMethod<[], Result_26>,
507
+ 'getFactoryStatus' : ActorMethod<[], Result_25>,
469
508
  /**
470
509
  * / C-22: the rates, the day, the multiplier cached, the totals.
471
510
  */
472
- 'getFeeStatus' : ActorMethod<[], Result_23>,
511
+ 'getFeeStatus' : ActorMethod<[], Result_24>,
473
512
  'getLogs' : ActorMethod<[], string>,
474
513
  /**
475
514
  * / The caller's own canister, or the demo canister the caller holds now.
@@ -480,22 +519,22 @@ export interface TigiCore {
480
519
  * / C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
481
520
  * / rating yet). Ratings reach the core in the workers' batches, up to a minute late.
482
521
  */
483
- 'getMyRating' : ActorMethod<[], Result_22>,
522
+ 'getMyRating' : ActorMethod<[], Result_23>,
484
523
  /**
485
524
  * / C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
486
525
  * / details screen after a reload and to show the rating after `rateMyRide`. Another
487
526
  * / rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
488
527
  */
489
- 'getMyRide' : ActorMethod<[RequestIdArgs], Result_21>,
528
+ 'getMyRide' : ActorMethod<[RequestIdArgs], Result_22>,
490
529
  /**
491
530
  * / C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
492
531
  * / can still be rated (KU-5, C-23).
493
532
  */
494
- 'getMyRides' : ActorMethod<[RidesPageArgs], Result_20>,
533
+ 'getMyRides' : ActorMethod<[RidesPageArgs], Result_21>,
495
534
  /**
496
535
  * / C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
497
536
  */
498
- 'getProfiles' : ActorMethod<[ProfilesArgs], Result_19>,
537
+ 'getProfiles' : ActorMethod<[ProfilesArgs], Result_20>,
499
538
  /**
500
539
  * / F-11: the driver wasms released so far, oldest first.
501
540
  */
@@ -507,11 +546,11 @@ export interface TigiCore {
507
546
  /**
508
547
  * / Admins: the coordinator, the workers confirmed so far, the mode.
509
548
  */
510
- 'getWiring' : ActorMethod<[], Result_18>,
549
+ 'getWiring' : ActorMethod<[], Result_19>,
511
550
  /**
512
551
  * / Admins: how far the outbox to the workers is (C-6, C-7).
513
552
  */
514
- 'getWorkerOutbox' : ActorMethod<[], Result_17>,
553
+ 'getWorkerOutbox' : ActorMethod<[], Result_18>,
515
554
  /**
516
555
  * / Workers of the group: the core asks the coordinator once and remembers the worker,
517
556
  * / which then gets the network state through the outbox. A worker calls it once after
@@ -523,7 +562,7 @@ export interface TigiCore {
523
562
  * / Idempotent: a known requestId and a counted rating count once. Invalid entries are
524
563
  * / rejected and logged; the worker drops the whole batch after an ok.
525
564
  */
526
- 'ingestRideBatch' : ActorMethod<[RideBatch], Result_16>,
565
+ 'ingestRideBatch' : ActorMethod<[RideBatch], Result_17>,
527
566
  /**
528
567
  * / C-14: the accounts gate of the chat (U-43). The chat core asks this group's
529
568
  * / coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
@@ -534,28 +573,33 @@ export interface TigiCore {
534
573
  * / F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
535
574
  * / one-time claim code (F-20, U-45).
536
575
  */
537
- 'leaseDemoDriverCanister' : ActorMethod<[], Result_15>,
538
- 'listBlocks' : ActorMethod<[PageArgs], Result_14>,
539
- 'listDriverCanisters' : ActorMethod<[PageArgs], Result_13>,
576
+ 'leaseDemoDriverCanister' : ActorMethod<[], Result_16>,
577
+ 'listBlocks' : ActorMethod<[PageArgs], Result_15>,
578
+ 'listDriverCanisters' : ActorMethod<[PageArgs], Result_14>,
540
579
  /**
541
580
  * / Admins: the accounts, 100 a page at most.
542
581
  */
543
- 'listDriverFeeAccounts' : ActorMethod<[PageArgs], Result_12>,
582
+ 'listDriverFeeAccounts' : ActorMethod<[PageArgs], Result_13>,
544
583
  /**
545
584
  * / Admins: the driver rooms as the core wants them, 100 a page at most.
546
585
  */
547
- 'listDriverRooms' : ActorMethod<[PageArgs], Result_11>,
586
+ 'listDriverRooms' : ActorMethod<[PageArgs], Result_12>,
548
587
  /**
549
588
  * / F-20: a fresh claim code for the caller's running demo lease; the old one stops
550
589
  * / working.
551
590
  */
552
- 'newClaimCode' : ActorMethod<[], Result_10>,
591
+ 'newClaimCode' : ActorMethod<[], Result_11>,
553
592
  /**
554
593
  * / C-20: the driver canister pays the bill of `day` with the cycles attached to this
555
594
  * / call. The core takes exactly the bill (the rest goes back), or nothing when less is
556
595
  * / attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
557
596
  */
558
- 'payDriverFee' : ActorMethod<[FeePayArgs], Result_9>,
597
+ 'payDriverFee' : ActorMethod<[FeePayArgs], Result_10>,
598
+ /**
599
+ * / F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
600
+ * / F-1 (user 2026-10-31): what a driver canister costs now and the caller's account to pay to.
601
+ */
602
+ 'quoteMyDriverCanister' : ActorMethod<[], Result_9>,
559
603
  /**
560
604
  * / C-23 (KU-5, stage 7): the rider rates the driver of a finished ride from the history.
561
605
  * / Only the ride's rider; a completed ride within 24 h of its end (K-8); once per ride
@@ -614,6 +658,10 @@ export interface TigiCore {
614
658
  * / Admins: the simulator gets the current simulator wasm (stop → upgrade → start).
615
659
  */
616
660
  'upgradeSimulator' : ActorMethod<[], Result_1>,
661
+ /**
662
+ * / Admins (F-24): one chunk of a new Android app.
663
+ */
664
+ 'uploadDriverApkChunk' : ActorMethod<[ApkChunkArgs], Result>,
617
665
  /**
618
666
  * / Admins: one chunk of a new driver or simulator module (gzipped: ~0.7 MB).
619
667
  */
@@ -61,7 +61,7 @@ export const idlFactory = ({ IDL }) => {
61
61
  'addedCycles' : IDL.Nat,
62
62
  'unknown' : IDL.Nat,
63
63
  });
64
- const Result_32 = IDL.Variant({ 'ok' : ChatSharesAck, 'err' : Error });
64
+ const Result_34 = IDL.Variant({ 'ok' : ChatSharesAck, 'err' : Error });
65
65
  const CanisterArgs = IDL.Record({ 'canister' : IDL.Principal });
66
66
  const DriverCanisterKind = IDL.Variant({
67
67
  'own' : IDL.Null,
@@ -91,6 +91,21 @@ export const idlFactory = ({ IDL }) => {
91
91
  'code' : IDL.Text,
92
92
  'canister' : IDL.Principal,
93
93
  });
94
+ const ApkCommitArgs = IDL.Record({
95
+ 'sha256' : IDL.Vec(IDL.Nat8),
96
+ 'chunks' : IDL.Nat32,
97
+ 'versionCode' : IDL.Nat32,
98
+ 'versionName' : IDL.Text,
99
+ });
100
+ const ApkInfo = IDL.Record({
101
+ 'sha256' : IDL.Vec(IDL.Nat8),
102
+ 'size' : IDL.Nat,
103
+ 'committedAtNs' : IDL.Int,
104
+ 'chunks' : IDL.Nat32,
105
+ 'versionCode' : IDL.Nat32,
106
+ 'versionName' : IDL.Text,
107
+ });
108
+ const Result_33 = IDL.Variant({ 'ok' : ApkInfo, 'err' : Error });
94
109
  const WasmKind = IDL.Variant({ 'simulator' : IDL.Null, 'driver' : IDL.Null });
95
110
  const WasmCommitArgs = IDL.Record({
96
111
  'sha256' : IDL.Vec(IDL.Nat8),
@@ -103,9 +118,9 @@ export const idlFactory = ({ IDL }) => {
103
118
  'size' : IDL.Nat,
104
119
  'committedAtNs' : IDL.Int,
105
120
  });
106
- const Result_31 = IDL.Variant({ 'ok' : WasmInfo, 'err' : Error });
107
- const Result_30 = IDL.Variant({ 'ok' : IDL.Principal, 'err' : Error });
108
- const Result_29 = IDL.Variant({
121
+ const Result_32 = IDL.Variant({ 'ok' : WasmInfo, 'err' : Error });
122
+ const Result_31 = IDL.Variant({ 'ok' : IDL.Principal, 'err' : Error });
123
+ const Result_30 = IDL.Variant({
109
124
  'ok' : IDL.Vec(IDL.Principal),
110
125
  'err' : Error,
111
126
  });
@@ -121,7 +136,7 @@ export const idlFactory = ({ IDL }) => {
121
136
  'pendingSinceNs' : IDL.Opt(IDL.Int),
122
137
  'rooms' : IDL.Nat,
123
138
  });
124
- const Result_28 = IDL.Variant({ 'ok' : ChatRoomsStatus, 'err' : Error });
139
+ const Result_29 = IDL.Variant({ 'ok' : ChatRoomsStatus, 'err' : Error });
125
140
  const DriverCanisterStatus = IDL.Record({
126
141
  'moduleHash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
127
142
  'blocked' : IDL.Bool,
@@ -165,7 +180,7 @@ export const idlFactory = ({ IDL }) => {
165
180
  'paidTotal' : IDL.Nat,
166
181
  'lastFee' : IDL.Opt(FeeRecord),
167
182
  });
168
- const Result_27 = IDL.Variant({ 'ok' : DriverFeeAccountView, 'err' : Error });
183
+ const Result_28 = IDL.Variant({ 'ok' : DriverFeeAccountView, 'err' : Error });
169
184
  const FeeBillAnswer = IDL.Record({
170
185
  'day' : IDL.Nat,
171
186
  'settled' : IDL.Bool,
@@ -175,14 +190,14 @@ export const idlFactory = ({ IDL }) => {
175
190
  'multiplierPermille' : IDL.Nat,
176
191
  'rates' : FeeRates,
177
192
  });
178
- const Result_26 = IDL.Variant({ 'ok' : FeeBillAnswer, 'err' : Error });
193
+ const Result_27 = IDL.Variant({ 'ok' : FeeBillAnswer, 'err' : Error });
179
194
  const DriverRatingArgs = IDL.Record({
180
195
  'driverKey' : IDL.Text,
181
196
  'canister' : IDL.Principal,
182
197
  });
183
198
  const Rating = IDL.Record({ 'sum' : IDL.Nat, 'count' : IDL.Nat });
184
- const Result_22 = IDL.Variant({ 'ok' : IDL.Opt(Rating), 'err' : Error });
185
- const Result_25 = IDL.Variant({ 'ok' : IDL.Opt(RolloutView), 'err' : Error });
199
+ const Result_23 = IDL.Variant({ 'ok' : IDL.Opt(Rating), 'err' : Error });
200
+ const Result_26 = IDL.Variant({ 'ok' : IDL.Opt(RolloutView), 'err' : Error });
186
201
  const FactoryStatus = IDL.Record({
187
202
  'simulator' : IDL.Opt(IDL.Principal),
188
203
  'mode' : Mode,
@@ -194,7 +209,7 @@ export const idlFactory = ({ IDL }) => {
194
209
  'driverWasm' : IDL.Opt(WasmInfo),
195
210
  'registered' : IDL.Nat,
196
211
  });
197
- const Result_24 = IDL.Variant({ 'ok' : FactoryStatus, 'err' : Error });
212
+ const Result_25 = IDL.Variant({ 'ok' : FactoryStatus, 'err' : Error });
198
213
  const FeeStatus = IDL.Record({
199
214
  'multiplier' : IDL.Opt(
200
215
  IDL.Record({ 'day' : IDL.Nat, 'permille' : IDL.Nat })
@@ -214,7 +229,7 @@ export const idlFactory = ({ IDL }) => {
214
229
  'paidTotal' : IDL.Nat,
215
230
  'rates' : FeeRates,
216
231
  });
217
- const Result_23 = IDL.Variant({ 'ok' : FeeStatus, 'err' : Error });
232
+ const Result_24 = IDL.Variant({ 'ok' : FeeStatus, 'err' : Error });
218
233
  const Profile = IDL.Record({
219
234
  'updatedAtNs' : IDL.Int,
220
235
  'name' : IDL.Text,
@@ -242,7 +257,7 @@ export const idlFactory = ({ IDL }) => {
242
257
  'rider' : IDL.Principal,
243
258
  'myRating' : IDL.Opt(IDL.Nat8),
244
259
  });
245
- const Result_21 = IDL.Variant({ 'ok' : RideView, 'err' : Error });
260
+ const Result_22 = IDL.Variant({ 'ok' : RideView, 'err' : Error });
246
261
  const RidesPageArgs = IDL.Record({
247
262
  'beforeIndex' : IDL.Opt(IDL.Nat),
248
263
  'limit' : IDL.Nat,
@@ -251,13 +266,13 @@ export const idlFactory = ({ IDL }) => {
251
266
  'nextBeforeIndex' : IDL.Opt(IDL.Nat),
252
267
  'rides' : IDL.Vec(RideView),
253
268
  });
254
- const Result_20 = IDL.Variant({ 'ok' : RidesPage, 'err' : Error });
269
+ const Result_21 = IDL.Variant({ 'ok' : RidesPage, 'err' : Error });
255
270
  const ProfilesArgs = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
256
271
  const ProfileEntry = IDL.Record({
257
272
  'principal' : IDL.Principal,
258
273
  'name' : IDL.Text,
259
274
  });
260
- const Result_19 = IDL.Variant({
275
+ const Result_20 = IDL.Variant({
261
276
  'ok' : IDL.Vec(ProfileEntry),
262
277
  'err' : Error,
263
278
  });
@@ -271,8 +286,8 @@ export const idlFactory = ({ IDL }) => {
271
286
  'knownWorkers' : IDL.Vec(IDL.Principal),
272
287
  'coordinator' : IDL.Opt(IDL.Principal),
273
288
  });
274
- const Result_18 = IDL.Variant({ 'ok' : Wiring, 'err' : Error });
275
- const Result_17 = IDL.Variant({
289
+ const Result_19 = IDL.Variant({ 'ok' : Wiring, 'err' : Error });
290
+ const Result_18 = IDL.Variant({
276
291
  'ok' : IDL.Record({
277
292
  'subjects' : IDL.Nat,
278
293
  'headSeq' : IDL.Nat64,
@@ -325,7 +340,7 @@ export const idlFactory = ({ IDL }) => {
325
340
  'rejected' : IDL.Nat,
326
341
  'ratingsCounted' : IDL.Nat,
327
342
  });
328
- const Result_16 = IDL.Variant({ 'ok' : RideBatchResult, 'err' : Error });
343
+ const Result_17 = IDL.Variant({ 'ok' : RideBatchResult, 'err' : Error });
329
344
  const ClaimCode = IDL.Record({
330
345
  'expiresAtNs' : IDL.Int,
331
346
  'code' : IDL.Text,
@@ -346,7 +361,7 @@ export const idlFactory = ({ IDL }) => {
346
361
  'busy' : IDL.Record({ 'untilNs' : IDL.Int }),
347
362
  'leased' : LeasedCanister,
348
363
  });
349
- const Result_15 = IDL.Variant({ 'ok' : LeaseAnswer, 'err' : Error });
364
+ const Result_16 = IDL.Variant({ 'ok' : LeaseAnswer, 'err' : Error });
350
365
  const PageArgs = IDL.Record({ 'offset' : IDL.Nat, 'limit' : IDL.Nat });
351
366
  const BlockTarget = IDL.Variant({
352
367
  'driverCanister' : IDL.Principal,
@@ -362,13 +377,13 @@ export const idlFactory = ({ IDL }) => {
362
377
  'target' : BlockTarget,
363
378
  'reason' : IDL.Text,
364
379
  });
365
- const Result_14 = IDL.Variant({ 'ok' : IDL.Vec(Block), 'err' : Error });
380
+ const Result_15 = IDL.Variant({ 'ok' : IDL.Vec(Block), 'err' : Error });
366
381
  const DriverCanistersPage = IDL.Record({
367
382
  'total' : IDL.Nat,
368
383
  'canisters' : IDL.Vec(DriverCanister),
369
384
  });
370
- const Result_13 = IDL.Variant({ 'ok' : DriverCanistersPage, 'err' : Error });
371
- const Result_12 = IDL.Variant({
385
+ const Result_14 = IDL.Variant({ 'ok' : DriverCanistersPage, 'err' : Error });
386
+ const Result_13 = IDL.Variant({
372
387
  'ok' : IDL.Vec(DriverFeeAccountView),
373
388
  'err' : Error,
374
389
  });
@@ -380,18 +395,27 @@ export const idlFactory = ({ IDL }) => {
380
395
  'roomId' : IDL.Text,
381
396
  'synced' : IDL.Bool,
382
397
  });
383
- const Result_11 = IDL.Variant({
398
+ const Result_12 = IDL.Variant({
384
399
  'ok' : IDL.Vec(DriverRoomView),
385
400
  'err' : Error,
386
401
  });
387
- const Result_10 = IDL.Variant({ 'ok' : ClaimCode, 'err' : Error });
402
+ const Result_11 = IDL.Variant({ 'ok' : ClaimCode, 'err' : Error });
388
403
  const FeePayArgs = IDL.Record({ 'day' : IDL.Nat });
389
404
  const FeePaid = IDL.Record({
390
405
  'day' : IDL.Nat,
391
406
  'accepted' : IDL.Nat,
392
407
  'amount' : IDL.Nat,
393
408
  });
394
- const Result_9 = IDL.Variant({ 'ok' : FeePaid, 'err' : Error });
409
+ const Result_10 = IDL.Variant({ 'ok' : FeePaid, 'err' : Error });
410
+ const DriverCanisterQuote = IDL.Record({
411
+ 'accountId' : IDL.Vec(IDL.Nat8),
412
+ 'minimumE8s' : IDL.Nat,
413
+ 'xdrPermyriadPerIcp' : IDL.Nat,
414
+ 'balanceE8s' : IDL.Nat,
415
+ 'suggestedE8s' : IDL.Nat,
416
+ 'priceCycles' : IDL.Nat,
417
+ });
418
+ const Result_9 = IDL.Variant({ 'ok' : DriverCanisterQuote, 'err' : Error });
395
419
  const RateRideArgs = IDL.Record({
396
420
  'requestId' : IDL.Text,
397
421
  'stars' : IDL.Nat8,
@@ -419,6 +443,10 @@ export const idlFactory = ({ IDL }) => {
419
443
  });
420
444
  const UnblockRiderArgs = IDL.Record({ 'rider' : IDL.Principal });
421
445
  const Result_1 = IDL.Variant({ 'ok' : IDL.Vec(IDL.Nat8), 'err' : Error });
446
+ const ApkChunkArgs = IDL.Record({
447
+ 'bytes' : IDL.Vec(IDL.Nat8),
448
+ 'index' : IDL.Nat32,
449
+ });
422
450
  const WasmChunkArgs = IDL.Record({
423
451
  'kind' : WasmKind,
424
452
  'bytes' : IDL.Vec(IDL.Nat8),
@@ -427,52 +455,60 @@ export const idlFactory = ({ IDL }) => {
427
455
  const TigiCore = IDL.Service({
428
456
  'abortDriverRollout' : IDL.Func([], [Result_3], []),
429
457
  'addAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
430
- 'addChatShares' : IDL.Func([ChatSharesArgs], [Result_32], []),
458
+ 'addChatShares' : IDL.Func([ChatSharesArgs], [Result_34], []),
431
459
  'addPoolCanister' : IDL.Func([CanisterArgs], [Result_6], []),
432
460
  'blockDriver' : IDL.Func([BlockDriverArgs], [Result_2], []),
433
461
  'blockRider' : IDL.Func([BlockRiderArgs], [Result_2], []),
434
462
  'claimDriverCanister' : IDL.Func([ClaimArgs], [Result_6], []),
435
463
  'clearLogs' : IDL.Func([], [], []),
436
- 'commitDriverWasm' : IDL.Func([WasmCommitArgs], [Result_31], []),
464
+ 'commitDriverApk' : IDL.Func([ApkCommitArgs], [Result_33], []),
465
+ 'commitDriverWasm' : IDL.Func([WasmCommitArgs], [Result_32], []),
437
466
  'createLocalPoolCanister' : IDL.Func([], [Result_6], []),
438
467
  'createMyDriverCanister' : IDL.Func([], [Result_6], []),
439
- 'ensureSimulator' : IDL.Func([], [Result_30], []),
468
+ 'ensureSimulator' : IDL.Func([], [Result_31], []),
440
469
  'extendDemoLease' : IDL.Func([], [Result_6], []),
441
- 'getAdmins' : IDL.Func([], [Result_29], ['query']),
470
+ 'getAdmins' : IDL.Func([], [Result_30], ['query']),
442
471
  'getChatConfig' : IDL.Func([], [IDL.Opt(ChatConfig)], ['query']),
443
- 'getChatRoomsStatus' : IDL.Func([], [Result_28], ['query']),
472
+ 'getChatRoomsStatus' : IDL.Func([], [Result_29], ['query']),
473
+ 'getDriverApk' : IDL.Func([], [IDL.Opt(ApkInfo)], ['query']),
474
+ 'getDriverApkChunk' : IDL.Func(
475
+ [IDL.Nat32],
476
+ [IDL.Opt(IDL.Vec(IDL.Nat8))],
477
+ ['query'],
478
+ ),
444
479
  'getDriverCanisterStatus' : IDL.Func(
445
480
  [CanisterArgs],
446
481
  [DriverCanisterStatus],
447
482
  ['query'],
448
483
  ),
449
- 'getDriverFeeAccount' : IDL.Func([CanisterArgs], [Result_27], ['query']),
450
- 'getDriverFeeBill' : IDL.Func([], [Result_26], []),
451
- 'getDriverRating' : IDL.Func([DriverRatingArgs], [Result_22], ['query']),
452
- 'getDriverRollout' : IDL.Func([], [Result_25], ['query']),
453
- 'getFactoryStatus' : IDL.Func([], [Result_24], ['query']),
454
- 'getFeeStatus' : IDL.Func([], [Result_23], ['query']),
484
+ 'getDriverFeeAccount' : IDL.Func([CanisterArgs], [Result_28], ['query']),
485
+ 'getDriverFeeBill' : IDL.Func([], [Result_27], []),
486
+ 'getDriverRating' : IDL.Func([DriverRatingArgs], [Result_23], ['query']),
487
+ 'getDriverRollout' : IDL.Func([], [Result_26], ['query']),
488
+ 'getFactoryStatus' : IDL.Func([], [Result_25], ['query']),
489
+ 'getFeeStatus' : IDL.Func([], [Result_24], ['query']),
455
490
  'getLogs' : IDL.Func([], [IDL.Text], ['query']),
456
491
  'getMyDriverCanister' : IDL.Func([], [Result_6], ['query']),
457
492
  'getMyProfile' : IDL.Func([], [Result_4], ['query']),
458
- 'getMyRating' : IDL.Func([], [Result_22], ['query']),
459
- 'getMyRide' : IDL.Func([RequestIdArgs], [Result_21], ['query']),
460
- 'getMyRides' : IDL.Func([RidesPageArgs], [Result_20], ['query']),
461
- 'getProfiles' : IDL.Func([ProfilesArgs], [Result_19], ['query']),
493
+ 'getMyRating' : IDL.Func([], [Result_23], ['query']),
494
+ 'getMyRide' : IDL.Func([RequestIdArgs], [Result_22], ['query']),
495
+ 'getMyRides' : IDL.Func([RidesPageArgs], [Result_21], ['query']),
496
+ 'getProfiles' : IDL.Func([ProfilesArgs], [Result_20], ['query']),
462
497
  'getReleasedDriverWasms' : IDL.Func([], [IDL.Vec(ReleasedWasm)], ['query']),
463
498
  'getSimulator' : IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
464
- 'getWiring' : IDL.Func([], [Result_18], ['query']),
465
- 'getWorkerOutbox' : IDL.Func([], [Result_17], ['query']),
499
+ 'getWiring' : IDL.Func([], [Result_19], ['query']),
500
+ 'getWorkerOutbox' : IDL.Func([], [Result_18], ['query']),
466
501
  'helloFromWorker' : IDL.Func([], [Result_2], []),
467
- 'ingestRideBatch' : IDL.Func([RideBatch], [Result_16], []),
502
+ 'ingestRideBatch' : IDL.Func([RideBatch], [Result_17], []),
468
503
  'isUser' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
469
- 'leaseDemoDriverCanister' : IDL.Func([], [Result_15], []),
470
- 'listBlocks' : IDL.Func([PageArgs], [Result_14], ['query']),
471
- 'listDriverCanisters' : IDL.Func([PageArgs], [Result_13], ['query']),
472
- 'listDriverFeeAccounts' : IDL.Func([PageArgs], [Result_12], ['query']),
473
- 'listDriverRooms' : IDL.Func([PageArgs], [Result_11], ['query']),
474
- 'newClaimCode' : IDL.Func([], [Result_10], []),
475
- 'payDriverFee' : IDL.Func([FeePayArgs], [Result_9], []),
504
+ 'leaseDemoDriverCanister' : IDL.Func([], [Result_16], []),
505
+ 'listBlocks' : IDL.Func([PageArgs], [Result_15], ['query']),
506
+ 'listDriverCanisters' : IDL.Func([PageArgs], [Result_14], ['query']),
507
+ 'listDriverFeeAccounts' : IDL.Func([PageArgs], [Result_13], ['query']),
508
+ 'listDriverRooms' : IDL.Func([PageArgs], [Result_12], ['query']),
509
+ 'newClaimCode' : IDL.Func([], [Result_11], []),
510
+ 'payDriverFee' : IDL.Func([FeePayArgs], [Result_10], []),
511
+ 'quoteMyDriverCanister' : IDL.Func([], [Result_9], []),
476
512
  'rateMyRide' : IDL.Func([RateRideArgs], [Result_8], []),
477
513
  'removeAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
478
514
  'resumeDriverRollout' : IDL.Func([], [Result_3], []),
@@ -489,6 +525,7 @@ export const idlFactory = ({ IDL }) => {
489
525
  'unblockDriver' : IDL.Func([UnblockDriverArgs], [Result_2], []),
490
526
  'unblockRider' : IDL.Func([UnblockRiderArgs], [Result_2], []),
491
527
  'upgradeSimulator' : IDL.Func([], [Result_1], []),
528
+ 'uploadDriverApkChunk' : IDL.Func([ApkChunkArgs], [Result], []),
492
529
  'uploadDriverWasmChunk' : IDL.Func([WasmChunkArgs], [Result], []),
493
530
  });
494
531
  return TigiCore;
@@ -1,7 +1,7 @@
1
1
  import type { Identity } from "@icp-sdk/core/agent";
2
2
  import type { ClaimCode as CandidClaimCode, DriverCanister as CandidDriverCanister } from "../../declarations/core/core.did.js";
3
3
  import { type GroupOptions } from "../group/canister-actor.js";
4
- import type { ClaimCodeView, DemoLeaseView, DriverCanisterView } from "../interfaces.js";
4
+ import type { ClaimCodeView, DemoLeaseView, DriverCanisterQuoteView, DriverCanisterView } from "../interfaces.js";
5
5
  /** The fragment key of a claim link: `https://<canister>.icp0.io/#claim=<code>`. */
6
6
  export declare const CLAIM_FRAGMENT_KEY = "claim";
7
7
  /** F-20a: a code is 32 characters of base64url; the core refuses more than this. */
@@ -51,6 +51,25 @@ export declare class DriverCanistersActor {
51
51
  * @throws Error with message `CriticalCanisterError` — the core could not be reached
52
52
  */
53
53
  getMineAsyncUnsafe(): Promise<DriverCanisterView | undefined>;
54
+ /**
55
+ * F-1: the price of a driver canister now and the caller's account to pay to (stage,
56
+ * test and prod; the local replica gives canisters for free).
57
+ * @throws Error with message `CanisterError` — `NotAuthorized` (local), `RemoteCanisterError` (the CMC or the ledger did not answer)
58
+ * @throws Error with message `CallRefusedAtInspectionStage` — anonymous, or the daily limit
59
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
60
+ */
61
+ quoteAsyncUnsafe(): Promise<DriverCanisterQuoteView>;
62
+ /**
63
+ * F-1 … F-4: the caller's ICP buys a driver canister: the core pays the CMC with all of
64
+ * the caller's account, gets a canister it controls and installs the driver in it with
65
+ * the caller as owner. The same call again finishes the same canister (F-3); one per
66
+ * person. Then `newClaimCodeAsyncUnsafe` hands it to the driver's principal (F-20).
67
+ * @throws Error with message `CanisterError` — `InvalidData` "NOT_ENOUGH: …" (pay more), or
68
+ * "being created" / "still processing" (try again), `RemoteCanisterError`
69
+ * @throws Error with message `CallRefusedAtInspectionStage` — anonymous, or the daily limit
70
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
71
+ */
72
+ buyAsyncUnsafe(): Promise<DriverCanisterView>;
54
73
  /**
55
74
  * F-20c: a new claim code for the caller's running demo lease ("Nowy link"); the code
56
75
  * before it stops working. Good for 15 minutes, once.
@@ -1 +1 @@
1
- {"version":3,"file":"driver-canisters-actor.d.ts","sourceRoot":"","sources":["../../src/actors/driver-canisters-actor.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,IAAI,eAAe,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChI,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/F,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGzF,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,GAAE,MAAwC,GAAG,MAAM,CAE3H;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgBhE;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,cAAc,GAAG,SAAS,CAAC,GAAG,kBAAkB,CAUnJ;AAED,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,GAAG,aAAa,CAEjE;AAED,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;gBAEtB,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,GAAE,YAAiB;IAIjF;;;;;;;;;OASG;IACU,oBAAoB,IAAI,OAAO,CAAC,aAAa,CAAC;IA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B;AAChB,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,GAAG,aAAa,CAEjE;AAED,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;gBAEtB,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,GAAE,YAAiB;IAIjF;;;;;;;;;OASG;IACU,oBAAoB,IAAI,OAAO,CAAC,aAAa,CAAC;IAS3D;;;;;;OAMG;IACU,qBAAqB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAIjE;;;;;;OAMG;IACU,kBAAkB,IAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IAS1E;;;;;;OAMG;IACU,gBAAgB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAMjE;;;;;;;;;OASG;IACU,cAAc,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAI1D;;;;;;;OAOG;IACU,uBAAuB,IAAI,OAAO,CAAC,aAAa,CAAC;IAI9D;;;;;;;;;;;OAWG;IACU,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAU/F"}
@@ -111,6 +111,31 @@ export class DriverCanistersActor {
111
111
  throw err;
112
112
  }
113
113
  }
114
+ /**
115
+ * F-1: the price of a driver canister now and the caller's account to pay to (stage,
116
+ * test and prod; the local replica gives canisters for free).
117
+ * @throws Error with message `CanisterError` — `NotAuthorized` (local), `RemoteCanisterError` (the CMC or the ledger did not answer)
118
+ * @throws Error with message `CallRefusedAtInspectionStage` — anonymous, or the daily limit
119
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
120
+ */
121
+ async quoteAsyncUnsafe() {
122
+ const quote = await executeAsyncUnsafe(async () => (await this.group.coreAsync()).quoteMyDriverCanister());
123
+ const hex = Array.from(quote.accountId, (b) => b.toString(16).padStart(2, "0")).join("");
124
+ return { priceCycles: quote.priceCycles, xdrPermyriadPerIcp: quote.xdrPermyriadPerIcp, minimumE8s: quote.minimumE8s, suggestedE8s: quote.suggestedE8s, balanceE8s: quote.balanceE8s, accountIdHex: hex };
125
+ }
126
+ /**
127
+ * F-1 … F-4: the caller's ICP buys a driver canister: the core pays the CMC with all of
128
+ * the caller's account, gets a canister it controls and installs the driver in it with
129
+ * the caller as owner. The same call again finishes the same canister (F-3); one per
130
+ * person. Then `newClaimCodeAsyncUnsafe` hands it to the driver's principal (F-20).
131
+ * @throws Error with message `CanisterError` — `InvalidData` "NOT_ENOUGH: …" (pay more), or
132
+ * "being created" / "still processing" (try again), `RemoteCanisterError`
133
+ * @throws Error with message `CallRefusedAtInspectionStage` — anonymous, or the daily limit
134
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
135
+ */
136
+ async buyAsyncUnsafe() {
137
+ return driverCanisterOf(await executeAsyncUnsafe(async () => (await this.group.coreAsync()).createMyDriverCanister()));
138
+ }
114
139
  /**
115
140
  * F-20c: a new claim code for the caller's running demo lease ("Nowy link"); the code
116
141
  * before it stops working. Good for 15 minutes, once.
@@ -203,6 +203,20 @@ export interface ChatPlace {
203
203
  * A driver canister of the signed-in person: their own (`own`) or a demo canister they
204
204
  * hold (`pool`). Its id is the driver's own address (`https://<canisterId>.icp0.io`).
205
205
  */
206
+ /**
207
+ * F-1 (user 2026-10-31): what a driver canister costs now (2 TC in ICP at the CMC's rate) and
208
+ * where to pay. Send `suggestedE8s` (the minimum with a margin for the rate) to
209
+ * `accountIdHex` — the core's ICP account for this person; all of it buys the canister.
210
+ */
211
+ export interface DriverCanisterQuoteView {
212
+ priceCycles: bigint;
213
+ xdrPermyriadPerIcp: bigint;
214
+ minimumE8s: bigint;
215
+ suggestedE8s: bigint;
216
+ balanceE8s: bigint;
217
+ /** The ICP account identifier (64 hex) — what NNS and exchanges call the account number. */
218
+ accountIdHex: string;
219
+ }
206
220
  export interface DriverCanisterView {
207
221
  canisterId: string;
208
222
  kind: "own" | "pool";
@@ -1 +1 @@
1
- {"version":3,"file":"inter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5F,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;IACrB,wFAAwF;IACxF,cAAc,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,oGAAoG;AACpG,MAAM,WAAW,aAAa;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,qFAAqF;AACrF,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsm-mit/tigi-sharded-package",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "The one package of the Tigi network group: takes the coordinator's id and hides the coordinator, the core and the workers — for a consumer the group is one canister; plus the rider's few driver-canister endpoints (U-14).",
5
5
  "homepage": "https://github.com/JSM-Tigi/tigi-sharded/tree/master/package#readme",
6
6
  "repository": {
@@ -59,11 +59,11 @@
59
59
  "tigiSharded": {
60
60
  "repo": "tigi-sharded",
61
61
  "repoUrl": "https://github.com/JSM-Tigi/tigi-sharded",
62
- "commit": "5ec9ad29681d2cf1bca3013f21bdafaf8ca55488"
62
+ "commit": "8c6479bb45aa71143e5623182d44eec0d03c9a87"
63
63
  },
64
64
  "tigiDriverRust": {
65
65
  "repo": "tigi-driver-rust",
66
66
  "repoUrl": "https://github.com/JSM-Tigi/tigi-driver-rust",
67
- "commit": "2b94213452793026865ac2a51412984eb40c7c8d"
67
+ "commit": "94bd6b741a8340bbb7748791363abf1bdb3f52ff"
68
68
  }
69
69
  }