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

@unitedao/unite

v1.0.20

Published

Unite DAO base contracts AND SDK

Downloads

21

Readme

UniteDAO

unite-ar-contracts

UnietDAO is a series of Smart Contract on Arweave to coordinate the creation of standards, and we all need standards. For example, we still lack of a common definition of the fields for the metadata of NFTs. How do I use my NFT Car in a different game if the names of the fields in the metadata are different? We can’t achieve real interoperability unless we all speak the same language.

Example This is the Opensea recommendation of metadata of one NFT:

{
  "description": "Friendly OpenSea Creature that enjoys long swims in the ocean.",
  "external_url": "https://openseacreatures.io/3",
  "image": "https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png",
  "name": "Dave Starbelly",
  "attributes": [],
}

Besides name and description we don’t have specific fields. We need to coordinate the creation and evolution of the definition of fields in the metadata, so these NFTs can become interoperable.

Here comes the Blockchain

We are using a Smart Contract to create a DAO like application to work on the standards. The Blockchain we are using is smartweave as it provides permanent storage of information. The DAPP will be based on smartweave, the smart contract language based on Javascript for arweave.

Schemas

We are usig JSON schemas to define the different fields.

{
  "$id": "ar://<txId>",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Avatar",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the avatar."
    },
    "image": {
      "type": "string",
      "description": "URL to the avatar"
    },
    "age": {
      "description": "Age in years which must be equal to or greater than zero.",
      "type": "integer",
      "minimum": 0
    }
  }
}

The contract (smartweave)

The smartweave contract that we are using is keeping basic information:

  • proposals : list of proposals (add, edit, open, approved, abandoned)
    • Proposal to add a new fields
    • Proposal to change a field
  • versoins : Approved versions
    • fields : List of fields
  • contributors (editor, contributor and user).
    • editors, can add more editors and contributors
    • contributors : can change the state of a proposal
    • users : can create proposals and comment on them

Everytime a proposal to add/edit a field is approved by one of the contributors, the list of fields of that schema (standard) is aupdated and a ew version of the standard is created following semantinc versioning (major.minor.patch) At any time, any user can comment in any of the (add/edit/open) fields.

Build and Test

npm run build:contracts
npm run build:lib
npm test

Open dev environment

npm run dev