Skip to content

Commit e70225a

Browse files
committed
chore(protocol-contracts): rename networks in hardhat config
1 parent b6517fa commit e70225a

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

protocol-contracts/staking/hardhat.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ const config: HardhatUserConfig = {
5656
},
5757
},
5858
networks: {
59-
'ethereum-mainnet': {
59+
'mainnet': {
6060
url: process.env.MAINNET_RPC_URL || '',
6161
accounts,
6262
},
63-
'ethereum-testnet': {
63+
'testnet': {
6464
url: process.env.SEPOLIA_RPC_URL || '',
6565
accounts,
6666
},

protocol-contracts/staking/tasks/addEligibleAccount.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types';
1313
// npx hardhat task:addOperatorAsEligibleInProtocolStaking \
1414
// --operatorStakingAddress 0x1234567890123456789012345678901234567890 \
1515
// --protocolStakingProxyAddress 0x1234567890123456789012345678901234567890 \
16-
// --network ethereum-testnet
16+
// --network testnet
1717
task('task:addOperatorAsEligibleInProtocolStaking')
1818
.addParam(
1919
'operatorStakingAddress',
@@ -51,7 +51,7 @@ task('task:addOperatorAsEligibleInProtocolStaking')
5151

5252
// Add all coprocessor operators as eligible in the coprocessor protocol staking contract
5353
// Example usage:
54-
// npx hardhat task:addAllCoproOperatorsAsEligible --network ethereum-testnet
54+
// npx hardhat task:addAllCoproOperatorsAsEligible --network testnet
5555
task('task:addAllCoproOperatorsAsEligible').setAction(async function (_, hre: HardhatRuntimeEnvironment) {
5656
const { log } = hre.deployments;
5757

@@ -71,7 +71,7 @@ task('task:addAllCoproOperatorsAsEligible').setAction(async function (_, hre: Ha
7171

7272
// Add all KMS operators as eligible in the KMS protocol staking contract
7373
// Example usage:
74-
// npx hardhat task:addAllKMSOperatorsAsEligible --network ethereum-testnet
74+
// npx hardhat task:addAllKMSOperatorsAsEligible --network testnet
7575
task('task:addAllKMSOperatorsAsEligible').setAction(async function (_, hre: HardhatRuntimeEnvironment) {
7676
const { log } = hre.deployments;
7777

@@ -90,7 +90,7 @@ task('task:addAllKMSOperatorsAsEligible').setAction(async function (_, hre: Hard
9090

9191
// Add all operators as eligible in the relevant protocol staking contracts (coprocessor and KMS)
9292
// Example usage:
93-
// npx hardhat task:addAllOperatorsAsEligible --network ethereum-testnet
93+
// npx hardhat task:addAllOperatorsAsEligible --network testnet
9494
task('task:addAllOperatorsAsEligible').setAction(async function (_, hre: HardhatRuntimeEnvironment) {
9595
const { log } = hre.deployments;
9696

protocol-contracts/staking/tasks/ownership/operatorStakingOwner.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types';
66

77
// Transfer the operator staking contract's ownership from the deployer to the DAO
88
// Example usage:
9-
// npx hardhat task:transferOperatorStakingOwnershipToDAO --network ethereum-testnet
9+
// npx hardhat task:transferOperatorStakingOwnershipToDAO --network testnet
1010
task('task:transferOperatorStakingOwnershipToDAO')
1111
.addParam(
1212
'operatorStakingAddress',
@@ -41,7 +41,7 @@ task('task:transferOperatorStakingOwnershipToDAO')
4141

4242
// Transfer the operator rewarder contract's ownership from the deployer to the DAO
4343
// Example usage:
44-
// npx hardhat task:transferOperatorRewarderOwnershipToDAO --network ethereum-testnet
44+
// npx hardhat task:transferOperatorRewarderOwnershipToDAO --network testnet
4545
task('task:transferOperatorRewarderOwnershipToDAO')
4646
.addParam(
4747
'operatorRewarderAddress',
@@ -76,7 +76,7 @@ task('task:transferOperatorRewarderOwnershipToDAO')
7676

7777
// Transfer the all operator staking and rewarder contracts' ownerships from the deployer to the DAO
7878
// Example usage:
79-
// npx hardhat task:transferAllOperatorStakingRewarderOwnershipsToDAO --network ethereum-testnet
79+
// npx hardhat task:transferAllOperatorStakingRewarderOwnershipsToDAO --network testnet
8080
task('task:transferAllOperatorStakingRewarderOwnershipsToDAO').setAction(async function (
8181
_,
8282
hre: HardhatRuntimeEnvironment,

protocol-contracts/staking/tasks/setOwnerFee.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { HardhatRuntimeEnvironment } from 'hardhat/types';
77
// Set the owner fee for the operator rewarder contract
88
// Note: The owner fee is in basis points (in 1/100th of a percent, so 10000 = 100.00%)
99
// Example usage:
10-
// npx hardhat task:setOwnerFee --ownerFee 2000 --operatorRewarderAddress 0x1234567890123456789012345678901234567890 --network ethereum-testnet
10+
// npx hardhat task:setOwnerFee --ownerFee 2000 --operatorRewarderAddress 0x1234567890123456789012345678901234567890 --network testnet
1111
task('task:setOwnerFee')
1212
.addParam(
1313
'ownerFee',
@@ -48,7 +48,7 @@ task('task:setOwnerFee')
4848

4949
// Set the owner fee for the all operator rewarder contracts
5050
// Example usage:
51-
// npx hardhat task:setAllOwnerFees --network ethereum-testnet
51+
// npx hardhat task:setAllOwnerFees --network testnet
5252
task('task:setAllOwnerFees').setAction(async function (_, hre: HardhatRuntimeEnvironment) {
5353
const { log } = hre.deployments;
5454

protocol-contracts/staking/tasks/setRewardRate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task('task:setRewardRate')
4444
// Set the reward rate for the coprocessor protocol staking contract
4545
// Note: The reward rate is in tokens (using 18 decimals) per second
4646
// Example usage:
47-
// npx hardhat task:setCoprocessorRewardRate --rewardRate 1000000000000 --network ethereum-testnet
47+
// npx hardhat task:setCoprocessorRewardRate --rewardRate 1000000000000 --network testnet
4848
task('task:setCoprocessorRewardRate')
4949
.addParam(
5050
'rewardRate',
@@ -63,7 +63,7 @@ task('task:setCoprocessorRewardRate')
6363

6464
// Set the reward rate for the KMS protocol staking contract
6565
// Example usage:
66-
// npx hardhat task:setKMSRewardRate --network ethereum-testnet
66+
// npx hardhat task:setKMSRewardRate --network testnet
6767
task('task:setKMSRewardRate').setAction(async function (_, hre: HardhatRuntimeEnvironment) {
6868
const { log } = hre.deployments;
6969

protocol-contracts/staking/tasks/verify.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { task } from 'hardhat/config';
88

99
// Verify a protocol staking contract
1010
// Example usage:
11-
// npx hardhat task:verifyProtocolStaking --network ethereum-testnet
11+
// npx hardhat task:verifyProtocolStaking --network testnet
1212
task('task:verifyProtocolStaking').setAction(async function (_, hre) {
1313
const { upgrades, run } = hre;
1414

@@ -32,7 +32,7 @@ task('task:verifyProtocolStaking').setAction(async function (_, hre) {
3232

3333
// Verify a operator staking contract
3434
// Example usage:
35-
// npx hardhat task:verifyOperatorStaking --network ethereum-testnet
35+
// npx hardhat task:verifyOperatorStaking --network testnet
3636
task('task:verifyOperatorStaking').setAction(async function (_, hre) {
3737
const { run } = hre;
3838

@@ -57,7 +57,7 @@ task('task:verifyOperatorStaking').setAction(async function (_, hre) {
5757

5858
// Verify a operator rewarder contract
5959
// Example usage:
60-
// npx hardhat task:verifyOperatorRewarder --network ethereum-testnet
60+
// npx hardhat task:verifyOperatorRewarder --network testnet
6161
task('task:verifyOperatorRewarder').setAction(async function (_, hre) {
6262
const { run } = hre;
6363

0 commit comments

Comments
 (0)