@libid/contracts 0.6.0 → 0.7.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/README.md +65 -26
- package/dist/abis/{googleIdentityVerifier.d.ts → ceremonyProofVerifier.d.ts} +146 -128
- package/dist/abis/{googleIdentityVerifier.d.ts.map → ceremonyProofVerifier.d.ts.map} +1 -1
- package/dist/abis/{googleIdentityVerifier.js → ceremonyProofVerifier.js} +182 -156
- package/dist/abis/ceremonyProofVerifier.js.map +1 -0
- package/dist/abis/{identityJwksRoots.d.ts → googleJwtRoots.d.ts} +273 -211
- package/dist/abis/{xZkVerifier.d.ts.map → googleJwtRoots.d.ts.map} +1 -1
- package/dist/abis/{identityJwksRoots.js → googleJwtRoots.js} +345 -253
- package/dist/abis/googleJwtRoots.js.map +1 -0
- package/dist/abis/{walletFactory.d.ts → handleResolver.d.ts} +185 -151
- package/dist/abis/handleResolver.d.ts.map +1 -0
- package/dist/abis/{walletFactory.js → handleResolver.js} +219 -170
- package/dist/abis/handleResolver.js.map +1 -0
- package/dist/abis/identityNames.d.ts +173 -219
- package/dist/abis/identityNames.d.ts.map +1 -1
- package/dist/abis/identityNames.js +210 -266
- package/dist/abis/identityNames.js.map +1 -1
- package/dist/abis/index.d.ts +4 -16
- package/dist/abis/index.d.ts.map +1 -1
- package/dist/abis/index.js +4 -16
- package/dist/abis/index.js.map +1 -1
- package/dist/abis/{xZkVerifier.d.ts → notaryService.d.ts} +237 -273
- package/dist/abis/{webWallet.d.ts.map → notaryService.d.ts.map} +1 -1
- package/dist/abis/{xZkVerifier.js → notaryService.js} +297 -337
- package/dist/abis/notaryService.js.map +1 -0
- package/dist/call.d.ts +7 -0
- package/dist/call.d.ts.map +1 -0
- package/dist/call.js +2 -0
- package/dist/call.js.map +1 -0
- package/dist/calls/ceremonyProofVerifier.d.ts +14 -0
- package/dist/calls/ceremonyProofVerifier.d.ts.map +1 -0
- package/dist/calls/ceremonyProofVerifier.js +55 -0
- package/dist/calls/ceremonyProofVerifier.js.map +1 -0
- package/dist/calls/googleJwtRoots.d.ts +14 -0
- package/dist/calls/googleJwtRoots.d.ts.map +1 -0
- package/dist/calls/googleJwtRoots.js +43 -0
- package/dist/calls/googleJwtRoots.js.map +1 -0
- package/dist/calls/handleResolver.d.ts +12 -0
- package/dist/calls/handleResolver.d.ts.map +1 -0
- package/dist/calls/handleResolver.js +29 -0
- package/dist/calls/handleResolver.js.map +1 -0
- package/dist/calls/identityNames.d.ts +16 -0
- package/dist/calls/identityNames.d.ts.map +1 -0
- package/dist/calls/identityNames.js +55 -0
- package/dist/calls/identityNames.js.map +1 -0
- package/dist/calls/index.d.ts +8 -0
- package/dist/calls/index.d.ts.map +1 -0
- package/dist/calls/index.js +10 -0
- package/dist/calls/index.js.map +1 -0
- package/dist/calls/libidFactory.d.ts +13 -0
- package/dist/calls/libidFactory.d.ts.map +1 -0
- package/dist/calls/libidFactory.js +36 -0
- package/dist/calls/libidFactory.js.map +1 -0
- package/dist/calls/notaryService.d.ts +16 -0
- package/dist/calls/notaryService.d.ts.map +1 -0
- package/dist/calls/notaryService.js +55 -0
- package/dist/calls/notaryService.js.map +1 -0
- package/dist/calls/wtia9.d.ts +13 -0
- package/dist/calls/wtia9.d.ts.map +1 -0
- package/dist/calls/wtia9.js +36 -0
- package/dist/calls/wtia9.js.map +1 -0
- package/dist/identity/handleVectors.d.ts +3 -3
- package/dist/identity/handleVectors.d.ts.map +1 -1
- package/dist/identity/handleVectors.js +3 -3
- package/dist/identity/handleVectors.js.map +1 -1
- package/dist/identity/index.d.ts +0 -1
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +7 -6
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/resolve.js +4 -4
- package/dist/identity/resolve.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +8 -7
- package/src/abis/{googleIdentityVerifier.ts → ceremonyProofVerifier.ts} +181 -155
- package/src/abis/{identityJwksRoots.ts → googleJwtRoots.ts} +344 -252
- package/src/abis/{walletFactory.ts → handleResolver.ts} +218 -169
- package/src/abis/identityNames.ts +210 -266
- package/src/abis/index.ts +4 -16
- package/src/abis/{xZkVerifier.ts → notaryService.ts} +296 -336
- package/src/call.ts +15 -0
- package/src/calls/ceremonyProofVerifier.ts +90 -0
- package/src/calls/googleJwtRoots.ts +74 -0
- package/src/calls/handleResolver.ts +51 -0
- package/src/calls/identityNames.ts +88 -0
- package/src/calls/index.ts +9 -0
- package/src/calls/libidFactory.ts +63 -0
- package/src/calls/notaryService.ts +85 -0
- package/src/calls/wtia9.ts +52 -0
- package/src/identity/handleVectors.ts +3 -3
- package/src/identity/index.ts +7 -6
- package/src/identity/resolve.ts +4 -4
- package/src/index.ts +6 -3
- package/dist/abis/adminFacet.d.ts +0 -339
- package/dist/abis/adminFacet.d.ts.map +0 -1
- package/dist/abis/adminFacet.js +0 -442
- package/dist/abis/adminFacet.js.map +0 -1
- package/dist/abis/bank.d.ts +0 -916
- package/dist/abis/bank.d.ts.map +0 -1
- package/dist/abis/bank.js +0 -1184
- package/dist/abis/bank.js.map +0 -1
- package/dist/abis/diamondLoupeFacet.d.ts +0 -73
- package/dist/abis/diamondLoupeFacet.d.ts.map +0 -1
- package/dist/abis/diamondLoupeFacet.js +0 -100
- package/dist/abis/diamondLoupeFacet.js.map +0 -1
- package/dist/abis/gitHubIdentityVerifier.d.ts +0 -409
- package/dist/abis/gitHubIdentityVerifier.d.ts.map +0 -1
- package/dist/abis/gitHubIdentityVerifier.js +0 -531
- package/dist/abis/gitHubIdentityVerifier.js.map +0 -1
- package/dist/abis/googleIdentityVerifier.js.map +0 -1
- package/dist/abis/googleOidcVerifier.d.ts +0 -838
- package/dist/abis/googleOidcVerifier.d.ts.map +0 -1
- package/dist/abis/googleOidcVerifier.js +0 -1082
- package/dist/abis/googleOidcVerifier.js.map +0 -1
- package/dist/abis/identityJwksRoots.d.ts.map +0 -1
- package/dist/abis/identityJwksRoots.js.map +0 -1
- package/dist/abis/mockErc20.d.ts +0 -262
- package/dist/abis/mockErc20.d.ts.map +0 -1
- package/dist/abis/mockErc20.js +0 -347
- package/dist/abis/mockErc20.js.map +0 -1
- package/dist/abis/notary.d.ts +0 -263
- package/dist/abis/notary.d.ts.map +0 -1
- package/dist/abis/notary.js +0 -343
- package/dist/abis/notary.js.map +0 -1
- package/dist/abis/registry.d.ts +0 -1170
- package/dist/abis/registry.d.ts.map +0 -1
- package/dist/abis/registry.js +0 -1511
- package/dist/abis/registry.js.map +0 -1
- package/dist/abis/transferFacet.d.ts +0 -814
- package/dist/abis/transferFacet.d.ts.map +0 -1
- package/dist/abis/transferFacet.js +0 -1035
- package/dist/abis/transferFacet.js.map +0 -1
- package/dist/abis/vaultFacet.d.ts +0 -306
- package/dist/abis/vaultFacet.d.ts.map +0 -1
- package/dist/abis/vaultFacet.js +0 -398
- package/dist/abis/vaultFacet.js.map +0 -1
- package/dist/abis/walletFactory.d.ts.map +0 -1
- package/dist/abis/walletFactory.js.map +0 -1
- package/dist/abis/webWallet.d.ts +0 -523
- package/dist/abis/webWallet.js +0 -680
- package/dist/abis/webWallet.js.map +0 -1
- package/dist/abis/xIdentityVerifier.d.ts +0 -473
- package/dist/abis/xIdentityVerifier.d.ts.map +0 -1
- package/dist/abis/xIdentityVerifier.js +0 -612
- package/dist/abis/xIdentityVerifier.js.map +0 -1
- package/dist/abis/xZkVerifier.js.map +0 -1
- package/dist/identity/bind.d.ts +0 -59
- package/dist/identity/bind.d.ts.map +0 -1
- package/dist/identity/bind.fixtures.d.ts +0 -8
- package/dist/identity/bind.fixtures.d.ts.map +0 -1
- package/dist/identity/bind.fixtures.js +0 -55
- package/dist/identity/bind.fixtures.js.map +0 -1
- package/dist/identity/bind.js +0 -148
- package/dist/identity/bind.js.map +0 -1
- package/src/abis/adminFacet.ts +0 -444
- package/src/abis/bank.ts +0 -1186
- package/src/abis/diamondLoupeFacet.ts +0 -102
- package/src/abis/gitHubIdentityVerifier.ts +0 -533
- package/src/abis/googleOidcVerifier.ts +0 -1084
- package/src/abis/mockErc20.ts +0 -349
- package/src/abis/notary.ts +0 -345
- package/src/abis/registry.ts +0 -1513
- package/src/abis/transferFacet.ts +0 -1037
- package/src/abis/vaultFacet.ts +0 -400
- package/src/abis/webWallet.ts +0 -682
- package/src/abis/xIdentityVerifier.ts +0 -614
- package/src/identity/bind.fixtures.ts +0 -63
- package/src/identity/bind.ts +0 -243
package/README.md
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
# @libid/contracts
|
|
2
2
|
|
|
3
|
-
Typed, viem-ready ABIs for
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
`
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
Typed, viem-ready ABIs for the libid identity stack (NotaryService,
|
|
4
|
+
CeremonyProofVerifier, GoogleJwtRoots, IdentityNames, LibidFactory, WTIA9), a
|
|
5
|
+
call builder for every state-changing function, and the identity helper layer:
|
|
6
|
+
handle normalization and name resolution.
|
|
7
|
+
|
|
8
|
+
Both `src/abis/` and `src/calls/` are generated from the forge artifacts
|
|
9
|
+
(`solidity/out`) by `scripts/codegen.mjs`, and neither is committed — CI
|
|
10
|
+
regenerates them before every build, test and publish. Each ABI is exported
|
|
11
|
+
`as const satisfies Abi`, so viem infers argument and return types from it, and
|
|
12
|
+
each call builder reads its arguments off that ABI, so adding a write function
|
|
13
|
+
to a contract produces its wrapper instead of requiring someone to remember to
|
|
14
|
+
write one. The handle vector table in `src/identity/handleVectors.ts` is
|
|
15
|
+
generated from `solidity/contracts/identity/handles.json` by
|
|
11
16
|
`scripts/regen-identity-handles.py`.
|
|
12
17
|
|
|
13
18
|
```sh
|
|
@@ -18,25 +23,52 @@ pnpm add @libid/contracts viem
|
|
|
18
23
|
|
|
19
24
|
```ts
|
|
20
25
|
import { createPublicClient, http } from 'viem'
|
|
21
|
-
import {
|
|
26
|
+
import { googleJwtRootsAbi, identityNamesAbi } from '@libid/contracts/abis'
|
|
22
27
|
|
|
23
28
|
const client = createPublicClient({ transport: http(RPC_URL) })
|
|
24
29
|
|
|
25
30
|
// Fully typed: viem infers the argument and return types from the ABI.
|
|
26
|
-
const
|
|
27
|
-
address:
|
|
28
|
-
abi:
|
|
29
|
-
functionName: '
|
|
30
|
-
args: [
|
|
31
|
+
const owner = await client.readContract({
|
|
32
|
+
address: IDENTITY_NAMES,
|
|
33
|
+
abi: identityNamesAbi,
|
|
34
|
+
functionName: 'resolveHandle',
|
|
35
|
+
args: [platformId, 'alice'],
|
|
31
36
|
})
|
|
32
37
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
// The two generations of Google's key set the list holds.
|
|
39
|
+
const [current, previous] = await client.readContract({
|
|
40
|
+
address: GOOGLE_JWT_ROOTS,
|
|
41
|
+
abi: googleJwtRootsAbi,
|
|
42
|
+
functionName: 'currentKeys',
|
|
37
43
|
})
|
|
38
44
|
```
|
|
39
45
|
|
|
46
|
+
## Building a call
|
|
47
|
+
|
|
48
|
+
One builder per state-changing function, namespaced by contract because names
|
|
49
|
+
like `initialize` are on almost all of them. A builder returns the call as
|
|
50
|
+
data — no provider, no signer — so you decide how it is submitted: directly,
|
|
51
|
+
batched, or through a smart account's `execute`.
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import { calls } from '@libid/contracts/calls'
|
|
55
|
+
|
|
56
|
+
const call = calls.identityNames.unpublish(names, platformId)
|
|
57
|
+
// { to: `0x…`, data: `0x…` }
|
|
58
|
+
|
|
59
|
+
await wallet.sendTransaction(call)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Arguments are typed from the ABI, so a wrong type or a missing argument fails
|
|
63
|
+
to compile rather than reverting on chain. Payable functions take `value`
|
|
64
|
+
before their arguments and set it on the returned call:
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
// A JWKS rotation pays the Notary Fee: read it with `quoteRotation` first.
|
|
68
|
+
const rotate = calls.googleJwtRoots.rotate(roots, fee, attestedData, proof)
|
|
69
|
+
// { to: `0x…`, value: fee, data: `0x…` }
|
|
70
|
+
```
|
|
71
|
+
|
|
40
72
|
## Resolving a name
|
|
41
73
|
|
|
42
74
|
```ts
|
|
@@ -62,17 +94,24 @@ const { wallet, idAgrees } = await resolvePair(reader, x, 'alice', '42')
|
|
|
62
94
|
const name = await primaryName(reader, wallet!, x)
|
|
63
95
|
```
|
|
64
96
|
|
|
65
|
-
##
|
|
97
|
+
## Claiming a name
|
|
66
98
|
|
|
67
|
-
|
|
68
|
-
|
|
99
|
+
A claim is one of the generated builders: the platform, this chain's verifier
|
|
100
|
+
version for it, the opaque payload the ceremony produced, and whether to
|
|
101
|
+
publish the name. The value is what `quoteClaim` returns for the same pair.
|
|
102
|
+
An EOA sends it directly, a smart account wraps it in its own execute:
|
|
69
103
|
|
|
70
104
|
```ts
|
|
71
|
-
import {
|
|
105
|
+
import { calls } from '@libid/contracts/calls'
|
|
72
106
|
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
107
|
+
const fee = await client.readContract({
|
|
108
|
+
address: IDENTITY_NAMES,
|
|
109
|
+
abi: identityNamesAbi,
|
|
110
|
+
functionName: 'quoteClaim',
|
|
111
|
+
args: [platformId(PLATFORM_GITHUB_DOMAIN), 1],
|
|
112
|
+
})
|
|
113
|
+
const call = calls.identityNames.claim(IDENTITY_NAMES, fee, platformId(PLATFORM_GITHUB_DOMAIN), 1, payload, true)
|
|
114
|
+
// call = { to, value, data } — sign and send from the address the payload names.
|
|
76
115
|
```
|
|
77
116
|
|
|
78
117
|
## Normalizing a handle locally
|
|
@@ -89,7 +128,7 @@ normalize(' @Alice_1 ', RULES_X) // 'alice_1'
|
|
|
89
128
|
```sh
|
|
90
129
|
cd solidity && forge build # codegen reads the artifacts
|
|
91
130
|
pnpm -C ts install
|
|
92
|
-
pnpm -C ts codegen #
|
|
131
|
+
pnpm -C ts codegen # generate src/abis/ + src/calls/ (gitignored; required first)
|
|
93
132
|
pnpm -C ts build # tsc → dist/ (ESM + .d.ts)
|
|
94
133
|
pnpm -C ts test # vitest
|
|
95
134
|
pnpm -C ts lint && pnpm -C ts fmt:check
|
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const ceremonyProofVerifierAbi: readonly [{
|
|
2
2
|
readonly type: "constructor";
|
|
3
3
|
readonly inputs: readonly [];
|
|
4
4
|
readonly stateMutability: "nonpayable";
|
|
5
|
-
}, {
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly name: "CLOCK_SKEW_GRACE";
|
|
8
|
-
readonly inputs: readonly [];
|
|
9
|
-
readonly outputs: readonly [{
|
|
10
|
-
readonly name: "";
|
|
11
|
-
readonly type: "uint256";
|
|
12
|
-
readonly internalType: "uint256";
|
|
13
|
-
}];
|
|
14
|
-
readonly stateMutability: "view";
|
|
15
|
-
}, {
|
|
16
|
-
readonly type: "function";
|
|
17
|
-
readonly name: "TOTAL_PUBLIC_INPUTS";
|
|
18
|
-
readonly inputs: readonly [];
|
|
19
|
-
readonly outputs: readonly [{
|
|
20
|
-
readonly name: "";
|
|
21
|
-
readonly type: "uint256";
|
|
22
|
-
readonly internalType: "uint256";
|
|
23
|
-
}];
|
|
24
|
-
readonly stateMutability: "view";
|
|
25
5
|
}, {
|
|
26
6
|
readonly type: "function";
|
|
27
7
|
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
@@ -40,12 +20,12 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
40
20
|
readonly stateMutability: "nonpayable";
|
|
41
21
|
}, {
|
|
42
22
|
readonly type: "function";
|
|
43
|
-
readonly name: "
|
|
23
|
+
readonly name: "chainId";
|
|
44
24
|
readonly inputs: readonly [];
|
|
45
25
|
readonly outputs: readonly [{
|
|
46
26
|
readonly name: "";
|
|
47
|
-
readonly type: "
|
|
48
|
-
readonly internalType: "
|
|
27
|
+
readonly type: "bytes32";
|
|
28
|
+
readonly internalType: "bytes32";
|
|
49
29
|
}];
|
|
50
30
|
readonly stateMutability: "view";
|
|
51
31
|
}, {
|
|
@@ -55,27 +35,9 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
55
35
|
readonly name: "owner_";
|
|
56
36
|
readonly type: "address";
|
|
57
37
|
readonly internalType: "address";
|
|
58
|
-
}, {
|
|
59
|
-
readonly name: "honkVerifier_";
|
|
60
|
-
readonly type: "address";
|
|
61
|
-
readonly internalType: "address";
|
|
62
|
-
}, {
|
|
63
|
-
readonly name: "jwksRoots_";
|
|
64
|
-
readonly type: "address";
|
|
65
|
-
readonly internalType: "address";
|
|
66
38
|
}];
|
|
67
39
|
readonly outputs: readonly [];
|
|
68
40
|
readonly stateMutability: "nonpayable";
|
|
69
|
-
}, {
|
|
70
|
-
readonly type: "function";
|
|
71
|
-
readonly name: "jwksRoots";
|
|
72
|
-
readonly inputs: readonly [];
|
|
73
|
-
readonly outputs: readonly [{
|
|
74
|
-
readonly name: "";
|
|
75
|
-
readonly type: "address";
|
|
76
|
-
readonly internalType: "contract IJwksRoots";
|
|
77
|
-
}];
|
|
78
|
-
readonly stateMutability: "view";
|
|
79
41
|
}, {
|
|
80
42
|
readonly type: "function";
|
|
81
43
|
readonly name: "owner";
|
|
@@ -98,22 +60,30 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
98
60
|
readonly stateMutability: "view";
|
|
99
61
|
}, {
|
|
100
62
|
readonly type: "function";
|
|
101
|
-
readonly name: "
|
|
63
|
+
readonly name: "proxiableUUID";
|
|
102
64
|
readonly inputs: readonly [];
|
|
103
65
|
readonly outputs: readonly [{
|
|
104
66
|
readonly name: "";
|
|
105
|
-
readonly type: "
|
|
106
|
-
readonly internalType: "
|
|
67
|
+
readonly type: "bytes32";
|
|
68
|
+
readonly internalType: "bytes32";
|
|
107
69
|
}];
|
|
108
|
-
readonly stateMutability: "
|
|
70
|
+
readonly stateMutability: "view";
|
|
109
71
|
}, {
|
|
110
72
|
readonly type: "function";
|
|
111
|
-
readonly name: "
|
|
112
|
-
readonly inputs: readonly [
|
|
113
|
-
|
|
114
|
-
readonly name: "";
|
|
73
|
+
readonly name: "quote";
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly name: "platformId";
|
|
115
76
|
readonly type: "bytes32";
|
|
116
77
|
readonly internalType: "bytes32";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "verifierVersion";
|
|
80
|
+
readonly type: "uint16";
|
|
81
|
+
readonly internalType: "uint16";
|
|
82
|
+
}];
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
readonly internalType: "uint256";
|
|
117
87
|
}];
|
|
118
88
|
readonly stateMutability: "view";
|
|
119
89
|
}, {
|
|
@@ -124,15 +94,19 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
124
94
|
readonly stateMutability: "pure";
|
|
125
95
|
}, {
|
|
126
96
|
readonly type: "function";
|
|
127
|
-
readonly name: "
|
|
97
|
+
readonly name: "setVerifier";
|
|
128
98
|
readonly inputs: readonly [{
|
|
129
|
-
readonly name: "
|
|
130
|
-
readonly type: "
|
|
131
|
-
readonly internalType: "
|
|
99
|
+
readonly name: "platformId";
|
|
100
|
+
readonly type: "bytes32";
|
|
101
|
+
readonly internalType: "bytes32";
|
|
132
102
|
}, {
|
|
133
|
-
readonly name: "
|
|
103
|
+
readonly name: "verifierVersion";
|
|
104
|
+
readonly type: "uint16";
|
|
105
|
+
readonly internalType: "uint16";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "verifier";
|
|
134
108
|
readonly type: "address";
|
|
135
|
-
readonly internalType: "
|
|
109
|
+
readonly internalType: "contract IPlatformVerifier";
|
|
136
110
|
}];
|
|
137
111
|
readonly outputs: readonly [];
|
|
138
112
|
readonly stateMutability: "nonpayable";
|
|
@@ -160,19 +134,79 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
160
134
|
}];
|
|
161
135
|
readonly outputs: readonly [];
|
|
162
136
|
readonly stateMutability: "payable";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly name: "verifierOf";
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "platformId";
|
|
142
|
+
readonly type: "bytes32";
|
|
143
|
+
readonly internalType: "bytes32";
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "verifierVersion";
|
|
146
|
+
readonly type: "uint16";
|
|
147
|
+
readonly internalType: "uint16";
|
|
148
|
+
}];
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly name: "";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "contract IPlatformVerifier";
|
|
153
|
+
}];
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
readonly name: "verifiesPlatform";
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly name: "platformId";
|
|
160
|
+
readonly type: "bytes32";
|
|
161
|
+
readonly internalType: "bytes32";
|
|
162
|
+
}];
|
|
163
|
+
readonly outputs: readonly [{
|
|
164
|
+
readonly name: "";
|
|
165
|
+
readonly type: "bool";
|
|
166
|
+
readonly internalType: "bool";
|
|
167
|
+
}];
|
|
168
|
+
readonly stateMutability: "view";
|
|
163
169
|
}, {
|
|
164
170
|
readonly type: "function";
|
|
165
171
|
readonly name: "verify";
|
|
166
172
|
readonly inputs: readonly [{
|
|
167
|
-
readonly name: "
|
|
173
|
+
readonly name: "platformId";
|
|
174
|
+
readonly type: "bytes32";
|
|
175
|
+
readonly internalType: "bytes32";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "verifierVersion";
|
|
178
|
+
readonly type: "uint16";
|
|
179
|
+
readonly internalType: "uint16";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "payload";
|
|
168
182
|
readonly type: "bytes";
|
|
169
183
|
readonly internalType: "bytes";
|
|
170
184
|
}];
|
|
171
185
|
readonly outputs: readonly [{
|
|
172
|
-
readonly name: "
|
|
186
|
+
readonly name: "";
|
|
173
187
|
readonly type: "tuple";
|
|
174
|
-
readonly internalType: "struct
|
|
188
|
+
readonly internalType: "struct ICeremony.VerifiedClaim";
|
|
175
189
|
readonly components: readonly [{
|
|
190
|
+
readonly name: "sessionId";
|
|
191
|
+
readonly type: "bytes32";
|
|
192
|
+
readonly internalType: "bytes32";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "operationDomain";
|
|
195
|
+
readonly type: "bytes32";
|
|
196
|
+
readonly internalType: "bytes32";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "transactionData";
|
|
199
|
+
readonly type: "bytes";
|
|
200
|
+
readonly internalType: "bytes";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "ceremonyVersion";
|
|
203
|
+
readonly type: "uint16";
|
|
204
|
+
readonly internalType: "uint16";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "clientIdentifier";
|
|
207
|
+
readonly type: "bytes";
|
|
208
|
+
readonly internalType: "bytes";
|
|
209
|
+
}, {
|
|
176
210
|
readonly name: "userId";
|
|
177
211
|
readonly type: "string";
|
|
178
212
|
readonly internalType: "string";
|
|
@@ -181,16 +215,12 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
181
215
|
readonly type: "string";
|
|
182
216
|
readonly internalType: "string";
|
|
183
217
|
}, {
|
|
184
|
-
readonly name: "
|
|
185
|
-
readonly type: "address";
|
|
186
|
-
readonly internalType: "address";
|
|
187
|
-
}, {
|
|
188
|
-
readonly name: "observedAt";
|
|
218
|
+
readonly name: "metadataObservedAt";
|
|
189
219
|
readonly type: "uint64";
|
|
190
220
|
readonly internalType: "uint64";
|
|
191
221
|
}];
|
|
192
222
|
}];
|
|
193
|
-
readonly stateMutability: "
|
|
223
|
+
readonly stateMutability: "payable";
|
|
194
224
|
}, {
|
|
195
225
|
readonly type: "event";
|
|
196
226
|
readonly name: "Initialized";
|
|
@@ -241,6 +271,26 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
241
271
|
readonly internalType: "address";
|
|
242
272
|
}];
|
|
243
273
|
readonly anonymous: false;
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "event";
|
|
276
|
+
readonly name: "VerifierConfigured";
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly name: "platformId";
|
|
279
|
+
readonly type: "bytes32";
|
|
280
|
+
readonly indexed: true;
|
|
281
|
+
readonly internalType: "bytes32";
|
|
282
|
+
}, {
|
|
283
|
+
readonly name: "verifierVersion";
|
|
284
|
+
readonly type: "uint16";
|
|
285
|
+
readonly indexed: true;
|
|
286
|
+
readonly internalType: "uint16";
|
|
287
|
+
}, {
|
|
288
|
+
readonly name: "verifier";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
readonly indexed: false;
|
|
291
|
+
readonly internalType: "address";
|
|
292
|
+
}];
|
|
293
|
+
readonly anonymous: false;
|
|
244
294
|
}, {
|
|
245
295
|
readonly type: "error";
|
|
246
296
|
readonly name: "AddressEmptyCode";
|
|
@@ -249,10 +299,6 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
249
299
|
readonly type: "address";
|
|
250
300
|
readonly internalType: "address";
|
|
251
301
|
}];
|
|
252
|
-
}, {
|
|
253
|
-
readonly type: "error";
|
|
254
|
-
readonly name: "BadHonkProof";
|
|
255
|
-
readonly inputs: readonly [];
|
|
256
302
|
}, {
|
|
257
303
|
readonly type: "error";
|
|
258
304
|
readonly name: "ERC1967InvalidImplementation";
|
|
@@ -265,22 +311,6 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
265
311
|
readonly type: "error";
|
|
266
312
|
readonly name: "ERC1967NonPayable";
|
|
267
313
|
readonly inputs: readonly [];
|
|
268
|
-
}, {
|
|
269
|
-
readonly type: "error";
|
|
270
|
-
readonly name: "EmbeddedNul";
|
|
271
|
-
readonly inputs: readonly [];
|
|
272
|
-
}, {
|
|
273
|
-
readonly type: "error";
|
|
274
|
-
readonly name: "EmptySub";
|
|
275
|
-
readonly inputs: readonly [];
|
|
276
|
-
}, {
|
|
277
|
-
readonly type: "error";
|
|
278
|
-
readonly name: "ExpiryOutOfRange";
|
|
279
|
-
readonly inputs: readonly [{
|
|
280
|
-
readonly name: "jwtExp";
|
|
281
|
-
readonly type: "uint256";
|
|
282
|
-
readonly internalType: "uint256";
|
|
283
|
-
}];
|
|
284
314
|
}, {
|
|
285
315
|
readonly type: "error";
|
|
286
316
|
readonly name: "FailedCall";
|
|
@@ -289,10 +319,6 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
289
319
|
readonly type: "error";
|
|
290
320
|
readonly name: "InvalidInitialization";
|
|
291
321
|
readonly inputs: readonly [];
|
|
292
|
-
}, {
|
|
293
|
-
readonly type: "error";
|
|
294
|
-
readonly name: "JwtExpired";
|
|
295
|
-
readonly inputs: readonly [];
|
|
296
322
|
}, {
|
|
297
323
|
readonly type: "error";
|
|
298
324
|
readonly name: "NotInitializing";
|
|
@@ -313,18 +339,6 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
313
339
|
readonly type: "address";
|
|
314
340
|
readonly internalType: "address";
|
|
315
341
|
}];
|
|
316
|
-
}, {
|
|
317
|
-
readonly type: "error";
|
|
318
|
-
readonly name: "TooLongForCircuit";
|
|
319
|
-
readonly inputs: readonly [{
|
|
320
|
-
readonly name: "length";
|
|
321
|
-
readonly type: "uint256";
|
|
322
|
-
readonly internalType: "uint256";
|
|
323
|
-
}, {
|
|
324
|
-
readonly name: "max";
|
|
325
|
-
readonly type: "uint256";
|
|
326
|
-
readonly internalType: "uint256";
|
|
327
|
-
}];
|
|
328
342
|
}, {
|
|
329
343
|
readonly type: "error";
|
|
330
344
|
readonly name: "UUPSUnauthorizedCallContext";
|
|
@@ -339,35 +353,39 @@ export declare const googleIdentityVerifierAbi: readonly [{
|
|
|
339
353
|
}];
|
|
340
354
|
}, {
|
|
341
355
|
readonly type: "error";
|
|
342
|
-
readonly name: "
|
|
343
|
-
readonly inputs: readonly [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}, {
|
|
353
|
-
readonly type: "error";
|
|
354
|
-
readonly name: "WrongEmail";
|
|
355
|
-
readonly inputs: readonly [];
|
|
356
|
-
}, {
|
|
357
|
-
readonly type: "error";
|
|
358
|
-
readonly name: "WrongPublicInputCount";
|
|
359
|
-
readonly inputs: readonly [];
|
|
360
|
-
}, {
|
|
361
|
-
readonly type: "error";
|
|
362
|
-
readonly name: "WrongSub";
|
|
363
|
-
readonly inputs: readonly [];
|
|
356
|
+
readonly name: "UnknownVersion";
|
|
357
|
+
readonly inputs: readonly [{
|
|
358
|
+
readonly name: "platformId";
|
|
359
|
+
readonly type: "bytes32";
|
|
360
|
+
readonly internalType: "bytes32";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "verifierVersion";
|
|
363
|
+
readonly type: "uint16";
|
|
364
|
+
readonly internalType: "uint16";
|
|
365
|
+
}];
|
|
364
366
|
}, {
|
|
365
367
|
readonly type: "error";
|
|
366
|
-
readonly name: "
|
|
367
|
-
readonly inputs: readonly [
|
|
368
|
+
readonly name: "VerifierPlatformMismatch";
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly name: "expected";
|
|
371
|
+
readonly type: "bytes32";
|
|
372
|
+
readonly internalType: "bytes32";
|
|
373
|
+
}, {
|
|
374
|
+
readonly name: "found";
|
|
375
|
+
readonly type: "bytes32";
|
|
376
|
+
readonly internalType: "bytes32";
|
|
377
|
+
}];
|
|
368
378
|
}, {
|
|
369
379
|
readonly type: "error";
|
|
370
|
-
readonly name: "
|
|
371
|
-
readonly inputs: readonly [
|
|
380
|
+
readonly name: "WrongValue";
|
|
381
|
+
readonly inputs: readonly [{
|
|
382
|
+
readonly name: "required";
|
|
383
|
+
readonly type: "uint256";
|
|
384
|
+
readonly internalType: "uint256";
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "provided";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
readonly internalType: "uint256";
|
|
389
|
+
}];
|
|
372
390
|
}];
|
|
373
|
-
//# sourceMappingURL=
|
|
391
|
+
//# sourceMappingURL=ceremonyProofVerifier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"ceremonyProofVerifier.d.ts","sourceRoot":"","sources":["../../src/abis/ceremonyProofVerifier.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2fb,CAAA"}
|