Giter VIP home page Giter VIP logo

ranking-tools's Introduction

Tools for Ranking and Rarity

Tutorial

Prerequisites

Install node_modules:

$ yarn / yarn install / npm i / npm install

Generate

  1. First thing first you have to select all attributes to folder Layers (Make sure format name folder and files is the same like the example inside the Layers folder)

  2. Run

    $ yarn run generate / npm run generate
  3. If the function success, folder Build will appears with all thing we need inside.

Generate API (Get All metadata from API Paras)

  1. Check all instruction you need to change inside file utils/functions/getMetadata_API

  2. You need to make sure url response is the path of url metadata you want to get (which contract from paras you want to).

    const response = await fetch(
        "https://api-v2-mainnet.paras.id/token/CHANGE_THIS.near::" + i
    );
  3. Run

    $ yarn run generate_api

Get Rarity from each attributes with image path

  1. Make sure you've done Generate first

  2. Run

    $ yarn run rarity
  3. Results will appears inside your terminal as log

Get total Ranking and Rarity with sort data (From Run Generate)

  1. Make sure you've done Generate first

  2. You can change file name or path inside utils/functions/getRarity_OurMetadata file

  3. Run

    $ yarn run rarity_our

Get total Ranking and Rarity with sort data (From Run Generate API)

  1. Make sure you've done Generate API first

  2. You need to make sure path rawdata inside file utils/functions/getRarity_fromMetadata_API is the path of metadata you want to get.

  3. Change file name or path inside utils/functions/getRarity_fromMetadata_API file

  4. Run

    $ yarn run rarity_api

Get Media path from Metadata

  1. Make sure you've done Generate first

  2. You need to make sure path rawdata inside file utils/functions/fetchUrl_IPFS.js is the path of metadata you want to get.

  3. Run

    $ yarn run fetch_url

ranking-tools's People

Contributors

mb-1208 avatar

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.