Skip to content

Commit

Permalink
deploy,doc: Address other PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Oct 10, 2023
1 parent fccc671 commit e4f6cd8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions deploy/deploy_delta_upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ const func: DeployFunction = async function(hre: HardhatRuntimeEnvironment) {
)
}

await Treasury.renounceRole(roles.admin, deployer).then(tx => tx.wait())

const LivepeerGovernor: LivepeerGovernor = await ethers.getContractAt(
"LivepeerGovernor",
livepeerGovernor.address
Expand Down Expand Up @@ -200,6 +198,8 @@ const func: DeployFunction = async function(hre: HardhatRuntimeEnvironment) {
console.log("Pending governance actions:")
console.log(JSON.stringify(governanceActions, null, 2))
}

// deployer MUST renounce ADMIN role from the Treasury afterwards
}

func.tags = ["DELTA_UPGRADE"]
Expand Down
2 changes: 1 addition & 1 deletion deploy/migrations.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const arbitrumMainnet = {
bondingManager: {
numActiveTranscoders: 100,
unbondingPeriod: 7, // 7 rounds
treasuryRewardCutRate: 100000, // 10%
treasuryRewardCutRate: ethers.BigNumber.from(10).pow(26), // 10% in 27-digit precision
treasuryBalanceCeiling: ethers.utils.parseEther("750000") // 750k LPT
},
broker: {
Expand Down
22 changes: 11 additions & 11 deletions doc/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ After deployment, a file in the `deployments` directory containing the latest ad

## Verify Contract Code

Verify the contract code on arbiscan.io.
You can run the `etherscan-verify-deployments` task from this repository available as a `yarn` script:

```
yarn etherscan-verify --network arbitrumMainnet Contract1 Contract2 ...
```

Additionally, you can omit the contract names to verify all the contracts that have been deployed on the specified network.

## Manual Verification

If the above script does not work, you can manually verify the contract code on arbiscan.io with the `hardhat-verify` plugin:

```
npx hardhat verify --network arbitrumMainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1" ...
Expand All @@ -52,16 +62,6 @@ You can also use Tenderly to manually submit contract code for [private verifica

If you see an error related to multiple SPDX license identifiers, remove all SPDX license identifiers from `flattened.sol` except for a single one.

## Task

Alternatively, you can also run the `etherscan-verify-deployments` task from this repository available as a `yarn` script:

```
yarn etherscan-verify --network arbitrumMainnet Contract1 Contract2 ...
```

Additionally, you can omit the contract names to verify all the contracts deployed on the specified network.

## View Contract Diff

Use the contract diff checker at https://arbiscan.io/contractdiffchecker to view the code diff between the current and new target implementation contracts in order to check that the verified code at address of the new target implementation contract contains the expected changes.
Expand Down

0 comments on commit e4f6cd8

Please sign in to comment.