- All commands are assumed to run in the
utils
directory.
One need to clone repo first:
git clone https://github.com/orbit-chain/bridge-launch-governance.git
cd bridge-launch-governance/utils
- install nvm
nvm install v18.9.0
npm install -g yarn
- vault chain list: bsc, ethereum, klaytn, metadium, polygon, ton, wemix, ripple
yarn
node generatePk.js <chain>
generatePk.js
returns:
{
"eth_address": "", // required
"ethPublic": "", // required
"tonV3R2Address": "",
"tonPublic": "",
"icon_address": "",
"xrp_address": "",
"xrp_address_converted_for_orbit_mig": ""
}
yarn
node generateAddresses.js <pk>
generateAddresses.js
returns:
{
"eth_address": "",
"tonV3R2Address": "",
"ethPublic": "",
"tonPublic": "",
"icon_address": "",
}