Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigBalthazar committed Jul 10, 2024
1 parent 6366c88 commit b63102d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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);
}
}
```
<br>

### 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

<br>

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
Expand Down

0 comments on commit b63102d

Please sign in to comment.