Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update staking bank #151

Merged
merged 9 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,16 @@ hardhat compile && HARDHAT_NETWORK=ethereum_production npm run deploy:foreignCha
On blockchain where we do have L2 consensus:

```shell
npx hardhat deploy --network rootstock_staging
npx hardhat registerStakingBankStatic --network rootstock_staging
npx hardhat deploy --network linea_production
npx hardhat registerStakingBankStatic --network linea_production
# just in case chain needs to be redeployed
# if staking bank changed, there might be need to force redeployment by removing deployment files for chain and feeds
npx hardhat deploy --network rootstock_staging
npx hardhat deploy --network linea_production

npx hardhat registerChain --network rootstock_staging
npx hardhat registerChain --network linea_production

npx hardhat registerUmbrellaFeeds --destroy UMB-USD --network rootstock_staging
npx hardhat registerReaderFactory --network rootstock_staging
npx hardhat registerUmbrellaFeeds --destroy USDC-USD --network linea_production
npx hardhat registerReaderFactory --network linea_production
```

On blockchain with only on-chain data:
Expand Down
1 change: 1 addition & 0 deletions constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const STAKING_BANK_STATIC_SBX = 'StakingBankStaticSbx';
export const STAKING_BANK_STATIC_PROD = 'StakingBankStaticProd';
export const STAKING_BANK_STATE = 'StakingBankState';
export const UMBRELLA_FEEDS = 'UmbrellaFeeds';
export const UMBRELLA_FEEDS_ARTIFACTS = 'contracts/onChainFeeds/UmbrellaFeeds.sol:UmbrellaFeeds';
export const UMBRELLA_FEEDS_READER_FACTORY = 'UmbrellaFeedsReaderFactory';
export const UMB = 'UMB';
export const UNISWAPV3_FETCHER_HELPER = 'UniswapV3FetcherHelper';
Expand Down
60 changes: 22 additions & 38 deletions contracts/stakingBankStatic/StakingBankStaticProd.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,17 @@ contract StakingBankStaticProd is StakingBankStatic {
// external order is based on validators submits on AVAX for Apr 2023
address public constant VALIDATOR_2 = 0x57F404aD75e371c1A539589C1eFCA12e0C6980AD;
address public constant VALIDATOR_3 = 0xD56C6A4f64E0bD70260472d1DB6Cf5825858CB0d;
address public constant VALIDATOR_4 = 0x220230Eda8f50067Dd9e4729345dabCCe0C61542;
address public constant VALIDATOR_5 = 0x93FdcAB283b0BcAc48157590af482E1CFd6af6aC;
address public constant VALIDATOR_6 = 0xCd733E06B06083d52fC5867E8E3432aA5c103A38;
address public constant VALIDATOR_7 = 0x42e210b110c6aa49CdfA7ceF1444Aa4719653111;
address public constant VALIDATOR_8 = 0x501731c6a69803a53Ec6c3e12f293c247cE1092B;
address public constant VALIDATOR_9 = 0x8bF9661F1b247522C75DD0FE84355aD2EfF27144;
address public constant VALIDATOR_10 = 0x281754Ab58391A478B7aA4E7f39991CfB41118c4;
address public constant VALIDATOR_11 = 0xB9C63a350A04d8BD245d18928a26EE036352dDd8;
address public constant VALIDATOR_12 = 0x57A51D5BDcE188c2295fCA3b4687475a54E65A02;
address public constant VALIDATOR_13 = 0x777FbA3666fa7747476a34577FcCC404b263E09F;
address public constant VALIDATOR_14 = 0x2F85824B2B38F179E451988670935d315b5b9692;
address public constant VALIDATOR_15 = 0xA7241994267682de4dE7Ef62f52dc2C783d1784B;
address public constant VALIDATOR_16 = 0x6eEd457C20603EDAE50C3A112CAA1a9425321bD0;
address public constant VALIDATOR_17 = 0xC5a7650c2725a7B6A39f15cb9FbffC7af357AFeb;
address public constant VALIDATOR_18 = 0xFEd95453678920c1b7b3A81F033Ca02a27225556;
address public constant VALIDATOR_4 = 0x93FdcAB283b0BcAc48157590af482E1CFd6af6aC;
address public constant VALIDATOR_5 = 0xCd733E06B06083d52fC5867E8E3432aA5c103A38;
address public constant VALIDATOR_6 = 0x42e210b110c6aa49CdfA7ceF1444Aa4719653111;
address public constant VALIDATOR_7 = 0x501731c6a69803a53Ec6c3e12f293c247cE1092B;
address public constant VALIDATOR_8 = 0x8bF9661F1b247522C75DD0FE84355aD2EfF27144;
address public constant VALIDATOR_9 = 0x281754Ab58391A478B7aA4E7f39991CfB41118c4;
address public constant VALIDATOR_10 = 0x57A51D5BDcE188c2295fCA3b4687475a54E65A02;
address public constant VALIDATOR_11 = 0x2F85824B2B38F179E451988670935d315b5b9692;
address public constant VALIDATOR_12 = 0xA7241994267682de4dE7Ef62f52dc2C783d1784B;
address public constant VALIDATOR_13 = 0x6eEd457C20603EDAE50C3A112CAA1a9425321bD0;
address public constant VALIDATOR_14 = 0xC5a7650c2725a7B6A39f15cb9FbffC7af357AFeb;

constructor(uint256 _validatorsCount) StakingBankStatic(_validatorsCount) {}

Expand All @@ -34,21 +30,17 @@ contract StakingBankStaticProd is StakingBankStatic {
if (_id == VALIDATOR_1) return (_id, "https://validator2.umb.network");
if (_id == VALIDATOR_2) return (_id, "https://umbrella.artemahr.tech");
if (_id == VALIDATOR_3) return (_id, "https://umb.vtabsolutions.com:3030");
if (_id == VALIDATOR_4) return (_id, "https://umb.stakers.world");
if (_id == VALIDATOR_5) return (_id, "https://umbrella.crazywhale.es");
if (_id == VALIDATOR_6) return (_id, "https://umbrella-node.gateomega.com");
if (_id == VALIDATOR_7) return (_id, "https://umb.anorak.technology");
if (_id == VALIDATOR_8) return (_id, "https://umbrella.validator.infstones.io");
if (_id == VALIDATOR_9) return (_id, "https://umb.hashquark.io");
if (_id == VALIDATOR_10) return (_id, "http://umbrella.staking4all.org:3000");
if (_id == VALIDATOR_11) return (_id, "https://umbrella-api.validatrium.club");
if (_id == VALIDATOR_12) return (_id, "http://5.161.78.230:3000");
if (_id == VALIDATOR_13) return (_id, "https://umbnode.blockchainliverpool.com");
if (_id == VALIDATOR_14) return (_id, "https://umb-api.staking.rocks");
if (_id == VALIDATOR_15) return (_id, "https://rpc.urbanhq.net");
if (_id == VALIDATOR_16) return (_id, "https://umbrella-node.ankastake.com");
if (_id == VALIDATOR_17) return (_id, "https://umbrella.tchambrella.com");
if (_id == VALIDATOR_18) return (_id, "https://umbrella-node.cmt13.eu");
if (_id == VALIDATOR_4) return (_id, "https://umbrella.crazywhale.es");
if (_id == VALIDATOR_5) return (_id, "https://umbrella-node.gateomega.com");
if (_id == VALIDATOR_6) return (_id, "https://umb.anorak.technology");
if (_id == VALIDATOR_7) return (_id, "https://umbrella.validator.infstones.io");
if (_id == VALIDATOR_8) return (_id, "https://umb.hashkey.cloud");
if (_id == VALIDATOR_9) return (_id, "http://umbrella.staking4all.org:3000");
if (_id == VALIDATOR_10) return (_id, "http://5.161.78.230:3000");
if (_id == VALIDATOR_11) return (_id, "https://umb-api.staking.rocks");
if (_id == VALIDATOR_12) return (_id, "https://rpc.urbanhq.net");
if (_id == VALIDATOR_13) return (_id, "https://umbrella-node.ankastake.com");
if (_id == VALIDATOR_14) return (_id, "https://umbrella.tchambrella.com");

return (address(0), "");
}
Expand All @@ -71,10 +63,6 @@ contract StakingBankStaticProd is StakingBankStatic {
list[12] = VALIDATOR_12;
list[13] = VALIDATOR_13;
list[14] = VALIDATOR_14;
list[15] = VALIDATOR_15;
list[16] = VALIDATOR_16;
list[17] = VALIDATOR_17;
list[18] = VALIDATOR_18;

return list;
}
Expand All @@ -96,10 +84,6 @@ contract StakingBankStaticProd is StakingBankStatic {
|| _validator == VALIDATOR_12
|| _validator == VALIDATOR_13
|| _validator == VALIDATOR_14
|| _validator == VALIDATOR_15
|| _validator == VALIDATOR_16
|| _validator == VALIDATOR_17
|| _validator == VALIDATOR_18
);
}
}
2 changes: 1 addition & 1 deletion deploy/deploymentsData/stakingBankStatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const stakingBankStaticDeploymentData = async (hre: HardhatRuntimeEnviron
let contractName = STAKING_BANK_STATIC_LOCAL;

if (hre.network.name.includes('_production')) {
validatorsCount = 19;
validatorsCount = 15;
contractName = STAKING_BANK_STATIC_PROD;
} else if (hre.network.name.includes('_staging')) {
validatorsCount = 2;
Expand Down
82 changes: 15 additions & 67 deletions deployments/linea_production/StakingBankStatic.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions deployments/linea_production/UmbrellaFeeds.json

Large diffs are not rendered by default.

Loading
Loading