@@ -24,7 +24,7 @@ const V0: DefinitionsTypes = {
24
24
action : 'EthTransactionAction' ,
25
25
value : 'U256' ,
26
26
input : 'Bytes' ,
27
- signature : 'EthTransactionSignature '
27
+ signature : 'EthLegacyTransactionSignature '
28
28
} ,
29
29
TransactionV0 : 'LegacyTransaction'
30
30
} ;
@@ -44,9 +44,7 @@ const V1: DefinitionsTypes = {
44
44
value : 'U256' ,
45
45
input : 'Bytes' ,
46
46
accessList : 'EthAccessList' ,
47
- oddYParity : 'bool' ,
48
- r : 'H256' ,
49
- s : 'H256'
47
+ signature : 'EthTransactionSignature'
50
48
} ,
51
49
TransactionV1 : {
52
50
_enum : {
@@ -72,9 +70,7 @@ const V2: DefinitionsTypes = {
72
70
value : 'U256' ,
73
71
input : 'Bytes' ,
74
72
accessList : 'EthAccessList' ,
75
- oddYParity : 'bool' ,
76
- r : 'H256' ,
77
- s : 'H256'
73
+ signature : 'EthTransactionSignature'
78
74
} ,
79
75
TransactionV2 : {
80
76
_enum : {
@@ -85,10 +81,40 @@ const V2: DefinitionsTypes = {
85
81
}
86
82
} ;
87
83
84
+ const V3 : DefinitionsTypes = {
85
+ BlockV3 : {
86
+ header : 'EthHeader' ,
87
+ transactions : 'Vec<TransactionV3>' ,
88
+ ommers : 'Vec<EthHeader>'
89
+ } ,
90
+ EIP7702Transaction : {
91
+ chainId : 'u64' ,
92
+ nonce : 'U256' ,
93
+ maxPriorityFeePerGas : 'U256' ,
94
+ maxFeePerGas : 'U256' ,
95
+ gasLimit : 'U256' ,
96
+ destination : 'EthTransactionAction' ,
97
+ value : 'U256' ,
98
+ data : 'Bytes' ,
99
+ accessList : 'EthAccessList' ,
100
+ authorizationList : 'EthAuthorizationList' ,
101
+ signature : 'EthTransactionSignature'
102
+ } ,
103
+ TransactionV3 : {
104
+ _enum : {
105
+ Legacy : 'LegacyTransaction' ,
106
+ EIP2930 : 'EIP2930Transaction' ,
107
+ EIP1559 : 'EIP1559Transaction' ,
108
+ EIP7702 : 'EIP7702Transaction'
109
+ }
110
+ }
111
+ } ;
112
+
88
113
const types : DefinitionsTypes = {
89
114
...V0 ,
90
115
...V1 ,
91
116
...V2 ,
117
+ ...V3 ,
92
118
EthereumAccountId : 'GenericEthereumAccountId' ,
93
119
EthereumAddress : 'GenericEthereumAccountId' ,
94
120
EthereumLookupSource : 'GenericEthereumLookupSource' ,
@@ -98,6 +124,18 @@ const types: DefinitionsTypes = {
98
124
slots : 'Vec<H256>'
99
125
} ,
100
126
EthAccessList : 'Vec<EthAccessListItem>' ,
127
+ EthAuthorizationList : 'Vec<EthAuthorizationListItem>' ,
128
+ EthAuthorizationListItem : {
129
+ chainId : 'u64' ,
130
+ address : 'H160' ,
131
+ nonce : 'U256' ,
132
+ signature : 'EthAuthorizationSignature'
133
+ } ,
134
+ EthAuthorizationSignature : {
135
+ oddYParity : 'bool' ,
136
+ r : 'H256' ,
137
+ s : 'H256'
138
+ } ,
101
139
EthAccount : {
102
140
address : 'EthAddress' ,
103
141
balance : 'U256' ,
@@ -261,6 +299,7 @@ const types: DefinitionsTypes = {
261
299
// not convinced, however the original commit matches, so... (maybe V3 is incorrect?)
262
300
EthReceiptV0 : 'EthReceipt' ,
263
301
EthReceiptV3 : 'EthReceipt' ,
302
+ EthReceiptV4 : 'EthReceipt' ,
264
303
EthStorageProof : {
265
304
key : 'U256' ,
266
305
value : 'U256' ,
@@ -321,11 +360,16 @@ const types: DefinitionsTypes = {
321
360
accessList : 'Option<Vec<EthAccessListItem>>' ,
322
361
transactionType : 'Option<U256>'
323
362
} ,
324
- EthTransactionSignature : {
363
+ EthLegacyTransactionSignature : {
325
364
v : 'u64' ,
326
365
r : 'H256' ,
327
366
s : 'H256'
328
367
} ,
368
+ EthTransactionSignature : {
369
+ oddYParity : 'bool' ,
370
+ r : 'H256' ,
371
+ s : 'H256'
372
+ } ,
329
373
EthTransactionAction : {
330
374
_enum : {
331
375
Call : 'H160' ,
0 commit comments