@@ -15,16 +15,19 @@ export const ExperimentDelegation = {
1515 { name : 'y' , type : 'uint256' , internalType : 'uint256' } ,
1616 ] ,
1717 } ,
18+ { name : 'expiry' , type : 'uint256' , internalType : 'uint256' } ,
1819 {
19- name : 'keyType' ,
20- type : 'uint8' ,
21- internalType : 'enum ExperimentDelegation.KeyType' ,
20+ name : 'signature' ,
21+ type : 'tuple' ,
22+ internalType : 'struct ECDSA.RecoveredSignature' ,
23+ components : [
24+ { name : 'r' , type : 'uint256' , internalType : 'uint256' } ,
25+ { name : 's' , type : 'uint256' , internalType : 'uint256' } ,
26+ { name : 'yParity' , type : 'uint8' , internalType : 'uint8' } ,
27+ ] ,
2228 } ,
23- { name : 'expiry' , type : 'uint256' , internalType : 'uint256' } ,
24- ] ,
25- outputs : [
26- { name : 'publicKeyIndex' , type : 'uint32' , internalType : 'uint32' } ,
2729 ] ,
30+ outputs : [ { name : 'keyIndex' , type : 'uint32' , internalType : 'uint32' } ] ,
2831 stateMutability : 'nonpayable' ,
2932 } ,
3033 {
@@ -40,26 +43,9 @@ export const ExperimentDelegation = {
4043 { name : 'y' , type : 'uint256' , internalType : 'uint256' } ,
4144 ] ,
4245 } ,
43- {
44- name : 'keyType' ,
45- type : 'uint8' ,
46- internalType : 'enum ExperimentDelegation.KeyType' ,
47- } ,
4846 { name : 'expiry' , type : 'uint256' , internalType : 'uint256' } ,
49- {
50- name : 'signature' ,
51- type : 'tuple' ,
52- internalType : 'struct ECDSA.RecoveredSignature' ,
53- components : [
54- { name : 'r' , type : 'uint256' , internalType : 'uint256' } ,
55- { name : 's' , type : 'uint256' , internalType : 'uint256' } ,
56- { name : 'yParity' , type : 'uint8' , internalType : 'uint8' } ,
57- ] ,
58- } ,
59- ] ,
60- outputs : [
61- { name : 'publicKeyIndex' , type : 'uint32' , internalType : 'uint32' } ,
6247 ] ,
48+ outputs : [ { name : 'keyIndex' , type : 'uint32' , internalType : 'uint32' } ] ,
6349 stateMutability : 'nonpayable' ,
6450 } ,
6551 {
@@ -83,8 +69,23 @@ export const ExperimentDelegation = {
8369 { name : 's' , type : 'uint256' , internalType : 'uint256' } ,
8470 ] ,
8571 } ,
86- { name : 'publicKeyIndex' , type : 'uint32' , internalType : 'uint32' } ,
87- { name : 'prehash' , type : 'bool' , internalType : 'bool' } ,
72+ {
73+ name : 'metadata' ,
74+ type : 'tuple' ,
75+ internalType : 'struct WebAuthnP256.Metadata' ,
76+ components : [
77+ { name : 'authenticatorData' , type : 'bytes' , internalType : 'bytes' } ,
78+ { name : 'clientDataJSON' , type : 'string' , internalType : 'string' } ,
79+ { name : 'challengeIndex' , type : 'uint16' , internalType : 'uint16' } ,
80+ { name : 'typeIndex' , type : 'uint16' , internalType : 'uint16' } ,
81+ {
82+ name : 'userVerificationRequired' ,
83+ type : 'bool' ,
84+ internalType : 'bool' ,
85+ } ,
86+ ] ,
87+ } ,
88+ { name : 'keyIndex' , type : 'uint32' , internalType : 'uint32' } ,
8889 ] ,
8990 outputs : [ ] ,
9091 stateMutability : 'nonpayable' ,
@@ -103,23 +104,7 @@ export const ExperimentDelegation = {
103104 { name : 's' , type : 'uint256' , internalType : 'uint256' } ,
104105 ] ,
105106 } ,
106- {
107- name : 'metadata' ,
108- type : 'tuple' ,
109- internalType : 'struct WebAuthnP256.Metadata' ,
110- components : [
111- { name : 'authenticatorData' , type : 'bytes' , internalType : 'bytes' } ,
112- { name : 'clientDataJSON' , type : 'string' , internalType : 'string' } ,
113- { name : 'challengeIndex' , type : 'uint16' , internalType : 'uint16' } ,
114- { name : 'typeIndex' , type : 'uint16' , internalType : 'uint16' } ,
115- {
116- name : 'userVerificationRequired' ,
117- type : 'bool' ,
118- internalType : 'bool' ,
119- } ,
120- ] ,
121- } ,
122- { name : 'publicKeyIndex' , type : 'uint32' , internalType : 'uint32' } ,
107+ { name : 'keyIndex' , type : 'uint32' , internalType : 'uint32' } ,
123108 { name : 'prehash' , type : 'bool' , internalType : 'bool' } ,
124109 ] ,
125110 outputs : [ ] ,
@@ -132,11 +117,6 @@ export const ExperimentDelegation = {
132117 outputs : [
133118 { name : 'authorized' , type : 'bool' , internalType : 'bool' } ,
134119 { name : 'expiry' , type : 'uint256' , internalType : 'uint256' } ,
135- {
136- name : 'keyType' ,
137- type : 'uint8' ,
138- internalType : 'enum ExperimentDelegation.KeyType' ,
139- } ,
140120 {
141121 name : 'publicKey' ,
142122 type : 'tuple' ,
@@ -166,17 +146,15 @@ export const ExperimentDelegation = {
166146 {
167147 type : 'function' ,
168148 name : 'revoke' ,
169- inputs : [
170- { name : 'publicKeyIndex' , type : 'uint32' , internalType : 'uint32' } ,
171- ] ,
149+ inputs : [ { name : 'keyIndex' , type : 'uint32' , internalType : 'uint32' } ] ,
172150 outputs : [ ] ,
173151 stateMutability : 'nonpayable' ,
174152 } ,
175153 {
176154 type : 'function' ,
177155 name : 'revoke' ,
178156 inputs : [
179- { name : 'publicKeyIndex ' , type : 'uint32' , internalType : 'uint32' } ,
157+ { name : 'keyIndex ' , type : 'uint32' , internalType : 'uint32' } ,
180158 {
181159 name : 'signature' ,
182160 type : 'tuple' ,
@@ -196,7 +174,7 @@ export const ExperimentDelegation = {
196174 { type : 'error' , name : 'KeyExpired' , inputs : [ ] } ,
197175 { type : 'error' , name : 'KeyNotAuthorized' , inputs : [ ] } ,
198176 ] ,
199- address : '0x685641EbFDC2c04201d4E09f04712F41cc727567 ' ,
177+ address : '0x6bbce6b04736f9db8d3dbE509b87Da3BC1435439 ' ,
200178} as const
201179
202180export const ExperimentERC20 = {
0 commit comments