@ton/sandbox 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ export type Treasury = Sender & {
3
3
  address: Address;
4
4
  };
5
5
  /**
6
- * @class TreasuryContract is Wallet v4 alternative. For additional information see {@link Blockchain.treasury}
6
+ * @class TreasuryContract is a Wallet alternative. For additional information see {@link Blockchain#treasury}
7
7
  */
8
8
  export declare class TreasuryContract implements Contract {
9
9
  static readonly code: Cell;
@@ -24,7 +24,7 @@ function senderArgsToMessageRelaxed(args) {
24
24
  });
25
25
  }
26
26
  /**
27
- * @class TreasuryContract is Wallet v4 alternative. For additional information see {@link Blockchain.treasury}
27
+ * @class TreasuryContract is a Wallet alternative. For additional information see {@link Blockchain#treasury}
28
28
  */
29
29
  class TreasuryContract {
30
30
  static create(workchain, subwalletId) {
@@ -6,11 +6,12 @@ import { Transaction } from "@ton/core";
6
6
  export declare function prettyLogTransaction(tx: Transaction): string;
7
7
  /**
8
8
  * Log transaction using `console.log`. Logs base on result of {@link prettyLogTransaction}.
9
- * Example output:
10
- * ```
9
+ *
10
+ * @example Output
11
11
  * null ➡️ EQBGhqLAZseEqRXz4ByFPTGV7SVMlI4hrbs-Sps_Xzx01x8G
12
12
  * ➡️ 0.05 💎 EQC2VluVfpj2FoHNMAiDMpcMzwvjLZxxTG8ecq477RE3NvVt
13
- * ```
13
+ *
14
+ *
14
15
  * @param txs Transactions to log
15
16
  */
16
17
  export declare function prettyLogTransactions(txs: Transaction[]): void;
@@ -21,11 +21,12 @@ function prettyLogTransaction(tx) {
21
21
  exports.prettyLogTransaction = prettyLogTransaction;
22
22
  /**
23
23
  * Log transaction using `console.log`. Logs base on result of {@link prettyLogTransaction}.
24
- * Example output:
25
- * ```
24
+ *
25
+ * @example Output
26
26
  * null ➡️ EQBGhqLAZseEqRXz4ByFPTGV7SVMlI4hrbs-Sps_Xzx01x8G
27
27
  * ➡️ 0.05 💎 EQC2VluVfpj2FoHNMAiDMpcMzwvjLZxxTG8ecq477RE3NvVt
28
- * ```
28
+ *
29
+ *
29
30
  * @param txs Transactions to log
30
31
  */
31
32
  function prettyLogTransactions(txs) {
@@ -2,15 +2,15 @@ import { Transaction } from "@ton/core";
2
2
  export declare function formatCoinsPure(value: bigint, precision?: number): string;
3
3
  /**
4
4
  * Prints transaction fees.
5
- * Example output:
6
- * ```
5
+
6
+ * @example Output
7
7
  * ┌─────────┬─────────────┬────────────────┬────────────────┬────────────────┬────────────────┬───────────────┬────────────┬────────────────┬──────────┬────────────┐
8
8
  * │ (index) │ op │ valueIn │ valueOut │ totalFees │ inForwardFee │ outForwardFee │ outActions │ computeFee │ exitCode │ actionCode │
9
9
  * ├─────────┼─────────────┼────────────────┼────────────────┼────────────────┼────────────────┼───────────────┼────────────┼────────────────┼──────────┼────────────┤
10
10
  * │ 0 │ 'N/A' │ 'N/A' │ '1000 TON' │ '0.004007 TON' │ 'N/A' │ '0.001 TON' │ 1 │ '0.001937 TON' │ 0 │ 0 │
11
11
  * │ 1 │ '0x45ab564' │ '1000 TON' │ '998.8485 TON' │ '1.051473 TON' │ '0.000667 TON' │ '0.255 TON' │ 255 │ '0.966474 TON' │ 0 │ 0 │
12
12
  * │ 2 │ '0x0' │ '3.917053 TON' │ '0 TON' │ '0.00031 TON' │ '0.000667 TON' │ 'N/A' │ 0 │ '0.000309 TON' │ 0 │ 0 │
13
- * ```
13
+ *
14
14
  * @param transactions List of transaction to print fees
15
15
  */
16
16
  export declare function printTransactionFees(transactions: Transaction[]): void;
@@ -32,15 +32,15 @@ function formatCoins(value, precision = 6) {
32
32
  }
33
33
  /**
34
34
  * Prints transaction fees.
35
- * Example output:
36
- * ```
35
+
36
+ * @example Output
37
37
  * ┌─────────┬─────────────┬────────────────┬────────────────┬────────────────┬────────────────┬───────────────┬────────────┬────────────────┬──────────┬────────────┐
38
38
  * │ (index) │ op │ valueIn │ valueOut │ totalFees │ inForwardFee │ outForwardFee │ outActions │ computeFee │ exitCode │ actionCode │
39
39
  * ├─────────┼─────────────┼────────────────┼────────────────┼────────────────┼────────────────┼───────────────┼────────────┼────────────────┼──────────┼────────────┤
40
40
  * │ 0 │ 'N/A' │ 'N/A' │ '1000 TON' │ '0.004007 TON' │ 'N/A' │ '0.001 TON' │ 1 │ '0.001937 TON' │ 0 │ 0 │
41
41
  * │ 1 │ '0x45ab564' │ '1000 TON' │ '998.8485 TON' │ '1.051473 TON' │ '0.000667 TON' │ '0.255 TON' │ 255 │ '0.966474 TON' │ 0 │ 0 │
42
42
  * │ 2 │ '0x0' │ '3.917053 TON' │ '0 TON' │ '0.00031 TON' │ '0.000667 TON' │ 'N/A' │ 0 │ '0.000309 TON' │ 0 │ 0 │
43
- * ```
43
+ *
44
44
  * @param transactions List of transaction to print fees
45
45
  */
46
46
  function printTransactionFees(transactions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ton/sandbox",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "TON transaction emulator",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",