viem 2.19.6 → 2.19.8

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