Sovereign Deposit Tokens Guide
Main Chain -> Sovereign Chain
-
Navigate to
/mx-chain-go/scripts/testnet/sovereignBridge
.Update the configuration file
config/configs.cfg
with the token settings you prefer. Example:# Issue Main Chain Token Settings
TOKEN_TICKER=TKN
TOKEN_DISPLAY_NAME=Token
NR_DECIMALS=18
INITIAL_SUPPLY=111222333 -
Source the script:
source script.sh
-
Issue a token on the main chain:
issueToken
-
Deposit the token in the smart contract:
depositTokenInSC
Sovereign Chain -> Main Chain
-
Navigate to
/mx-chain-go/scripts/testnet/sovereignBridge
.Update the configuration file
config/configs.cfg
with the sovereign token settings you prefer. Example:# Issue Sovereign Token Settings
TOKEN_TICKER_SOVEREIGN=SVN
TOKEN_DISPLAY_NAME_SOVEREIGN=SovToken
NR_DECIMALS_SOVEREIGN=18
INITIAL_SUPPLY_SOVEREIGN=333222111 -
Source the script:
source script.sh
-
Issue a new token on the local sovereign chain:
issueTokenSovereign
Steps to transfer tokens:
info
- Ensure the sovereign bridge contract has the BurnRole for the token you want to bridge. All new tokens have
ESDTBurnRoleForAll
enabled. If disabled, register the burn role:setLocalBurnRoleSovereign
-
Register the sovereign token identifier on the main chain bridge contract:
registerSovereignToken
-
Deposit the token in the smart contract on the sovereign chain:
depositTokenInSCSovereign