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

Commit b057f1a

Browse files
committed
update imports in repo
1 parent b6d7964 commit b057f1a

File tree

17 files changed

+25
-33
lines changed

17 files changed

+25
-33
lines changed

Cargo.lock

Lines changed: 4 additions & 4 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
@@ -23,15 +23,16 @@ spl-program-ids = { version = "1.0.0", path = "../../program-ids" }
2323
spl-token = { version = "6.0", path = "../../token/program", features = [
2424
"no-entrypoint",
2525
] }
26-
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = [
27-
"no-entrypoint",
28-
] }
2926
thiserror = "1.0"
3027

3128
[dev-dependencies]
3229
solana-program-test = "2.0.0"
3330
solana-sdk = "2.0.0"
3431
solana-vote-program = "2.0.0"
32+
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = [
33+
"no-entrypoint",
34+
] }
35+
spl-associated-token-address = { version = "1.0.0", path = "../../associated-token-address" }
3536
test-case = "3.3"
3637
bincode = "1.3.1"
3738
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-wrap/program/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ test-sbf = []
1515
bytemuck = { version = "1.16.1", features = ["derive"] }
1616
num_enum = "0.7"
1717
solana-program = "2.0.0"
18-
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = ["no-entrypoint"] }
1918
spl-program-ids = { version = "1.0.0", path = "../../program-ids" }
2019
spl-token = { version = "6.0", path = "../../token/program", features = ["no-entrypoint"] }
2120
spl-token-2022 = { version = "4.0.0", path = "../../token/program-2022", features = ["no-entrypoint"] }

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,

0 commit comments

Comments
 (0)