xdapp-book/projects/evm-tokenbridge
spacemandev d61c6e921b added wormhole-local-validator and evm messenger docs 2022-06-30 23:14:08 -05:00
..
chains added tokenbridge docs and project 2022-06-29 23:54:33 -05:00
tests added tokenbridge code 2022-06-28 23:27:31 -05:00
.gitignore added tokenbridge code 2022-06-28 23:27:31 -05:00
README.md added wormhole-local-validator and evm messenger docs 2022-06-30 23:14:08 -05:00
package-lock.json added tokenbridge code 2022-06-28 23:27:31 -05:00
package.json added wormhole-local-validator and evm messenger docs 2022-06-30 23:14:08 -05:00
treasury.js tokenbridge example works 2022-06-29 10:20:06 -05:00
xdapp.config.json added tokenbridge code 2022-06-28 23:27:31 -05:00

README.md

EVM Token Bridge

Attests and send tokens from one EVM contract to another on another EVM chain.

Dependencies

This project uses Foundry to compile and deploy EVM contracts. You can find install instructions at https://getfoundry.sh

The javascript dependencies can be installed via npm install in this folder.

Test Scripts

You can run the basic test with npm run test. This will:

  • Deploy a Treasury contract
  • Attest the TKN ERC20 token from Chain0 (ETH) to Chain1 (BSC)
  • Mint 100 TKN tokens to the Treasury on ETH
  • Approve & Transfer 50 TKN tokens from the treasury on ETH to the Treasury on BSC.