Skip to content

Commit 918435b

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

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

protocol-contracts/staking/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ OPERATOR_STAKING_KMS_OWNER_ADDRESS_1="0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65
8181
# ----------------------------------------------------------------------------
8282
# ProtocolStaking initial reward rate
8383
# Note: The reward rate is in tokens (using 18 decimals) per second
84-
PROTOCOL_STAKING_REWARD_RATE=1000000000
84+
PROTOCOL_STAKING_REWARD_RATE=10000000000000000
8585

8686
# OperatorRewarder initial owner fee
8787
# Note: The owner fee is in basis points (in 1/100th of a percent, so 10000 = 100.00%)
88-
OPERATOR_REWARDER_OWNER_FEE=2000
88+
OPERATOR_REWARDER_OWNER_FEE=1000

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/deployment/operatorStaking.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function deployOperatorStaking(
5555

5656
// Deploy the coprocessor OperatorStaking contracts
5757
// Example usage:
58-
// npx hardhat task:deployAllOperatorStakingCoproContracts --network ethereum-testnet
58+
// npx hardhat task:deployAllOperatorStakingCoproContracts --network testnet
5959
task('task:deployAllOperatorStakingCoproContracts').setAction(async function (_, hre) {
6060
const { log } = hre.deployments;
6161

@@ -86,7 +86,7 @@ task('task:deployAllOperatorStakingCoproContracts').setAction(async function (_,
8686

8787
// Deploy the KMS OperatorStaking contracts
8888
// Example usage:
89-
// npx hardhat task:deployAllOperatorStakingKMSContracts --network ethereum-testnet
89+
// npx hardhat task:deployAllOperatorStakingKMSContracts --network testnet
9090
task('task:deployAllOperatorStakingKMSContracts').setAction(async function (_, hre) {
9191
const { log } = hre.deployments;
9292

@@ -111,7 +111,7 @@ task('task:deployAllOperatorStakingKMSContracts').setAction(async function (_, h
111111

112112
// Deploy the OperatorStaking contracts
113113
// Example usage:
114-
// npx hardhat task:deployAllOperatorStakingContracts --network ethereum-testnet
114+
// npx hardhat task:deployAllOperatorStakingContracts --network testnet
115115
task('task:deployAllOperatorStakingContracts').setAction(async function (_, hre) {
116116
const { log } = hre.deployments;
117117

protocol-contracts/staking/tasks/deployment/protocolStaking.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function deployProtocolStaking(
5959

6060
// Deploy the coprocessor ProtocolStaking contracts
6161
// Example usage:
62-
// npx hardhat task:deployProtocolStakingCopro --network ethereum-testnet
62+
// npx hardhat task:deployProtocolStakingCopro --network testnet
6363
task('task:deployProtocolStakingCopro').setAction(async function (_, hre) {
6464
const { log } = hre.deployments;
6565

@@ -77,7 +77,7 @@ task('task:deployProtocolStakingCopro').setAction(async function (_, hre) {
7777

7878
// Deploy the KMS ProtocolStaking contracts
7979
// Example usage:
80-
// npx hardhat task:deployProtocolStakingKMS --network ethereum-testnet
80+
// npx hardhat task:deployProtocolStakingKMS --network testnet
8181
task('task:deployProtocolStakingKMS').setAction(async function (_, hre) {
8282
const { log } = hre.deployments;
8383

@@ -95,7 +95,7 @@ task('task:deployProtocolStakingKMS').setAction(async function (_, hre) {
9595

9696
// Deploy the ProtocolStaking contracts
9797
// Example usage:
98-
// npx hardhat task:deployAllProtocolStakingContracts --network ethereum-testnet
98+
// npx hardhat task:deployAllProtocolStakingContracts --network testnet
9999
task('task:deployAllProtocolStakingContracts').setAction(async function (_, hre) {
100100
const { log } = hre.deployments;
101101

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/ownership/protocolStakingGovernorRole.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function transferGovernorRole(protocolStakingProxyAddress: string, hre: Ha
3535
// The DAO then needs to accept the transfer by calling `acceptDefaultAdminTransfer()` function on
3636
// both protocol staking contracts
3737
// Example usage:
38-
// npx hardhat task:beginTransferProtocolStakingGovernorRolesToDAO --network ethereum-testnet
38+
// npx hardhat task:beginTransferProtocolStakingGovernorRolesToDAO --network testnet
3939
task('task:beginTransferProtocolStakingGovernorRolesToDAO').setAction(async function (
4040
_,
4141
hre: HardhatRuntimeEnvironment,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function renounceManagerRole(protocolStakingProxyAddress: string, hre: Har
5858

5959
// Grant all protocol staking contracts' manager roles to the DAO
6060
// Example usage:
61-
// npx hardhat task:grantProtocolStakingManagerRolesToDAO --network ethereum-testnet
61+
// npx hardhat task:grantProtocolStakingManagerRolesToDAO --network testnet
6262
task('task:grantProtocolStakingManagerRolesToDAO').setAction(async function (_, hre: HardhatRuntimeEnvironment) {
6363
const { log } = hre.deployments;
6464

@@ -77,7 +77,7 @@ task('task:grantProtocolStakingManagerRolesToDAO').setAction(async function (_,
7777

7878
// Renounce all protocol staking contracts' manager roles from the deployer
7979
// Example usage:
80-
// npx hardhat task:renounceProtocolStakingManagerRolesFromDeployer --network ethereum-testnet
80+
// npx hardhat task:renounceProtocolStakingManagerRolesFromDeployer --network testnet
8181
task('task:renounceProtocolStakingManagerRolesFromDeployer').setAction(async function (
8282
_,
8383
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

0 commit comments

Comments
 (0)