Chore - add helper script to configure a new testnet parachain#817
Chore - add helper script to configure a new testnet parachain#817
Conversation
nud3l
left a comment
There was a problem hiding this comment.
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.
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.
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.
the state has to be Pending when a market is first added. To activate after adding, an activateMarket extrinsic has to be called
sander2
left a comment
There was a problem hiding this comment.
Just adding some comments for next time that we need this
| 2121 \ | ||
| 5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL \ | ||
| 0 \ | ||
| 1 \ |
| 5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL \ | ||
| 0 \ | ||
| 1 \ | ||
| 1000 |
| # 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.
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.