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

@mayflower-sys/evm-avm-sdk

v202607.1306.150

Published

EVM AVM SDK for interacting with the Mayflower AVMs on EVM chains.

Readme

@mayflower-sys/evm-avm-sdk

A small, transport-agnostic TypeScript SDK for the AVM on EVM. It packs instructions and reads into plain { to, data } payloads and decodes the results — it never touches the network itself. Bring your own viem client (or any RPC transport) to actually send them.

The core idea

Everything the SDK produces is pure data, so you can log, cache, batch, or simulate it before it ever leaves your process:

  • PackedTx{ to, data }, ready to hand to a wallet's sendTransaction.
  • PackedCall<A>{ to, data, decode }, ready for an eth_call; decode turns the returned bytes into a typed value.

What's inside

| Namespace | What it does | | --------------------------- | ---------------------------------------------------------------------- | | Ix | Instruction packers. Ix.<Op>.pack(args) returns a PackedTx. | | Entities | Read helpers. Entities.<T>.fetchMsg(...) returns a PackedCall. | | Events | Decode a receipt's logs into a typed, tagged union of events. | | Fixed18 / SignedFixed18 | 18-decimal fixed-point helpers (mirror the on-chain libraries). | | Util | Small helpers, e.g. strToBytes32 to hash a string into a bytes32 id. |

Sending a transaction

import { Ix } from "@mayflower-sys/evm-avm-sdk"
import { createWalletClient, http } from "viem"

const wallet = createWalletClient({ account, chain, transport: http(rpcUrl) })

// Pack a "buy shares" instruction — pure, no I/O.
const tx = Ix.IssueSharesWithExactReserveIn.pack({
  market,
  exactReserveIn: 1_000_000n, // reserve tokens to spend (raw, token decimals)
  minSharesOut: 0n, // slippage floor
  receiver: account.address,
})

// Send it with your own transport.
const hash = await wallet.sendTransaction(tx)

Reading state

import { Entities } from "@mayflower-sys/evm-avm-sdk"
import { createPublicClient, http } from "viem"

const publicClient = createPublicClient({ chain, transport: http(rpcUrl) })

const call = Entities.Market.fetchMsg(marketAddress)
const { data } = await publicClient.call({ to: call.to, data: call.data })
const market = call.decode(data!) // typed Market snapshot

Decoding events

import { Events } from "@mayflower-sys/evm-avm-sdk"

const receipt = await publicClient.waitForTransactionReceipt({ hash })

const events = Events.decodeEvents(receipt) // all emitter events, tagged
const bought = Events.findEvent(receipt, "AvmTokensBought") // one by tag (throws if absent)

License

FSL-1.1-MIT.