xdapp-book/projects/xmint
spacemandev 302d5bd65c complete p3 working 2022-09-23 11:06:00 -05:00
..
chains showing to cega 2022-09-21 17:41:51 -05:00
deployinfo
handlers complete p3 working 2022-09-23 11:06:00 -05:00
keypairs
tests showing to cega 2022-09-21 17:41:51 -05:00
.gitignore
README.md showing to cega 2022-09-21 17:41:51 -05:00
interfaces.ts
orchestrator.ts
package.json showing to cega 2022-09-21 17:41:51 -05:00
tsconfig.json
xdapp.config.json
yarn.lock showing to cega 2022-09-21 17:41:51 -05:00

README.md

Example Project: xMint

Summary

xMint is a sample project that uses Ultra Light Clients and Contract Controlled Transfers to allow users to to pay in their native currency to receive tokens from a foreign chain. It does this by bridging the native currency over to the foreign chain, then purchasing the foreign tokens, and bridging the foreign tokens back to their native chain wallet.

Behind this simple transaction is a set of complex Wormhole interactions.

Setup

Contract Deploy

Register App

Calls

Buy Token

Sell Token

Balance