Skip to content

rlxyz/whitelist-merkler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whitelist-merkler

Example usage:

import path from "path"; // Path routing
import { createJsonWhitelistMerkleRoot } from "@rhapsodylabs/whitelist-merkler"; // Generator

// Config file path
const whitelistPath: string = path.join(__dirname,"/storage/whitelist/whitelist.json");
const outputPath: string = path.join(__dirname,  "./storage/whitelist/whitelist-merkle.json");

(async () => {
  await createJsonWhitelistMerkleRoot(whitelistPath, outputPath);
})();

And the whitelist.json

{
  "whitelist": {
    "<address-A>": 4,
    "<address-B>": 2,
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published