Skip to content

Commit

Permalink
feat: index ZkEvm contracts deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
catalyst17 committed Jan 10, 2024
1 parent 831f361 commit a585994
Show file tree
Hide file tree
Showing 18 changed files with 13,446 additions and 3 deletions.
1,919 changes: 1,919 additions & 0 deletions abi/rollups/zk_evm/polygon_zk_evm.json

Large diffs are not rendered by default.

198 changes: 198 additions & 0 deletions abi/rollups/zk_evm/polygon_zk_evm_deployer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
[
{
"inputs":[
{
"internalType":"address",
"name":"_owner",
"type":"address"
}
],
"stateMutability":"nonpayable",
"type":"constructor"
},
{
"anonymous":false,
"inputs":[

],
"name":"FunctionCall",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":false,
"internalType":"address",
"name":"newContractAddress",
"type":"address"
}
],
"name":"NewDeterministicDeployment",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"internalType":"address",
"name":"previousOwner",
"type":"address"
},
{
"indexed":true,
"internalType":"address",
"name":"newOwner",
"type":"address"
}
],
"name":"OwnershipTransferred",
"type":"event"
},
{
"inputs":[
{
"internalType":"uint256",
"name":"amount",
"type":"uint256"
},
{
"internalType":"bytes32",
"name":"salt",
"type":"bytes32"
},
{
"internalType":"bytes",
"name":"initBytecode",
"type":"bytes"
}
],
"name":"deployDeterministic",
"outputs":[

],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"uint256",
"name":"amount",
"type":"uint256"
},
{
"internalType":"bytes32",
"name":"salt",
"type":"bytes32"
},
{
"internalType":"bytes",
"name":"initBytecode",
"type":"bytes"
},
{
"internalType":"bytes",
"name":"dataCall",
"type":"bytes"
}
],
"name":"deployDeterministicAndCall",
"outputs":[

],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"targetAddress",
"type":"address"
},
{
"internalType":"bytes",
"name":"dataCall",
"type":"bytes"
},
{
"internalType":"uint256",
"name":"amount",
"type":"uint256"
}
],
"name":"functionCall",
"outputs":[

],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[

],
"name":"owner",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"salt",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"bytecodeHash",
"type":"bytes32"
}
],
"name":"predictDeterministicAddress",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"renounceOwnership",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"newOwner",
"type":"address"
}
],
"name":"transferOwnership",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
}
]
153 changes: 153 additions & 0 deletions abi/rollups/zk_evm/polygon_zk_evm_global_exit_root.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
[
{
"inputs":[
{
"internalType":"address",
"name":"_rollupAddress",
"type":"address"
},
{
"internalType":"address",
"name":"_bridgeAddress",
"type":"address"
}
],
"stateMutability":"nonpayable",
"type":"constructor"
},
{
"inputs":[

],
"name":"OnlyAllowedContracts",
"type":"error"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"internalType":"bytes32",
"name":"mainnetExitRoot",
"type":"bytes32"
},
{
"indexed":true,
"internalType":"bytes32",
"name":"rollupExitRoot",
"type":"bytes32"
}
],
"name":"UpdateGlobalExitRoot",
"type":"event"
},
{
"inputs":[

],
"name":"bridgeAddress",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"getLastGlobalExitRoot",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"name":"globalExitRootMap",
"outputs":[
{
"internalType":"uint256",
"name":"",
"type":"uint256"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"lastMainnetExitRoot",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"lastRollupExitRoot",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"rollupAddress",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"newRoot",
"type":"bytes32"
}
],
"name":"updateExitRoot",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
}
]
Loading

0 comments on commit a585994

Please sign in to comment.