0.5.0 • Published 1 day ago
@redstone-finance/rpc-providers v0.5.0
Magic providers, compatible with ethers.Provider interface
Tested only with JsonRpcProviders
ProviderWithFallback
- If the provider fails on some operation new provider is elected.
- If all providers fail on the same operation error is thrown.
- When we switch to the next provider, all operations are executed by it till it fails.
- Providers are elected by the sequence given in array. If array ends we start from the beginning.
ProviderWithAgreement
- Works like `ProviderWithFallback, with an exception for two methods.
getBlockNumber
asks all providers for blockNumber and then picks (default is median)call
asks all providers for result- if at least
N
answers are the same, it returns call result - ignores all errors
- as soon as it will receive
N
matching responses returns. (doesn't wait for the rest of the providers to finish)
- if at least
0.5.0-alpha.0
1 day ago
0.5.0
1 day ago
0.4.0-alpha.0
1 month ago
0.4.0
1 month ago
0.3.6
6 months ago
0.3.5
6 months ago
0.3.4
7 months ago
0.3.3
7 months ago
0.3.3-alpha.0
8 months ago