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.
Ensure you're using node version 16, IPFS can be picky with other versions
Unbox binancetokenpeg box
mkdir binancetokenpeg
cd binancetokenpeg
zeus box create
zeus unbox binancetokenpegCompile contracts
zeus compileCreate 3 Kylin and 3 Binance Smart Chain Testnet accounts using these guides:
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
If you use cleos to set the contract, be sure to set the eosio.code permission level, see here
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.
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.
Now let's head over to the EVM side.
Last updated
Was this helpful?