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

@le7el/experience_tokens

v0.1.5

Published

LE7EL experience tokens

Downloads

6

Readme

Experience tokens

ERC1155 tokens to grant experience to level up LE7EL NFTs. Supports multiple minters, so you can dedicate specific contracts to mint selected experience tokens.

Getting started

Install Foundry.

Run tests: forge test

Client utils

Getting started

import { assertExpTokensContractDeployed, assertMultiMinterContractDeployed, getPXPTokenId } from '@le7el/experience_tokens'

assertExpTokensContractDeployed(networkId: string, version: string): Promise

Ensures that specific contract version is deployed on given network

assertExpTokensContractDeployed(5, 'v1').then(console.log)
// "0xA0FE716a07be4C0880EA8E8bEae9098D0aF8c32C"

assertMultiMinterContractDeployed(networkId: string, version: string): Promise

Ensures that specific contract version is deployed on given network

assertMultiMinterContractDeployed(5, 'v1').then(console.log)
// "0xF526929CF357842Eb0aEB76Ff58d3010EF35bB62"

getPXPTokenId(version: string): Promise< number >

Returns id of PXP token for given verison

getPXPTokenId('v1').then(console.log)
// 0

Deployments

To deploy, run scripts with the relevant environment variables: source .secret && forge script script/L7LExperienceTokens.s.sol:L7LExperienceTokensScript --rpc-url $GOERLY_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv

source .secret && TOKEN=0xA0FE716a07be4C0880EA8E8bEae9098D0aF8c32C forge script script/MultiMinter.s.sol:MultiMinterScript --rpc-url $GOERLY_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv

source .secret && TOKEN=0xA0FE716a07be4C0880EA8E8bEae9098D0aF8c32C forge script script/MultiBurner.s.sol:MultiBurnerScript --rpc-url $GOERLY_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv

And update js/contracts.js with corresponding changes as well as publish new version to npm.

Rinkeby

  • L7LExperienceTokens deployed to: 0xE4d52aa9d5b1dCBa0Ec24CA6B7305a609167Bb3e;
  • MultiMinter deployed to: 0x2D3F5666bB1713B13E8fb24F39aA20256Cee2F8F.

Goerli

  • L7LExperienceTokens deployed to: 0xA0FE716a07be4C0880EA8E8bEae9098D0aF8c32C;
  • MultiMinter deployed to: 0xF526929CF357842Eb0aEB76Ff58d3010EF35bB62;
  • MultiBurner deployed to: 0x4AF633ef5d8F8AB22c50BF2C4a2b792257D43107;

Polygon

  • L7LExperienceTokens deployed to: 0x1ac8f959e46Bb3B0780c2A101e95F672F9575a72;
  • MultiMinter deployed to: 0xA48A15010Eb05Eb13582E673C14eeD05cD708F29;
  • MultiBurner deployed to: 0x51F0490C2c251d256471F18F05a12FE5bA7eb427;