Browse Source

beauty

master
AlexG 2 years ago
parent
commit
2ef7059b53
  1. 7
      README.md
  2. 4
      sources/jetton.deploy.ts
  3. 4
      sources/jetton.spec.ts

7
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

4
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

4
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);

Loading…
Cancel
Save