Skip to content

Commit

Permalink
updated deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
theuprotocol committed Apr 17, 2024
1 parent 298bfa9 commit f16aa5d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/peer-to-peer/dao/manageAddressRegistry.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"actions": [
{
"type": "setWhitelistState",
"addresses": ["0xC71dBB6b1a9735F3259F0CF746C1c000BF02615c"],
"addresses": ["0xc2dDc2330C06E2A7BfE2084a9A4f1A38f83A6B6f"],
"state": 9
}
]
Expand Down
17 changes: 13 additions & 4 deletions scripts/peer-to-peer/utils/deployTestnetTokenManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,19 @@ async function main() {
logger.log('Deployer ETH balance:', ethers.utils.formatEther(deployerBal.toString()))
logger.log(`Deploying to network '${hardhatNetworkName}' (default provider network name '${network.name}')`)
logger.log(`Configured chain id '${hardhatChainId}' (default provider config chain id '${network.chainId}')`)
const TestnetTokenManager = await ethers.getContractFactory('TestnetTokenManager')
const testnetTokenManager = await TestnetTokenManager.connect(deployer).deploy()
await testnetTokenManager.deployed()
logger.log('testnetTokenManager deployed at:', testnetTokenManager.address)
const MysoTokenManagerWithCaps = await ethers.getContractFactory('MysoTokenManagerWithCaps')
const mysoIOOVault = "0x060cceb8Cc54BaD7A01E02Ba11EeCE5304314726"
const mysoToken = "0x8fF1307ba7e5FDc3A411d259bAe641e2B1d897c4"
const stMysoToken = "0x0A6cBCB5Ac7Fc6B47f06c2cE3E828b6EEBf37B06"
const minMysoWeight = 0
const signer = deployer.address
const collatCaps : any = []
const mysoTokenManagerWithCaps = await MysoTokenManagerWithCaps.connect(deployer).deploy(mysoIOOVault, mysoToken, stMysoToken, minMysoWeight, signer, collatCaps)
await mysoTokenManagerWithCaps.deployed()
logger.log('testnetTokenManager deployed at:', mysoTokenManagerWithCaps.address)
logger.log(`'${mysoIOOVault}' '${mysoToken}' '${stMysoToken}' '${0}' '${signer}' '${collatCaps}'`)

// npx hardhat verify 0xc2dDc2330C06E2A7BfE2084a9A4f1A38f83A6B6f --constructor-args .\scripts\peer-to-peer\utils\tokenManagerArgs.js --network sepolia
}

main().catch(error => {
Expand Down
8 changes: 8 additions & 0 deletions scripts/peer-to-peer/utils/tokenManagerArgs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = [
"0x060cceb8Cc54BaD7A01E02Ba11EeCE5304314726",
"0x8fF1307ba7e5FDc3A411d259bAe641e2B1d897c4",
"0x0A6cBCB5Ac7Fc6B47f06c2cE3E828b6EEBf37B06",
0,
"0xcE3d0e78c15C30ecf631ef529581Af3de0478895",
[]
];

0 comments on commit f16aa5d

Please sign in to comment.