xdapp-book/projects/xmint
spacemandev 0e1425d27e buy token on sol <> evm working but evm sends 1/100 of the tokens back, unsure why 2022-09-26 03:41:00 -05:00
..
chains ITS ALIVE. solana purchase works 2022-09-25 16:12:19 -05:00
deployinfo adding gitkeep to keep deployinfo folder around 2022-08-14 19:28:54 -06:00
handlers buy token on sol <> evm working but evm sends 1/100 of the tokens back, unsure why 2022-09-26 03:41:00 -05:00
keypairs pushing to mvp 2022-08-23 13:06:01 -05:00
tests buy token on sol <> evm working but evm sends 1/100 of the tokens back, unsure why 2022-09-26 03:41:00 -05:00
.gitignore added xmint project 2022-08-13 09:22:14 -06:00
README.md showing to cega 2022-09-21 17:41:51 -05:00
interfaces.ts added xmint project 2022-08-13 09:22:14 -06:00
orchestrator.ts buy token on sol <> evm working but evm sends 1/100 of the tokens back, unsure why 2022-09-26 03:41:00 -05:00
package.json showing to cega 2022-09-21 17:41:51 -05:00
tsconfig.json added xmint project 2022-08-13 09:22:14 -06:00
xdapp.config.json added xmint project 2022-08-13 09:22:14 -06:00
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