waxp2edev0101 / AlienTeleport-EOS-ETH-Bridge-System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alien Teleport

Contracts and tools to create a bridge between WAX tokens and an ERC-20 counterpart.

Contracts

There are contracts available for both EOSIO chains and Ethereum, both should be deployed on their respective chains.

Process

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.

Oracles

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.

Setup and running

  1. Copy config-example.js to config.js
  2. Change the configuration settings to match your tokens
  3. Start the oracle using the following command CONFIG=./[path/to/config] oracle-eos|eth.js

About

License:MIT License


Languages

Language:JavaScript 34.7%Language:Vue 20.2%Language:SCSS 17.8%Language:C++ 12.3%Language:TypeScript 7.9%Language:Solidity 6.7%Language:HTML 0.4%