repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/deploy_contract/initialize_mode/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/deploy_contract/initialize_mode/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, EnumDiscriminants, interactive_clap_derive::InteractiveClap)] #[interactive_clap(context = super::super::super::super::ConstructTransactionContext)] #[strum_discriminants(derive(EnumMessage, EnumIter))] /// Select the need for initialization...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/delete_account/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/delete_account/mod.rs
use color_eyre::owo_colors::OwoColorize; use inquire::Select; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = DeleteAccountActionContext)] pub struct DeleteAccountAction { #[interact...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod access_key_type; mod use_manually_provided_seed_phrase; mod use_public_key; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::super::super::ConstructTransactionContext)] pub struct AddKeyAction { #[interactive_...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/access_key_type/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/access_key_type/mod.rs
use std::str::FromStr; use inquire::{CustomType, Select, Text}; #[derive(Debug, Clone)] pub struct AccessKeyPermissionContext { pub global_context: crate::GlobalContext, pub signer_account_id: near_primitives::types::AccountId, pub receiver_account_id: near_primitives::types::AccountId, pub actions: V...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/use_manually_provided_seed_phrase/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/use_manually_provided_seed_phrase/mod.rs
use std::str::FromStr; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessKeyPermissionContext)] #[interactive_clap(output_context = AddAccessWithSeedPhraseActionContext)] pub struct AddAccessWithSeedPhraseAction { /// Enter the seed_phrase: ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/use_public_key/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/add_key/use_public_key/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessKeyPermissionContext)] #[interactive_clap(output_context = AddAccessKeyActionContext)] pub struct AddAccessKeyAction { /// Enter the public key: public_key: crate::types::public_key::Publi...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/stake/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/stake/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = StakeActionContext)] pub struct StakeAction { /// Enter the amount to stake: (example: 10000NEAR) stake_amount: crate::types::near_...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/deploy_global_contract/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/deploy_global_contract/mod.rs
use color_eyre::eyre::Context; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = DeployGlobalContractActionContext)] pub struct Deplo...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/use_global_contract/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/use_global_contract/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::super::super::ConstructTransactionContext)] pub struct UseGlobalContractAction { #[interactive_clap(subcommand)] mode: UseGlobalActionMode, } #[derive(Debug, En...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_3/add_action/call_function/mod.rs
src/commands/transaction/construct_transaction/add_action_3/add_action/call_function/mod.rs
use inquire::CustomType; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = FunctionCallActionContext)] pub struct FunctionCallAction { #[interactive_clap(skip_default_input_arg)] /...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/mod.rs
src/commands/transaction/construct_transaction/add_action_1/mod.rs
#![allow(clippy::enum_variant_names, clippy::large_enum_variant)] use strum::{EnumDiscriminants, EnumIter, EnumMessage}; pub mod add_action; #[derive(Debug, Clone, EnumDiscriminants, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::ConstructTransactionContext)] #[strum_discriminants(derive(Enum...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; pub mod add_key; pub mod call_function; pub mod create_account; pub mod delete_account; pub mod delete_key; pub mod deploy_contract; pub mod deploy_global_contract; pub mod stake; pub mod transfer; pub mod use_global_contract; #[derive(Debug, Clone, interactive_cl...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/transfer/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/transfer/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = TransferActionContext)] pub struct TransferAction { /// How many NEAR Tokens do you want to transfer? (example: 10 NEAR or 0.5 NEAR or ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/delete_key/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/delete_key/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = DeleteKeyActionContext)] pub struct DeleteKeyAction { /// Enter the public key You wish to delete: public_key: crate::types::public...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/create_account/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/create_account/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = CreateAccountActionContext)] pub struct CreateAccountAction { #[interactive_clap(subcommand)] next_action: super::super::super::add...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/deploy_contract/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/deploy_contract/mod.rs
use color_eyre::eyre::Context; pub mod initialize_mode; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::super::super::ConstructTransactionContext)] pub struct DeployContractAction { #[interactive_clap(named_arg)] /// Specify a path to wasm file use_file: Cont...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/deploy_contract/initialize_mode/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/deploy_contract/initialize_mode/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, EnumDiscriminants, interactive_clap_derive::InteractiveClap)] #[interactive_clap(context = super::super::super::super::ConstructTransactionContext)] #[strum_discriminants(derive(EnumMessage, EnumIter))] /// Select the need for initialization...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/delete_account/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/delete_account/mod.rs
use color_eyre::owo_colors::OwoColorize; use inquire::Select; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = DeleteAccountActionContext)] pub struct DeleteAccountAction { #[interact...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; pub mod access_key_type; pub mod use_manually_provided_seed_phrase; pub mod use_public_key; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::super::super::ConstructTransactionContext)] pub struct AddKeyAction { #[...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/access_key_type/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/access_key_type/mod.rs
use std::str::FromStr; use inquire::{CustomType, Select, Text}; #[derive(Debug, Clone)] pub struct AccessKeyPermissionContext { pub global_context: crate::GlobalContext, pub signer_account_id: near_primitives::types::AccountId, pub receiver_account_id: near_primitives::types::AccountId, pub actions: V...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/use_manually_provided_seed_phrase/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/use_manually_provided_seed_phrase/mod.rs
use std::str::FromStr; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessKeyPermissionContext)] #[interactive_clap(output_context = AddAccessWithSeedPhraseActionContext)] pub struct AddAccessWithSeedPhraseAction { /// Enter the seed_phrase: ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/use_public_key/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/add_key/use_public_key/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessKeyPermissionContext)] #[interactive_clap(output_context = AddAccessKeyActionContext)] pub struct AddAccessKeyAction { /// Enter the public key: public_key: crate::types::public_key::Publi...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/stake/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/stake/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = StakeActionContext)] pub struct StakeAction { /// Enter the amount to stake: (example: 10000NEAR) stake_amount: crate::types::near_...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/deploy_global_contract/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/deploy_global_contract/mod.rs
use color_eyre::eyre::Context; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = DeployGlobalContractActionContext)] pub struct Deplo...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/use_global_contract/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/use_global_contract/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::super::super::ConstructTransactionContext)] pub struct UseGlobalContractAction { #[interactive_clap(subcommand)] mode: UseGlobalActionMode, } #[derive(Debug, En...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_1/add_action/call_function/mod.rs
src/commands/transaction/construct_transaction/add_action_1/add_action/call_function/mod.rs
use inquire::CustomType; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::super::ConstructTransactionContext)] #[interactive_clap(output_context = FunctionCallActionContext)] pub struct FunctionCallAction { #[interactive_clap(skip_default_input_arg)] /...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/add_action_last/mod.rs
src/commands/transaction/construct_transaction/add_action_last/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, EnumDiscriminants, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::ConstructTransactionContext)] #[strum_discriminants(derive(EnumMessage, EnumIter))] /// Select an action that you want to add to the action: pub enum ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/construct_transaction/skip_action/mod.rs
src/commands/transaction/construct_transaction/skip_action/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::ConstructTransactionContext)] #[interactive_clap(output_context = SkipActionContext)] pub struct SkipAction { #[interactive_clap(named_arg)] /// Select network pub network_config: crate::network_for_transact...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/print_transaction/mod.rs
src/commands/transaction/print_transaction/mod.rs
#![allow(clippy::enum_variant_names, clippy::large_enum_variant)] use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod signed; mod unsigned; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = crate::GlobalContext)] pub struct PrintTransactionCommands { #[interactive_clap...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/print_transaction/signed/mod.rs
src/commands/transaction/print_transaction/signed/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = PrintContext)] pub struct PrintTransaction { /// Enter the signed transaction encoded in base64: signed_transaction: crate::types::signed_transaction::SignedTr...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/print_transaction/unsigned/mod.rs
src/commands/transaction/print_transaction/unsigned/mod.rs
use near_primitives::transaction::Transaction; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = PrintContext)] pub struct PrintTransaction { /// Enter the unsigned transaction encoded in base64: unsigned_tra...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/sign_transaction/mod.rs
src/commands/transaction/sign_transaction/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = SignTransactionContext)] pub struct SignTransaction { /// Enter the transaction encoded in base64: unsigned_transaction: crate::types::transaction::Transaction...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/view_status/mod.rs
src/commands/transaction/view_status/mod.rs
use color_eyre::eyre::Context; use tracing_indicatif::span_ext::IndicatifSpanExt; use crate::common::JsonRpcClientExt; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = TransactionInfoContext)] pub struct Transactio...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/transaction/reconstruct_transaction/mod.rs
src/commands/transaction/reconstruct_transaction/mod.rs
use color_eyre::eyre::{Context, ContextCompat}; use inquire::CustomType; use interactive_clap::ToCliArgs; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = TransactionInfoContext)] pub struct TransactionInfo { //...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/extensions/mod.rs
src/commands/extensions/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; pub mod self_update; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = crate::GlobalContext)] pub struct ExtensionsCommands { #[interactive_clap(subcommand)] pub extensions_actions: ExtensionsActions, } #[derive(Debu...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/extensions/self_update/mod.rs
src/commands/extensions/self_update/mod.rs
#[cfg(windows)] const BIN_NAME: &str = "near.exe"; #[cfg(not(windows))] const BIN_NAME: &str = "near"; use color_eyre::{eyre::WrapErr, owo_colors::OwoColorize}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = Self...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/mod.rs
src/commands/staking/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; pub mod delegate; mod validator_list; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = crate::GlobalContext)] pub struct Staking { #[interactive_clap(subcommand)] stake: StakingType, } #[derive(Debug, EnumDiscrimina...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/validator_list/mod.rs
src/commands/staking/validator_list/mod.rs
use prettytable::Table; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = ValidatorListContext)] pub struct ValidatorList { #[interactive_clap(named_arg)] /// Select network network_config: crate::network...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/withdraw.rs
src/commands/staking/delegate/withdraw.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = WithdrawContext)] pub struct Withdraw { /// Enter the amount to withdraw from the non staked balance (example: 10 NEAR or 0.5 NEAR or 10000 yoctonear): ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/unstake_all.rs
src/commands/staking/delegate/unstake_all.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = UnstakeAllContext)] pub struct UnstakeAll { #[interactive_clap(skip_default_input_arg)] /// What is validator account ID? validator_account_id: cr...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/withdraw_all.rs
src/commands/staking/delegate/withdraw_all.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = WithdrawAllContext)] pub struct WithdrawAll { #[interactive_clap(skip_default_input_arg)] /// What is validator account ID? validator_account_id: ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/unstake.rs
src/commands/staking/delegate/unstake.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = UnstakeContext)] pub struct Unstake { /// Enter the amount to unstake from the inner account of the predecessor (example: 10 NEAR or 0.5 NEAR or 10000 yoc...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/stake.rs
src/commands/staking/delegate/stake.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = StakeContext)] pub struct Stake { /// Enter the amount to stake from the inner account of the predecessor (example: 10 NEAR or 0.5 NEAR or 10000 yoctonear...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/deposit_and_stake.rs
src/commands/staking/delegate/deposit_and_stake.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = DepositAndStakeContext)] pub struct DepositAndStake { /// Enter the attached amount to be deposited and then staked into the predecessor's internal accoun...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/view_balance.rs
src/commands/staking/delegate/view_balance.rs
use color_eyre::eyre::WrapErr; use crate::common::{CallResultExt, JsonRpcClientExt}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = ViewBalanceContext)] pub struct ViewBalance { #[interactive_clap(sk...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/mod.rs
src/commands/staking/delegate/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod deposit_and_stake; mod stake; mod stake_all; mod unstake; mod unstake_all; pub mod view_balance; mod withdraw; mod withdraw_all; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/staking/delegate/stake_all.rs
src/commands/staking/delegate/stake_all.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::StakeDelegationContext)] #[interactive_clap(output_context = StakeAllContext)] pub struct StakeAll { #[interactive_clap(skip_default_input_arg)] /// What is validator account ID? validator_account_id: crate:...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/mod.rs
src/commands/account/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod add_key; pub mod create_account; mod delete_account; mod delete_key; pub mod export_account; mod get_public_key; mod import_account; mod list_keys; pub mod storage_management; pub mod update_social_profile; pub mod view_account_summary; pub const MIN_ALLOWED_...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/import_account/mod.rs
src/commands/account/import_account/mod.rs
#![allow(clippy::enum_variant_names, clippy::large_enum_variant)] use std::{str::FromStr, vec}; use color_eyre::eyre::Context; use inquire::{CustomType, Select}; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; use near_primitives::account::id::AccountType; mod using_private_key; mod using_seed_phrase; mod usi...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/import_account/using_web_wallet/mod.rs
src/commands/account/import_account/using_web_wallet/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = LoginFromWebWalletContext)] pub struct LoginFromWebWallet { #[interactive_clap(named_arg)] /// Select network network_config: crate::network::Network, } #...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/import_account/using_private_key/mod.rs
src/commands/account/import_account/using_private_key/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = LoginFromPrivateKeyContext)] pub struct LoginFromPrivateKey { /// Enter your private (secret) key: private_key: crate::types::secret_key::SecretKey, #[inte...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/import_account/using_seed_phrase/mod.rs
src/commands/account/import_account/using_seed_phrase/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = LoginFromSeedPhraseContext)] pub struct LoginFromSeedPhrase { /// Enter the seed-phrase for this account: master_seed_phrase: String, #[interactive_clap(lo...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/update_social_profile/sign_as.rs
src/commands/account/update_social_profile/sign_as.rs
use std::collections::HashMap; use std::sync::Arc; use color_eyre::eyre::WrapErr; use inquire::{CustomType, Select}; use crate::common::{CallResultExt, JsonRpcClientExt}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::profile_args_type::ArgsContext)] #[interactiv...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/update_social_profile/mod.rs
src/commands/account/update_social_profile/mod.rs
mod profile_args_type; mod sign_as; #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct TransactionFunctionArgs { pub data: near_socialdb_client::types::socialdb_types::SocialDb, } #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalConte...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/update_social_profile/profile_args_type/manually.rs
src/commands/account/update_social_profile/profile_args_type/manually.rs
use std::collections::HashMap; use inquire::{CustomType, Select, Text}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::UpdateSocialProfileContext)] #[interactive_clap(output_context = ManuallyContext)] pub struct Manually { #[interactive_clap(long)] ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/update_social_profile/profile_args_type/file_args.rs
src/commands/account/update_social_profile/profile_args_type/file_args.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::UpdateSocialProfileContext)] #[interactive_clap(output_context = FileArgsContext)] pub struct FileArgs { /// Enter the path to the input data file: data_path: crate::types::file_bytes::FileBytes, #[in...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/update_social_profile/profile_args_type/json_args.rs
src/commands/account/update_social_profile/profile_args_type/json_args.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::UpdateSocialProfileContext)] #[interactive_clap(output_context = JsonArgsContext)] pub struct JsonArgs { /// Enter valid JSON arguments (e.g. {"name": "NEAR", "description": "NEAR is fun"}): data: crate::...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/update_social_profile/profile_args_type/mod.rs
src/commands/account/update_social_profile/profile_args_type/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod base64_args; mod file_args; mod json_args; mod manually; #[derive(Debug, EnumDiscriminants, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::UpdateSocialProfileContext)] #[strum_discriminants(derive(EnumMessage, EnumIter))] /// H...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/update_social_profile/profile_args_type/base64_args.rs
src/commands/account/update_social_profile/profile_args_type/base64_args.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::UpdateSocialProfileContext)] #[interactive_clap(output_context = Base64ArgsContext)] pub struct Base64Args { /// Enter valid Base64-encoded string (e.g. e30=): data: crate::types::base64_bytes::Base64Byte...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/export_account/mod.rs
src/commands/account/export_account/mod.rs
use color_eyre::eyre::{ContextCompat, WrapErr}; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; use crate::common::JsonRpcClientExt; use crate::common::RpcQueryResponseExt; mod using_private_key; mod using_seed_phrase; mod using_web_wallet; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interact...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/export_account/using_web_wallet/mod.rs
src/commands/account/export_account/using_web_wallet/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::ExportAccountContext)] #[interactive_clap(output_context = ExportAccountFromWebWalletContext)] pub struct ExportAccountFromWebWallet { #[interactive_clap(named_arg)] /// Select network network_config: crate:...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/export_account/using_private_key/mod.rs
src/commands/account/export_account/using_private_key/mod.rs
use color_eyre::eyre::WrapErr; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::ExportAccountContext)] #[interactive_clap(output_context = ExportAccountFromPrivateKeyContext)] pub struct ExportAccountFromPrivateKey { #[interactive_clap(named_arg)] /// Select ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/export_account/using_seed_phrase/mod.rs
src/commands/account/export_account/using_seed_phrase/mod.rs
use color_eyre::eyre::WrapErr; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::ExportAccountContext)] #[interactive_clap(output_context = ExportAccountFromSeedPhraseContext)] pub struct ExportAccountFromSeedPhrase { #[interactive_clap(named_arg)] /// Select ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/delete_key/public_keys_to_delete.rs
src/commands/account/delete_key/public_keys_to_delete.rs
use color_eyre::owo_colors::OwoColorize; use inquire::ui::{Color, RenderConfig, Styled}; use inquire::{formatter::MultiOptionFormatter, CustomType, MultiSelect}; use crate::common::JsonRpcClientExt; use crate::common::RpcQueryResponseExt; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(i...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/delete_key/mod.rs
src/commands/account/delete_key/mod.rs
mod public_keys_to_delete; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = DeleteKeysCommandContext)] pub struct DeleteKeysCommand { #[interactive_clap(skip_default_input_arg)] /// Which account should you ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/mod.rs
src/commands/account/create_account/mod.rs
#![allow(clippy::enum_variant_names, clippy::large_enum_variant)] use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod create_implicit_account; mod fund_myself_create_account; pub mod sponsor_by_faucet_service; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = crate::Global...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/fund_myself_create_account/mod.rs
src/commands/account/create_account/fund_myself_create_account/mod.rs
use inquire::{CustomType, Select}; use crate::commands::account::MIN_ALLOWED_TOP_LEVEL_ACCOUNT_LENGTH; mod add_key; mod sign_as; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = NewAccountContext)] pub struct NewA...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/fund_myself_create_account/add_key/mod.rs
src/commands/account/create_account/fund_myself_create_account/add_key/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; pub mod autogenerate_new_keypair; #[cfg(feature = "ledger")] mod use_ledger; mod use_manually_provided_seed_phrase; mod use_public_key; #[derive(Debug, Clone, EnumDiscriminants, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::NewAccountCon...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/fund_myself_create_account/add_key/use_manually_provided_seed_phrase/mod.rs
src/commands/account/create_account/fund_myself_create_account/add_key/use_manually_provided_seed_phrase/mod.rs
use std::str::FromStr; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = AddAccessWithSeedPhraseActionContext)] pub struct AddAccessWithSeedPhraseAction { /// Enter the seed-phrase for this sub-account...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/fund_myself_create_account/add_key/autogenerate_new_keypair/mod.rs
src/commands/account/create_account/fund_myself_create_account/add_key/autogenerate_new_keypair/mod.rs
use std::str::FromStr; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap_derive::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = GenerateKeypairContext)] pub struct GenerateKeypair { #[interacti...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/fund_myself_create_account/add_key/use_public_key/mod.rs
src/commands/account/create_account/fund_myself_create_account/add_key/use_public_key/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = AddPublicKeyActionContext)] pub struct AddPublicKeyAction { /// Enter the public key for this account: public_key: crate::types::public_key::PublicK...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/fund_myself_create_account/add_key/use_ledger/mod.rs
src/commands/account/create_account/fund_myself_create_account/add_key/use_ledger/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = AddAccessWithLedgerContext)] pub struct AddAccessWithLedger { #[interactive_clap(long)] #[interactive_clap(skip_default_input_arg)] seed_phrase_...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/fund_myself_create_account/sign_as/mod.rs
src/commands/account/create_account/fund_myself_create_account/sign_as/mod.rs
use serde_json::json; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::AccountPropertiesContext)] #[interactive_clap(output_context = SignerAccountIdContext)] pub struct SignerAccountId { #[interactive_clap(skip_default_input_arg)] /// What is the signer acco...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/create_implicit_account/use_ledger.rs
src/commands/account/create_account/create_implicit_account/use_ledger.rs
use std::io::Write; use color_eyre::eyre::Context; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = SaveWithLedgerContext)] pub struct SaveWithLedger { #[interactive_clap(long)] #[interactive_clap(skip_defa...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/create_implicit_account/use_auto_generation.rs
src/commands/account/create_account/create_implicit_account/use_auto_generation.rs
use std::io::Write; use color_eyre::eyre::Context; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = SaveWithUseAutoGenerationContext)] pub struct SaveWithUseAutoGeneration { #[interactive_clap(named_arg)] /...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/create_implicit_account/mod.rs
src/commands/account/create_account/create_implicit_account/mod.rs
use inquire::CustomType; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod use_auto_generation; #[cfg(feature = "ledger")] mod use_ledger; mod use_seed_phrase; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = crate::GlobalContext)] pub struct ImplicitAccount { #[int...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/create_implicit_account/use_seed_phrase.rs
src/commands/account/create_account/create_implicit_account/use_seed_phrase.rs
use std::io::Write; use color_eyre::eyre::Context; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = SaveWithSeedPhraseContext)] pub struct SaveWithSeedPhrase { /// Enter the seed-phrase for this account: ma...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/sponsor_by_faucet_service/mod.rs
src/commands/account/create_account/sponsor_by_faucet_service/mod.rs
use tracing_indicatif::span_ext::IndicatifSpanExt; pub mod add_key; pub mod network; #[derive(Clone)] pub struct SponsorServiceContext { pub config: crate::config::Config, pub new_account_id: crate::types::account_id::AccountId, pub public_key: near_crypto::PublicKey, pub on_after_getting_network_call...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/sponsor_by_faucet_service/add_key/mod.rs
src/commands/account/create_account/sponsor_by_faucet_service/add_key/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; pub mod autogenerate_new_keypair; #[cfg(feature = "ledger")] mod use_ledger; mod use_manually_provided_seed_phrase; mod use_public_key; #[derive(Debug, Clone, EnumDiscriminants, interactive_clap::InteractiveClap)] #[interactive_clap(context = super::NewAccountCon...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/sponsor_by_faucet_service/add_key/use_manually_provided_seed_phrase/mod.rs
src/commands/account/create_account/sponsor_by_faucet_service/add_key/use_manually_provided_seed_phrase/mod.rs
use std::str::FromStr; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = AddAccessWithSeedPhraseActionContext)] pub struct AddAccessWithSeedPhraseAction { /// Enter the seed-phrase for this account: ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/sponsor_by_faucet_service/add_key/autogenerate_new_keypair/mod.rs
src/commands/account/create_account/sponsor_by_faucet_service/add_key/autogenerate_new_keypair/mod.rs
use std::str::FromStr; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap_derive::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = GenerateKeypairContext)] pub struct GenerateKeypair { #[interacti...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/sponsor_by_faucet_service/add_key/use_public_key/mod.rs
src/commands/account/create_account/sponsor_by_faucet_service/add_key/use_public_key/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = AddPublicKeyActionContext)] pub struct AddPublicKeyAction { /// Enter the public key for this account: public_key: crate::types::public_key::PublicK...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/sponsor_by_faucet_service/add_key/use_ledger/mod.rs
src/commands/account/create_account/sponsor_by_faucet_service/add_key/use_ledger/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::super::NewAccountContext)] #[interactive_clap(output_context = AddAccessWithLedgerContext)] pub struct AddAccessWithLedger { #[interactive_clap(long)] #[interactive_clap(skip_default_input_arg)] seed_phrase_...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/create_account/sponsor_by_faucet_service/network/mod.rs
src/commands/account/create_account/sponsor_by_faucet_service/network/mod.rs
use color_eyre::eyre::ContextCompat; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::SponsorServiceContext)] #[interactive_clap(output_context = NetworkContext)] pub struct Network { /// What is the name of ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/delete_account/mod.rs
src/commands/account/delete_account/mod.rs
use color_eyre::owo_colors::OwoColorize; use inquire::Select; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = DeleteAccountContext)] pub struct DeleteAccount { #[interactive_clap(skip_default_input_arg)] //...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/mod.rs
src/commands/account/add_key/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod access_key_type; mod autogenerate_new_keypair; #[cfg(feature = "ledger")] mod use_ledger; mod use_manually_provided_seed_phrase; mod use_mpc; mod use_public_key; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = cra...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/access_key_type/mod.rs
src/commands/account/add_key/access_key_type/mod.rs
use std::str::FromStr; use inquire::{CustomType, Select, Text}; #[derive(Debug, Clone)] pub struct AccessTypeContext { pub global_context: crate::GlobalContext, pub signer_account_id: near_primitives::types::AccountId, pub permission: near_primitives::account::AccessKeyPermission, } #[derive(Debug, Clone...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/use_manually_provided_seed_phrase/mod.rs
src/commands/account/add_key/use_manually_provided_seed_phrase/mod.rs
use std::str::FromStr; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessTypeContext)] #[interactive_clap(output_context = AddAccessWithSeedPhraseActionContext)] pub struct AddAccessWithSeedPhraseAction { /// Enter the seed-phrase: maste...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/autogenerate_new_keypair/mod.rs
src/commands/account/add_key/autogenerate_new_keypair/mod.rs
use std::str::FromStr; use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod print_keypair_to_terminal; mod save_keypair_to_keychain; mod save_keypair_to_legacy_keychain; #[derive(Debug, Clone, interactive_clap_derive::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessTypeContext...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/autogenerate_new_keypair/print_keypair_to_terminal/mod.rs
src/commands/account/add_key/autogenerate_new_keypair/print_keypair_to_terminal/mod.rs
#[derive(Debug, Clone, interactive_clap_derive::InteractiveClap)] #[interactive_clap(input_context = super::GenerateKeypairContext)] #[interactive_clap(output_context = PrintKeypairToTerminalContext)] pub struct PrintKeypairToTerminal { #[interactive_clap(named_arg)] /// Select network network_config: crate...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/autogenerate_new_keypair/save_keypair_to_keychain/mod.rs
src/commands/account/add_key/autogenerate_new_keypair/save_keypair_to_keychain/mod.rs
#[derive(Debug, Clone, interactive_clap_derive::InteractiveClap)] #[interactive_clap(input_context = super::GenerateKeypairContext)] #[interactive_clap(output_context = SaveKeypairToKeychainContext)] pub struct SaveKeypairToKeychain { #[interactive_clap(named_arg)] /// Select network network_config: crate::...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/autogenerate_new_keypair/save_keypair_to_legacy_keychain/mod.rs
src/commands/account/add_key/autogenerate_new_keypair/save_keypair_to_legacy_keychain/mod.rs
use color_eyre::eyre::Context; #[derive(Debug, Clone, interactive_clap_derive::InteractiveClap)] #[interactive_clap(input_context = super::GenerateKeypairContext)] #[interactive_clap(output_context = SaveKeypairToLegacyKeychainContext)] pub struct SaveKeypairToLegacyKeychain { #[interactive_clap(named_arg)] //...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/use_public_key/mod.rs
src/commands/account/add_key/use_public_key/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessTypeContext)] #[interactive_clap(output_context = AddAccessKeyActionContext)] pub struct AddAccessKeyAction { /// Enter the public key: public_key: crate::types::public_key::PublicKey, ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/use_mpc/mod.rs
src/commands/account/add_key/use_mpc/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessTypeContext)] #[interactive_clap(output_context = AddKeyWithMpcDerivedKeyContext)] pub struct AddKeyWithMpcDerivedKey { #[interactive_cl...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/add_key/use_ledger/mod.rs
src/commands/account/add_key/use_ledger/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = super::access_key_type::AccessTypeContext)] #[interactive_clap(output_context = AddLedgerKeyActionContext)] pub struct AddLedgerKeyAction { #[interactive_clap(long)] #[interactive_clap(skip_default_input_arg)] seed...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/list_keys/mod.rs
src/commands/account/list_keys/mod.rs
use color_eyre::eyre::Context; use crate::common::JsonRpcClientExt; use crate::common::RpcQueryResponseExt; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = ViewListKeysContext)] pub struct ViewListKeys { #[int...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/get_public_key/mod.rs
src/commands/account/get_public_key/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; mod from_keychain; #[cfg(feature = "ledger")] mod from_ledger; mod from_legacy_keychain; mod from_mpc; mod from_plaintext_private_key; mod from_seed_phrase; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(context = crate::GlobalConte...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/get_public_key/from_seed_phrase/mod.rs
src/commands/account/get_public_key/from_seed_phrase/mod.rs
#[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = PublicKeyFromSeedPhraseContext)] pub struct PublicKeyFromSeedPhrase { /// Enter the seed-phrase: master_seed_phrase: String, #[interactive_clap(long)] ...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/get_public_key/from_mpc/mod.rs
src/commands/account/get_public_key/from_mpc/mod.rs
use strum::{EnumDiscriminants, EnumIter, EnumMessage}; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = PublicKeyFromMpcContext)] pub struct PublicKeyFromMpc { #[interactive_clap(skip_default_input_arg)] ///...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false
near/near-cli-rs
https://github.com/near/near-cli-rs/blob/c9cda7bcb76d513c212e347a76ddacdb941ed755/src/commands/account/get_public_key/from_keychain/mod.rs
src/commands/account/get_public_key/from_keychain/mod.rs
use color_eyre::eyre::WrapErr; use crate::common::JsonRpcClientExt; use crate::common::RpcQueryResponseExt; #[derive(Debug, Clone, interactive_clap::InteractiveClap)] #[interactive_clap(input_context = crate::GlobalContext)] #[interactive_clap(output_context = PublicKeyFromKeychainContext)] pub struct PublicKeyFromKe...
rust
Apache-2.0
c9cda7bcb76d513c212e347a76ddacdb941ed755
2026-01-04T20:23:22.593044Z
false