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

@reflaunt/reflaunt-erc721

v1.0.1

Published

The objective of this project is to provide a blockchain library that can be used easily in every reflaunt project.

Downloads

22

Readme

Reflaunt lib

The objective of this project is to provide a blockhchain library that can be used easily in every reflaunt project.

This project includes the migration of ERC-721 based token that will become the standard of reflaunt blockchain to emit non-fungible tokens for every products.

To foster conviniences, reflaunt wallets will be derived on the HD wallet that is defined by the creator, the reflaunt user's user id will become the HD wallet last path.

Eg. reflaunt user id 100 and reflaunt is using hd wallet path "m/44'/60'/0'/0/", the wallet will be generated based on the defined mnemonic and path of "m/44'/60'/0'/0/100".

To start, please import it this way

import {ReflauntErc721} from "@reflaunt/reflaunt-erc721";

Next please instatiate the class this way

this.api = new ReflauntErc721({
      mnemonic: '...',
      nodeUrl: '...'
    });

Testing

As we are using ganache to construct a mock node for testing and run it this way

./node_modules/.bin/ganache-cli -m 'blame left final crime wing curious actual light drip trip patient daughter' -p 9988

then run

jest test

Note

This library do not cover the authentication and the security is solely based on the caller mnemonic key and closed within the hd wallet ecosystem.

Contract address

  • ROPSTEN: 0xD64F081BF118e17338297F2B3Fdf301dF6874997
  • SOKOL: 0xfF2Bb1588f44382337a4b328AFB4fc943ddc8b14

Check it out at:

  • ROPSTEN: https://ropsten.etherscan.io/address/0xD64F081BF118e17338297F2B3Fdf301dF6874997
  • SOKOL: https://blockscout.com/poa/sokol/address/0xfF2Bb1588f44382337a4b328AFB4fc943ddc8b14/transactions

Current Parameters

  • ROPSTEN_MNEMONIC = 'blame left final crime wing curious actual light drip trip patient daughter'

  • ROPSTEN_NODE_URL = 'https://ropsten.infura.io/v3/821f08fc642942f7989c54907cd2ccfd'

  • SOKOL_MNEMONIC = 'blame left final crime wing curious actual light drip trip patient daughter'

  • SOKOL_NODE_URL = 'https://sokol.poa.network'

  • DOCKER_MNEMONIC = 'blame left final crime wing curious actual light drip trip patient daughter'

  • DOCKER_NODE_URL = 'http://testrpc:9988'

Continuous integration

git tag $(VERSION_NO eg. 0.0.3)
git push origin master --tags