Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
Example of minting NFT Collection on TON using ton.js

## Installation and local launch
- Clone this repo `git clone https://github.com/coalus/MintyTON`

- Clone this repo `git clone https://github.com/coalus/MintyTON`
- Go to project folder `cd MintyTON`
- Install dependencies `yarn`
- Install dependencies `yarn`
- Copy .env.template to .env and insert your data (see table below)
- Start mint by running `yarn start`

## Environment variables

| Name | Description |
| ---------------------------------------- | ---------------------------------------- |
| `PINATA_API_KEY`, `PINATA_API_SECRET`| API keys from [pinata.cloud](https://pinata.cloud)|
| `MNEMONIC` | 24 mnemonic words of owner wallet |
| `TONCENTER_API_KEY` | API key from [@tonapibot](https://t.me/tonapibot) / [@tontestnetapibot](https:/t.me/tontestnetapibot) |

| Name | Description |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `PINATA_API_KEY`, `PINATA_API_SECRET` | API keys from [pinata.cloud](https://pinata.cloud) |
| `MNEMONICS` | 24 mnemonic words of owner wallet |
| `TONCENTER_API_KEY` | API key from [@tonapibot](https://t.me/tonapibot) / [@tontestnetapibot](https:/t.me/tontestnetapibot) |

# License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function init() {
const metadataFolderPath = "./data/metadata/";
const imagesFolderPath = "./data/images/";

const wallet = await openWallet(process.env.MNEMONIC!.split(" "), true);
const wallet = await openWallet(process.env.MNEMONICS!.split(" "), true);

console.log("Started uploading images to IPFS...");
const imagesIpfsHash = await uploadFolderToIPFS(imagesFolderPath);
Expand Down