solana-tokens: unpub/remove some helpers (#33937)
* Unpub token helpers * Remove unused method
This commit is contained in:
parent
63abc72e86
commit
25a29c9b7f
|
@ -36,11 +36,7 @@ pub fn update_decimals(client: &RpcClient, args: &mut Option<SplTokenArgs>) -> R
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn spl_token_amount(amount: f64, decimals: u8) -> u64 {
|
pub(crate) fn build_spl_token_instructions(
|
||||||
(amount * 10_usize.pow(decimals as u32) as f64) as u64
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn build_spl_token_instructions(
|
|
||||||
allocation: &Allocation,
|
allocation: &Allocation,
|
||||||
args: &DistributeTokensArgs,
|
args: &DistributeTokensArgs,
|
||||||
do_create_associated_token_account: bool,
|
do_create_associated_token_account: bool,
|
||||||
|
@ -77,7 +73,7 @@ pub fn build_spl_token_instructions(
|
||||||
instructions
|
instructions
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn check_spl_token_balances(
|
pub(crate) fn check_spl_token_balances(
|
||||||
messages: &[Message],
|
messages: &[Message],
|
||||||
allocations: &[Allocation],
|
allocations: &[Allocation],
|
||||||
client: &RpcClient,
|
client: &RpcClient,
|
||||||
|
@ -114,7 +110,7 @@ pub fn check_spl_token_balances(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn print_token_balances(
|
pub(crate) fn print_token_balances(
|
||||||
client: &RpcClient,
|
client: &RpcClient,
|
||||||
allocation: &Allocation,
|
allocation: &Allocation,
|
||||||
spl_token_args: &SplTokenArgs,
|
spl_token_args: &SplTokenArgs,
|
||||||
|
|
Loading…
Reference in New Issue