{"id":27946634,"url":"https://github.com/bitfancy/sui-nft-auction","last_synced_at":"2026-01-23T18:34:22.233Z","repository":{"id":283852427,"uuid":"953098514","full_name":"BitFancy/Sui-Nft-auction","owner":"BitFancy","description":"A smart contract for NFT auctions developed using the Move language, designed specifically for the Sui blockchain.","archived":false,"fork":false,"pushed_at":"2025-03-22T15:18:42.000Z","size":253,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T13:56:44.608Z","etag":null,"topics":["aptos","auction","move","nft","smart-contract","sui"],"latest_commit_sha":null,"homepage":"","language":"Move","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BitFancy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-22T15:10:39.000Z","updated_at":"2025-03-22T15:25:27.000Z","dependencies_parsed_at":"2025-03-22T16:36:31.698Z","dependency_job_id":null,"html_url":"https://github.com/BitFancy/Sui-Nft-auction","commit_stats":null,"previous_names":["bitfancy/sui-nft-auction"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BitFancy/Sui-Nft-auction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2FSui-Nft-auction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2FSui-Nft-auction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2FSui-Nft-auction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2FSui-Nft-auction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BitFancy","download_url":"https://codeload.github.com/BitFancy/Sui-Nft-auction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2FSui-Nft-auction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28697429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aptos","auction","move","nft","smart-contract","sui"],"created_at":"2025-05-07T13:56:43.060Z","updated_at":"2026-01-23T18:34:22.215Z","avatar_url":"https://github.com/BitFancy.png","language":"Move","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFT Auction Smart Contract for Sui Blockchain\n\nThis repository contains a smart contract package for creating and auctioning Non-Fungible Tokens (NFTs) on the Sui blockchain. The package includes modules for NFT creation, auction management, and comprehensive testing.\n\n## Table of Contents\n\n1. [Overview](#overview)\n2. [Project Structure](#project-structure)\n3. [Prerequisites](#prerequisites)\n4. [Installation](#installation)\n5. [Usage](#usage)\n6. [Deployment](#deployment)\n7. [Testing](#testing)\n8. [Contributing](#contributing)\n\n## Overview\n\nThis smart contract package allows users to:\n\n- Create and mint NFTs\n- Transfer NFT ownership\n- Create auctions for NFTs\n- Place bids on auctions\n- End auctions and transfer NFTs to winners\n- Automatically return NFTs to sellers if no bids are placed\n\nThe contract is written in the Move language for the Sui blockchain, ensuring secure and efficient operations.\n\n## Project Structure\n\nThe project consists of three main modules:\n\n1. `nft.move`: Handles NFT creation, minting, and transfers.\n2. `auction.move`: Manages the auction process, including creation, bidding, and completion.\n3. `auction_tests.move`: Contains comprehensive tests for both the NFT and auction functionalities.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- [Sui CLI](https://docs.sui.io/build/install)\n- [Move language](https://github.com/move-language/move)\n- [Git](https://git-scm.com/downloads)\n\n## Installation\n\n1. Clone the repository:\n\n```\ngit clone https://github.com/bitfancy/Sui-Nft-auction.git\n```\n\n```\ncd Sui-Nft-auction\n```\n\n2. Build the project:\n\n```\nsui move build\n```\n\n## Usage\n\n#### Creating an NFT\n\nTo create an NFT, use the `mint` function in the `nft` module:\n```\nnft::mint(name, description, image_url)\n```\nOne can also transfer the NFT to another if they wished with `transfer_nft` function in the same module:\n```\nnft::transfer_nft(nft,recipient)\n```\n\n#### Creating an Auction\nTo start an auction for an NFT, use the `create_auction` function in the auction module. The duration is in milliseconds:\n```\nauction::create_auction(nft, min_bid, duration, clock)\n```\n\n#### Placing a Bid \nTo place a bid on an auction, use the `place_bid` function in the auction module:\n```\nauction::place_bid(auction, clock, amount, ctx)\n```\n\n#### Ending an Auction\nTo end an auction, use the `end_auction` function in the auction module:\n```\nauction::end_auction(auction, clock, ctx)\n```\n\n#### Claiming an NFT\nThe winner can claim their NFT using the claim_nft function in the auction module:\n```\nauction::claim_nft(auction, ctx)\n```\n\n## Deployment\nTo deploy the package to the Sui network, we use the following commands in a command line interface:\n\n- Build the package:\n  ```\n  sui move build\n  ```\n- Deploy the package:\n    ```\n    sui client publish --gas-budget 10000000\n    ```   \n- Note the package ID from the output. You'll need this to interact with the deployed contract.\n- You can also use [Suiscan](https://suiscan.xyz/mainnet/home) which provides an interface to interact with the package once deployed.\n\n## Testing\nRun the tests using the following commands in your commad line interface:\n```\nsui move test\n```\nThis will execute all tests in the `nft_auction_tests` module, ensuring the correct functionality of both the NFT and auction features.\n\n## Contributing\nContributions are welcome! Please feel free to submit a Pull Request.🙂 👍\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfancy%2Fsui-nft-auction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfancy%2Fsui-nft-auction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfancy%2Fsui-nft-auction/lists"}