
Security News
Inside Lodash’s Security Reset and Maintenance Reboot
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.
@layerzerolabs/metadata-tools
Advanced tools
yarn add @layerzerolabs/metadata-tools
pnpm add @layerzerolabs/metadata-tools
npm install @layerzerolabs/metadata-tools
Without custom params:
import { generateConnectionsConfig } from "@layerzerolabs/metadata-tools";
// [srcContract, dstContract, [requiredDVNs, [optionalDVNs, threshold]], [srcToDstConfirmations, dstToSrcConfirmations]], [enforcedOptionsSrcToDst, enforcedOptionsDstToSrc]
const connections = await generateConnectionsConfig([
[avalancheContract, polygonContract, [['LayerZero Labs'], []], [1, 1], [EVM_ENFORCED_OPTIONS, EVM_ENFORCED_OPTIONS]],
]);
With custom fetchMetadata, to add the custom DVN 'SuperCustomDVN' for Solana Devnet and Fuji:
import { generateConnectionsConfig, defaultFetchMetadata, IMetadata, IMetadataDvns } from "@layerzerolabs/metadata-tools";
// create a custom fetchMetadata implementation
const customFetchMetadata = async (): Promise<IMetadata> => {
// get the default metadata
const defaultMetadata = await defaultFetchMetadata()
// extend the Solana DVNs with custom DVN(s)
const solanaTestnetDVNsWithCustom: IMetadataDvns = {
...metadata['solana-testnet']!.dvns,
'29EKzmCscUg8mf4f5uskwMqvu2SXM8hKF1gWi1cCBoKT': {
version: 2,
canonicalName: 'SuperCustomDVN',
id: 'super-custom-dvn',
},
}
// extend the Fuji DVNs with custom DVN(s)
const fujiDVNsWithCustom: IMetadataDvns = {
...metadata.fuji!.dvns,
'0x9f0e79aeb198750f963b6f30b99d87c6ee5a0467': {
version: 2,
canonicalName: 'SuperCustomDVN',
id: 'super-custom-dvn',
},
}
return {
...metadata,
'solana-testnet': {
...metadata['solana-testnet']!,
dvns: solanaTestnetDVNsWithCustom,
},
fuji: {
...metadata.fuji!,
dvns: fujiDVNsWithCustom,
},
}
}
// We can now pass 'SuperCustomDVN' as a DVN value
// [srcContract, dstContract, [requiredDVNs, [optionalDVNs, threshold]], [srcToDstConfirmations, dstToSrcConfirmations]], [enforcedOptionsSrcToDst, enforcedOptionsDstToSrc]
const connections = await generateConnectionsConfig([
[avalancheContract, polygonContract, [['SuperCustomDVN'], []], [1, 1], [EVM_ENFORCED_OPTIONS, EVM_ENFORCED_OPTIONS]],
]);
FAQs
LayerZero metadata API tools
The npm package @layerzerolabs/metadata-tools receives a total of 599 weekly downloads. As such, @layerzerolabs/metadata-tools popularity was classified as not popular.
We found that @layerzerolabs/metadata-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.