From b63102d110a982beef62d2ca2e3fd85c27a5f61d Mon Sep 17 00:00:00 2001 From: ZigBalthazar Date: Wed, 10 Jul 2024 20:56:43 +0330 Subject: [PATCH] docs: update readme --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5d36385..ae9cb42 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ import "@stdlib/deploy"; import "../../../traits/tokens/jetton/JettonMaster.tact"; import "../../../traits/tokens/jetton/JettonWallet.tact"; -contract JettonMasterImp with JettonMaster, Deployable { +contract MyJetton with JettonMaster, Deployable { total_supply: Int as coins; owner: Address; jetton_content: Cell; @@ -43,15 +43,15 @@ contract JettonMasterImp with JettonMaster, Deployable { } override inline fun calculate_jetton_wallet_init(owner_address: Address): StateInit { - return initOf JettonWalletImp(owner_address, myAddress()); + return initOf MyJettonWallet(owner_address, myAddress()); } } ``` -#### Jetton Wallet: +#### Sample Jetton Wallet: ```ts -contract JettonWalletImp with JettonWallet, Deployable { +contract MyJettonWallet with JettonWallet, Deployable { balance: Int as coins = 0; owner: Address; jetton_master: Address; @@ -62,20 +62,23 @@ contract JettonWalletImp with JettonWallet, Deployable { } override inline fun calculate_jetton_wallet_init(owner_address: Address): StateInit { - return initOf JettonWalletImp(owner_address, self.jetton_master); + return initOf MyJettonWallet(owner_address, self.jetton_master); } } ```
### implementation -actually you can find implementation for the traits or TEPs in `mock (contracts/mock)` directory +actually you can find implementation for the traits or TEPs in mock [contracts/mock](./contracts/mocks/) directory
-We are working on a solution to use `npm` to install OpenGem Contracts and import them directly into your contracts without copying the files manually. Additionally, we are exploring potential changes in Tact to support importing directly from GitHub or similar platforms. +### Tonion-CLI -## Libraries +We are working on a solution to use `npm` to install Tonion Contracts and import them directly into your contracts without copying the files manually. +Additionally, we are exploring potential changes in Tact to support importing directly from GitHub or similar platforms. + +## Traits ```plaintext ├── access