From 2ef7059b53b1e70aa141e0c3a71c7d6b7a20f408 Mon Sep 17 00:00:00 2001 From: AlexG <39581753+Reveloper@users.noreply.github.com> Date: Sun, 29 Jan 2023 13:23:13 +0400 Subject: [PATCH] beauty --- README.md | 7 +++++-- sources/jetton.deploy.ts | 4 ++-- sources/jetton.spec.ts | 4 +--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6913714..8fd5e88 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ -# TACT template project +# TACT jetton demo + +![Jetton demo logo](https://ipfs.io/ipfs/QmbPZjC1tuP6ickCCBtoTCQ9gc3RpkbKx7C1LMYQdcLwti) This project has ready to use TACT compiler, typescript + jest with ton-contract-executor, example how to do tests. +To run deployment of `jetton.tact` example on testnet, you need input your deployment wallet seed [here](https://github.com/Reveloper/tact-jetton/blob/main/sources/jetton.deploy.ts#L20) and owner address [here](https://github.com/Reveloper/tact-jetton/blob/main/sources/jetton.deploy.ts#L46). ```bash yarn test # To test contract yarn build # To build contract -yarn deploy # To deploy contract +yarn deploy # To deploy contract (need input deployment wallet) ``` ## Licence diff --git a/sources/jetton.deploy.ts b/sources/jetton.deploy.ts index de5f4f0..0bb08ee 100644 --- a/sources/jetton.deploy.ts +++ b/sources/jetton.deploy.ts @@ -39,12 +39,12 @@ import {SampleJetton} from "./output/jetton_SampleJetton"; const jettonParams = { name: "TactJet", - description: "Test tact contract - 4", + description: "This is description of Test tact jetton", image: "https://ipfs.io/ipfs/QmbPZjC1tuP6ickCCBtoTCQ9gc3RpkbKx7C1LMYQdcLwti" // Image url }; // Owner should usually be the deploying wallet's address. - let owner = Address.parse('kQDND6yHEzKB82ZGRn58aY9Tt_69Ie_uz73e2VuuJ3fVVcxf'); + let owner = Address.parse('kQDND6yHEzKB82ZGRn58aY9Tt_69Ie_u.............'); // Create content Cell diff --git a/sources/jetton.spec.ts b/sources/jetton.spec.ts index 14cbde1..d15630d 100644 --- a/sources/jetton.spec.ts +++ b/sources/jetton.spec.ts @@ -1,4 +1,4 @@ -import { toNano, beginCell } from "ton-core"; +import { toNano, beginCell } from "ton"; import { ContractSystem } from "ton-emulator"; import {SampleJetton} from './output/jetton_SampleJetton'; @@ -9,8 +9,6 @@ describe('jetton', () => { let system = await ContractSystem.create(); let owner = system.treasure('owner'); - let content = beginCell().storeUint(1, 16).storeSlice('fff').endCell(); - let contract = system.open(await SampleJetton.fromInit(owner.address, null)); let tracker = system.track(contract.address);