-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore - add helper script to configure a new testnet parachain #817
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should move this script to the scripts here: https://github.com/interlay/interbtc-api/tree/master/scripts ?
done | ||
} | ||
|
||
function setup_lending_markets { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lending markets are different between interlay and kintsugi testnets. So there needs to be a gate somewhere that sets up different markets.
Interlay: DOT, IBTC, USDT, INTR. Also note that DOT, and INTR have just 10 decimals.
Kintsugi: KSM, KBTC, USDT, KINT.
|
||
function fund_faucet_account { | ||
# Fund the faucet accounts with tokens | ||
TOKENS=( "KSM" "KINT" ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add USDT and KBTC for Kintsugi.
For Interlay we need DOT, IBTC, USDT and INTR.
If this were a js script I would have agreed, but for this bash script I think this repo is fine as well |
One missing step is to set the current clients version (used by the client auto-updater). We need to make a call like |
"jumpUtilization": 900000 | ||
} | ||
}, | ||
"state": "Active", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the state has to be Pending
when a market is first added. To activate after adding, an activateMarket
extrinsic has to be called
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just adding some comments for next time that we need this
2121 \ | ||
5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL \ | ||
0 \ | ||
1 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be 0
5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL \ | ||
0 \ | ||
1 \ | ||
1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use 100000
# forceLease(para, leaser, amount, periodBegin, periodCount) | ||
polkadot-js-api --ws $RELAYCHAIN_WSS --sudo --seed "//Alice" \ | ||
tx.slots.forceLease \ | ||
2121 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not 2121 anymore - use 2092 for kintsugi or 2032 for interlay
@gregdhill @sander2 should we close this? |
Succeeded by interlay/interbtc-api#554 |
No description provided.