@uniswap/token-list-bridge-utils 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -80,13 +80,14 @@ or
80
80
 
81
81
  `npm i @uniswap/token-list-bridge-utils`
82
82
 
83
- ### Create .env file
84
- - Create a .env file in your package's root directory to set `MAINNET_RPC` value
83
+ ### Create .env file (Optional)
84
+ - By default, the library uses `https://cloudflare-eth.com/` as the MAINNET_RPC env variable value required by arbitrum-sdk. You can override this value by creating a .env file in your root directory and setting a value for MAINNET_RPC.
85
+
86
+ - Sample .env file contents:
87
+
88
+ `MAINNET_RPC="https://mainnet.infura.io/v3/<infura key>"`
89
+ - Note: If this is not set correctly, the library will throw a NETWORK_ERROR error code.
85
90
 
86
- - Sample .env file content:
87
- `MAINNET_RPC="https://mainnet.infura.io/v3/<infura key>"`
88
- - You can also use a no-key RPC like `https://cloudflare-eth.com/` (see [ethereumnodes.com](https://ethereumnodes.com/))
89
- - Note: If this is not set correctly, library will throw a NETWORK_ERROR error code.
90
91
  ### Call Function
91
92
  #### CommonJS
92
93
  `const bridge_utils = require('@uniswap/token-list-bridge-utils');`
@@ -103,7 +104,6 @@ or
103
104
 
104
105
  `yarn test`
105
106
 
106
-
107
107
  ## DTS User Guide
108
108
 
109
109
  DTS scaffolds your new library inside `/src`.
package/package.json CHANGED
@@ -57,7 +57,7 @@
57
57
  }
58
58
  ],
59
59
  "typings": "dist/index.d.ts",
60
- "version": "1.0.5",
60
+ "version": "1.0.6",
61
61
  "dependencies": {
62
62
  "@arbitrum/sdk": "^1.1.4",
63
63
  "@uniswap/sdk-core": "^3.0.1",
package/src/index.test.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { TokenInfo } from '@uniswap/token-lists'
2
2
  import { chainify, chainifyTokenList, mergeTokenLists } from '.'
3
3
  import { ChainId } from './constants/chainId'
4
- import { ArbitrumMappingProvider } from './providers/ArbitrumMappingProvider'
5
4
  import {
6
5
  DAI,
7
6
  DAI_ARBITRUM_ONE,
@@ -237,4 +236,4 @@ describe(chainify, () => {
237
236
  },
238
237
  ])
239
238
  })
240
- })
239
+ })