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

@elacity-js/contracts-ua-executor

v0.0.1-beta.24

Published

Transaction executor that bundles contract calls into [Particle Network Universal Account](https://developers.particle.network/docs/universal-account) meta-transactions. This allows cross-chain transaction execution through a single smart-account flow.

Readme

@elacity-js/contracts-ua-executor

Transaction executor that bundles contract calls into Particle Network Universal Account meta-transactions. This allows cross-chain transaction execution through a single smart-account flow.

Overview

Instead of committing each contract call individually, this executor collects one or more ICommitableContractTransaction objects, builds a Universal Account transaction bundle, signs it, and broadcasts it via the Particle UA SDK. A built-in receipt fetcher polls the UA API until the transaction reaches a terminal state, then resolves on-chain receipts.

Quick Start

import { EthersAdapter } from '@elacity-js/contracts-ethers-adapter';
import { UniversalAccountTransactionExecutor } from '@elacity-js/contracts-ua-executor';
import { StandardChannel } from '@elacity-js/contracts';
import { UniversalAccount } from '@particle-network/universal-account-sdk';

// 1. Set up the runner (must implement IContractRunner & IProvider)
const runner = new EthersAdapter(signer);

// 2. Configure the UA executor
const ua = new UniversalAccount(/* ... */);
const executor = new UniversalAccountTransactionExecutor(runner, {
  ua,
  chainId: 8453, // Base
  signMessage: (msg) => signer.signMessage(msg),
});

// 3. Bundle and execute transactions
const channel = new StandardChannel(channelAddress, runner);
const result = await executor.execute([
  channel.mint(uri, opType, opRawData, sellRawData),
  channel.setApprovalForAll(operator, true),
]);

// 4. Wait for on-chain receipts
const receipts = await result.wait();
// receipts: IContractTransactionReceipt[]

How wait() Works

When you call result.wait():

  1. The UAReceiptFetcher polls ua.getTransaction(transactionId) until the status reaches a terminal state (Finished or Refund finished)
  2. It extracts the relevant user operations matching your contract addresses
  3. For each operation with a txHash, it fetches the on-chain transaction via provider.getTransaction() and calls .wait() for the receipt
  4. Returns an array of IContractTransactionReceipt objects

Exports

  • UniversalAccountTransactionExecutor: Implements ITransactionExecutor for bundled UA meta-transactions
  • UAExecutorConfig: Configuration type for the executor
  • TransactionDetails and related types: Full Particle UA transaction response typings

Configuration

| Field | Type | Description | | --- | --- | --- | | ua | UniversalAccount | Particle Universal Account instance | | chainId | number | Target chain ID (e.g. 8453 for Base) | | signMessage | (message: string) => Promise<string> | Signs the UA rootHash with the EOA | | expectTokens | Array<{ type, amount }> | Optional tokens the smart account should have available |

Building

Run nx build contracts-ua-executor to build the library.

Running unit tests

Run nx test contracts-ua-executor to execute the unit tests via Jest.