Skip to content

Commit baa8beb

Browse files
committed
Remove pubkey crate
1 parent 77e3f90 commit baa8beb

File tree

15 files changed

+23
-305
lines changed

15 files changed

+23
-305
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ members = [
99
"sdk/log/crate",
1010
"sdk/log/macro",
1111
"sdk/pinocchio",
12-
"sdk/pubkey",
1312
]
1413

1514
[workspace.package]
@@ -22,10 +21,9 @@ rust-version = "1.84"
2221
five8_const = "0.1.4"
2322
pinocchio = { version = "0.9", path = "sdk/pinocchio" }
2423
pinocchio-log-macro = { version = "0.5", path = "sdk/log/macro" }
25-
pinocchio-pubkey = { version = "0.3", path = "sdk/pubkey" }
2624
quote = "1.0"
2725
regex = "1"
28-
solana-address = { version = "1.0", git = "https://github.com/anza-xyz/solana-sdk.git" }
26+
solana-address = { version = "1.0", git = "https://github.com/febo/solana-sdk.git", branch = "derive-address" }
2927
syn = "1.0"
3028

3129
[workspace.metadata.cli]

programs/associated-token-account/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ crate-type = ["rlib"]
1313

1414
[dependencies]
1515
pinocchio = { workspace = true }
16-
pinocchio-pubkey = { workspace = true }
16+
solana-address = { workspace = true, features = ["decode"] }

programs/associated-token-account/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
pub mod instructions;
44

5-
pinocchio_pubkey::declare_id!("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
5+
solana_address::declare_id!("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");

programs/memo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ crate-type = ["rlib"]
1313

1414
[dependencies]
1515
pinocchio = { workspace = true }
16-
pinocchio-pubkey = { workspace = true }
16+
solana-address = { workspace = true, features = ["decode"] }

programs/memo/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub mod instructions;
44

55
/// Legacy symbols from Memo version 1
66
pub mod v1 {
7-
pinocchio_pubkey::declare_id!("Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo");
7+
solana_address::declare_id!("Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo");
88
}
99

10-
pinocchio_pubkey::declare_id!("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr");
10+
solana_address::declare_id!("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr");

programs/system/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ crate-type = ["rlib"]
1313

1414
[dependencies]
1515
pinocchio = { workspace = true }
16-
pinocchio-pubkey = { workspace = true }
16+
solana-address = { workspace = true, features = ["decode"] }

programs/system/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
pub mod instructions;
44

5-
pinocchio_pubkey::declare_id!("11111111111111111111111111111111");
5+
solana_address::declare_id!("11111111111111111111111111111111");

programs/token-2022/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ crate-type = ["rlib"]
1212

1313
[dependencies]
1414
pinocchio = { workspace = true }
15-
pinocchio-pubkey = { workspace = true }
15+
solana-address = { workspace = true, features = ["decode"] }

programs/token-2022/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
pub mod instructions;
44
pub mod state;
55

6-
pinocchio_pubkey::declare_id!("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
7-
86
use core::mem::MaybeUninit;
97

8+
solana_address::declare_id!("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
9+
1010
const UNINIT_BYTE: MaybeUninit<u8> = MaybeUninit::<u8>::uninit();
1111

1212
#[inline(always)]

0 commit comments

Comments
 (0)