Skip to content

Commit

Permalink
Extract Vault deposit data management to separate contract
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi committed Mar 21, 2024
1 parent ac91863 commit 9f0212a
Show file tree
Hide file tree
Showing 86 changed files with 1,778 additions and 1,660 deletions.
5 changes: 5 additions & 0 deletions abi/Errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@
"name": "UpgradeFailed",
"type": "error"
},
{
"inputs": [],
"name": "ValueNotChanged",
"type": "error"
},
{
"inputs": [],
"name": "ZeroAddress",
Expand Down
297 changes: 297 additions & 0 deletions abi/IDepositDataManager.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "vault",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "depositDataManager",
"type": "address"
}
],
"name": "DepositDataManagerUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "vault",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "depositDataRoot",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "validatorIndex",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "depositDataManager",
"type": "address"
}
],
"name": "DepositDataMigrated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "vault",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "depositDataRoot",
"type": "bytes32"
}
],
"name": "DepositDataRootUpdated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
}
],
"name": "depositDataIndexes",
"outputs": [
{
"internalType": "uint256",
"name": "validatorIndex",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
}
],
"name": "depositDataRoots",
"outputs": [
{
"internalType": "bytes32",
"name": "depositDataRoot",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
}
],
"name": "getDepositDataManager",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "depositDataRoot",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "validatorIndex",
"type": "uint256"
},
{
"internalType": "address",
"name": "depositDataManager",
"type": "address"
}
],
"name": "migrate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
},
{
"components": [
{
"internalType": "bytes32",
"name": "validatorsRegistryRoot",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "validators",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "signatures",
"type": "bytes"
},
{
"internalType": "string",
"name": "exitSignaturesIpfsHash",
"type": "string"
}
],
"internalType": "struct IKeeperValidators.ApprovalParams",
"name": "keeperParams",
"type": "tuple"
},
{
"internalType": "bytes32[]",
"name": "proof",
"type": "bytes32[]"
}
],
"name": "registerValidator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
},
{
"components": [
{
"internalType": "bytes32",
"name": "validatorsRegistryRoot",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "validators",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "signatures",
"type": "bytes"
},
{
"internalType": "string",
"name": "exitSignaturesIpfsHash",
"type": "string"
}
],
"internalType": "struct IKeeperValidators.ApprovalParams",
"name": "keeperParams",
"type": "tuple"
},
{
"internalType": "uint256[]",
"name": "indexes",
"type": "uint256[]"
},
{
"internalType": "bool[]",
"name": "proofFlags",
"type": "bool[]"
},
{
"internalType": "bytes32[]",
"name": "proof",
"type": "bytes32[]"
}
],
"name": "registerValidators",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
},
{
"internalType": "address",
"name": "depositDataManager",
"type": "address"
}
],
"name": "setDepositDataManager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
},
{
"internalType": "bytes32",
"name": "depositDataRoot",
"type": "bytes32"
}
],
"name": "setDepositDataRoot",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 9f0212a

Please sign in to comment.