
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@openzeppelin/contracts-ui-builder-adapter-solana
Advanced tools
Solana Adapter for Contracts UI Builder
@openzeppelin/contracts-ui-builder-adapter-solana
)This package provides the ContractAdapter
implementation for the Solana blockchain for the UI Builder.
Note: While the basic structure is in place, including network configuration definitions, the core adapter logic for Solana-specific operations is currently a placeholder and will be implemented in future development phases.
It is intended to be responsible for:
ContractAdapter
interface from @openzeppelin/contracts-ui-builder-types
.SolanaNetworkConfig
objects. These are located in src/networks/
and include details like RPC endpoints, cluster information, explorer URLs, and commitment levels.SolanaNetworkConfig
.@solana/wallet-adapter-base
) for signing and sending transactions on the configured network.Once fully implemented, the SolanaAdapter
class will be instantiated with a specific SolanaNetworkConfig
object:
// Example: import { solanaMainnetBeta } from '@openzeppelin/contracts-ui-builder-adapter-solana';
import { SolanaAdapter } from '@openzeppelin/contracts-ui-builder-adapter-solana';
import { SolanaNetworkConfig } from '@openzeppelin/contracts-ui-builder-types';
// For type access if needed
// Placeholder: Actual network config objects would be imported from './networks'
const placeholderNetworkConfig: SolanaNetworkConfig = {
id: 'solana-devnet',
name: 'Solana Devnet',
ecosystem: 'solana',
network: 'solana',
type: 'devnet',
isTestnet: true,
rpcEndpoint: 'https://api.devnet.solana.com',
explorerUrl: 'https://explorer.solana.com/?cluster=devnet',
commitment: 'confirmed',
// ... any other SolanaNetworkConfig fields
};
const solanaAdapter = new SolanaAdapter(placeholderNetworkConfig);
// Use solanaAdapter for operations on the configured Solana network
Network configurations for Solana networks (e.g., solanaMainnetBeta
, solanaDevnet
) are defined and exported from src/networks/index.ts
within this package. The full list is exported as solanaNetworks
.
adapter-solana/
├── src/
│ ├── config/ # Adapter-specific configuration
│ ├── idl/ # IDL (Interface Description Language) utilities
│ ├── mapping/ # Type mapping utilities
│ ├── networks/ # Solana network configurations
│ ├── program/ # Program interaction utilities
│ ├── transaction/ # Transaction execution system
│ ├── validation/ # Validation utilities
│ ├── wallet/ # Wallet integration (placeholder)
│ ├── adapter.ts # Main SolanaAdapter class implementation
│ └── index.ts # Public package exports
├── package.json
├── tsconfig.json
├── tsup.config.ts
├── vitest.config.ts
└── README.md
This adapter follows the standard module structure outlined in the main project Adapter Architecture Guide, with the src/networks/
directory for managing its network configurations.
FAQs
Solana Adapter for Contracts UI Builder
The npm package @openzeppelin/contracts-ui-builder-adapter-solana receives a total of 385 weekly downloads. As such, @openzeppelin/contracts-ui-builder-adapter-solana popularity was classified as not popular.
We found that @openzeppelin/contracts-ui-builder-adapter-solana demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.