simolus3 / web3dart

Ethereum library, written in Dart.
MIT License
442 stars 273 forks source link

How web support is added for web3dart ? #194

Closed vibhavkarthik03 closed 3 years ago

vibhavkarthik03 commented 3 years ago

Hi, I can see you have used js package for javascript interoperability.

Can you elaborate how is it done ? Are you in anyway reaching out to a web3 javascript library to get this done ?

simolus3 commented 3 years ago

Are you in anyway reaching out to a web3 javascript library to get this done ?

No. We only use the Ethereum Provider API as specified by EIP-1193. A small wrapper around that API is declared in this file. As you already found out, we're using package:js for this sort of interop.

Then, this file provides a more high-level wrapper around the low-level interop classes.