Skip to content

KevinTuncer/alienteleport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alien Teleport

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

Versions

The version numbers are necessary to make all teleports compatible with custom frontends. This project is called version 1 and is a backwards compatible fork of the origin Alien Worlds teleport. The project of SavAct is a fork of version 1 and is called version 2. Each fork brings up a lot of new features and reduces the running costs.

Version 2 is not backwards compatible, but recommended for new projects because it offers the most advantages, is fully tested and already used by real world applications.

Contracts

There are contracts available for both EOSIO chains and Ethereum, both should be deployed on their respective chains. After deploying the EOSIO contract call the ini function to initialize it. Each ETH chain must be registered on the EOSIO contract with the addchain function.

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.

You can use the SavAct WebApp as frontend by entering your EOSIO contract and network. For direct selection add your settings to the URL https://savact.app/#/trx/teleport?bridge=other.worlds&eosio=WAX&eth=BSC

The app is only compatible with the EOSIO teleport contract of version 1 and higher. For more information see its README.md

To add your teleport in a select box of the SavAct WebApp, feel free to request the admins of https://t.me/SavActGroup

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

ETH/WAX token bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 45.3%
  • TypeScript 18.0%
  • Vue 11.7%
  • C++ 10.4%
  • SCSS 10.3%
  • Solidity 4.1%
  • HTML 0.2%