viem 2.19.6 → 2.19.8

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 (76) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/_cjs/actions/wallet/writeContract.js +27 -6
  3. package/_cjs/actions/wallet/writeContract.js.map +1 -1
  4. package/_cjs/chains/definitions/b3.js +27 -0
  5. package/_cjs/chains/definitions/b3.js.map +1 -0
  6. package/_cjs/chains/definitions/b3Sepolia.js +1 -1
  7. package/_cjs/chains/definitions/b3Sepolia.js.map +1 -1
  8. package/_cjs/chains/definitions/cronoszkEVM.js +23 -0
  9. package/_cjs/chains/definitions/cronoszkEVM.js.map +1 -0
  10. package/_cjs/chains/definitions/immutableZkEvm.js +1 -0
  11. package/_cjs/chains/definitions/immutableZkEvm.js.map +1 -1
  12. package/_cjs/chains/index.js +11 -7
  13. package/_cjs/chains/index.js.map +1 -1
  14. package/_cjs/errors/version.js +1 -1
  15. package/_cjs/experimental/eip7702/utils/hashAuthorization.js +1 -5
  16. package/_cjs/experimental/eip7702/utils/hashAuthorization.js.map +1 -1
  17. package/_cjs/experimental/eip7702/utils/serializeAuthorizationList.js +1 -1
  18. package/_cjs/experimental/eip7702/utils/serializeAuthorizationList.js.map +1 -1
  19. package/_cjs/index.js.map +1 -1
  20. package/_cjs/op-stack/abis.js +666 -117
  21. package/_cjs/op-stack/abis.js.map +1 -1
  22. package/_cjs/op-stack/actions/getWithdrawalStatus.js +4 -1
  23. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  24. package/_esm/actions/wallet/writeContract.js +27 -6
  25. package/_esm/actions/wallet/writeContract.js.map +1 -1
  26. package/_esm/chains/definitions/b3.js +24 -0
  27. package/_esm/chains/definitions/b3.js.map +1 -0
  28. package/_esm/chains/definitions/b3Sepolia.js +1 -1
  29. package/_esm/chains/definitions/b3Sepolia.js.map +1 -1
  30. package/_esm/chains/definitions/cronoszkEVM.js +20 -0
  31. package/_esm/chains/definitions/cronoszkEVM.js.map +1 -0
  32. package/_esm/chains/definitions/immutableZkEvm.js +1 -0
  33. package/_esm/chains/definitions/immutableZkEvm.js.map +1 -1
  34. package/_esm/chains/index.js +2 -0
  35. package/_esm/chains/index.js.map +1 -1
  36. package/_esm/errors/version.js +1 -1
  37. package/_esm/experimental/eip7702/utils/hashAuthorization.js +1 -5
  38. package/_esm/experimental/eip7702/utils/hashAuthorization.js.map +1 -1
  39. package/_esm/experimental/eip7702/utils/serializeAuthorizationList.js +1 -1
  40. package/_esm/experimental/eip7702/utils/serializeAuthorizationList.js.map +1 -1
  41. package/_esm/index.js.map +1 -1
  42. package/_esm/op-stack/abis.js +666 -117
  43. package/_esm/op-stack/abis.js.map +1 -1
  44. package/_esm/op-stack/actions/getWithdrawalStatus.js +4 -1
  45. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  46. package/_types/actions/wallet/writeContract.d.ts +4 -1
  47. package/_types/actions/wallet/writeContract.d.ts.map +1 -1
  48. package/_types/chains/definitions/b3.d.ts +35 -0
  49. package/_types/chains/definitions/b3.d.ts.map +1 -0
  50. package/_types/chains/definitions/b3Sepolia.d.ts +1 -1
  51. package/_types/chains/definitions/cronoszkEVM.d.ts +35 -0
  52. package/_types/chains/definitions/cronoszkEVM.d.ts.map +1 -0
  53. package/_types/chains/definitions/immutableZkEvm.d.ts +1 -0
  54. package/_types/chains/definitions/immutableZkEvm.d.ts.map +1 -1
  55. package/_types/chains/index.d.ts +2 -0
  56. package/_types/chains/index.d.ts.map +1 -1
  57. package/_types/errors/version.d.ts +1 -1
  58. package/_types/experimental/eip7702/utils/hashAuthorization.d.ts.map +1 -1
  59. package/_types/index.d.ts +1 -1
  60. package/_types/index.d.ts.map +1 -1
  61. package/_types/op-stack/abis.d.ts +269 -95
  62. package/_types/op-stack/abis.d.ts.map +1 -1
  63. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
  64. package/actions/wallet/writeContract.ts +54 -12
  65. package/chains/definitions/b3.ts +25 -0
  66. package/chains/definitions/b3Sepolia.ts +1 -1
  67. package/chains/definitions/cronoszkEVM.ts +20 -0
  68. package/chains/definitions/immutableZkEvm.ts +1 -0
  69. package/chains/index.ts +2 -0
  70. package/errors/version.ts +1 -1
  71. package/experimental/eip7702/utils/hashAuthorization.ts +1 -5
  72. package/experimental/eip7702/utils/serializeAuthorizationList.ts +1 -1
  73. package/index.ts +1 -0
  74. package/op-stack/abis.ts +666 -117
  75. package/op-stack/actions/getWithdrawalStatus.ts +4 -0
  76. package/package.json +1 -1
package/op-stack/abis.ts CHANGED
@@ -913,101 +913,119 @@ export const portal2Abi = [
913
913
  stateMutability: 'nonpayable',
914
914
  type: 'constructor',
915
915
  },
916
- { inputs: [], name: 'BadTarget', type: 'error' },
917
- { inputs: [], name: 'CallPaused', type: 'error' },
918
- { inputs: [], name: 'GasEstimation', type: 'error' },
919
- { inputs: [], name: 'LargeCalldata', type: 'error' },
920
- { inputs: [], name: 'OutOfGas', type: 'error' },
921
- { inputs: [], name: 'SmallGasLimit', type: 'error' },
922
- { inputs: [], name: 'Unauthorized', type: 'error' },
923
916
  {
924
- anonymous: false,
925
- inputs: [
926
- { indexed: false, internalType: 'uint8', name: 'version', type: 'uint8' },
927
- ],
928
- name: 'Initialized',
929
- type: 'event',
917
+ stateMutability: 'payable',
918
+ type: 'receive',
930
919
  },
931
920
  {
932
- anonymous: false,
933
- inputs: [
934
- { indexed: true, internalType: 'address', name: 'from', type: 'address' },
935
- { indexed: true, internalType: 'address', name: 'to', type: 'address' },
921
+ inputs: [],
922
+ name: 'balance',
923
+ outputs: [
936
924
  {
937
- indexed: true,
938
925
  internalType: 'uint256',
939
- name: 'version',
926
+ name: '',
940
927
  type: 'uint256',
941
928
  },
942
- {
943
- indexed: false,
944
- internalType: 'bytes',
945
- name: 'opaqueData',
946
- type: 'bytes',
947
- },
948
929
  ],
949
- name: 'TransactionDeposited',
950
- type: 'event',
930
+ stateMutability: 'view',
931
+ type: 'function',
951
932
  },
952
933
  {
953
- anonymous: false,
954
934
  inputs: [
955
935
  {
956
- indexed: true,
957
- internalType: 'bytes32',
958
- name: 'withdrawalHash',
959
- type: 'bytes32',
936
+ internalType: 'contract IDisputeGame',
937
+ name: '_disputeGame',
938
+ type: 'address',
960
939
  },
961
- { indexed: false, internalType: 'bool', name: 'success', type: 'bool' },
962
940
  ],
963
- name: 'WithdrawalFinalized',
964
- type: 'event',
941
+ name: 'blacklistDisputeGame',
942
+ outputs: [],
943
+ stateMutability: 'nonpayable',
944
+ type: 'function',
965
945
  },
966
946
  {
967
- anonymous: false,
968
947
  inputs: [
969
948
  {
970
- indexed: true,
971
949
  internalType: 'bytes32',
972
- name: 'withdrawalHash',
950
+ name: '_withdrawalHash',
973
951
  type: 'bytes32',
974
952
  },
975
- { indexed: true, internalType: 'address', name: 'from', type: 'address' },
976
- { indexed: true, internalType: 'address', name: 'to', type: 'address' },
977
- ],
978
- name: 'WithdrawalProven',
979
- type: 'event',
980
- },
981
- {
982
- inputs: [
983
953
  {
984
- internalType: 'contract IDisputeGame',
985
- name: '_disputeGame',
954
+ internalType: 'address',
955
+ name: '_proofSubmitter',
986
956
  type: 'address',
987
957
  },
988
958
  ],
989
- name: 'blacklistDisputeGame',
959
+ name: 'checkWithdrawal',
990
960
  outputs: [],
991
- stateMutability: 'nonpayable',
961
+ stateMutability: 'view',
992
962
  type: 'function',
993
963
  },
994
964
  {
995
965
  inputs: [
996
- { internalType: 'bytes32', name: '_withdrawalHash', type: 'bytes32' },
997
- { internalType: 'address', name: '_proofSubmitter', type: 'address' },
966
+ {
967
+ internalType: 'address',
968
+ name: '_to',
969
+ type: 'address',
970
+ },
971
+ {
972
+ internalType: 'uint256',
973
+ name: '_mint',
974
+ type: 'uint256',
975
+ },
976
+ {
977
+ internalType: 'uint256',
978
+ name: '_value',
979
+ type: 'uint256',
980
+ },
981
+ {
982
+ internalType: 'uint64',
983
+ name: '_gasLimit',
984
+ type: 'uint64',
985
+ },
986
+ {
987
+ internalType: 'bool',
988
+ name: '_isCreation',
989
+ type: 'bool',
990
+ },
991
+ {
992
+ internalType: 'bytes',
993
+ name: '_data',
994
+ type: 'bytes',
995
+ },
998
996
  ],
999
- name: 'checkWithdrawal',
997
+ name: 'depositERC20Transaction',
1000
998
  outputs: [],
1001
- stateMutability: 'view',
999
+ stateMutability: 'nonpayable',
1002
1000
  type: 'function',
1003
1001
  },
1004
1002
  {
1005
1003
  inputs: [
1006
- { internalType: 'address', name: '_to', type: 'address' },
1007
- { internalType: 'uint256', name: '_value', type: 'uint256' },
1008
- { internalType: 'uint64', name: '_gasLimit', type: 'uint64' },
1009
- { internalType: 'bool', name: '_isCreation', type: 'bool' },
1010
- { internalType: 'bytes', name: '_data', type: 'bytes' },
1004
+ {
1005
+ internalType: 'address',
1006
+ name: '_to',
1007
+ type: 'address',
1008
+ },
1009
+ {
1010
+ internalType: 'uint256',
1011
+ name: '_value',
1012
+ type: 'uint256',
1013
+ },
1014
+ {
1015
+ internalType: 'uint64',
1016
+ name: '_gasLimit',
1017
+ type: 'uint64',
1018
+ },
1019
+ {
1020
+ internalType: 'bool',
1021
+ name: '_isCreation',
1022
+ type: 'bool',
1023
+ },
1024
+ {
1025
+ internalType: 'bytes',
1026
+ name: '_data',
1027
+ type: 'bytes',
1028
+ },
1011
1029
  ],
1012
1030
  name: 'depositTransaction',
1013
1031
  outputs: [],
@@ -1016,10 +1034,20 @@ export const portal2Abi = [
1016
1034
  },
1017
1035
  {
1018
1036
  inputs: [
1019
- { internalType: 'contract IDisputeGame', name: '', type: 'address' },
1037
+ {
1038
+ internalType: 'contract IDisputeGame',
1039
+ name: '',
1040
+ type: 'address',
1041
+ },
1020
1042
  ],
1021
1043
  name: 'disputeGameBlacklist',
1022
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1044
+ outputs: [
1045
+ {
1046
+ internalType: 'bool',
1047
+ name: '',
1048
+ type: 'bool',
1049
+ },
1050
+ ],
1023
1051
  stateMutability: 'view',
1024
1052
  type: 'function',
1025
1053
  },
@@ -1039,7 +1067,13 @@ export const portal2Abi = [
1039
1067
  {
1040
1068
  inputs: [],
1041
1069
  name: 'disputeGameFinalityDelaySeconds',
1042
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1070
+ outputs: [
1071
+ {
1072
+ internalType: 'uint256',
1073
+ name: '',
1074
+ type: 'uint256',
1075
+ },
1076
+ ],
1043
1077
  stateMutability: 'view',
1044
1078
  type: 'function',
1045
1079
  },
@@ -1054,12 +1088,36 @@ export const portal2Abi = [
1054
1088
  inputs: [
1055
1089
  {
1056
1090
  components: [
1057
- { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1058
- { internalType: 'address', name: 'sender', type: 'address' },
1059
- { internalType: 'address', name: 'target', type: 'address' },
1060
- { internalType: 'uint256', name: 'value', type: 'uint256' },
1061
- { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
1062
- { internalType: 'bytes', name: 'data', type: 'bytes' },
1091
+ {
1092
+ internalType: 'uint256',
1093
+ name: 'nonce',
1094
+ type: 'uint256',
1095
+ },
1096
+ {
1097
+ internalType: 'address',
1098
+ name: 'sender',
1099
+ type: 'address',
1100
+ },
1101
+ {
1102
+ internalType: 'address',
1103
+ name: 'target',
1104
+ type: 'address',
1105
+ },
1106
+ {
1107
+ internalType: 'uint256',
1108
+ name: 'value',
1109
+ type: 'uint256',
1110
+ },
1111
+ {
1112
+ internalType: 'uint256',
1113
+ name: 'gasLimit',
1114
+ type: 'uint256',
1115
+ },
1116
+ {
1117
+ internalType: 'bytes',
1118
+ name: 'data',
1119
+ type: 'bytes',
1120
+ },
1063
1121
  ],
1064
1122
  internalType: 'struct Types.WithdrawalTransaction',
1065
1123
  name: '_tx',
@@ -1075,18 +1133,46 @@ export const portal2Abi = [
1075
1133
  inputs: [
1076
1134
  {
1077
1135
  components: [
1078
- { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1079
- { internalType: 'address', name: 'sender', type: 'address' },
1080
- { internalType: 'address', name: 'target', type: 'address' },
1081
- { internalType: 'uint256', name: 'value', type: 'uint256' },
1082
- { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
1083
- { internalType: 'bytes', name: 'data', type: 'bytes' },
1136
+ {
1137
+ internalType: 'uint256',
1138
+ name: 'nonce',
1139
+ type: 'uint256',
1140
+ },
1141
+ {
1142
+ internalType: 'address',
1143
+ name: 'sender',
1144
+ type: 'address',
1145
+ },
1146
+ {
1147
+ internalType: 'address',
1148
+ name: 'target',
1149
+ type: 'address',
1150
+ },
1151
+ {
1152
+ internalType: 'uint256',
1153
+ name: 'value',
1154
+ type: 'uint256',
1155
+ },
1156
+ {
1157
+ internalType: 'uint256',
1158
+ name: 'gasLimit',
1159
+ type: 'uint256',
1160
+ },
1161
+ {
1162
+ internalType: 'bytes',
1163
+ name: 'data',
1164
+ type: 'bytes',
1165
+ },
1084
1166
  ],
1085
1167
  internalType: 'struct Types.WithdrawalTransaction',
1086
1168
  name: '_tx',
1087
1169
  type: 'tuple',
1088
1170
  },
1089
- { internalType: 'address', name: '_proofSubmitter', type: 'address' },
1171
+ {
1172
+ internalType: 'address',
1173
+ name: '_proofSubmitter',
1174
+ type: 'address',
1175
+ },
1090
1176
  ],
1091
1177
  name: 'finalizeWithdrawalTransactionExternalProof',
1092
1178
  outputs: [],
@@ -1094,16 +1180,34 @@ export const portal2Abi = [
1094
1180
  type: 'function',
1095
1181
  },
1096
1182
  {
1097
- inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1183
+ inputs: [
1184
+ {
1185
+ internalType: 'bytes32',
1186
+ name: '',
1187
+ type: 'bytes32',
1188
+ },
1189
+ ],
1098
1190
  name: 'finalizedWithdrawals',
1099
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1191
+ outputs: [
1192
+ {
1193
+ internalType: 'bool',
1194
+ name: '',
1195
+ type: 'bool',
1196
+ },
1197
+ ],
1100
1198
  stateMutability: 'view',
1101
1199
  type: 'function',
1102
1200
  },
1103
1201
  {
1104
1202
  inputs: [],
1105
1203
  name: 'guardian',
1106
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
1204
+ outputs: [
1205
+ {
1206
+ internalType: 'address',
1207
+ name: '',
1208
+ type: 'address',
1209
+ },
1210
+ ],
1107
1211
  stateMutability: 'view',
1108
1212
  type: 'function',
1109
1213
  },
@@ -1138,23 +1242,51 @@ export const portal2Abi = [
1138
1242
  {
1139
1243
  inputs: [],
1140
1244
  name: 'l2Sender',
1141
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
1245
+ outputs: [
1246
+ {
1247
+ internalType: 'address',
1248
+ name: '',
1249
+ type: 'address',
1250
+ },
1251
+ ],
1142
1252
  stateMutability: 'view',
1143
1253
  type: 'function',
1144
1254
  },
1145
1255
  {
1146
- inputs: [{ internalType: 'uint64', name: '_byteCount', type: 'uint64' }],
1256
+ inputs: [
1257
+ {
1258
+ internalType: 'uint64',
1259
+ name: '_byteCount',
1260
+ type: 'uint64',
1261
+ },
1262
+ ],
1147
1263
  name: 'minimumGasLimit',
1148
- outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
1264
+ outputs: [
1265
+ {
1266
+ internalType: 'uint64',
1267
+ name: '',
1268
+ type: 'uint64',
1269
+ },
1270
+ ],
1149
1271
  stateMutability: 'pure',
1150
1272
  type: 'function',
1151
1273
  },
1152
1274
  {
1153
1275
  inputs: [
1154
- { internalType: 'bytes32', name: '_withdrawalHash', type: 'bytes32' },
1276
+ {
1277
+ internalType: 'bytes32',
1278
+ name: '_withdrawalHash',
1279
+ type: 'bytes32',
1280
+ },
1155
1281
  ],
1156
1282
  name: 'numProofSubmitters',
1157
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1283
+ outputs: [
1284
+ {
1285
+ internalType: 'uint256',
1286
+ name: '',
1287
+ type: 'uint256',
1288
+ },
1289
+ ],
1158
1290
  stateMutability: 'view',
1159
1291
  type: 'function',
1160
1292
  },
@@ -1162,9 +1294,21 @@ export const portal2Abi = [
1162
1294
  inputs: [],
1163
1295
  name: 'params',
1164
1296
  outputs: [
1165
- { internalType: 'uint128', name: 'prevBaseFee', type: 'uint128' },
1166
- { internalType: 'uint64', name: 'prevBoughtGas', type: 'uint64' },
1167
- { internalType: 'uint64', name: 'prevBlockNum', type: 'uint64' },
1297
+ {
1298
+ internalType: 'uint128',
1299
+ name: 'prevBaseFee',
1300
+ type: 'uint128',
1301
+ },
1302
+ {
1303
+ internalType: 'uint64',
1304
+ name: 'prevBoughtGas',
1305
+ type: 'uint64',
1306
+ },
1307
+ {
1308
+ internalType: 'uint64',
1309
+ name: 'prevBlockNum',
1310
+ type: 'uint64',
1311
+ },
1168
1312
  ],
1169
1313
  stateMutability: 'view',
1170
1314
  type: 'function',
@@ -1172,24 +1316,50 @@ export const portal2Abi = [
1172
1316
  {
1173
1317
  inputs: [],
1174
1318
  name: 'paused',
1175
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1319
+ outputs: [
1320
+ {
1321
+ internalType: 'bool',
1322
+ name: '',
1323
+ type: 'bool',
1324
+ },
1325
+ ],
1176
1326
  stateMutability: 'view',
1177
1327
  type: 'function',
1178
1328
  },
1179
1329
  {
1180
1330
  inputs: [],
1181
1331
  name: 'proofMaturityDelaySeconds',
1182
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1332
+ outputs: [
1333
+ {
1334
+ internalType: 'uint256',
1335
+ name: '',
1336
+ type: 'uint256',
1337
+ },
1338
+ ],
1183
1339
  stateMutability: 'view',
1184
1340
  type: 'function',
1185
1341
  },
1186
1342
  {
1187
1343
  inputs: [
1188
- { internalType: 'bytes32', name: '', type: 'bytes32' },
1189
- { internalType: 'uint256', name: '', type: 'uint256' },
1344
+ {
1345
+ internalType: 'bytes32',
1346
+ name: '',
1347
+ type: 'bytes32',
1348
+ },
1349
+ {
1350
+ internalType: 'uint256',
1351
+ name: '',
1352
+ type: 'uint256',
1353
+ },
1190
1354
  ],
1191
1355
  name: 'proofSubmitters',
1192
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
1356
+ outputs: [
1357
+ {
1358
+ internalType: 'address',
1359
+ name: '',
1360
+ type: 'address',
1361
+ },
1362
+ ],
1193
1363
  stateMutability: 'view',
1194
1364
  type: 'function',
1195
1365
  },
@@ -1197,34 +1367,78 @@ export const portal2Abi = [
1197
1367
  inputs: [
1198
1368
  {
1199
1369
  components: [
1200
- { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1201
- { internalType: 'address', name: 'sender', type: 'address' },
1202
- { internalType: 'address', name: 'target', type: 'address' },
1203
- { internalType: 'uint256', name: 'value', type: 'uint256' },
1204
- { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
1205
- { internalType: 'bytes', name: 'data', type: 'bytes' },
1206
- ],
1207
- internalType: 'struct Types.WithdrawalTransaction',
1208
- name: '_tx',
1209
- type: 'tuple',
1370
+ {
1371
+ internalType: 'uint256',
1372
+ name: 'nonce',
1373
+ type: 'uint256',
1374
+ },
1375
+ {
1376
+ internalType: 'address',
1377
+ name: 'sender',
1378
+ type: 'address',
1379
+ },
1380
+ {
1381
+ internalType: 'address',
1382
+ name: 'target',
1383
+ type: 'address',
1384
+ },
1385
+ {
1386
+ internalType: 'uint256',
1387
+ name: 'value',
1388
+ type: 'uint256',
1389
+ },
1390
+ {
1391
+ internalType: 'uint256',
1392
+ name: 'gasLimit',
1393
+ type: 'uint256',
1394
+ },
1395
+ {
1396
+ internalType: 'bytes',
1397
+ name: 'data',
1398
+ type: 'bytes',
1399
+ },
1400
+ ],
1401
+ internalType: 'struct Types.WithdrawalTransaction',
1402
+ name: '_tx',
1403
+ type: 'tuple',
1404
+ },
1405
+ {
1406
+ internalType: 'uint256',
1407
+ name: '_disputeGameIndex',
1408
+ type: 'uint256',
1210
1409
  },
1211
- { internalType: 'uint256', name: '_disputeGameIndex', type: 'uint256' },
1212
1410
  {
1213
1411
  components: [
1214
- { internalType: 'bytes32', name: 'version', type: 'bytes32' },
1215
- { internalType: 'bytes32', name: 'stateRoot', type: 'bytes32' },
1412
+ {
1413
+ internalType: 'bytes32',
1414
+ name: 'version',
1415
+ type: 'bytes32',
1416
+ },
1417
+ {
1418
+ internalType: 'bytes32',
1419
+ name: 'stateRoot',
1420
+ type: 'bytes32',
1421
+ },
1216
1422
  {
1217
1423
  internalType: 'bytes32',
1218
1424
  name: 'messagePasserStorageRoot',
1219
1425
  type: 'bytes32',
1220
1426
  },
1221
- { internalType: 'bytes32', name: 'latestBlockhash', type: 'bytes32' },
1427
+ {
1428
+ internalType: 'bytes32',
1429
+ name: 'latestBlockhash',
1430
+ type: 'bytes32',
1431
+ },
1222
1432
  ],
1223
1433
  internalType: 'struct Types.OutputRootProof',
1224
1434
  name: '_outputRootProof',
1225
1435
  type: 'tuple',
1226
1436
  },
1227
- { internalType: 'bytes[]', name: '_withdrawalProof', type: 'bytes[]' },
1437
+ {
1438
+ internalType: 'bytes[]',
1439
+ name: '_withdrawalProof',
1440
+ type: 'bytes[]',
1441
+ },
1228
1442
  ],
1229
1443
  name: 'proveWithdrawalTransaction',
1230
1444
  outputs: [],
@@ -1233,8 +1447,16 @@ export const portal2Abi = [
1233
1447
  },
1234
1448
  {
1235
1449
  inputs: [
1236
- { internalType: 'bytes32', name: '', type: 'bytes32' },
1237
- { internalType: 'address', name: '', type: 'address' },
1450
+ {
1451
+ internalType: 'bytes32',
1452
+ name: '',
1453
+ type: 'bytes32',
1454
+ },
1455
+ {
1456
+ internalType: 'address',
1457
+ name: '',
1458
+ type: 'address',
1459
+ },
1238
1460
  ],
1239
1461
  name: 'provenWithdrawals',
1240
1462
  outputs: [
@@ -1243,7 +1465,11 @@ export const portal2Abi = [
1243
1465
  name: 'disputeGameProxy',
1244
1466
  type: 'address',
1245
1467
  },
1246
- { internalType: 'uint64', name: 'timestamp', type: 'uint64' },
1468
+ {
1469
+ internalType: 'uint64',
1470
+ name: 'timestamp',
1471
+ type: 'uint64',
1472
+ },
1247
1473
  ],
1248
1474
  stateMutability: 'view',
1249
1475
  type: 'function',
@@ -1251,19 +1477,65 @@ export const portal2Abi = [
1251
1477
  {
1252
1478
  inputs: [],
1253
1479
  name: 'respectedGameType',
1254
- outputs: [{ internalType: 'GameType', name: '', type: 'uint32' }],
1480
+ outputs: [
1481
+ {
1482
+ internalType: 'GameType',
1483
+ name: '',
1484
+ type: 'uint32',
1485
+ },
1486
+ ],
1255
1487
  stateMutability: 'view',
1256
1488
  type: 'function',
1257
1489
  },
1258
1490
  {
1259
1491
  inputs: [],
1260
1492
  name: 'respectedGameTypeUpdatedAt',
1261
- outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
1493
+ outputs: [
1494
+ {
1495
+ internalType: 'uint64',
1496
+ name: '',
1497
+ type: 'uint64',
1498
+ },
1499
+ ],
1262
1500
  stateMutability: 'view',
1263
1501
  type: 'function',
1264
1502
  },
1265
1503
  {
1266
- inputs: [{ internalType: 'GameType', name: '_gameType', type: 'uint32' }],
1504
+ inputs: [
1505
+ {
1506
+ internalType: 'address',
1507
+ name: '_token',
1508
+ type: 'address',
1509
+ },
1510
+ {
1511
+ internalType: 'uint8',
1512
+ name: '_decimals',
1513
+ type: 'uint8',
1514
+ },
1515
+ {
1516
+ internalType: 'bytes32',
1517
+ name: '_name',
1518
+ type: 'bytes32',
1519
+ },
1520
+ {
1521
+ internalType: 'bytes32',
1522
+ name: '_symbol',
1523
+ type: 'bytes32',
1524
+ },
1525
+ ],
1526
+ name: 'setGasPayingToken',
1527
+ outputs: [],
1528
+ stateMutability: 'nonpayable',
1529
+ type: 'function',
1530
+ },
1531
+ {
1532
+ inputs: [
1533
+ {
1534
+ internalType: 'GameType',
1535
+ name: '_gameType',
1536
+ type: 'uint32',
1537
+ },
1538
+ ],
1267
1539
  name: 'setRespectedGameType',
1268
1540
  outputs: [],
1269
1541
  stateMutability: 'nonpayable',
@@ -1273,7 +1545,11 @@ export const portal2Abi = [
1273
1545
  inputs: [],
1274
1546
  name: 'superchainConfig',
1275
1547
  outputs: [
1276
- { internalType: 'contract SuperchainConfig', name: '', type: 'address' },
1548
+ {
1549
+ internalType: 'contract SuperchainConfig',
1550
+ name: '',
1551
+ type: 'address',
1552
+ },
1277
1553
  ],
1278
1554
  stateMutability: 'view',
1279
1555
  type: 'function',
@@ -1282,7 +1558,11 @@ export const portal2Abi = [
1282
1558
  inputs: [],
1283
1559
  name: 'systemConfig',
1284
1560
  outputs: [
1285
- { internalType: 'contract SystemConfig', name: '', type: 'address' },
1561
+ {
1562
+ internalType: 'contract SystemConfig',
1563
+ name: '',
1564
+ type: 'address',
1565
+ },
1286
1566
  ],
1287
1567
  stateMutability: 'view',
1288
1568
  type: 'function',
@@ -1290,11 +1570,280 @@ export const portal2Abi = [
1290
1570
  {
1291
1571
  inputs: [],
1292
1572
  name: 'version',
1293
- outputs: [{ internalType: 'string', name: '', type: 'string' }],
1294
- stateMutability: 'view',
1573
+ outputs: [
1574
+ {
1575
+ internalType: 'string',
1576
+ name: '',
1577
+ type: 'string',
1578
+ },
1579
+ ],
1580
+ stateMutability: 'pure',
1295
1581
  type: 'function',
1296
1582
  },
1297
- { stateMutability: 'payable', type: 'receive' },
1583
+ {
1584
+ anonymous: false,
1585
+ inputs: [
1586
+ {
1587
+ indexed: true,
1588
+ internalType: 'contract IDisputeGame',
1589
+ name: 'disputeGame',
1590
+ type: 'address',
1591
+ },
1592
+ ],
1593
+ name: 'DisputeGameBlacklisted',
1594
+ type: 'event',
1595
+ },
1596
+ {
1597
+ anonymous: false,
1598
+ inputs: [
1599
+ {
1600
+ indexed: false,
1601
+ internalType: 'uint8',
1602
+ name: 'version',
1603
+ type: 'uint8',
1604
+ },
1605
+ ],
1606
+ name: 'Initialized',
1607
+ type: 'event',
1608
+ },
1609
+ {
1610
+ anonymous: false,
1611
+ inputs: [
1612
+ {
1613
+ indexed: true,
1614
+ internalType: 'GameType',
1615
+ name: 'newGameType',
1616
+ type: 'uint32',
1617
+ },
1618
+ {
1619
+ indexed: true,
1620
+ internalType: 'Timestamp',
1621
+ name: 'updatedAt',
1622
+ type: 'uint64',
1623
+ },
1624
+ ],
1625
+ name: 'RespectedGameTypeSet',
1626
+ type: 'event',
1627
+ },
1628
+ {
1629
+ anonymous: false,
1630
+ inputs: [
1631
+ {
1632
+ indexed: true,
1633
+ internalType: 'address',
1634
+ name: 'from',
1635
+ type: 'address',
1636
+ },
1637
+ {
1638
+ indexed: true,
1639
+ internalType: 'address',
1640
+ name: 'to',
1641
+ type: 'address',
1642
+ },
1643
+ {
1644
+ indexed: true,
1645
+ internalType: 'uint256',
1646
+ name: 'version',
1647
+ type: 'uint256',
1648
+ },
1649
+ {
1650
+ indexed: false,
1651
+ internalType: 'bytes',
1652
+ name: 'opaqueData',
1653
+ type: 'bytes',
1654
+ },
1655
+ ],
1656
+ name: 'TransactionDeposited',
1657
+ type: 'event',
1658
+ },
1659
+ {
1660
+ anonymous: false,
1661
+ inputs: [
1662
+ {
1663
+ indexed: true,
1664
+ internalType: 'bytes32',
1665
+ name: 'withdrawalHash',
1666
+ type: 'bytes32',
1667
+ },
1668
+ {
1669
+ indexed: false,
1670
+ internalType: 'bool',
1671
+ name: 'success',
1672
+ type: 'bool',
1673
+ },
1674
+ ],
1675
+ name: 'WithdrawalFinalized',
1676
+ type: 'event',
1677
+ },
1678
+ {
1679
+ anonymous: false,
1680
+ inputs: [
1681
+ {
1682
+ indexed: true,
1683
+ internalType: 'bytes32',
1684
+ name: 'withdrawalHash',
1685
+ type: 'bytes32',
1686
+ },
1687
+ {
1688
+ indexed: true,
1689
+ internalType: 'address',
1690
+ name: 'from',
1691
+ type: 'address',
1692
+ },
1693
+ {
1694
+ indexed: true,
1695
+ internalType: 'address',
1696
+ name: 'to',
1697
+ type: 'address',
1698
+ },
1699
+ ],
1700
+ name: 'WithdrawalProven',
1701
+ type: 'event',
1702
+ },
1703
+ {
1704
+ anonymous: false,
1705
+ inputs: [
1706
+ {
1707
+ indexed: true,
1708
+ internalType: 'bytes32',
1709
+ name: 'withdrawalHash',
1710
+ type: 'bytes32',
1711
+ },
1712
+ {
1713
+ indexed: true,
1714
+ internalType: 'address',
1715
+ name: 'proofSubmitter',
1716
+ type: 'address',
1717
+ },
1718
+ ],
1719
+ name: 'WithdrawalProvenExtension1',
1720
+ type: 'event',
1721
+ },
1722
+ {
1723
+ inputs: [],
1724
+ name: 'AlreadyFinalized',
1725
+ type: 'error',
1726
+ },
1727
+ {
1728
+ inputs: [],
1729
+ name: 'BadTarget',
1730
+ type: 'error',
1731
+ },
1732
+ {
1733
+ inputs: [],
1734
+ name: 'Blacklisted',
1735
+ type: 'error',
1736
+ },
1737
+ {
1738
+ inputs: [],
1739
+ name: 'CallPaused',
1740
+ type: 'error',
1741
+ },
1742
+ {
1743
+ inputs: [],
1744
+ name: 'ContentLengthMismatch',
1745
+ type: 'error',
1746
+ },
1747
+ {
1748
+ inputs: [],
1749
+ name: 'EmptyItem',
1750
+ type: 'error',
1751
+ },
1752
+ {
1753
+ inputs: [],
1754
+ name: 'GasEstimation',
1755
+ type: 'error',
1756
+ },
1757
+ {
1758
+ inputs: [],
1759
+ name: 'InvalidDataRemainder',
1760
+ type: 'error',
1761
+ },
1762
+ {
1763
+ inputs: [],
1764
+ name: 'InvalidDisputeGame',
1765
+ type: 'error',
1766
+ },
1767
+ {
1768
+ inputs: [],
1769
+ name: 'InvalidGameType',
1770
+ type: 'error',
1771
+ },
1772
+ {
1773
+ inputs: [],
1774
+ name: 'InvalidHeader',
1775
+ type: 'error',
1776
+ },
1777
+ {
1778
+ inputs: [],
1779
+ name: 'InvalidMerkleProof',
1780
+ type: 'error',
1781
+ },
1782
+ {
1783
+ inputs: [],
1784
+ name: 'InvalidProof',
1785
+ type: 'error',
1786
+ },
1787
+ {
1788
+ inputs: [],
1789
+ name: 'LargeCalldata',
1790
+ type: 'error',
1791
+ },
1792
+ {
1793
+ inputs: [],
1794
+ name: 'NoValue',
1795
+ type: 'error',
1796
+ },
1797
+ {
1798
+ inputs: [],
1799
+ name: 'NonReentrant',
1800
+ type: 'error',
1801
+ },
1802
+ {
1803
+ inputs: [],
1804
+ name: 'OnlyCustomGasToken',
1805
+ type: 'error',
1806
+ },
1807
+ {
1808
+ inputs: [],
1809
+ name: 'OutOfGas',
1810
+ type: 'error',
1811
+ },
1812
+ {
1813
+ inputs: [],
1814
+ name: 'ProposalNotValidated',
1815
+ type: 'error',
1816
+ },
1817
+ {
1818
+ inputs: [],
1819
+ name: 'SmallGasLimit',
1820
+ type: 'error',
1821
+ },
1822
+ {
1823
+ inputs: [],
1824
+ name: 'TransferFailed',
1825
+ type: 'error',
1826
+ },
1827
+ {
1828
+ inputs: [],
1829
+ name: 'Unauthorized',
1830
+ type: 'error',
1831
+ },
1832
+ {
1833
+ inputs: [],
1834
+ name: 'UnexpectedList',
1835
+ type: 'error',
1836
+ },
1837
+ {
1838
+ inputs: [],
1839
+ name: 'UnexpectedString',
1840
+ type: 'error',
1841
+ },
1842
+ {
1843
+ inputs: [],
1844
+ name: 'Unproven',
1845
+ type: 'error',
1846
+ },
1298
1847
  ] as const
1299
1848
 
1300
1849
  export const portalAbi = [