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

Commit 2815165

Browse files
committed
Relocate program2 into program
1 parent 20b6ee0 commit 2815165

19 files changed

+68
-197
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ members = [
55
"token-swap/program",
66
"token/cli",
77
"token/program",
8-
"token/program2",
98
]
109

1110
# Workflow for developing against local Solana crates

ci/client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ edition = "2018"
1111
solana-sdk = "1.3.4"
1212
spl-memo = { path = "../../memo/program" }
1313
spl-token = { path = "../../token/program" }
14-
spl-token2 = { path = "../../token/program2" }
1514
spl-token-swap = { path = "../../token-swap/program" }
1615

ci/client/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ fn main() {
55
println!("Yes have some memo_dep {:?}", memo_dep);
66
let token_dep = spl_token::id();
77
println!("Yes have some token_dep {:?}", token_dep);
8-
let token2_dep = spl_token2::id();
9-
println!("Yes have some token2_dep {:?}", token2_dep);
108
let token_swap_dep = spl_token_swap::id();
119
println!("Yes have some token_swap_dep {:?}", token_swap_dep);
1210
}

ci/script.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ _ cargo run --manifest-path=ci/client/Cargo.toml
3737
_ git diff --exit-code token/program/inc/token.h
3838
_ cc token/program/inc/token.h -o target/token.gch
3939

40-
_ git diff --exit-code token/program2/inc/token2.h
41-
_ cc token/program2/inc/token2.h -o target/token2.gch
42-
4340
_ git diff --exit-code token-swap/program/inc/token-swap.h
4441
_ cc token-swap/program/inc/token-swap.h -o target/token-swap.gch
4542

coverage.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ if [[ -z $1 ]]; then
2323
programs=(
2424
memo/program
2525
token/program
26-
token/program2
2726
token-swap/program
2827
)
2928
else

token/program2/Cargo.toml renamed to token/program/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Note: This crate must be built using do.sh
33

44
[package]
5-
name = "spl-token2"
6-
version = "1.0.0"
7-
description = "Solana Program Library Token 2"
5+
name = "spl-token"
6+
version = "1.1.0"
7+
description = "Solana Program Library Token"
88
authors = ["Solana Maintainers <[email protected]>"]
99
repository = "https://github.com/solana-labs/solana-program-library"
1010
license = "Apache-2.0"
File renamed without changes.

token/program2/build.rs renamed to token/program/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::env;
44

55
fn main() {
66
println!("cargo:rerun-if-env-changed=SPL_CBINDGEN");
7-
println!("cargo:rerun-if-changed=inc/token2.h");
8-
if std::path::Path::new("inc/token2.h").exists() && env::var("SPL_CBINDGEN").is_err() {
7+
println!("cargo:rerun-if-changed=inc/token.h");
8+
if std::path::Path::new("inc/token.h").exists() && env::var("SPL_CBINDGEN").is_err() {
99
return;
1010
}
1111

12-
println!("cargo:warning=Generating inc/token2.h");
12+
println!("cargo:warning=Generating inc/token.h");
1313
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
1414
let config = cbindgen::Config {
1515
header: Some("/* Autogenerated SPL Token program C Bindings */".to_string()),
@@ -61,5 +61,5 @@ fn main() {
6161
.with_config(config)
6262
.generate()
6363
.unwrap()
64-
.write_to_file("inc/token2.h");
64+
.write_to_file("inc/token.h");
6565
}

0 commit comments

Comments
 (0)