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

@zoralabs/sparks-contracts

v0.2.4

Published

A new mechanism for minting on Zora.

Downloads

144

Readme

Zora SPARKS

A new mechanism for minting on Zora.

Background

Previously, collectors pass send a fixed value of ETH to mint on a creator's contract.

SPARKs are a new form factor of this value, represented as an 1155 token, enabling:

  • collectors to purchase the value of their SPARKs in advance, based on the current price of the SPARKs
  • collectors to use these SPARKs at a future time to mint a Zora Creator ERC-1155 NFT, regardless of if the price to purchase a new SPARK changes.

1 SPARK = 1 Mint

Design

The Zora SPARKs 1155 contract is an immutable ERC-1155 contract that allows for the minting and collecting of Zora Creator ERC-1155 NFTs using SPARKs.

SPARKs are ERC-1155s, with each token ID having a fixed value in ETH or ERC20 that can be minted at that ETH or ERC20 value. The owner of a SPARK can either redeem it or use it to collect a Zora Creator ERC-1155 NFT. When it is used to collect a Zora Creator ERC-1155 NFT, the SPARK is burned and the underlying value is distributed to a set of recipients in the form of fees and rewards, with the percentage split configured in the creator contract. When a SPARK is redeemed, the underlying value is distributed to a desired recipient, and the SPARK is burned.

The ZoraSparksManager is an administrated and upgradeble that contract controls which SPARK token id can be minted for each currency type, thus defining the current price for collecting a SPARK in that currency type.
While it controls the logic around which SPARKs can be minted, once a SPARK is minted, the corresponding value is deposited into the immutable ZoraSparks1155 contract; only the owner of the SPARKs can access the underlying deposited funds by redeming the SPARKs or choose to do with their SPARKs, and since that contract is immutable these rules could never change.

The ZoraSparks1155 and ZoraSparksManager contracts are deployed deterministically to the same address on all chains: