zksync-web3
Advanced tools
Comparing version 0.12.0 to 0.12.1
{ | ||
"abi": [ | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "deployerAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "contractAddress", | ||
"type": "address" | ||
} | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "deployerAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "contractAddress", | ||
"type": "address" | ||
} | ||
], | ||
"name": "ContractDeployed", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "create", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "create2", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "create2Account", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "createAccount", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "newAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "value", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "ContractDeployed", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
"internalType": "struct ContractDeployer.ForceDeployment", | ||
"name": "_deployment", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_sender", | ||
"type": "address" | ||
} | ||
], | ||
"name": "forceDeployOnAddress", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "newAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "value", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "create", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "create2", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "create2Account", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "createAccount", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_newAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "forceDeployOnAddress", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_senderNonce", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "getNewAddressCreate", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "newAddress", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "getNewAddressCreate2", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "newAddress", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_addr", | ||
"type": "address" | ||
} | ||
], | ||
"name": "isAccount", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_newAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "_account", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "performDeployOnAddress", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "publishBytecode", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
"internalType": "struct ContractDeployer.ForceDeployment[]", | ||
"name": "_deployments", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"name": "forceDeployOnAddresses", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_senderNonce", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "getNewAddressCreate", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "newAddress", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_salt", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "getNewAddressCreate2", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "newAddress", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_addr", | ||
"type": "address" | ||
} | ||
], | ||
"name": "isAccount", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_bytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_newAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "_account", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_input", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "performDeployOnAddress", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
} | ||
] | ||
} | ||
} | ||
@@ -11,2 +11,14 @@ { | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "commitment", | ||
"type": "bytes32" | ||
} | ||
@@ -25,2 +37,14 @@ ], | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "commitment", | ||
"type": "bytes32" | ||
} | ||
@@ -37,2 +61,8 @@ ], | ||
"internalType": "uint256", | ||
"name": "totalBlocksCommitted", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "totalBlocksVerified", | ||
@@ -44,3 +74,3 @@ "type": "uint256" | ||
"internalType": "uint256", | ||
"name": "totalBlocksCommitted", | ||
"name": "totalBlocksExecuted", | ||
"type": "uint256" | ||
@@ -56,2 +86,27 @@ } | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "previousLastVerifiedBlock", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "currentLastVerifiedBlock", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "enum IExecutor.BlockVerificationMode", | ||
"name": "verificationMode", | ||
"type": "uint8" | ||
} | ||
], | ||
"name": "BlocksVerification", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
@@ -96,3 +151,16 @@ { | ||
"anonymous": false, | ||
"inputs": [], | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "currentProposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposedDiamondCutHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "DiamondCutProposalCancelation", | ||
@@ -157,6 +225,24 @@ "type": "event" | ||
{ | ||
"indexed": false, | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_address", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "currentProposalId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "securityCouncilEmergencyApprovals", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "proposedDiamondCutHash", | ||
"type": "bytes32" | ||
} | ||
@@ -177,4 +263,23 @@ ], | ||
{ | ||
"indexed": false, | ||
"internalType": "bool", | ||
"name": "isPorterAvailable", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "IsPorterAvailableStatusUpdate", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "oldGovernor", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newGovernor", | ||
@@ -192,2 +297,40 @@ "type": "address" | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "previousBytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "newBytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "NewL2BootloaderBytecodeHash", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "previousBytecodeHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "newBytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "NewL2DefaultAccountBytecodeHash", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
@@ -318,3 +461,82 @@ "name": "oldPendingGovernor", | ||
"anonymous": false, | ||
"inputs": [], | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "oldVerifier", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newVerifier", | ||
"type": "address" | ||
} | ||
], | ||
"name": "NewVerifier", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionNodeLevelVkHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionLeafLevelVkHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionCircuitsSetVksHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "struct VerifierParams", | ||
"name": "oldVerifierParams", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionNodeLevelVkHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionLeafLevelVkHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionCircuitsSetVksHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "struct VerifierParams", | ||
"name": "newVerifierParams", | ||
"type": "tuple" | ||
} | ||
], | ||
"name": "NewVerifierParams", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "lastDiamondFreezeTimestamp", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Unfreeze", | ||
@@ -441,12 +663,2 @@ "type": "event" | ||
{ | ||
"internalType": "uint32", | ||
"name": "ergsPerPubdataByteInBlock", | ||
"type": "uint32" | ||
}, | ||
{ | ||
"internalType": "uint16", | ||
"name": "ergsPerCodeDecommittmentWord", | ||
"type": "uint16" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
@@ -485,2 +697,7 @@ "name": "numberOfLayer1Txs", | ||
"type": "bytes[]" | ||
}, | ||
{ | ||
"internalType": "bytes[]", | ||
"name": "factoryDeps", | ||
"type": "bytes[]" | ||
} | ||
@@ -690,32 +907,8 @@ ], | ||
"inputs": [], | ||
"name": "facetsExtended", | ||
"name": "getCurrentProposalId", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "addr", | ||
"type": "address" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes4", | ||
"name": "selector", | ||
"type": "bytes4" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isFreezable", | ||
"type": "bool" | ||
} | ||
], | ||
"internalType": "struct IGetters.SelectorExtended[]", | ||
"name": "selectors", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"internalType": "struct IGetters.FacetExtended[]", | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "tuple[]" | ||
"type": "uint256" | ||
} | ||
@@ -728,2 +921,15 @@ ], | ||
"inputs": [], | ||
"name": "getFirstUnprocessedPriorityTx", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getGovernor", | ||
@@ -742,3 +948,3 @@ "outputs": [ | ||
"inputs": [], | ||
"name": "getLastProcessedPriorityTx", | ||
"name": "getLastDiamondFreezeTimestamp", | ||
"outputs": [ | ||
@@ -756,2 +962,86 @@ { | ||
"inputs": [], | ||
"name": "getPendingGovernor", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getPriorityQueueSize", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getProposedDiamondCutHash", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getProposedDiamondCutTimestamp", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getSecurityCouncilEmergencyApprovals", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_address", | ||
"type": "address" | ||
} | ||
], | ||
"name": "getSecurityCouncilMemberLastApprovedProposalId", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getTotalBlocksCommitted", | ||
@@ -821,2 +1111,15 @@ "outputs": [ | ||
{ | ||
"inputs": [], | ||
"name": "isDiamondStorageFrozen", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
@@ -848,2 +1151,21 @@ { | ||
], | ||
"name": "isSecurityCouncilMember", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_address", | ||
"type": "address" | ||
} | ||
], | ||
"name": "isValidator", | ||
@@ -863,5 +1185,5 @@ "outputs": [ | ||
{ | ||
"internalType": "uint32", | ||
"name": "blockNumber", | ||
"type": "uint32" | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"type": "uint256" | ||
} | ||
@@ -910,2 +1232,32 @@ ], | ||
{ | ||
"inputs": [], | ||
"name": "priorityQueueFrontOperation", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "canonicalTxHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint64", | ||
"name": "expirationBlock", | ||
"type": "uint64" | ||
}, | ||
{ | ||
"internalType": "uint192", | ||
"name": "layer2Tip", | ||
"type": "uint192" | ||
} | ||
], | ||
"internalType": "struct PriorityOperation", | ||
"name": "", | ||
"type": "tuple" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
@@ -995,2 +1347,49 @@ { | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo", | ||
"name": "_prevBlock", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint64", | ||
"name": "blockNumber", | ||
"type": "uint64" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "blockHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint64", | ||
"name": "indexRepeatedStorageChanges", | ||
"type": "uint64" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "numberOfLayer1Txs", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "priorityOperationsHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "l2LogsTreeRoot", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "timestamp", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "commitment", | ||
"type": "bytes32" | ||
} | ||
], | ||
"internalType": "struct IExecutor.StoredBlockInfo[]", | ||
@@ -1004,3 +1403,3 @@ "name": "_committedBlocks", | ||
"internalType": "uint256[]", | ||
"name": "recursiveInput", | ||
"name": "recurisiveAggregationInput", | ||
"type": "uint256[]" | ||
@@ -1010,19 +1409,4 @@ }, | ||
"internalType": "uint256[]", | ||
"name": "proof", | ||
"name": "serializedProof", | ||
"type": "uint256[]" | ||
}, | ||
{ | ||
"internalType": "uint256[]", | ||
"name": "commitments", | ||
"type": "uint256[]" | ||
}, | ||
{ | ||
"internalType": "uint8[]", | ||
"name": "vkIndexes", | ||
"type": "uint8[]" | ||
}, | ||
{ | ||
"internalType": "uint256[16]", | ||
"name": "subproofsLimbs", | ||
"type": "uint256[16]" | ||
} | ||
@@ -1033,2 +1417,7 @@ ], | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "enum IExecutor.BlockVerificationMode", | ||
"name": "_verificationMode", | ||
"type": "uint8" | ||
} | ||
@@ -1162,3 +1551,3 @@ ], | ||
"internalType": "address", | ||
"name": "_contractAddressL2", | ||
"name": "_contractL2", | ||
"type": "address" | ||
@@ -1191,3 +1580,3 @@ }, | ||
"internalType": "bytes32", | ||
"name": "txHash", | ||
"name": "canonicalTxHash", | ||
"type": "bytes32" | ||
@@ -1203,3 +1592,3 @@ } | ||
"internalType": "uint256", | ||
"name": "_blocksToRevert", | ||
"name": "_newLastBlock", | ||
"type": "uint256" | ||
@@ -1337,2 +1726,28 @@ } | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_l2BootloaderBytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "setL2BootloaderBytecodeHash", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_l2DefaultAccountBytecodeHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "setL2DefaultAccountBytecodeHash", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
@@ -1351,2 +1766,15 @@ "name": "_newPendingGovernor", | ||
{ | ||
"internalType": "bool", | ||
"name": "_isPorterAvailable", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "setPorterAvailability", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
@@ -1368,2 +1796,64 @@ "name": "_validator", | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract Verifier", | ||
"name": "_newVerifier", | ||
"type": "address" | ||
} | ||
], | ||
"name": "setVerifier", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionNodeLevelVkHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionLeafLevelVkHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "recursionCircuitsSetVksHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"internalType": "struct VerifierParams", | ||
"name": "_newVerifierParams", | ||
"type": "tuple" | ||
} | ||
], | ||
"name": "setVerifierParams", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_blockNumber", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "storedBlockHash", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
@@ -1370,0 +1860,0 @@ "name": "unfreezeDiamond", |
@@ -47,5 +47,5 @@ import { BigNumber, BigNumberish, ethers, BytesLike } from 'ethers'; | ||
}>; | ||
finalizeWithdrawal(withdrawalHash: BytesLike, index?: number): Promise<ethers.ContractTransaction>; | ||
finalizeWithdrawal(withdrawalHash: BytesLike, index?: number, overrides?: ethers.Overrides): Promise<ethers.ContractTransaction>; | ||
isWithdrawalFinalized(withdrawalHash: BytesLike, index?: number): Promise<boolean>; | ||
claimFailedDeposit(depositHash: BytesLike): Promise<ethers.ContractTransaction>; | ||
claimFailedDeposit(depositHash: BytesLike, overrides?: ethers.Overrides): Promise<ethers.ContractTransaction>; | ||
requestExecute(transaction: { | ||
@@ -52,0 +52,0 @@ contractAddress: Address; |
@@ -149,3 +149,3 @@ "use strict"; | ||
} | ||
async finalizeWithdrawal(withdrawalHash, index = 0) { | ||
async finalizeWithdrawal(withdrawalHash, index = 0, overrides) { | ||
const { log, l1BatchTxId } = await this._getWithdrawalLog(withdrawalHash, index); | ||
@@ -158,3 +158,3 @@ const { l2ToL1LogIndex } = await this._getWithdrawalL2ToL1Log(withdrawalHash, index); | ||
const l1Bridge = typechain_1.IL1BridgeFactory.connect(await l2Bridge.l1Bridge(), this._signerL1()); | ||
return await l1Bridge.finalizeWithdrawal(log.l1BatchNumber, proof.id, l1BatchTxId, message, proof.proof); | ||
return await l1Bridge.finalizeWithdrawal(log.l1BatchNumber, proof.id, l1BatchTxId, message, proof.proof, overrides !== null && overrides !== void 0 ? overrides : {}); | ||
} | ||
@@ -173,3 +173,3 @@ async isWithdrawalFinalized(withdrawalHash, index = 0) { | ||
} | ||
async claimFailedDeposit(depositHash) { | ||
async claimFailedDeposit(depositHash, overrides) { | ||
const receipt = await this._providerL2().getTransactionReceipt(ethers_1.ethers.utils.hexlify(depositHash)); | ||
@@ -188,3 +188,3 @@ const successL2ToL1LogIndex = receipt.l2ToL1Logs.findIndex((l2ToL1log) => l2ToL1log.sender == utils_1.BOOTLOADER_FORMAL_ADDRESS && l2ToL1log.key == depositHash); | ||
const proof = await this._providerL2().getLogProof(depositHash, successL2ToL1LogIndex); | ||
return await l1Bridge.claimFailedDeposit(calldata['_l1Sender'], calldata['_l1Token'], depositHash, receipt.l1BatchNumber, proof.id, receipt.l1BatchTxIndex, proof.proof); | ||
return await l1Bridge.claimFailedDeposit(calldata['_l1Sender'], calldata['_l1Token'], depositHash, receipt.l1BatchNumber, proof.id, receipt.l1BatchTxIndex, proof.proof, overrides !== null && overrides !== void 0 ? overrides : {}); | ||
} | ||
@@ -191,0 +191,0 @@ async requestExecute(transaction) { |
@@ -5,3 +5,3 @@ import { ethers, BigNumber, BigNumberish, utils, providers, BytesLike } from 'ethers'; | ||
import { ConnectionInfo } from '@ethersproject/web'; | ||
import { Address, EventFilter, BlockTag, TransactionResponse, TransactionRequest, TransactionStatus, Token, PriorityOpResponse, BalancesMap, MessageProof, TransactionReceipt, Block, BlockWithTransactions, Log } from './types'; | ||
import { Address, EventFilter, BlockTag, TransactionResponse, TransactionRequest, TransactionStatus, Token, PriorityOpResponse, BalancesMap, MessageProof, TransactionReceipt, Block, BlockWithTransactions, Log, BlockDetails } from './types'; | ||
import { Signer } from './signer'; | ||
@@ -45,2 +45,3 @@ export declare class Provider extends ethers.providers.JsonRpcProvider { | ||
getL1BatchNumber(): Promise<number>; | ||
getBlockDetails(number: number): Promise<BlockDetails>; | ||
getWithdrawTx(transaction: { | ||
@@ -47,0 +48,0 @@ token: Address; |
@@ -93,3 +93,7 @@ "use strict"; | ||
defaultFormatter.formats.block.l1BatchNumber = Formatter.allowNull(number); | ||
defaultFormatter.formats.block.l1BatchTimestamp = Formatter.allowNull(number); | ||
defaultFormatter.formats.blockWithTransactions.l1BatchNumber = Formatter.allowNull(number); | ||
defaultFormatter.formats.blockWithTransactions.l1BatchTimestamp = Formatter.allowNull(number); | ||
defaultFormatter.formats.transaction.l1BatchNumber = Formatter.allowNull(number); | ||
defaultFormatter.formats.transaction.l1BatchTxIndex = Formatter.allowNull(number); | ||
defaultFormatter.formats.filterLog.l1BatchNumber = Formatter.allowNull(number); | ||
@@ -269,2 +273,5 @@ } | ||
} | ||
async getBlockDetails(number) { | ||
return await this.send('zks_getBlockDetails', [number]); | ||
} | ||
async getWithdrawTx(transaction) { | ||
@@ -271,0 +278,0 @@ var _a, _b, _c; |
@@ -110,5 +110,5 @@ import { ethers } from 'ethers'; | ||
}>; | ||
finalizeWithdrawal(withdrawalHash: ethers.utils.BytesLike, index?: number): Promise<ethers.ContractTransaction>; | ||
finalizeWithdrawal(withdrawalHash: ethers.utils.BytesLike, index?: number, overrides?: ethers.Overrides): Promise<ethers.ContractTransaction>; | ||
isWithdrawalFinalized(withdrawalHash: ethers.utils.BytesLike, index?: number): Promise<boolean>; | ||
claimFailedDeposit(depositHash: ethers.utils.BytesLike): Promise<ethers.ContractTransaction>; | ||
claimFailedDeposit(depositHash: ethers.utils.BytesLike, overrides?: ethers.Overrides): Promise<ethers.ContractTransaction>; | ||
requestExecute(transaction: { | ||
@@ -115,0 +115,0 @@ contractAddress: string; |
@@ -62,2 +62,4 @@ import { BytesLike, BigNumberish, providers, BigNumber } from 'ethers'; | ||
export interface TransactionResponse extends providers.TransactionResponse { | ||
l1BatchNumber: number; | ||
l1BatchTxIndex: number; | ||
waitFinalize(): Promise<TransactionReceipt>; | ||
@@ -73,5 +75,8 @@ } | ||
l1BatchNumber: number; | ||
l1BatchTimestamp: number; | ||
} | ||
export interface BlockWithTransactions extends EthersBlockWithTransactions { | ||
l1BatchNumber: number; | ||
l1BatchTimestamp: number; | ||
transactions: Array<TransactionResponse>; | ||
} | ||
@@ -124,1 +129,15 @@ export interface Log extends providers.Log { | ||
export type PaymasterInput = ApprovalBasedPaymasterInput | GeneralPaymasterInput; | ||
export interface BlockDetails { | ||
number: number; | ||
timestamp: number; | ||
l1TxCount: number; | ||
l2TxCount: number; | ||
rootHash?: string; | ||
status: string; | ||
commitTxHash?: string; | ||
committedAt?: Date; | ||
proveTxHash?: string; | ||
provenAt?: Date; | ||
executeTxHash?: string; | ||
executedAt?: Date; | ||
} |
@@ -71,5 +71,5 @@ import { EIP712Signer } from './signer'; | ||
}>; | ||
finalizeWithdrawal(withdrawalHash: ethers.utils.BytesLike, index?: number): Promise<ethers.ContractTransaction>; | ||
finalizeWithdrawal(withdrawalHash: ethers.utils.BytesLike, index?: number, overrides?: ethers.Overrides): Promise<ethers.ContractTransaction>; | ||
isWithdrawalFinalized(withdrawalHash: ethers.utils.BytesLike, index?: number): Promise<boolean>; | ||
claimFailedDeposit(depositHash: ethers.utils.BytesLike): Promise<ethers.ContractTransaction>; | ||
claimFailedDeposit(depositHash: ethers.utils.BytesLike, overrides?: ethers.Overrides): Promise<ethers.ContractTransaction>; | ||
requestExecute(transaction: { | ||
@@ -76,0 +76,0 @@ contractAddress: string; |
{ | ||
"name": "zksync-web3", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"main": "build/src/index.js", | ||
@@ -25,3 +25,3 @@ "types": "build/src/index.d.ts", | ||
"peerDependencies": { | ||
"ethers": "~5.7.0" | ||
"ethers": "^5.7.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "scripts": { |
@@ -215,3 +215,3 @@ import { BigNumber, BigNumberish, ethers, BytesLike } from 'ethers'; | ||
async finalizeWithdrawal(withdrawalHash: BytesLike, index: number = 0) { | ||
async finalizeWithdrawal(withdrawalHash: BytesLike, index: number = 0, overrides?: ethers.Overrides) { | ||
const { log, l1BatchTxId } = await this._getWithdrawalLog(withdrawalHash, index); | ||
@@ -225,3 +225,10 @@ const { l2ToL1LogIndex } = await this._getWithdrawalL2ToL1Log(withdrawalHash, index); | ||
const l1Bridge = IL1BridgeFactory.connect(await l2Bridge.l1Bridge(), this._signerL1()); | ||
return await l1Bridge.finalizeWithdrawal(log.l1BatchNumber, proof.id, l1BatchTxId, message, proof.proof); | ||
return await l1Bridge.finalizeWithdrawal( | ||
log.l1BatchNumber, | ||
proof.id, | ||
l1BatchTxId, | ||
message, | ||
proof.proof, | ||
overrides ?? {} | ||
); | ||
} | ||
@@ -243,3 +250,3 @@ | ||
async claimFailedDeposit(depositHash: BytesLike) { | ||
async claimFailedDeposit(depositHash: BytesLike, overrides?: ethers.Overrides) { | ||
const receipt = await this._providerL2().getTransactionReceipt(ethers.utils.hexlify(depositHash)); | ||
@@ -272,3 +279,4 @@ const successL2ToL1LogIndex = receipt.l2ToL1Logs.findIndex( | ||
receipt.l1BatchTxIndex, | ||
proof.proof | ||
proof.proof, | ||
overrides ?? {} | ||
); | ||
@@ -275,0 +283,0 @@ } |
@@ -20,3 +20,4 @@ import { ethers, BigNumber, BigNumberish, utils, providers, BytesLike } from 'ethers'; | ||
BlockWithTransactions, | ||
Log | ||
Log, | ||
BlockDetails | ||
} from './types'; | ||
@@ -136,3 +137,7 @@ import { sleep, parseTransaction, ETH_ADDRESS, isETH, getL2HashFromPriorityOp, EIP712_TX_TYPE } from './utils'; | ||
defaultFormatter.formats.block.l1BatchNumber = Formatter.allowNull(number); | ||
defaultFormatter.formats.block.l1BatchTimestamp = Formatter.allowNull(number); | ||
defaultFormatter.formats.blockWithTransactions.l1BatchNumber = Formatter.allowNull(number); | ||
defaultFormatter.formats.blockWithTransactions.l1BatchTimestamp = Formatter.allowNull(number); | ||
defaultFormatter.formats.transaction.l1BatchNumber = Formatter.allowNull(number); | ||
defaultFormatter.formats.transaction.l1BatchTxIndex = Formatter.allowNull(number); | ||
@@ -336,2 +341,6 @@ defaultFormatter.formats.filterLog.l1BatchNumber = Formatter.allowNull(number); | ||
async getBlockDetails(number: number): Promise<BlockDetails> { | ||
return await this.send('zks_getBlockDetails', [number]); | ||
} | ||
async getWithdrawTx(transaction: { | ||
@@ -338,0 +347,0 @@ token: Address; |
@@ -87,2 +87,4 @@ import { BytesLike, BigNumberish, providers, BigNumber } from 'ethers'; | ||
export interface TransactionResponse extends providers.TransactionResponse { | ||
l1BatchNumber: number; | ||
l1BatchTxIndex: number; | ||
waitFinalize(): Promise<TransactionReceipt>; | ||
@@ -100,2 +102,3 @@ } | ||
l1BatchNumber: number; | ||
l1BatchTimestamp: number; | ||
} | ||
@@ -105,2 +108,4 @@ | ||
l1BatchNumber: number; | ||
l1BatchTimestamp: number; | ||
transactions: Array<TransactionResponse>; | ||
} | ||
@@ -159,1 +164,16 @@ | ||
export type PaymasterInput = ApprovalBasedPaymasterInput | GeneralPaymasterInput; | ||
export interface BlockDetails { | ||
number: number; | ||
timestamp: number; | ||
l1TxCount: number; | ||
l2TxCount: number; | ||
rootHash?: string; | ||
status: string; | ||
commitTxHash?: string; | ||
committedAt?: Date; | ||
proveTxHash?: string; | ||
provenAt?: Date; | ||
executeTxHash?: string; | ||
executedAt?: Date; | ||
} |
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
598638
18953