Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eth-provider

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-provider - npm Package Compare versions

Comparing version 0.13.2 to 0.13.3

2

package.json
{
"name": "eth-provider",
"version": "0.13.2",
"version": "0.13.3",
"description": "A Universal Ethereum Provider",

@@ -5,0 +5,0 @@ "browser": "browser.js",

@@ -18,7 +18,7 @@ module.exports = (options = {}) => {

infuraArbitrum: [`wss://arbitrum-mainnet.infura.io/ws/v3/${options.infuraId}`, `https://arbitrum-mainnet.infura.io/v3/${options.infuraId}`],
infuraOptimism: [`wss://optimism-mainnet.infura.io/ws/v3/${options.infuraId}`, `https://optimism-mainnet.infura.io/v3/${options.infuraId}`],
idChain: ['wss://idchain.one/ws/'],
gnosis: ['https://rpc.gnosischain.com '],
infuraOptimism: [`https://optimism-mainnet.infura.io/v3/${options.infuraId}`],
infuraSepolia: [`wss://sepolia.infura.io/ws/v3/${options.infuraId}`, `https://sepolia.infura.io/ws/v3/${options.infuraId}`],
gnosis: ['https://rpc.gnosischain.com'],
optimism: ['https://mainnet.optimism.io']
}
}

@@ -154,8 +154,2 @@ /* globals it describe */

describe('Görli', () => {
// it('Prylabs HTTP Endpoint: https://goerli.prylabs.net', async () => {
// const pro = provider(['https://goerli.prylabs.net'])
// assert(await pro.request({ method: 'eth_chainId' }) === '0x5')
// pro.close()
// }).timeout(45 * 1000)
it('Mudit HTTP Endpoint: https://rpc.goerli.mudit.blog', async () => {

@@ -167,8 +161,2 @@ const pro = provider(['https://rpc.goerli.mudit.blog'])

// it('Slockit HTTP Endpoint: https://rpc.slock.it/goerli', async () => {
// const pro = provider(['https://rpc.slock.it/goerli'])
// assert(await pro.request({ method: 'eth_chainId' }) === '0x5')
// pro.close()
// }).timeout(45 * 1000)
it('Infura HTTP Endpoint: https://goerli.infura.io/v3/786ade30f36244469480aa5c2bf0743b', async () => {

@@ -249,10 +237,2 @@ const pro = provider(['https://goerli.infura.io/v3/786ade30f36244469480aa5c2bf0743b'])

describe('IDChain', () => {
it('Preset Endpoint: \'idChain\'', async () => {
const pro = provider(['idChain'])
assert(await pro.request({ method: 'eth_chainId' }) === '0x4a')
pro.close()
}).timeout(45 * 1000)
})
describe('Gnosis', () => {

@@ -300,2 +280,60 @@ it('Gnosis RPC Endpoint: https://rpc.gnosischain.com ', async () => {

})
describe('Rinkeby', () => {
it('Infura HTTP Endpoint: https://rinkeby.infura.io/v3/786ade30f36244469480aa5c2bf0743b', async () => {
const pro = provider(['https://rinkeby.infura.io/v3/786ade30f36244469480aa5c2bf0743b'])
assert(await pro.request({ method: 'eth_chainId' }) === '0x4')
pro.close()
}).timeout(45 * 1000)
it('Infura WS Endpoint: wss://rinkeby.infura.io/ws/v3/786ade30f36244469480aa5c2bf0743b', async () => {
const pro = provider(['wss://rinkeby.infura.io/ws/v3/786ade30f36244469480aa5c2bf0743b'])
assert(await pro.request({ method: 'eth_chainId' }) === '0x4')
pro.close()
}).timeout(45 * 1000)
it('Infura Preset Endpoints: \'infuraRinkeby\'', async () => {
const pro = provider('infuraRinkeby', { infuraId: '786ade30f36244469480aa5c2bf0743b' })
assert(await pro.request({ method: 'eth_chainId' }) === '0x4')
pro.close()
}).timeout(45 * 1000)
it('Alchemy HTTP Endpoint: https://eth-rinkeby.alchemyapi.io/v2/S0qILA0tYj3fRgZM9p6fUKx1uC5cDNwn', async () => {
const pro = provider(['https://eth-rinkeby.alchemyapi.io/v2/S0qILA0tYj3fRgZM9p6fUKx1uC5cDNwn'])
assert(await pro.request({ method: 'eth_chainId' }) === '0x4')
pro.close()
}).timeout(45 * 1000)
it('Alchemy WS Endpoint: wss://eth-rinkeby.ws.alchemyapi.io/v2/S0qILA0tYj3fRgZM9p6fUKx1uC5cDNwn', async () => {
const pro = provider(['wss://eth-rinkeby.ws.alchemyapi.io/v2/S0qILA0tYj3fRgZM9p6fUKx1uC5cDNwn'])
assert(await pro.request({ method: 'eth_chainId' }) === '0x4')
pro.close()
}).timeout(45 * 1000)
it('Alchemy Preset Endpoints: \'alchemyRinkeby\'', async () => {
const pro = provider('alchemyRinkeby', { alchemyId: 'S0qILA0tYj3fRgZM9p6fUKx1uC5cDNwn' })
assert(await pro.request({ method: 'eth_chainId' }) === '0x4')
pro.close()
}).timeout(45 * 1000)
})
describe('Sepolia', () => {
it('Infura HTTP Endpoint: https://sepolia.infura.io/v3/786ade30f36244469480aa5c2bf0743b', async () => {
const pro = provider(['https://sepolia.infura.io/v3/786ade30f36244469480aa5c2bf0743b'])
assert(await pro.request({ method: 'eth_chainId' }) === '0xaa36a7')
pro.close()
}).timeout(45 * 1000)
it('Infura WS Endpoint: wss://sepolia.infura.io/ws/v3/786ade30f36244469480aa5c2bf0743b', async () => {
const pro = provider(['wss://sepolia.infura.io/ws/v3/786ade30f36244469480aa5c2bf0743b'])
assert(await pro.request({ method: 'eth_chainId' }) === '0xaa36a7')
pro.close()
}).timeout(45 * 1000)
it('Infura Preset Endpoints: \'infuraSepolia\'', async () => {
const pro = provider('infuraSepolia', { infuraId: '786ade30f36244469480aa5c2bf0743b' })
assert(await pro.request({ method: 'eth_chainId' }) === '0xaa36a7')
pro.close()
}).timeout(45 * 1000)
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc