Skip to content
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

Revert "Added option to use MulticallProvider instead of StaticJsonRpcProvider when using custom provider" #153

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
302 changes: 133 additions & 169 deletions README.md

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions __tests__/ethers.custom-rpcs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { providers as multicall } from '@0xsequence/multicall'
import {
AlchemyProvider,
AnkrProvider,
Expand All @@ -22,7 +21,6 @@ import {
EthereumMoralisProvider,
getBinanceDefaultProvider,
getFallbackProvider,
getMulticallProvider,
getNetworkDefaultProvider,
MoralisProvider,
} from '../src/ethers.custom-rpcs'
Expand Down Expand Up @@ -219,19 +217,6 @@ describe('Ethers Custom RPC', () => {
})
})

describe('getMulticallProvider', () => {
it('should return a instance of MulticallProvider', async () => {
const fallbackProvider = await getFallbackProvider([
new CloudflareProvider(MAINNET_NETWORK),
new InfuraProvider(MAINNET_NETWORK),
])

const provider = await getMulticallProvider(fallbackProvider)

expect(provider).toBeInstanceOf(multicall.MulticallProvider)
})
})

describe('getBinanceDefaultProvider', () => {
it('should return a instance of FallbackProvider with BscscanProvider and BinancePocketProvider', async () => {
const provider = await getBinanceDefaultProvider(BINANCE_TESTNET_NETWORK)
Expand Down
Loading