Skip to content

Commit

Permalink
5ire staging deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
DZariusz committed Oct 29, 2024
1 parent 3ef793b commit fef0708
Show file tree
Hide file tree
Showing 11 changed files with 2,367 additions and 6 deletions.
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 linea_production
npx hardhat registerStakingBankStatic --network linea_production
npx hardhat deploy --network _5ire_staging
npx hardhat registerStakingBankStatic --network _5ire_staging
# 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 linea_production
npx hardhat deploy --network _5ire_staging

npx hardhat registerChain --network linea_production
npx hardhat registerChain --network _5ire_staging

npx hardhat registerUmbrellaFeeds --destroy USDC-USD --network linea_production
npx hardhat registerReaderFactory --network linea_production
npx hardhat registerUmbrellaFeeds --network _5ire_staging --destroy USDC-USD
npx hardhat registerReaderFactory --network _5ire_staging
```

On blockchain with only on-chain data:
Expand Down
2 changes: 2 additions & 0 deletions constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ export const ARTHERA_SANDBOX = 'arthera_sandbox';
export const ASTAR_SANDBOX = 'astar_sandbox';
export const MELD_SANDBOX = 'meld_sandbox';
export const ROOTSTOCK_SANDBOX = 'rootstock_sandbox';
export const _5IRE_SANDBOX = '5ire_sandbox';

export const LOCALHOST = 'localhost';
export const HARDHAT = 'hardhat';

export const _5IRE_STAGING = '5ire_staging';
export const LINEA_STAGING = 'linea_staging';
export const BASE_STAGING = 'base_staging';
export const BASE_SANDBOX = 'base_sandbox';
Expand Down
9 changes: 9 additions & 0 deletions constants/providers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
_5IRE_STAGING,
ARBITRUM_PRODUCTION,
ARBITRUM_SANDBOX,
ARBITRUM_STAGING,
Expand Down Expand Up @@ -99,6 +100,11 @@ const astarTestnetProviderData: ProviderData = {
chainId: chainId(1261120),
};

const _5fireTestnetProviderData: ProviderData = {
url: 'https://rpc.testnet.5ire.network/',
chainId: chainId(997),
};

// https://docs.gobob.xyz/docs/build/getting-started/networks
const bobTestnetProviderData: ProviderData = {
url: `https://bob-sepolia.blastapi.io/${BLAST_RPC_ID}`,
Expand Down Expand Up @@ -207,6 +213,9 @@ const baseMainnetProviderData: ProviderData = {

const resolveProviderData = (networkName: string): ProviderData => {
switch (networkName) {
case _5IRE_STAGING:
return _5fireTestnetProviderData;

case BOB_STAGING:
return bobTestnetProviderData;

Expand Down
1 change: 1 addition & 0 deletions deploy/_helpers/onChainSupportedBlockchains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function onChainSupportedBlockchains(hre: HardhatRuntimeEnvironment): boo
if (hre.network.name.includes('rootstock_')) return true;
if (hre.network.name.includes('zk_link_')) return true;
if (hre.network.name.includes('bob_')) return true;
if (hre.network.name.includes('_5ire')) return true;

return false;
}
1 change: 1 addition & 0 deletions deployments/_5ire_staging/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
997
373 changes: 373 additions & 0 deletions deployments/_5ire_staging/Registry.json

Large diffs are not rendered by default.

Loading

0 comments on commit fef0708

Please sign in to comment.