-
Notifications
You must be signed in to change notification settings - Fork 0
Add how to burn page #609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add how to burn page #609
Conversation
Thanks for the update to the jetton burning how‑to. I reviewed the changes in standard/tokens/jettons/how-to-burning.mdx; a few blocking doc/style fixes are needed before merge. Findings (5)High (5)[HIGH] Missing safety callout for funds and keysLocation: mintlify-ton-docs/standard/tokens/jettons/how-to-burning.mdx Lines 11 to 16 in 70a4115
Description: Suggestion: It is possible to do it manually via your favorite IDE:
+
+> [!WARNING] Funds and keys at risk — use Testnet first
+> This example moves value on-chain and uses a mnemonic/private key.
+> Risk: irreversible transactions; Rollback: none; Scope: your wallet and jetton wallet.
+> Use TON Testnet first and label environments explicitly. Never paste real mnemonics; use secure storage.
+
```typescript [HIGH] Inlined mnemonic in code (unsafe secret handling)Location: mintlify-ton-docs/standard/tokens/jettons/how-to-burning.mdx Lines 45 to 49 in 70a4115
Description: Suggestion: - const your_mnemonic = 'put your mnemonic here, ...';
- const keyPair = await mnemonicToPrivateKey(your_mnemonic.split(" "));
+ const MNEMONIC = process.env.MNEMONIC;
+ if (!MNEMONIC) throw new Error("Set MNEMONIC env var with a test mnemonic.");
+ const keyPair = await mnemonicToPrivateKey(MNEMONIC.split(" ")); [HIGH] Undefined placeholders in example (copy/paste hazard)Location: mintlify-ton-docs/standard/tokens/jettons/how-to-burning.mdx Lines 20 to 22 in 70a4115
Description: Suggestion: - const jettonWalletAddress = Address
- .parse('put your Jetton wallet address');
- const destinationAddress = Address
- .parse('put your regular wallet address');
+ const jettonWalletAddress = Address.parse('<JETTON_WALLET_ADDR>');
+ const destinationAddress = Address.parse('<WALLET_ADDR>'); Add after the code block: Define placeholders (first use):
`<JETTON_WALLET_ADDR>` — your jetton wallet address.
`<WALLET_ADDR>` — your wallet address to receive responses.
`<RPC_URL_TESTNET>` — HTTPS endpoint of your TON testnet RPC provider.
`<MNEMONIC>` — your 24‑word seed phrase (set via `MNEMONIC` environment variable). [HIGH] UI strings formatted as code instead of quotation marksLocation: mintlify-ton-docs/standard/tokens/jettons/how-to-burning.mdx Lines 67 to 69 in 70a4115
Description: Suggestion: -Or via web services as [TON MINTER](https://minter.ton.org/). Connect your wallet via Ton connect.
-Insert the Jetton master contract address in the `Jetton address` field. Next, click the `Burn` button in the balance field of your wallet
+Or via web services as [TON MINTER](https://minter.ton.org/). Connect your wallet via Ton connect.
+Insert the Jetton master contract address in the "Jetton address" field. Next, click the "Burn" button in the balance field of your wallet
and enter the amount to burn. [HIGH] Unlabeled non‑runnable snippetLocation: mintlify-ton-docs/standard/tokens/jettons/how-to-burning.mdx Lines 11 to 16 in 70a4115
Description: Suggestion: It is possible to do it manually via your favorite IDE:
+Not runnable
+
```typescript |
…n-docs into add-how-to-burning
Closes #216