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 🙏

© 2024 – Pkg Stats / Ryan Hefner

airtea-protocol

v1.1.5

Published

[Forked from AirSwap](https://www.airswap.io/) is a peer-to-peer trading network. This repository contains smart contracts for use by developers and traders on the AirSwap network.

Downloads

3

Readme

AirSwap Protocols

AirSwap is a peer-to-peer trading network. This repository contains smart contracts for use by developers and traders on the AirSwap network.

Discord License lerna Twitter Follow

Resources

  • Discord → https://chat.airswap.io/
  • X → https://x.com/airswap
  • Website → https://www.airswap.io/
  • About → https://about.airswap.io/

Contracts

| Package | Version | Description | | :------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------ | :---------------------------- | | @airswap/registry | npm | Server Registry | | @airswap/swap | npm | Atomic Token Swap | | @airswap/swap-erc20 | npm | Atomic Token Swap (ERC20) | | @airswap/wrapper | npm | Wrapper for Native Tokens | | @airswap/staking | npm | Staking for Members | | @airswap/pool | npm | Rewards Pool for Members | | @airswap/batch-call | npm | Batch Token and Order Calls |

Tools

| Package | Version | Description | | :-------------------------------------- | :---------------------------------------------------------------------------------------------------------- | :---------------------------- | | @airswap/libraries | npm | Libraries for Developers | | @airswap/utils | npm | Utils for Developers |

Commands

| Command | Description | | :---------------- | :---------------------------------------- | | yarn compile | Compile all contracts to build folders. | | yarn clean | Clean all contract build folders. | | yarn test | Run all contract tests in test folders. | | yarn lint:fix | Run eslint for all JavaScript code. | | yarn pretty:fix | Run prettier for all JavaScript code. |

Branching

Flow for contracts and associated tools: Branch from Develop; Merge Feature → Develop → Beta → Main

Flow for tool updates (not contracts): Branch from Main; Merge Feature → Main → Develop

Process

Regular development process for a complete release

  1. New work and features are cut from and merged to "develop"

    1. Cut feature branches from develop
    2. Merge feature branches into develop (Squash and Merge)
  2. Merge "develop" into "beta" to publish beta packages. (Semver: x.x.x-beta.x)

    1. Merge develop into beta (Merge Commit): this will publish NPM with "beta" tag.
    2. Tag beta release from beta branch. (x.x.x-beta.x)
    3. Share tagged release with auditors if auditing.
  3. Merge "develop" into "main" to publish latest packages. (Semver: x.x.x)

    1. Merge develop into main (Merge Commit): this will publish NPM with "latest" tag.
    2. Merge main into beta: this will update the beta with latest.
    3. Tag release from main branch. (x.x.x)

Each deploys.js must be limited to contracts deployed from that package version.

Individual package features or patches

  1. Cut a feature or fix branch from main.
  2. Merge fix into main (Squash and Merge): this will publish to NPM with "latest" tag.
  3. Merge main into develop.

Deploying and Verifying

Each package has commands yarn deploy and yarn verify. Each command takes a --network flag. For example:

yarn deploy --network sepolia
yarn verify --network sepolia

The source of these scripts can be found in the scripts folder of each package. The account used to deploy and verify is derived from the PRIVATE_KEY environment variable in .env in the repository root.