Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: added tezos-provider dapp example #697

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

dianasavvatina
Copy link

@dianasavvatina dianasavvatina commented Sep 5, 2024

Added an example of dApp for Tezos based on TezosProvider.

It supports the following operations:

  • get accounts
  • sign message
  • transaction
  • delegation, undelegation
  • origination
  • contract call
  • stake, unstake, finalize unstake
  • increase paid storage

Currently, TezosProvider is library by trilitech: https://github.com/trilitech/tezos-provider

Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
vue-web-examples ⬜️ Ignored (Inspect) Visit Preview Jan 6, 2025 1:30pm

Copy link

vercel bot commented Sep 5, 2024

@dianasavvatina is attempting to deploy a commit to the WalletConnect Team on Vercel.

A member of the Team first needs to authorize it.

@rtomas
Copy link
Contributor

rtomas commented Nov 28, 2024

hi @dianasavvatina, can you guide me on how to test it ?

trust: only mainnet.
temple wallet: didn't work
kukai sallet: didn't work

also would you like using the same pattern as other examples for the directory ?
universal-provider-tezos

@dianasavvatina
Copy link
Author

hi @dianasavvatina, can you guide me on how to test it ?

trust: only mainnet. temple wallet: didn't work kukai sallet: didn't work

also would you like using the same pattern as other examples for the directory ? universal-provider-tezos

Tezos blockchain is supported by several wallets but only one of them currently supports WalletConnect. It's Trust and it has a partial support for WalletConnect.

I'm working now on Umami web to support WalletConnect: trilitech/umami-v2#2029
It's under review. I used Wallet provided by the WalletConnect to test the dapp example built with TezosProvider:

I can move the dapp to universal-provider-tezos if needed

@dianasavvatina
Copy link
Author

hi @dianasavvatina, can you guide me on how to test it ?
trust: only mainnet. temple wallet: didn't work kukai wallet: didn't work

@rtomas , I think that Trust probably doesn;'t work with it because it was designed to work with the old version of the example wallet. The problem is that the example wallet supports tezos:testnet as a test network though it's a bug:
https://github.com/reown-com/web-examples/blob/main/advanced/wallets/react-wallet-v2/src/data/TezosData.ts#L31

export const TEZOS_TEST_CHAINS: Record<string, ChainMetadata> = {
  'tezos:testnet': {
    chainId: 'testnet',
    name: 'Tezos Testnet',
    logo: '/chain-logos/tezos.svg',
    rgb: '44, 125, 247',
    rpc: 'https://ghostnet.ecadinfra.com',
    namespace: 'tezos'
  }
}

But Tezos has ghostnet as a testnet. See here: https://docs.reown.com/cloud/chains/chain-list
I fixed the wallet in #694
It's not merged yet but it will be compatible with the reference docs.
See also CAIP-2 for Tezos, here

@rtomas
Copy link
Contributor

rtomas commented Dec 3, 2024

I can move the dapp to universal-provider-tezos if needed

please, move it to that directory.

@dianasavvatina
Copy link
Author

Example: https://github.com/user-attachments/assets/5fee89dd-dc11-48a9-a6cc-1e000e4e28f8

dApp: this PR

wallet: Umami v2, web, PR#2029
This adaptation is incomplete. Umami doesn't support

  • increase paid storage
  • sign
  • get accounts

@dianasavvatina
Copy link
Author

@rtomas as you requested:
Second example: https://github.com/user-attachments/assets/25a8a03f-6c51-40d3-b7af-d604a845d9d0

dApp - this PR

wallet - PR#694
it's also waiting for your review

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

Successfully merging this pull request may close these issues.

2 participants