mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-25 23:23:11 +00:00
add identifier arguments to cli commands
This commit is contained in:
@@ -133,6 +133,7 @@ async fn amm_public() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 7,
|
||||
};
|
||||
|
||||
@@ -162,6 +163,7 @@ async fn amm_public() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 7,
|
||||
};
|
||||
|
||||
@@ -550,6 +552,7 @@ async fn amm_new_pool_using_labels() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 5,
|
||||
};
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), Command::Token(subcommand)).await?;
|
||||
@@ -574,6 +577,7 @@ async fn amm_new_pool_using_labels() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 5,
|
||||
};
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), Command::Token(subcommand)).await?;
|
||||
|
||||
@@ -268,6 +268,7 @@ async fn transfer_and_burn_via_ata() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: fund_amount,
|
||||
}),
|
||||
)
|
||||
@@ -500,6 +501,7 @@ async fn transfer_via_ata_private_owner() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: fund_amount,
|
||||
}),
|
||||
)
|
||||
@@ -614,6 +616,7 @@ async fn burn_via_ata_private_owner() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: fund_amount,
|
||||
}),
|
||||
)
|
||||
|
||||
@@ -30,6 +30,7 @@ async fn private_transfer_to_owned_account() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -71,6 +72,7 @@ async fn private_transfer_to_foreign_account() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: Some(to_npk_string),
|
||||
to_vpk: Some(hex::encode(to_vpk.0)),
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -121,6 +123,7 @@ async fn deshielded_transfer_to_public_account() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -186,6 +189,7 @@ async fn private_transfer_to_owned_account_using_claiming_path() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: Some(hex::encode(to_keys.nullifier_public_key.0)),
|
||||
to_vpk: Some(hex::encode(to_keys.viewing_public_key.0)),
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -236,6 +240,7 @@ async fn shielded_transfer_to_owned_private_account() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -280,6 +285,7 @@ async fn shielded_transfer_to_foreign_account() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: Some(to_npk_string),
|
||||
to_vpk: Some(hex::encode(to_vpk.0)),
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -352,6 +358,7 @@ async fn private_transfer_to_owned_account_continuous_run_path() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: Some(hex::encode(to_keys.nullifier_public_key.0)),
|
||||
to_vpk: Some(hex::encode(to_keys.viewing_public_key.0)),
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -455,6 +462,7 @@ async fn private_transfer_using_from_label() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ async fn successful_transfer_to_existing_account() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -81,6 +82,7 @@ pub async fn successful_transfer_to_new_account() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -119,6 +121,7 @@ async fn failed_transfer_with_insufficient_balance() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 1_000_000,
|
||||
});
|
||||
|
||||
@@ -159,6 +162,7 @@ async fn two_consecutive_successful_transfers() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -193,6 +197,7 @@ async fn two_consecutive_successful_transfers() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -278,6 +283,7 @@ async fn successful_transfer_using_from_label() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -325,6 +331,7 @@ async fn successful_transfer_using_to_label() -> Result<()> {
|
||||
to_label: Some(label),
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
|
||||
@@ -112,6 +112,7 @@ async fn indexer_state_consistency() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -148,6 +149,7 @@ async fn indexer_state_consistency() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -234,6 +236,7 @@ async fn indexer_state_consistency_with_labels() -> Result<()> {
|
||||
to_label: Some(to_label_str),
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ async fn sync_private_account_with_non_zero_chain_index() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: Some(hex::encode(to_keys.nullifier_public_key.0)),
|
||||
to_vpk: Some(hex::encode(to_keys.viewing_public_key.0)),
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
|
||||
@@ -151,6 +152,7 @@ async fn restore_keys_from_seed() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 100,
|
||||
});
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), command).await?;
|
||||
@@ -163,6 +165,7 @@ async fn restore_keys_from_seed() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 101,
|
||||
});
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), command).await?;
|
||||
@@ -203,6 +206,7 @@ async fn restore_keys_from_seed() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 102,
|
||||
});
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), command).await?;
|
||||
@@ -215,6 +219,7 @@ async fn restore_keys_from_seed() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 103,
|
||||
});
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), command).await?;
|
||||
@@ -280,6 +285,7 @@ async fn restore_keys_from_seed() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 10,
|
||||
});
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), command).await?;
|
||||
@@ -291,6 +297,7 @@ async fn restore_keys_from_seed() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: 11,
|
||||
});
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), command).await?;
|
||||
|
||||
@@ -134,6 +134,7 @@ async fn create_and_transfer_public_token() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: transfer_amount,
|
||||
};
|
||||
|
||||
@@ -227,6 +228,7 @@ async fn create_and_transfer_public_token() -> Result<()> {
|
||||
holder_label: None,
|
||||
holder_npk: None,
|
||||
holder_vpk: None,
|
||||
holder_identifier: 0,
|
||||
amount: mint_amount,
|
||||
};
|
||||
|
||||
@@ -372,6 +374,7 @@ async fn create_and_transfer_token_with_private_supply() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: transfer_amount,
|
||||
};
|
||||
|
||||
@@ -566,6 +569,7 @@ async fn create_token_with_private_definition() -> Result<()> {
|
||||
holder_label: None,
|
||||
holder_npk: None,
|
||||
holder_vpk: None,
|
||||
holder_identifier: 0,
|
||||
amount: mint_amount_public,
|
||||
};
|
||||
|
||||
@@ -614,6 +618,7 @@ async fn create_token_with_private_definition() -> Result<()> {
|
||||
holder_label: None,
|
||||
holder_npk: None,
|
||||
holder_vpk: None,
|
||||
holder_identifier: 0,
|
||||
amount: mint_amount_private,
|
||||
};
|
||||
|
||||
@@ -756,6 +761,7 @@ async fn create_token_with_private_definition_and_supply() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: transfer_amount,
|
||||
};
|
||||
|
||||
@@ -887,6 +893,7 @@ async fn shielded_token_transfer() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: transfer_amount,
|
||||
};
|
||||
|
||||
@@ -1013,6 +1020,7 @@ async fn deshielded_token_transfer() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: transfer_amount,
|
||||
};
|
||||
|
||||
@@ -1148,6 +1156,7 @@ async fn token_claiming_path_with_private_accounts() -> Result<()> {
|
||||
holder_label: None,
|
||||
holder_npk: Some(hex::encode(holder_keys.nullifier_public_key.0)),
|
||||
holder_vpk: Some(hex::encode(holder_keys.viewing_public_key.0)),
|
||||
holder_identifier: 0,
|
||||
amount: mint_amount,
|
||||
};
|
||||
|
||||
@@ -1351,6 +1360,7 @@ async fn transfer_token_using_from_label() -> Result<()> {
|
||||
to_label: None,
|
||||
to_npk: None,
|
||||
to_vpk: None,
|
||||
to_identifier: 0,
|
||||
amount: transfer_amount,
|
||||
};
|
||||
wallet::cli::execute_subcommand(ctx.wallet_mut(), Command::Token(subcommand)).await?;
|
||||
|
||||
Reference in New Issue
Block a user