Skip to content

Commit

Permalink
Merge pull request #520 from VenusProtocol/feat/VEN-2810
Browse files Browse the repository at this point in the history
[VEN-2810]: Deployment files for the treasury on OP mainnet
  • Loading branch information
chechu authored Sep 20, 2024
2 parents fd5b07d + 2d182dc commit a5ad8b8
Show file tree
Hide file tree
Showing 6 changed files with 861 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy/005-deploy-VTreasuryV8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
zksyncsepolia: "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866", // ZKSYNC SEPOLIA MULTISIG
zksyncmainnet: "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa", // ZKSYNC MAINNET MULTISIG
opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d", // OPSEPOLIA MULTISIG
opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3", // OPMAINNET MULTISIG
bscmainnet: await getTimelock(),
bsctestnet: await getTimelock(),
hardhat: deployer,
Expand Down
197 changes: 196 additions & 1 deletion deployments/opmainnet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,200 @@
{
"name": "opmainnet",
"chainId": "10",
"contracts": {}
"contracts": {
"VTreasuryV8": {
"address": "0x104c01EB7b4664551BE6A9bdB26a8C5c6Be7d3da",
"abi": [
{
"inputs": [],
"name": "ZeroAddressNotAllowed",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferStarted",
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "withdrawAddress",
"type": "address"
}
],
"name": "WithdrawTreasuryNative",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "withdrawAddress",
"type": "address"
}
],
"name": "WithdrawTreasuryToken",
"type": "event"
},
{
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
"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"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "withdrawAddress",
"type": "address"
}
],
"name": "withdrawTreasuryNative",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
},
{
"internalType": "address",
"name": "withdrawAddress",
"type": "address"
}
],
"name": "withdrawTreasuryToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
}
}
}
1 change: 1 addition & 0 deletions deployments/opmainnet/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
Loading

0 comments on commit a5ad8b8

Please sign in to comment.