Skip to content

Commit

Permalink
v9.5.2: update rpc list
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Sep 10, 2024
1 parent 3a177f8 commit 48b303f
Show file tree
Hide file tree
Showing 22 changed files with 67 additions and 120 deletions.
45 changes: 22 additions & 23 deletions dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 22 additions & 23 deletions dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-blockchains",
"moduleName": "Web3Blockchains",
"version": "9.5.1",
"version": "9.5.2",
"description": "JavaScript library containing aggregated information and abstractions for web3 blockchains.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/blockchains/arbitrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default {
if(token) { return `https://arbiscan.io/token/${token}` }
if(address) { return `https://arbiscan.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://arbitrum.blockpi.network/v1/rpc/public',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://arb-mainnet.g.alchemy.com/v2/demo',
'https://arbitrum-one.publicnode.com',
'https://endpoints.omniatech.io/v1/arbitrum/one/public'
],
Expand Down
7 changes: 3 additions & 4 deletions src/blockchains/avalanche.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ export default {
if(token) { return `https://snowtrace.io/token/${token}` }
if(address) { return `https://snowtrace.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://avalanche.public-rpc.com',
'https://avalanche.blockpi.network/v1/rpc/public',
'https://avax.meowrpc.com'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://avalanche-c-chain-rpc.publicnode.com',
'https://endpoints.omniatech.io/v1/avax/mainnet/public',
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "AVAX", "name": "Avalanche", "decimals": 18, "logo": currencyLogo, "type": "NATIVE"},
Expand Down
8 changes: 4 additions & 4 deletions src/blockchains/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default {
if(token) { return `https://basescan.org/token/${token}` }
if(address) { return `https://basescan.org/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://base.blockpi.network/v1/rpc/public',
'https://base.meowrpc.com',
'https://mainnet.base.org'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://mainnet.base.org',
'https://base.llamarpc.com',
'https://base.rpc.subquery.network/public'
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"},
Expand Down
2 changes: 1 addition & 1 deletion src/blockchains/bsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
if(token) { return `https://bscscan.com/token/${token}` }
if(address) { return `https://bscscan.com/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://bsc-dataseed.binance.org',
'https://bsc-dataseed1.ninicoin.io',
'https://bsc-dataseed3.defibit.io'
Expand Down
4 changes: 2 additions & 2 deletions src/blockchains/ethereum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/blockchains/fantom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/blockchains/gnosis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/blockchains/optimism.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/blockchains/polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export default {
if(token) { return `https://polygonscan.com/token/${token}` }
if(address) { return `https://polygonscan.com/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://polygon-rpc.com',
'https://polygon.meowrpc.com',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://polygon.rpc.blxrbdn.com',
'https://polygon.llamarpc.com',
'https://polygon-bor.publicnode.com'
],
tokens: [ // only major tokens
Expand Down
5 changes: 0 additions & 5 deletions tests/units/blockchains/arbitrum.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions tests/units/blockchains/avalanche.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ describe('avalanche', () => {
expect(blockchain.wrapped.logo).toEqual("https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7/logo.png");
expect(blockchain.stables.usd).toEqual(['0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E']);
expect(blockchain.explorer).toEqual('https://snowtrace.io');
expect(blockchain.endpoints).toEqual([
'https://avalanche.public-rpc.com',
'https://avalanche.blockpi.network/v1/rpc/public',
'https://avax.meowrpc.com'
]);
expect(blockchain.explorerUrlFor({
transaction: { id: '0x1907a9841e7abbc08e63586e5c9abbf7d0d42c5dc4a371304f439e2f949f51f' }
})).toEqual('https://snowtrace.io/tx/0x1907a9841e7abbc08e63586e5c9abbf7d0d42c5dc4a371304f439e2f949f51f')
Expand Down
5 changes: 0 additions & 5 deletions tests/units/blockchains/base.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions tests/units/blockchains/bsc.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ describe('bsc', () => {
expect(blockchain.wrapped.address).toEqual('0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c');
expect(blockchain.stables.usd).toEqual(['0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', '0x55d398326f99059fF775485246999027B3197955']);
expect(blockchain.explorer).toEqual('https://bscscan.com');
expect(blockchain.endpoints).toEqual([
'https://bsc-dataseed.binance.org',
'https://bsc-dataseed1.ninicoin.io',
'https://bsc-dataseed3.defibit.io'
]);
expect(blockchain.explorerUrlFor({
transaction: { id: '0x1907a9841e7abbc08e63586e5c9abbf7d0d42c5dc4a371304f439e2f949f51f' }
})).toEqual('https://bscscan.com/tx/0x1907a9841e7abbc08e63586e5c9abbf7d0d42c5dc4a371304f439e2f949f51f')
Expand Down
Loading

0 comments on commit 48b303f

Please sign in to comment.