- ๐ญ 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 Introduction
flow_nft_contract_public_repo's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.