Giter VIP home page Giter VIP logo

contracts's People

Contributors

gary02 avatar guoliu avatar robertu7 avatar zeckli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

contracts's Issues

[The Space] - Improvements on the space contract

  • tax rate change needs an event
  • config variables can be put into a struct so the client can query in one call
  • return extra cost when the bid is higher than the price (see #15)
  • check ownership for bid, and check the price for setPrice
  • consistency error code and message, or use error type featured in 0.8.4
  • default timestamp for tax collection should be deploy time
  • update timestamp after tax collection

[Space] Documentation

  • Contract relationship diagram
  • Tax collection mechanism overview
  • Access control roles
  • API overview

[Space] - Visual representation of pixel NFTs

Each The Space pixel is an NFT, and there could be an associated image with it to be shown on OpenSea or any other tools that support the NFT standard. Same with the avatar in Traveloggers, it is the cover of the token when users check their ownership or trade particular tokens.

This image can be generated directly from the smart contract, so that it can dynamically show the current state of the token, as in the case of Logbook 2.0 (can be seen on OpenSea).

Information we can present in the image includes:

  • color of the pixel
  • price of the pixel
  • UBI available for the pixel
  • state of surrounding pixels
    • Note: Retrieving data on surrounding pixels is not trivial. Currently, the smart contract is not aware of the dimension of the canvas, but to identify surrounding pixels it will have to.

[Space] - Gas optimization

  • Redesign variable type for TokenRecord and TreasuryRecord
  • Determine if pixelColor can be combined with TokenRecord
  • Determine if token owner storage in ERC721 can be combined with TokenRecord
  • Alternative to ERC721Enumerable (ref)

[The Space] New features

  • return lastTaxCollection in getPixel
  • remove this.
  • set a mint price
  • use enumerable
  • index color in Color event
  • include lastTaxCollection in getPixel
  • include tokenId in getPixel
  • add test case for setPixel

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.