@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.
Files changed (170) hide show
  1. package/README.md +65 -26
  2. package/dist/abis/{googleIdentityVerifier.d.ts → ceremonyProofVerifier.d.ts} +146 -128
  3. package/dist/abis/{googleIdentityVerifier.d.ts.map → ceremonyProofVerifier.d.ts.map} +1 -1
  4. package/dist/abis/{googleIdentityVerifier.js → ceremonyProofVerifier.js} +182 -156
  5. package/dist/abis/ceremonyProofVerifier.js.map +1 -0
  6. package/dist/abis/{identityJwksRoots.d.ts → googleJwtRoots.d.ts} +273 -211
  7. package/dist/abis/{xZkVerifier.d.ts.map → googleJwtRoots.d.ts.map} +1 -1
  8. package/dist/abis/{identityJwksRoots.js → googleJwtRoots.js} +345 -253
  9. package/dist/abis/googleJwtRoots.js.map +1 -0
  10. package/dist/abis/{walletFactory.d.ts → handleResolver.d.ts} +185 -151
  11. package/dist/abis/handleResolver.d.ts.map +1 -0
  12. package/dist/abis/{walletFactory.js → handleResolver.js} +219 -170
  13. package/dist/abis/handleResolver.js.map +1 -0
  14. package/dist/abis/identityNames.d.ts +173 -219
  15. package/dist/abis/identityNames.d.ts.map +1 -1
  16. package/dist/abis/identityNames.js +210 -266
  17. package/dist/abis/identityNames.js.map +1 -1
  18. package/dist/abis/index.d.ts +4 -16
  19. package/dist/abis/index.d.ts.map +1 -1
  20. package/dist/abis/index.js +4 -16
  21. package/dist/abis/index.js.map +1 -1
  22. package/dist/abis/{xZkVerifier.d.ts → notaryService.d.ts} +237 -273
  23. package/dist/abis/{webWallet.d.ts.map → notaryService.d.ts.map} +1 -1
  24. package/dist/abis/{xZkVerifier.js → notaryService.js} +297 -337
  25. package/dist/abis/notaryService.js.map +1 -0
  26. package/dist/call.d.ts +7 -0
  27. package/dist/call.d.ts.map +1 -0
  28. package/dist/call.js +2 -0
  29. package/dist/call.js.map +1 -0
  30. package/dist/calls/ceremonyProofVerifier.d.ts +14 -0
  31. package/dist/calls/ceremonyProofVerifier.d.ts.map +1 -0
  32. package/dist/calls/ceremonyProofVerifier.js +55 -0
  33. package/dist/calls/ceremonyProofVerifier.js.map +1 -0
  34. package/dist/calls/googleJwtRoots.d.ts +14 -0
  35. package/dist/calls/googleJwtRoots.d.ts.map +1 -0
  36. package/dist/calls/googleJwtRoots.js +43 -0
  37. package/dist/calls/googleJwtRoots.js.map +1 -0
  38. package/dist/calls/handleResolver.d.ts +12 -0
  39. package/dist/calls/handleResolver.d.ts.map +1 -0
  40. package/dist/calls/handleResolver.js +29 -0
  41. package/dist/calls/handleResolver.js.map +1 -0
  42. package/dist/calls/identityNames.d.ts +16 -0
  43. package/dist/calls/identityNames.d.ts.map +1 -0
  44. package/dist/calls/identityNames.js +55 -0
  45. package/dist/calls/identityNames.js.map +1 -0
  46. package/dist/calls/index.d.ts +8 -0
  47. package/dist/calls/index.d.ts.map +1 -0
  48. package/dist/calls/index.js +10 -0
  49. package/dist/calls/index.js.map +1 -0
  50. package/dist/calls/libidFactory.d.ts +13 -0
  51. package/dist/calls/libidFactory.d.ts.map +1 -0
  52. package/dist/calls/libidFactory.js +36 -0
  53. package/dist/calls/libidFactory.js.map +1 -0
  54. package/dist/calls/notaryService.d.ts +16 -0
  55. package/dist/calls/notaryService.d.ts.map +1 -0
  56. package/dist/calls/notaryService.js +55 -0
  57. package/dist/calls/notaryService.js.map +1 -0
  58. package/dist/calls/wtia9.d.ts +13 -0
  59. package/dist/calls/wtia9.d.ts.map +1 -0
  60. package/dist/calls/wtia9.js +36 -0
  61. package/dist/calls/wtia9.js.map +1 -0
  62. package/dist/identity/handleVectors.d.ts +3 -3
  63. package/dist/identity/handleVectors.d.ts.map +1 -1
  64. package/dist/identity/handleVectors.js +3 -3
  65. package/dist/identity/handleVectors.js.map +1 -1
  66. package/dist/identity/index.d.ts +0 -1
  67. package/dist/identity/index.d.ts.map +1 -1
  68. package/dist/identity/index.js +7 -6
  69. package/dist/identity/index.js.map +1 -1
  70. package/dist/identity/resolve.js +4 -4
  71. package/dist/identity/resolve.js.map +1 -1
  72. package/dist/index.d.ts +2 -0
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +5 -3
  75. package/dist/index.js.map +1 -1
  76. package/package.json +8 -7
  77. package/src/abis/{googleIdentityVerifier.ts → ceremonyProofVerifier.ts} +181 -155
  78. package/src/abis/{identityJwksRoots.ts → googleJwtRoots.ts} +344 -252
  79. package/src/abis/{walletFactory.ts → handleResolver.ts} +218 -169
  80. package/src/abis/identityNames.ts +210 -266
  81. package/src/abis/index.ts +4 -16
  82. package/src/abis/{xZkVerifier.ts → notaryService.ts} +296 -336
  83. package/src/call.ts +15 -0
  84. package/src/calls/ceremonyProofVerifier.ts +90 -0
  85. package/src/calls/googleJwtRoots.ts +74 -0
  86. package/src/calls/handleResolver.ts +51 -0
  87. package/src/calls/identityNames.ts +88 -0
  88. package/src/calls/index.ts +9 -0
  89. package/src/calls/libidFactory.ts +63 -0
  90. package/src/calls/notaryService.ts +85 -0
  91. package/src/calls/wtia9.ts +52 -0
  92. package/src/identity/handleVectors.ts +3 -3
  93. package/src/identity/index.ts +7 -6
  94. package/src/identity/resolve.ts +4 -4
  95. package/src/index.ts +6 -3
  96. package/dist/abis/adminFacet.d.ts +0 -339
  97. package/dist/abis/adminFacet.d.ts.map +0 -1
  98. package/dist/abis/adminFacet.js +0 -442
  99. package/dist/abis/adminFacet.js.map +0 -1
  100. package/dist/abis/bank.d.ts +0 -916
  101. package/dist/abis/bank.d.ts.map +0 -1
  102. package/dist/abis/bank.js +0 -1184
  103. package/dist/abis/bank.js.map +0 -1
  104. package/dist/abis/diamondLoupeFacet.d.ts +0 -73
  105. package/dist/abis/diamondLoupeFacet.d.ts.map +0 -1
  106. package/dist/abis/diamondLoupeFacet.js +0 -100
  107. package/dist/abis/diamondLoupeFacet.js.map +0 -1
  108. package/dist/abis/gitHubIdentityVerifier.d.ts +0 -409
  109. package/dist/abis/gitHubIdentityVerifier.d.ts.map +0 -1
  110. package/dist/abis/gitHubIdentityVerifier.js +0 -531
  111. package/dist/abis/gitHubIdentityVerifier.js.map +0 -1
  112. package/dist/abis/googleIdentityVerifier.js.map +0 -1
  113. package/dist/abis/googleOidcVerifier.d.ts +0 -838
  114. package/dist/abis/googleOidcVerifier.d.ts.map +0 -1
  115. package/dist/abis/googleOidcVerifier.js +0 -1082
  116. package/dist/abis/googleOidcVerifier.js.map +0 -1
  117. package/dist/abis/identityJwksRoots.d.ts.map +0 -1
  118. package/dist/abis/identityJwksRoots.js.map +0 -1
  119. package/dist/abis/mockErc20.d.ts +0 -262
  120. package/dist/abis/mockErc20.d.ts.map +0 -1
  121. package/dist/abis/mockErc20.js +0 -347
  122. package/dist/abis/mockErc20.js.map +0 -1
  123. package/dist/abis/notary.d.ts +0 -263
  124. package/dist/abis/notary.d.ts.map +0 -1
  125. package/dist/abis/notary.js +0 -343
  126. package/dist/abis/notary.js.map +0 -1
  127. package/dist/abis/registry.d.ts +0 -1170
  128. package/dist/abis/registry.d.ts.map +0 -1
  129. package/dist/abis/registry.js +0 -1511
  130. package/dist/abis/registry.js.map +0 -1
  131. package/dist/abis/transferFacet.d.ts +0 -814
  132. package/dist/abis/transferFacet.d.ts.map +0 -1
  133. package/dist/abis/transferFacet.js +0 -1035
  134. package/dist/abis/transferFacet.js.map +0 -1
  135. package/dist/abis/vaultFacet.d.ts +0 -306
  136. package/dist/abis/vaultFacet.d.ts.map +0 -1
  137. package/dist/abis/vaultFacet.js +0 -398
  138. package/dist/abis/vaultFacet.js.map +0 -1
  139. package/dist/abis/walletFactory.d.ts.map +0 -1
  140. package/dist/abis/walletFactory.js.map +0 -1
  141. package/dist/abis/webWallet.d.ts +0 -523
  142. package/dist/abis/webWallet.js +0 -680
  143. package/dist/abis/webWallet.js.map +0 -1
  144. package/dist/abis/xIdentityVerifier.d.ts +0 -473
  145. package/dist/abis/xIdentityVerifier.d.ts.map +0 -1
  146. package/dist/abis/xIdentityVerifier.js +0 -612
  147. package/dist/abis/xIdentityVerifier.js.map +0 -1
  148. package/dist/abis/xZkVerifier.js.map +0 -1
  149. package/dist/identity/bind.d.ts +0 -59
  150. package/dist/identity/bind.d.ts.map +0 -1
  151. package/dist/identity/bind.fixtures.d.ts +0 -8
  152. package/dist/identity/bind.fixtures.d.ts.map +0 -1
  153. package/dist/identity/bind.fixtures.js +0 -55
  154. package/dist/identity/bind.fixtures.js.map +0 -1
  155. package/dist/identity/bind.js +0 -148
  156. package/dist/identity/bind.js.map +0 -1
  157. package/src/abis/adminFacet.ts +0 -444
  158. package/src/abis/bank.ts +0 -1186
  159. package/src/abis/diamondLoupeFacet.ts +0 -102
  160. package/src/abis/gitHubIdentityVerifier.ts +0 -533
  161. package/src/abis/googleOidcVerifier.ts +0 -1084
  162. package/src/abis/mockErc20.ts +0 -349
  163. package/src/abis/notary.ts +0 -345
  164. package/src/abis/registry.ts +0 -1513
  165. package/src/abis/transferFacet.ts +0 -1037
  166. package/src/abis/vaultFacet.ts +0 -400
  167. package/src/abis/webWallet.ts +0 -682
  168. package/src/abis/xIdentityVerifier.ts +0 -614
  169. package/src/identity/bind.fixtures.ts +0 -63
  170. 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 every libid contract, plus the identity helper
4
- layer: handle normalization, proof encoding for `bind`, and name resolution.
5
-
6
- The ABIs in `src/abis/` are generated from the forge artifacts
7
- (`solidity/out`) by `scripts/codegen.mjs` and committed; each is exported
8
- `as const satisfies Abi`, so viem infers argument and return types from them.
9
- The handle vector table in `src/identity/handleVectors.ts` is generated from
10
- `solidity/contracts/identity/handles.json` by
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 { registryAbi, bankAbi } from '@libid/contracts/abis'
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 wallet = await client.readContract({
27
- address: REGISTRY,
28
- abi: registryAbi,
29
- functionName: 'walletOf',
30
- args: ['github', '583231'],
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
- const tokens = await client.readContract({
34
- address: BANK,
35
- abi: bankAbi,
36
- functionName: 'getRegisteredTokens',
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
- ## Binding a name
97
+ ## Claiming a name
66
98
 
67
- `bindCall` builds calldata and nothing more — an EOA sends it directly, a
68
- smart account wraps it in its own execute:
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 { bindCall, encodeGitHubProof, platformId, PLATFORM_GITHUB_DOMAIN } from '@libid/contracts/identity'
105
+ import { calls } from '@libid/contracts/calls'
72
106
 
73
- const proof = encodeGitHubProof(gitHubProof) // from the notarization flow
74
- const call = bindCall(IDENTITY_NAMES, platformId(PLATFORM_GITHUB_DOMAIN), proof, true)
75
- // call = { to, data } — sign and send from the address the proof names.
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 # regenerate src/abis/ (codegen:check diffs)
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 googleIdentityVerifierAbi: readonly [{
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: "honkVerifier";
23
+ readonly name: "chainId";
44
24
  readonly inputs: readonly [];
45
25
  readonly outputs: readonly [{
46
26
  readonly name: "";
47
- readonly type: "address";
48
- readonly internalType: "contract IHonkVerifier";
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: "platformName";
63
+ readonly name: "proxiableUUID";
102
64
  readonly inputs: readonly [];
103
65
  readonly outputs: readonly [{
104
66
  readonly name: "";
105
- readonly type: "string";
106
- readonly internalType: "string";
67
+ readonly type: "bytes32";
68
+ readonly internalType: "bytes32";
107
69
  }];
108
- readonly stateMutability: "pure";
70
+ readonly stateMutability: "view";
109
71
  }, {
110
72
  readonly type: "function";
111
- readonly name: "proxiableUUID";
112
- readonly inputs: readonly [];
113
- readonly outputs: readonly [{
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: "setTrust";
97
+ readonly name: "setVerifier";
128
98
  readonly inputs: readonly [{
129
- readonly name: "honkVerifier_";
130
- readonly type: "address";
131
- readonly internalType: "address";
99
+ readonly name: "platformId";
100
+ readonly type: "bytes32";
101
+ readonly internalType: "bytes32";
132
102
  }, {
133
- readonly name: "jwksRoots_";
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: "address";
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: "proof";
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: "claim";
186
+ readonly name: "";
173
187
  readonly type: "tuple";
174
- readonly internalType: "struct IdentityClaim";
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: "target";
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: "view";
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: "UntrustedModulus";
343
- readonly inputs: readonly [];
344
- }, {
345
- readonly type: "error";
346
- readonly name: "WrongAddress";
347
- readonly inputs: readonly [];
348
- }, {
349
- readonly type: "error";
350
- readonly name: "WrongChain";
351
- readonly inputs: readonly [];
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: "WrongVerifier";
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: "ZeroAddress";
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=googleIdentityVerifier.d.ts.map
391
+ //# sourceMappingURL=ceremonyProofVerifier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"googleIdentityVerifier.d.ts","sourceRoot":"","sources":["../../src/abis/googleIdentityVerifier.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAied,CAAA"}
1
+ {"version":3,"file":"ceremonyProofVerifier.d.ts","sourceRoot":"","sources":["../../src/abis/ceremonyProofVerifier.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2fb,CAAA"}