Git Product home page Git Product logo

lucian's Introduction

Lucian: mint Zora NFT's using Python

Banner

Overview

Lucian is a basic Python application which uploads an image to IPFS using Piñata and then uses that uploaded image to mint an ECR-721 NFT based on the Zora protocol. To date this has only been tested on the Rinkeby testnet.

Usage

  1. Sign up for accounts at Piñata and Infura
  2. Rename .env.example to .env and set the environment variables to the appropriate values
  3. Call Lucian:
$ python ./lucian.py

TODO:

  • make this a proper CLI app which takes filename argument from command link invocation
  • write some proper tests
  • test this on mainnet

lucian's People

Contributors

tomj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lucian's Issues

Zora Auction House doesn't list NFTs produced by Lucian

I created my action house using

npx create-next-app nft-demo -e https://github.com/ourzora/create-auction-house

I specified my Rinkeby Metamask walled it as NEXT_PUBLIC_TESTNET_CONTRACTS.
Then I tried to generate an NFT with your "lucian" Python3 script, but nothing appeared in my auction house.

Can you help me figure out what the problem is?
I'm new to Zora.

This is the log:

$ python3 ./lucian.py 
/home/francesco/.local/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api.pinata.cloud'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  warnings.warn(
/home/francesco/.local/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api.pinata.cloud'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  warnings.warn(
https://ipfs.io/ipfs/QmQ8GtSTkujZSms8555oDnLJLnJndNWMBVZPvEXdvigumV
https://ipfs.io/ipfs/QmZsfmyDZzS6pg1VYA7BmPAMFev9iGnQJgVAkYW85YTMM5
b';\x92<\xeed\xce\x1f\xd7\xff\xea\x93T\xfe\xc8\xcd\xc8\xdbg\x9f\xaa\x1c<D\xadz\xdf\xd8\x08\x85WJz'
b'\xb7\x7f\x9a\xbd\x19BR8\xe6\xc5\xde\x16\xc7\xc6\x10y\x94f\xe8\xcfz_\xe9\x97\xb0D_$\xda\xc6\xdc\xec'
{'tokenURI': 'https://ipfs.io/ipfs/QmQ8GtSTkujZSms8555oDnLJLnJndNWMBVZPvEXdvigumV', 'metadataURI': 'https://ipfs.io/ipfs/QmZsfmyDZzS6pg1VYA7BmPAMFev9iGnQJgVAkYW85YTMM5', 'contentHash': b';\x92<\xeed\xce\x1f\xd7\xff\xea\x93T\xfe\xc8\xcd\xc8\xdbg\x9f\xaa\x1c<D\xadz\xdf\xd8\x08\x85WJz', 'metadataHash': b'\xb7\x7f\x9a\xbd\x19BR8\xe6\xc5\xde\x16\xc7\xc6\x10y\x94f\xe8\xcfz_\xe9\x97\xb0D_$\xda\xc6\xdc\xec'}
{'prevOwner': {'value': 0}, 'creator': {'value': 0}, 'owner': {'value': 100000000000000000000}}
25632
b'iz\x1fRI\x0f\xe5\n\x8b\xc3\xd1\x84^\x0e-\x96\x9e\x16\x8d\x8f\xbf\xaaPFzh=\xb3\xca?\x0b\xcc'
AttributeDict({'blockHash': HexBytes('0x26693c3baf516e8e9032b143f175af9de097b1072e240b0f3accdf60ad2e644c'), 'blockNumber': 10159578, 'contractAddress': None, 'cumulativeGasUsed': 2431230, 'effectiveGasPrice': '0x4190aaf3', 'from': '0x7787601069A2f8dDc7401d4618492272891ccaEE', 'gasUsed': 25632, 'logs': [], 'logsBloom': HexBytes('0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'), 'status': 1, 'to': '0x7787601069A2f8dDc7401d4618492272891ccaEE', 'transactionHash': HexBytes('0x697a1f52490fe50a8bc3d1845e0e2d969e168d8fbfaa50467a683db3ca3f0bcc'), 'transactionIndex': 17, 'type': '0x0'})

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.