zksync-web3
Advanced tools
Comparing version 0.16.0 to 0.17.0-beta.0
@@ -214,2 +214,15 @@ { | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_keccak256BytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "forceDeployKeccak256", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
@@ -216,0 +229,0 @@ { |
@@ -60,5 +60,30 @@ { | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "l1Token", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bool", | ||
"name": "depositLimitation", | ||
"type": "bool" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "depositCap", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "UpdateDepositLimit", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_caller", | ||
@@ -65,0 +90,0 @@ "type": "address" |
@@ -73,5 +73,36 @@ { | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_l2Sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_l1Receiver", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes", | ||
"name": "_additionalData", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "WithdrawalWithMessage", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
@@ -197,4 +228,22 @@ "type": "uint256" | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_l1Receiver", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_additionalData", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "withdrawWithMessage", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
} | ||
] | ||
} |
@@ -109,3 +109,3 @@ { | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -120,3 +120,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -183,3 +183,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -194,3 +194,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -218,3 +218,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -221,0 +221,0 @@ }, |
@@ -7,2 +7,15 @@ { | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "BytecodeL1PublicationRequested", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
@@ -30,4 +43,91 @@ "internalType": "address", | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint8", | ||
"name": "l2ShardId", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isService", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "uint16", | ||
"name": "txNumberInBlock", | ||
"type": "uint16" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "key", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "value", | ||
"type": "bytes32" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "struct L2ToL1Log", | ||
"name": "_l2log", | ||
"type": "tuple" | ||
} | ||
], | ||
"name": "L2ToL1LogSent", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "requestBytecodeL1Publication", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "_isService", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_key", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_value", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "sendL2ToL1Log", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "logIdInMerkleTree", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes", | ||
@@ -34,0 +134,0 @@ "name": "_message", |
@@ -9,3 +9,3 @@ { | ||
"internalType": "uint256", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint256" | ||
@@ -16,3 +16,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -36,3 +36,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint256" | ||
@@ -43,3 +43,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -63,3 +63,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "totalBlocksCommitted", | ||
"name": "totalBatchesCommitted", | ||
"type": "uint256" | ||
@@ -70,3 +70,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "totalBlocksVerified", | ||
"name": "totalBatchesVerified", | ||
"type": "uint256" | ||
@@ -77,3 +77,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "totalBlocksExecuted", | ||
"name": "totalBatchesExecuted", | ||
"type": "uint256" | ||
@@ -91,3 +91,3 @@ } | ||
"internalType": "uint256", | ||
"name": "previousLastVerifiedBlock", | ||
"name": "previousLastVerifiedBatch", | ||
"type": "uint256" | ||
@@ -98,3 +98,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "currentLastVerifiedBlock", | ||
"name": "currentLastVerifiedBatch", | ||
"type": "uint256" | ||
@@ -111,21 +111,2 @@ } | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "CancelUpgradeProposal", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
@@ -149,18 +130,45 @@ "name": "to", | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "bytes32", | ||
"name": "proposalSalt", | ||
"type": "bytes32" | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "diamondCut", | ||
"type": "tuple" | ||
} | ||
@@ -196,2 +204,21 @@ ], | ||
"internalType": "address", | ||
"name": "oldAdmin", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newAdmin", | ||
"type": "address" | ||
} | ||
], | ||
"name": "NewAdmin", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "oldGovernor", | ||
@@ -216,2 +243,21 @@ "type": "address" | ||
"internalType": "address", | ||
"name": "oldPendingAdmin", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newPendingAdmin", | ||
"type": "address" | ||
} | ||
], | ||
"name": "NewPendingAdmin", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "oldPendingGovernor", | ||
@@ -370,104 +416,2 @@ "type": "address" | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "ProposeShadowUpgrade", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "diamondCut", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes32", | ||
"name": "proposalSalt", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "ProposeTransparentUpgrade", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "SecurityCouncilUpgradeApprove", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [], | ||
@@ -498,3 +442,3 @@ "name": "Unfreeze", | ||
"inputs": [], | ||
"name": "acceptGovernor", | ||
"name": "acceptAdmin", | ||
"outputs": [], | ||
@@ -505,10 +449,4 @@ "stateMutability": "nonpayable", | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_proposedUpgradeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "cancelUpgradeProposal", | ||
"inputs": [], | ||
"name": "acceptGovernor", | ||
"outputs": [], | ||
@@ -524,3 +462,3 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -530,3 +468,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -565,4 +503,4 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo", | ||
"name": "_lastCommittedBlockData", | ||
"internalType": "struct IExecutor.StoredBatchInfo", | ||
"name": "_lastCommittedBatchData", | ||
"type": "tuple" | ||
@@ -574,3 +512,3 @@ }, | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -600,3 +538,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "l2LogsTreeRoot", | ||
"name": "priorityOperationsHash", | ||
"type": "bytes32" | ||
@@ -606,13 +544,13 @@ }, | ||
"internalType": "bytes32", | ||
"name": "priorityOperationsHash", | ||
"name": "bootloaderHeapInitialContentsHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initialStorageChanges", | ||
"type": "bytes" | ||
"internalType": "bytes32", | ||
"name": "eventsQueueStateHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "repeatedStorageChanges", | ||
"name": "systemLogs", | ||
"type": "bytes" | ||
@@ -622,22 +560,12 @@ }, | ||
"internalType": "bytes", | ||
"name": "l2Logs", | ||
"name": "totalL2ToL1Pubdata", | ||
"type": "bytes" | ||
}, | ||
{ | ||
"internalType": "bytes[]", | ||
"name": "l2ArbitraryLengthMessages", | ||
"type": "bytes[]" | ||
}, | ||
{ | ||
"internalType": "bytes[]", | ||
"name": "factoryDeps", | ||
"type": "bytes[]" | ||
} | ||
], | ||
"internalType": "struct IExecutor.CommitBlockInfo[]", | ||
"name": "_newBlocksData", | ||
"internalType": "struct IExecutor.CommitBatchInfo[]", | ||
"name": "_newBatchesData", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"name": "commitBlocks", | ||
"name": "commitBatches", | ||
"outputs": [], | ||
@@ -653,3 +581,3 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -659,3 +587,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -694,8 +622,8 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo[]", | ||
"name": "_blocksData", | ||
"internalType": "struct IExecutor.StoredBatchInfo[]", | ||
"name": "_batchesData", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"name": "executeBlocks", | ||
"name": "executeBatches", | ||
"outputs": [], | ||
@@ -750,7 +678,2 @@ "stateMutability": "nonpayable", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_proposalSalt", | ||
"type": "bytes32" | ||
} | ||
@@ -843,3 +766,3 @@ ], | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -854,3 +777,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -896,15 +819,2 @@ }, | ||
"inputs": [], | ||
"name": "getCurrentProposalId", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getFirstUnprocessedPriorityTx", | ||
@@ -962,8 +872,8 @@ "outputs": [ | ||
"inputs": [], | ||
"name": "getPendingGovernor", | ||
"name": "getL2SystemContractsUpgradeBatchNumber", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "address" | ||
"type": "uint256" | ||
} | ||
@@ -976,8 +886,8 @@ ], | ||
"inputs": [], | ||
"name": "getPriorityQueueSize", | ||
"name": "getL2SystemContractsUpgradeTxHash", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "uint256" | ||
"type": "bytes32" | ||
} | ||
@@ -990,8 +900,8 @@ ], | ||
"inputs": [], | ||
"name": "getPriorityTxMaxGasLimit", | ||
"name": "getName", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"internalType": "string", | ||
"name": "", | ||
"type": "uint256" | ||
"type": "string" | ||
} | ||
@@ -1004,8 +914,8 @@ ], | ||
"inputs": [], | ||
"name": "getProposedUpgradeHash", | ||
"name": "getPendingGovernor", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"internalType": "address", | ||
"name": "", | ||
"type": "bytes32" | ||
"type": "address" | ||
} | ||
@@ -1018,3 +928,3 @@ ], | ||
"inputs": [], | ||
"name": "getProposedUpgradeTimestamp", | ||
"name": "getPriorityQueueSize", | ||
"outputs": [ | ||
@@ -1032,3 +942,3 @@ { | ||
"inputs": [], | ||
"name": "getProtocolVersion", | ||
"name": "getPriorityTxMaxGasLimit", | ||
"outputs": [ | ||
@@ -1046,8 +956,8 @@ { | ||
"inputs": [], | ||
"name": "getSecurityCouncil", | ||
"name": "getProtocolVersion", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "address" | ||
"type": "uint256" | ||
} | ||
@@ -1060,3 +970,3 @@ ], | ||
"inputs": [], | ||
"name": "getTotalBlocksCommitted", | ||
"name": "getTotalBatchesCommitted", | ||
"outputs": [ | ||
@@ -1074,3 +984,3 @@ { | ||
"inputs": [], | ||
"name": "getTotalBlocksExecuted", | ||
"name": "getTotalBatchesExecuted", | ||
"outputs": [ | ||
@@ -1088,3 +998,3 @@ { | ||
"inputs": [], | ||
"name": "getTotalBlocksVerified", | ||
"name": "getTotalBatchesVerified", | ||
"outputs": [ | ||
@@ -1115,15 +1025,2 @@ { | ||
"inputs": [], | ||
"name": "getUpgradeProposalState", | ||
"outputs": [ | ||
{ | ||
"internalType": "enum UpgradeState", | ||
"name": "", | ||
"type": "uint8" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getVerifier", | ||
@@ -1172,15 +1069,2 @@ "outputs": [ | ||
"inputs": [], | ||
"name": "isApprovedBySecurityCouncil", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "isDiamondStorageFrozen", | ||
@@ -1201,3 +1085,3 @@ "outputs": [ | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1283,3 +1167,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_batchNumber", | ||
"type": "uint256" | ||
@@ -1361,81 +1245,6 @@ } | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_proposalHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint40", | ||
"name": "_proposalId", | ||
"type": "uint40" | ||
} | ||
], | ||
"name": "proposeShadowUpgrade", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "_diamondCut", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "uint40", | ||
"name": "_proposalId", | ||
"type": "uint40" | ||
} | ||
], | ||
"name": "proposeTransparentUpgrade", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -1445,3 +1254,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -1480,4 +1289,4 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo", | ||
"name": "_prevBlock", | ||
"internalType": "struct IExecutor.StoredBatchInfo", | ||
"name": "_prevBatch", | ||
"type": "tuple" | ||
@@ -1489,3 +1298,3 @@ }, | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -1495,3 +1304,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -1530,4 +1339,4 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo[]", | ||
"name": "_committedBlocks", | ||
"internalType": "struct IExecutor.StoredBatchInfo[]", | ||
"name": "_committedBatches", | ||
"type": "tuple[]" | ||
@@ -1553,3 +1362,3 @@ }, | ||
], | ||
"name": "proveBlocks", | ||
"name": "proveBatches", | ||
"outputs": [], | ||
@@ -1568,3 +1377,3 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1579,3 +1388,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -1609,3 +1418,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1632,3 +1441,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "txNumberInBlock", | ||
"name": "txNumberInBatch", | ||
"type": "uint16" | ||
@@ -1677,3 +1486,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1690,3 +1499,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "txNumberInBlock", | ||
"name": "txNumberInBatch", | ||
"type": "uint16" | ||
@@ -1779,7 +1588,7 @@ }, | ||
"internalType": "uint256", | ||
"name": "_newLastBlock", | ||
"name": "_newLastBatch", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "revertBlocks", | ||
"name": "revertBatches", | ||
"outputs": [], | ||
@@ -1792,8 +1601,8 @@ "stateMutability": "nonpayable", | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_upgradeProposalHash", | ||
"type": "bytes32" | ||
"internalType": "address", | ||
"name": "_newPendingAdmin", | ||
"type": "address" | ||
} | ||
], | ||
"name": "securityCouncilUpgradeApprove", | ||
"name": "setPendingAdmin", | ||
"outputs": [], | ||
@@ -1864,7 +1673,7 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_batchNumber", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "storedBlockHash", | ||
"name": "storedBatchHash", | ||
"outputs": [ | ||
@@ -1886,72 +1695,4 @@ { | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "_diamondCut", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "upgradeProposalHash", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
} | ||
] | ||
} |
@@ -214,2 +214,15 @@ { | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_keccak256BytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "forceDeployKeccak256", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
@@ -216,0 +229,0 @@ { |
@@ -60,5 +60,30 @@ { | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "l1Token", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bool", | ||
"name": "depositLimitation", | ||
"type": "bool" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "depositCap", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "UpdateDepositLimit", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_caller", | ||
@@ -65,0 +90,0 @@ "type": "address" |
@@ -73,5 +73,36 @@ { | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_l2Sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_l1Receiver", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes", | ||
"name": "_additionalData", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "WithdrawalWithMessage", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
@@ -197,4 +228,22 @@ "type": "uint256" | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_l1Receiver", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_additionalData", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "withdrawWithMessage", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
} | ||
] | ||
} |
@@ -109,3 +109,3 @@ { | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -120,3 +120,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -183,3 +183,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -194,3 +194,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -218,3 +218,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -221,0 +221,0 @@ }, |
@@ -7,2 +7,15 @@ { | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "BytecodeL1PublicationRequested", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
@@ -30,4 +43,91 @@ "internalType": "address", | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint8", | ||
"name": "l2ShardId", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isService", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "uint16", | ||
"name": "txNumberInBlock", | ||
"type": "uint16" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "key", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "value", | ||
"type": "bytes32" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "struct L2ToL1Log", | ||
"name": "_l2log", | ||
"type": "tuple" | ||
} | ||
], | ||
"name": "L2ToL1LogSent", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "requestBytecodeL1Publication", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "_isService", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_key", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_value", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "sendL2ToL1Log", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "logIdInMerkleTree", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes", | ||
@@ -34,0 +134,0 @@ "name": "_message", |
@@ -9,3 +9,3 @@ { | ||
"internalType": "uint256", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint256" | ||
@@ -16,3 +16,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -36,3 +36,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint256" | ||
@@ -43,3 +43,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -63,3 +63,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "totalBlocksCommitted", | ||
"name": "totalBatchesCommitted", | ||
"type": "uint256" | ||
@@ -70,3 +70,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "totalBlocksVerified", | ||
"name": "totalBatchesVerified", | ||
"type": "uint256" | ||
@@ -77,3 +77,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "totalBlocksExecuted", | ||
"name": "totalBatchesExecuted", | ||
"type": "uint256" | ||
@@ -91,3 +91,3 @@ } | ||
"internalType": "uint256", | ||
"name": "previousLastVerifiedBlock", | ||
"name": "previousLastVerifiedBatch", | ||
"type": "uint256" | ||
@@ -98,3 +98,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "currentLastVerifiedBlock", | ||
"name": "currentLastVerifiedBatch", | ||
"type": "uint256" | ||
@@ -111,21 +111,2 @@ } | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "CancelUpgradeProposal", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
@@ -149,18 +130,45 @@ "name": "to", | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "bytes32", | ||
"name": "proposalSalt", | ||
"type": "bytes32" | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "diamondCut", | ||
"type": "tuple" | ||
} | ||
@@ -196,2 +204,21 @@ ], | ||
"internalType": "address", | ||
"name": "oldAdmin", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newAdmin", | ||
"type": "address" | ||
} | ||
], | ||
"name": "NewAdmin", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "oldGovernor", | ||
@@ -216,2 +243,21 @@ "type": "address" | ||
"internalType": "address", | ||
"name": "oldPendingAdmin", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newPendingAdmin", | ||
"type": "address" | ||
} | ||
], | ||
"name": "NewPendingAdmin", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "oldPendingGovernor", | ||
@@ -370,104 +416,2 @@ "type": "address" | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "ProposeShadowUpgrade", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "diamondCut", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes32", | ||
"name": "proposalSalt", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "ProposeTransparentUpgrade", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposalHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "SecurityCouncilUpgradeApprove", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [], | ||
@@ -498,3 +442,3 @@ "name": "Unfreeze", | ||
"inputs": [], | ||
"name": "acceptGovernor", | ||
"name": "acceptAdmin", | ||
"outputs": [], | ||
@@ -505,10 +449,4 @@ "stateMutability": "nonpayable", | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_proposedUpgradeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "cancelUpgradeProposal", | ||
"inputs": [], | ||
"name": "acceptGovernor", | ||
"outputs": [], | ||
@@ -524,3 +462,3 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -530,3 +468,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -565,4 +503,4 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo", | ||
"name": "_lastCommittedBlockData", | ||
"internalType": "struct IExecutor.StoredBatchInfo", | ||
"name": "_lastCommittedBatchData", | ||
"type": "tuple" | ||
@@ -574,3 +512,3 @@ }, | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -600,3 +538,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "l2LogsTreeRoot", | ||
"name": "priorityOperationsHash", | ||
"type": "bytes32" | ||
@@ -606,13 +544,13 @@ }, | ||
"internalType": "bytes32", | ||
"name": "priorityOperationsHash", | ||
"name": "bootloaderHeapInitialContentsHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initialStorageChanges", | ||
"type": "bytes" | ||
"internalType": "bytes32", | ||
"name": "eventsQueueStateHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "repeatedStorageChanges", | ||
"name": "systemLogs", | ||
"type": "bytes" | ||
@@ -622,22 +560,12 @@ }, | ||
"internalType": "bytes", | ||
"name": "l2Logs", | ||
"name": "totalL2ToL1Pubdata", | ||
"type": "bytes" | ||
}, | ||
{ | ||
"internalType": "bytes[]", | ||
"name": "l2ArbitraryLengthMessages", | ||
"type": "bytes[]" | ||
}, | ||
{ | ||
"internalType": "bytes[]", | ||
"name": "factoryDeps", | ||
"type": "bytes[]" | ||
} | ||
], | ||
"internalType": "struct IExecutor.CommitBlockInfo[]", | ||
"name": "_newBlocksData", | ||
"internalType": "struct IExecutor.CommitBatchInfo[]", | ||
"name": "_newBatchesData", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"name": "commitBlocks", | ||
"name": "commitBatches", | ||
"outputs": [], | ||
@@ -653,3 +581,3 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -659,3 +587,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -694,8 +622,8 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo[]", | ||
"name": "_blocksData", | ||
"internalType": "struct IExecutor.StoredBatchInfo[]", | ||
"name": "_batchesData", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"name": "executeBlocks", | ||
"name": "executeBatches", | ||
"outputs": [], | ||
@@ -750,7 +678,2 @@ "stateMutability": "nonpayable", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_proposalSalt", | ||
"type": "bytes32" | ||
} | ||
@@ -843,3 +766,3 @@ ], | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -854,3 +777,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -896,15 +819,2 @@ }, | ||
"inputs": [], | ||
"name": "getCurrentProposalId", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getFirstUnprocessedPriorityTx", | ||
@@ -962,8 +872,8 @@ "outputs": [ | ||
"inputs": [], | ||
"name": "getPendingGovernor", | ||
"name": "getL2SystemContractsUpgradeBatchNumber", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "address" | ||
"type": "uint256" | ||
} | ||
@@ -976,8 +886,8 @@ ], | ||
"inputs": [], | ||
"name": "getPriorityQueueSize", | ||
"name": "getL2SystemContractsUpgradeTxHash", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "uint256" | ||
"type": "bytes32" | ||
} | ||
@@ -990,8 +900,8 @@ ], | ||
"inputs": [], | ||
"name": "getPriorityTxMaxGasLimit", | ||
"name": "getName", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"internalType": "string", | ||
"name": "", | ||
"type": "uint256" | ||
"type": "string" | ||
} | ||
@@ -1004,8 +914,8 @@ ], | ||
"inputs": [], | ||
"name": "getProposedUpgradeHash", | ||
"name": "getPendingGovernor", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"internalType": "address", | ||
"name": "", | ||
"type": "bytes32" | ||
"type": "address" | ||
} | ||
@@ -1018,3 +928,3 @@ ], | ||
"inputs": [], | ||
"name": "getProposedUpgradeTimestamp", | ||
"name": "getPriorityQueueSize", | ||
"outputs": [ | ||
@@ -1032,3 +942,3 @@ { | ||
"inputs": [], | ||
"name": "getProtocolVersion", | ||
"name": "getPriorityTxMaxGasLimit", | ||
"outputs": [ | ||
@@ -1046,8 +956,8 @@ { | ||
"inputs": [], | ||
"name": "getSecurityCouncil", | ||
"name": "getProtocolVersion", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "address" | ||
"type": "uint256" | ||
} | ||
@@ -1060,3 +970,3 @@ ], | ||
"inputs": [], | ||
"name": "getTotalBlocksCommitted", | ||
"name": "getTotalBatchesCommitted", | ||
"outputs": [ | ||
@@ -1074,3 +984,3 @@ { | ||
"inputs": [], | ||
"name": "getTotalBlocksExecuted", | ||
"name": "getTotalBatchesExecuted", | ||
"outputs": [ | ||
@@ -1088,3 +998,3 @@ { | ||
"inputs": [], | ||
"name": "getTotalBlocksVerified", | ||
"name": "getTotalBatchesVerified", | ||
"outputs": [ | ||
@@ -1115,15 +1025,2 @@ { | ||
"inputs": [], | ||
"name": "getUpgradeProposalState", | ||
"outputs": [ | ||
{ | ||
"internalType": "enum UpgradeState", | ||
"name": "", | ||
"type": "uint8" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getVerifier", | ||
@@ -1172,15 +1069,2 @@ "outputs": [ | ||
"inputs": [], | ||
"name": "isApprovedBySecurityCouncil", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "isDiamondStorageFrozen", | ||
@@ -1201,3 +1085,3 @@ "outputs": [ | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1283,3 +1167,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_batchNumber", | ||
"type": "uint256" | ||
@@ -1361,81 +1245,6 @@ } | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_proposalHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint40", | ||
"name": "_proposalId", | ||
"type": "uint40" | ||
} | ||
], | ||
"name": "proposeShadowUpgrade", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "_diamondCut", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "uint40", | ||
"name": "_proposalId", | ||
"type": "uint40" | ||
} | ||
], | ||
"name": "proposeTransparentUpgrade", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -1445,3 +1254,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -1480,4 +1289,4 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo", | ||
"name": "_prevBlock", | ||
"internalType": "struct IExecutor.StoredBatchInfo", | ||
"name": "_prevBatch", | ||
"type": "tuple" | ||
@@ -1489,3 +1298,3 @@ }, | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"name": "batchNumber", | ||
"type": "uint64" | ||
@@ -1495,3 +1304,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"name": "batchHash", | ||
"type": "bytes32" | ||
@@ -1530,4 +1339,4 @@ }, | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo[]", | ||
"name": "_committedBlocks", | ||
"internalType": "struct IExecutor.StoredBatchInfo[]", | ||
"name": "_committedBatches", | ||
"type": "tuple[]" | ||
@@ -1553,3 +1362,3 @@ }, | ||
], | ||
"name": "proveBlocks", | ||
"name": "proveBatches", | ||
"outputs": [], | ||
@@ -1568,3 +1377,3 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint256", | ||
"name": "_l2BlockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1579,3 +1388,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "_l2TxNumberInBlock", | ||
"name": "_l2TxNumberInBatch", | ||
"type": "uint16" | ||
@@ -1609,3 +1418,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1632,3 +1441,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "txNumberInBlock", | ||
"name": "txNumberInBatch", | ||
"type": "uint16" | ||
@@ -1677,3 +1486,3 @@ }, | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_l2BatchNumber", | ||
"type": "uint256" | ||
@@ -1690,3 +1499,3 @@ }, | ||
"internalType": "uint16", | ||
"name": "txNumberInBlock", | ||
"name": "txNumberInBatch", | ||
"type": "uint16" | ||
@@ -1779,7 +1588,7 @@ }, | ||
"internalType": "uint256", | ||
"name": "_newLastBlock", | ||
"name": "_newLastBatch", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "revertBlocks", | ||
"name": "revertBatches", | ||
"outputs": [], | ||
@@ -1792,8 +1601,8 @@ "stateMutability": "nonpayable", | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_upgradeProposalHash", | ||
"type": "bytes32" | ||
"internalType": "address", | ||
"name": "_newPendingAdmin", | ||
"type": "address" | ||
} | ||
], | ||
"name": "securityCouncilUpgradeApprove", | ||
"name": "setPendingAdmin", | ||
"outputs": [], | ||
@@ -1864,7 +1673,7 @@ "stateMutability": "nonpayable", | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"name": "_batchNumber", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "storedBlockHash", | ||
"name": "storedBatchHash", | ||
"outputs": [ | ||
@@ -1886,72 +1695,4 @@ { | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facet", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum Diamond.Action", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "selectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct Diamond.FacetCut[]", | ||
"name": "facetCuts", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "initAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "initCalldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"internalType": "struct Diamond.DiamondCutData", | ||
"name": "_diamondCut", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_proposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "upgradeProposalHash", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
} | ||
] | ||
} |
import { BigNumber, BigNumberish, BytesLike, ethers, providers, utils } from "ethers"; | ||
import { ExternalProvider } from "@ethersproject/providers"; | ||
import { ConnectionInfo } from "@ethersproject/web"; | ||
import { Address, BalancesMap, BatchDetails, Block, BlockDetails, BlockTag, BlockWithTransactions, ContractAccountInfo, EventFilter, Log, MessageProof, PriorityOpResponse, Token, TransactionDetails, TransactionReceipt, TransactionRequest, TransactionResponse, TransactionStatus, Fee } from "./types"; | ||
import { Address, BalancesMap, BatchDetails, Block, BlockDetails, BlockTag, BlockWithTransactions, ContractAccountInfo, EventFilter, Log, MessageProof, PriorityOpResponse, Token, TransactionDetails, TransactionReceipt, TransactionRequest, TransactionResponse, TransactionStatus, Fee, Network as ZkSyncNetwork, RawBlockTransaction } from "./types"; | ||
import { Signer } from "./signer"; | ||
@@ -51,2 +51,4 @@ import Formatter = providers.Formatter; | ||
getTransactionDetails(txHash: BytesLike): Promise<TransactionDetails>; | ||
getBytecodeByHash(bytecodeHash: BytesLike): Promise<Uint8Array>; | ||
getRawBlockTransactions(number: number): Promise<RawBlockTransaction[]>; | ||
getWithdrawTx(transaction: { | ||
@@ -82,3 +84,3 @@ token: Address; | ||
}): Promise<BigNumber>; | ||
static getDefaultProvider(): Provider; | ||
static getDefaultProvider(zksyncNetwork?: ZkSyncNetwork): Provider; | ||
newFilter(filter: EventFilter | Promise<EventFilter>): Promise<BigNumber>; | ||
@@ -85,0 +87,0 @@ newBlockFilter(): Promise<BigNumber>; |
@@ -486,2 +486,8 @@ "use strict"; | ||
} | ||
async getBytecodeByHash(bytecodeHash) { | ||
return await this.send("zks_getBytecodeByHash", [bytecodeHash]); | ||
} | ||
async getRawBlockTransactions(number) { | ||
return await this.send("zks_getRawBlockTransactions", [number]); | ||
} | ||
async getWithdrawTx(transaction) { | ||
@@ -552,5 +558,16 @@ var _a, _b, _c; | ||
} | ||
static getDefaultProvider() { | ||
// TODO (SMA-1606): Add different urls for different networks. | ||
return new Provider(process.env.ZKSYNC_WEB3_API_URL || "http://localhost:3050"); | ||
static getDefaultProvider(zksyncNetwork = types_1.Network.Localhost) { | ||
if (process.env.ZKSYNC_WEB3_API_URL) { | ||
return new Provider(process.env.ZKSYNC_WEB3_API_URL); | ||
} | ||
switch (zksyncNetwork) { | ||
case types_1.Network.Localhost: | ||
return new Provider("http://localhost:3050"); | ||
case types_1.Network.Goerli: | ||
return new Provider("https://zksync2-testnet.zksync.dev"); | ||
case types_1.Network.Sepolia: | ||
return new Provider("https://sepolia.era.zksync.dev"); | ||
case types_1.Network.Mainnet: | ||
return new Provider("https://mainnet.era.zksync.io"); | ||
} | ||
} | ||
@@ -557,0 +574,0 @@ async newFilter(filter) { |
@@ -10,2 +10,3 @@ import { BytesLike, BigNumberish, providers, BigNumber } from "ethers"; | ||
Goerli = 5, | ||
Sepolia = 6, | ||
Localhost = 9 | ||
@@ -204,1 +205,33 @@ } | ||
} | ||
export interface RawBlockTransaction { | ||
common_data: { | ||
L2: { | ||
nonce: number; | ||
fee: { | ||
gas_limit: BigInt; | ||
max_fee_per_gas: BigInt; | ||
max_priority_fee_per_gas: BigInt; | ||
gas_per_pubdata_limit: BigInt; | ||
}; | ||
initiatorAddress: Address; | ||
signature: Uint8Array; | ||
transactionType: string; | ||
input: { | ||
hash: string; | ||
data: Uint8Array; | ||
}; | ||
paymasterParams: { | ||
paymaster: Address; | ||
paymasterInput: Uint8Array; | ||
}; | ||
}; | ||
}; | ||
execute: { | ||
calldata: string; | ||
contractAddress: Address; | ||
factoryDeps: BytesLike[]; | ||
value: BigInt; | ||
}; | ||
received_timestamp_ms: number; | ||
raw_bytes: string; | ||
} |
@@ -11,2 +11,3 @@ "use strict"; | ||
Network[Network["Goerli"] = 5] = "Goerli"; | ||
Network[Network["Sepolia"] = 6] = "Sepolia"; | ||
Network[Network["Localhost"] = 9] = "Localhost"; | ||
@@ -13,0 +14,0 @@ })(Network = exports.Network || (exports.Network = {})); |
@@ -31,2 +31,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
"extendedAccountVersion(address)": FunctionFragment; | ||
"forceDeployKeccak256(bytes32)": FunctionFragment; | ||
"forceDeployOnAddress(tuple,address)": FunctionFragment; | ||
@@ -62,2 +63,6 @@ "forceDeployOnAddresses(tuple[])": FunctionFragment; | ||
encodeFunctionData( | ||
functionFragment: "forceDeployKeccak256", | ||
values: [BytesLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "forceDeployOnAddress", | ||
@@ -123,2 +128,6 @@ values: [ | ||
decodeFunctionResult( | ||
functionFragment: "forceDeployKeccak256", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult( | ||
functionFragment: "forceDeployOnAddress", | ||
@@ -253,2 +262,12 @@ data: BytesLike | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
forceDeployOnAddress( | ||
@@ -467,2 +486,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
forceDeployOnAddress( | ||
@@ -653,2 +682,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
forceDeployOnAddress( | ||
@@ -858,2 +897,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
forceDeployOnAddress( | ||
@@ -1035,2 +1084,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
forceDeployOnAddress( | ||
@@ -1037,0 +1096,0 @@ _deployment: { |
@@ -226,2 +226,15 @@ "use strict"; | ||
{ | ||
internalType: "bytes32", | ||
name: "_keccak256BytecodeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "forceDeployKeccak256", | ||
outputs: [], | ||
stateMutability: "payable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
@@ -228,0 +241,0 @@ { |
@@ -110,2 +110,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
"UpdateCallPermission(address,address,bytes4,bool)": EventFragment; | ||
"UpdateDepositLimit(address,bool,uint256)": EventFragment; | ||
}; | ||
@@ -115,2 +116,3 @@ | ||
getEvent(nameOrSignatureOrTopic: "UpdateCallPermission"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "UpdateDepositLimit"): EventFragment; | ||
} | ||
@@ -542,2 +544,8 @@ | ||
): EventFilter; | ||
UpdateDepositLimit( | ||
l1Token: string | null, | ||
depositLimitation: null, | ||
depositCap: null | ||
): EventFilter; | ||
}; | ||
@@ -544,0 +552,0 @@ |
@@ -72,5 +72,30 @@ "use strict"; | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "l1Token", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bool", | ||
name: "depositLimitation", | ||
type: "bool", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "depositCap", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "UpdateDepositLimit", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_caller", | ||
@@ -77,0 +102,0 @@ type: "address", |
@@ -22,3 +22,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IERC1271Interface extends ethers.utils.Interface { | ||
interface Ierc1271Interface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -52,3 +52,3 @@ "isValidSignature(bytes32,bytes)": FunctionFragment; | ||
interface: IERC1271Interface; | ||
interface: Ierc1271Interface; | ||
@@ -55,0 +55,0 @@ functions: { |
@@ -23,3 +23,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IERC20Interface extends ethers.utils.Interface { | ||
interface Ierc20Interface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -98,3 +98,3 @@ "allowance(address,address)": FunctionFragment; | ||
interface: IERC20Interface; | ||
interface: Ierc20Interface; | ||
@@ -101,0 +101,0 @@ functions: { |
@@ -34,2 +34,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
"withdraw(address)": FunctionFragment; | ||
"withdrawWithMessage(address,bytes)": FunctionFragment; | ||
}; | ||
@@ -57,2 +58,6 @@ | ||
encodeFunctionData(functionFragment: "withdraw", values: [string]): string; | ||
encodeFunctionData( | ||
functionFragment: "withdrawWithMessage", | ||
values: [string, BytesLike] | ||
): string; | ||
@@ -73,2 +78,6 @@ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; | ||
decodeFunctionResult( | ||
functionFragment: "withdrawWithMessage", | ||
data: BytesLike | ||
): Result; | ||
@@ -79,2 +88,3 @@ events: { | ||
"Withdrawal(address,address,uint256)": EventFragment; | ||
"WithdrawalWithMessage(address,address,uint256,bytes)": EventFragment; | ||
}; | ||
@@ -85,2 +95,3 @@ | ||
getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "WithdrawalWithMessage"): EventFragment; | ||
} | ||
@@ -183,2 +194,14 @@ | ||
): Promise<ContractTransaction>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
}; | ||
@@ -245,2 +268,14 @@ | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
callStatic: { | ||
@@ -305,2 +340,14 @@ balanceOf( | ||
): Promise<void>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
}; | ||
@@ -318,2 +365,9 @@ | ||
): EventFilter; | ||
WithdrawalWithMessage( | ||
_l2Sender: string | null, | ||
_l1Receiver: string | null, | ||
_amount: null, | ||
_additionalData: null | ||
): EventFilter; | ||
}; | ||
@@ -383,2 +437,14 @@ | ||
): Promise<BigNumber>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
}; | ||
@@ -448,3 +514,15 @@ | ||
): Promise<PopulatedTransaction>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
}; | ||
} |
@@ -85,5 +85,36 @@ "use strict"; | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "_l2Sender", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "_l1Receiver", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_amount", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bytes", | ||
name: "_additionalData", | ||
type: "bytes", | ||
}, | ||
], | ||
name: "WithdrawalWithMessage", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
@@ -210,2 +241,20 @@ type: "uint256", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_l1Receiver", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "_additionalData", | ||
type: "bytes", | ||
}, | ||
], | ||
name: "withdrawWithMessage", | ||
outputs: [], | ||
stateMutability: "payable", | ||
type: "function", | ||
}, | ||
]; |
@@ -24,3 +24,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IL1BridgeInterface extends ethers.utils.Interface { | ||
interface Il1BridgeInterface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -106,3 +106,3 @@ "claimFailedDeposit(address,address,bytes32,uint256,uint256,uint16,bytes32[])": FunctionFragment; | ||
interface: IL1BridgeInterface; | ||
interface: Il1BridgeInterface; | ||
@@ -114,5 +114,5 @@ functions: { | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -126,5 +126,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -155,5 +155,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -165,5 +165,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -175,3 +175,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -184,3 +184,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -219,5 +219,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -231,5 +231,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -260,5 +260,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -270,5 +270,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -280,3 +280,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -287,3 +287,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -309,5 +309,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -321,5 +321,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -350,5 +350,5 @@ overrides?: CallOverrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -360,5 +360,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -370,3 +370,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -377,3 +377,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -425,5 +425,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -437,5 +437,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -466,5 +466,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -476,5 +476,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -486,3 +486,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -493,3 +493,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -519,5 +519,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -531,5 +531,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -560,5 +560,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -570,5 +570,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -580,3 +580,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -587,3 +587,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -590,0 +590,0 @@ overrides?: CallOverrides |
@@ -121,3 +121,3 @@ "use strict"; | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -132,3 +132,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -195,3 +195,3 @@ }, | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -206,3 +206,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -230,3 +230,3 @@ }, | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -233,0 +233,0 @@ }, |
@@ -23,16 +23,40 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IL1MessengerInterface extends ethers.utils.Interface { | ||
interface Il1MessengerInterface extends ethers.utils.Interface { | ||
functions: { | ||
"requestBytecodeL1Publication(bytes32)": FunctionFragment; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)": FunctionFragment; | ||
"sendToL1(bytes)": FunctionFragment; | ||
}; | ||
encodeFunctionData( | ||
functionFragment: "requestBytecodeL1Publication", | ||
values: [BytesLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "sendL2ToL1Log", | ||
values: [boolean, BytesLike, BytesLike] | ||
): string; | ||
encodeFunctionData(functionFragment: "sendToL1", values: [BytesLike]): string; | ||
decodeFunctionResult( | ||
functionFragment: "requestBytecodeL1Publication", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult( | ||
functionFragment: "sendL2ToL1Log", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult(functionFragment: "sendToL1", data: BytesLike): Result; | ||
events: { | ||
"BytecodeL1PublicationRequested(bytes32)": EventFragment; | ||
"L1MessageSent(address,bytes32,bytes)": EventFragment; | ||
"L2ToL1LogSent(tuple)": EventFragment; | ||
}; | ||
getEvent( | ||
nameOrSignatureOrTopic: "BytecodeL1PublicationRequested" | ||
): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "L1MessageSent"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "L2ToL1LogSent"): EventFragment; | ||
} | ||
@@ -51,5 +75,29 @@ | ||
interface: IL1MessengerInterface; | ||
interface: Il1MessengerInterface; | ||
functions: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendToL1( | ||
@@ -66,2 +114,26 @@ _message: BytesLike, | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendToL1( | ||
@@ -78,2 +150,26 @@ _message: BytesLike, | ||
callStatic: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<BigNumber>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<BigNumber>; | ||
sendToL1(_message: BytesLike, overrides?: CallOverrides): Promise<string>; | ||
@@ -88,2 +184,4 @@ | ||
filters: { | ||
BytecodeL1PublicationRequested(_bytecodeHash: null): EventFilter; | ||
L1MessageSent( | ||
@@ -94,5 +192,31 @@ _sender: string | null, | ||
): EventFilter; | ||
L2ToL1LogSent(_l2log: null): EventFilter; | ||
}; | ||
estimateGas: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
sendToL1(_message: BytesLike, overrides?: Overrides): Promise<BigNumber>; | ||
@@ -107,2 +231,26 @@ | ||
populateTransaction: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
sendToL1( | ||
@@ -109,0 +257,0 @@ _message: BytesLike, |
@@ -19,2 +19,15 @@ "use strict"; | ||
{ | ||
indexed: false, | ||
internalType: "bytes32", | ||
name: "_bytecodeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "BytecodeL1PublicationRequested", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
@@ -42,4 +55,91 @@ internalType: "address", | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "uint8", | ||
name: "l2ShardId", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isService", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "uint16", | ||
name: "txNumberInBlock", | ||
type: "uint16", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "key", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "value", | ||
type: "bytes32", | ||
}, | ||
], | ||
indexed: false, | ||
internalType: "struct L2ToL1Log", | ||
name: "_l2log", | ||
type: "tuple", | ||
}, | ||
], | ||
name: "L2ToL1LogSent", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "_bytecodeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "requestBytecodeL1Publication", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bool", | ||
name: "_isService", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_key", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_value", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "sendL2ToL1Log", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "logIdInMerkleTree", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes", | ||
@@ -46,0 +146,0 @@ name: "_message", |
@@ -24,3 +24,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IL2BridgeInterface extends ethers.utils.Interface { | ||
interface Il2BridgeInterface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -87,3 +87,3 @@ "finalizeDeposit(address,address,address,uint256,bytes)": FunctionFragment; | ||
interface: IL2BridgeInterface; | ||
interface: Il2BridgeInterface; | ||
@@ -90,0 +90,0 @@ functions: { |
@@ -21,3 +21,3 @@ "use strict"; | ||
internalType: "uint256", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint256", | ||
@@ -28,3 +28,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -48,3 +48,3 @@ }, | ||
internalType: "uint256", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint256", | ||
@@ -55,3 +55,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -75,3 +75,3 @@ }, | ||
internalType: "uint256", | ||
name: "totalBlocksCommitted", | ||
name: "totalBatchesCommitted", | ||
type: "uint256", | ||
@@ -82,3 +82,3 @@ }, | ||
internalType: "uint256", | ||
name: "totalBlocksVerified", | ||
name: "totalBatchesVerified", | ||
type: "uint256", | ||
@@ -89,3 +89,3 @@ }, | ||
internalType: "uint256", | ||
name: "totalBlocksExecuted", | ||
name: "totalBatchesExecuted", | ||
type: "uint256", | ||
@@ -103,3 +103,3 @@ }, | ||
internalType: "uint256", | ||
name: "previousLastVerifiedBlock", | ||
name: "previousLastVerifiedBatch", | ||
type: "uint256", | ||
@@ -110,3 +110,3 @@ }, | ||
internalType: "uint256", | ||
name: "currentLastVerifiedBlock", | ||
name: "currentLastVerifiedBatch", | ||
type: "uint256", | ||
@@ -123,21 +123,2 @@ }, | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "CancelUpgradeProposal", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
@@ -161,18 +142,45 @@ name: "to", | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
indexed: false, | ||
internalType: "bytes32", | ||
name: "proposalSalt", | ||
type: "bytes32", | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "diamondCut", | ||
type: "tuple", | ||
}, | ||
@@ -208,2 +216,21 @@ ], | ||
internalType: "address", | ||
name: "oldAdmin", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "newAdmin", | ||
type: "address", | ||
}, | ||
], | ||
name: "NewAdmin", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "oldGovernor", | ||
@@ -228,2 +255,21 @@ type: "address", | ||
internalType: "address", | ||
name: "oldPendingAdmin", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "newPendingAdmin", | ||
type: "address", | ||
}, | ||
], | ||
name: "NewPendingAdmin", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "oldPendingGovernor", | ||
@@ -382,104 +428,2 @@ type: "address", | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "ProposeShadowUpgrade", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
indexed: false, | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "diamondCut", | ||
type: "tuple", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bytes32", | ||
name: "proposalSalt", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "ProposeTransparentUpgrade", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "SecurityCouncilUpgradeApprove", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [], | ||
@@ -510,3 +454,3 @@ name: "Unfreeze", | ||
inputs: [], | ||
name: "acceptGovernor", | ||
name: "acceptAdmin", | ||
outputs: [], | ||
@@ -517,10 +461,4 @@ stateMutability: "nonpayable", | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "_proposedUpgradeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "cancelUpgradeProposal", | ||
inputs: [], | ||
name: "acceptGovernor", | ||
outputs: [], | ||
@@ -536,3 +474,3 @@ stateMutability: "nonpayable", | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -542,3 +480,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -577,4 +515,4 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo", | ||
name: "_lastCommittedBlockData", | ||
internalType: "struct IExecutor.StoredBatchInfo", | ||
name: "_lastCommittedBatchData", | ||
type: "tuple", | ||
@@ -586,3 +524,3 @@ }, | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -612,3 +550,3 @@ }, | ||
internalType: "bytes32", | ||
name: "l2LogsTreeRoot", | ||
name: "priorityOperationsHash", | ||
type: "bytes32", | ||
@@ -618,13 +556,13 @@ }, | ||
internalType: "bytes32", | ||
name: "priorityOperationsHash", | ||
name: "bootloaderHeapInitialContentsHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initialStorageChanges", | ||
type: "bytes", | ||
internalType: "bytes32", | ||
name: "eventsQueueStateHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "repeatedStorageChanges", | ||
name: "systemLogs", | ||
type: "bytes", | ||
@@ -634,22 +572,12 @@ }, | ||
internalType: "bytes", | ||
name: "l2Logs", | ||
name: "totalL2ToL1Pubdata", | ||
type: "bytes", | ||
}, | ||
{ | ||
internalType: "bytes[]", | ||
name: "l2ArbitraryLengthMessages", | ||
type: "bytes[]", | ||
}, | ||
{ | ||
internalType: "bytes[]", | ||
name: "factoryDeps", | ||
type: "bytes[]", | ||
}, | ||
], | ||
internalType: "struct IExecutor.CommitBlockInfo[]", | ||
name: "_newBlocksData", | ||
internalType: "struct IExecutor.CommitBatchInfo[]", | ||
name: "_newBatchesData", | ||
type: "tuple[]", | ||
}, | ||
], | ||
name: "commitBlocks", | ||
name: "commitBatches", | ||
outputs: [], | ||
@@ -665,3 +593,3 @@ stateMutability: "nonpayable", | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -671,3 +599,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -706,8 +634,8 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo[]", | ||
name: "_blocksData", | ||
internalType: "struct IExecutor.StoredBatchInfo[]", | ||
name: "_batchesData", | ||
type: "tuple[]", | ||
}, | ||
], | ||
name: "executeBlocks", | ||
name: "executeBatches", | ||
outputs: [], | ||
@@ -763,7 +691,2 @@ stateMutability: "nonpayable", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_proposalSalt", | ||
type: "bytes32", | ||
}, | ||
], | ||
@@ -855,3 +778,3 @@ name: "executeUpgrade", | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -866,3 +789,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -908,15 +831,2 @@ }, | ||
inputs: [], | ||
name: "getCurrentProposalId", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getFirstUnprocessedPriorityTx", | ||
@@ -974,8 +884,8 @@ outputs: [ | ||
inputs: [], | ||
name: "getPendingGovernor", | ||
name: "getL2SystemContractsUpgradeBatchNumber", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
internalType: "uint256", | ||
name: "", | ||
type: "address", | ||
type: "uint256", | ||
}, | ||
@@ -988,8 +898,8 @@ ], | ||
inputs: [], | ||
name: "getPriorityQueueSize", | ||
name: "getL2SystemContractsUpgradeTxHash", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
internalType: "bytes32", | ||
name: "", | ||
type: "uint256", | ||
type: "bytes32", | ||
}, | ||
@@ -1002,8 +912,8 @@ ], | ||
inputs: [], | ||
name: "getPriorityTxMaxGasLimit", | ||
name: "getName", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
internalType: "string", | ||
name: "", | ||
type: "uint256", | ||
type: "string", | ||
}, | ||
@@ -1016,8 +926,8 @@ ], | ||
inputs: [], | ||
name: "getProposedUpgradeHash", | ||
name: "getPendingGovernor", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
internalType: "address", | ||
name: "", | ||
type: "bytes32", | ||
type: "address", | ||
}, | ||
@@ -1030,3 +940,3 @@ ], | ||
inputs: [], | ||
name: "getProposedUpgradeTimestamp", | ||
name: "getPriorityQueueSize", | ||
outputs: [ | ||
@@ -1044,3 +954,3 @@ { | ||
inputs: [], | ||
name: "getProtocolVersion", | ||
name: "getPriorityTxMaxGasLimit", | ||
outputs: [ | ||
@@ -1058,8 +968,8 @@ { | ||
inputs: [], | ||
name: "getSecurityCouncil", | ||
name: "getProtocolVersion", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
internalType: "uint256", | ||
name: "", | ||
type: "address", | ||
type: "uint256", | ||
}, | ||
@@ -1072,3 +982,3 @@ ], | ||
inputs: [], | ||
name: "getTotalBlocksCommitted", | ||
name: "getTotalBatchesCommitted", | ||
outputs: [ | ||
@@ -1086,3 +996,3 @@ { | ||
inputs: [], | ||
name: "getTotalBlocksExecuted", | ||
name: "getTotalBatchesExecuted", | ||
outputs: [ | ||
@@ -1100,3 +1010,3 @@ { | ||
inputs: [], | ||
name: "getTotalBlocksVerified", | ||
name: "getTotalBatchesVerified", | ||
outputs: [ | ||
@@ -1127,15 +1037,2 @@ { | ||
inputs: [], | ||
name: "getUpgradeProposalState", | ||
outputs: [ | ||
{ | ||
internalType: "enum UpgradeState", | ||
name: "", | ||
type: "uint8", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getVerifier", | ||
@@ -1184,15 +1081,2 @@ outputs: [ | ||
inputs: [], | ||
name: "isApprovedBySecurityCouncil", | ||
outputs: [ | ||
{ | ||
internalType: "bool", | ||
name: "", | ||
type: "bool", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "isDiamondStorageFrozen", | ||
@@ -1213,3 +1097,3 @@ outputs: [ | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1295,3 +1179,3 @@ }, | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_batchNumber", | ||
type: "uint256", | ||
@@ -1373,81 +1257,6 @@ }, | ||
{ | ||
internalType: "bytes32", | ||
name: "_proposalHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "uint40", | ||
name: "_proposalId", | ||
type: "uint40", | ||
}, | ||
], | ||
name: "proposeShadowUpgrade", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "_diamondCut", | ||
type: "tuple", | ||
}, | ||
{ | ||
internalType: "uint40", | ||
name: "_proposalId", | ||
type: "uint40", | ||
}, | ||
], | ||
name: "proposeTransparentUpgrade", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -1457,3 +1266,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -1492,4 +1301,4 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo", | ||
name: "_prevBlock", | ||
internalType: "struct IExecutor.StoredBatchInfo", | ||
name: "_prevBatch", | ||
type: "tuple", | ||
@@ -1501,3 +1310,3 @@ }, | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -1507,3 +1316,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -1542,4 +1351,4 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo[]", | ||
name: "_committedBlocks", | ||
internalType: "struct IExecutor.StoredBatchInfo[]", | ||
name: "_committedBatches", | ||
type: "tuple[]", | ||
@@ -1565,3 +1374,3 @@ }, | ||
], | ||
name: "proveBlocks", | ||
name: "proveBatches", | ||
outputs: [], | ||
@@ -1580,3 +1389,3 @@ stateMutability: "nonpayable", | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1591,3 +1400,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -1621,3 +1430,3 @@ }, | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1644,3 +1453,3 @@ }, | ||
internalType: "uint16", | ||
name: "txNumberInBlock", | ||
name: "txNumberInBatch", | ||
type: "uint16", | ||
@@ -1689,3 +1498,3 @@ }, | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1702,3 +1511,3 @@ }, | ||
internalType: "uint16", | ||
name: "txNumberInBlock", | ||
name: "txNumberInBatch", | ||
type: "uint16", | ||
@@ -1791,7 +1600,7 @@ }, | ||
internalType: "uint256", | ||
name: "_newLastBlock", | ||
name: "_newLastBatch", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "revertBlocks", | ||
name: "revertBatches", | ||
outputs: [], | ||
@@ -1804,8 +1613,8 @@ stateMutability: "nonpayable", | ||
{ | ||
internalType: "bytes32", | ||
name: "_upgradeProposalHash", | ||
type: "bytes32", | ||
internalType: "address", | ||
name: "_newPendingAdmin", | ||
type: "address", | ||
}, | ||
], | ||
name: "securityCouncilUpgradeApprove", | ||
name: "setPendingAdmin", | ||
outputs: [], | ||
@@ -1876,7 +1685,7 @@ stateMutability: "nonpayable", | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_batchNumber", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "storedBlockHash", | ||
name: "storedBatchHash", | ||
outputs: [ | ||
@@ -1899,70 +1708,2 @@ { | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "_diamondCut", | ||
type: "tuple", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "_proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_salt", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "upgradeProposalHash", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "", | ||
type: "bytes32", | ||
}, | ||
], | ||
stateMutability: "pure", | ||
type: "function", | ||
}, | ||
]; |
{ | ||
"name": "zksync-web3", | ||
"version": "0.16.0", | ||
"version": "0.17.0-beta.0", | ||
"main": "build/src/index.js", | ||
@@ -5,0 +5,0 @@ "types": "build/src/index.d.ts", |
@@ -24,3 +24,5 @@ import { BigNumber, BigNumberish, BytesLike, Contract, ethers, providers, utils } from "ethers"; | ||
TransactionStatus, | ||
Fee | ||
Fee, | ||
Network as ZkSyncNetwork, | ||
RawBlockTransaction | ||
} from "./types"; | ||
@@ -621,2 +623,10 @@ import { | ||
async getBytecodeByHash(bytecodeHash: BytesLike): Promise<Uint8Array> { | ||
return await this.send("zks_getBytecodeByHash", [bytecodeHash]); | ||
} | ||
async getRawBlockTransactions(number: number): Promise<RawBlockTransaction[]> { | ||
return await this.send("zks_getRawBlockTransactions", [number]); | ||
} | ||
async getWithdrawTx(transaction: { | ||
@@ -720,5 +730,16 @@ token: Address; | ||
static getDefaultProvider() { | ||
// TODO (SMA-1606): Add different urls for different networks. | ||
return new Provider(process.env.ZKSYNC_WEB3_API_URL || "http://localhost:3050"); | ||
static getDefaultProvider(zksyncNetwork: ZkSyncNetwork = ZkSyncNetwork.Localhost) { | ||
if (process.env.ZKSYNC_WEB3_API_URL) { | ||
return new Provider(process.env.ZKSYNC_WEB3_API_URL); | ||
} | ||
switch (zksyncNetwork) { | ||
case ZkSyncNetwork.Localhost: | ||
return new Provider("http://localhost:3050"); | ||
case ZkSyncNetwork.Goerli: | ||
return new Provider("https://zksync2-testnet.zksync.dev"); | ||
case ZkSyncNetwork.Sepolia: | ||
return new Provider("https://sepolia.era.zksync.dev"); | ||
case ZkSyncNetwork.Mainnet: | ||
return new Provider("https://mainnet.era.zksync.io"); | ||
} | ||
} | ||
@@ -725,0 +746,0 @@ |
@@ -15,2 +15,3 @@ import { BytesLike, BigNumberish, providers, BigNumber } from "ethers"; | ||
Goerli = 5, | ||
Sepolia = 6, | ||
Localhost = 9, | ||
@@ -247,1 +248,34 @@ } | ||
} | ||
export interface RawBlockTransaction { | ||
common_data: { | ||
L2: { | ||
nonce: number; | ||
fee: { | ||
gas_limit: BigInt; | ||
max_fee_per_gas: BigInt; | ||
max_priority_fee_per_gas: BigInt; | ||
gas_per_pubdata_limit: BigInt; | ||
}, | ||
initiatorAddress: Address; | ||
signature: Uint8Array; | ||
transactionType: string; | ||
input: { | ||
hash: string; | ||
data: Uint8Array; | ||
}; | ||
paymasterParams: { | ||
paymaster: Address; | ||
paymasterInput: Uint8Array; | ||
}; | ||
} | ||
}; | ||
execute: { | ||
calldata: string; | ||
contractAddress: Address; | ||
factoryDeps: BytesLike[]; | ||
value: BigInt; | ||
}; | ||
received_timestamp_ms: number; | ||
raw_bytes: string; | ||
} |
@@ -31,2 +31,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
"extendedAccountVersion(address)": FunctionFragment; | ||
"forceDeployKeccak256(bytes32)": FunctionFragment; | ||
"forceDeployOnAddress(tuple,address)": FunctionFragment; | ||
@@ -62,2 +63,6 @@ "forceDeployOnAddresses(tuple[])": FunctionFragment; | ||
encodeFunctionData( | ||
functionFragment: "forceDeployKeccak256", | ||
values: [BytesLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "forceDeployOnAddress", | ||
@@ -123,2 +128,6 @@ values: [ | ||
decodeFunctionResult( | ||
functionFragment: "forceDeployKeccak256", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult( | ||
functionFragment: "forceDeployOnAddress", | ||
@@ -253,2 +262,12 @@ data: BytesLike | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
forceDeployOnAddress( | ||
@@ -467,2 +486,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
forceDeployOnAddress( | ||
@@ -653,2 +682,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
forceDeployOnAddress( | ||
@@ -858,2 +897,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
forceDeployOnAddress( | ||
@@ -1035,2 +1084,12 @@ _deployment: { | ||
forceDeployKeccak256( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
"forceDeployKeccak256(bytes32)"( | ||
_keccak256BytecodeHash: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
forceDeployOnAddress( | ||
@@ -1037,0 +1096,0 @@ _deployment: { |
@@ -231,2 +231,15 @@ /* Autogenerated file. Do not edit manually. */ | ||
{ | ||
internalType: "bytes32", | ||
name: "_keccak256BytecodeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "forceDeployKeccak256", | ||
outputs: [], | ||
stateMutability: "payable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
@@ -233,0 +246,0 @@ { |
@@ -110,2 +110,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
"UpdateCallPermission(address,address,bytes4,bool)": EventFragment; | ||
"UpdateDepositLimit(address,bool,uint256)": EventFragment; | ||
}; | ||
@@ -115,2 +116,3 @@ | ||
getEvent(nameOrSignatureOrTopic: "UpdateCallPermission"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "UpdateDepositLimit"): EventFragment; | ||
} | ||
@@ -542,2 +544,8 @@ | ||
): EventFilter; | ||
UpdateDepositLimit( | ||
l1Token: string | null, | ||
depositLimitation: null, | ||
depositCap: null | ||
): EventFilter; | ||
}; | ||
@@ -544,0 +552,0 @@ |
@@ -77,5 +77,30 @@ /* Autogenerated file. Do not edit manually. */ | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "l1Token", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bool", | ||
name: "depositLimitation", | ||
type: "bool", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "depositCap", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "UpdateDepositLimit", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_caller", | ||
@@ -82,0 +107,0 @@ type: "address", |
@@ -22,3 +22,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IERC1271Interface extends ethers.utils.Interface { | ||
interface Ierc1271Interface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -52,3 +52,3 @@ "isValidSignature(bytes32,bytes)": FunctionFragment; | ||
interface: IERC1271Interface; | ||
interface: Ierc1271Interface; | ||
@@ -55,0 +55,0 @@ functions: { |
@@ -23,3 +23,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IERC20Interface extends ethers.utils.Interface { | ||
interface Ierc20Interface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -98,3 +98,3 @@ "allowance(address,address)": FunctionFragment; | ||
interface: IERC20Interface; | ||
interface: Ierc20Interface; | ||
@@ -101,0 +101,0 @@ functions: { |
@@ -34,2 +34,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
"withdraw(address)": FunctionFragment; | ||
"withdrawWithMessage(address,bytes)": FunctionFragment; | ||
}; | ||
@@ -57,2 +58,6 @@ | ||
encodeFunctionData(functionFragment: "withdraw", values: [string]): string; | ||
encodeFunctionData( | ||
functionFragment: "withdrawWithMessage", | ||
values: [string, BytesLike] | ||
): string; | ||
@@ -73,2 +78,6 @@ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; | ||
decodeFunctionResult( | ||
functionFragment: "withdrawWithMessage", | ||
data: BytesLike | ||
): Result; | ||
@@ -79,2 +88,3 @@ events: { | ||
"Withdrawal(address,address,uint256)": EventFragment; | ||
"WithdrawalWithMessage(address,address,uint256,bytes)": EventFragment; | ||
}; | ||
@@ -85,2 +95,3 @@ | ||
getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "WithdrawalWithMessage"): EventFragment; | ||
} | ||
@@ -183,2 +194,14 @@ | ||
): Promise<ContractTransaction>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
}; | ||
@@ -245,2 +268,14 @@ | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<ContractTransaction>; | ||
callStatic: { | ||
@@ -305,2 +340,14 @@ balanceOf( | ||
): Promise<void>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
}; | ||
@@ -318,2 +365,9 @@ | ||
): EventFilter; | ||
WithdrawalWithMessage( | ||
_l2Sender: string | null, | ||
_l1Receiver: string | null, | ||
_amount: null, | ||
_additionalData: null | ||
): EventFilter; | ||
}; | ||
@@ -383,2 +437,14 @@ | ||
): Promise<BigNumber>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<BigNumber>; | ||
}; | ||
@@ -448,3 +514,15 @@ | ||
): Promise<PopulatedTransaction>; | ||
withdrawWithMessage( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
"withdrawWithMessage(address,bytes)"( | ||
_l1Receiver: string, | ||
_additionalData: BytesLike, | ||
overrides?: PayableOverrides | ||
): Promise<PopulatedTransaction>; | ||
}; | ||
} |
@@ -90,5 +90,36 @@ /* Autogenerated file. Do not edit manually. */ | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "_l2Sender", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "_l1Receiver", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_amount", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bytes", | ||
name: "_additionalData", | ||
type: "bytes", | ||
}, | ||
], | ||
name: "WithdrawalWithMessage", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
@@ -215,2 +246,20 @@ type: "uint256", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_l1Receiver", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "_additionalData", | ||
type: "bytes", | ||
}, | ||
], | ||
name: "withdrawWithMessage", | ||
outputs: [], | ||
stateMutability: "payable", | ||
type: "function", | ||
}, | ||
]; |
@@ -24,3 +24,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IL1BridgeInterface extends ethers.utils.Interface { | ||
interface Il1BridgeInterface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -106,3 +106,3 @@ "claimFailedDeposit(address,address,bytes32,uint256,uint256,uint16,bytes32[])": FunctionFragment; | ||
interface: IL1BridgeInterface; | ||
interface: Il1BridgeInterface; | ||
@@ -114,5 +114,5 @@ functions: { | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -126,5 +126,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -155,5 +155,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -165,5 +165,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -175,3 +175,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -184,3 +184,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -219,5 +219,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -231,5 +231,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -260,5 +260,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -270,5 +270,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -280,3 +280,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -287,3 +287,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -309,5 +309,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -321,5 +321,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -350,5 +350,5 @@ overrides?: CallOverrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -360,5 +360,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -370,3 +370,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -377,3 +377,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -425,5 +425,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -437,5 +437,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -466,5 +466,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -476,5 +476,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -486,3 +486,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -493,3 +493,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -519,5 +519,5 @@ overrides?: CallOverrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -531,5 +531,5 @@ overrides?: Overrides | ||
_l2TxHash: BytesLike, | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_merkleProof: BytesLike[], | ||
@@ -560,5 +560,5 @@ overrides?: Overrides | ||
finalizeWithdrawal( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -570,5 +570,5 @@ _merkleProof: BytesLike[], | ||
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
_l2TxNumberInBlock: BigNumberish, | ||
_l2TxNumberInBatch: BigNumberish, | ||
_message: BytesLike, | ||
@@ -580,3 +580,3 @@ _merkleProof: BytesLike[], | ||
isWithdrawalFinalized( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -587,3 +587,3 @@ overrides?: CallOverrides | ||
"isWithdrawalFinalized(uint256,uint256)"( | ||
_l2BlockNumber: BigNumberish, | ||
_l2BatchNumber: BigNumberish, | ||
_l2MessageIndex: BigNumberish, | ||
@@ -590,0 +590,0 @@ overrides?: CallOverrides |
@@ -126,3 +126,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -137,3 +137,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -200,3 +200,3 @@ }, | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -211,3 +211,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -235,3 +235,3 @@ }, | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -238,0 +238,0 @@ }, |
@@ -23,16 +23,40 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IL1MessengerInterface extends ethers.utils.Interface { | ||
interface Il1MessengerInterface extends ethers.utils.Interface { | ||
functions: { | ||
"requestBytecodeL1Publication(bytes32)": FunctionFragment; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)": FunctionFragment; | ||
"sendToL1(bytes)": FunctionFragment; | ||
}; | ||
encodeFunctionData( | ||
functionFragment: "requestBytecodeL1Publication", | ||
values: [BytesLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "sendL2ToL1Log", | ||
values: [boolean, BytesLike, BytesLike] | ||
): string; | ||
encodeFunctionData(functionFragment: "sendToL1", values: [BytesLike]): string; | ||
decodeFunctionResult( | ||
functionFragment: "requestBytecodeL1Publication", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult( | ||
functionFragment: "sendL2ToL1Log", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult(functionFragment: "sendToL1", data: BytesLike): Result; | ||
events: { | ||
"BytecodeL1PublicationRequested(bytes32)": EventFragment; | ||
"L1MessageSent(address,bytes32,bytes)": EventFragment; | ||
"L2ToL1LogSent(tuple)": EventFragment; | ||
}; | ||
getEvent( | ||
nameOrSignatureOrTopic: "BytecodeL1PublicationRequested" | ||
): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "L1MessageSent"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "L2ToL1LogSent"): EventFragment; | ||
} | ||
@@ -51,5 +75,29 @@ | ||
interface: IL1MessengerInterface; | ||
interface: Il1MessengerInterface; | ||
functions: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendToL1( | ||
@@ -66,2 +114,26 @@ _message: BytesLike, | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<ContractTransaction>; | ||
sendToL1( | ||
@@ -78,2 +150,26 @@ _message: BytesLike, | ||
callStatic: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<void>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<BigNumber>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: CallOverrides | ||
): Promise<BigNumber>; | ||
sendToL1(_message: BytesLike, overrides?: CallOverrides): Promise<string>; | ||
@@ -88,2 +184,4 @@ | ||
filters: { | ||
BytecodeL1PublicationRequested(_bytecodeHash: null): EventFilter; | ||
L1MessageSent( | ||
@@ -94,5 +192,31 @@ _sender: string | null, | ||
): EventFilter; | ||
L2ToL1LogSent(_l2log: null): EventFilter; | ||
}; | ||
estimateGas: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<BigNumber>; | ||
sendToL1(_message: BytesLike, overrides?: Overrides): Promise<BigNumber>; | ||
@@ -107,2 +231,26 @@ | ||
populateTransaction: { | ||
requestBytecodeL1Publication( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
"requestBytecodeL1Publication(bytes32)"( | ||
_bytecodeHash: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
sendL2ToL1Log( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
"sendL2ToL1Log(bool,bytes32,bytes32)"( | ||
_isService: boolean, | ||
_key: BytesLike, | ||
_value: BytesLike, | ||
overrides?: Overrides | ||
): Promise<PopulatedTransaction>; | ||
sendToL1( | ||
@@ -109,0 +257,0 @@ _message: BytesLike, |
@@ -24,2 +24,15 @@ /* Autogenerated file. Do not edit manually. */ | ||
{ | ||
indexed: false, | ||
internalType: "bytes32", | ||
name: "_bytecodeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "BytecodeL1PublicationRequested", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
@@ -47,4 +60,91 @@ internalType: "address", | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "uint8", | ||
name: "l2ShardId", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isService", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "uint16", | ||
name: "txNumberInBlock", | ||
type: "uint16", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "key", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "value", | ||
type: "bytes32", | ||
}, | ||
], | ||
indexed: false, | ||
internalType: "struct L2ToL1Log", | ||
name: "_l2log", | ||
type: "tuple", | ||
}, | ||
], | ||
name: "L2ToL1LogSent", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "_bytecodeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "requestBytecodeL1Publication", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bool", | ||
name: "_isService", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_key", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_value", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "sendL2ToL1Log", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "logIdInMerkleTree", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes", | ||
@@ -51,0 +151,0 @@ name: "_message", |
@@ -24,3 +24,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
interface IL2BridgeInterface extends ethers.utils.Interface { | ||
interface Il2BridgeInterface extends ethers.utils.Interface { | ||
functions: { | ||
@@ -87,3 +87,3 @@ "finalizeDeposit(address,address,address,uint256,bytes)": FunctionFragment; | ||
interface: IL2BridgeInterface; | ||
interface: Il2BridgeInterface; | ||
@@ -90,0 +90,0 @@ functions: { |
@@ -26,3 +26,3 @@ /* Autogenerated file. Do not edit manually. */ | ||
internalType: "uint256", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint256", | ||
@@ -33,3 +33,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -53,3 +53,3 @@ }, | ||
internalType: "uint256", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint256", | ||
@@ -60,3 +60,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -80,3 +80,3 @@ }, | ||
internalType: "uint256", | ||
name: "totalBlocksCommitted", | ||
name: "totalBatchesCommitted", | ||
type: "uint256", | ||
@@ -87,3 +87,3 @@ }, | ||
internalType: "uint256", | ||
name: "totalBlocksVerified", | ||
name: "totalBatchesVerified", | ||
type: "uint256", | ||
@@ -94,3 +94,3 @@ }, | ||
internalType: "uint256", | ||
name: "totalBlocksExecuted", | ||
name: "totalBatchesExecuted", | ||
type: "uint256", | ||
@@ -108,3 +108,3 @@ }, | ||
internalType: "uint256", | ||
name: "previousLastVerifiedBlock", | ||
name: "previousLastVerifiedBatch", | ||
type: "uint256", | ||
@@ -115,3 +115,3 @@ }, | ||
internalType: "uint256", | ||
name: "currentLastVerifiedBlock", | ||
name: "currentLastVerifiedBatch", | ||
type: "uint256", | ||
@@ -128,21 +128,2 @@ }, | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "CancelUpgradeProposal", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
@@ -166,18 +147,45 @@ name: "to", | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
indexed: false, | ||
internalType: "bytes32", | ||
name: "proposalSalt", | ||
type: "bytes32", | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "diamondCut", | ||
type: "tuple", | ||
}, | ||
@@ -213,2 +221,21 @@ ], | ||
internalType: "address", | ||
name: "oldAdmin", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "newAdmin", | ||
type: "address", | ||
}, | ||
], | ||
name: "NewAdmin", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "oldGovernor", | ||
@@ -233,2 +260,21 @@ type: "address", | ||
internalType: "address", | ||
name: "oldPendingAdmin", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "newPendingAdmin", | ||
type: "address", | ||
}, | ||
], | ||
name: "NewPendingAdmin", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "oldPendingGovernor", | ||
@@ -387,104 +433,2 @@ type: "address", | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "ProposeShadowUpgrade", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
indexed: false, | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "diamondCut", | ||
type: "tuple", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bytes32", | ||
name: "proposalSalt", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "ProposeTransparentUpgrade", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "bytes32", | ||
name: "proposalHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "SecurityCouncilUpgradeApprove", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [], | ||
@@ -515,3 +459,3 @@ name: "Unfreeze", | ||
inputs: [], | ||
name: "acceptGovernor", | ||
name: "acceptAdmin", | ||
outputs: [], | ||
@@ -522,10 +466,4 @@ stateMutability: "nonpayable", | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "_proposedUpgradeHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "cancelUpgradeProposal", | ||
inputs: [], | ||
name: "acceptGovernor", | ||
outputs: [], | ||
@@ -541,3 +479,3 @@ stateMutability: "nonpayable", | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -547,3 +485,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -582,4 +520,4 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo", | ||
name: "_lastCommittedBlockData", | ||
internalType: "struct IExecutor.StoredBatchInfo", | ||
name: "_lastCommittedBatchData", | ||
type: "tuple", | ||
@@ -591,3 +529,3 @@ }, | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -617,3 +555,3 @@ }, | ||
internalType: "bytes32", | ||
name: "l2LogsTreeRoot", | ||
name: "priorityOperationsHash", | ||
type: "bytes32", | ||
@@ -623,13 +561,13 @@ }, | ||
internalType: "bytes32", | ||
name: "priorityOperationsHash", | ||
name: "bootloaderHeapInitialContentsHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initialStorageChanges", | ||
type: "bytes", | ||
internalType: "bytes32", | ||
name: "eventsQueueStateHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "repeatedStorageChanges", | ||
name: "systemLogs", | ||
type: "bytes", | ||
@@ -639,22 +577,12 @@ }, | ||
internalType: "bytes", | ||
name: "l2Logs", | ||
name: "totalL2ToL1Pubdata", | ||
type: "bytes", | ||
}, | ||
{ | ||
internalType: "bytes[]", | ||
name: "l2ArbitraryLengthMessages", | ||
type: "bytes[]", | ||
}, | ||
{ | ||
internalType: "bytes[]", | ||
name: "factoryDeps", | ||
type: "bytes[]", | ||
}, | ||
], | ||
internalType: "struct IExecutor.CommitBlockInfo[]", | ||
name: "_newBlocksData", | ||
internalType: "struct IExecutor.CommitBatchInfo[]", | ||
name: "_newBatchesData", | ||
type: "tuple[]", | ||
}, | ||
], | ||
name: "commitBlocks", | ||
name: "commitBatches", | ||
outputs: [], | ||
@@ -670,3 +598,3 @@ stateMutability: "nonpayable", | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -676,3 +604,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -711,8 +639,8 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo[]", | ||
name: "_blocksData", | ||
internalType: "struct IExecutor.StoredBatchInfo[]", | ||
name: "_batchesData", | ||
type: "tuple[]", | ||
}, | ||
], | ||
name: "executeBlocks", | ||
name: "executeBatches", | ||
outputs: [], | ||
@@ -768,7 +696,2 @@ stateMutability: "nonpayable", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_proposalSalt", | ||
type: "bytes32", | ||
}, | ||
], | ||
@@ -860,3 +783,3 @@ name: "executeUpgrade", | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -871,3 +794,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -913,15 +836,2 @@ }, | ||
inputs: [], | ||
name: "getCurrentProposalId", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getFirstUnprocessedPriorityTx", | ||
@@ -979,8 +889,8 @@ outputs: [ | ||
inputs: [], | ||
name: "getPendingGovernor", | ||
name: "getL2SystemContractsUpgradeBatchNumber", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
internalType: "uint256", | ||
name: "", | ||
type: "address", | ||
type: "uint256", | ||
}, | ||
@@ -993,8 +903,8 @@ ], | ||
inputs: [], | ||
name: "getPriorityQueueSize", | ||
name: "getL2SystemContractsUpgradeTxHash", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
internalType: "bytes32", | ||
name: "", | ||
type: "uint256", | ||
type: "bytes32", | ||
}, | ||
@@ -1007,8 +917,8 @@ ], | ||
inputs: [], | ||
name: "getPriorityTxMaxGasLimit", | ||
name: "getName", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
internalType: "string", | ||
name: "", | ||
type: "uint256", | ||
type: "string", | ||
}, | ||
@@ -1021,8 +931,8 @@ ], | ||
inputs: [], | ||
name: "getProposedUpgradeHash", | ||
name: "getPendingGovernor", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
internalType: "address", | ||
name: "", | ||
type: "bytes32", | ||
type: "address", | ||
}, | ||
@@ -1035,3 +945,3 @@ ], | ||
inputs: [], | ||
name: "getProposedUpgradeTimestamp", | ||
name: "getPriorityQueueSize", | ||
outputs: [ | ||
@@ -1049,3 +959,3 @@ { | ||
inputs: [], | ||
name: "getProtocolVersion", | ||
name: "getPriorityTxMaxGasLimit", | ||
outputs: [ | ||
@@ -1063,8 +973,8 @@ { | ||
inputs: [], | ||
name: "getSecurityCouncil", | ||
name: "getProtocolVersion", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
internalType: "uint256", | ||
name: "", | ||
type: "address", | ||
type: "uint256", | ||
}, | ||
@@ -1077,3 +987,3 @@ ], | ||
inputs: [], | ||
name: "getTotalBlocksCommitted", | ||
name: "getTotalBatchesCommitted", | ||
outputs: [ | ||
@@ -1091,3 +1001,3 @@ { | ||
inputs: [], | ||
name: "getTotalBlocksExecuted", | ||
name: "getTotalBatchesExecuted", | ||
outputs: [ | ||
@@ -1105,3 +1015,3 @@ { | ||
inputs: [], | ||
name: "getTotalBlocksVerified", | ||
name: "getTotalBatchesVerified", | ||
outputs: [ | ||
@@ -1132,15 +1042,2 @@ { | ||
inputs: [], | ||
name: "getUpgradeProposalState", | ||
outputs: [ | ||
{ | ||
internalType: "enum UpgradeState", | ||
name: "", | ||
type: "uint8", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getVerifier", | ||
@@ -1189,15 +1086,2 @@ outputs: [ | ||
inputs: [], | ||
name: "isApprovedBySecurityCouncil", | ||
outputs: [ | ||
{ | ||
internalType: "bool", | ||
name: "", | ||
type: "bool", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "isDiamondStorageFrozen", | ||
@@ -1218,3 +1102,3 @@ outputs: [ | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1300,3 +1184,3 @@ }, | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_batchNumber", | ||
type: "uint256", | ||
@@ -1378,81 +1262,6 @@ }, | ||
{ | ||
internalType: "bytes32", | ||
name: "_proposalHash", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "uint40", | ||
name: "_proposalId", | ||
type: "uint40", | ||
}, | ||
], | ||
name: "proposeShadowUpgrade", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "_diamondCut", | ||
type: "tuple", | ||
}, | ||
{ | ||
internalType: "uint40", | ||
name: "_proposalId", | ||
type: "uint40", | ||
}, | ||
], | ||
name: "proposeTransparentUpgrade", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -1462,3 +1271,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -1497,4 +1306,4 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo", | ||
name: "_prevBlock", | ||
internalType: "struct IExecutor.StoredBatchInfo", | ||
name: "_prevBatch", | ||
type: "tuple", | ||
@@ -1506,3 +1315,3 @@ }, | ||
internalType: "uint64", | ||
name: "blockNumber", | ||
name: "batchNumber", | ||
type: "uint64", | ||
@@ -1512,3 +1321,3 @@ }, | ||
internalType: "bytes32", | ||
name: "blockHash", | ||
name: "batchHash", | ||
type: "bytes32", | ||
@@ -1547,4 +1356,4 @@ }, | ||
], | ||
internalType: "struct IExecutor.StoredBlockInfo[]", | ||
name: "_committedBlocks", | ||
internalType: "struct IExecutor.StoredBatchInfo[]", | ||
name: "_committedBatches", | ||
type: "tuple[]", | ||
@@ -1570,3 +1379,3 @@ }, | ||
], | ||
name: "proveBlocks", | ||
name: "proveBatches", | ||
outputs: [], | ||
@@ -1585,3 +1394,3 @@ stateMutability: "nonpayable", | ||
internalType: "uint256", | ||
name: "_l2BlockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1596,3 +1405,3 @@ }, | ||
internalType: "uint16", | ||
name: "_l2TxNumberInBlock", | ||
name: "_l2TxNumberInBatch", | ||
type: "uint16", | ||
@@ -1626,3 +1435,3 @@ }, | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1649,3 +1458,3 @@ }, | ||
internalType: "uint16", | ||
name: "txNumberInBlock", | ||
name: "txNumberInBatch", | ||
type: "uint16", | ||
@@ -1694,3 +1503,3 @@ }, | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_l2BatchNumber", | ||
type: "uint256", | ||
@@ -1707,3 +1516,3 @@ }, | ||
internalType: "uint16", | ||
name: "txNumberInBlock", | ||
name: "txNumberInBatch", | ||
type: "uint16", | ||
@@ -1796,7 +1605,7 @@ }, | ||
internalType: "uint256", | ||
name: "_newLastBlock", | ||
name: "_newLastBatch", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "revertBlocks", | ||
name: "revertBatches", | ||
outputs: [], | ||
@@ -1809,8 +1618,8 @@ stateMutability: "nonpayable", | ||
{ | ||
internalType: "bytes32", | ||
name: "_upgradeProposalHash", | ||
type: "bytes32", | ||
internalType: "address", | ||
name: "_newPendingAdmin", | ||
type: "address", | ||
}, | ||
], | ||
name: "securityCouncilUpgradeApprove", | ||
name: "setPendingAdmin", | ||
outputs: [], | ||
@@ -1881,7 +1690,7 @@ stateMutability: "nonpayable", | ||
internalType: "uint256", | ||
name: "_blockNumber", | ||
name: "_batchNumber", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "storedBlockHash", | ||
name: "storedBatchHash", | ||
outputs: [ | ||
@@ -1904,70 +1713,2 @@ { | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "address", | ||
name: "facet", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "enum Diamond.Action", | ||
name: "action", | ||
type: "uint8", | ||
}, | ||
{ | ||
internalType: "bool", | ||
name: "isFreezable", | ||
type: "bool", | ||
}, | ||
{ | ||
internalType: "bytes4[]", | ||
name: "selectors", | ||
type: "bytes4[]", | ||
}, | ||
], | ||
internalType: "struct Diamond.FacetCut[]", | ||
name: "facetCuts", | ||
type: "tuple[]", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "initAddress", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "initCalldata", | ||
type: "bytes", | ||
}, | ||
], | ||
internalType: "struct Diamond.DiamondCutData", | ||
name: "_diamondCut", | ||
type: "tuple", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "_proposalId", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "bytes32", | ||
name: "_salt", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "upgradeProposalHash", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "", | ||
type: "bytes32", | ||
}, | ||
], | ||
stateMutability: "pure", | ||
type: "function", | ||
}, | ||
]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1137363
113
37112
2