genlayer-js 0.9.5 → 0.11.0

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.
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  chains_exports,
3
3
  localnet,
4
+ studionet,
4
5
  testnetAsimov
5
- } from "./chunk-4FVQ3G7J.js";
6
+ } from "./chunk-565IJBV4.js";
6
7
  import {
7
8
  CalldataAddress,
8
9
  transactionResultNumberToName,
@@ -472,13 +473,19 @@ var contractActions = (client, publicClient) => {
472
473
  } = args;
473
474
  const data = [encode(makeCalldataObject(functionName, callArgs, kwargs)), leaderOnly];
474
475
  const serializedData = serialize(data);
475
- return _sendTransaction({
476
+ const senderAccount = account || client.account;
477
+ const encodedData = _encodeAddTransactionData({
476
478
  client,
477
- publicClient,
479
+ senderAccount,
478
480
  recipient: address,
479
481
  data: serializedData,
480
- senderAccount: account || client.account,
481
- consensusMaxRotations,
482
+ consensusMaxRotations
483
+ });
484
+ return _sendTransaction({
485
+ client,
486
+ publicClient,
487
+ encodedData,
488
+ senderAccount,
482
489
  value
483
490
  });
484
491
  },
@@ -497,55 +504,93 @@ var contractActions = (client, publicClient) => {
497
504
  leaderOnly
498
505
  ];
499
506
  const serializedData = serialize(data);
500
- return _sendTransaction({
507
+ const senderAccount = account || client.account;
508
+ const encodedData = _encodeAddTransactionData({
501
509
  client,
502
- publicClient,
510
+ senderAccount,
503
511
  recipient: zeroAddress,
504
512
  data: serializedData,
505
- senderAccount: account || client.account,
506
513
  consensusMaxRotations
507
514
  });
515
+ return _sendTransaction({
516
+ client,
517
+ publicClient,
518
+ encodedData,
519
+ senderAccount
520
+ });
521
+ },
522
+ appealTransaction: async (args) => {
523
+ const { account, txId } = args;
524
+ const senderAccount = account || client.account;
525
+ const encodedData = _encodeSubmitAppealData({ client, txId });
526
+ return _sendTransaction({
527
+ client,
528
+ publicClient,
529
+ encodedData,
530
+ senderAccount
531
+ });
508
532
  }
509
533
  };
510
534
  };
511
- var _sendTransaction = async ({
512
- client,
513
- publicClient,
514
- recipient,
515
- data,
516
- senderAccount,
517
- consensusMaxRotations,
518
- value
519
- }) => {
520
- if (!senderAccount) {
535
+ var validateAccount = (Account3) => {
536
+ if (!Account3) {
521
537
  throw new Error(
522
538
  "No account set. Configure the client with an account or pass an account to this function."
523
539
  );
524
540
  }
525
- if (!client.chain.consensusMainContract?.address) {
526
- throw new Error("Consensus main contract not initialized. Please ensure client is properly initialized.");
527
- }
528
- const encodedData = encodeFunctionData({
541
+ return Account3;
542
+ };
543
+ var _encodeAddTransactionData = ({
544
+ client,
545
+ senderAccount,
546
+ recipient,
547
+ data,
548
+ consensusMaxRotations = client.chain.defaultConsensusMaxRotations
549
+ }) => {
550
+ const validatedSenderAccount = validateAccount(senderAccount);
551
+ return encodeFunctionData({
529
552
  abi: client.chain.consensusMainContract?.abi,
530
553
  functionName: "addTransaction",
531
554
  args: [
532
- senderAccount.address,
555
+ validatedSenderAccount.address,
533
556
  recipient,
534
557
  client.chain.defaultNumberOfInitialValidators,
535
558
  consensusMaxRotations,
536
559
  data
537
560
  ]
538
561
  });
539
- const nonce = await client.getCurrentNonce({ address: senderAccount.address });
562
+ };
563
+ var _encodeSubmitAppealData = ({
564
+ client,
565
+ txId
566
+ }) => {
567
+ return encodeFunctionData({
568
+ abi: client.chain.consensusMainContract?.abi,
569
+ functionName: "submitAppeal",
570
+ args: [txId]
571
+ });
572
+ };
573
+ var _sendTransaction = async ({
574
+ client,
575
+ publicClient,
576
+ encodedData,
577
+ senderAccount,
578
+ value = 0n
579
+ }) => {
580
+ if (!client.chain.consensusMainContract?.address) {
581
+ throw new Error("Consensus main contract not initialized. Please ensure client is properly initialized.");
582
+ }
583
+ const validatedSenderAccount = validateAccount(senderAccount);
584
+ const nonce = await client.getCurrentNonce({ address: validatedSenderAccount.address });
540
585
  const transactionRequest = await client.prepareTransactionRequest({
541
- account: senderAccount,
586
+ account: validatedSenderAccount,
542
587
  to: client.chain.consensusMainContract?.address,
543
588
  data: encodedData,
544
589
  type: "legacy",
545
590
  nonce: Number(nonce),
546
- value: value ?? 0n
591
+ value
547
592
  });
548
- if (senderAccount?.type !== "local") {
593
+ if (validatedSenderAccount?.type !== "local") {
549
594
  const formattedRequest = {
550
595
  from: transactionRequest.from,
551
596
  to: transactionRequest.to,
@@ -557,10 +602,10 @@ var _sendTransaction = async ({
557
602
  params: [formattedRequest]
558
603
  });
559
604
  }
560
- if (!senderAccount?.signTransaction) {
605
+ if (!validatedSenderAccount?.signTransaction) {
561
606
  throw new Error("Account does not support signTransaction");
562
607
  }
563
- const serializedTransaction = await senderAccount.signTransaction(transactionRequest);
608
+ const serializedTransaction = await validatedSenderAccount.signTransaction(transactionRequest);
564
609
  const txHash = await client.sendRawTransaction({ serializedTransaction });
565
610
  const receipt = await publicClient.waitForTransactionReceipt({ hash: txHash });
566
611
  if (receipt.status === "reverted") {
@@ -804,4018 +849,6 @@ var _decodeLocalnetTransaction = (tx) => {
804
849
  return tx;
805
850
  };
806
851
 
807
- // src/chains/studionet.ts
808
- import { defineChain } from "viem";
809
- var SIMULATOR_JSON_RPC_URL = "https://studio.genlayer.com/api";
810
- var EXPLORER_URL = "https://genlayer-explorer.vercel.app";
811
- var CONSENSUS_MAIN_CONTRACT = {
812
- address: "0xb7278A61aa25c888815aFC32Ad3cC52fF24fE575",
813
- abi: [
814
- {
815
- inputs: [],
816
- name: "AccessControlBadConfirmation",
817
- type: "error"
818
- },
819
- {
820
- inputs: [
821
- {
822
- internalType: "address",
823
- name: "account",
824
- type: "address"
825
- },
826
- {
827
- internalType: "bytes32",
828
- name: "neededRole",
829
- type: "bytes32"
830
- }
831
- ],
832
- name: "AccessControlUnauthorizedAccount",
833
- type: "error"
834
- },
835
- {
836
- inputs: [],
837
- name: "CallerNotMessages",
838
- type: "error"
839
- },
840
- {
841
- inputs: [],
842
- name: "CanNotAppeal",
843
- type: "error"
844
- },
845
- {
846
- inputs: [],
847
- name: "EmptyTransaction",
848
- type: "error"
849
- },
850
- {
851
- inputs: [],
852
- name: "FinalizationNotAllowed",
853
- type: "error"
854
- },
855
- {
856
- inputs: [],
857
- name: "InvalidAddress",
858
- type: "error"
859
- },
860
- {
861
- inputs: [],
862
- name: "InvalidGhostContract",
863
- type: "error"
864
- },
865
- {
866
- inputs: [],
867
- name: "InvalidInitialization",
868
- type: "error"
869
- },
870
- {
871
- inputs: [],
872
- name: "InvalidVote",
873
- type: "error"
874
- },
875
- {
876
- inputs: [],
877
- name: "MaxNumOfIterationsInPendingQueueReached",
878
- type: "error"
879
- },
880
- {
881
- inputs: [
882
- {
883
- internalType: "uint256",
884
- name: "numOfMessages",
885
- type: "uint256"
886
- },
887
- {
888
- internalType: "uint256",
889
- name: "maxAllocatedMessages",
890
- type: "uint256"
891
- }
892
- ],
893
- name: "MaxNumOfMessagesExceeded",
894
- type: "error"
895
- },
896
- {
897
- inputs: [],
898
- name: "NonGenVMContract",
899
- type: "error"
900
- },
901
- {
902
- inputs: [],
903
- name: "NotInitializing",
904
- type: "error"
905
- },
906
- {
907
- inputs: [
908
- {
909
- internalType: "address",
910
- name: "owner",
911
- type: "address"
912
- }
913
- ],
914
- name: "OwnableInvalidOwner",
915
- type: "error"
916
- },
917
- {
918
- inputs: [
919
- {
920
- internalType: "address",
921
- name: "account",
922
- type: "address"
923
- }
924
- ],
925
- name: "OwnableUnauthorizedAccount",
926
- type: "error"
927
- },
928
- {
929
- inputs: [],
930
- name: "ReentrancyGuardReentrantCall",
931
- type: "error"
932
- },
933
- {
934
- inputs: [],
935
- name: "TransactionNotAtPendingQueueHead",
936
- type: "error"
937
- },
938
- {
939
- anonymous: false,
940
- inputs: [
941
- {
942
- indexed: true,
943
- internalType: "bytes32",
944
- name: "txId",
945
- type: "bytes32"
946
- },
947
- {
948
- indexed: true,
949
- internalType: "address",
950
- name: "appealer",
951
- type: "address"
952
- },
953
- {
954
- indexed: false,
955
- internalType: "uint256",
956
- name: "appealBond",
957
- type: "uint256"
958
- },
959
- {
960
- indexed: false,
961
- internalType: "address[]",
962
- name: "appealValidators",
963
- type: "address[]"
964
- }
965
- ],
966
- name: "AppealStarted",
967
- type: "event"
968
- },
969
- {
970
- anonymous: false,
971
- inputs: [
972
- {
973
- indexed: true,
974
- internalType: "bytes32",
975
- name: "txId",
976
- type: "bytes32"
977
- },
978
- {
979
- indexed: true,
980
- internalType: "address",
981
- name: "recipient",
982
- type: "address"
983
- },
984
- {
985
- indexed: false,
986
- internalType: "bytes",
987
- name: "data",
988
- type: "bytes"
989
- }
990
- ],
991
- name: "ErrorMessage",
992
- type: "event"
993
- },
994
- {
995
- anonymous: false,
996
- inputs: [
997
- {
998
- indexed: false,
999
- internalType: "address",
1000
- name: "ghostFactory",
1001
- type: "address"
1002
- },
1003
- {
1004
- indexed: false,
1005
- internalType: "address",
1006
- name: "genManager",
1007
- type: "address"
1008
- },
1009
- {
1010
- indexed: false,
1011
- internalType: "address",
1012
- name: "genTransactions",
1013
- type: "address"
1014
- },
1015
- {
1016
- indexed: false,
1017
- internalType: "address",
1018
- name: "genQueue",
1019
- type: "address"
1020
- },
1021
- {
1022
- indexed: false,
1023
- internalType: "address",
1024
- name: "genStaking",
1025
- type: "address"
1026
- },
1027
- {
1028
- indexed: false,
1029
- internalType: "address",
1030
- name: "genMessages",
1031
- type: "address"
1032
- },
1033
- {
1034
- indexed: false,
1035
- internalType: "address",
1036
- name: "idleness",
1037
- type: "address"
1038
- },
1039
- {
1040
- indexed: false,
1041
- internalType: "address",
1042
- name: "tribunalAppeal",
1043
- type: "address"
1044
- }
1045
- ],
1046
- name: "ExternalContractsSet",
1047
- type: "event"
1048
- },
1049
- {
1050
- anonymous: false,
1051
- inputs: [
1052
- {
1053
- indexed: false,
1054
- internalType: "uint64",
1055
- name: "version",
1056
- type: "uint64"
1057
- }
1058
- ],
1059
- name: "Initialized",
1060
- type: "event"
1061
- },
1062
- {
1063
- anonymous: false,
1064
- inputs: [
1065
- {
1066
- indexed: true,
1067
- internalType: "bytes32",
1068
- name: "txId",
1069
- type: "bytes32"
1070
- },
1071
- {
1072
- indexed: true,
1073
- internalType: "address",
1074
- name: "recipient",
1075
- type: "address"
1076
- },
1077
- {
1078
- indexed: true,
1079
- internalType: "address",
1080
- name: "activator",
1081
- type: "address"
1082
- }
1083
- ],
1084
- name: "InternalMessageProcessed",
1085
- type: "event"
1086
- },
1087
- {
1088
- anonymous: false,
1089
- inputs: [
1090
- {
1091
- indexed: true,
1092
- internalType: "bytes32",
1093
- name: "txId",
1094
- type: "bytes32"
1095
- },
1096
- {
1097
- indexed: true,
1098
- internalType: "address",
1099
- name: "recipient",
1100
- type: "address"
1101
- },
1102
- {
1103
- indexed: true,
1104
- internalType: "address",
1105
- name: "activator",
1106
- type: "address"
1107
- }
1108
- ],
1109
- name: "NewTransaction",
1110
- type: "event"
1111
- },
1112
- {
1113
- anonymous: false,
1114
- inputs: [
1115
- {
1116
- indexed: true,
1117
- internalType: "address",
1118
- name: "previousOwner",
1119
- type: "address"
1120
- },
1121
- {
1122
- indexed: true,
1123
- internalType: "address",
1124
- name: "newOwner",
1125
- type: "address"
1126
- }
1127
- ],
1128
- name: "OwnershipTransferStarted",
1129
- type: "event"
1130
- },
1131
- {
1132
- anonymous: false,
1133
- inputs: [
1134
- {
1135
- indexed: true,
1136
- internalType: "address",
1137
- name: "previousOwner",
1138
- type: "address"
1139
- },
1140
- {
1141
- indexed: true,
1142
- internalType: "address",
1143
- name: "newOwner",
1144
- type: "address"
1145
- }
1146
- ],
1147
- name: "OwnershipTransferred",
1148
- type: "event"
1149
- },
1150
- {
1151
- anonymous: false,
1152
- inputs: [
1153
- {
1154
- indexed: true,
1155
- internalType: "bytes32",
1156
- name: "role",
1157
- type: "bytes32"
1158
- },
1159
- {
1160
- indexed: true,
1161
- internalType: "bytes32",
1162
- name: "previousAdminRole",
1163
- type: "bytes32"
1164
- },
1165
- {
1166
- indexed: true,
1167
- internalType: "bytes32",
1168
- name: "newAdminRole",
1169
- type: "bytes32"
1170
- }
1171
- ],
1172
- name: "RoleAdminChanged",
1173
- type: "event"
1174
- },
1175
- {
1176
- anonymous: false,
1177
- inputs: [
1178
- {
1179
- indexed: true,
1180
- internalType: "bytes32",
1181
- name: "role",
1182
- type: "bytes32"
1183
- },
1184
- {
1185
- indexed: true,
1186
- internalType: "address",
1187
- name: "account",
1188
- type: "address"
1189
- },
1190
- {
1191
- indexed: true,
1192
- internalType: "address",
1193
- name: "sender",
1194
- type: "address"
1195
- }
1196
- ],
1197
- name: "RoleGranted",
1198
- type: "event"
1199
- },
1200
- {
1201
- anonymous: false,
1202
- inputs: [
1203
- {
1204
- indexed: true,
1205
- internalType: "bytes32",
1206
- name: "role",
1207
- type: "bytes32"
1208
- },
1209
- {
1210
- indexed: true,
1211
- internalType: "address",
1212
- name: "account",
1213
- type: "address"
1214
- },
1215
- {
1216
- indexed: true,
1217
- internalType: "address",
1218
- name: "sender",
1219
- type: "address"
1220
- }
1221
- ],
1222
- name: "RoleRevoked",
1223
- type: "event"
1224
- },
1225
- {
1226
- anonymous: false,
1227
- inputs: [
1228
- {
1229
- indexed: true,
1230
- internalType: "bytes32",
1231
- name: "txId",
1232
- type: "bytes32"
1233
- },
1234
- {
1235
- indexed: true,
1236
- internalType: "address",
1237
- name: "sender",
1238
- type: "address"
1239
- }
1240
- ],
1241
- name: "SlashAppealSubmitted",
1242
- type: "event"
1243
- },
1244
- {
1245
- anonymous: false,
1246
- inputs: [
1247
- {
1248
- indexed: true,
1249
- internalType: "bytes32",
1250
- name: "tx_id",
1251
- type: "bytes32"
1252
- }
1253
- ],
1254
- name: "TransactionAccepted",
1255
- type: "event"
1256
- },
1257
- {
1258
- anonymous: false,
1259
- inputs: [
1260
- {
1261
- indexed: true,
1262
- internalType: "bytes32",
1263
- name: "txId",
1264
- type: "bytes32"
1265
- },
1266
- {
1267
- indexed: true,
1268
- internalType: "address",
1269
- name: "leader",
1270
- type: "address"
1271
- }
1272
- ],
1273
- name: "TransactionActivated",
1274
- type: "event"
1275
- },
1276
- {
1277
- anonymous: false,
1278
- inputs: [
1279
- {
1280
- indexed: true,
1281
- internalType: "uint256",
1282
- name: "batchId",
1283
- type: "uint256"
1284
- },
1285
- {
1286
- indexed: false,
1287
- internalType: "address[]",
1288
- name: "validators",
1289
- type: "address[]"
1290
- }
1291
- ],
1292
- name: "TransactionActivatedValidators",
1293
- type: "event"
1294
- },
1295
- {
1296
- anonymous: false,
1297
- inputs: [
1298
- {
1299
- indexed: true,
1300
- internalType: "bytes32",
1301
- name: "txId",
1302
- type: "bytes32"
1303
- },
1304
- {
1305
- indexed: true,
1306
- internalType: "address",
1307
- name: "sender",
1308
- type: "address"
1309
- }
1310
- ],
1311
- name: "TransactionCancelled",
1312
- type: "event"
1313
- },
1314
- {
1315
- anonymous: false,
1316
- inputs: [
1317
- {
1318
- indexed: true,
1319
- internalType: "bytes32",
1320
- name: "tx_id",
1321
- type: "bytes32"
1322
- }
1323
- ],
1324
- name: "TransactionFinalized",
1325
- type: "event"
1326
- },
1327
- {
1328
- anonymous: false,
1329
- inputs: [
1330
- {
1331
- indexed: true,
1332
- internalType: "bytes32",
1333
- name: "txId",
1334
- type: "bytes32"
1335
- },
1336
- {
1337
- indexed: true,
1338
- internalType: "address",
1339
- name: "oldValidator",
1340
- type: "address"
1341
- },
1342
- {
1343
- indexed: true,
1344
- internalType: "address",
1345
- name: "newValidator",
1346
- type: "address"
1347
- }
1348
- ],
1349
- name: "TransactionIdleValidatorReplaced",
1350
- type: "event"
1351
- },
1352
- {
1353
- anonymous: false,
1354
- inputs: [
1355
- {
1356
- indexed: true,
1357
- internalType: "bytes32",
1358
- name: "txId",
1359
- type: "bytes32"
1360
- },
1361
- {
1362
- indexed: true,
1363
- internalType: "uint256",
1364
- name: "validatorIndex",
1365
- type: "uint256"
1366
- }
1367
- ],
1368
- name: "TransactionIdleValidatorReplacementFailed",
1369
- type: "event"
1370
- },
1371
- {
1372
- anonymous: false,
1373
- inputs: [
1374
- {
1375
- indexed: true,
1376
- internalType: "bytes32",
1377
- name: "txId",
1378
- type: "bytes32"
1379
- },
1380
- {
1381
- indexed: true,
1382
- internalType: "address",
1383
- name: "newLeader",
1384
- type: "address"
1385
- }
1386
- ],
1387
- name: "TransactionLeaderRotated",
1388
- type: "event"
1389
- },
1390
- {
1391
- anonymous: false,
1392
- inputs: [
1393
- {
1394
- indexed: true,
1395
- internalType: "bytes32",
1396
- name: "tx_id",
1397
- type: "bytes32"
1398
- }
1399
- ],
1400
- name: "TransactionLeaderTimeout",
1401
- type: "event"
1402
- },
1403
- {
1404
- anonymous: false,
1405
- inputs: [
1406
- {
1407
- indexed: false,
1408
- internalType: "bytes32[]",
1409
- name: "tx_ids",
1410
- type: "bytes32[]"
1411
- }
1412
- ],
1413
- name: "TransactionNeedsRecomputation",
1414
- type: "event"
1415
- },
1416
- {
1417
- anonymous: false,
1418
- inputs: [
1419
- {
1420
- indexed: true,
1421
- internalType: "bytes32",
1422
- name: "tx_id",
1423
- type: "bytes32"
1424
- },
1425
- {
1426
- indexed: false,
1427
- internalType: "address[]",
1428
- name: "validators",
1429
- type: "address[]"
1430
- }
1431
- ],
1432
- name: "TransactionReceiptProposed",
1433
- type: "event"
1434
- },
1435
- {
1436
- anonymous: false,
1437
- inputs: [
1438
- {
1439
- indexed: true,
1440
- internalType: "bytes32",
1441
- name: "tx_id",
1442
- type: "bytes32"
1443
- }
1444
- ],
1445
- name: "TransactionUndetermined",
1446
- type: "event"
1447
- },
1448
- {
1449
- anonymous: false,
1450
- inputs: [
1451
- {
1452
- indexed: true,
1453
- internalType: "bytes32",
1454
- name: "txId",
1455
- type: "bytes32"
1456
- },
1457
- {
1458
- indexed: true,
1459
- internalType: "address",
1460
- name: "validator",
1461
- type: "address"
1462
- },
1463
- {
1464
- indexed: false,
1465
- internalType: "bool",
1466
- name: "isLastVote",
1467
- type: "bool"
1468
- }
1469
- ],
1470
- name: "TribunalAppealVoteCommitted",
1471
- type: "event"
1472
- },
1473
- {
1474
- anonymous: false,
1475
- inputs: [
1476
- {
1477
- indexed: true,
1478
- internalType: "bytes32",
1479
- name: "txId",
1480
- type: "bytes32"
1481
- },
1482
- {
1483
- indexed: true,
1484
- internalType: "address",
1485
- name: "validator",
1486
- type: "address"
1487
- },
1488
- {
1489
- indexed: false,
1490
- internalType: "bool",
1491
- name: "isLastVote",
1492
- type: "bool"
1493
- }
1494
- ],
1495
- name: "TribunalAppealVoteRevealed",
1496
- type: "event"
1497
- },
1498
- {
1499
- anonymous: false,
1500
- inputs: [
1501
- {
1502
- indexed: true,
1503
- internalType: "bytes32",
1504
- name: "txId",
1505
- type: "bytes32"
1506
- },
1507
- {
1508
- indexed: true,
1509
- internalType: "address",
1510
- name: "validator",
1511
- type: "address"
1512
- },
1513
- {
1514
- indexed: false,
1515
- internalType: "bool",
1516
- name: "isLastVote",
1517
- type: "bool"
1518
- }
1519
- ],
1520
- name: "VoteCommitted",
1521
- type: "event"
1522
- },
1523
- {
1524
- anonymous: false,
1525
- inputs: [
1526
- {
1527
- indexed: true,
1528
- internalType: "bytes32",
1529
- name: "txId",
1530
- type: "bytes32"
1531
- },
1532
- {
1533
- indexed: true,
1534
- internalType: "address",
1535
- name: "validator",
1536
- type: "address"
1537
- },
1538
- {
1539
- indexed: false,
1540
- internalType: "enum ITransactions.VoteType",
1541
- name: "voteType",
1542
- type: "uint8"
1543
- },
1544
- {
1545
- indexed: false,
1546
- internalType: "bool",
1547
- name: "isLastVote",
1548
- type: "bool"
1549
- },
1550
- {
1551
- indexed: false,
1552
- internalType: "enum ITransactions.ResultType",
1553
- name: "result",
1554
- type: "uint8"
1555
- }
1556
- ],
1557
- name: "VoteRevealed",
1558
- type: "event"
1559
- },
1560
- {
1561
- inputs: [],
1562
- name: "DEFAULT_ADMIN_ROLE",
1563
- outputs: [
1564
- {
1565
- internalType: "bytes32",
1566
- name: "",
1567
- type: "bytes32"
1568
- }
1569
- ],
1570
- stateMutability: "view",
1571
- type: "function"
1572
- },
1573
- {
1574
- inputs: [],
1575
- name: "EVENTS_BATCH_SIZE",
1576
- outputs: [
1577
- {
1578
- internalType: "uint256",
1579
- name: "",
1580
- type: "uint256"
1581
- }
1582
- ],
1583
- stateMutability: "view",
1584
- type: "function"
1585
- },
1586
- {
1587
- inputs: [],
1588
- name: "acceptOwnership",
1589
- outputs: [],
1590
- stateMutability: "nonpayable",
1591
- type: "function"
1592
- },
1593
- {
1594
- inputs: [
1595
- {
1596
- internalType: "bytes32",
1597
- name: "_txId",
1598
- type: "bytes32"
1599
- },
1600
- {
1601
- internalType: "bytes",
1602
- name: "_vrfProof",
1603
- type: "bytes"
1604
- }
1605
- ],
1606
- name: "activateTransaction",
1607
- outputs: [],
1608
- stateMutability: "nonpayable",
1609
- type: "function"
1610
- },
1611
- {
1612
- inputs: [
1613
- {
1614
- internalType: "address",
1615
- name: "_sender",
1616
- type: "address"
1617
- },
1618
- {
1619
- internalType: "address",
1620
- name: "_recipient",
1621
- type: "address"
1622
- },
1623
- {
1624
- internalType: "uint256",
1625
- name: "_numOfInitialValidators",
1626
- type: "uint256"
1627
- },
1628
- {
1629
- internalType: "uint256",
1630
- name: "_maxRotations",
1631
- type: "uint256"
1632
- },
1633
- {
1634
- internalType: "bytes",
1635
- name: "_txData",
1636
- type: "bytes"
1637
- }
1638
- ],
1639
- name: "addTransaction",
1640
- outputs: [],
1641
- stateMutability: "nonpayable",
1642
- type: "function"
1643
- },
1644
- {
1645
- inputs: [
1646
- {
1647
- internalType: "bytes32",
1648
- name: "_txId",
1649
- type: "bytes32"
1650
- }
1651
- ],
1652
- name: "cancelTransaction",
1653
- outputs: [],
1654
- stateMutability: "nonpayable",
1655
- type: "function"
1656
- },
1657
- {
1658
- inputs: [
1659
- {
1660
- internalType: "bytes32",
1661
- name: "_txId",
1662
- type: "bytes32"
1663
- },
1664
- {
1665
- internalType: "bytes32",
1666
- name: "_commitHash",
1667
- type: "bytes32"
1668
- }
1669
- ],
1670
- name: "commitTribunalAppealVote",
1671
- outputs: [],
1672
- stateMutability: "nonpayable",
1673
- type: "function"
1674
- },
1675
- {
1676
- inputs: [
1677
- {
1678
- internalType: "bytes32",
1679
- name: "_txId",
1680
- type: "bytes32"
1681
- },
1682
- {
1683
- internalType: "bytes32",
1684
- name: "_commitHash",
1685
- type: "bytes32"
1686
- },
1687
- {
1688
- internalType: "uint256",
1689
- name: "_validatorIndex",
1690
- type: "uint256"
1691
- }
1692
- ],
1693
- name: "commitVote",
1694
- outputs: [],
1695
- stateMutability: "nonpayable",
1696
- type: "function"
1697
- },
1698
- {
1699
- inputs: [],
1700
- name: "contracts",
1701
- outputs: [
1702
- {
1703
- internalType: "contract IGenManager",
1704
- name: "genManager",
1705
- type: "address"
1706
- },
1707
- {
1708
- internalType: "contract ITransactions",
1709
- name: "genTransactions",
1710
- type: "address"
1711
- },
1712
- {
1713
- internalType: "contract IQueues",
1714
- name: "genQueue",
1715
- type: "address"
1716
- },
1717
- {
1718
- internalType: "contract IGhostFactory",
1719
- name: "ghostFactory",
1720
- type: "address"
1721
- },
1722
- {
1723
- internalType: "contract IGenStaking",
1724
- name: "genStaking",
1725
- type: "address"
1726
- },
1727
- {
1728
- internalType: "contract IMessages",
1729
- name: "genMessages",
1730
- type: "address"
1731
- },
1732
- {
1733
- internalType: "contract IIdleness",
1734
- name: "idleness",
1735
- type: "address"
1736
- },
1737
- {
1738
- internalType: "contract ITribunalAppeal",
1739
- name: "tribunalAppeal",
1740
- type: "address"
1741
- }
1742
- ],
1743
- stateMutability: "view",
1744
- type: "function"
1745
- },
1746
- {
1747
- inputs: [
1748
- {
1749
- internalType: "address",
1750
- name: "_recipient",
1751
- type: "address"
1752
- },
1753
- {
1754
- internalType: "uint256",
1755
- name: "_value",
1756
- type: "uint256"
1757
- },
1758
- {
1759
- internalType: "bytes",
1760
- name: "_data",
1761
- type: "bytes"
1762
- }
1763
- ],
1764
- name: "executeMessage",
1765
- outputs: [
1766
- {
1767
- internalType: "bool",
1768
- name: "success",
1769
- type: "bool"
1770
- }
1771
- ],
1772
- stateMutability: "nonpayable",
1773
- type: "function"
1774
- },
1775
- {
1776
- inputs: [
1777
- {
1778
- internalType: "bytes32",
1779
- name: "_txId",
1780
- type: "bytes32"
1781
- }
1782
- ],
1783
- name: "finalizeTransaction",
1784
- outputs: [],
1785
- stateMutability: "nonpayable",
1786
- type: "function"
1787
- },
1788
- {
1789
- inputs: [],
1790
- name: "getContracts",
1791
- outputs: [
1792
- {
1793
- components: [
1794
- {
1795
- internalType: "contract IGenManager",
1796
- name: "genManager",
1797
- type: "address"
1798
- },
1799
- {
1800
- internalType: "contract ITransactions",
1801
- name: "genTransactions",
1802
- type: "address"
1803
- },
1804
- {
1805
- internalType: "contract IQueues",
1806
- name: "genQueue",
1807
- type: "address"
1808
- },
1809
- {
1810
- internalType: "contract IGhostFactory",
1811
- name: "ghostFactory",
1812
- type: "address"
1813
- },
1814
- {
1815
- internalType: "contract IGenStaking",
1816
- name: "genStaking",
1817
- type: "address"
1818
- },
1819
- {
1820
- internalType: "contract IMessages",
1821
- name: "genMessages",
1822
- type: "address"
1823
- },
1824
- {
1825
- internalType: "contract IIdleness",
1826
- name: "idleness",
1827
- type: "address"
1828
- },
1829
- {
1830
- internalType: "contract ITribunalAppeal",
1831
- name: "tribunalAppeal",
1832
- type: "address"
1833
- }
1834
- ],
1835
- internalType: "struct IConsensusMain.ExternalContracts",
1836
- name: "",
1837
- type: "tuple"
1838
- }
1839
- ],
1840
- stateMutability: "view",
1841
- type: "function"
1842
- },
1843
- {
1844
- inputs: [
1845
- {
1846
- internalType: "bytes32",
1847
- name: "role",
1848
- type: "bytes32"
1849
- }
1850
- ],
1851
- name: "getRoleAdmin",
1852
- outputs: [
1853
- {
1854
- internalType: "bytes32",
1855
- name: "",
1856
- type: "bytes32"
1857
- }
1858
- ],
1859
- stateMutability: "view",
1860
- type: "function"
1861
- },
1862
- {
1863
- inputs: [
1864
- {
1865
- internalType: "address",
1866
- name: "addr",
1867
- type: "address"
1868
- }
1869
- ],
1870
- name: "ghostContracts",
1871
- outputs: [
1872
- {
1873
- internalType: "bool",
1874
- name: "isGhost",
1875
- type: "bool"
1876
- }
1877
- ],
1878
- stateMutability: "view",
1879
- type: "function"
1880
- },
1881
- {
1882
- inputs: [
1883
- {
1884
- internalType: "bytes32",
1885
- name: "role",
1886
- type: "bytes32"
1887
- },
1888
- {
1889
- internalType: "address",
1890
- name: "account",
1891
- type: "address"
1892
- }
1893
- ],
1894
- name: "grantRole",
1895
- outputs: [],
1896
- stateMutability: "nonpayable",
1897
- type: "function"
1898
- },
1899
- {
1900
- inputs: [
1901
- {
1902
- internalType: "bytes32",
1903
- name: "role",
1904
- type: "bytes32"
1905
- },
1906
- {
1907
- internalType: "address",
1908
- name: "account",
1909
- type: "address"
1910
- }
1911
- ],
1912
- name: "hasRole",
1913
- outputs: [
1914
- {
1915
- internalType: "bool",
1916
- name: "",
1917
- type: "bool"
1918
- }
1919
- ],
1920
- stateMutability: "view",
1921
- type: "function"
1922
- },
1923
- {
1924
- inputs: [],
1925
- name: "initialize",
1926
- outputs: [],
1927
- stateMutability: "nonpayable",
1928
- type: "function"
1929
- },
1930
- {
1931
- inputs: [],
1932
- name: "owner",
1933
- outputs: [
1934
- {
1935
- internalType: "address",
1936
- name: "",
1937
- type: "address"
1938
- }
1939
- ],
1940
- stateMutability: "view",
1941
- type: "function"
1942
- },
1943
- {
1944
- inputs: [],
1945
- name: "pendingOwner",
1946
- outputs: [
1947
- {
1948
- internalType: "address",
1949
- name: "",
1950
- type: "address"
1951
- }
1952
- ],
1953
- stateMutability: "view",
1954
- type: "function"
1955
- },
1956
- {
1957
- inputs: [
1958
- {
1959
- internalType: "address",
1960
- name: "recipient",
1961
- type: "address"
1962
- }
1963
- ],
1964
- name: "proceedPendingQueueProcessing",
1965
- outputs: [],
1966
- stateMutability: "nonpayable",
1967
- type: "function"
1968
- },
1969
- {
1970
- inputs: [
1971
- {
1972
- internalType: "bytes32",
1973
- name: "_txId",
1974
- type: "bytes32"
1975
- },
1976
- {
1977
- internalType: "bytes",
1978
- name: "_txReceipt",
1979
- type: "bytes"
1980
- },
1981
- {
1982
- internalType: "uint256",
1983
- name: "_processingBlock",
1984
- type: "uint256"
1985
- },
1986
- {
1987
- components: [
1988
- {
1989
- internalType: "enum IMessages.MessageType",
1990
- name: "messageType",
1991
- type: "uint8"
1992
- },
1993
- {
1994
- internalType: "address",
1995
- name: "recipient",
1996
- type: "address"
1997
- },
1998
- {
1999
- internalType: "uint256",
2000
- name: "value",
2001
- type: "uint256"
2002
- },
2003
- {
2004
- internalType: "bytes",
2005
- name: "data",
2006
- type: "bytes"
2007
- },
2008
- {
2009
- internalType: "bool",
2010
- name: "onAcceptance",
2011
- type: "bool"
2012
- }
2013
- ],
2014
- internalType: "struct IMessages.SubmittedMessage[]",
2015
- name: "_messages",
2016
- type: "tuple[]"
2017
- },
2018
- {
2019
- internalType: "bytes",
2020
- name: "_vrfProof",
2021
- type: "bytes"
2022
- }
2023
- ],
2024
- name: "proposeReceipt",
2025
- outputs: [],
2026
- stateMutability: "nonpayable",
2027
- type: "function"
2028
- },
2029
- {
2030
- inputs: [],
2031
- name: "renounceOwnership",
2032
- outputs: [],
2033
- stateMutability: "nonpayable",
2034
- type: "function"
2035
- },
2036
- {
2037
- inputs: [
2038
- {
2039
- internalType: "bytes32",
2040
- name: "role",
2041
- type: "bytes32"
2042
- },
2043
- {
2044
- internalType: "address",
2045
- name: "callerConfirmation",
2046
- type: "address"
2047
- }
2048
- ],
2049
- name: "renounceRole",
2050
- outputs: [],
2051
- stateMutability: "nonpayable",
2052
- type: "function"
2053
- },
2054
- {
2055
- inputs: [
2056
- {
2057
- internalType: "bytes32",
2058
- name: "_txId",
2059
- type: "bytes32"
2060
- },
2061
- {
2062
- internalType: "bytes32",
2063
- name: "_voteHash",
2064
- type: "bytes32"
2065
- },
2066
- {
2067
- internalType: "enum ITribunalAppeal.TribunalVoteType",
2068
- name: "_voteType",
2069
- type: "uint8"
2070
- },
2071
- {
2072
- internalType: "uint256",
2073
- name: "_nonce",
2074
- type: "uint256"
2075
- }
2076
- ],
2077
- name: "revealTribunalAppealVote",
2078
- outputs: [],
2079
- stateMutability: "nonpayable",
2080
- type: "function"
2081
- },
2082
- {
2083
- inputs: [
2084
- {
2085
- internalType: "bytes32",
2086
- name: "_txId",
2087
- type: "bytes32"
2088
- },
2089
- {
2090
- internalType: "bytes32",
2091
- name: "_voteHash",
2092
- type: "bytes32"
2093
- },
2094
- {
2095
- internalType: "enum ITransactions.VoteType",
2096
- name: "_voteType",
2097
- type: "uint8"
2098
- },
2099
- {
2100
- internalType: "uint256",
2101
- name: "_nonce",
2102
- type: "uint256"
2103
- },
2104
- {
2105
- internalType: "uint256",
2106
- name: "_validatorIndex",
2107
- type: "uint256"
2108
- }
2109
- ],
2110
- name: "revealVote",
2111
- outputs: [],
2112
- stateMutability: "nonpayable",
2113
- type: "function"
2114
- },
2115
- {
2116
- inputs: [
2117
- {
2118
- internalType: "bytes32",
2119
- name: "role",
2120
- type: "bytes32"
2121
- },
2122
- {
2123
- internalType: "address",
2124
- name: "account",
2125
- type: "address"
2126
- }
2127
- ],
2128
- name: "revokeRole",
2129
- outputs: [],
2130
- stateMutability: "nonpayable",
2131
- type: "function"
2132
- },
2133
- {
2134
- inputs: [
2135
- {
2136
- internalType: "address",
2137
- name: "_ghostFactory",
2138
- type: "address"
2139
- },
2140
- {
2141
- internalType: "address",
2142
- name: "_genManager",
2143
- type: "address"
2144
- },
2145
- {
2146
- internalType: "address",
2147
- name: "_genTransactions",
2148
- type: "address"
2149
- },
2150
- {
2151
- internalType: "address",
2152
- name: "_genQueue",
2153
- type: "address"
2154
- },
2155
- {
2156
- internalType: "address",
2157
- name: "_genStaking",
2158
- type: "address"
2159
- },
2160
- {
2161
- internalType: "address",
2162
- name: "_genMessages",
2163
- type: "address"
2164
- },
2165
- {
2166
- internalType: "address",
2167
- name: "_idleness",
2168
- type: "address"
2169
- },
2170
- {
2171
- internalType: "address",
2172
- name: "_tribunalAppeal",
2173
- type: "address"
2174
- }
2175
- ],
2176
- name: "setExternalContracts",
2177
- outputs: [],
2178
- stateMutability: "nonpayable",
2179
- type: "function"
2180
- },
2181
- {
2182
- inputs: [
2183
- {
2184
- internalType: "bytes32",
2185
- name: "_txId",
2186
- type: "bytes32"
2187
- }
2188
- ],
2189
- name: "submitAppeal",
2190
- outputs: [],
2191
- stateMutability: "payable",
2192
- type: "function"
2193
- },
2194
- {
2195
- inputs: [
2196
- {
2197
- internalType: "bytes32",
2198
- name: "_txId",
2199
- type: "bytes32"
2200
- }
2201
- ],
2202
- name: "submitSlashAppeal",
2203
- outputs: [],
2204
- stateMutability: "nonpayable",
2205
- type: "function"
2206
- },
2207
- {
2208
- inputs: [
2209
- {
2210
- internalType: "bytes4",
2211
- name: "interfaceId",
2212
- type: "bytes4"
2213
- }
2214
- ],
2215
- name: "supportsInterface",
2216
- outputs: [
2217
- {
2218
- internalType: "bool",
2219
- name: "",
2220
- type: "bool"
2221
- }
2222
- ],
2223
- stateMutability: "view",
2224
- type: "function"
2225
- },
2226
- {
2227
- inputs: [
2228
- {
2229
- internalType: "address",
2230
- name: "newOwner",
2231
- type: "address"
2232
- }
2233
- ],
2234
- name: "transferOwnership",
2235
- outputs: [],
2236
- stateMutability: "nonpayable",
2237
- type: "function"
2238
- }
2239
- ],
2240
- bytecode: ""
2241
- };
2242
- var CONSENSUS_DATA_CONTRACT = {
2243
- address: "0x88B0F18613Db92Bf970FfE264E02496e20a74D16",
2244
- abi: [
2245
- {
2246
- inputs: [],
2247
- name: "AccessControlBadConfirmation",
2248
- type: "error"
2249
- },
2250
- {
2251
- inputs: [
2252
- {
2253
- internalType: "address",
2254
- name: "account",
2255
- type: "address"
2256
- },
2257
- {
2258
- internalType: "bytes32",
2259
- name: "neededRole",
2260
- type: "bytes32"
2261
- }
2262
- ],
2263
- name: "AccessControlUnauthorizedAccount",
2264
- type: "error"
2265
- },
2266
- {
2267
- inputs: [],
2268
- name: "InvalidInitialization",
2269
- type: "error"
2270
- },
2271
- {
2272
- inputs: [],
2273
- name: "NotInitializing",
2274
- type: "error"
2275
- },
2276
- {
2277
- inputs: [
2278
- {
2279
- internalType: "address",
2280
- name: "owner",
2281
- type: "address"
2282
- }
2283
- ],
2284
- name: "OwnableInvalidOwner",
2285
- type: "error"
2286
- },
2287
- {
2288
- inputs: [
2289
- {
2290
- internalType: "address",
2291
- name: "account",
2292
- type: "address"
2293
- }
2294
- ],
2295
- name: "OwnableUnauthorizedAccount",
2296
- type: "error"
2297
- },
2298
- {
2299
- inputs: [],
2300
- name: "ReentrancyGuardReentrantCall",
2301
- type: "error"
2302
- },
2303
- {
2304
- anonymous: false,
2305
- inputs: [
2306
- {
2307
- indexed: false,
2308
- internalType: "uint64",
2309
- name: "version",
2310
- type: "uint64"
2311
- }
2312
- ],
2313
- name: "Initialized",
2314
- type: "event"
2315
- },
2316
- {
2317
- anonymous: false,
2318
- inputs: [
2319
- {
2320
- indexed: true,
2321
- internalType: "address",
2322
- name: "previousOwner",
2323
- type: "address"
2324
- },
2325
- {
2326
- indexed: true,
2327
- internalType: "address",
2328
- name: "newOwner",
2329
- type: "address"
2330
- }
2331
- ],
2332
- name: "OwnershipTransferStarted",
2333
- type: "event"
2334
- },
2335
- {
2336
- anonymous: false,
2337
- inputs: [
2338
- {
2339
- indexed: true,
2340
- internalType: "address",
2341
- name: "previousOwner",
2342
- type: "address"
2343
- },
2344
- {
2345
- indexed: true,
2346
- internalType: "address",
2347
- name: "newOwner",
2348
- type: "address"
2349
- }
2350
- ],
2351
- name: "OwnershipTransferred",
2352
- type: "event"
2353
- },
2354
- {
2355
- anonymous: false,
2356
- inputs: [
2357
- {
2358
- indexed: true,
2359
- internalType: "bytes32",
2360
- name: "role",
2361
- type: "bytes32"
2362
- },
2363
- {
2364
- indexed: true,
2365
- internalType: "bytes32",
2366
- name: "previousAdminRole",
2367
- type: "bytes32"
2368
- },
2369
- {
2370
- indexed: true,
2371
- internalType: "bytes32",
2372
- name: "newAdminRole",
2373
- type: "bytes32"
2374
- }
2375
- ],
2376
- name: "RoleAdminChanged",
2377
- type: "event"
2378
- },
2379
- {
2380
- anonymous: false,
2381
- inputs: [
2382
- {
2383
- indexed: true,
2384
- internalType: "bytes32",
2385
- name: "role",
2386
- type: "bytes32"
2387
- },
2388
- {
2389
- indexed: true,
2390
- internalType: "address",
2391
- name: "account",
2392
- type: "address"
2393
- },
2394
- {
2395
- indexed: true,
2396
- internalType: "address",
2397
- name: "sender",
2398
- type: "address"
2399
- }
2400
- ],
2401
- name: "RoleGranted",
2402
- type: "event"
2403
- },
2404
- {
2405
- anonymous: false,
2406
- inputs: [
2407
- {
2408
- indexed: true,
2409
- internalType: "bytes32",
2410
- name: "role",
2411
- type: "bytes32"
2412
- },
2413
- {
2414
- indexed: true,
2415
- internalType: "address",
2416
- name: "account",
2417
- type: "address"
2418
- },
2419
- {
2420
- indexed: true,
2421
- internalType: "address",
2422
- name: "sender",
2423
- type: "address"
2424
- }
2425
- ],
2426
- name: "RoleRevoked",
2427
- type: "event"
2428
- },
2429
- {
2430
- inputs: [],
2431
- name: "DEFAULT_ADMIN_ROLE",
2432
- outputs: [
2433
- {
2434
- internalType: "bytes32",
2435
- name: "",
2436
- type: "bytes32"
2437
- }
2438
- ],
2439
- stateMutability: "view",
2440
- type: "function"
2441
- },
2442
- {
2443
- inputs: [],
2444
- name: "acceptOwnership",
2445
- outputs: [],
2446
- stateMutability: "nonpayable",
2447
- type: "function"
2448
- },
2449
- {
2450
- inputs: [
2451
- {
2452
- internalType: "bytes32",
2453
- name: "_txId",
2454
- type: "bytes32"
2455
- },
2456
- {
2457
- internalType: "uint256",
2458
- name: "_currentTimestamp",
2459
- type: "uint256"
2460
- }
2461
- ],
2462
- name: "canFinalize",
2463
- outputs: [
2464
- {
2465
- internalType: "bool",
2466
- name: "",
2467
- type: "bool"
2468
- },
2469
- {
2470
- internalType: "uint256",
2471
- name: "",
2472
- type: "uint256"
2473
- },
2474
- {
2475
- internalType: "uint256",
2476
- name: "",
2477
- type: "uint256"
2478
- }
2479
- ],
2480
- stateMutability: "view",
2481
- type: "function"
2482
- },
2483
- {
2484
- inputs: [],
2485
- name: "consensusMain",
2486
- outputs: [
2487
- {
2488
- internalType: "contract IConsensusMain",
2489
- name: "",
2490
- type: "address"
2491
- }
2492
- ],
2493
- stateMutability: "view",
2494
- type: "function"
2495
- },
2496
- {
2497
- inputs: [
2498
- {
2499
- internalType: "bytes32",
2500
- name: "_tx_id",
2501
- type: "bytes32"
2502
- }
2503
- ],
2504
- name: "getLastAppealResult",
2505
- outputs: [
2506
- {
2507
- internalType: "enum ITransactions.ResultType",
2508
- name: "",
2509
- type: "uint8"
2510
- }
2511
- ],
2512
- stateMutability: "view",
2513
- type: "function"
2514
- },
2515
- {
2516
- inputs: [
2517
- {
2518
- internalType: "address",
2519
- name: "recipient",
2520
- type: "address"
2521
- }
2522
- ],
2523
- name: "getLatestAcceptedTransaction",
2524
- outputs: [
2525
- {
2526
- components: [
2527
- {
2528
- internalType: "uint256",
2529
- name: "currentTimestamp",
2530
- type: "uint256"
2531
- },
2532
- {
2533
- internalType: "address",
2534
- name: "sender",
2535
- type: "address"
2536
- },
2537
- {
2538
- internalType: "address",
2539
- name: "recipient",
2540
- type: "address"
2541
- },
2542
- {
2543
- internalType: "uint256",
2544
- name: "numOfInitialValidators",
2545
- type: "uint256"
2546
- },
2547
- {
2548
- internalType: "uint256",
2549
- name: "txSlot",
2550
- type: "uint256"
2551
- },
2552
- {
2553
- internalType: "uint256",
2554
- name: "createdTimestamp",
2555
- type: "uint256"
2556
- },
2557
- {
2558
- internalType: "uint256",
2559
- name: "lastVoteTimestamp",
2560
- type: "uint256"
2561
- },
2562
- {
2563
- internalType: "bytes32",
2564
- name: "randomSeed",
2565
- type: "bytes32"
2566
- },
2567
- {
2568
- internalType: "enum ITransactions.ResultType",
2569
- name: "result",
2570
- type: "uint8"
2571
- },
2572
- {
2573
- internalType: "bytes",
2574
- name: "txData",
2575
- type: "bytes"
2576
- },
2577
- {
2578
- internalType: "bytes",
2579
- name: "txReceipt",
2580
- type: "bytes"
2581
- },
2582
- {
2583
- components: [
2584
- {
2585
- internalType: "enum IMessages.MessageType",
2586
- name: "messageType",
2587
- type: "uint8"
2588
- },
2589
- {
2590
- internalType: "address",
2591
- name: "recipient",
2592
- type: "address"
2593
- },
2594
- {
2595
- internalType: "uint256",
2596
- name: "value",
2597
- type: "uint256"
2598
- },
2599
- {
2600
- internalType: "bytes",
2601
- name: "data",
2602
- type: "bytes"
2603
- },
2604
- {
2605
- internalType: "bool",
2606
- name: "onAcceptance",
2607
- type: "bool"
2608
- }
2609
- ],
2610
- internalType: "struct IMessages.SubmittedMessage[]",
2611
- name: "messages",
2612
- type: "tuple[]"
2613
- },
2614
- {
2615
- internalType: "enum IQueues.QueueType",
2616
- name: "queueType",
2617
- type: "uint8"
2618
- },
2619
- {
2620
- internalType: "uint256",
2621
- name: "queuePosition",
2622
- type: "uint256"
2623
- },
2624
- {
2625
- internalType: "address",
2626
- name: "activator",
2627
- type: "address"
2628
- },
2629
- {
2630
- internalType: "address",
2631
- name: "lastLeader",
2632
- type: "address"
2633
- },
2634
- {
2635
- internalType: "enum ITransactions.TransactionStatus",
2636
- name: "status",
2637
- type: "uint8"
2638
- },
2639
- {
2640
- internalType: "bytes32",
2641
- name: "txId",
2642
- type: "bytes32"
2643
- },
2644
- {
2645
- components: [
2646
- {
2647
- internalType: "uint256",
2648
- name: "activationBlock",
2649
- type: "uint256"
2650
- },
2651
- {
2652
- internalType: "uint256",
2653
- name: "processingBlock",
2654
- type: "uint256"
2655
- },
2656
- {
2657
- internalType: "uint256",
2658
- name: "proposalBlock",
2659
- type: "uint256"
2660
- }
2661
- ],
2662
- internalType: "struct ITransactions.ReadStateBlockRange",
2663
- name: "readStateBlockRange",
2664
- type: "tuple"
2665
- },
2666
- {
2667
- internalType: "uint256",
2668
- name: "numOfRounds",
2669
- type: "uint256"
2670
- },
2671
- {
2672
- components: [
2673
- {
2674
- internalType: "uint256",
2675
- name: "round",
2676
- type: "uint256"
2677
- },
2678
- {
2679
- internalType: "uint256",
2680
- name: "leaderIndex",
2681
- type: "uint256"
2682
- },
2683
- {
2684
- internalType: "uint256",
2685
- name: "votesCommitted",
2686
- type: "uint256"
2687
- },
2688
- {
2689
- internalType: "uint256",
2690
- name: "votesRevealed",
2691
- type: "uint256"
2692
- },
2693
- {
2694
- internalType: "uint256",
2695
- name: "appealBond",
2696
- type: "uint256"
2697
- },
2698
- {
2699
- internalType: "uint256",
2700
- name: "rotationsLeft",
2701
- type: "uint256"
2702
- },
2703
- {
2704
- internalType: "enum ITransactions.ResultType",
2705
- name: "result",
2706
- type: "uint8"
2707
- },
2708
- {
2709
- internalType: "address[]",
2710
- name: "roundValidators",
2711
- type: "address[]"
2712
- },
2713
- {
2714
- internalType: "bytes32[]",
2715
- name: "validatorVotesHash",
2716
- type: "bytes32[]"
2717
- },
2718
- {
2719
- internalType: "enum ITransactions.VoteType[]",
2720
- name: "validatorVotes",
2721
- type: "uint8[]"
2722
- }
2723
- ],
2724
- internalType: "struct ITransactions.RoundData",
2725
- name: "lastRound",
2726
- type: "tuple"
2727
- }
2728
- ],
2729
- internalType: "struct ConsensusData.TransactionData",
2730
- name: "txData",
2731
- type: "tuple"
2732
- }
2733
- ],
2734
- stateMutability: "view",
2735
- type: "function"
2736
- },
2737
- {
2738
- inputs: [
2739
- {
2740
- internalType: "address",
2741
- name: "recipient",
2742
- type: "address"
2743
- },
2744
- {
2745
- internalType: "uint256",
2746
- name: "startIndex",
2747
- type: "uint256"
2748
- },
2749
- {
2750
- internalType: "uint256",
2751
- name: "pageSize",
2752
- type: "uint256"
2753
- }
2754
- ],
2755
- name: "getLatestAcceptedTransactions",
2756
- outputs: [
2757
- {
2758
- components: [
2759
- {
2760
- internalType: "uint256",
2761
- name: "currentTimestamp",
2762
- type: "uint256"
2763
- },
2764
- {
2765
- internalType: "address",
2766
- name: "sender",
2767
- type: "address"
2768
- },
2769
- {
2770
- internalType: "address",
2771
- name: "recipient",
2772
- type: "address"
2773
- },
2774
- {
2775
- internalType: "uint256",
2776
- name: "numOfInitialValidators",
2777
- type: "uint256"
2778
- },
2779
- {
2780
- internalType: "uint256",
2781
- name: "txSlot",
2782
- type: "uint256"
2783
- },
2784
- {
2785
- internalType: "uint256",
2786
- name: "createdTimestamp",
2787
- type: "uint256"
2788
- },
2789
- {
2790
- internalType: "uint256",
2791
- name: "lastVoteTimestamp",
2792
- type: "uint256"
2793
- },
2794
- {
2795
- internalType: "bytes32",
2796
- name: "randomSeed",
2797
- type: "bytes32"
2798
- },
2799
- {
2800
- internalType: "enum ITransactions.ResultType",
2801
- name: "result",
2802
- type: "uint8"
2803
- },
2804
- {
2805
- internalType: "bytes",
2806
- name: "txData",
2807
- type: "bytes"
2808
- },
2809
- {
2810
- internalType: "bytes",
2811
- name: "txReceipt",
2812
- type: "bytes"
2813
- },
2814
- {
2815
- components: [
2816
- {
2817
- internalType: "enum IMessages.MessageType",
2818
- name: "messageType",
2819
- type: "uint8"
2820
- },
2821
- {
2822
- internalType: "address",
2823
- name: "recipient",
2824
- type: "address"
2825
- },
2826
- {
2827
- internalType: "uint256",
2828
- name: "value",
2829
- type: "uint256"
2830
- },
2831
- {
2832
- internalType: "bytes",
2833
- name: "data",
2834
- type: "bytes"
2835
- },
2836
- {
2837
- internalType: "bool",
2838
- name: "onAcceptance",
2839
- type: "bool"
2840
- }
2841
- ],
2842
- internalType: "struct IMessages.SubmittedMessage[]",
2843
- name: "messages",
2844
- type: "tuple[]"
2845
- },
2846
- {
2847
- internalType: "enum IQueues.QueueType",
2848
- name: "queueType",
2849
- type: "uint8"
2850
- },
2851
- {
2852
- internalType: "uint256",
2853
- name: "queuePosition",
2854
- type: "uint256"
2855
- },
2856
- {
2857
- internalType: "address",
2858
- name: "activator",
2859
- type: "address"
2860
- },
2861
- {
2862
- internalType: "address",
2863
- name: "lastLeader",
2864
- type: "address"
2865
- },
2866
- {
2867
- internalType: "enum ITransactions.TransactionStatus",
2868
- name: "status",
2869
- type: "uint8"
2870
- },
2871
- {
2872
- internalType: "bytes32",
2873
- name: "txId",
2874
- type: "bytes32"
2875
- },
2876
- {
2877
- components: [
2878
- {
2879
- internalType: "uint256",
2880
- name: "activationBlock",
2881
- type: "uint256"
2882
- },
2883
- {
2884
- internalType: "uint256",
2885
- name: "processingBlock",
2886
- type: "uint256"
2887
- },
2888
- {
2889
- internalType: "uint256",
2890
- name: "proposalBlock",
2891
- type: "uint256"
2892
- }
2893
- ],
2894
- internalType: "struct ITransactions.ReadStateBlockRange",
2895
- name: "readStateBlockRange",
2896
- type: "tuple"
2897
- },
2898
- {
2899
- internalType: "uint256",
2900
- name: "numOfRounds",
2901
- type: "uint256"
2902
- },
2903
- {
2904
- components: [
2905
- {
2906
- internalType: "uint256",
2907
- name: "round",
2908
- type: "uint256"
2909
- },
2910
- {
2911
- internalType: "uint256",
2912
- name: "leaderIndex",
2913
- type: "uint256"
2914
- },
2915
- {
2916
- internalType: "uint256",
2917
- name: "votesCommitted",
2918
- type: "uint256"
2919
- },
2920
- {
2921
- internalType: "uint256",
2922
- name: "votesRevealed",
2923
- type: "uint256"
2924
- },
2925
- {
2926
- internalType: "uint256",
2927
- name: "appealBond",
2928
- type: "uint256"
2929
- },
2930
- {
2931
- internalType: "uint256",
2932
- name: "rotationsLeft",
2933
- type: "uint256"
2934
- },
2935
- {
2936
- internalType: "enum ITransactions.ResultType",
2937
- name: "result",
2938
- type: "uint8"
2939
- },
2940
- {
2941
- internalType: "address[]",
2942
- name: "roundValidators",
2943
- type: "address[]"
2944
- },
2945
- {
2946
- internalType: "bytes32[]",
2947
- name: "validatorVotesHash",
2948
- type: "bytes32[]"
2949
- },
2950
- {
2951
- internalType: "enum ITransactions.VoteType[]",
2952
- name: "validatorVotes",
2953
- type: "uint8[]"
2954
- }
2955
- ],
2956
- internalType: "struct ITransactions.RoundData",
2957
- name: "lastRound",
2958
- type: "tuple"
2959
- }
2960
- ],
2961
- internalType: "struct ConsensusData.TransactionData[]",
2962
- name: "",
2963
- type: "tuple[]"
2964
- }
2965
- ],
2966
- stateMutability: "view",
2967
- type: "function"
2968
- },
2969
- {
2970
- inputs: [
2971
- {
2972
- internalType: "address",
2973
- name: "recipient",
2974
- type: "address"
2975
- }
2976
- ],
2977
- name: "getLatestAcceptedTxCount",
2978
- outputs: [
2979
- {
2980
- internalType: "uint256",
2981
- name: "",
2982
- type: "uint256"
2983
- }
2984
- ],
2985
- stateMutability: "view",
2986
- type: "function"
2987
- },
2988
- {
2989
- inputs: [
2990
- {
2991
- internalType: "address",
2992
- name: "recipient",
2993
- type: "address"
2994
- }
2995
- ],
2996
- name: "getLatestFinalizedTransaction",
2997
- outputs: [
2998
- {
2999
- components: [
3000
- {
3001
- internalType: "uint256",
3002
- name: "currentTimestamp",
3003
- type: "uint256"
3004
- },
3005
- {
3006
- internalType: "address",
3007
- name: "sender",
3008
- type: "address"
3009
- },
3010
- {
3011
- internalType: "address",
3012
- name: "recipient",
3013
- type: "address"
3014
- },
3015
- {
3016
- internalType: "uint256",
3017
- name: "numOfInitialValidators",
3018
- type: "uint256"
3019
- },
3020
- {
3021
- internalType: "uint256",
3022
- name: "txSlot",
3023
- type: "uint256"
3024
- },
3025
- {
3026
- internalType: "uint256",
3027
- name: "createdTimestamp",
3028
- type: "uint256"
3029
- },
3030
- {
3031
- internalType: "uint256",
3032
- name: "lastVoteTimestamp",
3033
- type: "uint256"
3034
- },
3035
- {
3036
- internalType: "bytes32",
3037
- name: "randomSeed",
3038
- type: "bytes32"
3039
- },
3040
- {
3041
- internalType: "enum ITransactions.ResultType",
3042
- name: "result",
3043
- type: "uint8"
3044
- },
3045
- {
3046
- internalType: "bytes",
3047
- name: "txData",
3048
- type: "bytes"
3049
- },
3050
- {
3051
- internalType: "bytes",
3052
- name: "txReceipt",
3053
- type: "bytes"
3054
- },
3055
- {
3056
- components: [
3057
- {
3058
- internalType: "enum IMessages.MessageType",
3059
- name: "messageType",
3060
- type: "uint8"
3061
- },
3062
- {
3063
- internalType: "address",
3064
- name: "recipient",
3065
- type: "address"
3066
- },
3067
- {
3068
- internalType: "uint256",
3069
- name: "value",
3070
- type: "uint256"
3071
- },
3072
- {
3073
- internalType: "bytes",
3074
- name: "data",
3075
- type: "bytes"
3076
- },
3077
- {
3078
- internalType: "bool",
3079
- name: "onAcceptance",
3080
- type: "bool"
3081
- }
3082
- ],
3083
- internalType: "struct IMessages.SubmittedMessage[]",
3084
- name: "messages",
3085
- type: "tuple[]"
3086
- },
3087
- {
3088
- internalType: "enum IQueues.QueueType",
3089
- name: "queueType",
3090
- type: "uint8"
3091
- },
3092
- {
3093
- internalType: "uint256",
3094
- name: "queuePosition",
3095
- type: "uint256"
3096
- },
3097
- {
3098
- internalType: "address",
3099
- name: "activator",
3100
- type: "address"
3101
- },
3102
- {
3103
- internalType: "address",
3104
- name: "lastLeader",
3105
- type: "address"
3106
- },
3107
- {
3108
- internalType: "enum ITransactions.TransactionStatus",
3109
- name: "status",
3110
- type: "uint8"
3111
- },
3112
- {
3113
- internalType: "bytes32",
3114
- name: "txId",
3115
- type: "bytes32"
3116
- },
3117
- {
3118
- components: [
3119
- {
3120
- internalType: "uint256",
3121
- name: "activationBlock",
3122
- type: "uint256"
3123
- },
3124
- {
3125
- internalType: "uint256",
3126
- name: "processingBlock",
3127
- type: "uint256"
3128
- },
3129
- {
3130
- internalType: "uint256",
3131
- name: "proposalBlock",
3132
- type: "uint256"
3133
- }
3134
- ],
3135
- internalType: "struct ITransactions.ReadStateBlockRange",
3136
- name: "readStateBlockRange",
3137
- type: "tuple"
3138
- },
3139
- {
3140
- internalType: "uint256",
3141
- name: "numOfRounds",
3142
- type: "uint256"
3143
- },
3144
- {
3145
- components: [
3146
- {
3147
- internalType: "uint256",
3148
- name: "round",
3149
- type: "uint256"
3150
- },
3151
- {
3152
- internalType: "uint256",
3153
- name: "leaderIndex",
3154
- type: "uint256"
3155
- },
3156
- {
3157
- internalType: "uint256",
3158
- name: "votesCommitted",
3159
- type: "uint256"
3160
- },
3161
- {
3162
- internalType: "uint256",
3163
- name: "votesRevealed",
3164
- type: "uint256"
3165
- },
3166
- {
3167
- internalType: "uint256",
3168
- name: "appealBond",
3169
- type: "uint256"
3170
- },
3171
- {
3172
- internalType: "uint256",
3173
- name: "rotationsLeft",
3174
- type: "uint256"
3175
- },
3176
- {
3177
- internalType: "enum ITransactions.ResultType",
3178
- name: "result",
3179
- type: "uint8"
3180
- },
3181
- {
3182
- internalType: "address[]",
3183
- name: "roundValidators",
3184
- type: "address[]"
3185
- },
3186
- {
3187
- internalType: "bytes32[]",
3188
- name: "validatorVotesHash",
3189
- type: "bytes32[]"
3190
- },
3191
- {
3192
- internalType: "enum ITransactions.VoteType[]",
3193
- name: "validatorVotes",
3194
- type: "uint8[]"
3195
- }
3196
- ],
3197
- internalType: "struct ITransactions.RoundData",
3198
- name: "lastRound",
3199
- type: "tuple"
3200
- }
3201
- ],
3202
- internalType: "struct ConsensusData.TransactionData",
3203
- name: "txData",
3204
- type: "tuple"
3205
- }
3206
- ],
3207
- stateMutability: "view",
3208
- type: "function"
3209
- },
3210
- {
3211
- inputs: [
3212
- {
3213
- internalType: "address",
3214
- name: "recipient",
3215
- type: "address"
3216
- },
3217
- {
3218
- internalType: "uint256",
3219
- name: "startIndex",
3220
- type: "uint256"
3221
- },
3222
- {
3223
- internalType: "uint256",
3224
- name: "pageSize",
3225
- type: "uint256"
3226
- }
3227
- ],
3228
- name: "getLatestFinalizedTransactions",
3229
- outputs: [
3230
- {
3231
- components: [
3232
- {
3233
- internalType: "uint256",
3234
- name: "currentTimestamp",
3235
- type: "uint256"
3236
- },
3237
- {
3238
- internalType: "address",
3239
- name: "sender",
3240
- type: "address"
3241
- },
3242
- {
3243
- internalType: "address",
3244
- name: "recipient",
3245
- type: "address"
3246
- },
3247
- {
3248
- internalType: "uint256",
3249
- name: "numOfInitialValidators",
3250
- type: "uint256"
3251
- },
3252
- {
3253
- internalType: "uint256",
3254
- name: "txSlot",
3255
- type: "uint256"
3256
- },
3257
- {
3258
- internalType: "uint256",
3259
- name: "createdTimestamp",
3260
- type: "uint256"
3261
- },
3262
- {
3263
- internalType: "uint256",
3264
- name: "lastVoteTimestamp",
3265
- type: "uint256"
3266
- },
3267
- {
3268
- internalType: "bytes32",
3269
- name: "randomSeed",
3270
- type: "bytes32"
3271
- },
3272
- {
3273
- internalType: "enum ITransactions.ResultType",
3274
- name: "result",
3275
- type: "uint8"
3276
- },
3277
- {
3278
- internalType: "bytes",
3279
- name: "txData",
3280
- type: "bytes"
3281
- },
3282
- {
3283
- internalType: "bytes",
3284
- name: "txReceipt",
3285
- type: "bytes"
3286
- },
3287
- {
3288
- components: [
3289
- {
3290
- internalType: "enum IMessages.MessageType",
3291
- name: "messageType",
3292
- type: "uint8"
3293
- },
3294
- {
3295
- internalType: "address",
3296
- name: "recipient",
3297
- type: "address"
3298
- },
3299
- {
3300
- internalType: "uint256",
3301
- name: "value",
3302
- type: "uint256"
3303
- },
3304
- {
3305
- internalType: "bytes",
3306
- name: "data",
3307
- type: "bytes"
3308
- },
3309
- {
3310
- internalType: "bool",
3311
- name: "onAcceptance",
3312
- type: "bool"
3313
- }
3314
- ],
3315
- internalType: "struct IMessages.SubmittedMessage[]",
3316
- name: "messages",
3317
- type: "tuple[]"
3318
- },
3319
- {
3320
- internalType: "enum IQueues.QueueType",
3321
- name: "queueType",
3322
- type: "uint8"
3323
- },
3324
- {
3325
- internalType: "uint256",
3326
- name: "queuePosition",
3327
- type: "uint256"
3328
- },
3329
- {
3330
- internalType: "address",
3331
- name: "activator",
3332
- type: "address"
3333
- },
3334
- {
3335
- internalType: "address",
3336
- name: "lastLeader",
3337
- type: "address"
3338
- },
3339
- {
3340
- internalType: "enum ITransactions.TransactionStatus",
3341
- name: "status",
3342
- type: "uint8"
3343
- },
3344
- {
3345
- internalType: "bytes32",
3346
- name: "txId",
3347
- type: "bytes32"
3348
- },
3349
- {
3350
- components: [
3351
- {
3352
- internalType: "uint256",
3353
- name: "activationBlock",
3354
- type: "uint256"
3355
- },
3356
- {
3357
- internalType: "uint256",
3358
- name: "processingBlock",
3359
- type: "uint256"
3360
- },
3361
- {
3362
- internalType: "uint256",
3363
- name: "proposalBlock",
3364
- type: "uint256"
3365
- }
3366
- ],
3367
- internalType: "struct ITransactions.ReadStateBlockRange",
3368
- name: "readStateBlockRange",
3369
- type: "tuple"
3370
- },
3371
- {
3372
- internalType: "uint256",
3373
- name: "numOfRounds",
3374
- type: "uint256"
3375
- },
3376
- {
3377
- components: [
3378
- {
3379
- internalType: "uint256",
3380
- name: "round",
3381
- type: "uint256"
3382
- },
3383
- {
3384
- internalType: "uint256",
3385
- name: "leaderIndex",
3386
- type: "uint256"
3387
- },
3388
- {
3389
- internalType: "uint256",
3390
- name: "votesCommitted",
3391
- type: "uint256"
3392
- },
3393
- {
3394
- internalType: "uint256",
3395
- name: "votesRevealed",
3396
- type: "uint256"
3397
- },
3398
- {
3399
- internalType: "uint256",
3400
- name: "appealBond",
3401
- type: "uint256"
3402
- },
3403
- {
3404
- internalType: "uint256",
3405
- name: "rotationsLeft",
3406
- type: "uint256"
3407
- },
3408
- {
3409
- internalType: "enum ITransactions.ResultType",
3410
- name: "result",
3411
- type: "uint8"
3412
- },
3413
- {
3414
- internalType: "address[]",
3415
- name: "roundValidators",
3416
- type: "address[]"
3417
- },
3418
- {
3419
- internalType: "bytes32[]",
3420
- name: "validatorVotesHash",
3421
- type: "bytes32[]"
3422
- },
3423
- {
3424
- internalType: "enum ITransactions.VoteType[]",
3425
- name: "validatorVotes",
3426
- type: "uint8[]"
3427
- }
3428
- ],
3429
- internalType: "struct ITransactions.RoundData",
3430
- name: "lastRound",
3431
- type: "tuple"
3432
- }
3433
- ],
3434
- internalType: "struct ConsensusData.TransactionData[]",
3435
- name: "",
3436
- type: "tuple[]"
3437
- }
3438
- ],
3439
- stateMutability: "view",
3440
- type: "function"
3441
- },
3442
- {
3443
- inputs: [
3444
- {
3445
- internalType: "address",
3446
- name: "recipient",
3447
- type: "address"
3448
- }
3449
- ],
3450
- name: "getLatestFinalizedTxCount",
3451
- outputs: [
3452
- {
3453
- internalType: "uint256",
3454
- name: "",
3455
- type: "uint256"
3456
- }
3457
- ],
3458
- stateMutability: "view",
3459
- type: "function"
3460
- },
3461
- {
3462
- inputs: [
3463
- {
3464
- internalType: "address",
3465
- name: "recipient",
3466
- type: "address"
3467
- }
3468
- ],
3469
- name: "getLatestPendingTxCount",
3470
- outputs: [
3471
- {
3472
- internalType: "uint256",
3473
- name: "",
3474
- type: "uint256"
3475
- }
3476
- ],
3477
- stateMutability: "view",
3478
- type: "function"
3479
- },
3480
- {
3481
- inputs: [
3482
- {
3483
- internalType: "address",
3484
- name: "recipient",
3485
- type: "address"
3486
- },
3487
- {
3488
- internalType: "uint256",
3489
- name: "slot",
3490
- type: "uint256"
3491
- }
3492
- ],
3493
- name: "getLatestPendingTxId",
3494
- outputs: [
3495
- {
3496
- internalType: "bytes32",
3497
- name: "",
3498
- type: "bytes32"
3499
- }
3500
- ],
3501
- stateMutability: "view",
3502
- type: "function"
3503
- },
3504
- {
3505
- inputs: [
3506
- {
3507
- internalType: "address",
3508
- name: "recipient",
3509
- type: "address"
3510
- }
3511
- ],
3512
- name: "getLatestUndeterminedTransaction",
3513
- outputs: [
3514
- {
3515
- components: [
3516
- {
3517
- internalType: "uint256",
3518
- name: "currentTimestamp",
3519
- type: "uint256"
3520
- },
3521
- {
3522
- internalType: "address",
3523
- name: "sender",
3524
- type: "address"
3525
- },
3526
- {
3527
- internalType: "address",
3528
- name: "recipient",
3529
- type: "address"
3530
- },
3531
- {
3532
- internalType: "uint256",
3533
- name: "numOfInitialValidators",
3534
- type: "uint256"
3535
- },
3536
- {
3537
- internalType: "uint256",
3538
- name: "txSlot",
3539
- type: "uint256"
3540
- },
3541
- {
3542
- internalType: "uint256",
3543
- name: "createdTimestamp",
3544
- type: "uint256"
3545
- },
3546
- {
3547
- internalType: "uint256",
3548
- name: "lastVoteTimestamp",
3549
- type: "uint256"
3550
- },
3551
- {
3552
- internalType: "bytes32",
3553
- name: "randomSeed",
3554
- type: "bytes32"
3555
- },
3556
- {
3557
- internalType: "enum ITransactions.ResultType",
3558
- name: "result",
3559
- type: "uint8"
3560
- },
3561
- {
3562
- internalType: "bytes",
3563
- name: "txData",
3564
- type: "bytes"
3565
- },
3566
- {
3567
- internalType: "bytes",
3568
- name: "txReceipt",
3569
- type: "bytes"
3570
- },
3571
- {
3572
- components: [
3573
- {
3574
- internalType: "enum IMessages.MessageType",
3575
- name: "messageType",
3576
- type: "uint8"
3577
- },
3578
- {
3579
- internalType: "address",
3580
- name: "recipient",
3581
- type: "address"
3582
- },
3583
- {
3584
- internalType: "uint256",
3585
- name: "value",
3586
- type: "uint256"
3587
- },
3588
- {
3589
- internalType: "bytes",
3590
- name: "data",
3591
- type: "bytes"
3592
- },
3593
- {
3594
- internalType: "bool",
3595
- name: "onAcceptance",
3596
- type: "bool"
3597
- }
3598
- ],
3599
- internalType: "struct IMessages.SubmittedMessage[]",
3600
- name: "messages",
3601
- type: "tuple[]"
3602
- },
3603
- {
3604
- internalType: "enum IQueues.QueueType",
3605
- name: "queueType",
3606
- type: "uint8"
3607
- },
3608
- {
3609
- internalType: "uint256",
3610
- name: "queuePosition",
3611
- type: "uint256"
3612
- },
3613
- {
3614
- internalType: "address",
3615
- name: "activator",
3616
- type: "address"
3617
- },
3618
- {
3619
- internalType: "address",
3620
- name: "lastLeader",
3621
- type: "address"
3622
- },
3623
- {
3624
- internalType: "enum ITransactions.TransactionStatus",
3625
- name: "status",
3626
- type: "uint8"
3627
- },
3628
- {
3629
- internalType: "bytes32",
3630
- name: "txId",
3631
- type: "bytes32"
3632
- },
3633
- {
3634
- components: [
3635
- {
3636
- internalType: "uint256",
3637
- name: "activationBlock",
3638
- type: "uint256"
3639
- },
3640
- {
3641
- internalType: "uint256",
3642
- name: "processingBlock",
3643
- type: "uint256"
3644
- },
3645
- {
3646
- internalType: "uint256",
3647
- name: "proposalBlock",
3648
- type: "uint256"
3649
- }
3650
- ],
3651
- internalType: "struct ITransactions.ReadStateBlockRange",
3652
- name: "readStateBlockRange",
3653
- type: "tuple"
3654
- },
3655
- {
3656
- internalType: "uint256",
3657
- name: "numOfRounds",
3658
- type: "uint256"
3659
- },
3660
- {
3661
- components: [
3662
- {
3663
- internalType: "uint256",
3664
- name: "round",
3665
- type: "uint256"
3666
- },
3667
- {
3668
- internalType: "uint256",
3669
- name: "leaderIndex",
3670
- type: "uint256"
3671
- },
3672
- {
3673
- internalType: "uint256",
3674
- name: "votesCommitted",
3675
- type: "uint256"
3676
- },
3677
- {
3678
- internalType: "uint256",
3679
- name: "votesRevealed",
3680
- type: "uint256"
3681
- },
3682
- {
3683
- internalType: "uint256",
3684
- name: "appealBond",
3685
- type: "uint256"
3686
- },
3687
- {
3688
- internalType: "uint256",
3689
- name: "rotationsLeft",
3690
- type: "uint256"
3691
- },
3692
- {
3693
- internalType: "enum ITransactions.ResultType",
3694
- name: "result",
3695
- type: "uint8"
3696
- },
3697
- {
3698
- internalType: "address[]",
3699
- name: "roundValidators",
3700
- type: "address[]"
3701
- },
3702
- {
3703
- internalType: "bytes32[]",
3704
- name: "validatorVotesHash",
3705
- type: "bytes32[]"
3706
- },
3707
- {
3708
- internalType: "enum ITransactions.VoteType[]",
3709
- name: "validatorVotes",
3710
- type: "uint8[]"
3711
- }
3712
- ],
3713
- internalType: "struct ITransactions.RoundData",
3714
- name: "lastRound",
3715
- type: "tuple"
3716
- }
3717
- ],
3718
- internalType: "struct ConsensusData.TransactionData",
3719
- name: "txData",
3720
- type: "tuple"
3721
- }
3722
- ],
3723
- stateMutability: "view",
3724
- type: "function"
3725
- },
3726
- {
3727
- inputs: [
3728
- {
3729
- internalType: "address",
3730
- name: "recipient",
3731
- type: "address"
3732
- }
3733
- ],
3734
- name: "getLatestUndeterminedTxCount",
3735
- outputs: [
3736
- {
3737
- internalType: "uint256",
3738
- name: "",
3739
- type: "uint256"
3740
- }
3741
- ],
3742
- stateMutability: "view",
3743
- type: "function"
3744
- },
3745
- {
3746
- inputs: [
3747
- {
3748
- internalType: "bytes32",
3749
- name: "_tx_id",
3750
- type: "bytes32"
3751
- }
3752
- ],
3753
- name: "getMessagesForTransaction",
3754
- outputs: [
3755
- {
3756
- components: [
3757
- {
3758
- internalType: "enum IMessages.MessageType",
3759
- name: "messageType",
3760
- type: "uint8"
3761
- },
3762
- {
3763
- internalType: "address",
3764
- name: "recipient",
3765
- type: "address"
3766
- },
3767
- {
3768
- internalType: "uint256",
3769
- name: "value",
3770
- type: "uint256"
3771
- },
3772
- {
3773
- internalType: "bytes",
3774
- name: "data",
3775
- type: "bytes"
3776
- },
3777
- {
3778
- internalType: "bool",
3779
- name: "onAcceptance",
3780
- type: "bool"
3781
- }
3782
- ],
3783
- internalType: "struct IMessages.SubmittedMessage[]",
3784
- name: "",
3785
- type: "tuple[]"
3786
- },
3787
- {
3788
- internalType: "address",
3789
- name: "ghostAddress",
3790
- type: "address"
3791
- }
3792
- ],
3793
- stateMutability: "view",
3794
- type: "function"
3795
- },
3796
- {
3797
- inputs: [
3798
- {
3799
- internalType: "bytes32",
3800
- name: "_tx_id",
3801
- type: "bytes32"
3802
- }
3803
- ],
3804
- name: "getReadStateBlockRangeForTransaction",
3805
- outputs: [
3806
- {
3807
- internalType: "uint256",
3808
- name: "activationBlock",
3809
- type: "uint256"
3810
- },
3811
- {
3812
- internalType: "uint256",
3813
- name: "processingBlock",
3814
- type: "uint256"
3815
- },
3816
- {
3817
- internalType: "uint256",
3818
- name: "proposalBlock",
3819
- type: "uint256"
3820
- }
3821
- ],
3822
- stateMutability: "view",
3823
- type: "function"
3824
- },
3825
- {
3826
- inputs: [
3827
- {
3828
- internalType: "address",
3829
- name: "recipient",
3830
- type: "address"
3831
- },
3832
- {
3833
- internalType: "uint256",
3834
- name: "startIndex",
3835
- type: "uint256"
3836
- },
3837
- {
3838
- internalType: "uint256",
3839
- name: "endIndex",
3840
- type: "uint256"
3841
- }
3842
- ],
3843
- name: "getRecipientQueues",
3844
- outputs: [
3845
- {
3846
- components: [
3847
- {
3848
- components: [
3849
- {
3850
- internalType: "uint256",
3851
- name: "head",
3852
- type: "uint256"
3853
- },
3854
- {
3855
- internalType: "uint256",
3856
- name: "tail",
3857
- type: "uint256"
3858
- },
3859
- {
3860
- internalType: "bytes32[]",
3861
- name: "txIds",
3862
- type: "bytes32[]"
3863
- }
3864
- ],
3865
- internalType: "struct IQueues.QueueInfoView",
3866
- name: "pending",
3867
- type: "tuple"
3868
- },
3869
- {
3870
- components: [
3871
- {
3872
- internalType: "uint256",
3873
- name: "head",
3874
- type: "uint256"
3875
- },
3876
- {
3877
- internalType: "uint256",
3878
- name: "tail",
3879
- type: "uint256"
3880
- },
3881
- {
3882
- internalType: "bytes32[]",
3883
- name: "txIds",
3884
- type: "bytes32[]"
3885
- }
3886
- ],
3887
- internalType: "struct IQueues.QueueInfoView",
3888
- name: "accepted",
3889
- type: "tuple"
3890
- },
3891
- {
3892
- components: [
3893
- {
3894
- internalType: "uint256",
3895
- name: "head",
3896
- type: "uint256"
3897
- },
3898
- {
3899
- internalType: "uint256",
3900
- name: "tail",
3901
- type: "uint256"
3902
- },
3903
- {
3904
- internalType: "bytes32[]",
3905
- name: "txIds",
3906
- type: "bytes32[]"
3907
- }
3908
- ],
3909
- internalType: "struct IQueues.QueueInfoView",
3910
- name: "undetermined",
3911
- type: "tuple"
3912
- },
3913
- {
3914
- internalType: "uint256",
3915
- name: "finalizedCount",
3916
- type: "uint256"
3917
- },
3918
- {
3919
- internalType: "uint256",
3920
- name: "issuedTxCount",
3921
- type: "uint256"
3922
- }
3923
- ],
3924
- internalType: "struct IQueues.RecipientQueuesView",
3925
- name: "",
3926
- type: "tuple"
3927
- }
3928
- ],
3929
- stateMutability: "view",
3930
- type: "function"
3931
- },
3932
- {
3933
- inputs: [
3934
- {
3935
- internalType: "bytes32",
3936
- name: "role",
3937
- type: "bytes32"
3938
- }
3939
- ],
3940
- name: "getRoleAdmin",
3941
- outputs: [
3942
- {
3943
- internalType: "bytes32",
3944
- name: "",
3945
- type: "bytes32"
3946
- }
3947
- ],
3948
- stateMutability: "view",
3949
- type: "function"
3950
- },
3951
- {
3952
- inputs: [],
3953
- name: "getTotalNumOfTransactions",
3954
- outputs: [
3955
- {
3956
- internalType: "uint256",
3957
- name: "",
3958
- type: "uint256"
3959
- }
3960
- ],
3961
- stateMutability: "view",
3962
- type: "function"
3963
- },
3964
- {
3965
- inputs: [
3966
- {
3967
- internalType: "bytes32",
3968
- name: "_tx_id",
3969
- type: "bytes32"
3970
- }
3971
- ],
3972
- name: "getTransactionAllData",
3973
- outputs: [
3974
- {
3975
- components: [
3976
- {
3977
- internalType: "bytes32",
3978
- name: "id",
3979
- type: "bytes32"
3980
- },
3981
- {
3982
- internalType: "address",
3983
- name: "sender",
3984
- type: "address"
3985
- },
3986
- {
3987
- internalType: "address",
3988
- name: "recipient",
3989
- type: "address"
3990
- },
3991
- {
3992
- internalType: "uint256",
3993
- name: "numOfInitialValidators",
3994
- type: "uint256"
3995
- },
3996
- {
3997
- internalType: "uint256",
3998
- name: "txSlot",
3999
- type: "uint256"
4000
- },
4001
- {
4002
- internalType: "address",
4003
- name: "activator",
4004
- type: "address"
4005
- },
4006
- {
4007
- internalType: "enum ITransactions.TransactionStatus",
4008
- name: "status",
4009
- type: "uint8"
4010
- },
4011
- {
4012
- internalType: "enum ITransactions.TransactionStatus",
4013
- name: "previousStatus",
4014
- type: "uint8"
4015
- },
4016
- {
4017
- components: [
4018
- {
4019
- internalType: "uint256",
4020
- name: "created",
4021
- type: "uint256"
4022
- },
4023
- {
4024
- internalType: "uint256",
4025
- name: "pending",
4026
- type: "uint256"
4027
- },
4028
- {
4029
- internalType: "uint256",
4030
- name: "activated",
4031
- type: "uint256"
4032
- },
4033
- {
4034
- internalType: "uint256",
4035
- name: "proposed",
4036
- type: "uint256"
4037
- },
4038
- {
4039
- internalType: "uint256",
4040
- name: "committed",
4041
- type: "uint256"
4042
- },
4043
- {
4044
- internalType: "uint256",
4045
- name: "lastVote",
4046
- type: "uint256"
4047
- },
4048
- {
4049
- internalType: "uint256",
4050
- name: "appealSubmitted",
4051
- type: "uint256"
4052
- }
4053
- ],
4054
- internalType: "struct ITransactions.Timestamps",
4055
- name: "timestamps",
4056
- type: "tuple"
4057
- },
4058
- {
4059
- internalType: "bytes32",
4060
- name: "randomSeed",
4061
- type: "bytes32"
4062
- },
4063
- {
4064
- internalType: "bool",
4065
- name: "onAcceptanceMessages",
4066
- type: "bool"
4067
- },
4068
- {
4069
- internalType: "enum ITransactions.ResultType",
4070
- name: "result",
4071
- type: "uint8"
4072
- },
4073
- {
4074
- components: [
4075
- {
4076
- internalType: "uint256",
4077
- name: "activationBlock",
4078
- type: "uint256"
4079
- },
4080
- {
4081
- internalType: "uint256",
4082
- name: "processingBlock",
4083
- type: "uint256"
4084
- },
4085
- {
4086
- internalType: "uint256",
4087
- name: "proposalBlock",
4088
- type: "uint256"
4089
- }
4090
- ],
4091
- internalType: "struct ITransactions.ReadStateBlockRange",
4092
- name: "readStateBlockRange",
4093
- type: "tuple"
4094
- },
4095
- {
4096
- internalType: "bytes",
4097
- name: "txData",
4098
- type: "bytes"
4099
- },
4100
- {
4101
- internalType: "bytes",
4102
- name: "txReceipt",
4103
- type: "bytes"
4104
- },
4105
- {
4106
- components: [
4107
- {
4108
- internalType: "enum IMessages.MessageType",
4109
- name: "messageType",
4110
- type: "uint8"
4111
- },
4112
- {
4113
- internalType: "address",
4114
- name: "recipient",
4115
- type: "address"
4116
- },
4117
- {
4118
- internalType: "uint256",
4119
- name: "value",
4120
- type: "uint256"
4121
- },
4122
- {
4123
- internalType: "bytes",
4124
- name: "data",
4125
- type: "bytes"
4126
- },
4127
- {
4128
- internalType: "bool",
4129
- name: "onAcceptance",
4130
- type: "bool"
4131
- }
4132
- ],
4133
- internalType: "struct IMessages.SubmittedMessage[]",
4134
- name: "messages",
4135
- type: "tuple[]"
4136
- },
4137
- {
4138
- internalType: "address[]",
4139
- name: "consumedValidators",
4140
- type: "address[]"
4141
- },
4142
- {
4143
- components: [
4144
- {
4145
- internalType: "uint256",
4146
- name: "round",
4147
- type: "uint256"
4148
- },
4149
- {
4150
- internalType: "uint256",
4151
- name: "leaderIndex",
4152
- type: "uint256"
4153
- },
4154
- {
4155
- internalType: "uint256",
4156
- name: "votesCommitted",
4157
- type: "uint256"
4158
- },
4159
- {
4160
- internalType: "uint256",
4161
- name: "votesRevealed",
4162
- type: "uint256"
4163
- },
4164
- {
4165
- internalType: "uint256",
4166
- name: "appealBond",
4167
- type: "uint256"
4168
- },
4169
- {
4170
- internalType: "uint256",
4171
- name: "rotationsLeft",
4172
- type: "uint256"
4173
- },
4174
- {
4175
- internalType: "enum ITransactions.ResultType",
4176
- name: "result",
4177
- type: "uint8"
4178
- },
4179
- {
4180
- internalType: "address[]",
4181
- name: "roundValidators",
4182
- type: "address[]"
4183
- },
4184
- {
4185
- internalType: "bytes32[]",
4186
- name: "validatorVotesHash",
4187
- type: "bytes32[]"
4188
- },
4189
- {
4190
- internalType: "enum ITransactions.VoteType[]",
4191
- name: "validatorVotes",
4192
- type: "uint8[]"
4193
- }
4194
- ],
4195
- internalType: "struct ITransactions.RoundData[]",
4196
- name: "roundData",
4197
- type: "tuple[]"
4198
- }
4199
- ],
4200
- internalType: "struct ITransactions.Transaction",
4201
- name: "transaction",
4202
- type: "tuple"
4203
- }
4204
- ],
4205
- stateMutability: "view",
4206
- type: "function"
4207
- },
4208
- {
4209
- inputs: [
4210
- {
4211
- internalType: "bytes32",
4212
- name: "_tx_id",
4213
- type: "bytes32"
4214
- },
4215
- {
4216
- internalType: "uint256",
4217
- name: "_timestamp",
4218
- type: "uint256"
4219
- }
4220
- ],
4221
- name: "getTransactionData",
4222
- outputs: [
4223
- {
4224
- components: [
4225
- {
4226
- internalType: "uint256",
4227
- name: "currentTimestamp",
4228
- type: "uint256"
4229
- },
4230
- {
4231
- internalType: "address",
4232
- name: "sender",
4233
- type: "address"
4234
- },
4235
- {
4236
- internalType: "address",
4237
- name: "recipient",
4238
- type: "address"
4239
- },
4240
- {
4241
- internalType: "uint256",
4242
- name: "numOfInitialValidators",
4243
- type: "uint256"
4244
- },
4245
- {
4246
- internalType: "uint256",
4247
- name: "txSlot",
4248
- type: "uint256"
4249
- },
4250
- {
4251
- internalType: "uint256",
4252
- name: "createdTimestamp",
4253
- type: "uint256"
4254
- },
4255
- {
4256
- internalType: "uint256",
4257
- name: "lastVoteTimestamp",
4258
- type: "uint256"
4259
- },
4260
- {
4261
- internalType: "bytes32",
4262
- name: "randomSeed",
4263
- type: "bytes32"
4264
- },
4265
- {
4266
- internalType: "enum ITransactions.ResultType",
4267
- name: "result",
4268
- type: "uint8"
4269
- },
4270
- {
4271
- internalType: "bytes",
4272
- name: "txData",
4273
- type: "bytes"
4274
- },
4275
- {
4276
- internalType: "bytes",
4277
- name: "txReceipt",
4278
- type: "bytes"
4279
- },
4280
- {
4281
- components: [
4282
- {
4283
- internalType: "enum IMessages.MessageType",
4284
- name: "messageType",
4285
- type: "uint8"
4286
- },
4287
- {
4288
- internalType: "address",
4289
- name: "recipient",
4290
- type: "address"
4291
- },
4292
- {
4293
- internalType: "uint256",
4294
- name: "value",
4295
- type: "uint256"
4296
- },
4297
- {
4298
- internalType: "bytes",
4299
- name: "data",
4300
- type: "bytes"
4301
- },
4302
- {
4303
- internalType: "bool",
4304
- name: "onAcceptance",
4305
- type: "bool"
4306
- }
4307
- ],
4308
- internalType: "struct IMessages.SubmittedMessage[]",
4309
- name: "messages",
4310
- type: "tuple[]"
4311
- },
4312
- {
4313
- internalType: "enum IQueues.QueueType",
4314
- name: "queueType",
4315
- type: "uint8"
4316
- },
4317
- {
4318
- internalType: "uint256",
4319
- name: "queuePosition",
4320
- type: "uint256"
4321
- },
4322
- {
4323
- internalType: "address",
4324
- name: "activator",
4325
- type: "address"
4326
- },
4327
- {
4328
- internalType: "address",
4329
- name: "lastLeader",
4330
- type: "address"
4331
- },
4332
- {
4333
- internalType: "enum ITransactions.TransactionStatus",
4334
- name: "status",
4335
- type: "uint8"
4336
- },
4337
- {
4338
- internalType: "bytes32",
4339
- name: "txId",
4340
- type: "bytes32"
4341
- },
4342
- {
4343
- components: [
4344
- {
4345
- internalType: "uint256",
4346
- name: "activationBlock",
4347
- type: "uint256"
4348
- },
4349
- {
4350
- internalType: "uint256",
4351
- name: "processingBlock",
4352
- type: "uint256"
4353
- },
4354
- {
4355
- internalType: "uint256",
4356
- name: "proposalBlock",
4357
- type: "uint256"
4358
- }
4359
- ],
4360
- internalType: "struct ITransactions.ReadStateBlockRange",
4361
- name: "readStateBlockRange",
4362
- type: "tuple"
4363
- },
4364
- {
4365
- internalType: "uint256",
4366
- name: "numOfRounds",
4367
- type: "uint256"
4368
- },
4369
- {
4370
- components: [
4371
- {
4372
- internalType: "uint256",
4373
- name: "round",
4374
- type: "uint256"
4375
- },
4376
- {
4377
- internalType: "uint256",
4378
- name: "leaderIndex",
4379
- type: "uint256"
4380
- },
4381
- {
4382
- internalType: "uint256",
4383
- name: "votesCommitted",
4384
- type: "uint256"
4385
- },
4386
- {
4387
- internalType: "uint256",
4388
- name: "votesRevealed",
4389
- type: "uint256"
4390
- },
4391
- {
4392
- internalType: "uint256",
4393
- name: "appealBond",
4394
- type: "uint256"
4395
- },
4396
- {
4397
- internalType: "uint256",
4398
- name: "rotationsLeft",
4399
- type: "uint256"
4400
- },
4401
- {
4402
- internalType: "enum ITransactions.ResultType",
4403
- name: "result",
4404
- type: "uint8"
4405
- },
4406
- {
4407
- internalType: "address[]",
4408
- name: "roundValidators",
4409
- type: "address[]"
4410
- },
4411
- {
4412
- internalType: "bytes32[]",
4413
- name: "validatorVotesHash",
4414
- type: "bytes32[]"
4415
- },
4416
- {
4417
- internalType: "enum ITransactions.VoteType[]",
4418
- name: "validatorVotes",
4419
- type: "uint8[]"
4420
- }
4421
- ],
4422
- internalType: "struct ITransactions.RoundData",
4423
- name: "lastRound",
4424
- type: "tuple"
4425
- }
4426
- ],
4427
- internalType: "struct ConsensusData.TransactionData",
4428
- name: "",
4429
- type: "tuple"
4430
- }
4431
- ],
4432
- stateMutability: "view",
4433
- type: "function"
4434
- },
4435
- {
4436
- inputs: [
4437
- {
4438
- internalType: "uint256",
4439
- name: "startIndex",
4440
- type: "uint256"
4441
- },
4442
- {
4443
- internalType: "uint256",
4444
- name: "endIndex",
4445
- type: "uint256"
4446
- }
4447
- ],
4448
- name: "getTransactionIndexToTxId",
4449
- outputs: [
4450
- {
4451
- internalType: "bytes32[]",
4452
- name: "",
4453
- type: "bytes32[]"
4454
- }
4455
- ],
4456
- stateMutability: "view",
4457
- type: "function"
4458
- },
4459
- {
4460
- inputs: [
4461
- {
4462
- internalType: "bytes32",
4463
- name: "_tx_id",
4464
- type: "bytes32"
4465
- },
4466
- {
4467
- internalType: "uint256",
4468
- name: "_timestamp",
4469
- type: "uint256"
4470
- }
4471
- ],
4472
- name: "getTransactionStatus",
4473
- outputs: [
4474
- {
4475
- internalType: "enum ITransactions.TransactionStatus",
4476
- name: "",
4477
- type: "uint8"
4478
- }
4479
- ],
4480
- stateMutability: "view",
4481
- type: "function"
4482
- },
4483
- {
4484
- inputs: [
4485
- {
4486
- internalType: "bytes32",
4487
- name: "_tx_id",
4488
- type: "bytes32"
4489
- }
4490
- ],
4491
- name: "getValidatorsForLastAppeal",
4492
- outputs: [
4493
- {
4494
- internalType: "address[]",
4495
- name: "",
4496
- type: "address[]"
4497
- }
4498
- ],
4499
- stateMutability: "view",
4500
- type: "function"
4501
- },
4502
- {
4503
- inputs: [
4504
- {
4505
- internalType: "bytes32",
4506
- name: "_tx_id",
4507
- type: "bytes32"
4508
- }
4509
- ],
4510
- name: "getValidatorsForLastRound",
4511
- outputs: [
4512
- {
4513
- internalType: "address[]",
4514
- name: "",
4515
- type: "address[]"
4516
- }
4517
- ],
4518
- stateMutability: "view",
4519
- type: "function"
4520
- },
4521
- {
4522
- inputs: [
4523
- {
4524
- internalType: "bytes32",
4525
- name: "role",
4526
- type: "bytes32"
4527
- },
4528
- {
4529
- internalType: "address",
4530
- name: "account",
4531
- type: "address"
4532
- }
4533
- ],
4534
- name: "grantRole",
4535
- outputs: [],
4536
- stateMutability: "nonpayable",
4537
- type: "function"
4538
- },
4539
- {
4540
- inputs: [
4541
- {
4542
- internalType: "bytes32",
4543
- name: "role",
4544
- type: "bytes32"
4545
- },
4546
- {
4547
- internalType: "address",
4548
- name: "account",
4549
- type: "address"
4550
- }
4551
- ],
4552
- name: "hasRole",
4553
- outputs: [
4554
- {
4555
- internalType: "bool",
4556
- name: "",
4557
- type: "bool"
4558
- }
4559
- ],
4560
- stateMutability: "view",
4561
- type: "function"
4562
- },
4563
- {
4564
- inputs: [
4565
- {
4566
- internalType: "bytes32",
4567
- name: "_tx_id",
4568
- type: "bytes32"
4569
- }
4570
- ],
4571
- name: "hasTransactionOnAcceptanceMessages",
4572
- outputs: [
4573
- {
4574
- internalType: "bool",
4575
- name: "",
4576
- type: "bool"
4577
- }
4578
- ],
4579
- stateMutability: "view",
4580
- type: "function"
4581
- },
4582
- {
4583
- inputs: [
4584
- {
4585
- internalType: "bytes32",
4586
- name: "_tx_id",
4587
- type: "bytes32"
4588
- }
4589
- ],
4590
- name: "hasTransactionOnFinalizationMessages",
4591
- outputs: [
4592
- {
4593
- internalType: "bool",
4594
- name: "",
4595
- type: "bool"
4596
- }
4597
- ],
4598
- stateMutability: "view",
4599
- type: "function"
4600
- },
4601
- {
4602
- inputs: [
4603
- {
4604
- internalType: "address",
4605
- name: "_consensusMain",
4606
- type: "address"
4607
- },
4608
- {
4609
- internalType: "address",
4610
- name: "_transactions",
4611
- type: "address"
4612
- },
4613
- {
4614
- internalType: "address",
4615
- name: "_queues",
4616
- type: "address"
4617
- }
4618
- ],
4619
- name: "initialize",
4620
- outputs: [],
4621
- stateMutability: "nonpayable",
4622
- type: "function"
4623
- },
4624
- {
4625
- inputs: [],
4626
- name: "owner",
4627
- outputs: [
4628
- {
4629
- internalType: "address",
4630
- name: "",
4631
- type: "address"
4632
- }
4633
- ],
4634
- stateMutability: "view",
4635
- type: "function"
4636
- },
4637
- {
4638
- inputs: [],
4639
- name: "pendingOwner",
4640
- outputs: [
4641
- {
4642
- internalType: "address",
4643
- name: "",
4644
- type: "address"
4645
- }
4646
- ],
4647
- stateMutability: "view",
4648
- type: "function"
4649
- },
4650
- {
4651
- inputs: [],
4652
- name: "queues",
4653
- outputs: [
4654
- {
4655
- internalType: "contract IQueues",
4656
- name: "",
4657
- type: "address"
4658
- }
4659
- ],
4660
- stateMutability: "view",
4661
- type: "function"
4662
- },
4663
- {
4664
- inputs: [],
4665
- name: "renounceOwnership",
4666
- outputs: [],
4667
- stateMutability: "nonpayable",
4668
- type: "function"
4669
- },
4670
- {
4671
- inputs: [
4672
- {
4673
- internalType: "bytes32",
4674
- name: "role",
4675
- type: "bytes32"
4676
- },
4677
- {
4678
- internalType: "address",
4679
- name: "callerConfirmation",
4680
- type: "address"
4681
- }
4682
- ],
4683
- name: "renounceRole",
4684
- outputs: [],
4685
- stateMutability: "nonpayable",
4686
- type: "function"
4687
- },
4688
- {
4689
- inputs: [
4690
- {
4691
- internalType: "bytes32",
4692
- name: "role",
4693
- type: "bytes32"
4694
- },
4695
- {
4696
- internalType: "address",
4697
- name: "account",
4698
- type: "address"
4699
- }
4700
- ],
4701
- name: "revokeRole",
4702
- outputs: [],
4703
- stateMutability: "nonpayable",
4704
- type: "function"
4705
- },
4706
- {
4707
- inputs: [
4708
- {
4709
- internalType: "address",
4710
- name: "_consensusMain",
4711
- type: "address"
4712
- }
4713
- ],
4714
- name: "setConsensusMain",
4715
- outputs: [],
4716
- stateMutability: "nonpayable",
4717
- type: "function"
4718
- },
4719
- {
4720
- inputs: [
4721
- {
4722
- internalType: "address",
4723
- name: "_queues",
4724
- type: "address"
4725
- }
4726
- ],
4727
- name: "setQueues",
4728
- outputs: [],
4729
- stateMutability: "nonpayable",
4730
- type: "function"
4731
- },
4732
- {
4733
- inputs: [
4734
- {
4735
- internalType: "address",
4736
- name: "_transactions",
4737
- type: "address"
4738
- }
4739
- ],
4740
- name: "setTransactions",
4741
- outputs: [],
4742
- stateMutability: "nonpayable",
4743
- type: "function"
4744
- },
4745
- {
4746
- inputs: [
4747
- {
4748
- internalType: "bytes4",
4749
- name: "interfaceId",
4750
- type: "bytes4"
4751
- }
4752
- ],
4753
- name: "supportsInterface",
4754
- outputs: [
4755
- {
4756
- internalType: "bool",
4757
- name: "",
4758
- type: "bool"
4759
- }
4760
- ],
4761
- stateMutability: "view",
4762
- type: "function"
4763
- },
4764
- {
4765
- inputs: [],
4766
- name: "transactions",
4767
- outputs: [
4768
- {
4769
- internalType: "contract ITransactions",
4770
- name: "",
4771
- type: "address"
4772
- }
4773
- ],
4774
- stateMutability: "view",
4775
- type: "function"
4776
- },
4777
- {
4778
- inputs: [
4779
- {
4780
- internalType: "address",
4781
- name: "newOwner",
4782
- type: "address"
4783
- }
4784
- ],
4785
- name: "transferOwnership",
4786
- outputs: [],
4787
- stateMutability: "nonpayable",
4788
- type: "function"
4789
- }
4790
- ],
4791
- bytecode: ""
4792
- };
4793
- var studionet = defineChain({
4794
- id: 61999,
4795
- name: "Genlayer Studio Network",
4796
- rpcUrls: {
4797
- default: {
4798
- http: [SIMULATOR_JSON_RPC_URL]
4799
- }
4800
- },
4801
- nativeCurrency: {
4802
- name: "GEN Token",
4803
- symbol: "GEN",
4804
- decimals: 18
4805
- },
4806
- blockExplorers: {
4807
- default: {
4808
- name: "GenLayer Explorer",
4809
- url: EXPLORER_URL
4810
- }
4811
- },
4812
- testnet: true,
4813
- consensusMainContract: CONSENSUS_MAIN_CONTRACT,
4814
- consensusDataContract: CONSENSUS_DATA_CONTRACT,
4815
- defaultNumberOfInitialValidators: 5,
4816
- defaultConsensusMaxRotations: 3
4817
- });
4818
-
4819
852
  // src/config/snapID.ts
4820
853
  var snapID = {
4821
854
  local: "local:http://localhost:8081",