
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@openzeppelin/contracts-ui-builder-adapter-midnight
Advanced tools
Midnight Adapter for Contracts UI Builder
@openzeppelin/contracts-ui-builder-adapter-midnight
)This package provides the ContractAdapter
implementation for the Midnight Network for the Contracts UI Builder.
This adapter has a fully implemented wallet connection feature, allowing users to connect to the Lace (Midnight) browser extension. The core contract interaction methods (loadContract
, formatTransactionData
, signAndBroadcast
, etc.) are currently placeholder stubs and will be implemented in future phases.
mnLace
wallet instance injected into the window
object.localStorage
to respect user disconnections across sessions, which is the standard workaround for CIP-30 style wallets.ConnectButton
and AccountDisplay
components.The MidnightAdapter
is consumed by the builder
application's WalletStateProvider
. It exposes a React context provider (MidnightWalletProvider
) and a set of facade hooks that are automatically used by the main application UI.
// In the builder application's adapter factory:
import {
MidnightAdapter,
midnightTestnet,
} from '@openzeppelin/contracts-ui-builder-adapter-midnight';
const networkConfig = midnightTestnet;
const midnightAdapter = new MidnightAdapter(networkConfig);
adapter-midnight/
├── src/
│ ├── config/ # Adapter-specific configuration
│ ├── contract/ # Contract interaction utilities (placeholder)
│ ├── mapping/ # Type mapping utilities (placeholder)
│ ├── networks/ # Midnight network configurations
│ ├── transaction/ # Transaction execution system (placeholder)
│ ├── validation/ # Validation utilities (placeholder)
│ ├── wallet/ # Wallet integration (implemented)
│ ├── adapter.ts # Main MidnightAdapter 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. All wallet-related logic can be found in the src/wallet/
directory.
FAQs
Midnight Adapter for Contracts UI Builder
The npm package @openzeppelin/contracts-ui-builder-adapter-midnight receives a total of 58 weekly downloads. As such, @openzeppelin/contracts-ui-builder-adapter-midnight popularity was classified as not popular.
We found that @openzeppelin/contracts-ui-builder-adapter-midnight 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.