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