Code Monkey home page Code Monkey logo

parsiq-hackathon-nft's Introduction

PARSIQ 101: Working With NFTs

Normal ERC721 and ERC1155 NFTs can usually be monitored with already exsisting tools like the OpenSea API. But there are a lot of more exotic projects that require a custom solution to track. In this hackathon i will be using ParsiQL to monitor the nftx smart contract, and log when new NFT vaults are created.

The Contract

AdminUpgradeabilityProxy: 0xbe86f647b167567525ccaafcd6f881f1ee558216

NFTXVaultFactoryUpgradeable: 0x6a911d2aaabe631f8d7daa82afbfe38633cb0dab

Some information on the contract: Users deposit their NFT into an NFTX vault and mint a fungible ERC20 token (vToken) that represents a claim on a random asset from within the vault. vTokens can also be used to redeem a specific NFT from a vault.

1. I got the abi of the smart contract.

2. Uploaded it as json to the parsiq portal.

3. Selected the functions/events I needed in my smart triggers, selected my chain and named my user stream.

Smart Triggers

1. The first trigger is watching the createVault function and outputting its parameters.

2. In my other trigger i'm doing a similar thing with the NewVault event, which will give me the address of the newly created vault.

Note: I'm monitoring both the proxy and the actual contract because i couldn't find any information regarding proxy contracts in the PARSIQ docs.

Transport

Lastly i created a transport to output the data to google sheets and i configured that transport as a delivery channel in my triggers.

Google sheets:

NewVault output

createVault output

Conclusion

It's incredibly easy to create custom monitoring solutions using PARSIQ and ParsiQL. In a few hours i was able to learn the platform and make smart triggres to track vault creation in the the nftx smart contract.

parsiq-hackathon-nft's People

Watchers

 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.