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.
- BinancePeggyTokenFactory.sol. It is a factory contract to help deploy
AdminUpgradeabilityProxy
and init the contract. - AdminUpgradeabilityProxy.sol. It is an upgradable proxy contract with admin, and delegate request to it's implementation contract.
- BinancePeggyToken.sol. It is the implementation contract of Binance Peg token.
Owner of AdminUpgradeabilityProxy
can pause the contract by invoke pause
to disable transfer
, transferFrom
and so on.
- The current owner call
transferOwnership
method to claim a new address as thependingOwner
. - The
pendingOwner
callclaimOwnership
to get the ownership.
- Pause the contract first.
- deploy the new implementation contract.
- The
admin
ofAdminUpgradeabilityProxy
invokeupgradeTo
to upgrade to latest implementation.
npm install
Start ganache:
npm run testrpc
Run unittests:
npm run truffle:test
npm run flatten
npm run coverage