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

5ire staging deployments #152

Merged
merged 1 commit 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 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
Loading