Skip to content

Commit

Permalink
Chore: Update Game7Testnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
vasinl124 committed Sep 3, 2024
1 parent 634cb1f commit 22a0fab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
12 changes: 3 additions & 9 deletions constants/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export enum ChainId {
OPSepolia = 11155420,
Base = 8453,
BaseSepolia = 84532,
Game7OrbitArbSepolia = 7007007,
Game7Testnet = 95002,
Game7Testnet = 13746,
}

export enum NetworkName {
Expand All @@ -44,7 +43,6 @@ export enum NetworkName {
OPSepolia = 'OPSepolia',
Base = 'base',
BaseSepolia = 'baseSepolia',
Game7OrbitArbSepolia = 'game7OrbitArbSepolia',
Game7Testnet = 'game7Testnet',
}

Expand Down Expand Up @@ -85,8 +83,6 @@ export enum Currency {
OPSepolia = 'ETH',
Base = 'ETH',
BaseSepolia = 'ETH',
Game7Sepolia = 'ETH',
Game7OrbitArbSepolia = 'Iron',
Game7Testnet = 'G7',
}

Expand All @@ -107,8 +103,7 @@ export enum NetworkExplorer {
Base = 'https://basescan.org',
BaseSepolia = 'https://base-sepolia.blockscout.com',
// this will change to: testnet.explorer.game7.io
Game7OrbitArbSepolia = 'https://explorerl2new-game7-arb-anytrust-wcj9hysn7y.t.conduit.xyz',
Game7Testnet = 'https://explorer-game7-testnet-2g3y2k9azw.t.conduit.xyz/',
Game7Testnet = 'https://explorer-game7-testnet-0ilneybprf.t.conduit.xyz',
}

export function getTransactionUrl(txHash: string, network: NetworkName): string {
Expand All @@ -135,6 +130,5 @@ export const rpcUrls = {
[ChainId.Base]: 'https://mainnet.base.org',
[ChainId.BaseSepolia]: 'https://sepolia.base.org',
// this will change to: rpc.sepolia.game7.io
[ChainId.Game7OrbitArbSepolia]: 'https://rpc-game7-arb-anytrust-wcj9hysn7y.t.conduit.xyz',
[ChainId.Game7Testnet]: 'https://rpc-game7-testnet-2g3y2k9azw.t.conduit.xyz/',
[ChainId.Game7Testnet]: 'https://rpc-game7-testnet-0ilneybprf.t.conduit.xyz',
};
13 changes: 0 additions & 13 deletions g7.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ log(`Using Game7 L3 config`);

defaultConfig.networks = {
...defaultConfig.networks,
[NetworkName.Game7OrbitArbSepolia]: {
url: rpcUrls[ChainId.Game7OrbitArbSepolia],
accounts: [PRIVATE_KEY],
chainId: ChainId.Game7OrbitArbSepolia,
},
[NetworkName.Game7Testnet]: {
url: rpcUrls[ChainId.Game7Testnet],
accounts: [PRIVATE_KEY],
Expand All @@ -27,14 +22,6 @@ defaultConfig.networks = {
defaultConfig.etherscan = {
apiKey: ETHSCAN_API_KEY,
customChains: [
{
network: NetworkName.Game7OrbitArbSepolia,
chainId: ChainId.Game7OrbitArbSepolia,
urls: {
apiURL: `${NetworkExplorer.Game7OrbitArbSepolia}/api`,
browserURL: NetworkExplorer.Game7OrbitArbSepolia,
},
},
{
network: NetworkName.Game7Testnet,
chainId: ChainId.Game7Testnet,
Expand Down

0 comments on commit 22a0fab

Please sign in to comment.