Skip to content

Commit

Permalink
solana-tokens: unpub/remove some helpers (solana-labs#33937)
Browse files Browse the repository at this point in the history
* Unpub token helpers

* Remove unused method
  • Loading branch information
Tyera authored Nov 1, 2023
1 parent 63abc72 commit 25a29c9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tokens/src/spl_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ pub fn update_decimals(client: &RpcClient, args: &mut Option<SplTokenArgs>) -> R
Ok(())
}

pub fn spl_token_amount(amount: f64, decimals: u8) -> u64 {
(amount * 10_usize.pow(decimals as u32) as f64) as u64
}

pub fn build_spl_token_instructions(
pub(crate) fn build_spl_token_instructions(
allocation: &Allocation,
args: &DistributeTokensArgs,
do_create_associated_token_account: bool,
Expand Down Expand Up @@ -77,7 +73,7 @@ pub fn build_spl_token_instructions(
instructions
}

pub fn check_spl_token_balances(
pub(crate) fn check_spl_token_balances(
messages: &[Message],
allocations: &[Allocation],
client: &RpcClient,
Expand Down Expand Up @@ -114,7 +110,7 @@ pub fn check_spl_token_balances(
Ok(())
}

pub fn print_token_balances(
pub(crate) fn print_token_balances(
client: &RpcClient,
allocation: &Allocation,
spl_token_args: &SplTokenArgs,
Expand Down

0 comments on commit 25a29c9

Please sign in to comment.