Initialize EOSIO Side

Now we are going to start the interval that runs all of the bridge logic.

Locate the init action on your atomictokenpeg contract

sister_address and sister_msig_address will be the atomictokenpeg bridge contract (not the account) on the EVM side.

The token_contract will be your token contract name on the EOSIO side.

10000 is 1.0000 TKN for the min_transfer.

We do not allow the contract to issue tokens because we are assuming the original token contract exists on the Kylin side.

Login with blok's cleos option with your tokenpeg EOSIO account

Select the active permission level.

By clicking the Submit Transaction the cleos command will be autopopulated for you

If you use the command below, be sure to update the settings like account, addresses, token contract, etc.

# cleos -u https://kylin.eosn.io push transaction '{
  "delay_sec": 0,
  "max_cpu_usage_ms": 0,
  "actions": [
    {
      "account": "maticnftbrdg",
      "name": "init",
      "data": {
        "sister_address": "0x95f50751605101ca1A49fC27d79AB19F997D3e82",
        "sister_msig_address": "0x95f50751605101ca1A49fC27d79AB19F997D3e82",
        "sister_chain_name": "mumbai",
        "this_chain_name": "kylin",
        "processing_enabled": true,
        "token_contract": "bridgeassets",
        "transfers_enabled": true,
        "can_issue": false
      },
      "authorization": [
        {
          "actor": "maticnftbrdg",
          "permission": "active"
        }
      ]
    }
  ]
}'

Now we're ready to test the bridge!

Last updated