Giter Club home page Giter Club logo

Comments (6)

Jammyaa avatar Jammyaa commented on July 30, 2024

Currently, I have written a set of 1 package called an-std (for the purpose of providing a function to handle burning and distributing collection creation fees) and 3 contracts including anone-minter (for the purpose of creating collections for artists - this contract has been built successfully), an721 (which is the standard for NFT collection - this contract has also been built successfully) and anone-nft-marketplace (which is a contract for NFT trading: transfer NFT cw721 to the buyer and transfer cw20 token AN1 to the seller - this contract is not running properly logic yet). The old contract anone-cw721 is still used for the purpose of minting 1 nft to the function caller, for demo purposes only, and will soon be replaced by a production version.
I'll be writing a set of scripts soon to help you understand how contracts work.

from anone.

Jammyaa avatar Jammyaa commented on July 30, 2024

Deploy anone-nft-marketplace contract
Deploy_anone_nft_markeplace_contract

from anone.

Jammyaa avatar Jammyaa commented on July 30, 2024

Create sale for NFT with token_id is 2 and nft collection contract is: one1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrq9jdqcm
from owner: one1sgdktd56d6ku5ud00dlss0r27u6rx8gq2080fm
to nft-marketplace contract: one19vrjp7fll6a729v464wlxr8a2xqhcddc0e5f0gxkv4fcyl8n23us4mr5jv
Check tx in here: https://test-anone.zenscan.io/transaction.php?hash=339E98BC218EC4A41808A202F241D3EA918F7D9FACE031D7AA7AA9161308D073
Create_sale

from anone.

Jammyaa avatar Jammyaa commented on July 30, 2024

@nghuyenthevinh2000
After create sale, that NFT will have list_price is 500 MAGE (because I use mageNFT cw20 token for test)

from anone.

Jammyaa avatar Jammyaa commented on July 30, 2024

After create sale, owner of that NFT can cancel sale, and that NFT will go back to owner address and no longer available in marketplace.
Check tx in here: https://test-anone.zenscan.io/transaction.php?hash=44B558F644B832878B5D6B721B32D4712C5F3E33E74E7C309F597EBFDE3271C5
cancel_sale

from anone.

Jammyaa avatar Jammyaa commented on July 30, 2024

Buy nft function is ok.
Buy an NFT with token_id is 4 and offering_id is 10. Buyer is one1sgdktd56d6ku5ud00dlss0r27u6rx8gq2080fm:
Screenshot from 2022-04-05 04-00-45
After buy, this nft is transfered from nft-marketplace address to buyer address:
Screenshot from 2022-04-05 04-00-29

from anone.

Related Issues (20)

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.