Skip to content

Commit 0094576

Browse files
committed
feat: update to latest contract abi
Not updated in awhile, hopefully still passes?
1 parent 95fca55 commit 0094576

File tree

9 files changed

+353
-434
lines changed

9 files changed

+353
-434
lines changed

packages/contracts

packages/sdk/src/abi/GuardianRecoveryValidator.ts

Lines changed: 42 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ export const GuardianRecoveryValidatorAbi = [
44
stateMutability: "nonpayable",
55
type: "constructor",
66
},
7-
{
8-
inputs: [
9-
{
10-
internalType: "uint256",
11-
name: "value",
12-
type: "uint256",
13-
},
14-
],
15-
name: "ADDRESS_CAST_OVERFLOW",
16-
type: "error",
17-
},
187
{
198
inputs: [
209
{
@@ -28,7 +17,7 @@ export const GuardianRecoveryValidatorAbi = [
2817
type: "address",
2918
},
3019
],
31-
name: "AccountAlreadyGuardedByGuardian",
20+
name: "ACCOUNT_ALREADY_GUARDED",
3221
type: "error",
3322
},
3423
{
@@ -44,75 +33,70 @@ export const GuardianRecoveryValidatorAbi = [
4433
type: "address",
4534
},
4635
],
47-
name: "AccountNotGuardedByAddress",
48-
type: "error",
49-
},
50-
{
51-
inputs: [],
52-
name: "AccountRecoveryInProgress",
53-
type: "error",
54-
},
55-
{
56-
inputs: [],
57-
name: "GuardianCannotBeSelf",
36+
name: "ACCOUNT_NOT_GUARDED_BY_ADDRESS",
5837
type: "error",
5938
},
6039
{
6140
inputs: [
6241
{
63-
internalType: "address",
64-
name: "guardian",
65-
type: "address",
42+
internalType: "uint256",
43+
name: "value",
44+
type: "uint256",
6645
},
6746
],
68-
name: "GuardianNotFound",
47+
name: "ADDRESS_CAST_OVERFLOW",
6948
type: "error",
7049
},
7150
{
72-
inputs: [
73-
{
74-
internalType: "address",
75-
name: "guardian",
76-
type: "address",
77-
},
78-
],
79-
name: "GuardianNotProposed",
51+
inputs: [],
52+
name: "GUARDIAN_CANNOT_BE_SELF",
8053
type: "error",
8154
},
8255
{
8356
inputs: [],
84-
name: "InvalidAccountToGuardAddress",
57+
name: "GUARDIAN_INVALID_ACCOUNT",
8558
type: "error",
8659
},
8760
{
8861
inputs: [],
89-
name: "InvalidAccountToRecoverAddress",
62+
name: "GUARDIAN_INVALID_ADDRESS",
9063
type: "error",
9164
},
9265
{
9366
inputs: [],
94-
name: "InvalidGuardianAddress",
67+
name: "GUARDIAN_INVALID_RECOVERY_CALL",
9568
type: "error",
9669
},
9770
{
9871
inputs: [],
99-
name: "InvalidWebAuthValidatorAddress",
72+
name: "GUARDIAN_INVALID_WEBAUTH_VALIDATOR",
10073
type: "error",
10174
},
10275
{
10376
inputs: [
10477
{
105-
internalType: "uint256",
106-
name: "chainId",
107-
type: "uint256",
78+
internalType: "address",
79+
name: "guardian",
80+
type: "address",
10881
},
10982
],
110-
name: "NO_TIMESTAMP_ASSERTER",
83+
name: "GUARDIAN_NOT_FOUND",
84+
type: "error",
85+
},
86+
{
87+
inputs: [
88+
{
89+
internalType: "address",
90+
name: "guardian",
91+
type: "address",
92+
},
93+
],
94+
name: "GUARDIAN_NOT_PROPOSED",
11195
type: "error",
11296
},
11397
{
11498
inputs: [],
115-
name: "NonFunctionCallTransaction",
99+
name: "GUARDIAN_RECOVERY_IN_PROGRESS",
116100
type: "error",
117101
},
118102
{
@@ -123,12 +107,23 @@ export const GuardianRecoveryValidatorAbi = [
123107
type: "bytes32",
124108
},
125109
],
126-
name: "UnknownHashedOriginDomain",
110+
name: "GUARDIAN_UNKNOWN_DOMAIN",
111+
type: "error",
112+
},
113+
{
114+
inputs: [
115+
{
116+
internalType: "uint256",
117+
name: "chainId",
118+
type: "uint256",
119+
},
120+
],
121+
name: "NO_TIMESTAMP_ASSERTER",
127122
type: "error",
128123
},
129124
{
130125
inputs: [],
131-
name: "WebAuthValidatorNotEnabled",
126+
name: "WEBAUTH_VALIDATOR_NOT_INSTALLED",
132127
type: "error",
133128
},
134129
{
@@ -597,7 +592,7 @@ export const GuardianRecoveryValidatorAbi = [
597592
],
598593
name: "onInstall",
599594
outputs: [],
600-
stateMutability: "nonpayable",
595+
stateMutability: "view",
601596
type: "function",
602597
},
603598
{

packages/sdk/src/abi/OidcKeyRegistry.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ export const OidcKeyRegistryAbi = [
1212
type: "bytes32",
1313
},
1414
],
15-
name: "EvenRsaModulus",
15+
name: "OIDC_EVEN_RSA_MODULUS",
1616
type: "error",
1717
},
1818
{
1919
inputs: [
2020
{
2121
internalType: "bytes32",
22-
name: "expectedIssHash",
22+
name: "expectedIssuerHash",
2323
type: "bytes32",
2424
},
2525
{
2626
internalType: "bytes32",
27-
name: "actualIssHash",
27+
name: "actualIssuerHash",
2828
type: "bytes32",
2929
},
3030
],
31-
name: "IssuerHashMismatch",
31+
name: "OIDC_ISSUER_HASH_MISMATCH",
3232
type: "error",
3333
},
3434
{
@@ -39,25 +39,30 @@ export const OidcKeyRegistryAbi = [
3939
type: "uint256",
4040
},
4141
],
42-
name: "KeyCountLimitExceeded",
42+
name: "OIDC_KEY_COUNT_LIMIT_EXCEEDED",
4343
type: "error",
4444
},
4545
{
4646
inputs: [
4747
{
48-
internalType: "uint256",
49-
name: "index",
50-
type: "uint256",
48+
internalType: "bytes32",
49+
name: "kid",
50+
type: "bytes32",
51+
},
52+
{
53+
internalType: "bytes32",
54+
name: "issuerHash",
55+
type: "bytes32",
5156
},
5257
],
53-
name: "KeyIdCannotBeZero",
58+
name: "OIDC_KEY_ID_ALREADY_EXISTS",
5459
type: "error",
5560
},
5661
{
5762
inputs: [
5863
{
5964
internalType: "bytes32",
60-
name: "issHash",
65+
name: "issuerHash",
6166
type: "bytes32",
6267
},
6368
{
@@ -66,7 +71,7 @@ export const OidcKeyRegistryAbi = [
6671
type: "bytes32",
6772
},
6873
],
69-
name: "KeyNotFound",
74+
name: "OIDC_KEY_NOT_FOUND",
7075
type: "error",
7176
},
7277
{
@@ -77,23 +82,28 @@ export const OidcKeyRegistryAbi = [
7782
type: "bytes32",
7883
},
7984
{
80-
internalType: "bytes32",
81-
name: "issHash",
82-
type: "bytes32",
85+
internalType: "uint256",
86+
name: "chunkIndex",
87+
type: "uint256",
88+
},
89+
{
90+
internalType: "uint256",
91+
name: "chunkValue",
92+
type: "uint256",
8393
},
8494
],
85-
name: "KidAlreadyRegistered",
95+
name: "OIDC_MODULUS_CHUNK_TOO_LARGE",
8696
type: "error",
8797
},
8898
{
8999
inputs: [
90100
{
91-
internalType: "bytes32",
92-
name: "kid",
93-
type: "bytes32",
101+
internalType: "uint256",
102+
name: "index",
103+
type: "uint256",
94104
},
95105
],
96-
name: "ModulusCannotBeZero",
106+
name: "OIDC_ZERO_KEY_ID",
97107
type: "error",
98108
},
99109
{
@@ -103,18 +113,8 @@ export const OidcKeyRegistryAbi = [
103113
name: "kid",
104114
type: "bytes32",
105115
},
106-
{
107-
internalType: "uint256",
108-
name: "chunkIndex",
109-
type: "uint256",
110-
},
111-
{
112-
internalType: "uint256",
113-
name: "chunkValue",
114-
type: "uint256",
115-
},
116116
],
117-
name: "ModulusChunkTooLarge",
117+
name: "OIDC_ZERO_MODULUS",
118118
type: "error",
119119
},
120120
{

0 commit comments

Comments
 (0)