diff --git a/.github/workflows/pinocchio.yml b/.github/workflows/pinocchio.yml index 450c8a93..5d49ca88 100644 --- a/.github/workflows/pinocchio.yml +++ b/.github/workflows/pinocchio.yml @@ -217,6 +217,21 @@ jobs: fi done + # Build the CLI host binary if the project ships one. It is a + # normal host crate (not an on-chain program), so cargo build-sbf + # and the LiteSVM tests never touch it; build it explicitly so its + # client-facing code cannot silently rot. libudev is a build-time + # dependency of hidapi, pulled in via solana-remote-wallet. + if [ -d "cli" ]; then + sudo apt-get update && sudo apt-get install -y libudev-dev + if ! cargo build --manifest-path=./cli/Cargo.toml; then + echo "::error::cli build failed for $project" + echo "$project: cli build failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt + cd - > /dev/null + return 1 + fi + fi + echo "Build and tests succeeded for $project with $solana_version version." cd - > /dev/null return 0 diff --git a/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/Cargo.toml b/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/Cargo.toml index e29193f6..46c44717 100644 --- a/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/Cargo.toml +++ b/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/Cargo.toml @@ -6,17 +6,18 @@ edition = "2021" [dependencies] clap = { version = "3", features = ["cargo"] } futures-util = "0.3.31" -solana-clap-v3-utils = "2.2.0" -solana-cli-config = "2.2.0" -solana-client = "2.2.0" -solana-logger = "2.2.0" -solana-remote-wallet = "2.2.0" -solana-sdk = "2.2.0" -spl-token-client = { version = "0.13.0" } +solana-clap-v3-utils = "3.0.0" +solana-cli-config = "3.0.0" +solana-commitment-config = "3.0.0" +solana-client = "3.0.0" +solana-logger = "3.0.0" +solana-remote-wallet = "3.0.0" +solana-sdk = "3.0.0" +spl-token-client = { version = "0.18.0" } tokio = { version = "1", features = ["full"] } block-list-client = { workspace = true } -spl-tlv-account-resolution = "0.8.1" -spl-transfer-hook-interface = { version = "0.8.2" } +spl-tlv-account-resolution = "0.11.0" +spl-transfer-hook-interface = { version = "2.0.0" } diff --git a/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/src/main.rs b/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/src/main.rs index 27439973..c72edb00 100644 --- a/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/src/main.rs +++ b/tokens/token-extensions/transfer-hook/block-list/pinocchio/cli/src/main.rs @@ -11,9 +11,9 @@ use { keypair::signer_from_path, }, solana_client::nonblocking::rpc_client::RpcClient, + solana_commitment_config::CommitmentConfig, solana_remote_wallet::remote_wallet::RemoteWalletManager, solana_sdk::{ - commitment_config::CommitmentConfig, message::Message, pubkey::Pubkey, signature::{Signature, Signer},