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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@krakenfx/verify

v0.1.3

Published

Kraken Verify access control contracts for EAS attestations

Downloads

3

Readme

@krakenfx/verify

Solidity contracts for Kraken Verify - EAS attestation utilities for verified Kraken users.

Installation

# Using npm
npm install @krakenfx/verify

# Using yarn
yarn add @krakenfx/verify

# Using pnpm
pnpm add @krakenfx/verify

Setup

Solidity Setup

Remappings

Generate remappings for Foundry:

forge remappings > remappings.txt

You might need to add this extra one manually if you're using pnpm:

@ethereum-attestation-service/=node_modules/.pnpm/@[email protected]/node_modules/@ethereum-attestation-service

IDE Configuration

Update your IDE to support remappings. For VS Code:

// .vscode/settings.json
{
  "solidity.remappings": [
    "...=node_modules/...",
  ]
}

TypeScript Setup

If you're using TypeScript in your project, make sure to configure it to handle JSON imports:

// tsconfig.json
{
  "compilerOptions": {
    // ...other options
    "resolveJsonModule": true,
    "esModuleInterop": true
  }
}

Smart Contract Usage

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

// Import directly from package
import { KrakenVerifyAccessControl } from "@krakenfx/verify/src/abstracts/KrakenVerifyAccessControl.sol";

contract MyContract is KrakenVerifyAccessControl {
    // Only users with valid Kraken Verify attestations can call this function
    function verifiedUserFunction() external onlyVerified {
        // Your implementation
    }
}

Client Usage

ESM / TypeScript

// ES Modules / TypeScript
import { VerifyClient } from "@krakenfx/verify";

const verifyClient = new VerifyClient();

// Check if an address is verified
const isVerified = await verifyClient.isAddressVerified(
  "0x2193981f2d65149644C039c9071f2bE8b5938F0B"
);

console.log(
  `Verification result: ${isVerified ? "✅ Verified" : "❌ Not verified"}`
);

CommonJS

// CommonJS
const { VerifyClient } = require("@krakenfx/verify");

const verifyClient = new VerifyClient();

// Check if an address is verified
async function checkVerification() {
  const isVerified = await verifyClient.isAddressVerified(
    "0x2193981f2d65149644C039c9071f2bE8b5938F0B"
  );
  
  console.log(
    `Verification result: ${isVerified ? "✅ Verified" : "❌ Not verified"}`
  );
}

checkVerification();

What's Included

This package provides access control for verified Kraken users through EAS attestations:

  • KrakenVerifyAccessControl.sol: Abstract contract with the onlyVerified modifier
  • Supporting libraries and interfaces for attestation verification
  • TypeScript client for verification checks

Requirements

  • Solidity 0.8.24
  • TypeScript (for client usage)
  • Viem (peer dependency for TypeScript client)

License

MIT