@t3foundry/tasra-sdk 0.3.1-next.1 → 0.4.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/CHANGELOG.md +1067 -28
- package/README.md +15 -0
- package/dist/app/approvals.d.ts +66 -4
- package/dist/app/approvals.js +153 -16
- package/dist/app/authorization.d.ts +1 -1
- package/dist/app/authorization.js +1 -1
- package/dist/app/browser.d.ts +63 -0
- package/dist/app/browser.js +242 -0
- package/dist/app/client.d.ts +114 -13
- package/dist/app/client.js +302 -76
- package/dist/app/identity.js +21 -9
- package/dist/app/index.d.ts +28 -3
- package/dist/app/index.js +16 -1
- package/dist/app/memory-store.d.ts +7 -0
- package/dist/app/memory-store.js +55 -0
- package/dist/app/node.d.ts +34 -6
- package/dist/app/node.js +387 -64
- package/dist/app/paid-allowance.d.ts +325 -0
- package/dist/app/paid-allowance.js +1290 -0
- package/dist/app/paid-approval.d.ts +122 -0
- package/dist/app/paid-approval.js +379 -0
- package/dist/app/paid-journal.d.ts +51 -0
- package/dist/app/paid-journal.js +117 -0
- package/dist/app/paid-keys.d.ts +12 -0
- package/dist/app/paid-keys.js +20 -0
- package/dist/app/paid-operation.d.ts +821 -0
- package/dist/app/paid-operation.js +1720 -0
- package/dist/app/paid-reservation.d.ts +157 -0
- package/dist/app/paid-reservation.js +323 -0
- package/dist/app/paid-session.d.ts +147 -0
- package/dist/app/paid-session.js +578 -0
- package/dist/app/payer-queue.d.ts +11 -0
- package/dist/app/payer-queue.js +27 -0
- package/dist/app/policy-bootstrap.d.ts +342 -0
- package/dist/app/policy-bootstrap.js +365 -0
- package/dist/app/policy-operation.d.ts +47 -0
- package/dist/app/policy-operation.js +101 -0
- package/dist/app/ready-slot.d.ts +12 -0
- package/dist/app/ready-slot.js +5 -2
- package/dist/app/rotation-lock.d.ts +38 -0
- package/dist/app/rotation-lock.js +42 -0
- package/dist/app/session-decrypt.d.ts +135 -0
- package/dist/app/session-decrypt.js +335 -0
- package/dist/app/session-grants.d.ts +349 -0
- package/dist/app/session-grants.js +811 -0
- package/dist/app/signing-intents.d.ts +78 -0
- package/dist/app/signing-intents.js +95 -0
- package/dist/app/store-commit.d.ts +63 -0
- package/dist/app/store-commit.js +126 -0
- package/dist/app/store-errors.d.ts +8 -0
- package/dist/app/store-errors.js +11 -0
- package/dist/app/tasra-client.d.ts +2 -0
- package/dist/app/tasra-client.js +1 -1
- package/dist/app/wallet.js +4 -1
- package/dist/auth/holderProof.d.ts +3 -0
- package/dist/auth/holderProof.js +8 -7
- package/dist/auth/verifier.d.ts +4 -2
- package/dist/auth/verifier.js +5 -2
- package/dist/chain/abis/index.d.ts +6178 -4101
- package/dist/chain/abis/index.js +3 -0
- package/dist/chain/abis/keyRegistry.d.ts +256 -0
- package/dist/chain/abis/keyRegistry.js +333 -0
- package/dist/chain/abis/prepaidFaultOracle.d.ts +321 -0
- package/dist/chain/abis/prepaidFaultOracle.js +413 -0
- package/dist/chain/abis/settlement.d.ts +2203 -703
- package/dist/chain/abis/settlement.js +2685 -764
- package/dist/chain/allowance.d.ts +358 -0
- package/dist/chain/allowance.js +800 -0
- package/dist/chain/billing.d.ts +85 -0
- package/dist/chain/billing.js +197 -0
- package/dist/chain/chainId.d.ts +13 -0
- package/dist/chain/chainId.js +26 -0
- package/dist/chain/client.d.ts +15 -1
- package/dist/chain/client.js +57 -1
- package/dist/chain/commitmentRecovery.d.ts +51 -0
- package/dist/chain/commitmentRecovery.js +38 -0
- package/dist/chain/committeeClient.d.ts +17 -10
- package/dist/chain/committeeClient.js +64 -16
- package/dist/chain/committeeDraw.d.ts +12 -0
- package/dist/chain/committeeDraw.js +56 -0
- package/dist/chain/custodyHealth.d.ts +212 -0
- package/dist/chain/custodyHealth.js +365 -0
- package/dist/chain/deployments.js +2 -0
- package/dist/chain/events.js +2 -0
- package/dist/chain/headFollower.d.ts +77 -0
- package/dist/chain/headFollower.js +219 -0
- package/dist/chain/headPrefetch.d.ts +23 -0
- package/dist/chain/headPrefetch.js +67 -0
- package/dist/chain/index.d.ts +50 -8
- package/dist/chain/index.js +28 -3
- package/dist/chain/keeperExecution.d.ts +44 -0
- package/dist/chain/keeperExecution.js +127 -0
- package/dist/chain/keeperRecovery.d.ts +78 -0
- package/dist/chain/keeperRecovery.js +91 -0
- package/dist/chain/node.d.ts +24 -1
- package/dist/chain/node.js +88 -43
- package/dist/chain/offchain.d.ts +2 -0
- package/dist/chain/paidAgentTransport.d.ts +38 -0
- package/dist/chain/paidAgentTransport.js +1 -0
- package/dist/chain/paidEpoch.d.ts +66 -0
- package/dist/chain/paidEpoch.js +139 -0
- package/dist/chain/paidPacing.d.ts +81 -0
- package/dist/chain/paidPacing.js +136 -0
- package/dist/chain/pinnedReads.d.ts +49 -0
- package/dist/chain/pinnedReads.js +218 -0
- package/dist/chain/prepaid.d.ts +383 -0
- package/dist/chain/prepaid.js +1046 -0
- package/dist/chain/prepaidEscape.d.ts +274 -0
- package/dist/chain/prepaidEscape.js +432 -0
- package/dist/chain/prepaidFault.d.ts +94 -0
- package/dist/chain/prepaidFault.js +148 -0
- package/dist/chain/receipt.d.ts +24 -0
- package/dist/chain/receipt.js +82 -0
- package/dist/chain/registeredAgent.d.ts +68 -3
- package/dist/chain/registeredAgent.js +143 -42
- package/dist/chain/registeredOperation.d.ts +10 -1
- package/dist/chain/registeredOperation.js +18 -3
- package/dist/chain/registeredPaidAgent.d.ts +254 -0
- package/dist/chain/registeredPaidAgent.js +889 -0
- package/dist/chain/registeredRelay.d.ts +31 -1
- package/dist/chain/registeredRelay.js +164 -43
- package/dist/chain/relayVoucher.d.ts +64 -0
- package/dist/chain/relayVoucher.js +69 -0
- package/dist/chain/reservation.d.ts +239 -0
- package/dist/chain/reservation.js +746 -0
- package/dist/chain/reshareRoster.d.ts +64 -0
- package/dist/chain/reshareRoster.js +85 -0
- package/dist/chain/revertReason.d.ts +8 -0
- package/dist/chain/revertReason.js +2 -1
- package/dist/chain/rotationLock.d.ts +130 -0
- package/dist/chain/rotationLock.js +168 -0
- package/dist/chain/serviceRequestPolicy.d.ts +47 -0
- package/dist/chain/serviceRequestPolicy.js +86 -0
- package/dist/chain/services.d.ts +7 -0
- package/dist/chain/services.js +44 -4
- package/dist/chain/slotClient.js +11 -2
- package/dist/chain/slotHandoff.d.ts +81 -0
- package/dist/chain/slotHandoff.js +166 -0
- package/dist/chain/slotSeed.d.ts +47 -5
- package/dist/chain/slotSeed.js +173 -42
- package/dist/chain/verifierSnapshot.d.ts +36 -0
- package/dist/chain/verifierSnapshot.js +197 -0
- package/dist/chain/write.d.ts +111 -21
- package/dist/chain/write.js +378 -146
- package/dist/committee/blsSharing.d.ts +53 -0
- package/dist/committee/blsSharing.js +90 -0
- package/dist/committee/client.d.ts +62 -23
- package/dist/committee/client.js +288 -72
- package/dist/committee/dual-operation.d.ts +165 -0
- package/dist/committee/dual-operation.js +229 -0
- package/dist/committee/dual-sign.d.ts +26 -1
- package/dist/committee/dual-sign.js +85 -7
- package/dist/committee/ecdsa.d.ts +38 -0
- package/dist/committee/ecdsa.js +87 -15
- package/dist/committee/evidence.d.ts +30 -0
- package/dist/committee/evidence.js +65 -0
- package/dist/committee/execution.d.ts +414 -0
- package/dist/committee/execution.js +446 -0
- package/dist/committee/extraction.js +33 -26
- package/dist/committee/index.d.ts +30 -7
- package/dist/committee/index.js +18 -6
- package/dist/committee/keeperExecution.d.ts +37 -0
- package/dist/committee/keeperExecution.js +141 -0
- package/dist/committee/oauth.d.ts +14 -4
- package/dist/committee/oauth.js +17 -5
- package/dist/committee/payment.d.ts +369 -0
- package/dist/committee/payment.js +339 -0
- package/dist/committee/recovery.d.ts +136 -0
- package/dist/committee/recovery.js +204 -0
- package/dist/committee/recoveryJson.d.ts +2 -0
- package/dist/committee/recoveryJson.js +87 -0
- package/dist/committee/request.d.ts +63 -27
- package/dist/committee/request.js +77 -66
- package/dist/committee/session-grant.d.ts +320 -0
- package/dist/committee/session-grant.js +397 -0
- package/dist/committee/status-refresh.d.ts +257 -0
- package/dist/committee/status-refresh.js +619 -0
- package/dist/committee/token.d.ts +163 -15
- package/dist/committee/token.js +247 -10
- package/dist/crypto/bn254.d.ts +70 -0
- package/dist/crypto/bn254.js +222 -0
- package/dist/crypto/ibe.d.ts +32 -0
- package/dist/crypto/ibe.js +56 -8
- package/dist/crypto/index.d.ts +1 -1
- package/dist/crypto/index.js +1 -1
- package/dist/crypto/kem.d.ts +31 -0
- package/dist/crypto/kem.js +113 -7
- package/dist/crypto/recipient.d.ts +75 -0
- package/dist/crypto/recipient.js +107 -0
- package/dist/decryption/client.d.ts +10 -16
- package/dist/decryption/client.js +8 -76
- package/dist/decryption/index.d.ts +2 -0
- package/dist/decryption/index.js +2 -0
- package/dist/decryption/sealed.d.ts +72 -0
- package/dist/decryption/sealed.js +147 -0
- package/dist/decryption/session.d.ts +115 -0
- package/dist/decryption/session.js +358 -0
- package/dist/errors.d.ts +406 -1
- package/dist/errors.js +400 -5
- package/dist/index.d.ts +9 -2
- package/dist/index.js +6 -1
- package/dist/internal/bounded.d.ts +66 -0
- package/dist/internal/bounded.js +126 -0
- package/dist/internal/network.d.ts +4 -0
- package/dist/internal/network.js +40 -0
- package/dist/internal/retryAfter.d.ts +8 -0
- package/dist/internal/retryAfter.js +28 -0
- package/dist/internal/sleep.d.ts +6 -0
- package/dist/internal/sleep.js +15 -0
- package/dist/internal/typedData.d.ts +13 -0
- package/dist/internal/typedData.js +77 -0
- package/dist/internal/viemErrors.d.ts +26 -0
- package/dist/internal/viemErrors.js +49 -0
- package/dist/oid4vp/binding.d.ts +27 -1
- package/dist/oid4vp/binding.js +36 -1
- package/dist/oid4vp/jose.d.ts +4 -2
- package/dist/oid4vp/jose.js +39 -7
- package/dist/oid4vp/request-object.d.ts +61 -4
- package/dist/oid4vp/request-object.js +140 -5
- package/dist/oid4vp/verifier-agent.d.ts +18 -8
- package/dist/oid4vp/verifier-agent.js +48 -6
- package/dist/oid4vp/wallet.d.ts +2 -4
- package/dist/oid4vp/wallet.js +1 -0
- package/dist/retry.d.ts +78 -0
- package/dist/retry.js +137 -0
- package/dist/signing/frost.d.ts +1 -1
- package/dist/verifier-agent/index.d.ts +41 -5
- package/dist/verifier-agent/index.js +124 -9
- package/dist/verifier-agent/payment.d.ts +7 -0
- package/dist/verifier-agent/payment.js +17 -0
- package/docs/api.md +8 -2
- package/docs/application-api.md +25 -2
- package/docs/chain.md +155 -9
- package/docs/consumer-migrations.md +61 -0
- package/docs/encrypted-notes.md +3 -2
- package/docs/encryption.md +4 -2
- package/docs/errors.md +14 -1
- package/docs/flows.md +2 -2
- package/docs/funding.md +902 -0
- package/docs/native-approvals.md +63 -0
- package/docs/reference/README.md +9 -8
- package/docs/reference/app-browser.md +232 -0
- package/docs/reference/app-node.md +38 -8
- package/docs/reference/app.md +4621 -805
- package/docs/reference/chain-node.md +74 -16
- package/docs/reference/chain.md +6740 -1592
- package/docs/reference/committee.md +5630 -987
- package/docs/reference/main.md +1439 -140
- package/docs/reference/oid4vp.md +297 -144
- package/docs/reference/verifier-agent.md +77 -35
- package/docs/signing.md +6 -0
- package/examples/encrypted-notes.ts +21 -6
- package/examples/getting-started.ts +2 -7
- package/examples/live-config.ts +24 -17
- package/package.json +17 -5
package/dist/chain/abis/index.js
CHANGED
|
@@ -19,6 +19,7 @@ import { livenessRegistryAbi } from './livenessRegistry.js';
|
|
|
19
19
|
import { verifierSetRegistryAbi } from './verifierSetRegistry.js';
|
|
20
20
|
import { accountantSetRegistryAbi } from './accountantSetRegistry.js';
|
|
21
21
|
import { keeperShareRegistryAbi } from './keeperShareRegistry.js';
|
|
22
|
+
import { prepaidFaultOracleAbi } from './prepaidFaultOracle.js';
|
|
22
23
|
export { nodeRegistryAbi } from './nodeRegistry.js';
|
|
23
24
|
export { keyRegistryAbi } from './keyRegistry.js';
|
|
24
25
|
export { serviceRegistryAbi } from './serviceRegistry.js';
|
|
@@ -39,6 +40,7 @@ export { livenessRegistryAbi } from './livenessRegistry.js';
|
|
|
39
40
|
export { verifierSetRegistryAbi } from './verifierSetRegistry.js';
|
|
40
41
|
export { accountantSetRegistryAbi } from './accountantSetRegistry.js';
|
|
41
42
|
export { keeperShareRegistryAbi } from './keeperShareRegistry.js';
|
|
43
|
+
export { prepaidFaultOracleAbi } from './prepaidFaultOracle.js';
|
|
42
44
|
/** Contract name to ABI. Keys match Foundry artifact names. */
|
|
43
45
|
export const CONTRACT_ABIS = {
|
|
44
46
|
NodeRegistry: nodeRegistryAbi,
|
|
@@ -61,4 +63,5 @@ export const CONTRACT_ABIS = {
|
|
|
61
63
|
VerifierSetRegistry: verifierSetRegistryAbi,
|
|
62
64
|
AccountantSetRegistry: accountantSetRegistryAbi,
|
|
63
65
|
KeeperShareRegistry: keeperShareRegistryAbi,
|
|
66
|
+
PrepaidFaultOracle: prepaidFaultOracleAbi,
|
|
64
67
|
};
|
|
@@ -237,6 +237,20 @@ export declare const keyRegistryAbi: readonly [{
|
|
|
237
237
|
readonly internalType: "uint64";
|
|
238
238
|
}];
|
|
239
239
|
readonly stateMutability: "nonpayable";
|
|
240
|
+
}, {
|
|
241
|
+
readonly type: "function";
|
|
242
|
+
readonly name: "commitKeySlotSeeded";
|
|
243
|
+
readonly inputs: readonly [{
|
|
244
|
+
readonly name: "commitment";
|
|
245
|
+
readonly type: "bytes32";
|
|
246
|
+
readonly internalType: "bytes32";
|
|
247
|
+
}];
|
|
248
|
+
readonly outputs: readonly [{
|
|
249
|
+
readonly name: "targetEpoch";
|
|
250
|
+
readonly type: "uint64";
|
|
251
|
+
readonly internalType: "uint64";
|
|
252
|
+
}];
|
|
253
|
+
readonly stateMutability: "nonpayable";
|
|
240
254
|
}, {
|
|
241
255
|
readonly type: "function";
|
|
242
256
|
readonly name: "commitSeedDigest";
|
|
@@ -2058,6 +2072,14 @@ export declare const keyRegistryAbi: readonly [{
|
|
|
2058
2072
|
readonly type: "error";
|
|
2059
2073
|
readonly name: "CommitMissing";
|
|
2060
2074
|
readonly inputs: readonly [];
|
|
2075
|
+
}, {
|
|
2076
|
+
readonly type: "error";
|
|
2077
|
+
readonly name: "WrongRevealPath";
|
|
2078
|
+
readonly inputs: readonly [{
|
|
2079
|
+
readonly name: "path";
|
|
2080
|
+
readonly type: "uint8";
|
|
2081
|
+
readonly internalType: "enum SlotCommits.RevealPath";
|
|
2082
|
+
}];
|
|
2061
2083
|
}, {
|
|
2062
2084
|
readonly type: "error";
|
|
2063
2085
|
readonly name: "CommitRevealRequired";
|
|
@@ -2198,6 +2220,18 @@ export declare const keyRegistryAbi: readonly [{
|
|
|
2198
2220
|
readonly type: "uint256";
|
|
2199
2221
|
readonly internalType: "uint256";
|
|
2200
2222
|
}];
|
|
2223
|
+
}, {
|
|
2224
|
+
readonly type: "error";
|
|
2225
|
+
readonly name: "InvalidGovernanceAuthMode";
|
|
2226
|
+
readonly inputs: readonly [{
|
|
2227
|
+
readonly name: "mode";
|
|
2228
|
+
readonly type: "uint8";
|
|
2229
|
+
readonly internalType: "enum KeyRegistry.Mode";
|
|
2230
|
+
}, {
|
|
2231
|
+
readonly name: "auth";
|
|
2232
|
+
readonly type: "uint8";
|
|
2233
|
+
readonly internalType: "enum KeyRegistry.AuthType";
|
|
2234
|
+
}];
|
|
2201
2235
|
}, {
|
|
2202
2236
|
readonly type: "error";
|
|
2203
2237
|
readonly name: "InvalidInitialization";
|
|
@@ -2418,4 +2452,226 @@ export declare const keyRegistryAbi: readonly [{
|
|
|
2418
2452
|
readonly type: "error";
|
|
2419
2453
|
readonly name: "ZeroRuleHash";
|
|
2420
2454
|
readonly inputs: readonly [];
|
|
2455
|
+
}, {
|
|
2456
|
+
readonly type: "function";
|
|
2457
|
+
readonly name: "acceptCreator";
|
|
2458
|
+
readonly inputs: readonly [{
|
|
2459
|
+
readonly name: "slotId";
|
|
2460
|
+
readonly type: "bytes32";
|
|
2461
|
+
readonly internalType: "bytes32";
|
|
2462
|
+
}];
|
|
2463
|
+
readonly outputs: readonly [];
|
|
2464
|
+
readonly stateMutability: "nonpayable";
|
|
2465
|
+
}, {
|
|
2466
|
+
readonly type: "function";
|
|
2467
|
+
readonly name: "acceptRuleAdmin";
|
|
2468
|
+
readonly inputs: readonly [{
|
|
2469
|
+
readonly name: "slotId";
|
|
2470
|
+
readonly type: "bytes32";
|
|
2471
|
+
readonly internalType: "bytes32";
|
|
2472
|
+
}];
|
|
2473
|
+
readonly outputs: readonly [];
|
|
2474
|
+
readonly stateMutability: "nonpayable";
|
|
2475
|
+
}, {
|
|
2476
|
+
readonly type: "function";
|
|
2477
|
+
readonly name: "pendingCreator";
|
|
2478
|
+
readonly inputs: readonly [{
|
|
2479
|
+
readonly name: "";
|
|
2480
|
+
readonly type: "bytes32";
|
|
2481
|
+
readonly internalType: "bytes32";
|
|
2482
|
+
}];
|
|
2483
|
+
readonly outputs: readonly [{
|
|
2484
|
+
readonly name: "";
|
|
2485
|
+
readonly type: "address";
|
|
2486
|
+
readonly internalType: "address";
|
|
2487
|
+
}];
|
|
2488
|
+
readonly stateMutability: "view";
|
|
2489
|
+
}, {
|
|
2490
|
+
readonly type: "function";
|
|
2491
|
+
readonly name: "pendingRuleAdmin";
|
|
2492
|
+
readonly inputs: readonly [{
|
|
2493
|
+
readonly name: "";
|
|
2494
|
+
readonly type: "bytes32";
|
|
2495
|
+
readonly internalType: "bytes32";
|
|
2496
|
+
}];
|
|
2497
|
+
readonly outputs: readonly [{
|
|
2498
|
+
readonly name: "";
|
|
2499
|
+
readonly type: "address";
|
|
2500
|
+
readonly internalType: "address";
|
|
2501
|
+
}];
|
|
2502
|
+
readonly stateMutability: "view";
|
|
2503
|
+
}, {
|
|
2504
|
+
readonly type: "function";
|
|
2505
|
+
readonly name: "proposeCreator";
|
|
2506
|
+
readonly inputs: readonly [{
|
|
2507
|
+
readonly name: "slotId";
|
|
2508
|
+
readonly type: "bytes32";
|
|
2509
|
+
readonly internalType: "bytes32";
|
|
2510
|
+
}, {
|
|
2511
|
+
readonly name: "to";
|
|
2512
|
+
readonly type: "address";
|
|
2513
|
+
readonly internalType: "address";
|
|
2514
|
+
}];
|
|
2515
|
+
readonly outputs: readonly [];
|
|
2516
|
+
readonly stateMutability: "nonpayable";
|
|
2517
|
+
}, {
|
|
2518
|
+
readonly type: "function";
|
|
2519
|
+
readonly name: "proposeRuleAdmin";
|
|
2520
|
+
readonly inputs: readonly [{
|
|
2521
|
+
readonly name: "slotId";
|
|
2522
|
+
readonly type: "bytes32";
|
|
2523
|
+
readonly internalType: "bytes32";
|
|
2524
|
+
}, {
|
|
2525
|
+
readonly name: "to";
|
|
2526
|
+
readonly type: "address";
|
|
2527
|
+
readonly internalType: "address";
|
|
2528
|
+
}];
|
|
2529
|
+
readonly outputs: readonly [];
|
|
2530
|
+
readonly stateMutability: "nonpayable";
|
|
2531
|
+
}, {
|
|
2532
|
+
readonly type: "event";
|
|
2533
|
+
readonly name: "RuleAdminTransferProposed";
|
|
2534
|
+
readonly inputs: readonly [{
|
|
2535
|
+
readonly name: "slotId";
|
|
2536
|
+
readonly type: "bytes32";
|
|
2537
|
+
readonly indexed: true;
|
|
2538
|
+
readonly internalType: "bytes32";
|
|
2539
|
+
}, {
|
|
2540
|
+
readonly name: "from";
|
|
2541
|
+
readonly type: "address";
|
|
2542
|
+
readonly indexed: true;
|
|
2543
|
+
readonly internalType: "address";
|
|
2544
|
+
}, {
|
|
2545
|
+
readonly name: "to";
|
|
2546
|
+
readonly type: "address";
|
|
2547
|
+
readonly indexed: true;
|
|
2548
|
+
readonly internalType: "address";
|
|
2549
|
+
}];
|
|
2550
|
+
readonly anonymous: false;
|
|
2551
|
+
}, {
|
|
2552
|
+
readonly type: "event";
|
|
2553
|
+
readonly name: "RuleAdminTransferred";
|
|
2554
|
+
readonly inputs: readonly [{
|
|
2555
|
+
readonly name: "slotId";
|
|
2556
|
+
readonly type: "bytes32";
|
|
2557
|
+
readonly indexed: true;
|
|
2558
|
+
readonly internalType: "bytes32";
|
|
2559
|
+
}, {
|
|
2560
|
+
readonly name: "previousAdmin";
|
|
2561
|
+
readonly type: "address";
|
|
2562
|
+
readonly indexed: true;
|
|
2563
|
+
readonly internalType: "address";
|
|
2564
|
+
}, {
|
|
2565
|
+
readonly name: "newAdmin";
|
|
2566
|
+
readonly type: "address";
|
|
2567
|
+
readonly indexed: true;
|
|
2568
|
+
readonly internalType: "address";
|
|
2569
|
+
}];
|
|
2570
|
+
readonly anonymous: false;
|
|
2571
|
+
}, {
|
|
2572
|
+
readonly type: "event";
|
|
2573
|
+
readonly name: "SlotCreatorTransferProposed";
|
|
2574
|
+
readonly inputs: readonly [{
|
|
2575
|
+
readonly name: "slotId";
|
|
2576
|
+
readonly type: "bytes32";
|
|
2577
|
+
readonly indexed: true;
|
|
2578
|
+
readonly internalType: "bytes32";
|
|
2579
|
+
}, {
|
|
2580
|
+
readonly name: "from";
|
|
2581
|
+
readonly type: "address";
|
|
2582
|
+
readonly indexed: true;
|
|
2583
|
+
readonly internalType: "address";
|
|
2584
|
+
}, {
|
|
2585
|
+
readonly name: "to";
|
|
2586
|
+
readonly type: "address";
|
|
2587
|
+
readonly indexed: true;
|
|
2588
|
+
readonly internalType: "address";
|
|
2589
|
+
}];
|
|
2590
|
+
readonly anonymous: false;
|
|
2591
|
+
}, {
|
|
2592
|
+
readonly type: "event";
|
|
2593
|
+
readonly name: "SlotCreatorTransferred";
|
|
2594
|
+
readonly inputs: readonly [{
|
|
2595
|
+
readonly name: "slotId";
|
|
2596
|
+
readonly type: "bytes32";
|
|
2597
|
+
readonly indexed: true;
|
|
2598
|
+
readonly internalType: "bytes32";
|
|
2599
|
+
}, {
|
|
2600
|
+
readonly name: "previousCreator";
|
|
2601
|
+
readonly type: "address";
|
|
2602
|
+
readonly indexed: true;
|
|
2603
|
+
readonly internalType: "address";
|
|
2604
|
+
}, {
|
|
2605
|
+
readonly name: "newCreator";
|
|
2606
|
+
readonly type: "address";
|
|
2607
|
+
readonly indexed: true;
|
|
2608
|
+
readonly internalType: "address";
|
|
2609
|
+
}];
|
|
2610
|
+
readonly anonymous: false;
|
|
2611
|
+
}, {
|
|
2612
|
+
readonly type: "error";
|
|
2613
|
+
readonly name: "InvalidHandoff";
|
|
2614
|
+
readonly inputs: readonly [];
|
|
2615
|
+
}, {
|
|
2616
|
+
readonly type: "error";
|
|
2617
|
+
readonly name: "NotPendingHolder";
|
|
2618
|
+
readonly inputs: readonly [];
|
|
2619
|
+
}, {
|
|
2620
|
+
readonly type: "function";
|
|
2621
|
+
readonly name: "lastRotatedAt";
|
|
2622
|
+
readonly inputs: readonly [{
|
|
2623
|
+
readonly name: "";
|
|
2624
|
+
readonly type: "bytes32";
|
|
2625
|
+
readonly internalType: "bytes32";
|
|
2626
|
+
}];
|
|
2627
|
+
readonly outputs: readonly [{
|
|
2628
|
+
readonly name: "";
|
|
2629
|
+
readonly type: "uint64";
|
|
2630
|
+
readonly internalType: "uint64";
|
|
2631
|
+
}];
|
|
2632
|
+
readonly stateMutability: "view";
|
|
2633
|
+
}, {
|
|
2634
|
+
readonly type: "function";
|
|
2635
|
+
readonly name: "lockKeyRotation";
|
|
2636
|
+
readonly inputs: readonly [{
|
|
2637
|
+
readonly name: "slotId";
|
|
2638
|
+
readonly type: "bytes32";
|
|
2639
|
+
readonly internalType: "bytes32";
|
|
2640
|
+
}];
|
|
2641
|
+
readonly outputs: readonly [];
|
|
2642
|
+
readonly stateMutability: "nonpayable";
|
|
2643
|
+
}, {
|
|
2644
|
+
readonly type: "event";
|
|
2645
|
+
readonly name: "KeyRotationLocked";
|
|
2646
|
+
readonly inputs: readonly [{
|
|
2647
|
+
readonly name: "slotId";
|
|
2648
|
+
readonly type: "bytes32";
|
|
2649
|
+
readonly indexed: true;
|
|
2650
|
+
readonly internalType: "bytes32";
|
|
2651
|
+
}];
|
|
2652
|
+
readonly anonymous: false;
|
|
2653
|
+
}, {
|
|
2654
|
+
readonly type: "error";
|
|
2655
|
+
readonly name: "RotationLocked";
|
|
2656
|
+
readonly inputs: readonly [];
|
|
2657
|
+
}, {
|
|
2658
|
+
readonly type: "error";
|
|
2659
|
+
readonly name: "RotationTooSoon";
|
|
2660
|
+
readonly inputs: readonly [{
|
|
2661
|
+
readonly name: "earliest";
|
|
2662
|
+
readonly type: "uint64";
|
|
2663
|
+
readonly internalType: "uint64";
|
|
2664
|
+
}];
|
|
2665
|
+
}, {
|
|
2666
|
+
readonly type: "error";
|
|
2667
|
+
readonly name: "TecdsaReshareKeepsTooFew";
|
|
2668
|
+
readonly inputs: readonly [{
|
|
2669
|
+
readonly name: "staying";
|
|
2670
|
+
readonly type: "uint16";
|
|
2671
|
+
readonly internalType: "uint16";
|
|
2672
|
+
}, {
|
|
2673
|
+
readonly name: "k";
|
|
2674
|
+
readonly type: "uint16";
|
|
2675
|
+
readonly internalType: "uint16";
|
|
2676
|
+
}];
|
|
2421
2677
|
}];
|
|
@@ -311,6 +311,25 @@ export const keyRegistryAbi = [
|
|
|
311
311
|
],
|
|
312
312
|
"stateMutability": "nonpayable"
|
|
313
313
|
},
|
|
314
|
+
{
|
|
315
|
+
"type": "function",
|
|
316
|
+
"name": "commitKeySlotSeeded",
|
|
317
|
+
"inputs": [
|
|
318
|
+
{
|
|
319
|
+
"name": "commitment",
|
|
320
|
+
"type": "bytes32",
|
|
321
|
+
"internalType": "bytes32"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"outputs": [
|
|
325
|
+
{
|
|
326
|
+
"name": "targetEpoch",
|
|
327
|
+
"type": "uint64",
|
|
328
|
+
"internalType": "uint64"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"stateMutability": "nonpayable"
|
|
332
|
+
},
|
|
314
333
|
{
|
|
315
334
|
"type": "function",
|
|
316
335
|
"name": "commitSeedDigest",
|
|
@@ -2638,6 +2657,17 @@ export const keyRegistryAbi = [
|
|
|
2638
2657
|
"name": "CommitMissing",
|
|
2639
2658
|
"inputs": []
|
|
2640
2659
|
},
|
|
2660
|
+
{
|
|
2661
|
+
"type": "error",
|
|
2662
|
+
"name": "WrongRevealPath",
|
|
2663
|
+
"inputs": [
|
|
2664
|
+
{
|
|
2665
|
+
"name": "path",
|
|
2666
|
+
"type": "uint8",
|
|
2667
|
+
"internalType": "enum SlotCommits.RevealPath"
|
|
2668
|
+
}
|
|
2669
|
+
]
|
|
2670
|
+
},
|
|
2641
2671
|
{
|
|
2642
2672
|
"type": "error",
|
|
2643
2673
|
"name": "CommitRevealRequired",
|
|
@@ -2824,6 +2854,22 @@ export const keyRegistryAbi = [
|
|
|
2824
2854
|
}
|
|
2825
2855
|
]
|
|
2826
2856
|
},
|
|
2857
|
+
{
|
|
2858
|
+
"type": "error",
|
|
2859
|
+
"name": "InvalidGovernanceAuthMode",
|
|
2860
|
+
"inputs": [
|
|
2861
|
+
{
|
|
2862
|
+
"name": "mode",
|
|
2863
|
+
"type": "uint8",
|
|
2864
|
+
"internalType": "enum KeyRegistry.Mode"
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
"name": "auth",
|
|
2868
|
+
"type": "uint8",
|
|
2869
|
+
"internalType": "enum KeyRegistry.AuthType"
|
|
2870
|
+
}
|
|
2871
|
+
]
|
|
2872
|
+
},
|
|
2827
2873
|
{
|
|
2828
2874
|
"type": "error",
|
|
2829
2875
|
"name": "InvalidInitialization",
|
|
@@ -3110,5 +3156,292 @@ export const keyRegistryAbi = [
|
|
|
3110
3156
|
"type": "error",
|
|
3111
3157
|
"name": "ZeroRuleHash",
|
|
3112
3158
|
"inputs": []
|
|
3159
|
+
},
|
|
3160
|
+
{
|
|
3161
|
+
"type": "function",
|
|
3162
|
+
"name": "acceptCreator",
|
|
3163
|
+
"inputs": [
|
|
3164
|
+
{
|
|
3165
|
+
"name": "slotId",
|
|
3166
|
+
"type": "bytes32",
|
|
3167
|
+
"internalType": "bytes32"
|
|
3168
|
+
}
|
|
3169
|
+
],
|
|
3170
|
+
"outputs": [],
|
|
3171
|
+
"stateMutability": "nonpayable"
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
"type": "function",
|
|
3175
|
+
"name": "acceptRuleAdmin",
|
|
3176
|
+
"inputs": [
|
|
3177
|
+
{
|
|
3178
|
+
"name": "slotId",
|
|
3179
|
+
"type": "bytes32",
|
|
3180
|
+
"internalType": "bytes32"
|
|
3181
|
+
}
|
|
3182
|
+
],
|
|
3183
|
+
"outputs": [],
|
|
3184
|
+
"stateMutability": "nonpayable"
|
|
3185
|
+
},
|
|
3186
|
+
{
|
|
3187
|
+
"type": "function",
|
|
3188
|
+
"name": "pendingCreator",
|
|
3189
|
+
"inputs": [
|
|
3190
|
+
{
|
|
3191
|
+
"name": "",
|
|
3192
|
+
"type": "bytes32",
|
|
3193
|
+
"internalType": "bytes32"
|
|
3194
|
+
}
|
|
3195
|
+
],
|
|
3196
|
+
"outputs": [
|
|
3197
|
+
{
|
|
3198
|
+
"name": "",
|
|
3199
|
+
"type": "address",
|
|
3200
|
+
"internalType": "address"
|
|
3201
|
+
}
|
|
3202
|
+
],
|
|
3203
|
+
"stateMutability": "view"
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"type": "function",
|
|
3207
|
+
"name": "pendingRuleAdmin",
|
|
3208
|
+
"inputs": [
|
|
3209
|
+
{
|
|
3210
|
+
"name": "",
|
|
3211
|
+
"type": "bytes32",
|
|
3212
|
+
"internalType": "bytes32"
|
|
3213
|
+
}
|
|
3214
|
+
],
|
|
3215
|
+
"outputs": [
|
|
3216
|
+
{
|
|
3217
|
+
"name": "",
|
|
3218
|
+
"type": "address",
|
|
3219
|
+
"internalType": "address"
|
|
3220
|
+
}
|
|
3221
|
+
],
|
|
3222
|
+
"stateMutability": "view"
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
"type": "function",
|
|
3226
|
+
"name": "proposeCreator",
|
|
3227
|
+
"inputs": [
|
|
3228
|
+
{
|
|
3229
|
+
"name": "slotId",
|
|
3230
|
+
"type": "bytes32",
|
|
3231
|
+
"internalType": "bytes32"
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
"name": "to",
|
|
3235
|
+
"type": "address",
|
|
3236
|
+
"internalType": "address"
|
|
3237
|
+
}
|
|
3238
|
+
],
|
|
3239
|
+
"outputs": [],
|
|
3240
|
+
"stateMutability": "nonpayable"
|
|
3241
|
+
},
|
|
3242
|
+
{
|
|
3243
|
+
"type": "function",
|
|
3244
|
+
"name": "proposeRuleAdmin",
|
|
3245
|
+
"inputs": [
|
|
3246
|
+
{
|
|
3247
|
+
"name": "slotId",
|
|
3248
|
+
"type": "bytes32",
|
|
3249
|
+
"internalType": "bytes32"
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
"name": "to",
|
|
3253
|
+
"type": "address",
|
|
3254
|
+
"internalType": "address"
|
|
3255
|
+
}
|
|
3256
|
+
],
|
|
3257
|
+
"outputs": [],
|
|
3258
|
+
"stateMutability": "nonpayable"
|
|
3259
|
+
},
|
|
3260
|
+
{
|
|
3261
|
+
"type": "event",
|
|
3262
|
+
"name": "RuleAdminTransferProposed",
|
|
3263
|
+
"inputs": [
|
|
3264
|
+
{
|
|
3265
|
+
"name": "slotId",
|
|
3266
|
+
"type": "bytes32",
|
|
3267
|
+
"indexed": true,
|
|
3268
|
+
"internalType": "bytes32"
|
|
3269
|
+
},
|
|
3270
|
+
{
|
|
3271
|
+
"name": "from",
|
|
3272
|
+
"type": "address",
|
|
3273
|
+
"indexed": true,
|
|
3274
|
+
"internalType": "address"
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"name": "to",
|
|
3278
|
+
"type": "address",
|
|
3279
|
+
"indexed": true,
|
|
3280
|
+
"internalType": "address"
|
|
3281
|
+
}
|
|
3282
|
+
],
|
|
3283
|
+
"anonymous": false
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
"type": "event",
|
|
3287
|
+
"name": "RuleAdminTransferred",
|
|
3288
|
+
"inputs": [
|
|
3289
|
+
{
|
|
3290
|
+
"name": "slotId",
|
|
3291
|
+
"type": "bytes32",
|
|
3292
|
+
"indexed": true,
|
|
3293
|
+
"internalType": "bytes32"
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
"name": "previousAdmin",
|
|
3297
|
+
"type": "address",
|
|
3298
|
+
"indexed": true,
|
|
3299
|
+
"internalType": "address"
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
"name": "newAdmin",
|
|
3303
|
+
"type": "address",
|
|
3304
|
+
"indexed": true,
|
|
3305
|
+
"internalType": "address"
|
|
3306
|
+
}
|
|
3307
|
+
],
|
|
3308
|
+
"anonymous": false
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
"type": "event",
|
|
3312
|
+
"name": "SlotCreatorTransferProposed",
|
|
3313
|
+
"inputs": [
|
|
3314
|
+
{
|
|
3315
|
+
"name": "slotId",
|
|
3316
|
+
"type": "bytes32",
|
|
3317
|
+
"indexed": true,
|
|
3318
|
+
"internalType": "bytes32"
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
"name": "from",
|
|
3322
|
+
"type": "address",
|
|
3323
|
+
"indexed": true,
|
|
3324
|
+
"internalType": "address"
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
"name": "to",
|
|
3328
|
+
"type": "address",
|
|
3329
|
+
"indexed": true,
|
|
3330
|
+
"internalType": "address"
|
|
3331
|
+
}
|
|
3332
|
+
],
|
|
3333
|
+
"anonymous": false
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"type": "event",
|
|
3337
|
+
"name": "SlotCreatorTransferred",
|
|
3338
|
+
"inputs": [
|
|
3339
|
+
{
|
|
3340
|
+
"name": "slotId",
|
|
3341
|
+
"type": "bytes32",
|
|
3342
|
+
"indexed": true,
|
|
3343
|
+
"internalType": "bytes32"
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
"name": "previousCreator",
|
|
3347
|
+
"type": "address",
|
|
3348
|
+
"indexed": true,
|
|
3349
|
+
"internalType": "address"
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
"name": "newCreator",
|
|
3353
|
+
"type": "address",
|
|
3354
|
+
"indexed": true,
|
|
3355
|
+
"internalType": "address"
|
|
3356
|
+
}
|
|
3357
|
+
],
|
|
3358
|
+
"anonymous": false
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"type": "error",
|
|
3362
|
+
"name": "InvalidHandoff",
|
|
3363
|
+
"inputs": []
|
|
3364
|
+
},
|
|
3365
|
+
{
|
|
3366
|
+
"type": "error",
|
|
3367
|
+
"name": "NotPendingHolder",
|
|
3368
|
+
"inputs": []
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
"type": "function",
|
|
3372
|
+
"name": "lastRotatedAt",
|
|
3373
|
+
"inputs": [
|
|
3374
|
+
{
|
|
3375
|
+
"name": "",
|
|
3376
|
+
"type": "bytes32",
|
|
3377
|
+
"internalType": "bytes32"
|
|
3378
|
+
}
|
|
3379
|
+
],
|
|
3380
|
+
"outputs": [
|
|
3381
|
+
{
|
|
3382
|
+
"name": "",
|
|
3383
|
+
"type": "uint64",
|
|
3384
|
+
"internalType": "uint64"
|
|
3385
|
+
}
|
|
3386
|
+
],
|
|
3387
|
+
"stateMutability": "view"
|
|
3388
|
+
},
|
|
3389
|
+
{
|
|
3390
|
+
"type": "function",
|
|
3391
|
+
"name": "lockKeyRotation",
|
|
3392
|
+
"inputs": [
|
|
3393
|
+
{
|
|
3394
|
+
"name": "slotId",
|
|
3395
|
+
"type": "bytes32",
|
|
3396
|
+
"internalType": "bytes32"
|
|
3397
|
+
}
|
|
3398
|
+
],
|
|
3399
|
+
"outputs": [],
|
|
3400
|
+
"stateMutability": "nonpayable"
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
"type": "event",
|
|
3404
|
+
"name": "KeyRotationLocked",
|
|
3405
|
+
"inputs": [
|
|
3406
|
+
{
|
|
3407
|
+
"name": "slotId",
|
|
3408
|
+
"type": "bytes32",
|
|
3409
|
+
"indexed": true,
|
|
3410
|
+
"internalType": "bytes32"
|
|
3411
|
+
}
|
|
3412
|
+
],
|
|
3413
|
+
"anonymous": false
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
"type": "error",
|
|
3417
|
+
"name": "RotationLocked",
|
|
3418
|
+
"inputs": []
|
|
3419
|
+
},
|
|
3420
|
+
{
|
|
3421
|
+
"type": "error",
|
|
3422
|
+
"name": "RotationTooSoon",
|
|
3423
|
+
"inputs": [
|
|
3424
|
+
{
|
|
3425
|
+
"name": "earliest",
|
|
3426
|
+
"type": "uint64",
|
|
3427
|
+
"internalType": "uint64"
|
|
3428
|
+
}
|
|
3429
|
+
]
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
"type": "error",
|
|
3433
|
+
"name": "TecdsaReshareKeepsTooFew",
|
|
3434
|
+
"inputs": [
|
|
3435
|
+
{
|
|
3436
|
+
"name": "staying",
|
|
3437
|
+
"type": "uint16",
|
|
3438
|
+
"internalType": "uint16"
|
|
3439
|
+
},
|
|
3440
|
+
{
|
|
3441
|
+
"name": "k",
|
|
3442
|
+
"type": "uint16",
|
|
3443
|
+
"internalType": "uint16"
|
|
3444
|
+
}
|
|
3445
|
+
]
|
|
3113
3446
|
}
|
|
3114
3447
|
];
|