Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Export common ABIs which are already in source code #178

Open
itsmnthn opened this issue Aug 1, 2024 · 3 comments
Open

Export common ABIs which are already in source code #178

itsmnthn opened this issue Aug 1, 2024 · 3 comments

Comments

@itsmnthn
Copy link

itsmnthn commented Aug 1, 2024

  • I'm trying surf for the first time and it is unclear as beginner to how to use aptos-wallet-adapter with surf?
  • Also I see COIN_ABI in source code and used in examples in readme but how do I import them to use? I know it is not gud idea to include ABIs with this but I think common ABIs can be exported along with this package to make it easy to get started for common features like fetching balances and transferring tokens.
@itsmnthn
Copy link
Author

itsmnthn commented Aug 1, 2024

In example there is transfer example which uses account from private key but that will not be the case in production dapp, its going to be signer(account) from connected wallet.

It would be helpful to have such example.

@SamuelQZQ
Copy link
Contributor

@itsmnthn please look at this file about how to use with wallet: https://github.com/ThalaLabs/surf/blob/main/example/app/page.tsx

@SamuelQZQ
Copy link
Contributor

@itsmnthn I agree, we should export common ABIs from this package. It's also mentioned in #8. I will add it, maybe this week.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants