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

@naba-finance/uaepass

v0.1.0

Published

Solidity interfaces and deployment addresses for integrating UAE Pass on-chain identity (gate functionality on UAE Pass provenance).

Readme

@naba-finance/uaepass

Solidity interfaces and deployment addresses for integrating UAE Pass on-chain identity.

Use this package to gate your contracts on UAE Pass provenance — for example, a token that only addresses created by an official UAE Pass account can hold or receive.

This is the public integration package. It ships interfaces + addresses only; the implementation contracts, validator, and ZK circuit live in a separate repository.

What it provides

  • ICredential — interface to the UAE Pass Credential contract. The key method is:

    function wasCreatedByUAEPass(address account) external view returns (bool);

    It returns true iff account was deployed through one of the currently trusted UAE Pass account factories.

  • deployments/addresses.json — canonical contract addresses.

What wasCreatedByUAEPass means (and doesn't)

It is a provenance check: "was this address created by an official UAE Pass factory." It does not assert real-time control of the account, KYC/identity status, or that any particular validator is still installed. Gate on it when "is this one of our accounts" is the question you're answering.

Deployed addresses

All contracts use a same-address deployment: the address is identical on every supported chain (CREATE2 via Arachnid's deterministic deployment proxy).

| Contract | Address | | --------------- | -------------------------------------------- | | Credential | 0x8bA9eB1FF63DEd9145d341f316758e6Ca132Cb0e | | Registry | 0x9B66841644a49187b34660fEb05d057f7f4a3C4E | | Validator | 0x07656Fb863E3181664014124604f6fE5A2836206 | | AccountFactory| 0x3B56036FeE71527879E8a423DDcF327e08aD00A8 | | Verifier | 0xDe29EFC7d5E21308a8AE2f95fE0946D96581427f | | KernelFactory | 0xaac5D4240AF87249B3f71BC8E4A2cae074A3E419 |

| Chain | Chain ID | Network | | ------------- | -------- | ------- | | Polygon PoS | 137 | mainnet | | Polygon Amoy | 80002 | testnet | | ADI | 36900 | mainnet | | ADI | 99999 | testnet |

For most integrations you only need Credential.

Install

npm install @naba-finance/uaepass

Hardhat

Import directly from node_modules:

import {ICredential} from "@naba-finance/uaepass/contracts/ICredential.sol";

Foundry

Foundry resolves node_modules. Add a remapping (see remappings.txt):

@naba-finance/uaepass/=node_modules/@naba-finance/uaepass/

then import the same way:

import {ICredential} from "@naba-finance/uaepass/contracts/ICredential.sol";

Usage — gating a token

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ICredential} from "@naba-finance/uaepass/contracts/ICredential.sol";

/// @notice ERC-20 holdable only by UAE Pass accounts.
contract GatedToken is ERC20 {
    ICredential public immutable credential;

    error NotUAEPassAccount(address account);

    constructor(ICredential _credential) ERC20("Gated", "GATE") {
        credential = _credential; // 0x8bA9eB1FF63DEd9145d341f316758e6Ca132Cb0e
    }

    // OZ v5 transfer hook — runs on mint, transfer, and burn.
    function _update(address from, address to, uint256 value) internal override {
        // Allow burns (to == address(0)); gate every recipient otherwise.
        if (to != address(0) && !credential.wasCreatedByUAEPass(to)) {
            revert NotUAEPassAccount(to);
        }
        super._update(from, to, value);
    }
}

Reading the predicate off-chain (viem):

import { createPublicClient, http } from "viem";
import { polygon } from "viem/chains";

const client = createPublicClient({ chain: polygon, transport: http() });

const isUAEPass = await client.readContract({
  address: "0x8bA9eB1FF63DEd9145d341f316758e6Ca132Cb0e",
  abi: [{
    type: "function",
    name: "wasCreatedByUAEPass",
    stateMutability: "view",
    inputs: [{ name: "account", type: "address" }],
    outputs: [{ type: "bool" }],
  }],
  functionName: "wasCreatedByUAEPass",
  args: [userAddress],
});

License

MIT — see LICENSE.