-
Notifications
You must be signed in to change notification settings - Fork 7
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
4FC-05 Commented out code #417
Comments
@pendulum-chain/product this is a follow-up to the changes for #257 and we should work on this very soon. We only split this out of the original ticket to progress faster with fixing the Spacewalk issues on testnet. |
Hey team! Please add your planning poker estimate with Zenhub @adelarja @b-yap @ebma @gianfra-t @TorstenStueber |
No @annatekl. But wouldn't hurt to work on this soon. |
This ticket also requires cleaning up "todos" and commented codes.
We can keep them as is, or cherry pick any that we think we can do ourselves |
Thanks for the nice overview @b-yap 🙏 The code samples of interlay's code you linked to are all still occurring on their latest |
@ebma question:
You redirected to this ticket -> Add faucet to send test tokens to accounts #161 If I understand correctly, the deployed faucet is only for testnet: if let Some(faucet_url) = &self.config.faucet_url {
let is_public_network =
self.spacewalk_parachain.is_public_network().await.unwrap_or_else(|error| {
// Sometimes the fetch fails with 'StorageItemNotFound' error.
// We assume public network by default
tracing::warn!(
"Failed to fetch public network status from parachain: {error}. Assuming public network."
);
true
});
if !is_public_network {
// use account id of the spacewalk parachain
let account_id = self.spacewalk_parachain.get_account_id().pretty_print();
let url = format!("{faucet_url}?to={account_id}");
let response = reqwest::get(url.clone()).await;
}
} Is it correct to use the parachain's account_id? The log:
When I ran the url on browser, it shows |
thanks for the heads up, @gianfra-t ! |
I started to work on spacewalk/pallets/replace/src/benchmarking.rs Line 154 in 35a4895
And found out that Interlay made a few changes: chore: replace benchmarks #1025 I was following the changes but found some differences that made it too much, should I truly use thiers.
Instead, I will only verify the changes directly: withdraw_replace {
...
register_vault::<T>(vault_id.clone());
...
let vault : DefaultVault::<T> = VaultRegistry::<T>::get_vault_from_id(&vault_id).expect("should return a vault");
let to_be_replaced_tokens = vault.to_be_replaced_tokens;
}: _(RawOrigin::Signed(vault_id.account_id.clone()), vault_id.currencies.clone(), amount.amount())
verify {
let vault : DefaultVault::<T> = VaultRegistry::<T>::get_vault_from_id(&vault_id).expect("should return a vault");
let updated_to_be_replaced_tokens = vault.to_be_replaced_tokens;
assert!(to_be_replaced_tokens > updated_to_be_replaced_tokens);
} But currently have to deal with:
after running:
|
The 'ParachainNotRunning' error indicates that the oracle pallet does not have all the prices available that it needs. The 'need' is defined by the currencies added to the 'oracle_keys' of the oracle pallet which you can check in the chain_spec. Did we change something about it? I don't think so 🤔 |
@ebma |
Hmm okay weird, not sure what it fixed it in your comment. |
* first iteration * cleanup more todo's * cleanup txsets todos * interlay/interbtc-clients@622f36b * fix #417 (comment) * cleanup is_public_network() method and the testchain runtime cfg-if * implement the faucet_url todo * is_transaction_already_submitted * 2nd iteration to improve is_transaction_already_submitted() * revert changes of the `fn is_transaction_already_submitted()` * test prepush-hook * update `fn is_transaction_already_submitted()` * remove unnecessary files * fix resources * fix check_bump_sequence_number_and_submit() test case; update the configs * just allow it * cleanup the comments * clippy cleanup * #277 and #486 (comment), #486 (comment) * rebase and #486 (comment) * rename file for stellar_secretkey_testnet * update function `get_mainnet_secret_key` to `get_secret_key` that accepts 2 params * clippy fix * Update Cargo.lock update cargo lock
We need to clean up some commented-out code and TODO comments that were introduced by #385.
The text was updated successfully, but these errors were encountered: