Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt minter-contract for Blueprint SDK #122

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
22 changes: 0 additions & 22 deletions .eslintrc.js

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/node.js.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ tonwallets/wallets
tonwallets
lib/cmd_temp.ts
dist
*.tgz
*.tgz
build
temp
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
8 changes: 7 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{}
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true,
"bracketSpacing": true,
"semi": true
}
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,29 @@ This is by far the simpler option if you want to use the standard Jetton code. Y

This is much more complicated and will allow you to change the actual behavior of the Jetton to any custom behavior you want to program with the [FunC](https://ton.org/docs/#/func) language. For example, let's say you want a special Jetton that pays a 1% fee to some address every time it's transferred between users. Since this behavior is different from the standard, for this option you will need to install the FunC compiler on your machine.

> Note: This project is based on the [tonstarter-contracts](https://github.com/ton-defi-org/tonstarter-contracts) repo, consult it if you need more help.
> Note: This project is based on the [@ton/blueprint](https://github.com/ton-org/blueprint) repo, consult it if you need more help.

#### Instructions:

1. Make sure you have all "Dependencies and Requirements" as described in [tonstarter-contracts](https://github.com/ton-defi-org/tonstarter-contracts/#dependencies-and-requirements) repo.
1. Make sure you have all "Dependencies and Requirements" as described in [@ton/blueprint](https://github.com/ton-org/blueprint) repo.

2. Git clone the repo locally and rename the directory to your own project name.

3. In the root repo dir, run in terminal `npm install`

4. Edit the smart contract source files to implement your new custom behavior, they're here: `contracts/*.fc`

5. Once you finish coding, build the project by running in the root repo dir `npm run build`
5. Once you finish coding, build the project by running in the root repo dir `npx blueprint build`

6. If you want to test your code locally, implement TypeScript unit tests here: `test/*.spec.ts`

7. Once your tests are ready, run them by running in the root repo dir `npm run test`
7. Once your tests are ready, run them by running in the root repo dir `npx blueprint test`

8. Edit your token metadata (like name and ticker) in `jettonParams` in `build/jetton-minter.deploy.ts`
8. Edit your token metadata (like name and ticker) in `scripts/deployMinter.ts` and `tests/Jetton.spec.ts`

9. Prepare at least 0.25 TON for deployment fees.

10. To deploy the token, run in the root repo dir `npm run deploy` and follow the on-screen instructions.
10. To deploy the token minter or wallet, run in the root repo dir `npx blueprint run` and follow the on-screen instructions.

 
## Jetton metadata field best practices
Expand Down
4 changes: 0 additions & 4 deletions build/.gitignore

This file was deleted.

183 changes: 0 additions & 183 deletions build/_build.ts

This file was deleted.

Loading