Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 38b1648

Browse files
committed
update imports in repo
1 parent 1a90cfd commit 38b1648

File tree

16 files changed

+25
-31
lines changed

16 files changed

+25
-31
lines changed

Cargo.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

associated-token-account/program/src/instruction.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
//! Program instructions
22
33
use {
4-
crate::{get_associated_token_address_with_program_id, id},
4+
crate::id,
55
assert_matches::assert_matches,
66
borsh::{BorshDeserialize, BorshSchema, BorshSerialize},
77
solana_program::{
88
instruction::{AccountMeta, Instruction},
99
pubkey::Pubkey,
1010
},
11+
spl_associated_token_address::get_associated_token_address_with_program_id,
1112
};
1213

1314
/// Instructions supported by the AssociatedTokenAccount program

managed-token/program/tests/test.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ use {
1010
system_instruction,
1111
transaction::Transaction,
1212
},
13-
spl_associated_token_account::{
14-
get_associated_token_address, instruction::create_associated_token_account,
15-
},
13+
spl_associated_token_account::instruction::create_associated_token_account,
14+
spl_associated_token_address::get_associated_token_address,
1615
spl_managed_token::instruction::*,
1716
spl_token::state::Account as TokenAccount,
1817
};

single-pool/cli/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ spl-token = { version = "6.0", path = "../../token/program", features = [
3131
"no-entrypoint",
3232
] }
3333
spl-token-client = { version = "0.11.0", path = "../../token/client" }
34-
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = [
35-
"no-entrypoint",
36-
] }
3734
spl-single-pool = { version = "1.0.0", path = "../program", features = [
3835
"no-entrypoint",
3936
] }

single-pool/program/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ solana-security-txt = "1.1.1"
2222
spl-token = { version = "6.0", path = "../../token/program", features = [
2323
"no-entrypoint",
2424
] }
25-
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = [
26-
"no-entrypoint",
27-
] }
2825
thiserror = "1.0"
2926

3027
[dev-dependencies]
3128
solana-program-test = "2.0.0"
3229
solana-sdk = "2.0.0"
3330
solana-vote-program = "2.0.0"
31+
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = [
32+
"no-entrypoint",
33+
] }
34+
spl-associated-token-address = { version = "1.0.0", path = "../../associated-token-address" }
3435
test-case = "3.3"
3536
bincode = "1.3.1"
3637
rand = "0.8.5"

single-pool/program/tests/deposit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use {
1212
stake::state::{Authorized, Lockup},
1313
transaction::Transaction,
1414
},
15-
spl_associated_token_account as atoken,
15+
spl_associated_token_address as atoken,
1616
spl_single_pool::{
1717
error::SinglePoolError, find_default_deposit_account_address, id, instruction,
1818
},

single-pool/program/tests/helpers/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use {
1717
self, vote_instruction,
1818
vote_state::{VoteInit, VoteState},
1919
},
20-
spl_associated_token_account as atoken,
20+
spl_associated_token_address as atoken,
2121
spl_single_pool::{
2222
find_pool_address, find_pool_mint_address, find_pool_mint_authority_address,
2323
find_pool_mpl_authority_address, find_pool_stake_address,

token/cli/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ spl-token-2022 = { version = "4.0.0", path = "../program-2022", features = [
3737
spl-token-client = { version = "0.11.0", path = "../client" }
3838
spl-token-metadata-interface = { version = "0.4.0", path = "../../token-metadata/interface" }
3939
spl-token-group-interface = { version = "0.3.0", path = "../../token-group/interface" }
40-
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = [
41-
"no-entrypoint",
42-
] }
40+
spl-associated-token-address = { version = "1.0.0", path = "../../associated-token-address" }
4341
spl-memo = { version = "5.0", path = "../../memo/program", features = [
4442
"no-entrypoint",
4543
] }
@@ -49,6 +47,7 @@ tokio = "1.38"
4947

5048
[dev-dependencies]
5149
solana-test-validator = "2.0.0"
50+
spl-program-ids = { path = "../../program-ids", version = "1.0.0" }
5251
assert_cmd = "2.0.14"
5352
libtest-mimic = "0.7"
5453
serial_test = "3.1.1"

token/cli/src/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use {
1212
message::Message, native_token::lamports_to_sol, native_token::Sol, program_pack::Pack,
1313
pubkey::Pubkey, signature::Signer, system_instruction,
1414
},
15-
spl_associated_token_account::*,
15+
spl_associated_token_address::get_associated_token_address_with_program_id,
1616
spl_token_2022::{
1717
extension::StateWithExtensions,
1818
instruction,

token/cli/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use {
3434
signature::{Keypair, Signer},
3535
system_program,
3636
},
37-
spl_associated_token_account::get_associated_token_address_with_program_id,
37+
spl_associated_token_address::get_associated_token_address_with_program_id,
3838
spl_token_2022::{
3939
extension::{
4040
confidential_transfer::{

0 commit comments

Comments
 (0)