Skip to content

Commit

Permalink
fix: network naming
Browse files Browse the repository at this point in the history
  • Loading branch information
leoslr committed Jan 25, 2022
1 parent fc7578e commit 75a0c88
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Expand Up @@ -25,7 +25,7 @@ export default class Erc20FeeProxyPaymentNetwork<
'bsc',
'xdai',
'fantom',
'arbitrum-testnet'
'arbitrum-rinkeby',
],
public supportedCurrencyType: RequestLogicTypes.CURRENCY = RequestLogicTypes.CURRENCY.ERC20,
) {
Expand Down
Expand Up @@ -13,7 +13,7 @@ const supportedNetworks = [
'fantom',
'bsctest',
'bsc',
'arbitrum-testnet'
'arbitrum-rinkeby',
];

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/currency/src/erc20/networks/index.ts
Expand Up @@ -7,7 +7,7 @@ import { supportedFantomTokens } from './fantom';
import { supportedBSCTestERC20 } from './bsctest';
import { supportedBSCERC20 } from './bsc';
import { supportedXDAIERC20 } from './xdai';
import { supportedArbitrumTestERC20 } from './arbitrumtest'
import { supportedArbitrumTestERC20 } from './arbitrumtest';

export const supportedNetworks: Record<string, TokenMap> = {
celo: supportedCeloERC20,
Expand All @@ -18,7 +18,7 @@ export const supportedNetworks: Record<string, TokenMap> = {
bsctest: supportedBSCTestERC20,
bsc: supportedBSCERC20,
xdai: supportedXDAIERC20,
'arbitrum-testnet': supportedArbitrumTestERC20,
'arbitrum-rinkeby': supportedArbitrumTestERC20,
};

export type { TokenMap };
2 changes: 1 addition & 1 deletion packages/currency/src/native.ts
Expand Up @@ -79,7 +79,7 @@ export const nativeCurrencies: Record<NativeCurrencyType, (NativeCurrency & { na
symbol: 'ARETH',
decimals: 18,
name: 'Arbitrum Testnet',
network: 'abitrum-testnet',
network: 'arbitrum-rinkeby',
},
],
[RequestLogicTypes.CURRENCY.BTC]: [
Expand Down
2 changes: 1 addition & 1 deletion packages/payment-detection/src/provider.ts
Expand Up @@ -39,7 +39,7 @@ const networkRpcs: Record<string, string> = {
bsctest: 'https://data-seed-prebsc-1-s1.binance.org:8545',
bsc: 'https://bsc-dataseed1.binance.org/',
xdai: 'https://rpc.xdaichain.com/',
'arbitrum-testnet': 'https://rinkeby.arbitrum.io/rpc'
'arbitrum-rinkeby': 'https://rinkeby.arbitrum.io/rpc',
};

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/payment-detection/src/thegraph/index.ts
Expand Up @@ -31,7 +31,7 @@ export const getTheGraphClient = (

// Note: temporary until TheGraph has been thoroughly tested
export const networkSupportsTheGraph = (network: string): boolean => {
return !['mainnet', 'rinkeby', 'private', 'fantom', 'arbitrum-testnet'].includes(network);
return !['mainnet', 'rinkeby', 'private', 'fantom', 'arbitrum-rinkeby'].includes(network);
};

export const networkSupportsTheGraphForNativePayments = (network: string): boolean => {
Expand Down
4 changes: 2 additions & 2 deletions packages/smart-contracts/hardhat.config.ts
Expand Up @@ -75,12 +75,12 @@ export default {
chainId: 250,
accounts,
},
arbitrum: {
'arbitrum-one': {
url: process.env.WEB3_PROVIDER_URL || 'https://arb1.arbitrum.io/rpc',
chainId: 42161,
accounts,
},
arbitrumtest: {
'arbitrum-rinkeby': {
url: process.env.WEB3_PROVIDER_URL || 'https://rinkeby.arbitrum.io/rpc',
chainId: 421611,
accounts,
Expand Down

0 comments on commit 75a0c88

Please sign in to comment.