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 b5e8bcb
Show file tree
Hide file tree
Showing 11 changed files with 4,797 additions and 3,496 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ pnpm install
"deploy:mantle:sepolia": "pnpm compile && hardhat --config mantle.config.ts deploy --network mantleSepolia",
"deploy:polygon:mainnet": "pnpm compile && hardhat --config polygon.config.ts deploy --network polygon",
"deploy:polygon:mumbai": "pnpm compile && hardhat --config polygon.config.ts deploy --network polygonMumbai",
"deploy:g7:arb:sepolia": "pnpm compile && hardhat --config g7.config.ts deploy --network game7OrbitArbSepolia",
"deploy:g7:base:sepolia": "pnpm compile && hardhat --config g7.config.ts deploy --network game7OrbitBaseSepolia",
"deploy:g7:testnet": "pnpm compile && hardhat --config g7.config.ts deploy --network game7Testnet",
"test:foundry": "forge test -vvv",
"test": "REPORT_GAS=true hardhat --config hardhat.config.ts test test/hardhatTests/*.ts --network hardhat",
"test:ci": "hardhat --config hardhat.config.ts test test/hardhatTests/*.ts --network hardhat",
Expand Down
4 changes: 2 additions & 2 deletions constants/constructor-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ export const BridgePolygonV1Args = {
MAINNET: {
developerAdmin: 'DEPLOYER_WALLET',
chainIdFrom: ChainId.Polygon,
chainIdTo: ChainId.Game7OrbitArbSepolia, // TODO * chain to mainnet
chainIdTo: ChainId.Game7Testnet, // TODO * chain to mainnet
},
TESTNET: {
developerAdmin: 'DEPLOYER_WALLET',
chainIdFrom: ChainId.PolygonMumbai,
chainIdTo: ChainId.Game7OrbitArbSepolia,
chainIdTo: ChainId.Game7Testnet,
},
};

Expand Down
51 changes: 0 additions & 51 deletions constants/deployments/deployments-g7-sepolia-base.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { TENANT } from '@constants/tenant';
import { DeploymentContract } from '../../types/deployment-type';
import { NETWORK_TYPE, NetworkName } from '../network';

const chain = NetworkName.Game7OrbitArbSepolia;
const chain = NetworkName.Game7Testnet;
const networkType = NETWORK_TYPE.TESTNET;

export const G7_SEPOLIA_ARB_CONTRACTS: DeploymentContract[] = [
Expand Down
13 changes: 3 additions & 10 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 All @@ -65,7 +63,6 @@ export enum NetworkConfigFile {
OPSepolia = 'op.config.ts',
Base = 'base.config.ts',
BaseSepolia = 'base.config.ts',
Game7OrbitArbSepolia = 'g7.config.ts',
Game7Testnet = 'g7.config.ts',
}

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

Expand All @@ -107,8 +102,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 +129,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',
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TENANT } from '@constants/tenant';
import { DeploymentContract } from '../../types/deployment-type';
import { NETWORK_TYPE, NetworkName } from '../network';

const chain = NetworkName.Game7OrbitArbSepolia;
const chain = NetworkName.Game7Testnet;
const networkType = NETWORK_TYPE.TESTNET;

export const GAME7_ARB_SEPOLIA_CONTRACTS: DeploymentContract[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import {
DirectListingExtensionArgs,
EnglishAuctionsExtensionArgs,
MarketplaceArgs,
OffersExtensionArgs
} from "@constants/constructor-args";
OffersExtensionArgs,
} from '@constants/constructor-args';

const chain = NetworkName.Game7OrbitArbSepolia;
const chain = NetworkName.Game7Testnet;
const networkType = NETWORK_TYPE.TESTNET;

export const GAME7_ARB_SEPOLIA_CONTRACTS: DeploymentProxyContract[] = [
Expand Down
2 changes: 1 addition & 1 deletion deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default async function (

if (contract.verify) {
log('Waiting for contract to be confirmed...');
if (hre.network.name === NetworkName.Game7OrbitArbSepolia || hre.network.name === NetworkName.Game7Testnet) {
if (hre.network.name === NetworkName.Game7Testnet) {
// This L3 provided network requires only 1 confirmation
await achievoContract.deploymentTransaction()?.wait(1); // wait for 1 confirmation
} else {
Expand Down
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
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"deploy:mantle:sepolia": "pnpm compile && hardhat --config mantle.config.ts deploy --network mantleSepolia",
"deploy:polygon:mainnet": "pnpm compile && hardhat --config polygon.config.ts deploy --network polygon",
"deploy:polygon:mumbai": "pnpm compile && hardhat --config polygon.config.ts deploy --network polygonMumbai",
"deploy:g7:arb:sepolia": "pnpm compile && hardhat --config g7.config.ts deploy --network game7OrbitArbSepolia",
"deploy:g7:base:sepolia": "pnpm compile && hardhat --config g7.config.ts deploy --network game7OrbitBaseSepolia",
"deploy:g7:testnet": "pnpm compile && hardhat --config g7.config.ts deploy --network game7Testnet",
"test:foundry": "forge test -vvv",
"test": "REPORT_GAS=true hardhat --config hardhat.config.ts test test/hardhatTests/*.ts --network hardhat",
"test:ci": "hardhat --config hardhat.config.ts test test/hardhatTests/*.ts --network hardhat",
Expand Down
Loading

0 comments on commit b5e8bcb

Please sign in to comment.