1.2.0 • Published 5 days ago

nerman v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 days ago

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.

1.2.0-alpha.8

5 days ago

1.2.0-alpha.7

22 days ago

1.2.0-alpha.6

24 days ago

1.2.0-alpha.4

27 days ago

1.2.0-alpha.5

27 days ago

1.2.0-alpha.2

27 days ago

1.2.0-alpha.3

27 days ago

1.2.0-alpha.1

29 days ago

1.2.0-alpha.0

1 month ago

1.2.0

1 month ago

1.1.0

1 month ago

1.0.0

1 month ago

0.2.0

3 months ago

0.1.0

3 months ago

0.0.37

3 months ago

0.0.36

3 months ago

0.0.35

4 months ago

0.0.34

4 months ago

0.0.33

4 months ago

0.0.31

4 months ago

0.0.32

4 months ago

0.0.30

5 months ago

0.0.29

5 months ago

0.0.21

7 months ago

0.0.22

7 months ago

0.0.23

6 months ago

0.0.24

6 months ago

0.0.25

6 months ago

0.0.26

6 months ago

0.0.27

5 months ago

0.0.28

5 months ago

0.0.20

8 months ago

0.0.17

8 months ago

0.0.18

8 months ago

0.0.19

8 months ago

0.0.10

9 months ago

0.0.11

9 months ago

0.0.12

8 months ago

0.0.13

8 months ago

0.0.14

8 months ago

0.0.15

8 months ago

0.0.9

10 months ago

0.0.16

8 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago