npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@layerzerolabs/test-utils-stellar

v0.2.133

Published

Shared Stellar/Soroban test harness (localnet, funding, deploy helpers) for LayerZero V2 protocol SDK and custom OApp/OFT tests

Downloads

1,594

Readme

@layerzerolabs/test-utils-stellar

Shared Stellar E2E harness for localnet lifecycle, protocol deploy/wire, and test helpers.

Usage

Env (unique container/port per suite)

import { createStellarTestEnv } from '@layerzerolabs/test-utils-stellar';

export const env = createStellarTestEnv({
    containerName: 'stellar-oft-e2e',
    hostPort: 8096,
});

export const { RPC_URL, DEFAULT_DEPLOYER, EID_A, EID_B /* ... */ } = env;

Do not use process.env for ports — pass hostPort into createStellarTestEnv.

Protocol stack globalSetup (OFT / omni-counter)

Pass protocol contract modules from @layerzerolabs/lz-v2-stellar-sdk (not local generated/ paths). Injection keeps this package free of a workspace cycle with the SDK (SDK tests also consume this harness).

import path from 'path';
import { getFullyQualifiedRepoRootPath } from '@layerzerolabs/common-node-utils';
import {
    dvn,
    dvnFeeLib,
    endpoint,
    executor,
    executorFeeLib,
    executorHelper,
    priceFeed,
    sml,
    treasury,
    uln302,
} from '@layerzerolabs/lz-v2-stellar-sdk';
import { createProtocolStackGlobalSetup } from '@layerzerolabs/test-utils-stellar';
import { env } from './constants.js';

export default createProtocolStackGlobalSetup(env, {
    protocol: {
        endpoint,
        treasury,
        uln302,
        sml,
        priceFeed,
        executorFeeLib,
        dvnFeeLib,
        dvn,
        executorHelper,
        executor,
    },
    wasmDir: async () => {
        const repoRoot = await getFullyQualifiedRepoRootPath();
        // Protocol verifiable build publishes WASMs to .artifacts/ (not cargo target/).
        return path.join(repoRoot, 'contracts', 'protocol', 'stellar', 'contracts', '.artifacts');
    },
});

Provides chainA / chainB (ChainAddresses) to Vitest via inject().

Localnet-only globalSetup (protocol SDK)

import { createLocalnetOnlyGlobalSetup } from '@layerzerolabs/test-utils-stellar';
import { env } from './constants.js';

export default createLocalnetOnlyGlobalSetup(env);

Deploy / scan / helpers

All helpers take env as the first argument (or close over it in a thin consumer shim):

import {
    deployContract,
    fundAccount,
    createClient,
    scanPacketSentEvents,
} from '@layerzerolabs/test-utils-stellar';

await fundAccount(env, publicKey);
const client = createClient(env, SomeClient, contractId);

Key exports

| Export | Description | | --------------------------------------------------------------------- | --------------------------------------------- | | createStellarTestEnv | Build RPC URL, keys, EIDs from container/port | | createProtocolStackGlobalSetup | Dual-chain deploy + wire Vitest globalSetup | | createLocalnetOnlyGlobalSetup | Start/stop localnet only | | ChainAddresses | Type for injected protocol addresses | | deployContract / uploadWasm / deployAssetSac | Deploy helpers | | startStellarLocalnet / stopStellarLocalnet / fundAccount | Localnet lifecycle | | createClient / signDvnAuthEntries / signAndSendWithExecutorAuth | Client + auth helpers | | scanPacketSentEvents | Endpoint event scanning | | Secp256k1KeyPair | DVN multisig signer helper |