(
&'s mut self,
parent_submit_config: &SubmitConfig<'a, DockerMaterials>,
account: &'a DefaultAccount,
subnet: &'a DefaultSubnet,
collateral: fendermint_vm_gene
| 923 | } |
| 924 | |
| 925 | async fn join_subnet<'s, 'a>( |
| 926 | &'s mut self, |
| 927 | parent_submit_config: &SubmitConfig<'a, DockerMaterials>, |
| 928 | account: &'a DefaultAccount, |
| 929 | subnet: &'a DefaultSubnet, |
| 930 | collateral: fendermint_vm_genesis::Collateral, |
| 931 | balance: Balance, |
| 932 | reference: Option<ResourceHash>, |
| 933 | ) -> anyhow::Result<()> |
| 934 | where |
| 935 | 's: 'a, |
| 936 | { |
| 937 | if self.has_reference(&subnet.name, &reference) { |
| 938 | return Ok(()); |
| 939 | } |
| 940 | |
| 941 | let cmd = format!( |
| 942 | "ipc-cli subnet join \ |
| 943 | --subnet {} \ |
| 944 | --from {:?} \ |
| 945 | --collateral {} \ |
| 946 | --initial-balance {} \ |
| 947 | ", |
| 948 | subnet.subnet_id, |
| 949 | account.eth_addr(), |
| 950 | collateral.0, |
| 951 | balance.0 |
| 952 | ); |
| 953 | |
| 954 | self.ipc_cli_run_cmd(parent_submit_config, account, cmd) |
| 955 | .await |
| 956 | .context("failed to join subnet")?; |
| 957 | |
| 958 | self.add_reference(&subnet.name, &reference) |
| 959 | } |
| 960 | |
| 961 | async fn create_subnet_genesis<'s, 'a>( |
| 962 | &'s mut self, |
nothing calls this directly
no test coverage detected