-
Notifications
You must be signed in to change notification settings - Fork 91
refactor: chain configurations #1056
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
dc410f6
WIP
alexandre-abrioux ed3b672
WIP
alexandre-abrioux 924a70e
fixes
alexandre-abrioux 4aee325
Merge branch 'master' into networks
alexandre-abrioux bae4830
fix ERC20 order
alexandre-abrioux e7ecfb9
fix indentation
alexandre-abrioux 8771389
fix tests
alexandre-abrioux d48802d
rollback changes
alexandre-abrioux 753fe99
fix tests
alexandre-abrioux 5bc4f96
fix tests
alexandre-abrioux 5363d3c
fix tests
alexandre-abrioux 256b6df
fix tests
alexandre-abrioux 21b92fc
rollback test
alexandre-abrioux 7bd75c7
fix tests
alexandre-abrioux b2ed93b
Merge branch 'master' into networks
alexandre-abrioux d6ae451
remove aurora from evm
alexandre-abrioux c7b3112
remove unused export
alexandre-abrioux e52eb10
fix missing export
alexandre-abrioux a446daf
change chaindefinition type name
alexandre-abrioux f454936
edit README
alexandre-abrioux 05ab7d5
refactor chain types to classes
alexandre-abrioux ddf73ac
fix test
alexandre-abrioux 94cf0e8
remove unusued utils
alexandre-abrioux c3d01ad
fix some more types
alexandre-abrioux ead5d9b
fix some more types
alexandre-abrioux a9a3029
fix test types
alexandre-abrioux 737aee6
fix test
alexandre-abrioux f44f683
fix near typing
alexandre-abrioux 87c5cd0
fix currencyManager
alexandre-abrioux 3d7c730
fix aggregators type
alexandre-abrioux 2b1fd4f
fix aggregators type
alexandre-abrioux 9baa2f8
fix chainlink test
alexandre-abrioux 100f709
rollback currency manager change
alexandre-abrioux 1c240b7
rollback addagregator change
alexandre-abrioux 729096e
fix ArtifactDeploymentInfo
alexandre-abrioux 97b3438
fix type for ERC20Currency
alexandre-abrioux 8f56b91
Merge branch 'master' into networks
alexandre-abrioux 3452fd1
add README
alexandre-abrioux 71f0809
Merge branch 'master' into networks
alexandre-abrioux 9c014a9
Merge remote-tracking branch 'origin/master' into networks
alexandre-abrioux 8d815f0
fix build
alexandre-abrioux 51030c1
fix missing type
alexandre-abrioux 0190ec2
Merge branch 'master' into networks
alexandre-abrioux 0b99099
fix type errors
alexandre-abrioux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import { CurrencyTypes, RequestLogicTypes } from '@requestnetwork/types'; | ||
| import { BtcChainDefinition } from '../../types'; | ||
| import { addNativeCurrenciesToChains, genericAssertChainSupported } from '../utils'; | ||
|
|
||
| import * as MainnetDefinition from './mainnet'; | ||
| import * as TestnetDefinition from './testnet'; | ||
|
|
||
| export const chains: Record<CurrencyTypes.BtcChainName, BtcChainDefinition> = { | ||
| mainnet: MainnetDefinition, | ||
| testnet: TestnetDefinition, | ||
| }; | ||
|
|
||
| export const chainNames = Object.keys(chains) as CurrencyTypes.BtcChainName[]; | ||
|
|
||
| // add native currencies | ||
| addNativeCurrenciesToChains(chains, RequestLogicTypes.CURRENCY.BTC); | ||
|
|
||
| /** | ||
| * Asserts if a specific chain is supported across BTC-type supported chains | ||
| * @param chainName | ||
| */ | ||
| export function assertChainSupported( | ||
| chainName: string, | ||
| ): asserts chainName is CurrencyTypes.BtcChainName { | ||
| genericAssertChainSupported<CurrencyTypes.BtcChainName>(chainName, chainNames); | ||
| } | ||
|
|
||
| export const getChainId = (chainName: CurrencyTypes.BtcChainName): string => | ||
| chains[chainName].chainId; | ||
|
|
||
| export const getChainName = (chainId: string): CurrencyTypes.BtcChainName | undefined => | ||
| chainNames.find((chainName) => chains[chainName].chainId === chainId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = '000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 44787; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 42161; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 421611; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 1313161555; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 1313161554; | ||
alexandre-abrioux marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedAvalancheERC20 } from '../../erc20/chains/avalanche'; | ||
|
|
||
| export const chainId = 43114; | ||
| export const currencies: TokenMap = { | ||
| ...supportedAvalancheERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedBSCERC20 } from '../../erc20/chains/bsc'; | ||
|
|
||
| export const chainId = 56; | ||
| export const currencies: TokenMap = { | ||
| ...supportedBSCERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedBSCTestERC20 } from '../../erc20/chains/bsctest'; | ||
|
|
||
| export const chainId = 97; | ||
| export const currencies: TokenMap = { | ||
| ...supportedBSCTestERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedCeloERC20 } from '../../erc20/chains/celo'; | ||
|
|
||
| export const chainId = 42220; | ||
| export const currencies: TokenMap = { | ||
| ...supportedCeloERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedFantomTokens } from '../../erc20/chains/fantom'; | ||
|
|
||
| export const chainId = 250; | ||
| export const currencies: TokenMap = { | ||
| ...supportedFantomTokens, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 122; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedGoerliERC20 } from '../../erc20/chains/goerli'; | ||
|
|
||
| export const chainId = 5; | ||
| export const currencies: TokenMap = { | ||
| ...supportedGoerliERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| import { CurrencyTypes, RequestLogicTypes } from '@requestnetwork/types'; | ||
| import { EvmChainDefinition } from '../../types'; | ||
| import { addNativeCurrenciesToChains, genericAssertChainSupported } from '../utils'; | ||
|
|
||
| import * as AlfajoresDefinition from './alfajores'; | ||
| import * as ArbitrumOneDefinition from './arbitrum-one'; | ||
| import * as ArbitrumRinkebyDefinition from './arbitrum-rinkeby'; | ||
| import * as AuroraDefinition from './aurora'; | ||
| import * as AuroraTestnetDefinition from './aurora-testnet'; | ||
| import * as AvalancheDefinition from './avalanche'; | ||
| import * as BscDefinition from './bsc'; | ||
| import * as BscTestDefinition from './bsctest'; | ||
| import * as CeloDefinition from './celo'; | ||
| import * as FantomDefinition from './fantom'; | ||
| import * as FuseDefinition from './fuse'; | ||
| import * as GoerliDefinition from './goerli'; | ||
| import * as MainnetDefinition from './mainnet'; | ||
| import * as MaticDefinition from './matic'; | ||
| import * as MoonbeamDefinition from './moonbeam'; | ||
| import * as MumbaiDefinition from './mumbai'; | ||
| import * as OptimismDefinition from './optimism'; | ||
| import * as PrivateDefinition from './private'; | ||
| import * as RinkebyDefinition from './rinkeby'; | ||
| import * as RoninDefinition from './ronin'; | ||
| import * as SokolDefinition from './sokol'; | ||
| import * as TombchainDefinition from './tombchain'; | ||
| import * as XDaiDefinition from './xdai'; | ||
|
|
||
| export const chains: Record<CurrencyTypes.EvmChainName, EvmChainDefinition> = { | ||
| alfajores: AlfajoresDefinition, | ||
| 'arbitrum-one': ArbitrumOneDefinition, | ||
| 'arbitrum-rinkeby': ArbitrumRinkebyDefinition, | ||
| aurora: AuroraDefinition, | ||
| 'aurora-testnet': AuroraTestnetDefinition, | ||
alexandre-abrioux marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| avalanche: AvalancheDefinition, | ||
| bsc: BscDefinition, | ||
| bsctest: BscTestDefinition, | ||
| celo: CeloDefinition, | ||
| fantom: FantomDefinition, | ||
| fuse: FuseDefinition, | ||
| goerli: GoerliDefinition, | ||
| mainnet: MainnetDefinition, | ||
| matic: MaticDefinition, | ||
| moonbeam: MoonbeamDefinition, | ||
| mumbai: MumbaiDefinition, | ||
| 'near-testnet': AuroraTestnetDefinition, | ||
| optimism: OptimismDefinition, | ||
| private: PrivateDefinition, | ||
| // FIXME: Rinkeby is deprecated | ||
| rinkeby: RinkebyDefinition, | ||
| ronin: RoninDefinition, | ||
| sokol: SokolDefinition, | ||
| tombchain: TombchainDefinition, | ||
| xdai: XDaiDefinition, | ||
| }; | ||
|
|
||
| export const chainNames = Object.keys(chains) as CurrencyTypes.EvmChainName[]; | ||
|
|
||
| // add native currencies | ||
| addNativeCurrenciesToChains(chains, RequestLogicTypes.CURRENCY.ETH); | ||
|
|
||
| /** | ||
| * Asserts if a specific chain is supported across EVM-type supported chains | ||
| * @param chainName | ||
| */ | ||
| export function assertChainSupported( | ||
alexandre-abrioux marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| chainName: string, | ||
| ): asserts chainName is CurrencyTypes.EvmChainName { | ||
| genericAssertChainSupported<CurrencyTypes.EvmChainName>(chainName, chainNames); | ||
| } | ||
|
|
||
| export const getChainId = (chainName: CurrencyTypes.EvmChainName): number => | ||
| chains[chainName].chainId; | ||
|
|
||
| export const getChainName = (chainId: number): CurrencyTypes.EvmChainName | undefined => | ||
| chainNames.find((chainName) => chains[chainName].chainId === chainId); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
alexandre-abrioux marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| import { supportedMainnetERC20 } from '../../erc20/chains/mainnet'; | ||
|
|
||
| export const chainId = 1; | ||
| export const currencies: TokenMap = { | ||
| ...supportedMainnetERC20, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedMaticERC20 } from '../../erc20/chains/matic'; | ||
|
|
||
| export const chainId = 137; | ||
| export const currencies: TokenMap = { | ||
| ...supportedMaticERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedMoonbeamERC20 } from '../../erc20/chains/moonbeam'; | ||
|
|
||
| export const chainId = 1284; | ||
| export const currencies: TokenMap = { | ||
| ...supportedMoonbeamERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 80001; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedOptimismERC20 } from '../../erc20/chains/optimism'; | ||
|
|
||
| export const chainId = 10; | ||
| export const currencies: TokenMap = { | ||
| ...supportedOptimismERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedRinkebyERC20 } from '../../erc20/chains/rinkeby'; | ||
| import { supportedRinkebyERC777 } from '../../erc777/chains/rinkeby'; | ||
|
|
||
| export const chainId = 4; | ||
| export const currencies: TokenMap = { | ||
| ...supportedRinkebyERC20, | ||
| ...supportedRinkebyERC777, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 2020; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 77; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const chainId = 6969; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { TokenMap } from '../../types'; | ||
| import { supportedXDAIERC20 } from '../../erc20/chains/xdai'; | ||
|
|
||
| export const chainId = 100; | ||
| export const currencies: TokenMap = { | ||
| ...supportedXDAIERC20, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import { CurrencyTypes } from '@requestnetwork/types'; | ||
| import * as EVM from './evm'; | ||
| import * as BTC from './btc'; | ||
|
|
||
| /** | ||
| * Asserts if a specific chain is supported across all supported chain types (EVM + BTC) | ||
| * @param chainName | ||
| */ | ||
| export function assertChainSupported( | ||
| chainName: string, | ||
| ): asserts chainName is CurrencyTypes.EvmChainName { | ||
| const chainSupported = [EVM, BTC].some((chainType) => { | ||
| try { | ||
| chainType.assertChainSupported(chainName); | ||
| return true; | ||
| } catch (e) { | ||
| return false; | ||
| } | ||
| }); | ||
| if (!chainSupported) { | ||
| throw new Error(`Unsupported chain ${chainName}`); | ||
| } | ||
| } | ||
|
|
||
| export { EVM, BTC }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { nativeCurrencies } from '../native'; | ||
| import { ChainDefinition, NamedNativeCurrency, TokenMap } from '../types'; | ||
| import { RequestLogicTypes } from '@requestnetwork/types'; | ||
|
|
||
| export function genericAssertChainSupported<T extends string>( | ||
| chainKey: string, | ||
| supportedChains: T[], | ||
| ): asserts chainKey is T { | ||
| if (!(supportedChains as string[]).includes(chainKey)) | ||
| throw new Error(`Unsupported chain ${chainKey}`); | ||
| } | ||
|
|
||
| export const addNativeCurrenciesToChains = ( | ||
alexandre-abrioux marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| chains: Record<string, ChainDefinition>, | ||
| currencyType: RequestLogicTypes.CURRENCY.ETH | RequestLogicTypes.CURRENCY.BTC, | ||
| ): void => { | ||
| const chainNames = Object.keys(chains); | ||
| chainNames.forEach((chainName) => { | ||
| const nativeCurrency = (nativeCurrencies[currencyType] as NamedNativeCurrency[]).find( | ||
| (currency) => currency.network === chainName, | ||
| ); | ||
| if (nativeCurrency) { | ||
| const chainCurrencies: TokenMap = chains[chainName].currencies || {}; | ||
| chainCurrencies.native = nativeCurrency; | ||
| chains[chainName].currencies = chainCurrencies; | ||
| } | ||
| }); | ||
| }; | ||
2 changes: 1 addition & 1 deletion
2
.../currency/src/erc20/networks/avalanche.ts → ...es/currency/src/erc20/chains/avalanche.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/currency/src/erc20/networks/bsc.ts → packages/currency/src/erc20/chains/bsc.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/currency/src/erc20/networks/bsctest.ts → ...ages/currency/src/erc20/chains/bsctest.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/currency/src/erc20/networks/celo.ts → packages/currency/src/erc20/chains/celo.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ges/currency/src/erc20/networks/fantom.ts → packages/currency/src/erc20/chains/fantom.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ges/currency/src/erc20/networks/goerli.ts → packages/currency/src/erc20/chains/goerli.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.