{"id":17026098,"url":"https://github.com/mcgingras/standard-audio-contracts","last_synced_at":"2026-03-07T10:34:48.065Z","repository":{"id":45964061,"uuid":"337608144","full_name":"mcgingras/standard-audio-contracts","owner":"mcgingras","description":"Contracts, test cases, and deploy scripts for Standard Audio MXTape project.","archived":false,"fork":false,"pushed_at":"2021-11-26T05:12:30.000Z","size":8968,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T10:46:53.586Z","etag":null,"topics":["ethereum","ethersjs","hardhat","music","nft","solidity","typechain","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcgingras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-10T03:41:49.000Z","updated_at":"2022-05-09T03:57:27.000Z","dependencies_parsed_at":"2022-09-23T09:00:15.111Z","dependency_job_id":null,"html_url":"https://github.com/mcgingras/standard-audio-contracts","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/mcgingras%2Fstandard-audio-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgingras%2Fstandard-audio-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgingras%2Fstandard-audio-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgingras%2Fstandard-audio-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcgingras","download_url":"https://codeload.github.com/mcgingras/standard-audio-contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219847890,"owners_count":16556345,"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":["ethereum","ethersjs","hardhat","music","nft","solidity","typechain","typescript"],"created_at":"2024-10-14T07:30:28.301Z","updated_at":"2025-02-21T10:32:56.494Z","avatar_url":"https://github.com/mcgingras.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# MXTape Contracts\n\nRepo containing the contracts, deployments, and test cases for the smart contracts of the MXTapes project.\n\n[Read More](https://docs.google.com/document/d/1dLMGF05rfyAeyf8dHteo8na3bnuXJT_EBJ5eLTB7e-4/edit)\n\n### Stack\n\n- [Hardhat](https://hardhat.org/)\n- [Ethers](https://docs.ethers.io/v5/)\n- [Hardhat Hackathon Boilerplate](https://github.com/nomiclabs/hardhat-hackathon-boilerplate)\n- [Hardhat Deploy](https://github.com/wighawag/hardhat-deploy)\n- [TypeChain](https://github.com/dethcrypto/TypeChain)\n- Helps to have Metamask installed.\n\n### Quick Start\n\nNew instructions coming soon.\n\n#### _new instructions_\n\nany of these commands (fairly self explainatory)\n\n```\nnpm compile\nnpm deploy\nnpm test\n```\n\n#### _old instructions_\n\nstart up a hardhat test node\n\n```\nnpm install\nnpx hardhat node\n```\n\nnew terminal tab to deploy the contract\n\n```\nnpx hardhat compile\nnpx hardhat run scripts/deploy.js --network localhost\n```\n\n### Overview of this Repo\n\n#### Contracts\n\n##### Mixtape\n\nThe main mixtape contract. Mints mixtapes, which in turn mints SubtapeFactories.\nContains royalty information.\n\n##### SubtapeFactory\n\nThe base contract for what a subtape factory looks like. Called a \"factory\" because it can mint N number of subtapes.\nPossibly confusing term though.\n\n##### SubtapeFactoryCreator\n\nMixtape inherits the SubtapeFactoryCreator contract, which provides structure for how to create new SubtapeFactories.\n\n#### Deploy\n\nDeploy scripts.\n\n#### Test\n\nTest cases.\n\n### Local Testing\n\ndeploys the contracts and launches test node on 8545\n\n```bash\nnpx hardhat node\n```\n\n### Things that I keep forgetting\n\nWhen you call `_mint` you pass the tokenId, so as long as tokenId and the index within the array are the same, there really isn't any problem or need for functions in enumerable like `getIdAtIndex`...\n\nwe should be fine.\n\nfigure out how this royalty stuff works\nmake subtapes sellable?\nmake subtapes easily transferable\nmake subtapes inherit metdata\n\n'''bash\nnpx hardhat console --network localhost\nconst mixtape = await ethers.getContractFactory(\"Mixtape\");\nconst contract = await mixtape.attach(\"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0\");\n// Now you can call functions of the contract\nawait contract.doTheThing();\n'''\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcgingras%2Fstandard-audio-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcgingras%2Fstandard-audio-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcgingras%2Fstandard-audio-contracts/lists"}