Skip to content

Commit d8976b4

Browse files
committed
Rename interface crate
1 parent 918d4ea commit d8976b4

24 files changed

+47
-51
lines changed

Cargo.lock

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

interface/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
2-
name = "token-interface"
2+
name = "spl-token-interface"
33
version = "0.0.0"
4-
description = "Instructions and types for interacting with p-token"
4+
description = "Instructions and types for interacting with SPL Token program"
55
authors = { workspace = true}
66
repository = { workspace = true}
77
license = { workspace = true}

p-token/Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "token-program"
2+
name = "pinocchio-token-program"
33
version = "0.0.0"
44
description = "A pinocchio-based Token program"
55
authors = { workspace = true}
@@ -8,10 +8,6 @@ license = { workspace = true}
88
edition = { workspace = true}
99
readme = "./README.md"
1010

11-
12-
[package.metadata.solana]
13-
program-id = "PToken1111111111111111111111111111111111111"
14-
1511
[lib]
1612
crate-type = ["cdylib"]
1713

@@ -22,7 +18,7 @@ test-sbf = []
2218
[dependencies]
2319
pinocchio = { version = "0.7", git = "https://github.com/febo/pinocchio.git", branch = "febo/close-unstable" }
2420
pinocchio-log = { version = "0.3", git = "https://github.com/febo/pinocchio.git", branch = "febo/close-unstable" }
25-
token-interface = { version = "^0", path = "../interface" }
21+
spl-token-interface = { version = "^0", path = "../interface" }
2622

2723
[dev-dependencies]
2824
assert_matches = "1.5.0"

p-token/src/processor/amount_to_ui_amount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use pinocchio::{
33
account_info::AccountInfo, program::set_return_data, program_error::ProgramError, ProgramResult,
44
};
55
use pinocchio_log::logger::{Argument, Logger};
6-
use token_interface::{
6+
use spl_token_interface::{
77
error::TokenError,
88
state::{load, mint::Mint},
99
};

p-token/src/processor/close_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use pinocchio::{
22
account_info::AccountInfo, program_error::ProgramError, pubkey::Pubkey, ProgramResult,
33
};
4-
use token_interface::{
4+
use spl_token_interface::{
55
error::TokenError,
66
state::{account::Account, load},
77
};

p-token/src/processor/get_account_data_size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use pinocchio::{
22
account_info::AccountInfo, program::set_return_data, program_error::ProgramError, ProgramResult,
33
};
4-
use token_interface::{
4+
use spl_token_interface::{
55
error::TokenError,
66
state::{account::Account, load, mint::Mint, RawType},
77
};

p-token/src/processor/initialize_immutable_owner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use pinocchio::{account_info::AccountInfo, msg, program_error::ProgramError, ProgramResult};
2-
use token_interface::{
2+
use spl_token_interface::{
33
error::TokenError,
44
state::{account::Account, load_unchecked, Initializable},
55
};

p-token/src/processor/initialize_mint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use pinocchio::{
66
sysvars::{rent::Rent, Sysvar},
77
ProgramResult,
88
};
9-
use token_interface::{
9+
use spl_token_interface::{
1010
error::TokenError,
1111
state::{load_mut_unchecked, mint::Mint, Initializable},
1212
};

p-token/src/processor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use pinocchio::{
88
account_info::AccountInfo, memory::sol_memcpy, program_error::ProgramError, pubkey::Pubkey,
99
ProgramResult,
1010
};
11-
use token_interface::{
11+
use spl_token_interface::{
1212
error::TokenError,
1313
program::ID as TOKEN_PROGRAM_ID,
1414
state::{

p-token/src/processor/revoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use pinocchio::{account_info::AccountInfo, program_error::ProgramError, ProgramResult};
2-
use token_interface::{
2+
use spl_token_interface::{
33
error::TokenError,
44
state::{account::Account, load_mut},
55
};

0 commit comments

Comments
 (0)