Skip to content

Commit

Permalink
Merge branch 'ton-community:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sansx authored Aug 30, 2024
2 parents 2e1e7a2 + c4c9abf commit b19d574
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 6 additions & 5 deletions docs/develop/dapps/asset-processing/jettons.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,21 @@ the `Jetton master contract` provides the get method `get_wallet_address(slice o
<TabItem value="js" label="js">

```js
import TonWeb from "tonweb";
import TonWeb from 'tonweb';
const tonweb = new TonWeb();
const jettonMinter = new TonWeb.token.jetton.JettonMinter(tonweb.provider, {address: "<JETTON_MASTER_ADDRESS>"});
const address = await jettonMinter.getJettonWalletAddress(new TonWeb.utils.Address("<OWNER_WALLET_ADDRESS>"));
const jettonMinter = new TonWeb.token.jetton.JettonMinter(tonweb.provider, { address: '<JETTON_MASTER_ADDRESS>' });
const jettonWalletAddress = await jettonMinter.getJettonWalletAddress(new TonWeb.utils.Address('<OWNER_WALLET_ADDRESS>'));

// It is important to always check that wallet indeed is attributed to desired Jetton Master:
const jettonWallet = new TonWeb.token.jetton.JettonWallet(tonweb.provider, {
address: jettonWalletAddress
});
const jettonData = await jettonWallet.getData();
if (jettonData.jettonMinterAddress.toString(false) !== new TonWeb.utils.Address(info.address).toString(false)) {
if (jettonData.jettonMinterAddress.toString(false) !== jettonMinter.address.toString(false)) {
throw new Error('jetton minter address from jetton wallet doesnt match config');
}

console.log('Jetton wallet address:', address.toString(true, true, true));
console.log('Jetton wallet address:', jettonWalletAddress.toString(true, true, true));
```

</TabItem>
Expand Down
5 changes: 4 additions & 1 deletion docs/develop/data-formats/tlb-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ implements TL-B types as an object, and returns serialized binary data.
| Go | [tonutils](https://github.com/xssnick/tonutils-go/tree/master/tlb) | https://t.me/tonutils |
| Go | [tongo](https://github.com/tonkeeper/tongo/tree/master/tlb) (+ parsing `.tlb` files) | https://t.me/tongo_lib |
| TypeScript | [tlb-parser](https://github.com/ton-community/tlb-parser) | - |
| Python | [ton-kotlin](https://github.com/disintar/tonpy) (+ parsing `.tlb` files) | https://t.me/dtontech |

## TL-B Generator

[tlb-codegen](https://github.com/ton-community/tlb-codegen) package allows you to generate Typescript code for serializing and deserializing structures according to the TLB scheme provided.
[tlb-codegen](https://github.com/ton-community/tlb-codegen) package allows you to generate Typescript code for serializing and deserializing structures according to the TLB scheme provided.

[tonpy](https://github.com/disintar/tonpy) package allows you to generate Python code for serializing and deserializing structures according to the TLB scheme provided.
1 change: 1 addition & 0 deletions docs/develop/smart-contracts/environment/testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ For convenience, almost the entire infrastructure of the mainnet (wallets, API,
* Testnet TON Center API: https://testnet.toncenter.com
* Testnet HTTP API: https://testnet.tonapi.io/
* Testnet bridge: https://bridge.ton.org/?testnet=true
* Testent dTON GraphQL: https://testnet.dton.io/

## Some third parties

Expand Down

0 comments on commit b19d574

Please sign in to comment.