stellar / soroban-example-dapp

End-to-End Example Soroban Dapp
Apache License 2.0
1.03k stars 835 forks source link

use @soroban-react npm library #66

Closed esteblock closed 1 year ago

esteblock commented 1 year ago

Following https://github.com/stellar/soroban-example-dapp/issues/65 and https://github.com/stellar/soroban-example-dapp/issues/63

I created the @soroban-react library based on this project's code, some commits https://github.com/stellar/soroban-example-dapp/pull/64 and insipred in the web3-react library See:

yarn add @soroban-react/core
yarn add @soroban-react/types
yarn add @soroban-react/freighter

I implemented it in this PR

Even if for now only the Freighter wallet is configured, the @soroban-react library allow to create more connectors very easily!

Both the library and the implementation need more work to do. But at least now the code is more clean and front end dev can focus on other things.

Please open issues in https://github.com/esteblock/soroban-react/ to contribute to the library

esteblock commented 1 year ago

Don't know why is failing the test, but I think is because of https://github.com/stellar/soroban-example-dapp/pull/61

esteblock commented 1 year ago

Great! Check passed! Can you check it @paulbellamy ? Thanks!