EOSIO Side Setup

Steps:

Install Zeus if not installed, zeus is used to unbox or install all the necessary dependencies to compile and deploy the necessary contracts.

Unbox binancetokenpeg box

mkdir binancetokenpeg
cd binancetokenpeg
zeus box create
zeus unbox binancetokenpeg

Compile contracts

zeus compile

Create 3 Kylin and 3 Binance Smart Chain Testnet accounts using these guides:

  • Kylin Testnet: link

  • Binance Smart Chain Testnet: link

Kylin Accounts:

  • Kylin token contract account (token being bridged eosio.token.cpp)

  • Kylin bridge contract account (binancetokenpeg.cpp)

  • Kylin test Account no contract

BSC Testnet Accounts

  • BSCTestnet token contract account (token on BSCTestnet to mint/burn tokens BEP20TokenImplementation.sol)

  • BSCTestnet bridge contract Account (binancetokenpeg.sol)

  • BSCTestnet test Account no contract

Import our keys into zeus to deploy contracts to Kylin, or can use cleos as well

Create contract deployment files to migrate contracts to Kylin, located in ./zeus_boxes/contract-migrations-extensions/models/contract-deployments/

Migrate contracts to Kylin/Jungle

Initialize Kylin token contract

Create tokens

For Kylin, we'll set the issuer to the token contract, this is to simulate a pre-existing token that is being bridged to another chain.

If you get errors such as Transaction exceeded the current network usage limit imposed on the transaction, see the Kylin account setup guide to get more tokens and to stake for more resources.

Issue test tokens

We will issue some test tokens to our test account.

Transfer test tokens

Now we will transfer the issued tokens to the test account so that it may be sent to the bridge.

Stake for services

Now that we've prepared that part let's move onto staking DAPP for services. First stop is the faucet for some DAPP tokens here. Use the account that has the binancetokenpeg contract set to it.

Stake to required services vRAM, LiquidHarmony Oracles, LiquidScheduler, LiquidLink

Using the DSP Portal we can see these packages, stake 10 DAPP to each (Amount to Stake):

Below we'll select each package then stake for it.

Use the command line login option, top right, this will auto-create the cleos commands for you!

Now let's head over to the EVM side.

Last updated

Was this helpful?