@usesigil/kit 0.17.0 → 0.18.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.
- package/dist/agent-errors.d.ts +1 -1
- package/dist/agent-errors.d.ts.map +1 -1
- package/dist/agent-errors.js +13 -1
- package/dist/agent-errors.js.map +1 -1
- package/dist/create-vault.d.ts.map +1 -1
- package/dist/create-vault.js +10 -0
- package/dist/create-vault.js.map +1 -1
- package/dist/dashboard/index.d.ts +9 -0
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +24 -0
- package/dist/dashboard/index.js.map +1 -1
- package/dist/dashboard/mutations.d.ts +38 -0
- package/dist/dashboard/mutations.d.ts.map +1 -1
- package/dist/dashboard/mutations.js +234 -79
- package/dist/dashboard/mutations.js.map +1 -1
- package/dist/dashboard/types.d.ts +24 -2
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/errors/agent-errors.generated.d.ts +2 -2
- package/dist/errors/agent-errors.generated.d.ts.map +1 -1
- package/dist/errors/agent-errors.generated.js +5 -4
- package/dist/errors/agent-errors.generated.js.map +1 -1
- package/dist/generated/errors/sigil.d.ts +3 -1
- package/dist/generated/errors/sigil.d.ts.map +1 -1
- package/dist/generated/errors/sigil.js +3 -0
- package/dist/generated/errors/sigil.js.map +1 -1
- package/dist/generated/instructions/acceptOwnershipTransferMultisig.d.ts +12 -69
- package/dist/generated/instructions/acceptOwnershipTransferMultisig.d.ts.map +1 -1
- package/dist/generated/instructions/acceptOwnershipTransferMultisig.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/kit-adapter.d.ts +1 -1
- package/dist/kit-adapter.d.ts.map +1 -1
- package/dist/kit-adapter.js +1 -1
- package/dist/kit-adapter.js.map +1 -1
- package/dist/policy/compute-agent-perms-cosign-digest.d.ts +51 -0
- package/dist/policy/compute-agent-perms-cosign-digest.d.ts.map +1 -0
- package/dist/policy/compute-agent-perms-cosign-digest.js +55 -0
- package/dist/policy/compute-agent-perms-cosign-digest.js.map +1 -0
- package/dist/policy/compute-policy-preview-digest.d.ts +48 -27
- package/dist/policy/compute-policy-preview-digest.d.ts.map +1 -1
- package/dist/policy/compute-policy-preview-digest.js +49 -27
- package/dist/policy/compute-policy-preview-digest.js.map +1 -1
- package/dist/testing/errors/names.generated.d.ts +1 -0
- package/dist/testing/errors/names.generated.d.ts.map +1 -1
- package/dist/testing/errors/names.generated.js +2 -1
- package/dist/testing/errors/names.generated.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TA-09 (agent-perms) — Canonical agent-permissions cosign digest (SDK side).
|
|
3
|
+
*
|
|
4
|
+
* Mirrors `programs/sigil/src/utils/cosign_digest.rs::compute_agent_perms_cosign_digest`
|
|
5
|
+
* byte-for-byte. Separate from the policy `computeCosignDigest` by design: the
|
|
6
|
+
* policy digest binds policy fields; this one binds per-agent permission fields.
|
|
7
|
+
*
|
|
8
|
+
* Flow: on a `cosign_required` vault, raising an agent's capability or spending
|
|
9
|
+
* limit (or setting a non-zero cooldown) is an ELEVATED mutation. The owner +
|
|
10
|
+
* cosigner co-sign `queue_agent_permissions_update`; the handler recomputes this
|
|
11
|
+
* digest from the pending args + cosign-session pubkey and stores it, then
|
|
12
|
+
* `apply_agent_permissions_update` recomputes and asserts byte-equality
|
|
13
|
+
* (`ErrCosignRequired` on mismatch). This SDK helper produces the value an
|
|
14
|
+
* elevated transaction builder must reproduce.
|
|
15
|
+
*
|
|
16
|
+
* CANONICAL ENCODING (APPEND-ONLY — 81 bytes, NO Option tags / length prefixes /
|
|
17
|
+
* domain separator; mirrors cosign_digest.rs:110-117):
|
|
18
|
+
* 1. cosign_session : Pubkey (32 bytes raw)
|
|
19
|
+
* 2. agent : Pubkey (32 bytes raw) — binds the digest to a specific
|
|
20
|
+
* agent (prevents queue-on-A / apply-on-B replay)
|
|
21
|
+
* 3. new_capability : u8 (1 byte)
|
|
22
|
+
* 4. spending_limit_usd : u64 LE (8 bytes)
|
|
23
|
+
* 5. cooldown_seconds : u64 LE (8 bytes)
|
|
24
|
+
*/
|
|
25
|
+
import type { Address } from "../kit-adapter.js";
|
|
26
|
+
/**
|
|
27
|
+
* Canonical agent-perms cosign-digest input shape. Matches the on-chain
|
|
28
|
+
* `AgentPermsCosignDigestFields` struct exactly. Unlike the policy cosign
|
|
29
|
+
* digest, every field is unconditional fixed-width — there are NO `Option`
|
|
30
|
+
* discriminator bytes here (do not copy the policy-digest pattern).
|
|
31
|
+
*/
|
|
32
|
+
export interface AgentPermsCosignDigestFields {
|
|
33
|
+
/** The cosigning session pubkey (matches pending_agent_perms.cosign_session). */
|
|
34
|
+
cosignSession: Address | string;
|
|
35
|
+
/** The target agent's pubkey. */
|
|
36
|
+
agent: Address | string;
|
|
37
|
+
/** Proposed new capability: 0=Disabled, 1=Observer, 2=Operator. */
|
|
38
|
+
newCapability: number;
|
|
39
|
+
/** Proposed per-agent spending limit ($ × 1e6). */
|
|
40
|
+
spendingLimitUsd: bigint;
|
|
41
|
+
/** Proposed cooldown in seconds (0 = none). */
|
|
42
|
+
cooldownSeconds: bigint;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Compute the canonical SHA-256 agent-perms cosign digest. Returns a 32-byte
|
|
46
|
+
* Uint8Array, byte-identical to the on-chain helper for the same input.
|
|
47
|
+
*
|
|
48
|
+
* @throws if either pubkey doesn't base58-decode to exactly 32 bytes
|
|
49
|
+
*/
|
|
50
|
+
export declare function computeAgentPermsCosignDigest(fields: AgentPermsCosignDigestFields): Uint8Array;
|
|
51
|
+
//# sourceMappingURL=compute-agent-perms-cosign-digest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-agent-perms-cosign-digest.d.ts","sourceRoot":"","sources":["../../src/policy/compute-agent-perms-cosign-digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAMjD;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,iFAAiF;IACjF,aAAa,EAAE,OAAO,GAAG,MAAM,CAAC;IAChC,iCAAiC;IACjC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,mEAAmE;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,4BAA4B,GACnC,UAAU,CAwBZ"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TA-09 (agent-perms) — Canonical agent-permissions cosign digest (SDK side).
|
|
3
|
+
*
|
|
4
|
+
* Mirrors `programs/sigil/src/utils/cosign_digest.rs::compute_agent_perms_cosign_digest`
|
|
5
|
+
* byte-for-byte. Separate from the policy `computeCosignDigest` by design: the
|
|
6
|
+
* policy digest binds policy fields; this one binds per-agent permission fields.
|
|
7
|
+
*
|
|
8
|
+
* Flow: on a `cosign_required` vault, raising an agent's capability or spending
|
|
9
|
+
* limit (or setting a non-zero cooldown) is an ELEVATED mutation. The owner +
|
|
10
|
+
* cosigner co-sign `queue_agent_permissions_update`; the handler recomputes this
|
|
11
|
+
* digest from the pending args + cosign-session pubkey and stores it, then
|
|
12
|
+
* `apply_agent_permissions_update` recomputes and asserts byte-equality
|
|
13
|
+
* (`ErrCosignRequired` on mismatch). This SDK helper produces the value an
|
|
14
|
+
* elevated transaction builder must reproduce.
|
|
15
|
+
*
|
|
16
|
+
* CANONICAL ENCODING (APPEND-ONLY — 81 bytes, NO Option tags / length prefixes /
|
|
17
|
+
* domain separator; mirrors cosign_digest.rs:110-117):
|
|
18
|
+
* 1. cosign_session : Pubkey (32 bytes raw)
|
|
19
|
+
* 2. agent : Pubkey (32 bytes raw) — binds the digest to a specific
|
|
20
|
+
* agent (prevents queue-on-A / apply-on-B replay)
|
|
21
|
+
* 3. new_capability : u8 (1 byte)
|
|
22
|
+
* 4. spending_limit_usd : u64 LE (8 bytes)
|
|
23
|
+
* 5. cooldown_seconds : u64 LE (8 bytes)
|
|
24
|
+
*/
|
|
25
|
+
import { base58Decode32, sha256, writeU64Le } from "../canonical-encode.js";
|
|
26
|
+
/** 32 (session) + 32 (agent) + 1 (capability) + 8 (limit) + 8 (cooldown). */
|
|
27
|
+
const AGENT_PERMS_COSIGN_DIGEST_SIZE = 81;
|
|
28
|
+
/**
|
|
29
|
+
* Compute the canonical SHA-256 agent-perms cosign digest. Returns a 32-byte
|
|
30
|
+
* Uint8Array, byte-identical to the on-chain helper for the same input.
|
|
31
|
+
*
|
|
32
|
+
* @throws if either pubkey doesn't base58-decode to exactly 32 bytes
|
|
33
|
+
*/
|
|
34
|
+
export function computeAgentPermsCosignDigest(fields) {
|
|
35
|
+
const buf = new Uint8Array(AGENT_PERMS_COSIGN_DIGEST_SIZE);
|
|
36
|
+
const view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
37
|
+
let off = 0;
|
|
38
|
+
// 1. cosign_session (32 bytes raw)
|
|
39
|
+
buf.set(base58Decode32(fields.cosignSession), off);
|
|
40
|
+
off += 32;
|
|
41
|
+
// 2. agent (32 bytes raw)
|
|
42
|
+
buf.set(base58Decode32(fields.agent), off);
|
|
43
|
+
off += 32;
|
|
44
|
+
// 3. new_capability (u8)
|
|
45
|
+
buf[off++] = fields.newCapability & 0xff;
|
|
46
|
+
// 4. spending_limit_usd (u64 LE)
|
|
47
|
+
off = writeU64Le(view, off, fields.spendingLimitUsd);
|
|
48
|
+
// 5. cooldown_seconds (u64 LE)
|
|
49
|
+
off = writeU64Le(view, off, fields.cooldownSeconds);
|
|
50
|
+
if (off !== buf.length) {
|
|
51
|
+
throw new Error(`computeAgentPermsCosignDigest: encoded ${off} bytes, expected ${buf.length}`);
|
|
52
|
+
}
|
|
53
|
+
return sha256(buf);
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=compute-agent-perms-cosign-digest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-agent-perms-cosign-digest.js","sourceRoot":"","sources":["../../src/policy/compute-agent-perms-cosign-digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE5E,6EAA6E;AAC7E,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAqB1C;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAAoC;IAEpC,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,8BAA8B,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IAEtE,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,mCAAmC;IACnC,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,aAAuB,CAAC,EAAE,GAAG,CAAC,CAAC;IAC7D,GAAG,IAAI,EAAE,CAAC;IACV,0BAA0B;IAC1B,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,KAAe,CAAC,EAAE,GAAG,CAAC,CAAC;IACrD,GAAG,IAAI,EAAE,CAAC;IACV,yBAAyB;IACzB,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;IACzC,iCAAiC;IACjC,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACrD,+BAA+B;IAC/B,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;IAEpD,IAAI,GAAG,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,0CAA0C,GAAG,oBAAoB,GAAG,CAAC,MAAM,EAAE,CAC9E,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
* discriminator-collision attack). Both cases reject — the owner sees a
|
|
19
19
|
* mismatch error rather than silently committing.
|
|
20
20
|
*
|
|
21
|
-
* CANONICAL ENCODING (FIXED — DO NOT REORDER)
|
|
21
|
+
* CANONICAL ENCODING (FIXED — DO NOT REORDER). Positions are the live byte
|
|
22
|
+
* order — see PER_FIELD_FIXED_SIZES below, the single source of truth that a
|
|
23
|
+
* module-load assertion pins against POLICY_PREVIEW_FIELD_COUNT:
|
|
22
24
|
* 1. daily_spending_cap_usd: u64 LE (8 bytes)
|
|
23
25
|
* 2. max_transaction_size_usd: u64 LE (8 bytes)
|
|
24
26
|
* 3. max_slippage_bps: u16 LE (2 bytes)
|
|
@@ -30,36 +32,39 @@
|
|
|
30
32
|
* 9. timelock_duration: u64 LE (8 bytes)
|
|
31
33
|
* 10. session_expiry_seconds: u64 LE (8 bytes)
|
|
32
34
|
* 11. observe_only: bool as 1 byte (0 or 1)
|
|
33
|
-
* 12.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
35
|
+
* 12. has_post_assertions: u8 (1 byte) — M1-04 removed the former
|
|
36
|
+
* has_constraints byte (digest-version bump); positions renumbered down.
|
|
37
|
+
* 13. created_at_slot: u64 LE (8 bytes) — PEN-CROSS-2 (Phase 2 close-up)
|
|
38
|
+
* 14. operating_hours: u32 LE (4 bytes) — TA-05 (Phase 3 pre-exec)
|
|
39
|
+
* 15. auto_promote_grays: bool as 1 byte (0/1) — TA-07 (Phase 3 pre-exec)
|
|
40
|
+
* 16. auto_revoke_threshold: u8 (1 byte) — TA-17 (Phase 3 pre-exec)
|
|
41
|
+
* 17. stable_balance_floor: u64 LE (8 bytes) — TA-12 (Phase 5 post-exec)
|
|
42
|
+
* 18. per_recipient_daily_cap_usd: u64 LE (8 bytes) — TA-14 (Phase 5 post-exec)
|
|
43
|
+
* 19. cosign_required: bool (1 byte 0/1) — G6 (audit 2026-05-18 cosign opt-in)
|
|
44
|
+
* 20. agent_set_hash: [u8; 32] — Phase 8 PEN-CROSS-1 (audit 2026-05-19)
|
|
45
|
+
* 21. cosign_session_pubkey: Pubkey (32 bytes) — D-5 (audit 2026-05-19, F-RP3-1)
|
|
46
|
+
* 22. operator_grant_delay_seconds: u64 LE (8 bytes) — F-Q6 (2026-06-02)
|
|
47
|
+
* 23. has_protocol_caps: bool as 1 byte (0/1) — M-1 (audit 2026-06-11)
|
|
48
|
+
* 24. protocol_caps: u32 LE length (4 bytes) ++ each cap u64 LE (8 bytes) — M-1
|
|
44
49
|
*
|
|
45
50
|
* Phase 3 append-only additions (TA-05/07/17): operating_hours,
|
|
46
51
|
* auto_promote_grays, auto_revoke_threshold are appended at positions 15-17
|
|
47
52
|
* to preserve the 14-field prefix (F-14 APPEND-ONLY rule).
|
|
48
53
|
*
|
|
49
54
|
* Phase 5 append-only additions (TA-12/TA-14): stable_balance_floor at
|
|
50
|
-
* position
|
|
55
|
+
* position 17, per_recipient_daily_cap_usd at position 18. Both bound by
|
|
51
56
|
* TA-19 so silent SDK / pending-PDA mutations can't bypass the owner's
|
|
52
57
|
* signed digest.
|
|
53
58
|
*
|
|
54
59
|
* G6 append-only addition (audit 2026-05-18 cosign opt-in): cosign_required
|
|
55
|
-
* at position
|
|
60
|
+
* at position 19 (1 byte, 0/1). Owner's choice to opt into TA-09 cosign
|
|
56
61
|
* enforcement is part of the signed policy — a compromised SDK cannot
|
|
57
62
|
* silently disable cosign between owner approval and on-chain landing.
|
|
58
63
|
* Disabling cosign on a live policy where this is true is itself an
|
|
59
64
|
* elevated mutation per `queue_policy_update` (one-way ratchet).
|
|
60
65
|
*
|
|
61
66
|
* Phase 8 PEN-CROSS-1 append-only addition (Council ISC-66/A8/A9): the
|
|
62
|
-
* `agent_set_hash` at position
|
|
67
|
+
* `agent_set_hash` at position 20 binds the EXISTING agent set into the
|
|
63
68
|
* signed digest. SHA-256 over Borsh of `Vec<(Pubkey, u8 capability)>`
|
|
64
69
|
* sorted by pubkey ascending. Closes the silent-insertion vector where
|
|
65
70
|
* a phished-owner `register_agent(capability=OPERATOR)` would otherwise
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
* (`EMPTY_AGENT_SET_HASH` — SHA-256 of [0x00,0x00,0x00,0x00]).
|
|
69
74
|
*
|
|
70
75
|
* D-5 append-only addition (audit 2026-05-19, F-RP3-1): the
|
|
71
|
-
* `cosign_session_pubkey` at position
|
|
76
|
+
* `cosign_session_pubkey` at position 21 binds the owner's chosen
|
|
72
77
|
* reactivate-time cosigner pubkey into the signed digest. The
|
|
73
78
|
* `reactivate_vault` handler reads this pubkey at runtime and requires
|
|
74
79
|
* a matching `is_signer == true` entry in `remaining_accounts` whenever
|
|
@@ -125,7 +130,7 @@ export interface PolicyPreviewFields {
|
|
|
125
130
|
hasPostAssertions: number;
|
|
126
131
|
/**
|
|
127
132
|
* PEN-CROSS-2 (Phase 2 close-up): the slot at which `initialize_vault`
|
|
128
|
-
* minted the live policy. Bound by TA-19 at position
|
|
133
|
+
* minted the live policy. Bound by TA-19 at position 13. Closes the
|
|
129
134
|
* close+reinit replay window.
|
|
130
135
|
*/
|
|
131
136
|
createdAtSlot: bigint;
|
|
@@ -135,14 +140,14 @@ export interface PolicyPreviewFields {
|
|
|
135
140
|
* omitted by legacy callers (preserves existing test fixtures). Production
|
|
136
141
|
* SDK consumers should pass 0xFFFFFF (all 24h enabled) explicitly.
|
|
137
142
|
* Upper 8 bits MUST be zero — on-chain handler rejects with
|
|
138
|
-
* `ErrOutsideOperatingHours` (6084) if violated. Bound at position
|
|
143
|
+
* `ErrOutsideOperatingHours` (6084) if violated. Bound at position 14
|
|
139
144
|
* of the canonical encoding.
|
|
140
145
|
*/
|
|
141
146
|
operatingHours?: number;
|
|
142
147
|
/**
|
|
143
148
|
* TA-07 (Phase 3): owner-side toggle to bypass the 24h graylist friction
|
|
144
149
|
* for newly-added destinations. Default false (friction enforced).
|
|
145
|
-
* Bound by TA-19 at canonical position
|
|
150
|
+
* Bound by TA-19 at canonical position 15 so silent flips can't change
|
|
146
151
|
* the friction model.
|
|
147
152
|
*/
|
|
148
153
|
autoPromoteGrays?: boolean;
|
|
@@ -150,7 +155,7 @@ export interface PolicyPreviewFields {
|
|
|
150
155
|
* TA-17 (Phase 3): consecutive-failure threshold for agent auto-revoke.
|
|
151
156
|
* Range 3..=20. Default 0 (legacy callers — but on-chain handler now
|
|
152
157
|
* requires this to be in [3, 20] at policy-write time). Bound at
|
|
153
|
-
* canonical position
|
|
158
|
+
* canonical position 16.
|
|
154
159
|
*/
|
|
155
160
|
autoRevokeThreshold?: number;
|
|
156
161
|
/**
|
|
@@ -158,14 +163,14 @@ export interface PolicyPreviewFields {
|
|
|
158
163
|
* USDC+USDT vault balance, asserted at every `finalize_session`
|
|
159
164
|
* spending path completion. 6-decimal USDC face value (e.g.
|
|
160
165
|
* `$100 = 100_000_000n`). Default 0 (no reserve — preserves existing
|
|
161
|
-
* vault behavior). Bound at canonical position
|
|
166
|
+
* vault behavior). Bound at canonical position 17.
|
|
162
167
|
*/
|
|
163
168
|
stableBalanceFloor?: bigint;
|
|
164
169
|
/**
|
|
165
170
|
* TA-14 (Phase 5 post-exec): owner-chosen rolling 24h per-recipient
|
|
166
171
|
* outflow cap. 6-decimal USDC face value. Default 0 (no per-recipient
|
|
167
172
|
* cap — preserves existing vault behavior). Bound at canonical
|
|
168
|
-
* position
|
|
173
|
+
* position 18.
|
|
169
174
|
*/
|
|
170
175
|
perRecipientDailyCapUsd?: bigint;
|
|
171
176
|
/**
|
|
@@ -176,7 +181,7 @@ export interface PolicyPreviewFields {
|
|
|
176
181
|
* 7-trigger elevation gate (raises caps, expands allowlists, weakens
|
|
177
182
|
* floor / per-recipient / protocol caps) requires a cosign session.
|
|
178
183
|
* Disabling cosign on a live policy where this is true is itself an
|
|
179
|
-
* elevated mutation (one-way ratchet). Bound at canonical position
|
|
184
|
+
* elevated mutation (one-way ratchet). Bound at canonical position 19.
|
|
180
185
|
*/
|
|
181
186
|
cosignRequired?: boolean;
|
|
182
187
|
/**
|
|
@@ -185,7 +190,7 @@ export interface PolicyPreviewFields {
|
|
|
185
190
|
* result of `computeAgentSetHash(...)` over the live vault's agent set
|
|
186
191
|
* (use empty array for a freshly-initialized vault). Empty vault produces
|
|
187
192
|
* the deterministic `EMPTY_AGENT_SET_HASH` value. Bound at canonical
|
|
188
|
-
* position
|
|
193
|
+
* position 20. Optional with default `EMPTY_AGENT_SET_HASH` so legacy
|
|
189
194
|
* fixtures (no agents) continue to compute the canonical digest.
|
|
190
195
|
*/
|
|
191
196
|
agentSetHash?: Uint8Array;
|
|
@@ -195,7 +200,7 @@ export interface PolicyPreviewFields {
|
|
|
195
200
|
* as 32 zero bytes) when omitted, matching the on-chain init state
|
|
196
201
|
* where the gate is disabled. Owners opt in by passing a non-default
|
|
197
202
|
* pubkey via `queue_policy_update` (the SDK helper here mirrors that
|
|
198
|
-
* value into the digest). Bound at canonical position
|
|
203
|
+
* value into the digest). Bound at canonical position 21.
|
|
199
204
|
*
|
|
200
205
|
* Type: base58 string (e.g. an Address) OR a 32-byte raw Uint8Array.
|
|
201
206
|
* The encoder accepts both shapes for parity with the protocols /
|
|
@@ -212,11 +217,27 @@ export interface PolicyPreviewFields {
|
|
|
212
217
|
* `queue_policy_update` path.
|
|
213
218
|
*/
|
|
214
219
|
operatorGrantDelaySeconds?: bigint;
|
|
220
|
+
/**
|
|
221
|
+
* M-1 (audit 2026-06-11): owner's per-protocol-caps master switch. Bound at
|
|
222
|
+
* canonical position 23 (default false when omitted, matching the on-chain
|
|
223
|
+
* init/legacy state). Mirrors the cosign digest's order (hasProtocolCaps
|
|
224
|
+
* before protocolCaps). Closes the gap where a tampered SDK could flip the
|
|
225
|
+
* caps switch without the owner's signed preview detecting it.
|
|
226
|
+
*/
|
|
227
|
+
hasProtocolCaps?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* M-1 (audit 2026-06-11): owner's per-protocol rolling-24h spend caps,
|
|
230
|
+
* aligned 1:1 with `protocols` (≤ 10). Bound at canonical position 24 as a
|
|
231
|
+
* u32 LE length prefix ++ each cap as u64 LE (mirrors the `protocols` Vec
|
|
232
|
+
* pattern). Default [] when omitted.
|
|
233
|
+
*/
|
|
234
|
+
protocolCaps?: readonly bigint[];
|
|
215
235
|
}
|
|
216
236
|
/** Mirrors `policy_digest.rs::POLICY_PREVIEW_FIELD_COUNT`.
|
|
217
237
|
* M1-04: was 22; has_constraints removed (digest-version bump).
|
|
218
|
-
* F-Q6 (2026-06-02): 21 → 22, binds operator_grant_delay_seconds.
|
|
219
|
-
|
|
238
|
+
* F-Q6 (2026-06-02): 21 → 22, binds operator_grant_delay_seconds.
|
|
239
|
+
* M-1 (2026-06-11): 22 → 24, binds has_protocol_caps (23) + protocol_caps (24). */
|
|
240
|
+
export declare const POLICY_PREVIEW_FIELD_COUNT = 24;
|
|
220
241
|
/**
|
|
221
242
|
* Phase 8 PEN-CROSS-1 (Council ISC-141): SHA-256 of the Borsh-encoded
|
|
222
243
|
* empty `Vec<(Pubkey, u8)>` — i.e. SHA-256 of [0x00, 0x00, 0x00, 0x00].
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-policy-preview-digest.d.ts","sourceRoot":"","sources":["../../src/policy/compute-policy-preview-digest.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"compute-policy-pre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EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACpD;;;;;;;;OAQG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAgCD;;;oFAGoF;AACpF,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAG/B,CAAC;AAEL;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GACtE,UAAU,CA8BZ;AA8DD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,mBAAmB,GAC1B,UAAU,CAmIZ;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,8BAAwB,CAAC"}
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
* discriminator-collision attack). Both cases reject — the owner sees a
|
|
19
19
|
* mismatch error rather than silently committing.
|
|
20
20
|
*
|
|
21
|
-
* CANONICAL ENCODING (FIXED — DO NOT REORDER)
|
|
21
|
+
* CANONICAL ENCODING (FIXED — DO NOT REORDER). Positions are the live byte
|
|
22
|
+
* order — see PER_FIELD_FIXED_SIZES below, the single source of truth that a
|
|
23
|
+
* module-load assertion pins against POLICY_PREVIEW_FIELD_COUNT:
|
|
22
24
|
* 1. daily_spending_cap_usd: u64 LE (8 bytes)
|
|
23
25
|
* 2. max_transaction_size_usd: u64 LE (8 bytes)
|
|
24
26
|
* 3. max_slippage_bps: u16 LE (2 bytes)
|
|
@@ -30,36 +32,39 @@
|
|
|
30
32
|
* 9. timelock_duration: u64 LE (8 bytes)
|
|
31
33
|
* 10. session_expiry_seconds: u64 LE (8 bytes)
|
|
32
34
|
* 11. observe_only: bool as 1 byte (0 or 1)
|
|
33
|
-
* 12.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
35
|
+
* 12. has_post_assertions: u8 (1 byte) — M1-04 removed the former
|
|
36
|
+
* has_constraints byte (digest-version bump); positions renumbered down.
|
|
37
|
+
* 13. created_at_slot: u64 LE (8 bytes) — PEN-CROSS-2 (Phase 2 close-up)
|
|
38
|
+
* 14. operating_hours: u32 LE (4 bytes) — TA-05 (Phase 3 pre-exec)
|
|
39
|
+
* 15. auto_promote_grays: bool as 1 byte (0/1) — TA-07 (Phase 3 pre-exec)
|
|
40
|
+
* 16. auto_revoke_threshold: u8 (1 byte) — TA-17 (Phase 3 pre-exec)
|
|
41
|
+
* 17. stable_balance_floor: u64 LE (8 bytes) — TA-12 (Phase 5 post-exec)
|
|
42
|
+
* 18. per_recipient_daily_cap_usd: u64 LE (8 bytes) — TA-14 (Phase 5 post-exec)
|
|
43
|
+
* 19. cosign_required: bool (1 byte 0/1) — G6 (audit 2026-05-18 cosign opt-in)
|
|
44
|
+
* 20. agent_set_hash: [u8; 32] — Phase 8 PEN-CROSS-1 (audit 2026-05-19)
|
|
45
|
+
* 21. cosign_session_pubkey: Pubkey (32 bytes) — D-5 (audit 2026-05-19, F-RP3-1)
|
|
46
|
+
* 22. operator_grant_delay_seconds: u64 LE (8 bytes) — F-Q6 (2026-06-02)
|
|
47
|
+
* 23. has_protocol_caps: bool as 1 byte (0/1) — M-1 (audit 2026-06-11)
|
|
48
|
+
* 24. protocol_caps: u32 LE length (4 bytes) ++ each cap u64 LE (8 bytes) — M-1
|
|
44
49
|
*
|
|
45
50
|
* Phase 3 append-only additions (TA-05/07/17): operating_hours,
|
|
46
51
|
* auto_promote_grays, auto_revoke_threshold are appended at positions 15-17
|
|
47
52
|
* to preserve the 14-field prefix (F-14 APPEND-ONLY rule).
|
|
48
53
|
*
|
|
49
54
|
* Phase 5 append-only additions (TA-12/TA-14): stable_balance_floor at
|
|
50
|
-
* position
|
|
55
|
+
* position 17, per_recipient_daily_cap_usd at position 18. Both bound by
|
|
51
56
|
* TA-19 so silent SDK / pending-PDA mutations can't bypass the owner's
|
|
52
57
|
* signed digest.
|
|
53
58
|
*
|
|
54
59
|
* G6 append-only addition (audit 2026-05-18 cosign opt-in): cosign_required
|
|
55
|
-
* at position
|
|
60
|
+
* at position 19 (1 byte, 0/1). Owner's choice to opt into TA-09 cosign
|
|
56
61
|
* enforcement is part of the signed policy — a compromised SDK cannot
|
|
57
62
|
* silently disable cosign between owner approval and on-chain landing.
|
|
58
63
|
* Disabling cosign on a live policy where this is true is itself an
|
|
59
64
|
* elevated mutation per `queue_policy_update` (one-way ratchet).
|
|
60
65
|
*
|
|
61
66
|
* Phase 8 PEN-CROSS-1 append-only addition (Council ISC-66/A8/A9): the
|
|
62
|
-
* `agent_set_hash` at position
|
|
67
|
+
* `agent_set_hash` at position 20 binds the EXISTING agent set into the
|
|
63
68
|
* signed digest. SHA-256 over Borsh of `Vec<(Pubkey, u8 capability)>`
|
|
64
69
|
* sorted by pubkey ascending. Closes the silent-insertion vector where
|
|
65
70
|
* a phished-owner `register_agent(capability=OPERATOR)` would otherwise
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
* (`EMPTY_AGENT_SET_HASH` — SHA-256 of [0x00,0x00,0x00,0x00]).
|
|
69
74
|
*
|
|
70
75
|
* D-5 append-only addition (audit 2026-05-19, F-RP3-1): the
|
|
71
|
-
* `cosign_session_pubkey` at position
|
|
76
|
+
* `cosign_session_pubkey` at position 21 binds the owner's chosen
|
|
72
77
|
* reactivate-time cosigner pubkey into the signed digest. The
|
|
73
78
|
* `reactivate_vault` handler reads this pubkey at runtime and requires
|
|
74
79
|
* a matching `is_signer == true` entry in `remaining_accounts` whenever
|
|
@@ -120,8 +125,9 @@ import { base58Decode32 as base58Decode, sha256, writeU16Le, writeU32Le, writeU6
|
|
|
120
125
|
// load.
|
|
121
126
|
/** Mirrors `policy_digest.rs::POLICY_PREVIEW_FIELD_COUNT`.
|
|
122
127
|
* M1-04: was 22; has_constraints removed (digest-version bump).
|
|
123
|
-
* F-Q6 (2026-06-02): 21 → 22, binds operator_grant_delay_seconds.
|
|
124
|
-
|
|
128
|
+
* F-Q6 (2026-06-02): 21 → 22, binds operator_grant_delay_seconds.
|
|
129
|
+
* M-1 (2026-06-11): 22 → 24, binds has_protocol_caps (23) + protocol_caps (24). */
|
|
130
|
+
export const POLICY_PREVIEW_FIELD_COUNT = 24;
|
|
125
131
|
/**
|
|
126
132
|
* Phase 8 PEN-CROSS-1 (Council ISC-141): SHA-256 of the Borsh-encoded
|
|
127
133
|
* empty `Vec<(Pubkey, u8)>` — i.e. SHA-256 of [0x00, 0x00, 0x00, 0x00].
|
|
@@ -202,6 +208,8 @@ const PER_FIELD_FIXED_SIZES = [
|
|
|
202
208
|
32, // 20. agent_set_hash ([u8;32]) Phase 8 PEN-CROSS-1
|
|
203
209
|
32, // 21. cosign_session_pubkey (Pubkey) D-5 (audit 2026-05-19, F-RP3-1)
|
|
204
210
|
8, // 22. operator_grant_delay_seconds (u64 LE) F-Q6 (2026-06-02)
|
|
211
|
+
1, // 23. has_protocol_caps (bool as u8) M-1 (2026-06-11)
|
|
212
|
+
4, // 24. protocol_caps (u32 LE length prefix; u64 caps variable) M-1
|
|
205
213
|
];
|
|
206
214
|
/** Derived sum — must match the encoder's `fixedSize` exactly. */
|
|
207
215
|
const EXPECTED_FIXED_SIZE = PER_FIELD_FIXED_SIZES.reduce((a, b) => a + b, 0);
|
|
@@ -247,7 +255,11 @@ export function computePolicyPreviewDigest(fields) {
|
|
|
247
255
|
// developer to update both the table AND the encoder body when adding
|
|
248
256
|
// a field (the offset assertion at the bottom catches the inconsistency).
|
|
249
257
|
const fixedSize = EXPECTED_FIXED_SIZE;
|
|
250
|
-
|
|
258
|
+
// M-1 (2026-06-11): + each protocol_cap (u64 = 8 bytes); the u32 length
|
|
259
|
+
// prefix is already counted in PER_FIELD_FIXED_SIZES (field 24 = 4).
|
|
260
|
+
const variableSize = protoBytes.length * 32 +
|
|
261
|
+
destBytes.length * 32 +
|
|
262
|
+
(fields.protocolCaps?.length ?? 0) * 8;
|
|
251
263
|
const buf = new Uint8Array(fixedSize + variableSize);
|
|
252
264
|
const view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
253
265
|
let off = 0;
|
|
@@ -273,23 +285,23 @@ export function computePolicyPreviewDigest(fields) {
|
|
|
273
285
|
buf[off++] = fields.observeOnly ? 1 : 0;
|
|
274
286
|
// M1-04: has_constraints byte removed (digest-version bump).
|
|
275
287
|
buf[off++] = fields.hasPostAssertions;
|
|
276
|
-
// PEN-CROSS-2: created_at_slot at position
|
|
288
|
+
// PEN-CROSS-2: created_at_slot at position 13 of canonical encoding.
|
|
277
289
|
off = writeU64Le(view, off, fields.createdAtSlot);
|
|
278
|
-
// TA-05 (Phase 3): operating_hours at position
|
|
290
|
+
// TA-05 (Phase 3): operating_hours at position 14 of canonical encoding.
|
|
279
291
|
// Default 0 when omitted by legacy callers; production SDK consumers
|
|
280
292
|
// should pass 0xFFFFFF explicitly via `initializeVault`/`queuePolicyUpdate`.
|
|
281
293
|
off = writeU32Le(view, off, fields.operatingHours ?? 0);
|
|
282
|
-
// TA-07 (Phase 3): auto_promote_grays at position
|
|
294
|
+
// TA-07 (Phase 3): auto_promote_grays at position 15.
|
|
283
295
|
buf[off++] = fields.autoPromoteGrays ? 1 : 0;
|
|
284
|
-
// TA-17 (Phase 3): auto_revoke_threshold at position
|
|
296
|
+
// TA-17 (Phase 3): auto_revoke_threshold at position 16.
|
|
285
297
|
buf[off++] = fields.autoRevokeThreshold ?? 0;
|
|
286
|
-
// TA-12 (Phase 5): stable_balance_floor at position
|
|
298
|
+
// TA-12 (Phase 5): stable_balance_floor at position 17.
|
|
287
299
|
off = writeU64Le(view, off, fields.stableBalanceFloor ?? 0n);
|
|
288
|
-
// TA-14 (Phase 5): per_recipient_daily_cap_usd at position
|
|
300
|
+
// TA-14 (Phase 5): per_recipient_daily_cap_usd at position 18.
|
|
289
301
|
off = writeU64Le(view, off, fields.perRecipientDailyCapUsd ?? 0n);
|
|
290
|
-
// G6 (audit 2026-05-18 cosign opt-in): cosign_required at position
|
|
302
|
+
// G6 (audit 2026-05-18 cosign opt-in): cosign_required at position 19.
|
|
291
303
|
buf[off++] = fields.cosignRequired ? 1 : 0;
|
|
292
|
-
// Phase 8 PEN-CROSS-1: agent_set_hash at position
|
|
304
|
+
// Phase 8 PEN-CROSS-1: agent_set_hash at position 20. Default
|
|
293
305
|
// EMPTY_AGENT_SET_HASH so legacy callers (no agents) continue to
|
|
294
306
|
// produce a canonical digest without explicit setup.
|
|
295
307
|
const agentSetHash = fields.agentSetHash ?? EMPTY_AGENT_SET_HASH;
|
|
@@ -324,6 +336,16 @@ export function computePolicyPreviewDigest(fields) {
|
|
|
324
336
|
// Default 0n so legacy callers that don't configure a delay continue to
|
|
325
337
|
// produce the canonical digest. Owner opts in via queue_policy_update.
|
|
326
338
|
off = writeU64Le(view, off, fields.operatorGrantDelaySeconds ?? 0n);
|
|
339
|
+
// 23. has_protocol_caps: bool as u8 — M-1 (2026-06-11). Parity with the Rust
|
|
340
|
+
// encoder + the cosign digest (position 8).
|
|
341
|
+
buf[off++] = fields.hasProtocolCaps ? 1 : 0;
|
|
342
|
+
// 24. protocol_caps: u32 LE length prefix ++ each cap u64 LE — M-1, parity with
|
|
343
|
+
// the `protocols` Vec pattern above + the cosign digest (position 9).
|
|
344
|
+
const protocolCaps = fields.protocolCaps ?? [];
|
|
345
|
+
off = writeU32Le(view, off, protocolCaps.length);
|
|
346
|
+
for (const cap of protocolCaps) {
|
|
347
|
+
off = writeU64Le(view, off, cap);
|
|
348
|
+
}
|
|
327
349
|
// §RP-2 L-NEW-1 forward-looking ratchet: the encoder MUST write
|
|
328
350
|
// exactly `fixedSize + variableSize` bytes. `fixedSize` is now
|
|
329
351
|
// derived from the PER_FIELD_FIXED_SIZES table (which is asserted
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-policy-preview-digest.js","sourceRoot":"","sources":["../../src/policy/compute-policy-preview-digest.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"compute-policy-preview-digest.js","sourceRoot":"","sources":["../../src/policy/compute-policy-preview-digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AAGH,OAAO,EACL,cAAc,IAAI,YAAY,EAC9B,MAAM,EACN,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,IAAI,qBAAqB,GACtC,MAAM,wBAAwB,CAAC;AA6IhC,+EAA+E;AAC/E,uEAAuE;AACvE,uEAAuE;AACvE,uEAAuE;AACvE,sDAAsD;AAEtD,+EAA+E;AAC/E,EAAE;AACF,qEAAqE;AACrE,wEAAwE;AACxE,oEAAoE;AACpE,sEAAsE;AACtE,uEAAuE;AACvE,gEAAgE;AAChE,mEAAmE;AACnE,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,+DAA+D;AAC/D,oEAAoE;AACpE,kEAAkE;AAClE,8DAA8D;AAC9D,EAAE;AACF,8DAA8D;AAC9D,mEAAmE;AACnE,oEAAoE;AACpE,qEAAqE;AACrE,QAAQ;AAER;;;oFAGoF;AACpF,MAAM,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gF;IAChF,sEAAsE;IACtE,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;IAC/C,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACjD,KAAK,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;QAC/B,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,gEAAgE;IAChE,+DAA+D;IAC/D,kEAAkE;IAClE,+DAA+D;IAC/D,mEAAmE;IACnE,gEAAgE;IAChE,kEAAkE;IAClE,iEAAiE;IACjE,mEAAmE;IACnE,+DAA+D;IAC/D,IAAI,GAAG,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,uCAAuC,GAAG,oBAAoB,GAAG,CAAC,MAAM,IAAI;YAC1E,8EAA8E;YAC9E,2EAA2E,CAC9E,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,qBAAqB,CAAC"}
|
|
@@ -124,6 +124,7 @@ export declare const SIGIL_ERRORS: {
|
|
|
124
124
|
readonly ErrOperatorGrantDelayTooLong: 6108;
|
|
125
125
|
readonly InvalidOwnerType: 6109;
|
|
126
126
|
readonly SpendAccountingUnderflow: 6110;
|
|
127
|
+
readonly ErrMultisigCustodyUnsupported: 6111;
|
|
127
128
|
};
|
|
128
129
|
/**
|
|
129
130
|
* Union of valid Sigil error names.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"names.generated.d.ts","sourceRoot":"","sources":["../../../src/testing/errors/names.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"names.generated.d.ts","sourceRoot":"","sources":["../../../src/testing/errors/names.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHf,CAAC;AAEX;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,YAAY,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,cAAc,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,cAAc,IACpD,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAO3B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmE1B,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,uBAAuB,CAAC;AAEvE,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,mBAAmB,IAC9D,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;AAMtC,yCAAyC;AACzC,eAAO,MAAM,iBAAiB,EAAE,MAAyC,CAAC;AAE1E,0CAA0C;AAC1C,eAAO,MAAM,eAAe,EAAE,MAAa,CAAC;AAE5C,2DAA2D;AAC3D,eAAO,MAAM,eAAe,EAAE,MAAiD,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* If any of the three drift, CI fails.
|
|
14
14
|
*/
|
|
15
15
|
// ────────────────────────────────────────────────────────────────
|
|
16
|
-
// Sigil program errors (6000-
|
|
16
|
+
// Sigil program errors (6000-6111)
|
|
17
17
|
// ────────────────────────────────────────────────────────────────
|
|
18
18
|
export const SIGIL_ERRORS = {
|
|
19
19
|
VaultNotActive: 6000,
|
|
@@ -127,6 +127,7 @@ export const SIGIL_ERRORS = {
|
|
|
127
127
|
ErrOperatorGrantDelayTooLong: 6108,
|
|
128
128
|
InvalidOwnerType: 6109,
|
|
129
129
|
SpendAccountingUnderflow: 6110,
|
|
130
|
+
ErrMultisigCustodyUnsupported: 6111,
|
|
130
131
|
};
|
|
131
132
|
// ────────────────────────────────────────────────────────────────
|
|
132
133
|
// Anchor framework errors (2000-5999, commonly-asserted subset)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"names.generated.js","sourceRoot":"","sources":["../../../src/testing/errors/names.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,mEAAmE;AACnE,mCAAmC;AACnC,mEAAmE;AAEnE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,oBAAoB,EAAE,IAAI;IAC1B,cAAc,EAAE,IAAI;IACpB,uBAAuB,EAAE,IAAI;IAC7B,sBAAsB,EAAE,IAAI;IAC5B,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;IACxB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,qBAAqB,EAAE,IAAI;IAC3B,uBAAuB,EAAE,IAAI;IAC7B,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,IAAI;IACd,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,oBAAoB,EAAE,IAAI;IAC1B,qBAAqB,EAAE,IAAI;IAC3B,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,iBAAiB,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4B,EAAE,IAAI;IAClC,gBAAgB,EAAE,IAAI;IACtB,wBAAwB,EAAE,IAAI;IAC9B,iBAAiB,EAAE,IAAI;IACvB,mBAAmB,EAAE,IAAI;IACzB,eAAe,EAAE,IAAI;IACrB,8BAA8B,EAAE,IAAI;IACpC,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,oBAAoB,EAAE,IAAI;IAC1B,oBAAoB,EAAE,IAAI;IAC1B,uBAAuB,EAAE,IAAI;IAC7B,uBAAuB,EAAE,IAAI;IAC7B,mBAAmB,EAAE,IAAI;IACzB,uBAAuB,EAAE,IAAI;IAC7B,uBAAuB,EAAE,IAAI;IAC7B,yBAAyB,EAAE,IAAI;IAC/B,sBAAsB,EAAE,IAAI;IAC5B,mBAAmB,EAAE,IAAI;IACzB,0BAA0B,EAAE,IAAI;IAChC,mBAAmB,EAAE,IAAI;IACzB,yBAAyB,EAAE,IAAI;IAC/B,2BAA2B,EAAE,IAAI;IACjC,sBAAsB,EAAE,IAAI;IAC5B,2BAA2B,EAAE,IAAI;IACjC,yBAAyB,EAAE,IAAI;IAC/B,qBAAqB,EAAE,IAAI;IAC3B,0BAA0B,EAAE,IAAI;IAChC,4BAA4B,EAAE,IAAI;IAClC,uBAAuB,EAAE,IAAI;IAC7B,kCAAkC,EAAE,IAAI;IACxC,4CAA4C,EAAE,IAAI;IAClD,8BAA8B,EAAE,IAAI;IACpC,kCAAkC,EAAE,IAAI;IACxC,gCAAgC,EAAE,IAAI;IACtC,4BAA4B,EAAE,IAAI;IAClC,gBAAgB,EAAE,IAAI;IACtB,wBAAwB,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"names.generated.js","sourceRoot":"","sources":["../../../src/testing/errors/names.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,mEAAmE;AACnE,mCAAmC;AACnC,mEAAmE;AAEnE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,cAAc,EAAE,IAAI;IACpB,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