Skip to content

Commit

Permalink
update config for sepolia support (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
qrtp authored Nov 4, 2024
1 parent dd4eccd commit 46c317b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unstoppabledomains/config",
"version": "0.0.14",
"version": "0.0.16",
"private": true,
"description": "Configuration variables for Unstoppable Domains environments",
"homepage": "https://github.com/unstoppabledomains/domain-profiles#readme",
Expand Down
10 changes: 5 additions & 5 deletions packages/config/src/env/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export default function getDefaultConfig(): Config {
DISABLE_CONTRACTS_CACHE: true,
},
ETH: {
CHAIN_ID: 5,
NETWORK_NAME: 'goerli', // testnet
JSON_RPC_API_URL: `https://goerli.infura.io/v3/a58ebb0c76a64c149e35145f85f82382`,
CHAIN_ID: 11155111,
NETWORK_NAME: 'sepolia', // testnet
JSON_RPC_API_URL: `https://sepolia.infura.io/v3/467fd78247874d7e87d34c04fdd09bbb`,
BLOCK_EXPLORER_NAME: 'oklink',
BLOCK_EXPLORER_BASE_URL: 'https://www.oklink.com/sepolia-test',
BLOCK_EXPLORER_TX_URL: 'https://www.oklink.com/sepolia-test/tx/',
Expand All @@ -32,7 +32,7 @@ export default function getDefaultConfig(): Config {
CHAIN_ID: 80002,
NETWORK_NAME: 'amoy', // testnet
JSON_RPC_API_URL:
'https://polygon-amoy.infura.io/v3/a58ebb0c76a64c149e35145f85f82382',
'https://polygon-amoy.infura.io/v3/467fd78247874d7e87d34c04fdd09bbb',
BLOCK_EXPLORER_NAME: 'oklink',
BLOCK_EXPLORER_BASE_URL: 'https://www.oklink.com/amoy',
BLOCK_EXPLORER_TX_URL: 'https://www.oklink.com/amoy/tx/',
Expand All @@ -44,7 +44,7 @@ export default function getDefaultConfig(): Config {
CHAIN_ID: 8453,
NETWORK_NAME: 'base',
JSON_RPC_API_URL:
'https://base-mainnet.infura.io/v3/a58ebb0c76a64c149e35145f85f82382',
'https://base-mainnet.infura.io/v3/467fd78247874d7e87d34c04fdd09bbb',
BLOCK_EXPLORER_TX_URL: 'https://www.oklink.com/base/tx/',
BLOCK_EXPLORER_NAME: 'oklink',
BLOCK_EXPLORER_BASE_URL: 'https://www.oklink.com/base',
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/env/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function getProductionConfig(): ConfigOverride {
CHAIN_ID: 1,
NETWORK_NAME: 'mainnet',
JSON_RPC_API_URL:
'https://mainnet.infura.io/v3/4458cf4d1689497b9a38b1d6bbf05e78',
'https://mainnet.infura.io/v3/467fd78247874d7e87d34c04fdd09bbb',
BLOCK_EXPLORER_BASE_URL: 'https://etherscan.io',
PROXY_READER_ADDRESS: '0xc3C2BAB5e3e52DBF311b2aAcEf2e40344f19494E',
OPEN_SEA_BASE_URL: 'https://opensea.io/assets/',
Expand All @@ -30,7 +30,7 @@ export default function getProductionConfig(): ConfigOverride {
CHAIN_ID: 137,
NETWORK_NAME: 'polygon-mainnet',
JSON_RPC_API_URL:
'https://polygon-mainnet.infura.io/v3/4458cf4d1689497b9a38b1d6bbf05e78',
'https://polygon-mainnet.infura.io/v3/467fd78247874d7e87d34c04fdd09bbb',
BLOCK_EXPLORER_BASE_URL: 'https://polygonscan.com',
PROXY_READER_ADDRESS: '0xA3f32c8cd786dc089Bd1fC175F2707223aeE5d00',
OPEN_SEA_BASE_URL: 'https://opensea.io/assets/matic/',
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/env/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export type ZilliqaBlockchainConfig = BaseBlockchainConfig & {
};

export type EthereumBlockchainConfig = BaseBlockchainConfig & {
CHAIN_ID: 5 | 1 | 1337;
NETWORK_NAME: 'goerli' | 'mainnet' | 'local';
CHAIN_ID: 5 | 1 | 1337 | 11155111;
NETWORK_NAME: 'goerli' | 'sepolia' | 'mainnet' | 'local';
PROXY_READER_ADDRESS: string;
ENS_CONTRACT_ADDRESS: string;
OPEN_SEA_BASE_URL:
Expand Down
1 change: 1 addition & 0 deletions packages/ui-components/src/lib/types/nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {SerializedDomainMarket} from './domain';
export enum Network {
Mainnet = '1',
Goerli = '5',
Sepolia = '11155111',
Polygon = '137',
Amoy = '80002',
Binance = '56',
Expand Down

0 comments on commit 46c317b

Please sign in to comment.