Giter Site home page Giter Site logo

flow_nft_contract_public_repo's Introduction

user's GitHub stats

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on dApps
  • ๐ŸŒฑ Iโ€™m constantly learning solidity and EVM stuff
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on social tokens, nft technologies, decentralized identity
  • ๐Ÿค” Iโ€™m looking for help with backend/frontend/serverless
  • ๐Ÿ’ฌ Ask me about anything
  • ๐Ÿ“ซ How to reach me: cryptoson
  • ๐Ÿ˜„ Pronouns: he/him
  • โšก Fun fact: need more sleep

flow_nft_contract_public_repo's People

Watchers

 avatar

flow_nft_contract_public_repo's Issues

Feature: nft contract functions overview

Create NFT mint contract that

  • can be paused
  • is upgradeable/updatable

with this functionality:

public totalSupply()
Gets the total token supply deployed in the system.

public transfer(toAddress, tokenId, data)
Transfers the token with id tokenId to address toAddress
If the transfer is not processed, the function SHOULD return false.

public ownerOf(tokenId)
return owner address of the specified token.

OPTIONAL FEATURE - SHOULD BE DECIDED IF ITS NEEDED, BEFORE IMPLEMENTING IT
public tokens()
Get all tokens minted by the contract

public properties(tokenId)
Get Metadata of NFT.
The parameter tokenId SHOULD be a valid NFT. If no metadata is found (invalid tokenId), an exception should thrown (if possible)
return NFT metadata

public burn(tokenID)
Burn a token.
param: tokenID: tokenID to burn

public multiBurn(tokenIDs)
Burn multiple tokens.
param: tokenIDs: list of token IDs to burn

public mint(toAddress, metadata,, royalties)
Mint NFT with royalties.
param: toAddress: mint NFT to this address
param: metadata: the metadata to use for this token
param: royalties: the royalties to use for this token

details described in this issue: https://github.com/selimerunkut/flow_nft_contract/issues/2

public multiMint(toAddressList, metadataList,, royaltiesList)
Mint NFTs with royalties.
param: toAddressList: mint NFTs to this list of addresses
param: metadataList: the metadata list to use for this multi token mint
param: royaltiesList: the royalties list to use for this multi token mint

public getRoyalties(tokenId)
Get the royalty values of given tokenId.
param: tokenID: get royalties if this tokenID

public pauseContract()
Pause the contract, no minting will be possible
should be POSSIBLE ONLY by ADMIN/CONTRACT_OWNER

Feature: mint

If Contract is not PAUSED mint token

public mint(toAddress, metadata, lockedContent, royalties)
param: toAddress: mint NFT to this address
param: metadata: the metadata to use for this token
param: lockedContent: the lock content to use for this token
param: royalties: the royalties to use for this token
return: tokenID after successful mint

pseudo code:

def mint(toAddress, metadata, lockedContent, royalties):
 expect(not isPaused(), "mint - contract paused")

 return tokenID

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.