Skip to content

Commit 19b5ebc

Browse files
committed
build(block-list): CLI on Agave 4.3.2, SDK on the Solana 3 component crates
- cli: solana-clap-v3-utils, solana-cli-config, solana-client and solana-remote-wallet 4.3.2 (behind their agave-unstable-api feature), solana-sdk 4.1, solana-logger 3, spl-tlv-account-resolution 0.11 and spl-transfer-hook-interface 2.1. CommitmentConfig now comes from solana-commitment-config. The unused futures-util and spl-token-client dependencies are dropped. - sdk/rust: the manifest matches what the Codama Rust renderer now generates (solana-address 2, solana-instruction/account-info/cpi 3, thiserror, num-derive), with the optional fetch and serde features. It previously declared the 2.x crates and kaigan, so the generated client did not compile. - build-and-test also builds the CLI, so CI catches it rotting again.
1 parent 369b4bc commit 19b5ebc

5 files changed

Lines changed: 37 additions & 24 deletions

File tree

‎tokens/token-2022/transfer-hook/block-list/pinocchio/cli/Cargo.toml‎

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,18 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
clap = { version = "3", features = ["cargo"] }
8-
futures-util = "0.3.31"
9-
solana-clap-v3-utils = "2.2.0"
10-
solana-cli-config = "2.2.0"
11-
solana-client = "2.2.0"
12-
solana-logger = "2.2.0"
13-
solana-remote-wallet = "2.2.0"
14-
solana-sdk = "2.2.0"
15-
spl-token-client = { version = "0.13.0" }
16-
tokio = { version = "1", features = ["full"] }
177
block-list-client = { workspace = true }
18-
spl-tlv-account-resolution = "0.8.1"
19-
spl-transfer-hook-interface = { version = "0.8.2" }
20-
21-
8+
clap = { version = "3", features = ["cargo"] }
9+
solana-clap-v3-utils = { version = "4.3.2", features = ["agave-unstable-api"] }
10+
solana-cli-config = { version = "4.3.2", features = ["agave-unstable-api"] }
11+
solana-commitment-config = "3.1.1"
12+
solana-client = { version = "4.3.2", features = ["agave-unstable-api"] }
13+
solana-logger = "3.0.0"
14+
solana-remote-wallet = { version = "4.3.2", features = ["agave-unstable-api"] }
15+
solana-sdk = "4.1.0"
16+
spl-tlv-account-resolution = "0.11.4"
17+
spl-transfer-hook-interface = "2.1.0"
18+
tokio = { version = "1.54.1", features = ["full"] }
2219

2320
[[bin]]
2421
name = "block-list-cli"

‎tokens/token-2022/transfer-hook/block-list/pinocchio/cli/src/main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use {
99
keypair::signer_from_path,
1010
},
1111
solana_client::nonblocking::rpc_client::RpcClient,
12+
solana_commitment_config::CommitmentConfig,
1213
solana_remote_wallet::remote_wallet::RemoteWalletManager,
1314
solana_sdk::{
14-
commitment_config::CommitmentConfig,
1515
message::Message,
1616
pubkey::Pubkey,
1717
signature::{Signature, Signer},

‎tokens/token-2022/transfer-hook/block-list/pinocchio/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"generate-sdks": "pnpx tsx codama.ts",
1111
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures",
1212
"test": "cargo test -p block-list",
13-
"build-and-test": "pnpm generate-sdks && pnpm exec tsc --noEmit -p tsconfig.json && pnpm build && pnpm test"
13+
"build-and-test": "pnpm generate-sdks && pnpm exec tsc --noEmit -p tsconfig.json && pnpm build && cargo build -p block-list-cli && pnpm test"
1414
},
1515
"dependencies": {
1616
"@solana/kit": "^8.5.0",

‎tokens/token-2022/transfer-hook/block-list/pinocchio/readme.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ cargo build
101101
pnpm build-and-test
102102
```
103103

104-
This regenerates the SDKs, typechecks the TypeScript client, builds the program, and runs the litesvm tests in [program/tests](program/tests/) covering `init`, `block_wallet`, and `unblock_wallet`. The `setup_extra_metas` and `tx_hook` paths require a token-2022 mint with the transfer-hook extension — see the devnet transactions below for end-to-end examples.
104+
This regenerates the SDKs, typechecks the TypeScript client, builds the program and the CLI, and runs the litesvm tests in [program/tests](program/tests/) covering `init`, `block_wallet`, and `unblock_wallet`. The `setup_extra_metas` and `tx_hook` paths require a token-2022 mint with the transfer-hook extension — see the devnet transactions below for end-to-end examples.
105105

106106
## Setup
107107

‎tokens/token-2022/transfer-hook/block-list/pinocchio/sdk/rust/Cargo.toml‎

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,26 @@ edition = "2021"
77
name = "block_list_client"
88

99
[dependencies]
10-
solana-account-info = "2.2"
11-
solana-cpi = "2.2"
12-
solana-instruction = "2.3"
13-
solana-program-error = "2.2"
14-
solana-pubkey = { version = "2.2", features = ["borsh", "sha2", "curve25519"] }
15-
kaigan = ">=0.2.6"
16-
borsh = "1.5"
10+
borsh = { version = "1.6", features = ["derive"] }
11+
num-derive = "0.4"
12+
num-traits = "0.2"
13+
thiserror = "2.0"
14+
15+
solana-account = { version = "~3.4", optional = true }
16+
solana-account-info = "~3.1"
17+
solana-address = { version = "2.6.0", features = ["borsh", "copy", "curve25519", "decode"] }
18+
solana-cpi = "~3.1"
19+
solana-instruction = { version = "~3.5", features = ["borsh"] }
20+
solana-program-error = "~3.0"
21+
solana-rpc-client = { version = "3.1.8", optional = true }
22+
23+
serde = { version = "1.0", features = ["derive"], optional = true }
24+
serde_with = { version = "3.20", optional = true }
25+
26+
[features]
27+
default = []
28+
serde = ["dep:serde", "dep:serde_with"]
29+
fetch = ["dep:solana-account", "dep:solana-rpc-client"]
30+
31+
[lints.rust]
32+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("anchor", "anchor-idl-build"))'] }

0 commit comments

Comments
 (0)