Browse Source

remove codama sdk for p-block, ts quality check

Ayush 2 months ago
parent
commit
dfce2cba6a
32 changed files with 0 additions and 4303 deletions
  1. 0 12
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/Cargo.toml
  2. 0 163
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/config.rs
  3. 0 155
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/extra_metas.rs
  4. 0 14
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/mod.rs
  5. 0 163
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/wallet_block.rs
  6. 0 6
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/errors/mod.rs
  7. 0 447
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/block_wallet.rs
  8. 0 370
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/init.rs
  9. 0 16
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/mod.rs
  10. 0 483
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/setup_extra_metas.rs
  11. 0 410
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/unblock_wallet.rs
  12. 0 14
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/mod.rs
  13. 0 11
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/programs.rs
  14. 0 21
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/shared.rs
  15. 0 2
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/lib.rs
  16. 0 148
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/config.ts
  17. 0 118
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/extraMetas.ts
  18. 0 11
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/index.ts
  19. 0 131
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/walletBlock.ts
  20. 0 12
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/index.ts
  21. 0 314
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/blockWallet.ts
  22. 0 12
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/index.ts
  23. 0 266
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/init.ts
  24. 0 344
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/setupExtraMetas.ts
  25. 0 292
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/unblockWallet.ts
  26. 0 26
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/config.ts
  27. 0 35
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/extraMetas.ts
  28. 0 11
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/index.ts
  29. 0 35
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/walletBlock.ts
  30. 0 88
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/programs/blockList.ts
  31. 0 9
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/programs/index.ts
  32. 0 164
      tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/shared/index.ts

+ 0 - 12
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/Cargo.toml

@@ -1,12 +0,0 @@
-[package]
-name = "block-list-client"
-version = "0.1.0"
-edition = "2021"
-
-[lib]
-name = "block_list_client"
-
-[dependencies]
-solana-program = "2.2.1"
-kaigan = ">=0.2.6"
-borsh = "^0.10"

+ 0 - 163
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/config.rs

@@ -1,163 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use borsh::BorshDeserialize;
-use borsh::BorshSerialize;
-use solana_program::pubkey::Pubkey;
-
-/// The config PDA account
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct Config {
-    pub discriminator: u8,
-    #[cfg_attr(
-        feature = "serde",
-        serde(with = "serde_with::As::<serde_with::DisplayFromStr>")
-    )]
-    pub authority: Pubkey,
-    pub blocked_wallets_count: u64,
-}
-
-impl Config {
-    pub const LEN: usize = 41;
-
-    /// Prefix values used to generate a PDA for this account.
-    ///
-    /// Values are positional and appear in the following order:
-    ///
-    ///   0. `Config::PREFIX`
-    pub const PREFIX: &'static [u8] = "config".as_bytes();
-
-    pub fn create_pda(
-        bump: u8,
-    ) -> Result<solana_program::pubkey::Pubkey, solana_program::pubkey::PubkeyError> {
-        solana_program::pubkey::Pubkey::create_program_address(
-            &["config".as_bytes(), &[bump]],
-            &crate::BLOCK_LIST_ID,
-        )
-    }
-
-    pub fn find_pda() -> (solana_program::pubkey::Pubkey, u8) {
-        solana_program::pubkey::Pubkey::find_program_address(
-            &["config".as_bytes()],
-            &crate::BLOCK_LIST_ID,
-        )
-    }
-
-    #[inline(always)]
-    pub fn from_bytes(data: &[u8]) -> Result<Self, std::io::Error> {
-        let mut data = data;
-        Self::deserialize(&mut data)
-    }
-}
-
-impl<'a> TryFrom<&solana_program::account_info::AccountInfo<'a>> for Config {
-    type Error = std::io::Error;
-
-    fn try_from(
-        account_info: &solana_program::account_info::AccountInfo<'a>,
-    ) -> Result<Self, Self::Error> {
-        let mut data: &[u8] = &(*account_info.data).borrow();
-        Self::deserialize(&mut data)
-    }
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_config(
-    rpc: &solana_client::rpc_client::RpcClient,
-    address: &solana_program::pubkey::Pubkey,
-) -> Result<crate::shared::DecodedAccount<Config>, std::io::Error> {
-    let accounts = fetch_all_config(rpc, &[*address])?;
-    Ok(accounts[0].clone())
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_all_config(
-    rpc: &solana_client::rpc_client::RpcClient,
-    addresses: &[solana_program::pubkey::Pubkey],
-) -> Result<Vec<crate::shared::DecodedAccount<Config>>, std::io::Error> {
-    let accounts = rpc
-        .get_multiple_accounts(addresses)
-        .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;
-    let mut decoded_accounts: Vec<crate::shared::DecodedAccount<Config>> = Vec::new();
-    for i in 0..addresses.len() {
-        let address = addresses[i];
-        let account = accounts[i].as_ref().ok_or(std::io::Error::new(
-            std::io::ErrorKind::Other,
-            format!("Account not found: {}", address),
-        ))?;
-        let data = Config::from_bytes(&account.data)?;
-        decoded_accounts.push(crate::shared::DecodedAccount {
-            address,
-            account: account.clone(),
-            data,
-        });
-    }
-    Ok(decoded_accounts)
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_maybe_config(
-    rpc: &solana_client::rpc_client::RpcClient,
-    address: &solana_program::pubkey::Pubkey,
-) -> Result<crate::shared::MaybeAccount<Config>, std::io::Error> {
-    let accounts = fetch_all_maybe_config(rpc, &[*address])?;
-    Ok(accounts[0].clone())
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_all_maybe_config(
-    rpc: &solana_client::rpc_client::RpcClient,
-    addresses: &[solana_program::pubkey::Pubkey],
-) -> Result<Vec<crate::shared::MaybeAccount<Config>>, std::io::Error> {
-    let accounts = rpc
-        .get_multiple_accounts(addresses)
-        .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;
-    let mut decoded_accounts: Vec<crate::shared::MaybeAccount<Config>> = Vec::new();
-    for i in 0..addresses.len() {
-        let address = addresses[i];
-        if let Some(account) = accounts[i].as_ref() {
-            let data = Config::from_bytes(&account.data)?;
-            decoded_accounts.push(crate::shared::MaybeAccount::Exists(
-                crate::shared::DecodedAccount {
-                    address,
-                    account: account.clone(),
-                    data,
-                },
-            ));
-        } else {
-            decoded_accounts.push(crate::shared::MaybeAccount::NotFound(address));
-        }
-    }
-    Ok(decoded_accounts)
-}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::AccountDeserialize for Config {
-    fn try_deserialize_unchecked(buf: &mut &[u8]) -> anchor_lang::Result<Self> {
-        Ok(Self::deserialize(buf)?)
-    }
-}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::AccountSerialize for Config {}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::Owner for Config {
-    fn owner() -> Pubkey {
-        crate::BLOCK_LIST_ID
-    }
-}
-
-#[cfg(feature = "anchor-idl-build")]
-impl anchor_lang::IdlBuild for Config {}
-
-#[cfg(feature = "anchor-idl-build")]
-impl anchor_lang::Discriminator for Config {
-    const DISCRIMINATOR: [u8; 8] = [0; 8];
-}

+ 0 - 155
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/extra_metas.rs

@@ -1,155 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use borsh::BorshDeserialize;
-use borsh::BorshSerialize;
-use solana_program::pubkey::Pubkey;
-
-/// The extra metas PDA account
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct ExtraMetas {}
-
-impl ExtraMetas {
-    /// Prefix values used to generate a PDA for this account.
-    ///
-    /// Values are positional and appear in the following order:
-    ///
-    ///   0. `ExtraMetas::PREFIX`
-    ///   1. mint (`Pubkey`)
-    pub const PREFIX: &'static [u8] = "extra-account-metas".as_bytes();
-
-    pub fn create_pda(
-        mint: Pubkey,
-        bump: u8,
-    ) -> Result<solana_program::pubkey::Pubkey, solana_program::pubkey::PubkeyError> {
-        solana_program::pubkey::Pubkey::create_program_address(
-            &["extra-account-metas".as_bytes(), mint.as_ref(), &[bump]],
-            &crate::BLOCK_LIST_ID,
-        )
-    }
-
-    pub fn find_pda(mint: &Pubkey) -> (solana_program::pubkey::Pubkey, u8) {
-        solana_program::pubkey::Pubkey::find_program_address(
-            &["extra-account-metas".as_bytes(), mint.as_ref()],
-            &crate::BLOCK_LIST_ID,
-        )
-    }
-
-    #[inline(always)]
-    pub fn from_bytes(data: &[u8]) -> Result<Self, std::io::Error> {
-        let mut data = data;
-        Self::deserialize(&mut data)
-    }
-}
-
-impl<'a> TryFrom<&solana_program::account_info::AccountInfo<'a>> for ExtraMetas {
-    type Error = std::io::Error;
-
-    fn try_from(
-        account_info: &solana_program::account_info::AccountInfo<'a>,
-    ) -> Result<Self, Self::Error> {
-        let mut data: &[u8] = &(*account_info.data).borrow();
-        Self::deserialize(&mut data)
-    }
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_extra_metas(
-    rpc: &solana_client::rpc_client::RpcClient,
-    address: &solana_program::pubkey::Pubkey,
-) -> Result<crate::shared::DecodedAccount<ExtraMetas>, std::io::Error> {
-    let accounts = fetch_all_extra_metas(rpc, &[*address])?;
-    Ok(accounts[0].clone())
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_all_extra_metas(
-    rpc: &solana_client::rpc_client::RpcClient,
-    addresses: &[solana_program::pubkey::Pubkey],
-) -> Result<Vec<crate::shared::DecodedAccount<ExtraMetas>>, std::io::Error> {
-    let accounts = rpc
-        .get_multiple_accounts(addresses)
-        .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;
-    let mut decoded_accounts: Vec<crate::shared::DecodedAccount<ExtraMetas>> = Vec::new();
-    for i in 0..addresses.len() {
-        let address = addresses[i];
-        let account = accounts[i].as_ref().ok_or(std::io::Error::new(
-            std::io::ErrorKind::Other,
-            format!("Account not found: {}", address),
-        ))?;
-        let data = ExtraMetas::from_bytes(&account.data)?;
-        decoded_accounts.push(crate::shared::DecodedAccount {
-            address,
-            account: account.clone(),
-            data,
-        });
-    }
-    Ok(decoded_accounts)
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_maybe_extra_metas(
-    rpc: &solana_client::rpc_client::RpcClient,
-    address: &solana_program::pubkey::Pubkey,
-) -> Result<crate::shared::MaybeAccount<ExtraMetas>, std::io::Error> {
-    let accounts = fetch_all_maybe_extra_metas(rpc, &[*address])?;
-    Ok(accounts[0].clone())
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_all_maybe_extra_metas(
-    rpc: &solana_client::rpc_client::RpcClient,
-    addresses: &[solana_program::pubkey::Pubkey],
-) -> Result<Vec<crate::shared::MaybeAccount<ExtraMetas>>, std::io::Error> {
-    let accounts = rpc
-        .get_multiple_accounts(addresses)
-        .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;
-    let mut decoded_accounts: Vec<crate::shared::MaybeAccount<ExtraMetas>> = Vec::new();
-    for i in 0..addresses.len() {
-        let address = addresses[i];
-        if let Some(account) = accounts[i].as_ref() {
-            let data = ExtraMetas::from_bytes(&account.data)?;
-            decoded_accounts.push(crate::shared::MaybeAccount::Exists(
-                crate::shared::DecodedAccount {
-                    address,
-                    account: account.clone(),
-                    data,
-                },
-            ));
-        } else {
-            decoded_accounts.push(crate::shared::MaybeAccount::NotFound(address));
-        }
-    }
-    Ok(decoded_accounts)
-}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::AccountDeserialize for ExtraMetas {
-    fn try_deserialize_unchecked(buf: &mut &[u8]) -> anchor_lang::Result<Self> {
-        Ok(Self::deserialize(buf)?)
-    }
-}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::AccountSerialize for ExtraMetas {}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::Owner for ExtraMetas {
-    fn owner() -> Pubkey {
-        crate::BLOCK_LIST_ID
-    }
-}
-
-#[cfg(feature = "anchor-idl-build")]
-impl anchor_lang::IdlBuild for ExtraMetas {}
-
-#[cfg(feature = "anchor-idl-build")]
-impl anchor_lang::Discriminator for ExtraMetas {
-    const DISCRIMINATOR: [u8; 8] = [0; 8];
-}

+ 0 - 14
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/mod.rs

@@ -1,14 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-pub(crate) mod r#config;
-pub(crate) mod r#extra_metas;
-pub(crate) mod r#wallet_block;
-
-pub use self::r#config::*;
-pub use self::r#extra_metas::*;
-pub use self::r#wallet_block::*;

+ 0 - 163
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/accounts/wallet_block.rs

@@ -1,163 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use borsh::BorshDeserialize;
-use borsh::BorshSerialize;
-use solana_program::pubkey::Pubkey;
-
-/// The config PDA account
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct WalletBlock {
-    #[cfg_attr(
-        feature = "serde",
-        serde(with = "serde_with::As::<serde_with::DisplayFromStr>")
-    )]
-    pub authority: Pubkey,
-}
-
-impl WalletBlock {
-    pub const LEN: usize = 33;
-
-    /// Prefix values used to generate a PDA for this account.
-    ///
-    /// Values are positional and appear in the following order:
-    ///
-    ///   0. `WalletBlock::PREFIX`
-    ///   1. wallet (`Pubkey`)
-    pub const PREFIX: &'static [u8] = "wallet_block".as_bytes();
-
-    pub fn create_pda(
-        wallet: Pubkey,
-        bump: u8,
-    ) -> Result<solana_program::pubkey::Pubkey, solana_program::pubkey::PubkeyError> {
-        solana_program::pubkey::Pubkey::create_program_address(
-            &["wallet_block".as_bytes(), wallet.as_ref(), &[bump]],
-            &crate::BLOCK_LIST_ID,
-        )
-    }
-
-    pub fn find_pda(wallet: &Pubkey) -> (solana_program::pubkey::Pubkey, u8) {
-        solana_program::pubkey::Pubkey::find_program_address(
-            &["wallet_block".as_bytes(), wallet.as_ref()],
-            &crate::BLOCK_LIST_ID,
-        )
-    }
-
-    #[inline(always)]
-    pub fn from_bytes(data: &[u8]) -> Result<Self, std::io::Error> {
-        let mut data = data;
-        Self::deserialize(&mut data)
-    }
-}
-
-impl<'a> TryFrom<&solana_program::account_info::AccountInfo<'a>> for WalletBlock {
-    type Error = std::io::Error;
-
-    fn try_from(
-        account_info: &solana_program::account_info::AccountInfo<'a>,
-    ) -> Result<Self, Self::Error> {
-        let mut data: &[u8] = &(*account_info.data).borrow();
-        Self::deserialize(&mut data)
-    }
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_wallet_block(
-    rpc: &solana_client::rpc_client::RpcClient,
-    address: &solana_program::pubkey::Pubkey,
-) -> Result<crate::shared::DecodedAccount<WalletBlock>, std::io::Error> {
-    let accounts = fetch_all_wallet_block(rpc, &[*address])?;
-    Ok(accounts[0].clone())
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_all_wallet_block(
-    rpc: &solana_client::rpc_client::RpcClient,
-    addresses: &[solana_program::pubkey::Pubkey],
-) -> Result<Vec<crate::shared::DecodedAccount<WalletBlock>>, std::io::Error> {
-    let accounts = rpc
-        .get_multiple_accounts(addresses)
-        .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;
-    let mut decoded_accounts: Vec<crate::shared::DecodedAccount<WalletBlock>> = Vec::new();
-    for i in 0..addresses.len() {
-        let address = addresses[i];
-        let account = accounts[i].as_ref().ok_or(std::io::Error::new(
-            std::io::ErrorKind::Other,
-            format!("Account not found: {}", address),
-        ))?;
-        let data = WalletBlock::from_bytes(&account.data)?;
-        decoded_accounts.push(crate::shared::DecodedAccount {
-            address,
-            account: account.clone(),
-            data,
-        });
-    }
-    Ok(decoded_accounts)
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_maybe_wallet_block(
-    rpc: &solana_client::rpc_client::RpcClient,
-    address: &solana_program::pubkey::Pubkey,
-) -> Result<crate::shared::MaybeAccount<WalletBlock>, std::io::Error> {
-    let accounts = fetch_all_maybe_wallet_block(rpc, &[*address])?;
-    Ok(accounts[0].clone())
-}
-
-#[cfg(feature = "fetch")]
-pub fn fetch_all_maybe_wallet_block(
-    rpc: &solana_client::rpc_client::RpcClient,
-    addresses: &[solana_program::pubkey::Pubkey],
-) -> Result<Vec<crate::shared::MaybeAccount<WalletBlock>>, std::io::Error> {
-    let accounts = rpc
-        .get_multiple_accounts(addresses)
-        .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;
-    let mut decoded_accounts: Vec<crate::shared::MaybeAccount<WalletBlock>> = Vec::new();
-    for i in 0..addresses.len() {
-        let address = addresses[i];
-        if let Some(account) = accounts[i].as_ref() {
-            let data = WalletBlock::from_bytes(&account.data)?;
-            decoded_accounts.push(crate::shared::MaybeAccount::Exists(
-                crate::shared::DecodedAccount {
-                    address,
-                    account: account.clone(),
-                    data,
-                },
-            ));
-        } else {
-            decoded_accounts.push(crate::shared::MaybeAccount::NotFound(address));
-        }
-    }
-    Ok(decoded_accounts)
-}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::AccountDeserialize for WalletBlock {
-    fn try_deserialize_unchecked(buf: &mut &[u8]) -> anchor_lang::Result<Self> {
-        Ok(Self::deserialize(buf)?)
-    }
-}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::AccountSerialize for WalletBlock {}
-
-#[cfg(feature = "anchor")]
-impl anchor_lang::Owner for WalletBlock {
-    fn owner() -> Pubkey {
-        crate::BLOCK_LIST_ID
-    }
-}
-
-#[cfg(feature = "anchor-idl-build")]
-impl anchor_lang::IdlBuild for WalletBlock {}
-
-#[cfg(feature = "anchor-idl-build")]
-impl anchor_lang::Discriminator for WalletBlock {
-    const DISCRIMINATOR: [u8; 8] = [0; 8];
-}

+ 0 - 6
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/errors/mod.rs

@@ -1,6 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!

+ 0 - 447
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/block_wallet.rs

@@ -1,447 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use borsh::BorshDeserialize;
-use borsh::BorshSerialize;
-
-/// Accounts.
-#[derive(Debug)]
-pub struct BlockWallet {
-    pub authority: solana_program::pubkey::Pubkey,
-
-    pub config: solana_program::pubkey::Pubkey,
-
-    pub wallet: solana_program::pubkey::Pubkey,
-
-    pub wallet_block: solana_program::pubkey::Pubkey,
-
-    pub system_program: solana_program::pubkey::Pubkey,
-}
-
-impl BlockWallet {
-    pub fn instruction(&self) -> solana_program::instruction::Instruction {
-        self.instruction_with_remaining_accounts(&[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn instruction_with_remaining_accounts(
-        &self,
-        remaining_accounts: &[solana_program::instruction::AccountMeta],
-    ) -> solana_program::instruction::Instruction {
-        let mut accounts = Vec::with_capacity(5 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.authority,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.config,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            self.wallet,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.wallet_block,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            self.system_program,
-            false,
-        ));
-        accounts.extend_from_slice(remaining_accounts);
-        let data = borsh::to_vec(&BlockWalletInstructionData::new()).unwrap();
-
-        solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        }
-    }
-}
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct BlockWalletInstructionData {
-    discriminator: u8,
-}
-
-impl BlockWalletInstructionData {
-    pub fn new() -> Self {
-        Self { discriminator: 242 }
-    }
-}
-
-impl Default for BlockWalletInstructionData {
-    fn default() -> Self {
-        Self::new()
-    }
-}
-
-/// Instruction builder for `BlockWallet`.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[writable]` config
-///   2. `[]` wallet
-///   3. `[writable]` wallet_block
-///   4. `[optional]` system_program (default to `11111111111111111111111111111111`)
-#[derive(Clone, Debug, Default)]
-pub struct BlockWalletBuilder {
-    authority: Option<solana_program::pubkey::Pubkey>,
-    config: Option<solana_program::pubkey::Pubkey>,
-    wallet: Option<solana_program::pubkey::Pubkey>,
-    wallet_block: Option<solana_program::pubkey::Pubkey>,
-    system_program: Option<solana_program::pubkey::Pubkey>,
-    __remaining_accounts: Vec<solana_program::instruction::AccountMeta>,
-}
-
-impl BlockWalletBuilder {
-    pub fn new() -> Self {
-        Self::default()
-    }
-    #[inline(always)]
-    pub fn authority(&mut self, authority: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(&mut self, config: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.config = Some(config);
-        self
-    }
-    #[inline(always)]
-    pub fn wallet(&mut self, wallet: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.wallet = Some(wallet);
-        self
-    }
-    #[inline(always)]
-    pub fn wallet_block(&mut self, wallet_block: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.wallet_block = Some(wallet_block);
-        self
-    }
-    /// `[optional account, default to '11111111111111111111111111111111']`
-    #[inline(always)]
-    pub fn system_program(&mut self, system_program: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.system_program = Some(system_program);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: solana_program::instruction::AccountMeta,
-    ) -> &mut Self {
-        self.__remaining_accounts.push(account);
-        self
-    }
-    /// Add additional accounts to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[solana_program::instruction::AccountMeta],
-    ) -> &mut Self {
-        self.__remaining_accounts.extend_from_slice(accounts);
-        self
-    }
-    #[allow(clippy::clone_on_copy)]
-    pub fn instruction(&self) -> solana_program::instruction::Instruction {
-        let accounts = BlockWallet {
-            authority: self.authority.expect("authority is not set"),
-            config: self.config.expect("config is not set"),
-            wallet: self.wallet.expect("wallet is not set"),
-            wallet_block: self.wallet_block.expect("wallet_block is not set"),
-            system_program: self
-                .system_program
-                .unwrap_or(solana_program::pubkey!("11111111111111111111111111111111")),
-        };
-
-        accounts.instruction_with_remaining_accounts(&self.__remaining_accounts)
-    }
-}
-
-/// `block_wallet` CPI accounts.
-pub struct BlockWalletCpiAccounts<'a, 'b> {
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub wallet: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub wallet_block: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-}
-
-/// `block_wallet` CPI instruction.
-pub struct BlockWalletCpi<'a, 'b> {
-    /// The program to invoke.
-    pub __program: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub wallet: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub wallet_block: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-}
-
-impl<'a, 'b> BlockWalletCpi<'a, 'b> {
-    pub fn new(
-        program: &'b solana_program::account_info::AccountInfo<'a>,
-        accounts: BlockWalletCpiAccounts<'a, 'b>,
-    ) -> Self {
-        Self {
-            __program: program,
-            authority: accounts.authority,
-            config: accounts.config,
-            wallet: accounts.wallet,
-            wallet_block: accounts.wallet_block,
-            system_program: accounts.system_program,
-        }
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], &[])
-    }
-    #[inline(always)]
-    pub fn invoke_with_remaining_accounts(
-        &self,
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], remaining_accounts)
-    }
-    #[inline(always)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(signers_seeds, &[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed_with_remaining_accounts(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let mut accounts = Vec::with_capacity(5 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.authority.key,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.config.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            *self.wallet.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.wallet_block.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            *self.system_program.key,
-            false,
-        ));
-        remaining_accounts.iter().for_each(|remaining_account| {
-            accounts.push(solana_program::instruction::AccountMeta {
-                pubkey: *remaining_account.0.key,
-                is_signer: remaining_account.1,
-                is_writable: remaining_account.2,
-            })
-        });
-        let data = borsh::to_vec(&BlockWalletInstructionData::new()).unwrap();
-
-        let instruction = solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        };
-        let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len());
-        account_infos.push(self.__program.clone());
-        account_infos.push(self.authority.clone());
-        account_infos.push(self.config.clone());
-        account_infos.push(self.wallet.clone());
-        account_infos.push(self.wallet_block.clone());
-        account_infos.push(self.system_program.clone());
-        remaining_accounts
-            .iter()
-            .for_each(|remaining_account| account_infos.push(remaining_account.0.clone()));
-
-        if signers_seeds.is_empty() {
-            solana_program::program::invoke(&instruction, &account_infos)
-        } else {
-            solana_program::program::invoke_signed(&instruction, &account_infos, signers_seeds)
-        }
-    }
-}
-
-/// Instruction builder for `BlockWallet` via CPI.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[writable]` config
-///   2. `[]` wallet
-///   3. `[writable]` wallet_block
-///   4. `[]` system_program
-#[derive(Clone, Debug)]
-pub struct BlockWalletCpiBuilder<'a, 'b> {
-    instruction: Box<BlockWalletCpiBuilderInstruction<'a, 'b>>,
-}
-
-impl<'a, 'b> BlockWalletCpiBuilder<'a, 'b> {
-    pub fn new(program: &'b solana_program::account_info::AccountInfo<'a>) -> Self {
-        let instruction = Box::new(BlockWalletCpiBuilderInstruction {
-            __program: program,
-            authority: None,
-            config: None,
-            wallet: None,
-            wallet_block: None,
-            system_program: None,
-            __remaining_accounts: Vec::new(),
-        });
-        Self { instruction }
-    }
-    #[inline(always)]
-    pub fn authority(
-        &mut self,
-        authority: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(
-        &mut self,
-        config: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.config = Some(config);
-        self
-    }
-    #[inline(always)]
-    pub fn wallet(
-        &mut self,
-        wallet: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.wallet = Some(wallet);
-        self
-    }
-    #[inline(always)]
-    pub fn wallet_block(
-        &mut self,
-        wallet_block: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.wallet_block = Some(wallet_block);
-        self
-    }
-    #[inline(always)]
-    pub fn system_program(
-        &mut self,
-        system_program: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.system_program = Some(system_program);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: &'b solana_program::account_info::AccountInfo<'a>,
-        is_writable: bool,
-        is_signer: bool,
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .push((account, is_writable, is_signer));
-        self
-    }
-    /// Add additional accounts to the instruction.
-    ///
-    /// Each account is represented by a tuple of the `AccountInfo`, a `bool` indicating whether the account is writable or not,
-    /// and a `bool` indicating whether the account is a signer or not.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .extend_from_slice(accounts);
-        self
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed(&[])
-    }
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let instruction = BlockWalletCpi {
-            __program: self.instruction.__program,
-
-            authority: self.instruction.authority.expect("authority is not set"),
-
-            config: self.instruction.config.expect("config is not set"),
-
-            wallet: self.instruction.wallet.expect("wallet is not set"),
-
-            wallet_block: self
-                .instruction
-                .wallet_block
-                .expect("wallet_block is not set"),
-
-            system_program: self
-                .instruction
-                .system_program
-                .expect("system_program is not set"),
-        };
-        instruction.invoke_signed_with_remaining_accounts(
-            signers_seeds,
-            &self.instruction.__remaining_accounts,
-        )
-    }
-}
-
-#[derive(Clone, Debug)]
-struct BlockWalletCpiBuilderInstruction<'a, 'b> {
-    __program: &'b solana_program::account_info::AccountInfo<'a>,
-    authority: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    config: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    wallet: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    wallet_block: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    system_program: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    /// Additional instruction accounts `(AccountInfo, is_writable, is_signer)`.
-    __remaining_accounts: Vec<(
-        &'b solana_program::account_info::AccountInfo<'a>,
-        bool,
-        bool,
-    )>,
-}

+ 0 - 370
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/init.rs

@@ -1,370 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use borsh::BorshDeserialize;
-use borsh::BorshSerialize;
-
-/// Accounts.
-#[derive(Debug)]
-pub struct Init {
-    pub authority: solana_program::pubkey::Pubkey,
-
-    pub config: solana_program::pubkey::Pubkey,
-
-    pub system_program: solana_program::pubkey::Pubkey,
-}
-
-impl Init {
-    pub fn instruction(&self) -> solana_program::instruction::Instruction {
-        self.instruction_with_remaining_accounts(&[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn instruction_with_remaining_accounts(
-        &self,
-        remaining_accounts: &[solana_program::instruction::AccountMeta],
-    ) -> solana_program::instruction::Instruction {
-        let mut accounts = Vec::with_capacity(3 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.authority,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.config,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            self.system_program,
-            false,
-        ));
-        accounts.extend_from_slice(remaining_accounts);
-        let data = borsh::to_vec(&InitInstructionData::new()).unwrap();
-
-        solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        }
-    }
-}
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct InitInstructionData {
-    discriminator: u8,
-}
-
-impl InitInstructionData {
-    pub fn new() -> Self {
-        Self { discriminator: 241 }
-    }
-}
-
-impl Default for InitInstructionData {
-    fn default() -> Self {
-        Self::new()
-    }
-}
-
-/// Instruction builder for `Init`.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[writable]` config
-///   2. `[optional]` system_program (default to `11111111111111111111111111111111`)
-#[derive(Clone, Debug, Default)]
-pub struct InitBuilder {
-    authority: Option<solana_program::pubkey::Pubkey>,
-    config: Option<solana_program::pubkey::Pubkey>,
-    system_program: Option<solana_program::pubkey::Pubkey>,
-    __remaining_accounts: Vec<solana_program::instruction::AccountMeta>,
-}
-
-impl InitBuilder {
-    pub fn new() -> Self {
-        Self::default()
-    }
-    #[inline(always)]
-    pub fn authority(&mut self, authority: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(&mut self, config: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.config = Some(config);
-        self
-    }
-    /// `[optional account, default to '11111111111111111111111111111111']`
-    #[inline(always)]
-    pub fn system_program(&mut self, system_program: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.system_program = Some(system_program);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: solana_program::instruction::AccountMeta,
-    ) -> &mut Self {
-        self.__remaining_accounts.push(account);
-        self
-    }
-    /// Add additional accounts to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[solana_program::instruction::AccountMeta],
-    ) -> &mut Self {
-        self.__remaining_accounts.extend_from_slice(accounts);
-        self
-    }
-    #[allow(clippy::clone_on_copy)]
-    pub fn instruction(&self) -> solana_program::instruction::Instruction {
-        let accounts = Init {
-            authority: self.authority.expect("authority is not set"),
-            config: self.config.expect("config is not set"),
-            system_program: self
-                .system_program
-                .unwrap_or(solana_program::pubkey!("11111111111111111111111111111111")),
-        };
-
-        accounts.instruction_with_remaining_accounts(&self.__remaining_accounts)
-    }
-}
-
-/// `init` CPI accounts.
-pub struct InitCpiAccounts<'a, 'b> {
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-}
-
-/// `init` CPI instruction.
-pub struct InitCpi<'a, 'b> {
-    /// The program to invoke.
-    pub __program: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-}
-
-impl<'a, 'b> InitCpi<'a, 'b> {
-    pub fn new(
-        program: &'b solana_program::account_info::AccountInfo<'a>,
-        accounts: InitCpiAccounts<'a, 'b>,
-    ) -> Self {
-        Self {
-            __program: program,
-            authority: accounts.authority,
-            config: accounts.config,
-            system_program: accounts.system_program,
-        }
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], &[])
-    }
-    #[inline(always)]
-    pub fn invoke_with_remaining_accounts(
-        &self,
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], remaining_accounts)
-    }
-    #[inline(always)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(signers_seeds, &[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed_with_remaining_accounts(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let mut accounts = Vec::with_capacity(3 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.authority.key,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.config.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            *self.system_program.key,
-            false,
-        ));
-        remaining_accounts.iter().for_each(|remaining_account| {
-            accounts.push(solana_program::instruction::AccountMeta {
-                pubkey: *remaining_account.0.key,
-                is_signer: remaining_account.1,
-                is_writable: remaining_account.2,
-            })
-        });
-        let data = borsh::to_vec(&InitInstructionData::new()).unwrap();
-
-        let instruction = solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        };
-        let mut account_infos = Vec::with_capacity(4 + remaining_accounts.len());
-        account_infos.push(self.__program.clone());
-        account_infos.push(self.authority.clone());
-        account_infos.push(self.config.clone());
-        account_infos.push(self.system_program.clone());
-        remaining_accounts
-            .iter()
-            .for_each(|remaining_account| account_infos.push(remaining_account.0.clone()));
-
-        if signers_seeds.is_empty() {
-            solana_program::program::invoke(&instruction, &account_infos)
-        } else {
-            solana_program::program::invoke_signed(&instruction, &account_infos, signers_seeds)
-        }
-    }
-}
-
-/// Instruction builder for `Init` via CPI.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[writable]` config
-///   2. `[]` system_program
-#[derive(Clone, Debug)]
-pub struct InitCpiBuilder<'a, 'b> {
-    instruction: Box<InitCpiBuilderInstruction<'a, 'b>>,
-}
-
-impl<'a, 'b> InitCpiBuilder<'a, 'b> {
-    pub fn new(program: &'b solana_program::account_info::AccountInfo<'a>) -> Self {
-        let instruction = Box::new(InitCpiBuilderInstruction {
-            __program: program,
-            authority: None,
-            config: None,
-            system_program: None,
-            __remaining_accounts: Vec::new(),
-        });
-        Self { instruction }
-    }
-    #[inline(always)]
-    pub fn authority(
-        &mut self,
-        authority: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(
-        &mut self,
-        config: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.config = Some(config);
-        self
-    }
-    #[inline(always)]
-    pub fn system_program(
-        &mut self,
-        system_program: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.system_program = Some(system_program);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: &'b solana_program::account_info::AccountInfo<'a>,
-        is_writable: bool,
-        is_signer: bool,
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .push((account, is_writable, is_signer));
-        self
-    }
-    /// Add additional accounts to the instruction.
-    ///
-    /// Each account is represented by a tuple of the `AccountInfo`, a `bool` indicating whether the account is writable or not,
-    /// and a `bool` indicating whether the account is a signer or not.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .extend_from_slice(accounts);
-        self
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed(&[])
-    }
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let instruction = InitCpi {
-            __program: self.instruction.__program,
-
-            authority: self.instruction.authority.expect("authority is not set"),
-
-            config: self.instruction.config.expect("config is not set"),
-
-            system_program: self
-                .instruction
-                .system_program
-                .expect("system_program is not set"),
-        };
-        instruction.invoke_signed_with_remaining_accounts(
-            signers_seeds,
-            &self.instruction.__remaining_accounts,
-        )
-    }
-}
-
-#[derive(Clone, Debug)]
-struct InitCpiBuilderInstruction<'a, 'b> {
-    __program: &'b solana_program::account_info::AccountInfo<'a>,
-    authority: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    config: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    system_program: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    /// Additional instruction accounts `(AccountInfo, is_writable, is_signer)`.
-    __remaining_accounts: Vec<(
-        &'b solana_program::account_info::AccountInfo<'a>,
-        bool,
-        bool,
-    )>,
-}

+ 0 - 16
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/mod.rs

@@ -1,16 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-pub(crate) mod r#block_wallet;
-pub(crate) mod r#init;
-pub(crate) mod r#setup_extra_metas;
-pub(crate) mod r#unblock_wallet;
-
-pub use self::r#block_wallet::*;
-pub use self::r#init::*;
-pub use self::r#setup_extra_metas::*;
-pub use self::r#unblock_wallet::*;

+ 0 - 483
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/setup_extra_metas.rs

@@ -1,483 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use borsh::BorshDeserialize;
-use borsh::BorshSerialize;
-
-/// Accounts.
-#[derive(Debug)]
-pub struct SetupExtraMetas {
-    pub authority: solana_program::pubkey::Pubkey,
-
-    pub config: solana_program::pubkey::Pubkey,
-
-    pub mint: solana_program::pubkey::Pubkey,
-
-    pub extra_metas: solana_program::pubkey::Pubkey,
-
-    pub system_program: solana_program::pubkey::Pubkey,
-}
-
-impl SetupExtraMetas {
-    pub fn instruction(
-        &self,
-        args: SetupExtraMetasInstructionArgs,
-    ) -> solana_program::instruction::Instruction {
-        self.instruction_with_remaining_accounts(args, &[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn instruction_with_remaining_accounts(
-        &self,
-        args: SetupExtraMetasInstructionArgs,
-        remaining_accounts: &[solana_program::instruction::AccountMeta],
-    ) -> solana_program::instruction::Instruction {
-        let mut accounts = Vec::with_capacity(5 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.authority,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            self.config,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            self.mint, false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.extra_metas,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            self.system_program,
-            false,
-        ));
-        accounts.extend_from_slice(remaining_accounts);
-        let mut data = borsh::to_vec(&SetupExtraMetasInstructionData::new()).unwrap();
-        let mut args = borsh::to_vec(&args).unwrap();
-        data.append(&mut args);
-
-        solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        }
-    }
-}
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct SetupExtraMetasInstructionData {
-    discriminator: u8,
-}
-
-impl SetupExtraMetasInstructionData {
-    pub fn new() -> Self {
-        Self { discriminator: 106 }
-    }
-}
-
-impl Default for SetupExtraMetasInstructionData {
-    fn default() -> Self {
-        Self::new()
-    }
-}
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct SetupExtraMetasInstructionArgs {
-    pub check_both_wallets: bool,
-}
-
-/// Instruction builder for `SetupExtraMetas`.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[]` config
-///   2. `[]` mint
-///   3. `[writable]` extra_metas
-///   4. `[optional]` system_program (default to `11111111111111111111111111111111`)
-#[derive(Clone, Debug, Default)]
-pub struct SetupExtraMetasBuilder {
-    authority: Option<solana_program::pubkey::Pubkey>,
-    config: Option<solana_program::pubkey::Pubkey>,
-    mint: Option<solana_program::pubkey::Pubkey>,
-    extra_metas: Option<solana_program::pubkey::Pubkey>,
-    system_program: Option<solana_program::pubkey::Pubkey>,
-    check_both_wallets: Option<bool>,
-    __remaining_accounts: Vec<solana_program::instruction::AccountMeta>,
-}
-
-impl SetupExtraMetasBuilder {
-    pub fn new() -> Self {
-        Self::default()
-    }
-    #[inline(always)]
-    pub fn authority(&mut self, authority: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(&mut self, config: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.config = Some(config);
-        self
-    }
-    #[inline(always)]
-    pub fn mint(&mut self, mint: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.mint = Some(mint);
-        self
-    }
-    #[inline(always)]
-    pub fn extra_metas(&mut self, extra_metas: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.extra_metas = Some(extra_metas);
-        self
-    }
-    /// `[optional account, default to '11111111111111111111111111111111']`
-    #[inline(always)]
-    pub fn system_program(&mut self, system_program: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.system_program = Some(system_program);
-        self
-    }
-    /// `[optional argument, defaults to 'false']`
-    #[inline(always)]
-    pub fn check_both_wallets(&mut self, check_both_wallets: bool) -> &mut Self {
-        self.check_both_wallets = Some(check_both_wallets);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: solana_program::instruction::AccountMeta,
-    ) -> &mut Self {
-        self.__remaining_accounts.push(account);
-        self
-    }
-    /// Add additional accounts to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[solana_program::instruction::AccountMeta],
-    ) -> &mut Self {
-        self.__remaining_accounts.extend_from_slice(accounts);
-        self
-    }
-    #[allow(clippy::clone_on_copy)]
-    pub fn instruction(&self) -> solana_program::instruction::Instruction {
-        let accounts = SetupExtraMetas {
-            authority: self.authority.expect("authority is not set"),
-            config: self.config.expect("config is not set"),
-            mint: self.mint.expect("mint is not set"),
-            extra_metas: self.extra_metas.expect("extra_metas is not set"),
-            system_program: self
-                .system_program
-                .unwrap_or(solana_program::pubkey!("11111111111111111111111111111111")),
-        };
-        let args = SetupExtraMetasInstructionArgs {
-            check_both_wallets: self.check_both_wallets.clone().unwrap_or(false),
-        };
-
-        accounts.instruction_with_remaining_accounts(args, &self.__remaining_accounts)
-    }
-}
-
-/// `setup_extra_metas` CPI accounts.
-pub struct SetupExtraMetasCpiAccounts<'a, 'b> {
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub mint: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub extra_metas: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-}
-
-/// `setup_extra_metas` CPI instruction.
-pub struct SetupExtraMetasCpi<'a, 'b> {
-    /// The program to invoke.
-    pub __program: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub mint: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub extra_metas: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-    /// The arguments for the instruction.
-    pub __args: SetupExtraMetasInstructionArgs,
-}
-
-impl<'a, 'b> SetupExtraMetasCpi<'a, 'b> {
-    pub fn new(
-        program: &'b solana_program::account_info::AccountInfo<'a>,
-        accounts: SetupExtraMetasCpiAccounts<'a, 'b>,
-        args: SetupExtraMetasInstructionArgs,
-    ) -> Self {
-        Self {
-            __program: program,
-            authority: accounts.authority,
-            config: accounts.config,
-            mint: accounts.mint,
-            extra_metas: accounts.extra_metas,
-            system_program: accounts.system_program,
-            __args: args,
-        }
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], &[])
-    }
-    #[inline(always)]
-    pub fn invoke_with_remaining_accounts(
-        &self,
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], remaining_accounts)
-    }
-    #[inline(always)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(signers_seeds, &[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed_with_remaining_accounts(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let mut accounts = Vec::with_capacity(5 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.authority.key,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            *self.config.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            *self.mint.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.extra_metas.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            *self.system_program.key,
-            false,
-        ));
-        remaining_accounts.iter().for_each(|remaining_account| {
-            accounts.push(solana_program::instruction::AccountMeta {
-                pubkey: *remaining_account.0.key,
-                is_signer: remaining_account.1,
-                is_writable: remaining_account.2,
-            })
-        });
-        let mut data = borsh::to_vec(&SetupExtraMetasInstructionData::new()).unwrap();
-        let mut args = borsh::to_vec(&self.__args).unwrap();
-        data.append(&mut args);
-
-        let instruction = solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        };
-        let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len());
-        account_infos.push(self.__program.clone());
-        account_infos.push(self.authority.clone());
-        account_infos.push(self.config.clone());
-        account_infos.push(self.mint.clone());
-        account_infos.push(self.extra_metas.clone());
-        account_infos.push(self.system_program.clone());
-        remaining_accounts
-            .iter()
-            .for_each(|remaining_account| account_infos.push(remaining_account.0.clone()));
-
-        if signers_seeds.is_empty() {
-            solana_program::program::invoke(&instruction, &account_infos)
-        } else {
-            solana_program::program::invoke_signed(&instruction, &account_infos, signers_seeds)
-        }
-    }
-}
-
-/// Instruction builder for `SetupExtraMetas` via CPI.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[]` config
-///   2. `[]` mint
-///   3. `[writable]` extra_metas
-///   4. `[]` system_program
-#[derive(Clone, Debug)]
-pub struct SetupExtraMetasCpiBuilder<'a, 'b> {
-    instruction: Box<SetupExtraMetasCpiBuilderInstruction<'a, 'b>>,
-}
-
-impl<'a, 'b> SetupExtraMetasCpiBuilder<'a, 'b> {
-    pub fn new(program: &'b solana_program::account_info::AccountInfo<'a>) -> Self {
-        let instruction = Box::new(SetupExtraMetasCpiBuilderInstruction {
-            __program: program,
-            authority: None,
-            config: None,
-            mint: None,
-            extra_metas: None,
-            system_program: None,
-            check_both_wallets: None,
-            __remaining_accounts: Vec::new(),
-        });
-        Self { instruction }
-    }
-    #[inline(always)]
-    pub fn authority(
-        &mut self,
-        authority: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(
-        &mut self,
-        config: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.config = Some(config);
-        self
-    }
-    #[inline(always)]
-    pub fn mint(&mut self, mint: &'b solana_program::account_info::AccountInfo<'a>) -> &mut Self {
-        self.instruction.mint = Some(mint);
-        self
-    }
-    #[inline(always)]
-    pub fn extra_metas(
-        &mut self,
-        extra_metas: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.extra_metas = Some(extra_metas);
-        self
-    }
-    #[inline(always)]
-    pub fn system_program(
-        &mut self,
-        system_program: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.system_program = Some(system_program);
-        self
-    }
-    /// `[optional argument, defaults to 'false']`
-    #[inline(always)]
-    pub fn check_both_wallets(&mut self, check_both_wallets: bool) -> &mut Self {
-        self.instruction.check_both_wallets = Some(check_both_wallets);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: &'b solana_program::account_info::AccountInfo<'a>,
-        is_writable: bool,
-        is_signer: bool,
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .push((account, is_writable, is_signer));
-        self
-    }
-    /// Add additional accounts to the instruction.
-    ///
-    /// Each account is represented by a tuple of the `AccountInfo`, a `bool` indicating whether the account is writable or not,
-    /// and a `bool` indicating whether the account is a signer or not.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .extend_from_slice(accounts);
-        self
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed(&[])
-    }
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let args = SetupExtraMetasInstructionArgs {
-            check_both_wallets: self.instruction.check_both_wallets.clone().unwrap_or(false),
-        };
-        let instruction = SetupExtraMetasCpi {
-            __program: self.instruction.__program,
-
-            authority: self.instruction.authority.expect("authority is not set"),
-
-            config: self.instruction.config.expect("config is not set"),
-
-            mint: self.instruction.mint.expect("mint is not set"),
-
-            extra_metas: self
-                .instruction
-                .extra_metas
-                .expect("extra_metas is not set"),
-
-            system_program: self
-                .instruction
-                .system_program
-                .expect("system_program is not set"),
-            __args: args,
-        };
-        instruction.invoke_signed_with_remaining_accounts(
-            signers_seeds,
-            &self.instruction.__remaining_accounts,
-        )
-    }
-}
-
-#[derive(Clone, Debug)]
-struct SetupExtraMetasCpiBuilderInstruction<'a, 'b> {
-    __program: &'b solana_program::account_info::AccountInfo<'a>,
-    authority: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    config: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    mint: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    extra_metas: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    system_program: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    check_both_wallets: Option<bool>,
-    /// Additional instruction accounts `(AccountInfo, is_writable, is_signer)`.
-    __remaining_accounts: Vec<(
-        &'b solana_program::account_info::AccountInfo<'a>,
-        bool,
-        bool,
-    )>,
-}

+ 0 - 410
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/instructions/unblock_wallet.rs

@@ -1,410 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use borsh::BorshDeserialize;
-use borsh::BorshSerialize;
-
-/// Accounts.
-#[derive(Debug)]
-pub struct UnblockWallet {
-    pub authority: solana_program::pubkey::Pubkey,
-
-    pub config: solana_program::pubkey::Pubkey,
-
-    pub wallet_block: solana_program::pubkey::Pubkey,
-
-    pub system_program: solana_program::pubkey::Pubkey,
-}
-
-impl UnblockWallet {
-    pub fn instruction(&self) -> solana_program::instruction::Instruction {
-        self.instruction_with_remaining_accounts(&[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn instruction_with_remaining_accounts(
-        &self,
-        remaining_accounts: &[solana_program::instruction::AccountMeta],
-    ) -> solana_program::instruction::Instruction {
-        let mut accounts = Vec::with_capacity(4 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.authority,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.config,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            self.wallet_block,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            self.system_program,
-            false,
-        ));
-        accounts.extend_from_slice(remaining_accounts);
-        let data = borsh::to_vec(&UnblockWalletInstructionData::new()).unwrap();
-
-        solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        }
-    }
-}
-
-#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-pub struct UnblockWalletInstructionData {
-    discriminator: u8,
-}
-
-impl UnblockWalletInstructionData {
-    pub fn new() -> Self {
-        Self { discriminator: 243 }
-    }
-}
-
-impl Default for UnblockWalletInstructionData {
-    fn default() -> Self {
-        Self::new()
-    }
-}
-
-/// Instruction builder for `UnblockWallet`.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[writable]` config
-///   2. `[writable]` wallet_block
-///   3. `[optional]` system_program (default to `11111111111111111111111111111111`)
-#[derive(Clone, Debug, Default)]
-pub struct UnblockWalletBuilder {
-    authority: Option<solana_program::pubkey::Pubkey>,
-    config: Option<solana_program::pubkey::Pubkey>,
-    wallet_block: Option<solana_program::pubkey::Pubkey>,
-    system_program: Option<solana_program::pubkey::Pubkey>,
-    __remaining_accounts: Vec<solana_program::instruction::AccountMeta>,
-}
-
-impl UnblockWalletBuilder {
-    pub fn new() -> Self {
-        Self::default()
-    }
-    #[inline(always)]
-    pub fn authority(&mut self, authority: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(&mut self, config: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.config = Some(config);
-        self
-    }
-    #[inline(always)]
-    pub fn wallet_block(&mut self, wallet_block: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.wallet_block = Some(wallet_block);
-        self
-    }
-    /// `[optional account, default to '11111111111111111111111111111111']`
-    #[inline(always)]
-    pub fn system_program(&mut self, system_program: solana_program::pubkey::Pubkey) -> &mut Self {
-        self.system_program = Some(system_program);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: solana_program::instruction::AccountMeta,
-    ) -> &mut Self {
-        self.__remaining_accounts.push(account);
-        self
-    }
-    /// Add additional accounts to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[solana_program::instruction::AccountMeta],
-    ) -> &mut Self {
-        self.__remaining_accounts.extend_from_slice(accounts);
-        self
-    }
-    #[allow(clippy::clone_on_copy)]
-    pub fn instruction(&self) -> solana_program::instruction::Instruction {
-        let accounts = UnblockWallet {
-            authority: self.authority.expect("authority is not set"),
-            config: self.config.expect("config is not set"),
-            wallet_block: self.wallet_block.expect("wallet_block is not set"),
-            system_program: self
-                .system_program
-                .unwrap_or(solana_program::pubkey!("11111111111111111111111111111111")),
-        };
-
-        accounts.instruction_with_remaining_accounts(&self.__remaining_accounts)
-    }
-}
-
-/// `unblock_wallet` CPI accounts.
-pub struct UnblockWalletCpiAccounts<'a, 'b> {
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub wallet_block: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-}
-
-/// `unblock_wallet` CPI instruction.
-pub struct UnblockWalletCpi<'a, 'b> {
-    /// The program to invoke.
-    pub __program: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub authority: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub config: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub wallet_block: &'b solana_program::account_info::AccountInfo<'a>,
-
-    pub system_program: &'b solana_program::account_info::AccountInfo<'a>,
-}
-
-impl<'a, 'b> UnblockWalletCpi<'a, 'b> {
-    pub fn new(
-        program: &'b solana_program::account_info::AccountInfo<'a>,
-        accounts: UnblockWalletCpiAccounts<'a, 'b>,
-    ) -> Self {
-        Self {
-            __program: program,
-            authority: accounts.authority,
-            config: accounts.config,
-            wallet_block: accounts.wallet_block,
-            system_program: accounts.system_program,
-        }
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], &[])
-    }
-    #[inline(always)]
-    pub fn invoke_with_remaining_accounts(
-        &self,
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(&[], remaining_accounts)
-    }
-    #[inline(always)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed_with_remaining_accounts(signers_seeds, &[])
-    }
-    #[allow(clippy::arithmetic_side_effects)]
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed_with_remaining_accounts(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-        remaining_accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let mut accounts = Vec::with_capacity(4 + remaining_accounts.len());
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.authority.key,
-            true,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.config.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new(
-            *self.wallet_block.key,
-            false,
-        ));
-        accounts.push(solana_program::instruction::AccountMeta::new_readonly(
-            *self.system_program.key,
-            false,
-        ));
-        remaining_accounts.iter().for_each(|remaining_account| {
-            accounts.push(solana_program::instruction::AccountMeta {
-                pubkey: *remaining_account.0.key,
-                is_signer: remaining_account.1,
-                is_writable: remaining_account.2,
-            })
-        });
-        let data = borsh::to_vec(&UnblockWalletInstructionData::new()).unwrap();
-
-        let instruction = solana_program::instruction::Instruction {
-            program_id: crate::BLOCK_LIST_ID,
-            accounts,
-            data,
-        };
-        let mut account_infos = Vec::with_capacity(5 + remaining_accounts.len());
-        account_infos.push(self.__program.clone());
-        account_infos.push(self.authority.clone());
-        account_infos.push(self.config.clone());
-        account_infos.push(self.wallet_block.clone());
-        account_infos.push(self.system_program.clone());
-        remaining_accounts
-            .iter()
-            .for_each(|remaining_account| account_infos.push(remaining_account.0.clone()));
-
-        if signers_seeds.is_empty() {
-            solana_program::program::invoke(&instruction, &account_infos)
-        } else {
-            solana_program::program::invoke_signed(&instruction, &account_infos, signers_seeds)
-        }
-    }
-}
-
-/// Instruction builder for `UnblockWallet` via CPI.
-///
-/// ### Accounts:
-///
-///   0. `[writable, signer]` authority
-///   1. `[writable]` config
-///   2. `[writable]` wallet_block
-///   3. `[]` system_program
-#[derive(Clone, Debug)]
-pub struct UnblockWalletCpiBuilder<'a, 'b> {
-    instruction: Box<UnblockWalletCpiBuilderInstruction<'a, 'b>>,
-}
-
-impl<'a, 'b> UnblockWalletCpiBuilder<'a, 'b> {
-    pub fn new(program: &'b solana_program::account_info::AccountInfo<'a>) -> Self {
-        let instruction = Box::new(UnblockWalletCpiBuilderInstruction {
-            __program: program,
-            authority: None,
-            config: None,
-            wallet_block: None,
-            system_program: None,
-            __remaining_accounts: Vec::new(),
-        });
-        Self { instruction }
-    }
-    #[inline(always)]
-    pub fn authority(
-        &mut self,
-        authority: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.authority = Some(authority);
-        self
-    }
-    #[inline(always)]
-    pub fn config(
-        &mut self,
-        config: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.config = Some(config);
-        self
-    }
-    #[inline(always)]
-    pub fn wallet_block(
-        &mut self,
-        wallet_block: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.wallet_block = Some(wallet_block);
-        self
-    }
-    #[inline(always)]
-    pub fn system_program(
-        &mut self,
-        system_program: &'b solana_program::account_info::AccountInfo<'a>,
-    ) -> &mut Self {
-        self.instruction.system_program = Some(system_program);
-        self
-    }
-    /// Add an additional account to the instruction.
-    #[inline(always)]
-    pub fn add_remaining_account(
-        &mut self,
-        account: &'b solana_program::account_info::AccountInfo<'a>,
-        is_writable: bool,
-        is_signer: bool,
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .push((account, is_writable, is_signer));
-        self
-    }
-    /// Add additional accounts to the instruction.
-    ///
-    /// Each account is represented by a tuple of the `AccountInfo`, a `bool` indicating whether the account is writable or not,
-    /// and a `bool` indicating whether the account is a signer or not.
-    #[inline(always)]
-    pub fn add_remaining_accounts(
-        &mut self,
-        accounts: &[(
-            &'b solana_program::account_info::AccountInfo<'a>,
-            bool,
-            bool,
-        )],
-    ) -> &mut Self {
-        self.instruction
-            .__remaining_accounts
-            .extend_from_slice(accounts);
-        self
-    }
-    #[inline(always)]
-    pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
-        self.invoke_signed(&[])
-    }
-    #[allow(clippy::clone_on_copy)]
-    #[allow(clippy::vec_init_then_push)]
-    pub fn invoke_signed(
-        &self,
-        signers_seeds: &[&[&[u8]]],
-    ) -> solana_program::entrypoint::ProgramResult {
-        let instruction = UnblockWalletCpi {
-            __program: self.instruction.__program,
-
-            authority: self.instruction.authority.expect("authority is not set"),
-
-            config: self.instruction.config.expect("config is not set"),
-
-            wallet_block: self
-                .instruction
-                .wallet_block
-                .expect("wallet_block is not set"),
-
-            system_program: self
-                .instruction
-                .system_program
-                .expect("system_program is not set"),
-        };
-        instruction.invoke_signed_with_remaining_accounts(
-            signers_seeds,
-            &self.instruction.__remaining_accounts,
-        )
-    }
-}
-
-#[derive(Clone, Debug)]
-struct UnblockWalletCpiBuilderInstruction<'a, 'b> {
-    __program: &'b solana_program::account_info::AccountInfo<'a>,
-    authority: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    config: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    wallet_block: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    system_program: Option<&'b solana_program::account_info::AccountInfo<'a>>,
-    /// Additional instruction accounts `(AccountInfo, is_writable, is_signer)`.
-    __remaining_accounts: Vec<(
-        &'b solana_program::account_info::AccountInfo<'a>,
-        bool,
-        bool,
-    )>,
-}

+ 0 - 14
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/mod.rs

@@ -1,14 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-pub mod accounts;
-pub mod errors;
-pub mod instructions;
-pub mod programs;
-pub mod shared;
-
-pub(crate) use programs::*;

+ 0 - 11
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/programs.rs

@@ -1,11 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-use solana_program::{pubkey, pubkey::Pubkey};
-
-/// `block_list` program ID.
-pub const BLOCK_LIST_ID: Pubkey = pubkey!("BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf");

+ 0 - 21
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/client/shared.rs

@@ -1,21 +0,0 @@
-//! This code was AUTOGENERATED using the codama library.
-//! Please DO NOT EDIT THIS FILE, instead use visitors
-//! to add features, then rerun codama to update it.
-//!
-//! <https://github.com/codama-idl/codama>
-//!
-
-#[cfg(feature = "fetch")]
-#[derive(Debug, Clone)]
-pub struct DecodedAccount<T> {
-    pub address: solana_program::pubkey::Pubkey,
-    pub account: solana_sdk::account::Account,
-    pub data: T,
-}
-
-#[cfg(feature = "fetch")]
-#[derive(Debug, Clone)]
-pub enum MaybeAccount<T> {
-    Exists(DecodedAccount<T>),
-    NotFound(solana_program::pubkey::Pubkey),
-}

+ 0 - 2
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/rust/src/lib.rs

@@ -1,2 +0,0 @@
-pub mod client;
-pub use client::*;

+ 0 - 148
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/config.ts

@@ -1,148 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  assertAccountExists,
-  assertAccountsExist,
-  combineCodec,
-  decodeAccount,
-  fetchEncodedAccount,
-  fetchEncodedAccounts,
-  getAddressDecoder,
-  getAddressEncoder,
-  getStructDecoder,
-  getStructEncoder,
-  getU64Decoder,
-  getU64Encoder,
-  getU8Decoder,
-  getU8Encoder,
-  type Account,
-  type Address,
-  type Codec,
-  type Decoder,
-  type EncodedAccount,
-  type Encoder,
-  type FetchAccountConfig,
-  type FetchAccountsConfig,
-  type MaybeAccount,
-  type MaybeEncodedAccount,
-} from '@solana/kit';
-import { findConfigPda } from '../pdas';
-
-export const CONFIG_DISCRIMINATOR = 0;
-
-export function getConfigDiscriminatorBytes() {
-  return getU8Encoder().encode(CONFIG_DISCRIMINATOR);
-}
-
-export type Config = {
-  discriminator: number;
-  authority: Address;
-  blockedWalletsCount: bigint;
-};
-
-export type ConfigArgs = {
-  discriminator: number;
-  authority: Address;
-  blockedWalletsCount: number | bigint;
-};
-
-export function getConfigEncoder(): Encoder<ConfigArgs> {
-  return getStructEncoder([
-    ['discriminator', getU8Encoder()],
-    ['authority', getAddressEncoder()],
-    ['blockedWalletsCount', getU64Encoder()],
-  ]);
-}
-
-export function getConfigDecoder(): Decoder<Config> {
-  return getStructDecoder([
-    ['discriminator', getU8Decoder()],
-    ['authority', getAddressDecoder()],
-    ['blockedWalletsCount', getU64Decoder()],
-  ]);
-}
-
-export function getConfigCodec(): Codec<ConfigArgs, Config> {
-  return combineCodec(getConfigEncoder(), getConfigDecoder());
-}
-
-export function decodeConfig<TAddress extends string = string>(
-  encodedAccount: EncodedAccount<TAddress>
-): Account<Config, TAddress>;
-export function decodeConfig<TAddress extends string = string>(
-  encodedAccount: MaybeEncodedAccount<TAddress>
-): MaybeAccount<Config, TAddress>;
-export function decodeConfig<TAddress extends string = string>(
-  encodedAccount: EncodedAccount<TAddress> | MaybeEncodedAccount<TAddress>
-): Account<Config, TAddress> | MaybeAccount<Config, TAddress> {
-  return decodeAccount(
-    encodedAccount as MaybeEncodedAccount<TAddress>,
-    getConfigDecoder()
-  );
-}
-
-export async function fetchConfig<TAddress extends string = string>(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  address: Address<TAddress>,
-  config?: FetchAccountConfig
-): Promise<Account<Config, TAddress>> {
-  const maybeAccount = await fetchMaybeConfig(rpc, address, config);
-  assertAccountExists(maybeAccount);
-  return maybeAccount;
-}
-
-export async function fetchMaybeConfig<TAddress extends string = string>(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  address: Address<TAddress>,
-  config?: FetchAccountConfig
-): Promise<MaybeAccount<Config, TAddress>> {
-  const maybeAccount = await fetchEncodedAccount(rpc, address, config);
-  return decodeConfig(maybeAccount);
-}
-
-export async function fetchAllConfig(
-  rpc: Parameters<typeof fetchEncodedAccounts>[0],
-  addresses: Array<Address>,
-  config?: FetchAccountsConfig
-): Promise<Account<Config>[]> {
-  const maybeAccounts = await fetchAllMaybeConfig(rpc, addresses, config);
-  assertAccountsExist(maybeAccounts);
-  return maybeAccounts;
-}
-
-export async function fetchAllMaybeConfig(
-  rpc: Parameters<typeof fetchEncodedAccounts>[0],
-  addresses: Array<Address>,
-  config?: FetchAccountsConfig
-): Promise<MaybeAccount<Config>[]> {
-  const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
-  return maybeAccounts.map((maybeAccount) => decodeConfig(maybeAccount));
-}
-
-export function getConfigSize(): number {
-  return 41;
-}
-
-export async function fetchConfigFromSeeds(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  config: FetchAccountConfig & { programAddress?: Address } = {}
-): Promise<Account<Config>> {
-  const maybeAccount = await fetchMaybeConfigFromSeeds(rpc, config);
-  assertAccountExists(maybeAccount);
-  return maybeAccount;
-}
-
-export async function fetchMaybeConfigFromSeeds(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  config: FetchAccountConfig & { programAddress?: Address } = {}
-): Promise<MaybeAccount<Config>> {
-  const { programAddress, ...fetchConfig } = config;
-  const [address] = await findConfigPda({ programAddress });
-  return await fetchMaybeConfig(rpc, address, fetchConfig);
-}

+ 0 - 118
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/extraMetas.ts

@@ -1,118 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  assertAccountExists,
-  assertAccountsExist,
-  combineCodec,
-  decodeAccount,
-  fetchEncodedAccount,
-  fetchEncodedAccounts,
-  getStructDecoder,
-  getStructEncoder,
-  type Account,
-  type Address,
-  type Codec,
-  type Decoder,
-  type EncodedAccount,
-  type Encoder,
-  type FetchAccountConfig,
-  type FetchAccountsConfig,
-  type MaybeAccount,
-  type MaybeEncodedAccount,
-} from '@solana/kit';
-import { ExtraMetasSeeds, findExtraMetasPda } from '../pdas';
-
-export type ExtraMetas = {};
-
-export type ExtraMetasArgs = ExtraMetas;
-
-export function getExtraMetasEncoder(): Encoder<ExtraMetasArgs> {
-  return getStructEncoder([]);
-}
-
-export function getExtraMetasDecoder(): Decoder<ExtraMetas> {
-  return getStructDecoder([]);
-}
-
-export function getExtraMetasCodec(): Codec<ExtraMetasArgs, ExtraMetas> {
-  return combineCodec(getExtraMetasEncoder(), getExtraMetasDecoder());
-}
-
-export function decodeExtraMetas<TAddress extends string = string>(
-  encodedAccount: EncodedAccount<TAddress>
-): Account<ExtraMetas, TAddress>;
-export function decodeExtraMetas<TAddress extends string = string>(
-  encodedAccount: MaybeEncodedAccount<TAddress>
-): MaybeAccount<ExtraMetas, TAddress>;
-export function decodeExtraMetas<TAddress extends string = string>(
-  encodedAccount: EncodedAccount<TAddress> | MaybeEncodedAccount<TAddress>
-): Account<ExtraMetas, TAddress> | MaybeAccount<ExtraMetas, TAddress> {
-  return decodeAccount(
-    encodedAccount as MaybeEncodedAccount<TAddress>,
-    getExtraMetasDecoder()
-  );
-}
-
-export async function fetchExtraMetas<TAddress extends string = string>(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  address: Address<TAddress>,
-  config?: FetchAccountConfig
-): Promise<Account<ExtraMetas, TAddress>> {
-  const maybeAccount = await fetchMaybeExtraMetas(rpc, address, config);
-  assertAccountExists(maybeAccount);
-  return maybeAccount;
-}
-
-export async function fetchMaybeExtraMetas<TAddress extends string = string>(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  address: Address<TAddress>,
-  config?: FetchAccountConfig
-): Promise<MaybeAccount<ExtraMetas, TAddress>> {
-  const maybeAccount = await fetchEncodedAccount(rpc, address, config);
-  return decodeExtraMetas(maybeAccount);
-}
-
-export async function fetchAllExtraMetas(
-  rpc: Parameters<typeof fetchEncodedAccounts>[0],
-  addresses: Array<Address>,
-  config?: FetchAccountsConfig
-): Promise<Account<ExtraMetas>[]> {
-  const maybeAccounts = await fetchAllMaybeExtraMetas(rpc, addresses, config);
-  assertAccountsExist(maybeAccounts);
-  return maybeAccounts;
-}
-
-export async function fetchAllMaybeExtraMetas(
-  rpc: Parameters<typeof fetchEncodedAccounts>[0],
-  addresses: Array<Address>,
-  config?: FetchAccountsConfig
-): Promise<MaybeAccount<ExtraMetas>[]> {
-  const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
-  return maybeAccounts.map((maybeAccount) => decodeExtraMetas(maybeAccount));
-}
-
-export async function fetchExtraMetasFromSeeds(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  seeds: ExtraMetasSeeds,
-  config: FetchAccountConfig & { programAddress?: Address } = {}
-): Promise<Account<ExtraMetas>> {
-  const maybeAccount = await fetchMaybeExtraMetasFromSeeds(rpc, seeds, config);
-  assertAccountExists(maybeAccount);
-  return maybeAccount;
-}
-
-export async function fetchMaybeExtraMetasFromSeeds(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  seeds: ExtraMetasSeeds,
-  config: FetchAccountConfig & { programAddress?: Address } = {}
-): Promise<MaybeAccount<ExtraMetas>> {
-  const { programAddress, ...fetchConfig } = config;
-  const [address] = await findExtraMetasPda(seeds, { programAddress });
-  return await fetchMaybeExtraMetas(rpc, address, fetchConfig);
-}

+ 0 - 11
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/index.ts

@@ -1,11 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-export * from './config';
-export * from './extraMetas';
-export * from './walletBlock';

+ 0 - 131
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/accounts/walletBlock.ts

@@ -1,131 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  assertAccountExists,
-  assertAccountsExist,
-  combineCodec,
-  decodeAccount,
-  fetchEncodedAccount,
-  fetchEncodedAccounts,
-  getAddressDecoder,
-  getAddressEncoder,
-  getStructDecoder,
-  getStructEncoder,
-  getU8Encoder,
-  type Account,
-  type Address,
-  type Codec,
-  type Decoder,
-  type EncodedAccount,
-  type Encoder,
-  type FetchAccountConfig,
-  type FetchAccountsConfig,
-  type MaybeAccount,
-  type MaybeEncodedAccount,
-} from '@solana/kit';
-import { WalletBlockSeeds, findWalletBlockPda } from '../pdas';
-
-export const WALLET_BLOCK_DISCRIMINATOR = 1;
-
-export function getWalletBlockDiscriminatorBytes() {
-  return getU8Encoder().encode(WALLET_BLOCK_DISCRIMINATOR);
-}
-
-export type WalletBlock = { authority: Address };
-
-export type WalletBlockArgs = WalletBlock;
-
-export function getWalletBlockEncoder(): Encoder<WalletBlockArgs> {
-  return getStructEncoder([['authority', getAddressEncoder()]]);
-}
-
-export function getWalletBlockDecoder(): Decoder<WalletBlock> {
-  return getStructDecoder([['authority', getAddressDecoder()]]);
-}
-
-export function getWalletBlockCodec(): Codec<WalletBlockArgs, WalletBlock> {
-  return combineCodec(getWalletBlockEncoder(), getWalletBlockDecoder());
-}
-
-export function decodeWalletBlock<TAddress extends string = string>(
-  encodedAccount: EncodedAccount<TAddress>
-): Account<WalletBlock, TAddress>;
-export function decodeWalletBlock<TAddress extends string = string>(
-  encodedAccount: MaybeEncodedAccount<TAddress>
-): MaybeAccount<WalletBlock, TAddress>;
-export function decodeWalletBlock<TAddress extends string = string>(
-  encodedAccount: EncodedAccount<TAddress> | MaybeEncodedAccount<TAddress>
-): Account<WalletBlock, TAddress> | MaybeAccount<WalletBlock, TAddress> {
-  return decodeAccount(
-    encodedAccount as MaybeEncodedAccount<TAddress>,
-    getWalletBlockDecoder()
-  );
-}
-
-export async function fetchWalletBlock<TAddress extends string = string>(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  address: Address<TAddress>,
-  config?: FetchAccountConfig
-): Promise<Account<WalletBlock, TAddress>> {
-  const maybeAccount = await fetchMaybeWalletBlock(rpc, address, config);
-  assertAccountExists(maybeAccount);
-  return maybeAccount;
-}
-
-export async function fetchMaybeWalletBlock<TAddress extends string = string>(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  address: Address<TAddress>,
-  config?: FetchAccountConfig
-): Promise<MaybeAccount<WalletBlock, TAddress>> {
-  const maybeAccount = await fetchEncodedAccount(rpc, address, config);
-  return decodeWalletBlock(maybeAccount);
-}
-
-export async function fetchAllWalletBlock(
-  rpc: Parameters<typeof fetchEncodedAccounts>[0],
-  addresses: Array<Address>,
-  config?: FetchAccountsConfig
-): Promise<Account<WalletBlock>[]> {
-  const maybeAccounts = await fetchAllMaybeWalletBlock(rpc, addresses, config);
-  assertAccountsExist(maybeAccounts);
-  return maybeAccounts;
-}
-
-export async function fetchAllMaybeWalletBlock(
-  rpc: Parameters<typeof fetchEncodedAccounts>[0],
-  addresses: Array<Address>,
-  config?: FetchAccountsConfig
-): Promise<MaybeAccount<WalletBlock>[]> {
-  const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
-  return maybeAccounts.map((maybeAccount) => decodeWalletBlock(maybeAccount));
-}
-
-export function getWalletBlockSize(): number {
-  return 33;
-}
-
-export async function fetchWalletBlockFromSeeds(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  seeds: WalletBlockSeeds,
-  config: FetchAccountConfig & { programAddress?: Address } = {}
-): Promise<Account<WalletBlock>> {
-  const maybeAccount = await fetchMaybeWalletBlockFromSeeds(rpc, seeds, config);
-  assertAccountExists(maybeAccount);
-  return maybeAccount;
-}
-
-export async function fetchMaybeWalletBlockFromSeeds(
-  rpc: Parameters<typeof fetchEncodedAccount>[0],
-  seeds: WalletBlockSeeds,
-  config: FetchAccountConfig & { programAddress?: Address } = {}
-): Promise<MaybeAccount<WalletBlock>> {
-  const { programAddress, ...fetchConfig } = config;
-  const [address] = await findWalletBlockPda(seeds, { programAddress });
-  return await fetchMaybeWalletBlock(rpc, address, fetchConfig);
-}

+ 0 - 12
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/index.ts

@@ -1,12 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-export * from './accounts';
-export * from './instructions';
-export * from './pdas';
-export * from './programs';

+ 0 - 314
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/blockWallet.ts

@@ -1,314 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  combineCodec,
-  getStructDecoder,
-  getStructEncoder,
-  getU8Decoder,
-  getU8Encoder,
-  transformEncoder,
-  type Address,
-  type Codec,
-  type Decoder,
-  type Encoder,
-  type IAccountMeta,
-  type IAccountSignerMeta,
-  type IInstruction,
-  type IInstructionWithAccounts,
-  type IInstructionWithData,
-  type ReadonlyAccount,
-  type TransactionSigner,
-  type WritableAccount,
-  type WritableSignerAccount,
-} from '@solana/kit';
-import { findConfigPda } from '../pdas';
-import { BLOCK_LIST_PROGRAM_ADDRESS } from '../programs';
-import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
-
-export const BLOCK_WALLET_DISCRIMINATOR = 242;
-
-export function getBlockWalletDiscriminatorBytes() {
-  return getU8Encoder().encode(BLOCK_WALLET_DISCRIMINATOR);
-}
-
-export type BlockWalletInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountAuthority extends string | IAccountMeta<string> = string,
-  TAccountConfig extends string | IAccountMeta<string> = string,
-  TAccountWallet extends string | IAccountMeta<string> = string,
-  TAccountWalletBlock extends string | IAccountMeta<string> = string,
-  TAccountSystemProgram extends
-    | string
-    | IAccountMeta<string> = '11111111111111111111111111111111',
-  TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
-> = IInstruction<TProgram> &
-  IInstructionWithData<Uint8Array> &
-  IInstructionWithAccounts<
-    [
-      TAccountAuthority extends string
-        ? WritableSignerAccount<TAccountAuthority> &
-            IAccountSignerMeta<TAccountAuthority>
-        : TAccountAuthority,
-      TAccountConfig extends string
-        ? WritableAccount<TAccountConfig>
-        : TAccountConfig,
-      TAccountWallet extends string
-        ? ReadonlyAccount<TAccountWallet>
-        : TAccountWallet,
-      TAccountWalletBlock extends string
-        ? WritableAccount<TAccountWalletBlock>
-        : TAccountWalletBlock,
-      TAccountSystemProgram extends string
-        ? ReadonlyAccount<TAccountSystemProgram>
-        : TAccountSystemProgram,
-      ...TRemainingAccounts,
-    ]
-  >;
-
-export type BlockWalletInstructionData = { discriminator: number };
-
-export type BlockWalletInstructionDataArgs = {};
-
-export function getBlockWalletInstructionDataEncoder(): Encoder<BlockWalletInstructionDataArgs> {
-  return transformEncoder(
-    getStructEncoder([['discriminator', getU8Encoder()]]),
-    (value) => ({ ...value, discriminator: 242 })
-  );
-}
-
-export function getBlockWalletInstructionDataDecoder(): Decoder<BlockWalletInstructionData> {
-  return getStructDecoder([['discriminator', getU8Decoder()]]);
-}
-
-export function getBlockWalletInstructionDataCodec(): Codec<
-  BlockWalletInstructionDataArgs,
-  BlockWalletInstructionData
-> {
-  return combineCodec(
-    getBlockWalletInstructionDataEncoder(),
-    getBlockWalletInstructionDataDecoder()
-  );
-}
-
-export type BlockWalletAsyncInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountWallet extends string = string,
-  TAccountWalletBlock extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config?: Address<TAccountConfig>;
-  wallet: Address<TAccountWallet>;
-  walletBlock: Address<TAccountWalletBlock>;
-  systemProgram?: Address<TAccountSystemProgram>;
-};
-
-export async function getBlockWalletInstructionAsync<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountWallet extends string,
-  TAccountWalletBlock extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: BlockWalletAsyncInput<
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWallet,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >,
-  config?: { programAddress?: TProgramAddress }
-): Promise<
-  BlockWalletInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWallet,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: true },
-    wallet: { value: input.wallet ?? null, isWritable: false },
-    walletBlock: { value: input.walletBlock ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Resolve default values.
-  if (!accounts.config.value) {
-    accounts.config.value = await findConfigPda();
-  }
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.wallet),
-      getAccountMeta(accounts.walletBlock),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getBlockWalletInstructionDataEncoder().encode({}),
-  } as BlockWalletInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWallet,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type BlockWalletInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountWallet extends string = string,
-  TAccountWalletBlock extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config: Address<TAccountConfig>;
-  wallet: Address<TAccountWallet>;
-  walletBlock: Address<TAccountWalletBlock>;
-  systemProgram?: Address<TAccountSystemProgram>;
-};
-
-export function getBlockWalletInstruction<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountWallet extends string,
-  TAccountWalletBlock extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: BlockWalletInput<
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWallet,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >,
-  config?: { programAddress?: TProgramAddress }
-): BlockWalletInstruction<
-  TProgramAddress,
-  TAccountAuthority,
-  TAccountConfig,
-  TAccountWallet,
-  TAccountWalletBlock,
-  TAccountSystemProgram
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: true },
-    wallet: { value: input.wallet ?? null, isWritable: false },
-    walletBlock: { value: input.walletBlock ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Resolve default values.
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.wallet),
-      getAccountMeta(accounts.walletBlock),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getBlockWalletInstructionDataEncoder().encode({}),
-  } as BlockWalletInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWallet,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type ParsedBlockWalletInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[],
-> = {
-  programAddress: Address<TProgram>;
-  accounts: {
-    authority: TAccountMetas[0];
-    config: TAccountMetas[1];
-    wallet: TAccountMetas[2];
-    walletBlock: TAccountMetas[3];
-    systemProgram: TAccountMetas[4];
-  };
-  data: BlockWalletInstructionData;
-};
-
-export function parseBlockWalletInstruction<
-  TProgram extends string,
-  TAccountMetas extends readonly IAccountMeta[],
->(
-  instruction: IInstruction<TProgram> &
-    IInstructionWithAccounts<TAccountMetas> &
-    IInstructionWithData<Uint8Array>
-): ParsedBlockWalletInstruction<TProgram, TAccountMetas> {
-  if (instruction.accounts.length < 5) {
-    // TODO: Coded error.
-    throw new Error('Not enough accounts');
-  }
-  let accountIndex = 0;
-  const getNextAccount = () => {
-    const accountMeta = instruction.accounts![accountIndex]!;
-    accountIndex += 1;
-    return accountMeta;
-  };
-  return {
-    programAddress: instruction.programAddress,
-    accounts: {
-      authority: getNextAccount(),
-      config: getNextAccount(),
-      wallet: getNextAccount(),
-      walletBlock: getNextAccount(),
-      systemProgram: getNextAccount(),
-    },
-    data: getBlockWalletInstructionDataDecoder().decode(instruction.data),
-  };
-}

+ 0 - 12
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/index.ts

@@ -1,12 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-export * from './blockWallet';
-export * from './init';
-export * from './setupExtraMetas';
-export * from './unblockWallet';

+ 0 - 266
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/init.ts

@@ -1,266 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  combineCodec,
-  getStructDecoder,
-  getStructEncoder,
-  getU8Decoder,
-  getU8Encoder,
-  transformEncoder,
-  type Address,
-  type Codec,
-  type Decoder,
-  type Encoder,
-  type IAccountMeta,
-  type IAccountSignerMeta,
-  type IInstruction,
-  type IInstructionWithAccounts,
-  type IInstructionWithData,
-  type ReadonlyAccount,
-  type TransactionSigner,
-  type WritableAccount,
-  type WritableSignerAccount,
-} from '@solana/kit';
-import { findConfigPda } from '../pdas';
-import { BLOCK_LIST_PROGRAM_ADDRESS } from '../programs';
-import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
-
-export const INIT_DISCRIMINATOR = 241;
-
-export function getInitDiscriminatorBytes() {
-  return getU8Encoder().encode(INIT_DISCRIMINATOR);
-}
-
-export type InitInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountAuthority extends string | IAccountMeta<string> = string,
-  TAccountConfig extends string | IAccountMeta<string> = string,
-  TAccountSystemProgram extends
-    | string
-    | IAccountMeta<string> = '11111111111111111111111111111111',
-  TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
-> = IInstruction<TProgram> &
-  IInstructionWithData<Uint8Array> &
-  IInstructionWithAccounts<
-    [
-      TAccountAuthority extends string
-        ? WritableSignerAccount<TAccountAuthority> &
-            IAccountSignerMeta<TAccountAuthority>
-        : TAccountAuthority,
-      TAccountConfig extends string
-        ? WritableAccount<TAccountConfig>
-        : TAccountConfig,
-      TAccountSystemProgram extends string
-        ? ReadonlyAccount<TAccountSystemProgram>
-        : TAccountSystemProgram,
-      ...TRemainingAccounts,
-    ]
-  >;
-
-export type InitInstructionData = { discriminator: number };
-
-export type InitInstructionDataArgs = {};
-
-export function getInitInstructionDataEncoder(): Encoder<InitInstructionDataArgs> {
-  return transformEncoder(
-    getStructEncoder([['discriminator', getU8Encoder()]]),
-    (value) => ({ ...value, discriminator: 241 })
-  );
-}
-
-export function getInitInstructionDataDecoder(): Decoder<InitInstructionData> {
-  return getStructDecoder([['discriminator', getU8Decoder()]]);
-}
-
-export function getInitInstructionDataCodec(): Codec<
-  InitInstructionDataArgs,
-  InitInstructionData
-> {
-  return combineCodec(
-    getInitInstructionDataEncoder(),
-    getInitInstructionDataDecoder()
-  );
-}
-
-export type InitAsyncInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config?: Address<TAccountConfig>;
-  systemProgram?: Address<TAccountSystemProgram>;
-};
-
-export async function getInitInstructionAsync<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: InitAsyncInput<
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountSystemProgram
-  >,
-  config?: { programAddress?: TProgramAddress }
-): Promise<
-  InitInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountSystemProgram
-  >
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Resolve default values.
-  if (!accounts.config.value) {
-    accounts.config.value = await findConfigPda();
-  }
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getInitInstructionDataEncoder().encode({}),
-  } as InitInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type InitInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config: Address<TAccountConfig>;
-  systemProgram?: Address<TAccountSystemProgram>;
-};
-
-export function getInitInstruction<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: InitInput<TAccountAuthority, TAccountConfig, TAccountSystemProgram>,
-  config?: { programAddress?: TProgramAddress }
-): InitInstruction<
-  TProgramAddress,
-  TAccountAuthority,
-  TAccountConfig,
-  TAccountSystemProgram
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Resolve default values.
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getInitInstructionDataEncoder().encode({}),
-  } as InitInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type ParsedInitInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[],
-> = {
-  programAddress: Address<TProgram>;
-  accounts: {
-    authority: TAccountMetas[0];
-    config: TAccountMetas[1];
-    systemProgram: TAccountMetas[2];
-  };
-  data: InitInstructionData;
-};
-
-export function parseInitInstruction<
-  TProgram extends string,
-  TAccountMetas extends readonly IAccountMeta[],
->(
-  instruction: IInstruction<TProgram> &
-    IInstructionWithAccounts<TAccountMetas> &
-    IInstructionWithData<Uint8Array>
-): ParsedInitInstruction<TProgram, TAccountMetas> {
-  if (instruction.accounts.length < 3) {
-    // TODO: Coded error.
-    throw new Error('Not enough accounts');
-  }
-  let accountIndex = 0;
-  const getNextAccount = () => {
-    const accountMeta = instruction.accounts![accountIndex]!;
-    accountIndex += 1;
-    return accountMeta;
-  };
-  return {
-    programAddress: instruction.programAddress,
-    accounts: {
-      authority: getNextAccount(),
-      config: getNextAccount(),
-      systemProgram: getNextAccount(),
-    },
-    data: getInitInstructionDataDecoder().decode(instruction.data),
-  };
-}

+ 0 - 344
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/setupExtraMetas.ts

@@ -1,344 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  combineCodec,
-  getBooleanDecoder,
-  getBooleanEncoder,
-  getStructDecoder,
-  getStructEncoder,
-  getU8Decoder,
-  getU8Encoder,
-  transformEncoder,
-  type Address,
-  type Codec,
-  type Decoder,
-  type Encoder,
-  type IAccountMeta,
-  type IAccountSignerMeta,
-  type IInstruction,
-  type IInstructionWithAccounts,
-  type IInstructionWithData,
-  type ReadonlyAccount,
-  type TransactionSigner,
-  type WritableAccount,
-  type WritableSignerAccount,
-} from '@solana/kit';
-import { findConfigPda, findExtraMetasPda } from '../pdas';
-import { BLOCK_LIST_PROGRAM_ADDRESS } from '../programs';
-import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
-
-export const SETUP_EXTRA_METAS_DISCRIMINATOR = 106;
-
-export function getSetupExtraMetasDiscriminatorBytes() {
-  return getU8Encoder().encode(SETUP_EXTRA_METAS_DISCRIMINATOR);
-}
-
-export type SetupExtraMetasInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountAuthority extends string | IAccountMeta<string> = string,
-  TAccountConfig extends string | IAccountMeta<string> = string,
-  TAccountMint extends string | IAccountMeta<string> = string,
-  TAccountExtraMetas extends string | IAccountMeta<string> = string,
-  TAccountSystemProgram extends
-    | string
-    | IAccountMeta<string> = '11111111111111111111111111111111',
-  TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
-> = IInstruction<TProgram> &
-  IInstructionWithData<Uint8Array> &
-  IInstructionWithAccounts<
-    [
-      TAccountAuthority extends string
-        ? WritableSignerAccount<TAccountAuthority> &
-            IAccountSignerMeta<TAccountAuthority>
-        : TAccountAuthority,
-      TAccountConfig extends string
-        ? ReadonlyAccount<TAccountConfig>
-        : TAccountConfig,
-      TAccountMint extends string
-        ? ReadonlyAccount<TAccountMint>
-        : TAccountMint,
-      TAccountExtraMetas extends string
-        ? WritableAccount<TAccountExtraMetas>
-        : TAccountExtraMetas,
-      TAccountSystemProgram extends string
-        ? ReadonlyAccount<TAccountSystemProgram>
-        : TAccountSystemProgram,
-      ...TRemainingAccounts,
-    ]
-  >;
-
-export type SetupExtraMetasInstructionData = {
-  discriminator: number;
-  checkBothWallets: boolean;
-};
-
-export type SetupExtraMetasInstructionDataArgs = { checkBothWallets?: boolean };
-
-export function getSetupExtraMetasInstructionDataEncoder(): Encoder<SetupExtraMetasInstructionDataArgs> {
-  return transformEncoder(
-    getStructEncoder([
-      ['discriminator', getU8Encoder()],
-      ['checkBothWallets', getBooleanEncoder()],
-    ]),
-    (value) => ({
-      ...value,
-      discriminator: 106,
-      checkBothWallets: value.checkBothWallets ?? false,
-    })
-  );
-}
-
-export function getSetupExtraMetasInstructionDataDecoder(): Decoder<SetupExtraMetasInstructionData> {
-  return getStructDecoder([
-    ['discriminator', getU8Decoder()],
-    ['checkBothWallets', getBooleanDecoder()],
-  ]);
-}
-
-export function getSetupExtraMetasInstructionDataCodec(): Codec<
-  SetupExtraMetasInstructionDataArgs,
-  SetupExtraMetasInstructionData
-> {
-  return combineCodec(
-    getSetupExtraMetasInstructionDataEncoder(),
-    getSetupExtraMetasInstructionDataDecoder()
-  );
-}
-
-export type SetupExtraMetasAsyncInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountMint extends string = string,
-  TAccountExtraMetas extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config?: Address<TAccountConfig>;
-  mint: Address<TAccountMint>;
-  extraMetas?: Address<TAccountExtraMetas>;
-  systemProgram?: Address<TAccountSystemProgram>;
-  checkBothWallets?: SetupExtraMetasInstructionDataArgs['checkBothWallets'];
-};
-
-export async function getSetupExtraMetasInstructionAsync<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountMint extends string,
-  TAccountExtraMetas extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: SetupExtraMetasAsyncInput<
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountMint,
-    TAccountExtraMetas,
-    TAccountSystemProgram
-  >,
-  config?: { programAddress?: TProgramAddress }
-): Promise<
-  SetupExtraMetasInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountMint,
-    TAccountExtraMetas,
-    TAccountSystemProgram
-  >
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: false },
-    mint: { value: input.mint ?? null, isWritable: false },
-    extraMetas: { value: input.extraMetas ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Original args.
-  const args = { ...input };
-
-  // Resolve default values.
-  if (!accounts.config.value) {
-    accounts.config.value = await findConfigPda();
-  }
-  if (!accounts.extraMetas.value) {
-    accounts.extraMetas.value = await findExtraMetasPda();
-  }
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.mint),
-      getAccountMeta(accounts.extraMetas),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getSetupExtraMetasInstructionDataEncoder().encode(
-      args as SetupExtraMetasInstructionDataArgs
-    ),
-  } as SetupExtraMetasInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountMint,
-    TAccountExtraMetas,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type SetupExtraMetasInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountMint extends string = string,
-  TAccountExtraMetas extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config: Address<TAccountConfig>;
-  mint: Address<TAccountMint>;
-  extraMetas: Address<TAccountExtraMetas>;
-  systemProgram?: Address<TAccountSystemProgram>;
-  checkBothWallets?: SetupExtraMetasInstructionDataArgs['checkBothWallets'];
-};
-
-export function getSetupExtraMetasInstruction<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountMint extends string,
-  TAccountExtraMetas extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: SetupExtraMetasInput<
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountMint,
-    TAccountExtraMetas,
-    TAccountSystemProgram
-  >,
-  config?: { programAddress?: TProgramAddress }
-): SetupExtraMetasInstruction<
-  TProgramAddress,
-  TAccountAuthority,
-  TAccountConfig,
-  TAccountMint,
-  TAccountExtraMetas,
-  TAccountSystemProgram
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: false },
-    mint: { value: input.mint ?? null, isWritable: false },
-    extraMetas: { value: input.extraMetas ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Original args.
-  const args = { ...input };
-
-  // Resolve default values.
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.mint),
-      getAccountMeta(accounts.extraMetas),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getSetupExtraMetasInstructionDataEncoder().encode(
-      args as SetupExtraMetasInstructionDataArgs
-    ),
-  } as SetupExtraMetasInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountMint,
-    TAccountExtraMetas,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type ParsedSetupExtraMetasInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[],
-> = {
-  programAddress: Address<TProgram>;
-  accounts: {
-    authority: TAccountMetas[0];
-    config: TAccountMetas[1];
-    mint: TAccountMetas[2];
-    extraMetas: TAccountMetas[3];
-    systemProgram: TAccountMetas[4];
-  };
-  data: SetupExtraMetasInstructionData;
-};
-
-export function parseSetupExtraMetasInstruction<
-  TProgram extends string,
-  TAccountMetas extends readonly IAccountMeta[],
->(
-  instruction: IInstruction<TProgram> &
-    IInstructionWithAccounts<TAccountMetas> &
-    IInstructionWithData<Uint8Array>
-): ParsedSetupExtraMetasInstruction<TProgram, TAccountMetas> {
-  if (instruction.accounts.length < 5) {
-    // TODO: Coded error.
-    throw new Error('Not enough accounts');
-  }
-  let accountIndex = 0;
-  const getNextAccount = () => {
-    const accountMeta = instruction.accounts![accountIndex]!;
-    accountIndex += 1;
-    return accountMeta;
-  };
-  return {
-    programAddress: instruction.programAddress,
-    accounts: {
-      authority: getNextAccount(),
-      config: getNextAccount(),
-      mint: getNextAccount(),
-      extraMetas: getNextAccount(),
-      systemProgram: getNextAccount(),
-    },
-    data: getSetupExtraMetasInstructionDataDecoder().decode(instruction.data),
-  };
-}

+ 0 - 292
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/instructions/unblockWallet.ts

@@ -1,292 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  combineCodec,
-  getStructDecoder,
-  getStructEncoder,
-  getU8Decoder,
-  getU8Encoder,
-  transformEncoder,
-  type Address,
-  type Codec,
-  type Decoder,
-  type Encoder,
-  type IAccountMeta,
-  type IAccountSignerMeta,
-  type IInstruction,
-  type IInstructionWithAccounts,
-  type IInstructionWithData,
-  type ReadonlyAccount,
-  type TransactionSigner,
-  type WritableAccount,
-  type WritableSignerAccount,
-} from '@solana/kit';
-import { findConfigPda } from '../pdas';
-import { BLOCK_LIST_PROGRAM_ADDRESS } from '../programs';
-import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
-
-export const UNBLOCK_WALLET_DISCRIMINATOR = 243;
-
-export function getUnblockWalletDiscriminatorBytes() {
-  return getU8Encoder().encode(UNBLOCK_WALLET_DISCRIMINATOR);
-}
-
-export type UnblockWalletInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountAuthority extends string | IAccountMeta<string> = string,
-  TAccountConfig extends string | IAccountMeta<string> = string,
-  TAccountWalletBlock extends string | IAccountMeta<string> = string,
-  TAccountSystemProgram extends
-    | string
-    | IAccountMeta<string> = '11111111111111111111111111111111',
-  TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
-> = IInstruction<TProgram> &
-  IInstructionWithData<Uint8Array> &
-  IInstructionWithAccounts<
-    [
-      TAccountAuthority extends string
-        ? WritableSignerAccount<TAccountAuthority> &
-            IAccountSignerMeta<TAccountAuthority>
-        : TAccountAuthority,
-      TAccountConfig extends string
-        ? WritableAccount<TAccountConfig>
-        : TAccountConfig,
-      TAccountWalletBlock extends string
-        ? WritableAccount<TAccountWalletBlock>
-        : TAccountWalletBlock,
-      TAccountSystemProgram extends string
-        ? ReadonlyAccount<TAccountSystemProgram>
-        : TAccountSystemProgram,
-      ...TRemainingAccounts,
-    ]
-  >;
-
-export type UnblockWalletInstructionData = { discriminator: number };
-
-export type UnblockWalletInstructionDataArgs = {};
-
-export function getUnblockWalletInstructionDataEncoder(): Encoder<UnblockWalletInstructionDataArgs> {
-  return transformEncoder(
-    getStructEncoder([['discriminator', getU8Encoder()]]),
-    (value) => ({ ...value, discriminator: 243 })
-  );
-}
-
-export function getUnblockWalletInstructionDataDecoder(): Decoder<UnblockWalletInstructionData> {
-  return getStructDecoder([['discriminator', getU8Decoder()]]);
-}
-
-export function getUnblockWalletInstructionDataCodec(): Codec<
-  UnblockWalletInstructionDataArgs,
-  UnblockWalletInstructionData
-> {
-  return combineCodec(
-    getUnblockWalletInstructionDataEncoder(),
-    getUnblockWalletInstructionDataDecoder()
-  );
-}
-
-export type UnblockWalletAsyncInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountWalletBlock extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config?: Address<TAccountConfig>;
-  walletBlock: Address<TAccountWalletBlock>;
-  systemProgram?: Address<TAccountSystemProgram>;
-};
-
-export async function getUnblockWalletInstructionAsync<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountWalletBlock extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: UnblockWalletAsyncInput<
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >,
-  config?: { programAddress?: TProgramAddress }
-): Promise<
-  UnblockWalletInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: true },
-    walletBlock: { value: input.walletBlock ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Resolve default values.
-  if (!accounts.config.value) {
-    accounts.config.value = await findConfigPda();
-  }
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.walletBlock),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getUnblockWalletInstructionDataEncoder().encode({}),
-  } as UnblockWalletInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type UnblockWalletInput<
-  TAccountAuthority extends string = string,
-  TAccountConfig extends string = string,
-  TAccountWalletBlock extends string = string,
-  TAccountSystemProgram extends string = string,
-> = {
-  authority: TransactionSigner<TAccountAuthority>;
-  config: Address<TAccountConfig>;
-  walletBlock: Address<TAccountWalletBlock>;
-  systemProgram?: Address<TAccountSystemProgram>;
-};
-
-export function getUnblockWalletInstruction<
-  TAccountAuthority extends string,
-  TAccountConfig extends string,
-  TAccountWalletBlock extends string,
-  TAccountSystemProgram extends string,
-  TProgramAddress extends Address = typeof BLOCK_LIST_PROGRAM_ADDRESS,
->(
-  input: UnblockWalletInput<
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >,
-  config?: { programAddress?: TProgramAddress }
-): UnblockWalletInstruction<
-  TProgramAddress,
-  TAccountAuthority,
-  TAccountConfig,
-  TAccountWalletBlock,
-  TAccountSystemProgram
-> {
-  // Program address.
-  const programAddress = config?.programAddress ?? BLOCK_LIST_PROGRAM_ADDRESS;
-
-  // Original accounts.
-  const originalAccounts = {
-    authority: { value: input.authority ?? null, isWritable: true },
-    config: { value: input.config ?? null, isWritable: true },
-    walletBlock: { value: input.walletBlock ?? null, isWritable: true },
-    systemProgram: { value: input.systemProgram ?? null, isWritable: false },
-  };
-  const accounts = originalAccounts as Record<
-    keyof typeof originalAccounts,
-    ResolvedAccount
-  >;
-
-  // Resolve default values.
-  if (!accounts.systemProgram.value) {
-    accounts.systemProgram.value =
-      '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
-  }
-
-  const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
-  const instruction = {
-    accounts: [
-      getAccountMeta(accounts.authority),
-      getAccountMeta(accounts.config),
-      getAccountMeta(accounts.walletBlock),
-      getAccountMeta(accounts.systemProgram),
-    ],
-    programAddress,
-    data: getUnblockWalletInstructionDataEncoder().encode({}),
-  } as UnblockWalletInstruction<
-    TProgramAddress,
-    TAccountAuthority,
-    TAccountConfig,
-    TAccountWalletBlock,
-    TAccountSystemProgram
-  >;
-
-  return instruction;
-}
-
-export type ParsedUnblockWalletInstruction<
-  TProgram extends string = typeof BLOCK_LIST_PROGRAM_ADDRESS,
-  TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[],
-> = {
-  programAddress: Address<TProgram>;
-  accounts: {
-    authority: TAccountMetas[0];
-    config: TAccountMetas[1];
-    walletBlock: TAccountMetas[2];
-    systemProgram: TAccountMetas[3];
-  };
-  data: UnblockWalletInstructionData;
-};
-
-export function parseUnblockWalletInstruction<
-  TProgram extends string,
-  TAccountMetas extends readonly IAccountMeta[],
->(
-  instruction: IInstruction<TProgram> &
-    IInstructionWithAccounts<TAccountMetas> &
-    IInstructionWithData<Uint8Array>
-): ParsedUnblockWalletInstruction<TProgram, TAccountMetas> {
-  if (instruction.accounts.length < 4) {
-    // TODO: Coded error.
-    throw new Error('Not enough accounts');
-  }
-  let accountIndex = 0;
-  const getNextAccount = () => {
-    const accountMeta = instruction.accounts![accountIndex]!;
-    accountIndex += 1;
-    return accountMeta;
-  };
-  return {
-    programAddress: instruction.programAddress,
-    accounts: {
-      authority: getNextAccount(),
-      config: getNextAccount(),
-      walletBlock: getNextAccount(),
-      systemProgram: getNextAccount(),
-    },
-    data: getUnblockWalletInstructionDataDecoder().decode(instruction.data),
-  };
-}

+ 0 - 26
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/config.ts

@@ -1,26 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  getProgramDerivedAddress,
-  getUtf8Encoder,
-  type Address,
-  type ProgramDerivedAddress,
-} from '@solana/kit';
-
-export async function findConfigPda(
-  config: { programAddress?: Address | undefined } = {}
-): Promise<ProgramDerivedAddress> {
-  const {
-    programAddress = 'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf' as Address<'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf'>,
-  } = config;
-  return await getProgramDerivedAddress({
-    programAddress,
-    seeds: [getUtf8Encoder().encode('config')],
-  });
-}

+ 0 - 35
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/extraMetas.ts

@@ -1,35 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  getAddressEncoder,
-  getProgramDerivedAddress,
-  getUtf8Encoder,
-  type Address,
-  type ProgramDerivedAddress,
-} from '@solana/kit';
-
-export type ExtraMetasSeeds = {
-  mint: Address;
-};
-
-export async function findExtraMetasPda(
-  seeds: ExtraMetasSeeds,
-  config: { programAddress?: Address | undefined } = {}
-): Promise<ProgramDerivedAddress> {
-  const {
-    programAddress = 'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf' as Address<'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf'>,
-  } = config;
-  return await getProgramDerivedAddress({
-    programAddress,
-    seeds: [
-      getUtf8Encoder().encode('extra-account-metas'),
-      getAddressEncoder().encode(seeds.mint),
-    ],
-  });
-}

+ 0 - 11
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/index.ts

@@ -1,11 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-export * from './config';
-export * from './extraMetas';
-export * from './walletBlock';

+ 0 - 35
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/pdas/walletBlock.ts

@@ -1,35 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  getAddressEncoder,
-  getProgramDerivedAddress,
-  getUtf8Encoder,
-  type Address,
-  type ProgramDerivedAddress,
-} from '@solana/kit';
-
-export type WalletBlockSeeds = {
-  wallet: Address;
-};
-
-export async function findWalletBlockPda(
-  seeds: WalletBlockSeeds,
-  config: { programAddress?: Address | undefined } = {}
-): Promise<ProgramDerivedAddress> {
-  const {
-    programAddress = 'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf' as Address<'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf'>,
-  } = config;
-  return await getProgramDerivedAddress({
-    programAddress,
-    seeds: [
-      getUtf8Encoder().encode('wallet_block'),
-      getAddressEncoder().encode(seeds.wallet),
-    ],
-  });
-}

+ 0 - 88
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/programs/blockList.ts

@@ -1,88 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  containsBytes,
-  getU8Encoder,
-  type Address,
-  type ReadonlyUint8Array,
-} from '@solana/kit';
-import {
-  type ParsedBlockWalletInstruction,
-  type ParsedInitInstruction,
-  type ParsedSetupExtraMetasInstruction,
-  type ParsedUnblockWalletInstruction,
-} from '../instructions';
-
-export const BLOCK_LIST_PROGRAM_ADDRESS =
-  'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf' as Address<'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf'>;
-
-export enum BlockListAccount {
-  Config,
-  WalletBlock,
-  ExtraMetas,
-}
-
-export function identifyBlockListAccount(
-  account: { data: ReadonlyUint8Array } | ReadonlyUint8Array
-): BlockListAccount {
-  const data = 'data' in account ? account.data : account;
-  if (containsBytes(data, getU8Encoder().encode(0), 0)) {
-    return BlockListAccount.Config;
-  }
-  if (containsBytes(data, getU8Encoder().encode(1), 0)) {
-    return BlockListAccount.WalletBlock;
-  }
-  throw new Error(
-    'The provided account could not be identified as a blockList account.'
-  );
-}
-
-export enum BlockListInstruction {
-  Init,
-  BlockWallet,
-  UnblockWallet,
-  SetupExtraMetas,
-}
-
-export function identifyBlockListInstruction(
-  instruction: { data: ReadonlyUint8Array } | ReadonlyUint8Array
-): BlockListInstruction {
-  const data = 'data' in instruction ? instruction.data : instruction;
-  if (containsBytes(data, getU8Encoder().encode(241), 0)) {
-    return BlockListInstruction.Init;
-  }
-  if (containsBytes(data, getU8Encoder().encode(242), 0)) {
-    return BlockListInstruction.BlockWallet;
-  }
-  if (containsBytes(data, getU8Encoder().encode(243), 0)) {
-    return BlockListInstruction.UnblockWallet;
-  }
-  if (containsBytes(data, getU8Encoder().encode(106), 0)) {
-    return BlockListInstruction.SetupExtraMetas;
-  }
-  throw new Error(
-    'The provided instruction could not be identified as a blockList instruction.'
-  );
-}
-
-export type ParsedBlockListInstruction<
-  TProgram extends string = 'BLoCKLSG2qMQ9YxEyrrKKAQzthvW4Lu8Eyv74axF6mf',
-> =
-  | ({
-      instructionType: BlockListInstruction.Init;
-    } & ParsedInitInstruction<TProgram>)
-  | ({
-      instructionType: BlockListInstruction.BlockWallet;
-    } & ParsedBlockWalletInstruction<TProgram>)
-  | ({
-      instructionType: BlockListInstruction.UnblockWallet;
-    } & ParsedUnblockWalletInstruction<TProgram>)
-  | ({
-      instructionType: BlockListInstruction.SetupExtraMetas;
-    } & ParsedSetupExtraMetasInstruction<TProgram>);

+ 0 - 9
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/programs/index.ts

@@ -1,9 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-export * from './blockList';

+ 0 - 164
tokens/token-2022/transfer-hook/pblock-list/pinocchio/sdk/ts/src/shared/index.ts

@@ -1,164 +0,0 @@
-/**
- * This code was AUTOGENERATED using the codama library.
- * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun codama to update it.
- *
- * @see https://github.com/codama-idl/codama
- */
-
-import {
-  AccountRole,
-  isProgramDerivedAddress,
-  isTransactionSigner as kitIsTransactionSigner,
-  type Address,
-  type IAccountMeta,
-  type IAccountSignerMeta,
-  type ProgramDerivedAddress,
-  type TransactionSigner,
-  upgradeRoleToSigner,
-} from '@solana/kit';
-
-/**
- * Asserts that the given value is not null or undefined.
- * @internal
- */
-export function expectSome<T>(value: T | null | undefined): T {
-  if (value == null) {
-    throw new Error('Expected a value but received null or undefined.');
-  }
-  return value;
-}
-
-/**
- * Asserts that the given value is a PublicKey.
- * @internal
- */
-export function expectAddress<T extends string = string>(
-  value:
-    | Address<T>
-    | ProgramDerivedAddress<T>
-    | TransactionSigner<T>
-    | null
-    | undefined
-): Address<T> {
-  if (!value) {
-    throw new Error('Expected a Address.');
-  }
-  if (typeof value === 'object' && 'address' in value) {
-    return value.address;
-  }
-  if (Array.isArray(value)) {
-    return value[0];
-  }
-  return value as Address<T>;
-}
-
-/**
- * Asserts that the given value is a PDA.
- * @internal
- */
-export function expectProgramDerivedAddress<T extends string = string>(
-  value:
-    | Address<T>
-    | ProgramDerivedAddress<T>
-    | TransactionSigner<T>
-    | null
-    | undefined
-): ProgramDerivedAddress<T> {
-  if (!value || !Array.isArray(value) || !isProgramDerivedAddress(value)) {
-    throw new Error('Expected a ProgramDerivedAddress.');
-  }
-  return value;
-}
-
-/**
- * Asserts that the given value is a TransactionSigner.
- * @internal
- */
-export function expectTransactionSigner<T extends string = string>(
-  value:
-    | Address<T>
-    | ProgramDerivedAddress<T>
-    | TransactionSigner<T>
-    | null
-    | undefined
-): TransactionSigner<T> {
-  if (!value || !isTransactionSigner(value)) {
-    throw new Error('Expected a TransactionSigner.');
-  }
-  return value;
-}
-
-/**
- * Defines an instruction account to resolve.
- * @internal
- */
-export type ResolvedAccount<
-  T extends string = string,
-  U extends
-    | Address<T>
-    | ProgramDerivedAddress<T>
-    | TransactionSigner<T>
-    | null =
-    | Address<T>
-    | ProgramDerivedAddress<T>
-    | TransactionSigner<T>
-    | null,
-> = {
-  isWritable: boolean;
-  value: U;
-};
-
-/**
- * Defines an instruction that stores additional bytes on-chain.
- * @internal
- */
-export type IInstructionWithByteDelta = {
-  byteDelta: number;
-};
-
-/**
- * Get account metas and signers from resolved accounts.
- * @internal
- */
-export function getAccountMetaFactory(
-  programAddress: Address,
-  optionalAccountStrategy: 'omitted' | 'programId'
-) {
-  return (
-    account: ResolvedAccount
-  ): IAccountMeta | IAccountSignerMeta | undefined => {
-    if (!account.value) {
-      if (optionalAccountStrategy === 'omitted') return;
-      return Object.freeze({
-        address: programAddress,
-        role: AccountRole.READONLY,
-      });
-    }
-
-    const writableRole = account.isWritable
-      ? AccountRole.WRITABLE
-      : AccountRole.READONLY;
-    return Object.freeze({
-      address: expectAddress(account.value),
-      role: isTransactionSigner(account.value)
-        ? upgradeRoleToSigner(writableRole)
-        : writableRole,
-      ...(isTransactionSigner(account.value) ? { signer: account.value } : {}),
-    });
-  };
-}
-
-export function isTransactionSigner<TAddress extends string = string>(
-  value:
-    | Address<TAddress>
-    | ProgramDerivedAddress<TAddress>
-    | TransactionSigner<TAddress>
-): value is TransactionSigner<TAddress> {
-  return (
-    !!value &&
-    typeof value === 'object' &&
-    'address' in value &&
-    kitIsTransactionSigner(value)
-  );
-}