{"id":13430119,"url":"https://github.com/coming-chat/object-market","last_synced_at":"2026-01-08T01:02:56.676Z","repository":{"id":86723054,"uuid":"572919024","full_name":"coming-chat/object-market","owner":"coming-chat","description":"Object Market is a unique object trading marketplace in the Sui network.","archived":false,"fork":false,"pushed_at":"2023-05-11T01:58:41.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-16T05:31:45.747Z","etag":null,"topics":["blockchain","nft","sui"],"latest_commit_sha":null,"homepage":"","language":"Move","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coming-chat.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}},"created_at":"2022-12-01T10:07:20.000Z","updated_at":"2024-12-13T00:14:23.000Z","dependencies_parsed_at":"2024-01-27T09:39:07.200Z","dependency_job_id":"1e2426a1-cb32-4f56-bcb1-6429c9364799","html_url":"https://github.com/coming-chat/object-market","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coming-chat%2Fobject-market","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coming-chat%2Fobject-market/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coming-chat%2Fobject-market/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coming-chat%2Fobject-market/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coming-chat","download_url":"https://codeload.github.com/coming-chat/object-market/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246089021,"owners_count":20721807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["blockchain","nft","sui"],"created_at":"2024-07-31T02:00:50.189Z","updated_at":"2026-01-08T01:02:56.642Z","avatar_url":"https://github.com/coming-chat.png","language":"Move","funding_links":[],"categories":["Code"],"sub_categories":["DeFi"],"readme":"# ObjectMarket\n\nObject Market is a unique object trading marketplace in the Sui network. \n\n## Core Object\n\n- `module marketplace`\n\n```move\nstruct MarketplaceConfig has key,store {\n    id: UID,\n    is_paused: bool,\n    fee_bps: u16,\n    admin: address,\n    beneficiary: address,\n    balance: Balance\u003cSUI\u003e,\n    list_items: ObjectTable\u003cID, Listing\u003e\n}\n\nstruct Listing has key, store {\n    id: UID,\n    price: u64,\n    owner: address,\n    nft_type: String\n}\n```\n\n- `module royalty`\n\n```move\nstruct RoyaltyBag has key,store {\n    id: UID,\n    admin: address,\n    royalties: Bag\n}\n\nstruct RoyaltyNftTypeItem has key,store {\n    id: UID,\n    nft_type: String,\n    creator: address,\n    bps: u16\n}\n```\n\n## Public entry function\n- `module marketplace`\n\n```move\n// set marketplace config\n// called by admin\npublic entry fun set_marketplace(\n    mc: \u0026mut MarketplaceConfig,\n    new_admin: address,\n    new_fee_bps: u16,\n    ctx: \u0026mut TxContext\n);\n\n// for emergency pause marketplace\n// list,buy,change_price will be paused\n// delist, force_batch_delist will be still available\n// called by admin\npublic entry fun set_status(\n    mc: \u0026mut MarketplaceConfig,\n    is_pause: bool,\n    ctx: \u0026mut TxContext\n);\n\n// force delist nft items\n// called by admin\npublic entry fun force_batch_delist\u003cNftType: key + store\u003e(\n    mc: \u0026mut MarketplaceConfig,\n    item_ids: vector\u003cID\u003e,\n    ctx: \u0026mut TxContext\n);\n\n// list nft item\n// called by user\npublic entry fun list\u003cNftType: key + store\u003e(\n    mc: \u0026mut MarketplaceConfig,\n    item: NftType,\n    price: u64,\n    ctx: \u0026mut TxContext\n);\n\n// delist nft item\n// called by user\npublic entry fun delist\u003cNftType: key + store\u003e(\n    mc: \u0026mut MarketplaceConfig,\n    item_id: ID,\n    ctx: \u0026mut TxContext\n);\n\n// change nft item price\n// called by user\npublic entry fun change_price\u003cNftType: key + store\u003e(\n    mc: \u0026mut MarketplaceConfig,\n    item_id: ID,\n    new_price: u64,\n    ctx: \u0026mut TxContext\n);\n\n// buy nft item\n// called by user\npublic entry fun buy\u003cNftType: key + store\u003e(\n    mc: \u0026mut MarketplaceConfig,\n    rb: \u0026mut RoyaltyBag,\n    item_id: ID,\n    paid_coins: vector\u003cCoin\u003cSUI\u003e\u003e,\n    ctx: \u0026mut TxContext\n)\n\n```\n\n- `module royalty_fee`\n\n```move\n// set new admin\n// called by admin\npublic entry fun set_admin(\n    rb: \u0026mut RoyaltyBag,\n    new_admin: address,\n    ctx: \u0026mut TxContext\n);\n\n// set nft collection royalty\n// called by admin\npublic entry fun set_royalty\u003cNftType\u003e(\n    rb: \u0026mut RoyaltyBag,\n    creator: address,\n    bps: u16,\n    ctx: \u0026mut TxContext\n);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoming-chat%2Fobject-market","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoming-chat%2Fobject-market","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoming-chat%2Fobject-market/lists"}