Git Product home page Git Product logo

equitytrustbankxfether0xlba0ethplorer / token-canal-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bnb-chain/token-canal-project

0.0 0.0 0.0 1.56 MB

Project Token Canal is a new initiative, similar to many existing ‘wrapped coins’ in the crypto community, Binance.com, the largest crypto token vault and exchange, will stand to issue and bind more token assets on Binance Chain, Binance Smart Chain and Ethereum, and guarantee the conversion from and to the original tokens with our own credibility and infrastructure.

License: Apache License 2.0

JavaScript 22.57% Solidity 77.43%

token-canal-project's Introduction

Token Canal Project

Project Token Canal is a new initiative, similar to many existing ‘wrapped coins’ in the crypto community, Binance.com, the largest crypto token vault and exchange, will stand to issue and bind more token assets on Binance Chain, Binance Smart Chain and Ethereum, and guarantee the conversion from and to the original tokens with our own credibility and infrastructure.

For example, Binance.com will support BTC, BTC BEP2, and BTC BEP20 deposits and withdrawals, as they are virtually the same token on multiple networks. Moreover, other convenient methods to facilitate conversion of these tokens outside of Binance.com will be introduced later, as Project Token Canal will be composed of several facilitations to enable the one-stop ecosystem. After some discussion, all current validators of Binance Chain have also agreed to support listing tokens via Project Token Canal to provide more options to Binance DEX users.

Contracts

  1. BinancePeggyTokenFactory.sol. It is a factory contract to help deploy AdminUpgradeabilityProxy and init the contract.
  2. AdminUpgradeabilityProxy.sol. It is an upgradable proxy contract with admin, and delegate request to it's implementation contract.
  3. BinancePeggyToken.sol. It is the implementation contract of Binance Peg token.

Audit

Audit Report

Pause & Unpause

Owner of AdminUpgradeabilityProxy can pause the contract by invoke pause to disable transfer, transferFrom and so on.

Transfer Ownership

  1. The current owner call transferOwnership method to claim a new address as the pendingOwner.
  2. The pendingOwner call claimOwnership to get the ownership.

Upgrade

  1. Pause the contract first.
  2. deploy the new implementation contract.
  3. The admin of AdminUpgradeabilityProxy invoke upgradeTo to upgrade to latest implementation.

Install dependency

npm install

Run unittests

Start ganache:

npm run testrpc

Run unittests:

npm run truffle:test

Flatten

npm run flatten

Coverage

npm run coverage

token-canal-project's People

Contributors

unclezoro avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.