Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

ns212
Copy link
Contributor

@ns212 ns212 commented Dec 23, 2022

No description provided.

@ns212 ns212 requested a review from a team December 23, 2022 22:02
Copy link
Member

@nud3l nud3l left a 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 {
Copy link
Member

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" )
Copy link
Member

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.

@sander2
Copy link
Member

sander2 commented Jan 2, 2023

Maybe we should move this script to the scripts here: https://github.com/interlay/interbtc-api/tree/master/scripts ?

If this were a js script I would have agreed, but for this bash script I think this repo is fine as well

@sander2
Copy link
Member

sander2 commented Jan 3, 2023

One missing step is to set the current clients version (used by the client auto-updater). We need to make a call like clientsInfo.setCurrentClientRelease(vault, "https://github.com/interlay/interbtc-clients/releases/download/1.17.6/vault-parachain-metadata-kintsugi-testnet", 0x8393f5064fc88b2486014bef8c24c67e826b801b189b763742b44b8af2334443)

@daniel-savu
Copy link
Contributor

I'm not familiar with the CLI version of polkadot-js, but these are the extrinsics you need to set up USDT and three lending markets on Kintnet (KSM, KBTC, USDT):

We don't have fine-tuned parameters for the lending markets on interlay-testnet so you can just change the currencies in the calls above (e.g. replace KBTC with IBTC above, etc).

"jumpUtilization": 900000
}
},
"state": "Active",
Copy link
Contributor

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

Copy link
Member

@sander2 sander2 left a 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 \
Copy link
Member

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
Copy link
Member

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 \
Copy link
Member

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

@nud3l
Copy link
Member

nud3l commented Jun 21, 2023

@gregdhill @sander2 should we close this?

@gregdhill
Copy link
Member

Succeeded by interlay/interbtc-api#554

@gregdhill gregdhill closed this Jun 21, 2023
@gregdhill gregdhill deleted the setup-script branch June 21, 2023 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants