Skip to content

Commit

Permalink
remove unused sub accounts and add readme file how to run relayer
Browse files Browse the repository at this point in the history
  • Loading branch information
RustNinja committed Dec 29, 2023
1 parent df969dc commit 04d9bf8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 25 deletions.
6 changes: 6 additions & 0 deletions code/parachain/frame/liquid-staking/relayer/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### polkadot relayer start CLI command
SEED="seed phrase" SLEEP_TIME_MIN=60 cargo run --features composable

### kusama relayer start CLI command
SEED="seed phrase" RELAY_HOST=wss://kusama-rpc-tn.dwellir.com:443 PARA_HOST=wss://rpc.composablenodes.tech:443 SLEEP_TIME_MIN=60 cargo run --features picasso

51 changes: 26 additions & 25 deletions code/parachain/frame/liquid-staking/relayer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub fn get_config() -> Vec<SovereignSubAccount> {
println!("{}", "feature 'composable': Relayer for Composable network");
let _sovereign_account_id = "13YMK2ecbyxtm4cmFs31PqzWmQ7gWVboJSmXbcA56DB94xB9";
let sovereign_account_id_index_0 = "12x6QU4c9eRPxJMATFsRNFiZTMK5QgZkdZFFeu2QDKn4TR82";
// no need for rest of the accounts. dot staked only via sub account with index 0
let sovereign_account_id_index_1 = "1461Z7Bm1bwQpz1PuYMQ8phj9bRpxNU7ZYsb7aXQRAUuNecG";
let sovereign_account_id_index_2 = "15ySsNFkAhswdn9hSKkzoK7LhmJrj8bgyUZQAiM7Df9JpBUH";
let sovereign_account_id_index_3 = "15s3DuzMeftBH7YdHykwPDUd2DBxdNbiyqgDfZDA3i5eRwUW";
Expand Down Expand Up @@ -50,31 +51,31 @@ pub fn get_config() -> Vec<SovereignSubAccount> {
storage_key: s0.clone(),
derivative_index: 0,
},
SovereignSubAccount {
address: sovereign_account_id_index_1.to_string(),
storage_key: s1.clone(),
derivative_index: 1,
},
SovereignSubAccount {
address: sovereign_account_id_index_2.to_string(),
storage_key: s2.clone(),
derivative_index: 2,
},
SovereignSubAccount {
address: sovereign_account_id_index_3.to_string(),
storage_key: s3.clone(),
derivative_index: 3,
},
SovereignSubAccount {
address: sovereign_account_id_index_4.to_string(),
storage_key: s4.clone(),
derivative_index: 4,
},
SovereignSubAccount {
address: sovereign_account_id_index_5.to_string(),
storage_key: s5.clone(),
derivative_index: 5,
},
// SovereignSubAccount {
// address: sovereign_account_id_index_1.to_string(),
// storage_key: s1.clone(),
// derivative_index: 1,
// },
// SovereignSubAccount {
// address: sovereign_account_id_index_2.to_string(),
// storage_key: s2.clone(),
// derivative_index: 2,
// },
// SovereignSubAccount {
// address: sovereign_account_id_index_3.to_string(),
// storage_key: s3.clone(),
// derivative_index: 3,
// },
// SovereignSubAccount {
// address: sovereign_account_id_index_4.to_string(),
// storage_key: s4.clone(),
// derivative_index: 4,
// },
// SovereignSubAccount {
// address: sovereign_account_id_index_5.to_string(),
// storage_key: s5.clone(),
// derivative_index: 5,
// },
];
sub_accounts
}

0 comments on commit 04d9bf8

Please sign in to comment.