Skip to content

This is a snapshot of an arbitrary token using Merkle trees in Solidity, tested with hardhat, and deployed in fantom

Notifications You must be signed in to change notification settings

sebastianlujan/tokenSnapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Route guide lines

Mission: Get the images

from: https://opensea.io/collection/etherean-empire-drops

Strategy:

  1. Get All elements from this uri , address and tokenID from 0 to 10
  2. scrapp details > tokenID
  3. getJSON , insert it into a new metadata object
  4. parse image cid (IPFS)
  5. from the cid get the image
  6. download it to ./assets/

format: uri/address/tokenId [0,10]

Mission: Deploy image and meta

Strategy:

  1. Redeploy the images secuencially to ipfs or pinata , [research] ipfs.js and pineIT how to deploy NFTs from opensea
  2. Redeploy metadata using the new CID by tokenId
/*  
    i.e:
    meta.image = "ipfs://foobarbazthingsdjfjkh"
*/

{
    "name": "foo",
    "description": "bar", 
    "external_url": "ask to rallsen", 
    "image": "${meta.image}",
    "attributes": 
        [
        {
            "trait_type": "Rarity",
            "value": "Legendary"
        }
    ]
}

Mission: Map the entire transaction tree

Strategy:

  1. Get map the owner list and their transactions into a merkle tree

Mission: Mint on demand

Strategy:

  1. create-next-app
  2. create a frontend
  3. create an API
    • use firebase as DB
  4. Integrate frontend and backend with the API
  • tasks
    • import material
    • walletConnect
      • validate ownership
    • API
      • GET api/wallet/[:address] - Verify the tree?
      • GET api/id/[:id]/owners - returns a ownerList by Address
      • GET api/wallet/[:address]/[:tokenID] - returns metadata
      • Por ahora no mucho mas los minteos se manejan desde el abi

. Deploy the new 1155 contract with (entrypoint tokenId) on testnet

About

This is a snapshot of an arbitrary token using Merkle trees in Solidity, tested with hardhat, and deployed in fantom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published