Skip to content

Contracts, test cases, and deploy scripts for Standard Audio MXTape project.

Notifications You must be signed in to change notification settings

mcgingras/standard-audio-contracts

Repository files navigation

MXTape Contracts

Repo containing the contracts, deployments, and test cases for the smart contracts of the MXTapes project.

Read More

Stack

Quick Start

New instructions coming soon.

new instructions

any of these commands (fairly self explainatory)

npm compile
npm deploy
npm test

old instructions

start up a hardhat test node

npm install
npx hardhat node

new terminal tab to deploy the contract

npx hardhat compile
npx hardhat run scripts/deploy.js --network localhost

Overview of this Repo

Contracts

Mixtape

The main mixtape contract. Mints mixtapes, which in turn mints SubtapeFactories. Contains royalty information.

SubtapeFactory

The base contract for what a subtape factory looks like. Called a "factory" because it can mint N number of subtapes. Possibly confusing term though.

SubtapeFactoryCreator

Mixtape inherits the SubtapeFactoryCreator contract, which provides structure for how to create new SubtapeFactories.

Deploy

Deploy scripts.

Test

Test cases.

Local Testing

deploys the contracts and launches test node on 8545

npx hardhat node

Things that I keep forgetting

When 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...

we should be fine.

figure out how this royalty stuff works make subtapes sellable? make subtapes easily transferable make subtapes inherit metdata

'''bash npx hardhat console --network localhost const mixtape = await ethers.getContractFactory("Mixtape"); const contract = await mixtape.attach("0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"); // Now you can call functions of the contract await contract.doTheThing(); '''

About

Contracts, test cases, and deploy scripts for Standard Audio MXTape project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published