@polymarket/multi-endpoint-provider
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
{ | ||
"name": "@polymarket/multi-endpoint-provider", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "ethers.js Providers that try backup rpc endpoints when requests fail", | ||
@@ -19,3 +19,4 @@ "author": "Sam Hatem <sam.hatem17@gmail.com>", | ||
], | ||
"dependencies": { | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"@ethersproject/logger": "^5.1.0", | ||
@@ -27,4 +28,8 @@ "@ethersproject/networks": "^5.1.0", | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@ethersproject/logger": "^5.1.0", | ||
"@ethersproject/networks": "^5.1.0", | ||
"@ethersproject/properties": "^5.1.0", | ||
"@ethersproject/providers": "^5.1.2", | ||
"@ethersproject/web": "^5.1.0", | ||
"@ethersproject/bignumber": "^5.1.1", | ||
@@ -31,0 +36,0 @@ "@ethersproject/wallet": "^5.1.0", |
# @polymarket/multi-endpoint-provider | ||
ethers.js JsonRpcProvider and Web3Provider that try backup rpc endpoints when requests fail | ||
ethers.js JsonRpcProvider and Web3Provider that try backup rpc endpoints when requests fail. | ||
This package is expects ethers.js as a peer dependency so that different versions of ethers don't conflict. | ||
```typescript | ||
import { JsonRpcMultiProvider } from "@polymarket/multi-endpoint-provider"; | ||
const provider = new JsonRpcMultiProvider([ | ||
"https://polygon-mainnet.infura.io/v3/<infura_key>", | ||
"https://rpc-mainnet.maticvigil.com/v1/<matic_vigil_key>", | ||
], { | ||
network: 137, | ||
} | ||
``` |
36476
746
18
19
- Removed@ethersproject/logger@^5.1.0
- Removed@ethersproject/networks@^5.1.0
- Removed@ethersproject/properties@^5.1.0
- Removed@ethersproject/providers@^5.1.2
- Removed@ethersproject/web@^5.1.0