@engramx/idl 0.17.0-rc.3 → 0.17.0-rc.4
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.
- package/dist/market.did +30 -0
- package/dist/market.idl.d.ts +35 -0
- package/dist/market.idl.js +9 -0
- package/dist/registry.did +53 -0
- package/dist/registry.idl.d.ts +53 -0
- package/dist/registry.idl.js +27 -0
- package/package.json +1 -1
package/dist/market.did
CHANGED
|
@@ -492,6 +492,13 @@ type GenesisNote =
|
|
|
492
492
|
predecessorSize: opt nat;
|
|
493
493
|
version: text;
|
|
494
494
|
};
|
|
495
|
+
type EvmPaymentGuardStatus =
|
|
496
|
+
record {
|
|
497
|
+
ceilingPerDay: nat;
|
|
498
|
+
pausedForGasAtNs: opt int;
|
|
499
|
+
pausedForGasDetail: opt text;
|
|
500
|
+
refusedChecksToday: nat;
|
|
501
|
+
};
|
|
495
502
|
type EscrowRecovery =
|
|
496
503
|
record {
|
|
497
504
|
amount: TokenAmount;
|
|
@@ -812,6 +819,14 @@ service : {
|
|
|
812
819
|
/// check was out of scope by construction. Since 0.16.0 that list includes payment gates; this
|
|
813
820
|
/// method is why.
|
|
814
821
|
getContentChunk: (grant: AccessGrant, index: nat) -> (Result_15) query;
|
|
822
|
+
/// Whether EVM payments are stopped for lack of gas, the checks that moved nothing today, and the
|
|
823
|
+
/// ceiling.
|
|
824
|
+
///
|
|
825
|
+
/// PUBLIC: as `isTradeFrozen` is. A buyer refused by `evmAdmit` can see why from here.
|
|
826
|
+
///
|
|
827
|
+
/// CALLER: a buyer whose EVM payment was refused, and the market admin after a `payment.evmPaused`
|
|
828
|
+
/// row. No app calls it yet.
|
|
829
|
+
getEvmPaymentGuard: () -> (EvmPaymentGuardStatus) query;
|
|
815
830
|
/// PUBLIC: what this canister's chains continue, or that they continue nothing. A fresh chain
|
|
816
831
|
/// beside a published predecessor head is auditable; a fresh chain with no statement is
|
|
817
832
|
/// indistinguishable from a wipe.
|
|
@@ -1309,6 +1324,15 @@ service : {
|
|
|
1309
1324
|
/// #Settling, a target that is not terminal) — including "not found", which arrives as `#Conflict`
|
|
1310
1325
|
/// rather than `#NotFound`. Read the MESSAGE for which; the seam is described at `claimJob`.
|
|
1311
1326
|
resolveJob: (jobId: text, terminal: JobStatus) -> (Result);
|
|
1327
|
+
/// Take EVM payments again after a stop for lack of gas. Add gas to this canister's EVM address
|
|
1328
|
+
/// first, and wait for the top-up to confirm: the next send signs, and a failure for lack of gas stops
|
|
1329
|
+
/// them again. Clears the gas stop only; the day's ceiling is `setEvmCheckCeiling`'s.
|
|
1330
|
+
/// ⟨2026-11-25, ic402 2.23.2⟩ It also lifts ic402's own stop on each chain this canister takes EVM
|
|
1331
|
+
/// payment on (`gate.liftEvmGasStop`), which would otherwise refuse every send there for up to 10
|
|
1332
|
+
/// minutes more. Lifting a chain that is not stopped does nothing; the audit row says which were.
|
|
1333
|
+
///
|
|
1334
|
+
/// CALLER: the market admin, by hand, once the gas top-up has confirmed. No app calls it yet.
|
|
1335
|
+
resumeEvmPayments: () -> (Result);
|
|
1312
1336
|
/// Deliver one engram's parked sale notices to its record — at most 16 a call, oldest first — and
|
|
1313
1337
|
/// answer how many landed. CALLABLE BY ANYONE, anonymous included: the engram dedups on the receipt
|
|
1314
1338
|
/// id and accepts only this market, so nothing can be misdirected or written twice; the same
|
|
@@ -1383,6 +1407,12 @@ service : {
|
|
|
1383
1407
|
/// admin cannot take down is a moderation problem. PRICE IS DIFFERENT: changing what a seller
|
|
1384
1408
|
/// charges is trading on their behalf, and no recovery story needs it.
|
|
1385
1409
|
setEndpointPrice: (endpointId: text, priceE6: nat) -> (Result);
|
|
1410
|
+
/// Set how many checks that moved nothing one UTC day may hold before EVM payments stop until the
|
|
1411
|
+
/// day ends. 0 stops them at once. The audit row records old and new, so a raise is distinguishable
|
|
1412
|
+
/// from a cut after the fact (as `setPaymentPolicy`'s does).
|
|
1413
|
+
///
|
|
1414
|
+
/// CALLER: the market admin, by hand. No app calls it yet.
|
|
1415
|
+
setEvmCheckCeiling: (perDay: nat) -> (Result);
|
|
1386
1416
|
/// Set the market's global spending policy.
|
|
1387
1417
|
///
|
|
1388
1418
|
/// The audit row records the LIMITS, not just the fact of a change, so a WIDENING is
|
package/dist/market.idl.d.ts
CHANGED
|
@@ -83,6 +83,12 @@ export interface EscrowRecovery {
|
|
|
83
83
|
blockIndex: bigint;
|
|
84
84
|
amount: TokenAmount;
|
|
85
85
|
}
|
|
86
|
+
export interface EvmPaymentGuardStatus {
|
|
87
|
+
ceilingPerDay: bigint;
|
|
88
|
+
refusedChecksToday: bigint;
|
|
89
|
+
pausedForGasAtNs: [] | [bigint];
|
|
90
|
+
pausedForGasDetail: [] | [string];
|
|
91
|
+
}
|
|
86
92
|
export interface GenesisNote {
|
|
87
93
|
predecessorSize: [] | [bigint];
|
|
88
94
|
predecessorHeadHash: [] | [Uint8Array | number[]];
|
|
@@ -655,6 +661,16 @@ export interface _SERVICE {
|
|
|
655
661
|
* / method is why.
|
|
656
662
|
*/
|
|
657
663
|
getContentChunk: ActorMethod<[AccessGrant, bigint], Result_15>;
|
|
664
|
+
/**
|
|
665
|
+
* / Whether EVM payments are stopped for lack of gas, the checks that moved nothing today, and the
|
|
666
|
+
* / ceiling.
|
|
667
|
+
* /
|
|
668
|
+
* / PUBLIC: as `isTradeFrozen` is. A buyer refused by `evmAdmit` can see why from here.
|
|
669
|
+
* /
|
|
670
|
+
* / CALLER: a buyer whose EVM payment was refused, and the market admin after a `payment.evmPaused`
|
|
671
|
+
* / row. No app calls it yet.
|
|
672
|
+
*/
|
|
673
|
+
getEvmPaymentGuard: ActorMethod<[], EvmPaymentGuardStatus>;
|
|
658
674
|
/**
|
|
659
675
|
* / PUBLIC: what this canister's chains continue, or that they continue nothing. A fresh chain
|
|
660
676
|
* / beside a published predecessor head is auditable; a fresh chain with no statement is
|
|
@@ -1222,6 +1238,17 @@ export interface _SERVICE {
|
|
|
1222
1238
|
* / rather than `#NotFound`. Read the MESSAGE for which; the seam is described at `claimJob`.
|
|
1223
1239
|
*/
|
|
1224
1240
|
resolveJob: ActorMethod<[string, JobStatus], Result>;
|
|
1241
|
+
/**
|
|
1242
|
+
* / Take EVM payments again after a stop for lack of gas. Add gas to this canister's EVM address
|
|
1243
|
+
* / first, and wait for the top-up to confirm: the next send signs, and a failure for lack of gas stops
|
|
1244
|
+
* / them again. Clears the gas stop only; the day's ceiling is `setEvmCheckCeiling`'s.
|
|
1245
|
+
* / ⟨2026-11-25, ic402 2.23.2⟩ It also lifts ic402's own stop on each chain this canister takes EVM
|
|
1246
|
+
* / payment on (`gate.liftEvmGasStop`), which would otherwise refuse every send there for up to 10
|
|
1247
|
+
* / minutes more. Lifting a chain that is not stopped does nothing; the audit row says which were.
|
|
1248
|
+
* /
|
|
1249
|
+
* / CALLER: the market admin, by hand, once the gas top-up has confirmed. No app calls it yet.
|
|
1250
|
+
*/
|
|
1251
|
+
resumeEvmPayments: ActorMethod<[], Result>;
|
|
1225
1252
|
/**
|
|
1226
1253
|
* / Deliver one engram's parked sale notices to its record — at most 16 a call, oldest first — and
|
|
1227
1254
|
* / answer how many landed. CALLABLE BY ANYONE, anonymous included: the engram dedups on the receipt
|
|
@@ -1308,6 +1335,14 @@ export interface _SERVICE {
|
|
|
1308
1335
|
* / charges is trading on their behalf, and no recovery story needs it.
|
|
1309
1336
|
*/
|
|
1310
1337
|
setEndpointPrice: ActorMethod<[string, bigint], Result>;
|
|
1338
|
+
/**
|
|
1339
|
+
* / Set how many checks that moved nothing one UTC day may hold before EVM payments stop until the
|
|
1340
|
+
* / day ends. 0 stops them at once. The audit row records old and new, so a raise is distinguishable
|
|
1341
|
+
* / from a cut after the fact (as `setPaymentPolicy`'s does).
|
|
1342
|
+
* /
|
|
1343
|
+
* / CALLER: the market admin, by hand. No app calls it yet.
|
|
1344
|
+
*/
|
|
1345
|
+
setEvmCheckCeiling: ActorMethod<[bigint], Result>;
|
|
1311
1346
|
/**
|
|
1312
1347
|
* / Set the market's global spending policy.
|
|
1313
1348
|
* /
|
package/dist/market.idl.js
CHANGED
|
@@ -128,6 +128,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
128
128
|
});
|
|
129
129
|
const Result_17 = IDL.Variant({ Ok: ContentResponse, Err: Error });
|
|
130
130
|
const Result_15 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
|
|
131
|
+
const EvmPaymentGuardStatus = IDL.Record({
|
|
132
|
+
ceilingPerDay: IDL.Nat,
|
|
133
|
+
refusedChecksToday: IDL.Nat,
|
|
134
|
+
pausedForGasAtNs: IDL.Opt(IDL.Int),
|
|
135
|
+
pausedForGasDetail: IDL.Opt(IDL.Text),
|
|
136
|
+
});
|
|
131
137
|
const GenesisNote = IDL.Record({
|
|
132
138
|
predecessorSize: IDL.Opt(IDL.Nat),
|
|
133
139
|
predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -473,6 +479,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
473
479
|
getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
|
|
474
480
|
getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [Result_17], []),
|
|
475
481
|
getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [Result_15], ['query']),
|
|
482
|
+
getEvmPaymentGuard: IDL.Func([], [EvmPaymentGuardStatus], ['query']),
|
|
476
483
|
getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
|
|
477
484
|
getJob: IDL.Func([IDL.Text], [Result_16], ['query']),
|
|
478
485
|
getJobCounts: IDL.Func([], [JobCounts], ['query']),
|
|
@@ -548,6 +555,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
548
555
|
removeCallerPolicy: IDL.Func([IDL.Principal], [Result], []),
|
|
549
556
|
resolveDispute: IDL.Func([IDL.Text, IDL.Bool], [Result], []),
|
|
550
557
|
resolveJob: IDL.Func([IDL.Text, JobStatus], [Result], []),
|
|
558
|
+
resumeEvmPayments: IDL.Func([], [Result], []),
|
|
551
559
|
retrySaleNotices: IDL.Func([IDL.Principal], [Result_1], []),
|
|
552
560
|
retrySalePayout: IDL.Func([IDL.Nat], [Result_1], []),
|
|
553
561
|
retrySellerPayment: IDL.Func([IDL.Text], [Result], []),
|
|
@@ -555,6 +563,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
555
563
|
setCallerPolicy: IDL.Func([IDL.Principal, SpendingPolicy], [Result], []),
|
|
556
564
|
setEndpointEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result], []),
|
|
557
565
|
setEndpointPrice: IDL.Func([IDL.Text, IDL.Nat], [Result], []),
|
|
566
|
+
setEvmCheckCeiling: IDL.Func([IDL.Nat], [Result], []),
|
|
558
567
|
setPaymentPolicy: IDL.Func([SpendingPolicy], [Result], []),
|
|
559
568
|
setRegistryId: IDL.Func([IDL.Principal], [Result], []),
|
|
560
569
|
setServiceEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result], []),
|
package/dist/registry.did
CHANGED
|
@@ -273,6 +273,7 @@ type RegistryHealth =
|
|
|
273
273
|
adminRoles: opt AdminRoles;
|
|
274
274
|
anchors: opt AnchorStats;
|
|
275
275
|
atNs: opt int;
|
|
276
|
+
changes: opt RegistryChangesHealth;
|
|
276
277
|
clock: opt RegistryClockHealth;
|
|
277
278
|
cycleReserve:
|
|
278
279
|
opt record {
|
|
@@ -291,6 +292,25 @@ type RegistryClockHealth =
|
|
|
291
292
|
okTotal: opt nat;
|
|
292
293
|
overdue: opt nat;
|
|
293
294
|
};
|
|
295
|
+
type RegistryChangesPage =
|
|
296
|
+
record {
|
|
297
|
+
items: vec blob;
|
|
298
|
+
total: nat;
|
|
299
|
+
withheld: nat;
|
|
300
|
+
};
|
|
301
|
+
type RegistryChangesHealth =
|
|
302
|
+
record {
|
|
303
|
+
alarms: opt nat;
|
|
304
|
+
entries: opt nat;
|
|
305
|
+
lastAlarm: opt text;
|
|
306
|
+
lastAlarmAtNs: opt int;
|
|
307
|
+
lastAttemptAtNs: opt int;
|
|
308
|
+
lastError: opt text;
|
|
309
|
+
lastErrorAtNs: opt int;
|
|
310
|
+
lastOkAtNs: opt int;
|
|
311
|
+
lastRung: opt nat;
|
|
312
|
+
nextIndex: opt nat;
|
|
313
|
+
};
|
|
294
314
|
type ReferralCounts =
|
|
295
315
|
record {
|
|
296
316
|
agentsByTreesSpanned: TreesSpanned;
|
|
@@ -583,6 +603,14 @@ type CertifiedStanding =
|
|
|
583
603
|
leaf: StandingLeaf;
|
|
584
604
|
witness: blob;
|
|
585
605
|
};
|
|
606
|
+
type CertifiedChangeHead =
|
|
607
|
+
record {
|
|
608
|
+
certificate: opt blob;
|
|
609
|
+
count: nat64;
|
|
610
|
+
head: blob;
|
|
611
|
+
nextIndex: opt nat64;
|
|
612
|
+
witness: opt blob;
|
|
613
|
+
};
|
|
586
614
|
type CertifiedBirth =
|
|
587
615
|
record {
|
|
588
616
|
certificate: opt blob;
|
|
@@ -980,6 +1008,21 @@ service : {
|
|
|
980
1008
|
/// answers: there is no certified absence proof (a build choice, not a requirement). A
|
|
981
1009
|
/// `fingerprint` that is not 32 bytes is never a fingerprint, and answers `null` before the lookup.
|
|
982
1010
|
getCertifiedBirth: (fingerprint: blob) -> (opt CertifiedBirth) query;
|
|
1011
|
+
/// ⟨2026-11-24, the change-history rulings: 4A, public reads⟩ THE HEAD OF THE REGISTRY'S OWN CHANGE
|
|
1012
|
+
/// HISTORY, certified. Verify as `getCertifiedAuditHead` says, at path ["changes_head"]: the leaf is 48
|
|
1013
|
+
/// bytes (src/shared/ChangeHistory.mo · `leaf`): `head` (zero before any entry), `count` and
|
|
1014
|
+
/// `nextIndex`, each as served here. A verifier then pages `listRegistryChanges`, recomputes each entry's
|
|
1015
|
+
/// hash from the one before (`AuditLog.link(previous, SHA-256(the entry's first 480 bytes))`, from the
|
|
1016
|
+
/// empty blob) and requires the last to equal `head`; and it may compare each network entry with the
|
|
1017
|
+
/// network's own `canister_info` while the network still shows that change. `nextIndex` is null, and no
|
|
1018
|
+
/// leaf is certified, until the registry's first read after this release.
|
|
1019
|
+
///
|
|
1020
|
+
/// PUBLIC: what the registry's code and controllers have been is a claim it makes about itself, and a
|
|
1021
|
+
/// claim only its operator could read would rest on the operator.
|
|
1022
|
+
///
|
|
1023
|
+
/// CALLER: anyone checking the registry's history, before paging `listRegistryChanges`. No client in
|
|
1024
|
+
/// this repository calls it yet; test/registry-change-history/ walks it as a verifier would.
|
|
1025
|
+
getCertifiedChangeHead: () -> (CertifiedChangeHead) query;
|
|
983
1026
|
/// WHAT THE KIT OFFERS AS A NEW ENGRAM'S SIGN-IN, read before it opens one through `parent`. The
|
|
984
1027
|
/// answer: the parent's owner — ONLY when the parent is a first engram (the kit offers that
|
|
985
1028
|
/// principal as the default sign-in only then, after it prints it and the person running the agent
|
|
@@ -1589,6 +1632,16 @@ service : {
|
|
|
1589
1632
|
/// with one predecessor per engram reads as a simple chain. The walk is `ControlHandover.lineage`,
|
|
1590
1633
|
/// where test/control-handover.test.mo runs it; the `seen` rule and the length cap above hold.
|
|
1591
1634
|
listPredecessors: (canisterId: principal) -> (vec principal) query;
|
|
1635
|
+
/// ⟨2026-11-24, 4A⟩ The registry's own change history, oldest first, `limit` entries from `start` (at
|
|
1636
|
+
/// most 64 a page, 32 KiB). Each entry is 512 bytes in the layout src/shared/ChangeHistory.mo documents.
|
|
1637
|
+
/// `total` is the number kept; a page past it is empty, never an error. `withheld` is always 0: every
|
|
1638
|
+
/// entry is public.
|
|
1639
|
+
///
|
|
1640
|
+
/// PUBLIC: for the reason `getCertifiedChangeHead` gives.
|
|
1641
|
+
///
|
|
1642
|
+
/// CALLER: anyone checking the registry's history, after `getCertifiedChangeHead`, to the end.
|
|
1643
|
+
listRegistryChanges: (start: nat, limit: nat) ->
|
|
1644
|
+
(RegistryChangesPage) query;
|
|
1592
1645
|
/// The refusal is a value (since 0.16.0).
|
|
1593
1646
|
///
|
|
1594
1647
|
/// `total = 0` reads as "nobody has expressed a preference", and a successor registry seeded from
|
package/dist/registry.idl.d.ts
CHANGED
|
@@ -83,6 +83,13 @@ export interface CertifiedBirth {
|
|
|
83
83
|
certificate: [] | [Uint8Array | number[]];
|
|
84
84
|
witness: Uint8Array | number[];
|
|
85
85
|
}
|
|
86
|
+
export interface CertifiedChangeHead {
|
|
87
|
+
certificate: [] | [Uint8Array | number[]];
|
|
88
|
+
head: Uint8Array | number[];
|
|
89
|
+
count: bigint;
|
|
90
|
+
witness: [] | [Uint8Array | number[]];
|
|
91
|
+
nextIndex: [] | [bigint];
|
|
92
|
+
}
|
|
86
93
|
export interface CertifiedStanding {
|
|
87
94
|
certificate: [] | [Uint8Array | number[]];
|
|
88
95
|
leaf: StandingLeaf;
|
|
@@ -316,6 +323,23 @@ export interface ReferralCounts {
|
|
|
316
323
|
throughParent: PairedSoon;
|
|
317
324
|
agentsByTreesSpanned: TreesSpanned;
|
|
318
325
|
}
|
|
326
|
+
export interface RegistryChangesHealth {
|
|
327
|
+
lastAttemptAtNs: [] | [bigint];
|
|
328
|
+
alarms: [] | [bigint];
|
|
329
|
+
lastAlarmAtNs: [] | [bigint];
|
|
330
|
+
lastErrorAtNs: [] | [bigint];
|
|
331
|
+
nextIndex: [] | [bigint];
|
|
332
|
+
lastAlarm: [] | [string];
|
|
333
|
+
entries: [] | [bigint];
|
|
334
|
+
lastError: [] | [string];
|
|
335
|
+
lastRung: [] | [bigint];
|
|
336
|
+
lastOkAtNs: [] | [bigint];
|
|
337
|
+
}
|
|
338
|
+
export interface RegistryChangesPage {
|
|
339
|
+
total: bigint;
|
|
340
|
+
withheld: bigint;
|
|
341
|
+
items: Array<Uint8Array | number[]>;
|
|
342
|
+
}
|
|
319
343
|
export interface RegistryClockHealth {
|
|
320
344
|
nextWakeAtNs: [] | [bigint];
|
|
321
345
|
lastAttemptAtNs: [] | [bigint];
|
|
@@ -332,6 +356,7 @@ export interface RegistryHealth {
|
|
|
332
356
|
atNs: [] | [bigint];
|
|
333
357
|
clock: [] | [RegistryClockHealth];
|
|
334
358
|
cycleReserve: [] | [{ cycleBalance: bigint; minOperatingReserveCycles: bigint }];
|
|
359
|
+
changes: [] | [RegistryChangesHealth];
|
|
335
360
|
}
|
|
336
361
|
export type ReleaseClass = { Security: null } | { Feature: null };
|
|
337
362
|
export interface ReservationView {
|
|
@@ -789,6 +814,23 @@ export interface _SERVICE {
|
|
|
789
814
|
* / `fingerprint` that is not 32 bytes is never a fingerprint, and answers `null` before the lookup.
|
|
790
815
|
*/
|
|
791
816
|
getCertifiedBirth: ActorMethod<[Uint8Array | number[]], [] | [CertifiedBirth]>;
|
|
817
|
+
/**
|
|
818
|
+
* / ⟨2026-11-24, the change-history rulings: 4A, public reads⟩ THE HEAD OF THE REGISTRY'S OWN CHANGE
|
|
819
|
+
* / HISTORY, certified. Verify as `getCertifiedAuditHead` says, at path ["changes_head"]: the leaf is 48
|
|
820
|
+
* / bytes (src/shared/ChangeHistory.mo · `leaf`): `head` (zero before any entry), `count` and
|
|
821
|
+
* / `nextIndex`, each as served here. A verifier then pages `listRegistryChanges`, recomputes each entry's
|
|
822
|
+
* / hash from the one before (`AuditLog.link(previous, SHA-256(the entry's first 480 bytes))`, from the
|
|
823
|
+
* / empty blob) and requires the last to equal `head`; and it may compare each network entry with the
|
|
824
|
+
* / network's own `canister_info` while the network still shows that change. `nextIndex` is null, and no
|
|
825
|
+
* / leaf is certified, until the registry's first read after this release.
|
|
826
|
+
* /
|
|
827
|
+
* / PUBLIC: what the registry's code and controllers have been is a claim it makes about itself, and a
|
|
828
|
+
* / claim only its operator could read would rest on the operator.
|
|
829
|
+
* /
|
|
830
|
+
* / CALLER: anyone checking the registry's history, before paging `listRegistryChanges`. No client in
|
|
831
|
+
* / this repository calls it yet; test/registry-change-history/ walks it as a verifier would.
|
|
832
|
+
*/
|
|
833
|
+
getCertifiedChangeHead: ActorMethod<[], CertifiedChangeHead>;
|
|
792
834
|
/**
|
|
793
835
|
* / WHAT THE KIT OFFERS AS A NEW ENGRAM'S SIGN-IN, read before it opens one through `parent`. The
|
|
794
836
|
* / answer: the parent's owner — ONLY when the parent is a first engram (the kit offers that
|
|
@@ -1494,6 +1536,17 @@ export interface _SERVICE {
|
|
|
1494
1536
|
* / where test/control-handover.test.mo runs it; the `seen` rule and the length cap above hold.
|
|
1495
1537
|
*/
|
|
1496
1538
|
listPredecessors: ActorMethod<[Principal], Array<Principal>>;
|
|
1539
|
+
/**
|
|
1540
|
+
* / ⟨2026-11-24, 4A⟩ The registry's own change history, oldest first, `limit` entries from `start` (at
|
|
1541
|
+
* / most 64 a page, 32 KiB). Each entry is 512 bytes in the layout src/shared/ChangeHistory.mo documents.
|
|
1542
|
+
* / `total` is the number kept; a page past it is empty, never an error. `withheld` is always 0: every
|
|
1543
|
+
* / entry is public.
|
|
1544
|
+
* /
|
|
1545
|
+
* / PUBLIC: for the reason `getCertifiedChangeHead` gives.
|
|
1546
|
+
* /
|
|
1547
|
+
* / CALLER: anyone checking the registry's history, after `getCertifiedChangeHead`, to the end.
|
|
1548
|
+
*/
|
|
1549
|
+
listRegistryChanges: ActorMethod<[bigint, bigint], RegistryChangesPage>;
|
|
1497
1550
|
/**
|
|
1498
1551
|
* / The refusal is a value (since 0.16.0).
|
|
1499
1552
|
* /
|
package/dist/registry.idl.js
CHANGED
|
@@ -117,6 +117,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
117
117
|
certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
118
118
|
witness: IDL.Vec(IDL.Nat8),
|
|
119
119
|
});
|
|
120
|
+
const CertifiedChangeHead = IDL.Record({
|
|
121
|
+
certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
122
|
+
head: IDL.Vec(IDL.Nat8),
|
|
123
|
+
count: IDL.Nat64,
|
|
124
|
+
witness: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
125
|
+
nextIndex: IDL.Opt(IDL.Nat64),
|
|
126
|
+
});
|
|
120
127
|
const ChildSignInOffer = IDL.Record({
|
|
121
128
|
parentActive: IDL.Bool,
|
|
122
129
|
parentIsFirstEngram: IDL.Bool,
|
|
@@ -233,6 +240,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
233
240
|
lastError: IDL.Opt(IDL.Text),
|
|
234
241
|
lastOkAtNs: IDL.Opt(IDL.Int),
|
|
235
242
|
});
|
|
243
|
+
const RegistryChangesHealth = IDL.Record({
|
|
244
|
+
lastAttemptAtNs: IDL.Opt(IDL.Int),
|
|
245
|
+
alarms: IDL.Opt(IDL.Nat),
|
|
246
|
+
lastAlarmAtNs: IDL.Opt(IDL.Int),
|
|
247
|
+
lastErrorAtNs: IDL.Opt(IDL.Int),
|
|
248
|
+
nextIndex: IDL.Opt(IDL.Nat),
|
|
249
|
+
lastAlarm: IDL.Opt(IDL.Text),
|
|
250
|
+
entries: IDL.Opt(IDL.Nat),
|
|
251
|
+
lastError: IDL.Opt(IDL.Text),
|
|
252
|
+
lastRung: IDL.Opt(IDL.Nat),
|
|
253
|
+
lastOkAtNs: IDL.Opt(IDL.Int),
|
|
254
|
+
});
|
|
236
255
|
const RegistryHealth = IDL.Record({
|
|
237
256
|
anchors: IDL.Opt(AnchorStats),
|
|
238
257
|
adminRoles: IDL.Opt(AdminRoles),
|
|
@@ -244,6 +263,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
244
263
|
minOperatingReserveCycles: IDL.Nat,
|
|
245
264
|
}),
|
|
246
265
|
),
|
|
266
|
+
changes: IDL.Opt(RegistryChangesHealth),
|
|
247
267
|
});
|
|
248
268
|
const Result_22 = IDL.Variant({ Ok: RegistryHealth, Err: Error });
|
|
249
269
|
const ReserveGateConfig = IDL.Record({
|
|
@@ -393,6 +413,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
393
413
|
});
|
|
394
414
|
const Result_14 = IDL.Variant({ Ok: Page_1, Err: Error });
|
|
395
415
|
const Dispute = IDL.Record({ statement: IDL.Text, atNs: IDL.Int });
|
|
416
|
+
const RegistryChangesPage = IDL.Record({
|
|
417
|
+
total: IDL.Nat,
|
|
418
|
+
withheld: IDL.Nat,
|
|
419
|
+
items: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
420
|
+
});
|
|
396
421
|
const Page = IDL.Record({
|
|
397
422
|
total: IDL.Nat,
|
|
398
423
|
withheld: IDL.Nat,
|
|
@@ -502,6 +527,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
502
527
|
getCertifiedAnchor: IDL.Func([IDL.Principal], [IDL.Opt(CertifiedAnchor)], ['query']),
|
|
503
528
|
getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
|
|
504
529
|
getCertifiedBirth: IDL.Func([IDL.Vec(IDL.Nat8)], [IDL.Opt(CertifiedBirth)], ['query']),
|
|
530
|
+
getCertifiedChangeHead: IDL.Func([], [CertifiedChangeHead], ['query']),
|
|
505
531
|
getChildSignInOffer: IDL.Func([IDL.Principal], [Result_29], ['query']),
|
|
506
532
|
getConsentOrigin: IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
|
|
507
533
|
getCustodyMode: IDL.Func([IDL.Principal], [Result_11], ['query']),
|
|
@@ -591,6 +617,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
591
617
|
listMyAgentDisputes: IDL.Func([], [IDL.Vec(Dispute)], ['query']),
|
|
592
618
|
listOfficialEngramWasmHashes: IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
|
|
593
619
|
listPredecessors: IDL.Func([IDL.Principal], [IDL.Vec(IDL.Principal)], ['query']),
|
|
620
|
+
listRegistryChanges: IDL.Func([IDL.Nat, IDL.Nat], [RegistryChangesPage], ['query']),
|
|
594
621
|
listUpdatePrefs: IDL.Func([IDL.Nat, IDL.Nat], [Result_13], ['query']),
|
|
595
622
|
mintReserveInvites: IDL.Func([IDL.Nat], [Result_12], []),
|
|
596
623
|
probeCustodyMode: IDL.Func([], [Result_11], []),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engramx/idl",
|
|
3
|
-
"version": "0.17.0-rc.
|
|
3
|
+
"version": "0.17.0-rc.4",
|
|
4
4
|
"description": "The Candid interfaces of the EngramX canisters (engram, registry, market) — the .did files and the JS/TS IDL factories generated from them, published with every release so code that calls them pins the interface by version.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "EngramX <developer@engramx.ai>",
|