@t3foundry/tasra-sdk 0.0.0-stage → 0.3.1-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +148 -0
- package/LICENSE +202 -0
- package/NOTICE +94 -0
- package/README.md +137 -2
- package/SECURITY.md +115 -0
- package/dist/app/approvals.d.ts +50 -0
- package/dist/app/approvals.js +90 -0
- package/dist/app/authorization.d.ts +19 -0
- package/dist/app/authorization.js +20 -0
- package/dist/app/client.d.ts +231 -0
- package/dist/app/client.js +272 -0
- package/dist/app/creation.d.ts +73 -0
- package/dist/app/creation.js +77 -0
- package/dist/app/deployment.d.ts +36 -0
- package/dist/app/deployment.js +18 -0
- package/dist/app/identity.d.ts +211 -0
- package/dist/app/identity.js +287 -0
- package/dist/app/index.d.ts +22 -0
- package/dist/app/index.js +12 -0
- package/dist/app/manifest.d.ts +74 -0
- package/dist/app/manifest.js +120 -0
- package/dist/app/node.d.ts +30 -0
- package/dist/app/node.js +159 -0
- package/dist/app/ready-slot.d.ts +157 -0
- package/dist/app/ready-slot.js +199 -0
- package/dist/app/tasra-client.d.ts +125 -0
- package/dist/app/tasra-client.js +79 -0
- package/dist/app/viem.d.ts +10 -0
- package/dist/app/viem.js +32 -0
- package/dist/app/wallet.d.ts +126 -0
- package/dist/app/wallet.js +137 -0
- package/dist/auth/dpop.d.ts +86 -0
- package/dist/auth/dpop.js +142 -0
- package/dist/auth/holderProof.d.ts +102 -0
- package/dist/auth/holderProof.js +161 -0
- package/dist/auth/identityScope.d.ts +19 -0
- package/dist/auth/identityScope.js +82 -0
- package/dist/auth/index.d.ts +11 -0
- package/dist/auth/index.js +13 -0
- package/dist/auth/oid4vp.d.ts +230 -0
- package/dist/auth/oid4vp.js +780 -0
- package/dist/auth/rego/wasm/PINS.json +11 -0
- package/dist/auth/rego/wasm/keykeeper_rego_wasm.d.ts +76 -0
- package/dist/auth/rego/wasm/keykeeper_rego_wasm.js +379 -0
- package/dist/auth/rego/wasm/keykeeper_rego_wasm_bg.wasm +0 -0
- package/dist/auth/rego.d.ts +192 -0
- package/dist/auth/rego.js +492 -0
- package/dist/auth/verifier.d.ts +166 -0
- package/dist/auth/verifier.js +211 -0
- package/dist/chain/abis/accountantSetRegistry.d.ts +441 -0
- package/dist/chain/abis/accountantSetRegistry.js +574 -0
- package/dist/chain/abis/accountantSlashing.d.ts +2071 -0
- package/dist/chain/abis/accountantSlashing.js +2670 -0
- package/dist/chain/abis/bondingCurve.d.ts +398 -0
- package/dist/chain/abis/bondingCurve.js +521 -0
- package/dist/chain/abis/equivocationSlasher.d.ts +292 -0
- package/dist/chain/abis/equivocationSlasher.js +379 -0
- package/dist/chain/abis/fixedTasraPriceOracle.d.ts +52 -0
- package/dist/chain/abis/fixedTasraPriceOracle.js +72 -0
- package/dist/chain/abis/index.d.ts +12801 -0
- package/dist/chain/abis/index.js +64 -0
- package/dist/chain/abis/keeperShareRegistry.d.ts +519 -0
- package/dist/chain/abis/keeperShareRegistry.js +675 -0
- package/dist/chain/abis/keyRegistry.d.ts +2421 -0
- package/dist/chain/abis/keyRegistry.js +3114 -0
- package/dist/chain/abis/livenessRegistry.d.ts +402 -0
- package/dist/chain/abis/livenessRegistry.js +524 -0
- package/dist/chain/abis/mockEurc.d.ts +210 -0
- package/dist/chain/abis/mockEurc.js +276 -0
- package/dist/chain/abis/nodeRegistry.d.ts +1630 -0
- package/dist/chain/abis/nodeRegistry.js +2113 -0
- package/dist/chain/abis/platformExecutor.d.ts +328 -0
- package/dist/chain/abis/platformExecutor.js +429 -0
- package/dist/chain/abis/prevrandaoSaltBeacon.d.ts +16 -0
- package/dist/chain/abis/prevrandaoSaltBeacon.js +24 -0
- package/dist/chain/abis/serviceRegistry.d.ts +556 -0
- package/dist/chain/abis/serviceRegistry.js +719 -0
- package/dist/chain/abis/settlement.d.ts +1624 -0
- package/dist/chain/abis/settlement.js +2096 -0
- package/dist/chain/abis/tasraSwapRouter.d.ts +92 -0
- package/dist/chain/abis/tasraSwapRouter.js +122 -0
- package/dist/chain/abis/tasraToken.d.ts +455 -0
- package/dist/chain/abis/tasraToken.js +599 -0
- package/dist/chain/abis/tasraVestingVault.d.ts +165 -0
- package/dist/chain/abis/tasraVestingVault.js +215 -0
- package/dist/chain/abis/thresholdRandomBeacon.d.ts +378 -0
- package/dist/chain/abis/thresholdRandomBeacon.js +494 -0
- package/dist/chain/abis/treasury.d.ts +301 -0
- package/dist/chain/abis/treasury.js +390 -0
- package/dist/chain/abis/verifierSetRegistry.d.ts +445 -0
- package/dist/chain/abis/verifierSetRegistry.js +579 -0
- package/dist/chain/client.d.ts +212 -0
- package/dist/chain/client.js +576 -0
- package/dist/chain/commitmentRecovery.d.ts +21 -0
- package/dist/chain/commitmentRecovery.js +44 -0
- package/dist/chain/committeeClient.d.ts +102 -0
- package/dist/chain/committeeClient.js +137 -0
- package/dist/chain/deployments.d.ts +56 -0
- package/dist/chain/deployments.js +269 -0
- package/dist/chain/discovery.d.ts +49 -0
- package/dist/chain/discovery.js +107 -0
- package/dist/chain/events.d.ts +58 -0
- package/dist/chain/events.js +125 -0
- package/dist/chain/format.d.ts +25 -0
- package/dist/chain/format.js +51 -0
- package/dist/chain/index.d.ts +41 -0
- package/dist/chain/index.js +56 -0
- package/dist/chain/manifest.d.ts +165 -0
- package/dist/chain/manifest.js +132 -0
- package/dist/chain/network-profiles.json +75 -0
- package/dist/chain/networks.d.ts +73 -0
- package/dist/chain/networks.js +62 -0
- package/dist/chain/node.d.ts +44 -0
- package/dist/chain/node.js +176 -0
- package/dist/chain/offchain.d.ts +149 -0
- package/dist/chain/offchain.js +73 -0
- package/dist/chain/provisionRule.d.ts +164 -0
- package/dist/chain/provisionRule.js +212 -0
- package/dist/chain/registeredAgent.d.ts +64 -0
- package/dist/chain/registeredAgent.js +140 -0
- package/dist/chain/registeredOperation.d.ts +49 -0
- package/dist/chain/registeredOperation.js +136 -0
- package/dist/chain/registeredRelay.d.ts +206 -0
- package/dist/chain/registeredRelay.js +312 -0
- package/dist/chain/revertReason.d.ts +14 -0
- package/dist/chain/revertReason.js +62 -0
- package/dist/chain/ruleAmendment.d.ts +80 -0
- package/dist/chain/ruleAmendment.js +195 -0
- package/dist/chain/ruleAmendmentCore.d.ts +129 -0
- package/dist/chain/ruleAmendmentCore.js +152 -0
- package/dist/chain/ruleInput.d.ts +10 -0
- package/dist/chain/ruleInput.js +13 -0
- package/dist/chain/serviceIdentity.d.ts +176 -0
- package/dist/chain/serviceIdentity.js +237 -0
- package/dist/chain/serviceProfiles.d.ts +39 -0
- package/dist/chain/serviceProfiles.js +74 -0
- package/dist/chain/services.d.ts +141 -0
- package/dist/chain/services.js +79 -0
- package/dist/chain/slotClient.d.ts +55 -0
- package/dist/chain/slotClient.js +62 -0
- package/dist/chain/slotSeed.d.ts +31 -0
- package/dist/chain/slotSeed.js +98 -0
- package/dist/chain/write.d.ts +431 -0
- package/dist/chain/write.js +958 -0
- package/dist/client/client.d.ts +112 -0
- package/dist/client/client.js +111 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/client/session.d.ts +67 -0
- package/dist/client/session.js +238 -0
- package/dist/committee/client.d.ts +284 -0
- package/dist/committee/client.js +351 -0
- package/dist/committee/dual-sign.d.ts +110 -0
- package/dist/committee/dual-sign.js +202 -0
- package/dist/committee/ecdsa.d.ts +36 -0
- package/dist/committee/ecdsa.js +45 -0
- package/dist/committee/extraction.d.ts +82 -0
- package/dist/committee/extraction.js +96 -0
- package/dist/committee/index.d.ts +19 -0
- package/dist/committee/index.js +13 -0
- package/dist/committee/oauth.d.ts +51 -0
- package/dist/committee/oauth.js +90 -0
- package/dist/committee/receipts.d.ts +51 -0
- package/dist/committee/receipts.js +59 -0
- package/dist/committee/request.d.ts +264 -0
- package/dist/committee/request.js +305 -0
- package/dist/committee/token.d.ts +274 -0
- package/dist/committee/token.js +418 -0
- package/dist/crypto/constants.d.ts +10 -0
- package/dist/crypto/constants.js +32 -0
- package/dist/crypto/detect.d.ts +20 -0
- package/dist/crypto/detect.js +44 -0
- package/dist/crypto/envelope.d.ts +60 -0
- package/dist/crypto/envelope.js +243 -0
- package/dist/crypto/frost.d.ts +49 -0
- package/dist/crypto/frost.js +152 -0
- package/dist/crypto/hex.d.ts +7 -0
- package/dist/crypto/hex.js +24 -0
- package/dist/crypto/ibe-blob.d.ts +114 -0
- package/dist/crypto/ibe-blob.js +208 -0
- package/dist/crypto/ibe.d.ts +88 -0
- package/dist/crypto/ibe.js +262 -0
- package/dist/crypto/index.d.ts +12 -0
- package/dist/crypto/index.js +12 -0
- package/dist/crypto/kem.d.ts +55 -0
- package/dist/crypto/kem.js +241 -0
- package/dist/decryption/client.d.ts +64 -0
- package/dist/decryption/client.js +82 -0
- package/dist/decryption/index.d.ts +2 -0
- package/dist/decryption/index.js +2 -0
- package/dist/errors.d.ts +124 -0
- package/dist/errors.js +167 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +98 -0
- package/dist/keys/index.d.ts +1 -0
- package/dist/keys/index.js +4 -0
- package/dist/keys/node-client.d.ts +27 -0
- package/dist/keys/node-client.js +97 -0
- package/dist/oid4vp/binding.d.ts +76 -0
- package/dist/oid4vp/binding.js +118 -0
- package/dist/oid4vp/did-web.d.ts +49 -0
- package/dist/oid4vp/did-web.js +57 -0
- package/dist/oid4vp/index.d.ts +9 -0
- package/dist/oid4vp/index.js +10 -0
- package/dist/oid4vp/jose.d.ts +166 -0
- package/dist/oid4vp/jose.js +242 -0
- package/dist/oid4vp/jwe.d.ts +30 -0
- package/dist/oid4vp/jwe.js +93 -0
- package/dist/oid4vp/oid4vci.d.ts +84 -0
- package/dist/oid4vp/oid4vci.js +85 -0
- package/dist/oid4vp/request-object.d.ts +109 -0
- package/dist/oid4vp/request-object.js +96 -0
- package/dist/oid4vp/sd-jwt.d.ts +177 -0
- package/dist/oid4vp/sd-jwt.js +208 -0
- package/dist/oid4vp/verifier-agent.d.ts +161 -0
- package/dist/oid4vp/verifier-agent.js +132 -0
- package/dist/oid4vp/wallet.d.ts +116 -0
- package/dist/oid4vp/wallet.js +108 -0
- package/dist/recipient/store.d.ts +67 -0
- package/dist/recipient/store.js +98 -0
- package/dist/signing/ecdsa.d.ts +49 -0
- package/dist/signing/ecdsa.js +79 -0
- package/dist/signing/frost.d.ts +88 -0
- package/dist/signing/frost.js +145 -0
- package/dist/signing/index.d.ts +4 -0
- package/dist/signing/index.js +3 -0
- package/dist/slots/faucet.d.ts +23 -0
- package/dist/slots/faucet.js +35 -0
- package/dist/slots/index.d.ts +2 -0
- package/dist/slots/index.js +4 -0
- package/dist/verifier-agent/index.d.ts +241 -0
- package/dist/verifier-agent/index.js +411 -0
- package/docs/DEVELOPER-EXPERIENCE.md +62 -0
- package/docs/README.md +33 -0
- package/docs/access-control.md +76 -0
- package/docs/ai-development.md +292 -0
- package/docs/api.md +338 -0
- package/docs/application-api.md +335 -0
- package/docs/architecture.md +65 -0
- package/docs/basics.md +48 -0
- package/docs/capabilities.md +86 -0
- package/docs/chain.md +153 -0
- package/docs/compatibility.md +36 -0
- package/docs/consumer-migrations.md +80 -0
- package/docs/create-slot.md +104 -0
- package/docs/document-signing.md +243 -0
- package/docs/encrypted-notes.md +129 -0
- package/docs/encryption.md +100 -0
- package/docs/errors.md +76 -0
- package/docs/flows.md +289 -0
- package/docs/fuji.md +127 -0
- package/docs/funding.md +126 -0
- package/docs/getting-started.md +94 -0
- package/docs/glossary.md +44 -0
- package/docs/installation.md +132 -0
- package/docs/manage-slot.md +95 -0
- package/docs/native-approvals.md +124 -0
- package/docs/prerequisites.md +137 -0
- package/docs/read-slot.md +41 -0
- package/docs/reference/README.md +30 -0
- package/docs/reference/app-node.md +102 -0
- package/docs/reference/app.md +1737 -0
- package/docs/reference/chain-node.md +159 -0
- package/docs/reference/chain.md +3609 -0
- package/docs/reference/committee.md +2176 -0
- package/docs/reference/main.md +4068 -0
- package/docs/reference/oid4vp.md +2547 -0
- package/docs/reference/verifier-agent.md +498 -0
- package/docs/shared-account.md +168 -0
- package/docs/signing-and-encryption.md +52 -0
- package/docs/signing.md +172 -0
- package/examples/committee-slot.ts +16 -0
- package/examples/connect-fuji.ts +41 -0
- package/examples/connect-network.ts +14 -0
- package/examples/credential-approvals.ts +46 -0
- package/examples/document-signing/README.md +59 -0
- package/examples/document-signing/backend.ts +132 -0
- package/examples/document-signing/build.mjs +19 -0
- package/examples/document-signing/config.ts +34 -0
- package/examples/document-signing/gitignore.template +9 -0
- package/examples/document-signing/model.ts +140 -0
- package/examples/document-signing/network.ts +58 -0
- package/examples/document-signing/package.json +25 -0
- package/examples/document-signing/public/index.html +27 -0
- package/examples/document-signing/public/sample.pdf +31 -0
- package/examples/document-signing/public/styles.css +531 -0
- package/examples/document-signing/server.ts +358 -0
- package/examples/document-signing/setup.ts +111 -0
- package/examples/document-signing/store.ts +105 -0
- package/examples/document-signing/tsconfig.json +24 -0
- package/examples/document-signing/verify.ts +24 -0
- package/examples/document-signing/web/app.ts +312 -0
- package/examples/document-signing/web/preview.ts +67 -0
- package/examples/document-signing/web/wallet.ts +146 -0
- package/examples/document-signing/workflow.test.ts +228 -0
- package/examples/document-signing/workflow.ts +241 -0
- package/examples/document-signing.ts +96 -0
- package/examples/encrypted-notes.ts +86 -0
- package/examples/ethers-signer.ts +204 -0
- package/examples/fund-slot.ts +73 -0
- package/examples/getting-started.ts +25 -0
- package/examples/learning-authorize.ts +23 -0
- package/examples/learning-cancel-slot.ts +11 -0
- package/examples/learning-context.ts +28 -0
- package/examples/learning-create-slot.ts +25 -0
- package/examples/learning-read-slot.ts +8 -0
- package/examples/learning-renew-slot.ts +12 -0
- package/examples/learning-sign.ts +8 -0
- package/examples/live-config.ts +71 -0
- package/examples/minimal.ts +6 -0
- package/examples/native-approvals.ts +57 -0
- package/examples/network.ts +58 -0
- package/examples/offline.ts +16 -0
- package/examples/personal-vault.ts +20 -0
- package/examples/provision-slot.ts +47 -0
- package/examples/shared-account.ts +46 -0
- package/examples/slot-address.ts +13 -0
- package/examples/slot-creation.ts +9 -0
- package/examples/tutorial-negative.ts +26 -0
- package/examples/tutorial-support.ts +76 -0
- package/examples/viem-account.ts +203 -0
- package/package.json +303 -4
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
/** EquivocationSlasher contract interface for submitting conflicting-signature evidence. */
|
|
2
|
+
export declare const equivocationSlasherAbi: readonly [{
|
|
3
|
+
readonly type: "constructor";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "registry";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
readonly internalType: "contract NodeRegistry";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "owner_";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "nonpayable";
|
|
14
|
+
}, {
|
|
15
|
+
readonly type: "function";
|
|
16
|
+
readonly name: "acceptOwnership";
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly outputs: readonly [];
|
|
19
|
+
readonly stateMutability: "nonpayable";
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
readonly name: "nodeRegistry";
|
|
23
|
+
readonly inputs: readonly [];
|
|
24
|
+
readonly outputs: readonly [{
|
|
25
|
+
readonly name: "";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "contract NodeRegistry";
|
|
28
|
+
}];
|
|
29
|
+
readonly stateMutability: "view";
|
|
30
|
+
}, {
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
readonly name: "owner";
|
|
33
|
+
readonly inputs: readonly [];
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "address";
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "view";
|
|
40
|
+
}, {
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
readonly name: "pendingOwner";
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly name: "";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
readonly internalType: "address";
|
|
48
|
+
}];
|
|
49
|
+
readonly stateMutability: "view";
|
|
50
|
+
}, {
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
readonly name: "punished";
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly name: "";
|
|
55
|
+
readonly type: "bytes32";
|
|
56
|
+
readonly internalType: "bytes32";
|
|
57
|
+
}];
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "bool";
|
|
61
|
+
readonly internalType: "bool";
|
|
62
|
+
}];
|
|
63
|
+
readonly stateMutability: "view";
|
|
64
|
+
}, {
|
|
65
|
+
readonly type: "function";
|
|
66
|
+
readonly name: "renounceOwnership";
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly outputs: readonly [];
|
|
69
|
+
readonly stateMutability: "nonpayable";
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
readonly name: "setSlashBps";
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "bps";
|
|
75
|
+
readonly type: "uint16";
|
|
76
|
+
readonly internalType: "uint16";
|
|
77
|
+
}];
|
|
78
|
+
readonly outputs: readonly [];
|
|
79
|
+
readonly stateMutability: "nonpayable";
|
|
80
|
+
}, {
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
readonly name: "slashBps";
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly name: "";
|
|
86
|
+
readonly type: "uint16";
|
|
87
|
+
readonly internalType: "uint16";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "view";
|
|
90
|
+
}, {
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
readonly name: "slashEquivocation";
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly name: "operator";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "a";
|
|
99
|
+
readonly type: "tuple";
|
|
100
|
+
readonly internalType: "struct EquivocationSlasher.Statement";
|
|
101
|
+
readonly components: readonly [{
|
|
102
|
+
readonly name: "domain";
|
|
103
|
+
readonly type: "bytes32";
|
|
104
|
+
readonly internalType: "bytes32";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "key";
|
|
107
|
+
readonly type: "bytes32";
|
|
108
|
+
readonly internalType: "bytes32";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "payloadHash";
|
|
111
|
+
readonly type: "bytes32";
|
|
112
|
+
readonly internalType: "bytes32";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "signature";
|
|
115
|
+
readonly type: "bytes";
|
|
116
|
+
readonly internalType: "bytes";
|
|
117
|
+
}];
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "b";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly internalType: "struct EquivocationSlasher.Statement";
|
|
122
|
+
readonly components: readonly [{
|
|
123
|
+
readonly name: "domain";
|
|
124
|
+
readonly type: "bytes32";
|
|
125
|
+
readonly internalType: "bytes32";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "key";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
readonly internalType: "bytes32";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "payloadHash";
|
|
132
|
+
readonly type: "bytes32";
|
|
133
|
+
readonly internalType: "bytes32";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "signature";
|
|
136
|
+
readonly type: "bytes";
|
|
137
|
+
readonly internalType: "bytes";
|
|
138
|
+
}];
|
|
139
|
+
}];
|
|
140
|
+
readonly outputs: readonly [];
|
|
141
|
+
readonly stateMutability: "nonpayable";
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
readonly name: "statementDigest";
|
|
145
|
+
readonly inputs: readonly [{
|
|
146
|
+
readonly name: "domain";
|
|
147
|
+
readonly type: "bytes32";
|
|
148
|
+
readonly internalType: "bytes32";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "key";
|
|
151
|
+
readonly type: "bytes32";
|
|
152
|
+
readonly internalType: "bytes32";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "payloadHash";
|
|
155
|
+
readonly type: "bytes32";
|
|
156
|
+
readonly internalType: "bytes32";
|
|
157
|
+
}];
|
|
158
|
+
readonly outputs: readonly [{
|
|
159
|
+
readonly name: "";
|
|
160
|
+
readonly type: "bytes32";
|
|
161
|
+
readonly internalType: "bytes32";
|
|
162
|
+
}];
|
|
163
|
+
readonly stateMutability: "view";
|
|
164
|
+
}, {
|
|
165
|
+
readonly type: "function";
|
|
166
|
+
readonly name: "transferOwnership";
|
|
167
|
+
readonly inputs: readonly [{
|
|
168
|
+
readonly name: "newOwner";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
}];
|
|
172
|
+
readonly outputs: readonly [];
|
|
173
|
+
readonly stateMutability: "nonpayable";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "event";
|
|
176
|
+
readonly name: "EquivocationSlashed";
|
|
177
|
+
readonly inputs: readonly [{
|
|
178
|
+
readonly name: "operator";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
readonly indexed: true;
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "domain";
|
|
184
|
+
readonly type: "bytes32";
|
|
185
|
+
readonly indexed: true;
|
|
186
|
+
readonly internalType: "bytes32";
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "key";
|
|
189
|
+
readonly type: "bytes32";
|
|
190
|
+
readonly indexed: false;
|
|
191
|
+
readonly internalType: "bytes32";
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "bps";
|
|
194
|
+
readonly type: "uint16";
|
|
195
|
+
readonly indexed: false;
|
|
196
|
+
readonly internalType: "uint16";
|
|
197
|
+
}];
|
|
198
|
+
readonly anonymous: false;
|
|
199
|
+
}, {
|
|
200
|
+
readonly type: "event";
|
|
201
|
+
readonly name: "OwnershipTransferStarted";
|
|
202
|
+
readonly inputs: readonly [{
|
|
203
|
+
readonly name: "previousOwner";
|
|
204
|
+
readonly type: "address";
|
|
205
|
+
readonly indexed: true;
|
|
206
|
+
readonly internalType: "address";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "newOwner";
|
|
209
|
+
readonly type: "address";
|
|
210
|
+
readonly indexed: true;
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
}];
|
|
213
|
+
readonly anonymous: false;
|
|
214
|
+
}, {
|
|
215
|
+
readonly type: "event";
|
|
216
|
+
readonly name: "OwnershipTransferred";
|
|
217
|
+
readonly inputs: readonly [{
|
|
218
|
+
readonly name: "previousOwner";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
readonly indexed: true;
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "newOwner";
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
readonly indexed: true;
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
}];
|
|
228
|
+
readonly anonymous: false;
|
|
229
|
+
}, {
|
|
230
|
+
readonly type: "event";
|
|
231
|
+
readonly name: "SlashBpsChanged";
|
|
232
|
+
readonly inputs: readonly [{
|
|
233
|
+
readonly name: "previous";
|
|
234
|
+
readonly type: "uint16";
|
|
235
|
+
readonly indexed: false;
|
|
236
|
+
readonly internalType: "uint16";
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "next";
|
|
239
|
+
readonly type: "uint16";
|
|
240
|
+
readonly indexed: false;
|
|
241
|
+
readonly internalType: "uint16";
|
|
242
|
+
}];
|
|
243
|
+
readonly anonymous: false;
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "error";
|
|
246
|
+
readonly name: "AlreadyPunished";
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "error";
|
|
250
|
+
readonly name: "ContextMismatch";
|
|
251
|
+
readonly inputs: readonly [];
|
|
252
|
+
}, {
|
|
253
|
+
readonly type: "error";
|
|
254
|
+
readonly name: "InvalidBps";
|
|
255
|
+
readonly inputs: readonly [{
|
|
256
|
+
readonly name: "bps";
|
|
257
|
+
readonly type: "uint16";
|
|
258
|
+
readonly internalType: "uint16";
|
|
259
|
+
}];
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "error";
|
|
262
|
+
readonly name: "NotConflicting";
|
|
263
|
+
readonly inputs: readonly [];
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "error";
|
|
266
|
+
readonly name: "OwnableInvalidOwner";
|
|
267
|
+
readonly inputs: readonly [{
|
|
268
|
+
readonly name: "owner";
|
|
269
|
+
readonly type: "address";
|
|
270
|
+
readonly internalType: "address";
|
|
271
|
+
}];
|
|
272
|
+
}, {
|
|
273
|
+
readonly type: "error";
|
|
274
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
275
|
+
readonly inputs: readonly [{
|
|
276
|
+
readonly name: "account";
|
|
277
|
+
readonly type: "address";
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
}];
|
|
280
|
+
}, {
|
|
281
|
+
readonly type: "error";
|
|
282
|
+
readonly name: "OwnershipRenounceDisabled";
|
|
283
|
+
readonly inputs: readonly [];
|
|
284
|
+
}, {
|
|
285
|
+
readonly type: "error";
|
|
286
|
+
readonly name: "SignerMismatch";
|
|
287
|
+
readonly inputs: readonly [];
|
|
288
|
+
}, {
|
|
289
|
+
readonly type: "error";
|
|
290
|
+
readonly name: "ZeroAddress";
|
|
291
|
+
readonly inputs: readonly [];
|
|
292
|
+
}];
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
// Contract ABI data is refreshed from the contract build artifacts.
|
|
2
|
+
// Source: contracts/out/EquivocationSlasher.sol/EquivocationSlasher.json (`abi` field).
|
|
3
|
+
/** EquivocationSlasher contract interface for submitting conflicting-signature evidence. */
|
|
4
|
+
export const equivocationSlasherAbi = [
|
|
5
|
+
{
|
|
6
|
+
"type": "constructor",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "registry",
|
|
10
|
+
"type": "address",
|
|
11
|
+
"internalType": "contract NodeRegistry"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "owner_",
|
|
15
|
+
"type": "address",
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "nonpayable"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "function",
|
|
23
|
+
"name": "acceptOwnership",
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"outputs": [],
|
|
26
|
+
"stateMutability": "nonpayable"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "function",
|
|
30
|
+
"name": "nodeRegistry",
|
|
31
|
+
"inputs": [],
|
|
32
|
+
"outputs": [
|
|
33
|
+
{
|
|
34
|
+
"name": "",
|
|
35
|
+
"type": "address",
|
|
36
|
+
"internalType": "contract NodeRegistry"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"stateMutability": "view"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "function",
|
|
43
|
+
"name": "owner",
|
|
44
|
+
"inputs": [],
|
|
45
|
+
"outputs": [
|
|
46
|
+
{
|
|
47
|
+
"name": "",
|
|
48
|
+
"type": "address",
|
|
49
|
+
"internalType": "address"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"stateMutability": "view"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "function",
|
|
56
|
+
"name": "pendingOwner",
|
|
57
|
+
"inputs": [],
|
|
58
|
+
"outputs": [
|
|
59
|
+
{
|
|
60
|
+
"name": "",
|
|
61
|
+
"type": "address",
|
|
62
|
+
"internalType": "address"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"stateMutability": "view"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "function",
|
|
69
|
+
"name": "punished",
|
|
70
|
+
"inputs": [
|
|
71
|
+
{
|
|
72
|
+
"name": "",
|
|
73
|
+
"type": "bytes32",
|
|
74
|
+
"internalType": "bytes32"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"outputs": [
|
|
78
|
+
{
|
|
79
|
+
"name": "",
|
|
80
|
+
"type": "bool",
|
|
81
|
+
"internalType": "bool"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"stateMutability": "view"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "function",
|
|
88
|
+
"name": "renounceOwnership",
|
|
89
|
+
"inputs": [],
|
|
90
|
+
"outputs": [],
|
|
91
|
+
"stateMutability": "nonpayable"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "function",
|
|
95
|
+
"name": "setSlashBps",
|
|
96
|
+
"inputs": [
|
|
97
|
+
{
|
|
98
|
+
"name": "bps",
|
|
99
|
+
"type": "uint16",
|
|
100
|
+
"internalType": "uint16"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"outputs": [],
|
|
104
|
+
"stateMutability": "nonpayable"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "function",
|
|
108
|
+
"name": "slashBps",
|
|
109
|
+
"inputs": [],
|
|
110
|
+
"outputs": [
|
|
111
|
+
{
|
|
112
|
+
"name": "",
|
|
113
|
+
"type": "uint16",
|
|
114
|
+
"internalType": "uint16"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"stateMutability": "view"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "function",
|
|
121
|
+
"name": "slashEquivocation",
|
|
122
|
+
"inputs": [
|
|
123
|
+
{
|
|
124
|
+
"name": "operator",
|
|
125
|
+
"type": "address",
|
|
126
|
+
"internalType": "address"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "a",
|
|
130
|
+
"type": "tuple",
|
|
131
|
+
"internalType": "struct EquivocationSlasher.Statement",
|
|
132
|
+
"components": [
|
|
133
|
+
{
|
|
134
|
+
"name": "domain",
|
|
135
|
+
"type": "bytes32",
|
|
136
|
+
"internalType": "bytes32"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "key",
|
|
140
|
+
"type": "bytes32",
|
|
141
|
+
"internalType": "bytes32"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "payloadHash",
|
|
145
|
+
"type": "bytes32",
|
|
146
|
+
"internalType": "bytes32"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "signature",
|
|
150
|
+
"type": "bytes",
|
|
151
|
+
"internalType": "bytes"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "b",
|
|
157
|
+
"type": "tuple",
|
|
158
|
+
"internalType": "struct EquivocationSlasher.Statement",
|
|
159
|
+
"components": [
|
|
160
|
+
{
|
|
161
|
+
"name": "domain",
|
|
162
|
+
"type": "bytes32",
|
|
163
|
+
"internalType": "bytes32"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "key",
|
|
167
|
+
"type": "bytes32",
|
|
168
|
+
"internalType": "bytes32"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "payloadHash",
|
|
172
|
+
"type": "bytes32",
|
|
173
|
+
"internalType": "bytes32"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "signature",
|
|
177
|
+
"type": "bytes",
|
|
178
|
+
"internalType": "bytes"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"outputs": [],
|
|
184
|
+
"stateMutability": "nonpayable"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "function",
|
|
188
|
+
"name": "statementDigest",
|
|
189
|
+
"inputs": [
|
|
190
|
+
{
|
|
191
|
+
"name": "domain",
|
|
192
|
+
"type": "bytes32",
|
|
193
|
+
"internalType": "bytes32"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "key",
|
|
197
|
+
"type": "bytes32",
|
|
198
|
+
"internalType": "bytes32"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "payloadHash",
|
|
202
|
+
"type": "bytes32",
|
|
203
|
+
"internalType": "bytes32"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"outputs": [
|
|
207
|
+
{
|
|
208
|
+
"name": "",
|
|
209
|
+
"type": "bytes32",
|
|
210
|
+
"internalType": "bytes32"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"stateMutability": "view"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "function",
|
|
217
|
+
"name": "transferOwnership",
|
|
218
|
+
"inputs": [
|
|
219
|
+
{
|
|
220
|
+
"name": "newOwner",
|
|
221
|
+
"type": "address",
|
|
222
|
+
"internalType": "address"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"outputs": [],
|
|
226
|
+
"stateMutability": "nonpayable"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"type": "event",
|
|
230
|
+
"name": "EquivocationSlashed",
|
|
231
|
+
"inputs": [
|
|
232
|
+
{
|
|
233
|
+
"name": "operator",
|
|
234
|
+
"type": "address",
|
|
235
|
+
"indexed": true,
|
|
236
|
+
"internalType": "address"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "domain",
|
|
240
|
+
"type": "bytes32",
|
|
241
|
+
"indexed": true,
|
|
242
|
+
"internalType": "bytes32"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "key",
|
|
246
|
+
"type": "bytes32",
|
|
247
|
+
"indexed": false,
|
|
248
|
+
"internalType": "bytes32"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "bps",
|
|
252
|
+
"type": "uint16",
|
|
253
|
+
"indexed": false,
|
|
254
|
+
"internalType": "uint16"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"anonymous": false
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "event",
|
|
261
|
+
"name": "OwnershipTransferStarted",
|
|
262
|
+
"inputs": [
|
|
263
|
+
{
|
|
264
|
+
"name": "previousOwner",
|
|
265
|
+
"type": "address",
|
|
266
|
+
"indexed": true,
|
|
267
|
+
"internalType": "address"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "newOwner",
|
|
271
|
+
"type": "address",
|
|
272
|
+
"indexed": true,
|
|
273
|
+
"internalType": "address"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"anonymous": false
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "event",
|
|
280
|
+
"name": "OwnershipTransferred",
|
|
281
|
+
"inputs": [
|
|
282
|
+
{
|
|
283
|
+
"name": "previousOwner",
|
|
284
|
+
"type": "address",
|
|
285
|
+
"indexed": true,
|
|
286
|
+
"internalType": "address"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "newOwner",
|
|
290
|
+
"type": "address",
|
|
291
|
+
"indexed": true,
|
|
292
|
+
"internalType": "address"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"anonymous": false
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "event",
|
|
299
|
+
"name": "SlashBpsChanged",
|
|
300
|
+
"inputs": [
|
|
301
|
+
{
|
|
302
|
+
"name": "previous",
|
|
303
|
+
"type": "uint16",
|
|
304
|
+
"indexed": false,
|
|
305
|
+
"internalType": "uint16"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "next",
|
|
309
|
+
"type": "uint16",
|
|
310
|
+
"indexed": false,
|
|
311
|
+
"internalType": "uint16"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"anonymous": false
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"type": "error",
|
|
318
|
+
"name": "AlreadyPunished",
|
|
319
|
+
"inputs": []
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"type": "error",
|
|
323
|
+
"name": "ContextMismatch",
|
|
324
|
+
"inputs": []
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "error",
|
|
328
|
+
"name": "InvalidBps",
|
|
329
|
+
"inputs": [
|
|
330
|
+
{
|
|
331
|
+
"name": "bps",
|
|
332
|
+
"type": "uint16",
|
|
333
|
+
"internalType": "uint16"
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"type": "error",
|
|
339
|
+
"name": "NotConflicting",
|
|
340
|
+
"inputs": []
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "error",
|
|
344
|
+
"name": "OwnableInvalidOwner",
|
|
345
|
+
"inputs": [
|
|
346
|
+
{
|
|
347
|
+
"name": "owner",
|
|
348
|
+
"type": "address",
|
|
349
|
+
"internalType": "address"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"type": "error",
|
|
355
|
+
"name": "OwnableUnauthorizedAccount",
|
|
356
|
+
"inputs": [
|
|
357
|
+
{
|
|
358
|
+
"name": "account",
|
|
359
|
+
"type": "address",
|
|
360
|
+
"internalType": "address"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"type": "error",
|
|
366
|
+
"name": "OwnershipRenounceDisabled",
|
|
367
|
+
"inputs": []
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"type": "error",
|
|
371
|
+
"name": "SignerMismatch",
|
|
372
|
+
"inputs": []
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"type": "error",
|
|
376
|
+
"name": "ZeroAddress",
|
|
377
|
+
"inputs": []
|
|
378
|
+
}
|
|
379
|
+
];
|