unifiprotocol / unifi-sdk

https://shell.unifiprotocol.com/
2 stars 3 forks source link

feat: add ws support #49

Closed clostao closed 2 years ago

clostao commented 2 years ago

Web3BaseAdapter makes use of an underneath web3-compatible provider through which the requests are being sent. Formerly, we used ethers.providers.StaticJsonRpcProvider as the adapter's provider.

It's not a big change since the interfaces of both are equal and the operations are the same with the sole difference of the communication protocol.

I tested for Web3BaseConnector using a ws node:

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4fd7857
Status: ✅  Deploy successful!
Preview URL: https://bcfa98f7.unifi-ui-sdk.pages.dev
Branch Preview URL: https://feat-ws-support.unifi-ui-sdk.pages.dev

View logs