Contracts and tools to create a bridge between WAX tokens and an ERC-20 counterpart.
There are contracts available for both EOSIO chains and Ethereum, both should be deployed on their respective chains.
Transferring from EOSIO -> ETH requires depositing the tokens to the EOSIO contract with a standard transfer (no memo required),
then teleporting the tokens using the teleport
action.
Transferring from ETH -> EOSIO simply requires callint the teleport
function on the Ethereum contract.
Oracle accounts must be registered using the regoracle
(EOSIO) or regOracle
(Ethereum) functions.
Oracles can then call the received function on each contract when they see a transaction on the opposing chain.
- Copy config-example.js to config.js
- Change the configuration settings to match your tokens
- Start the oracle using the following command
CONFIG=./[path/to/config] oracle-eos|eth.js