trufflesuite / truffle-hdwallet-provider

HD Wallet-enabled Web3 provider
MIT License
400 stars 167 forks source link

Allow using any provider instead of sticking to HttpProvider #8

Open klntsky opened 6 years ago

klntsky commented 6 years ago

Allow using any provider instead of sticking to Web3.providers.HttpProvider.

The more generality is the better.

It can be done without breaking the current interface, i. e. constructor could check if the provider given is a string and wrap it into HttpProvider if so, otherwise assume it is a provider object and use it.

moodysalem commented 6 years ago

now that infura has a working websocket endpoint this is higher priority imo deploying to mainnet without websockets via infura is a huge pain because they use a load balancer