{"id":24617793,"url":"https://github.com/jacoblincool/tot","last_synced_at":"2026-04-12T00:45:29.778Z","repository":{"id":103062273,"uuid":"462351329","full_name":"JacobLinCool/TOT","owner":"JacobLinCool","description":"Test Only Token. NFT Example. Solidity Smart Contract.","archived":false,"fork":false,"pushed_at":"2022-02-22T16:48:19.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T13:05:20.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/JacobLinCool.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":"2022-02-22T15:10:14.000Z","updated_at":"2022-03-15T14:09:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b56c600f-175f-4cbf-8a05-1c3a304a5a5d","html_url":"https://github.com/JacobLinCool/TOT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JacobLinCool/TOT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTOT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTOT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTOT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTOT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobLinCool","download_url":"https://codeload.github.com/JacobLinCool/TOT/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2FTOT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274455605,"owners_count":25288557,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-24T23:40:59.672Z","updated_at":"2026-04-12T00:45:29.735Z","avatar_url":"https://github.com/JacobLinCool.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TOT\n\nTest Only Token. NFT Example.\n\nFollow the instructions below, you can:\n\n1. Generate NFTs\n2. Store NFTs on IPFS\n3. Write Smart Contract\n4. Test Smart Contract\n5. Deploy Smart Contract\n\n## Setup\n\n### 1. Install Node.js 16+\n\nUsing NVM is recommended.\n\n### 2. Install PNPM (Optional)\n\n```bash\nnpm install -g pnpm\n```\n\n### 3. Install Packages\n\n```bash\npnpm i\n```\n\n\u003e Note:\n\u003e\n\u003e For NPM users, use `npm i` instead of `pnpm i`.\n\u003e\n\u003e For Yarn users, use `yarn`.\n\n### 4. Copy `.env.example` to `.env`\n\nThis file contains sensitive but necessary informations, make sure to keep them safe and **_NOT commited into source control_**.\n\n## Build \u0026 Store NFTs\n\nPrerequisites of this section:\n\n- A [`nft.storage`](https://nft.storage/) free account.\n\n### 1. Build NFT\n\nThis command will run code in `src/build`, which will generate the NFTs' meta and asset, then store them in the `nft` directory.\n\n```bash\npnpm nft:build\n```\n\n\u003e If the output dir is already exists, it will fail. You may want to remove the output dir first.\n\n### 2. Store NFT\n\nThis command will call [`nft.storage`](https://nft.storage/) API to store (and pin) the NFTs on IPFS.\n\n```bash\npnpm nft:store\n```\n\nBefore you use it, you should make sure that you already have a [`nft.storage`](https://nft.storage/) account, and the API key has been pasted in the `.env` file.\n\n**The process may take a few minutes to complete.**\n\nAfter the process is done, you can find the CIDs in `nft/ipfs.json` or on \u003chttps://nft.storage/\u003e.\n\n## Compile, Test \u0026 Deploy Contract\n\nPrerequisites of this section:\n\n- A [alchemy](https://www.alchemy.com/) free account.\n- A blockchain wallet with some ETH on Rinkeby Testnet.\n  - I think 0.01 ETH is enough to deploy the contract.\n  - Rinkeby Testnet, not Mainnet.\n\nThe source code of the contract is in `contracts/TOT.sol`.\n\nWe use `hardhat` to compile the contract, test it, and deploy it to the Ethereum testnet.\n\n### 1. Compile Contract\n\nYou can edit the contract in `contracts/TOT.sol`, configurations like `TOKEN_COST` can be found there.\n\n```bash\npnpm compile\n```\n\n### 2. Test Contract\n\n```bash\npnpm test\n```\n\n### 3. Deploy Contract\n\nWe use [alchemy](https://www.alchemy.com/) to deploy the contract. You have to sign up a free account to get the API key, and paste it in the `.env` file.\n\nAlso, the deployment needs your private key to sign the transaction. You should also paste it in the `.env` file.\n\n**Be carseful! Your private key is a very very important secret. Please make sure you have it safely stored.**\n\n```bash\npnpm deploy\n```\n\nCongratulations! You can interact with the contract on chain now!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoblincool%2Ftot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftot/lists"}