Giter VIP home page Giter VIP logo

nerman.js's Introduction

Nerman.js

NPM Version

Nerman.js is a JavaScript/TypeScript wrapper for Nouns projects like the Nouns DAO, LilNouns DAO, Propdates, and more. Our goal is to create an intuitive toolkit to interact with these contracts, lowering the barrier of entry to this community, and enabling developer creativity.

If there's a Nouns project you think should be a part of Nerman.js, feel free to open an issue so we can add support.

Installation

Ensure you have npm installed and are in a node project.

npm install --save nerman

Examples

To use Nerman.js, you will need a JSON_RPC_URL from a blockchain development platform like Alchemy.

To listen to an on-chain vote event for Nouns DAO, write the following:

import * as nerman from "nerman";

const nouns = new nerman.Nouns("<JSON_RPC_URL>");

nouns.on("VoteCast", (vote: nerman.EventData.VoteCast) => {
	console.log(
		"NounsDAO | VoteCast | id:" +
			vote.proposalId +
			",  voter: " +
			vote.voter.id +
			", votes: " +
			vote.votes +
			" , supportDetailed: " +
			vote.supportDetailed +
			", reason: " +
			vote.reason
	);
});

For more details on events, see: Event Types.

For more details on contract wrappers, see: Contracts.

License

Nerman.js is distributed under an MIT license.

Contribution

Nerman.js is currently not open to contribution.

If you have any suggestions or experience any bugs, please feel free to open a Github issue. We are always eager to better support the Nouns community.

nerman.js's People

Contributors

sobhan-m avatar joecars avatar

Stargazers

waterdrops avatar zhoug avatar Tiago Alves avatar Kuririn avatar  avatar  avatar  avatar Michael Demarais avatar Daniel Tehrani avatar Nero One avatar Lakshman Sankar avatar

Watchers

Michael Demarais avatar  avatar  avatar

Forkers

lsankar4033

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.