@ton/sandbox 0.28.0 → 0.30.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.
- package/CHANGELOG.md +13 -0
- package/dist/blockchain/Blockchain.d.ts +69 -55
- package/dist/blockchain/Blockchain.js +69 -55
- package/dist/blockchain/BlockchainStorage.d.ts +21 -4
- package/dist/blockchain/BlockchainStorage.js +6 -4
- package/dist/config/defaultConfig.d.ts +2 -2
- package/dist/config/defaultConfig.js +2 -2
- package/dist/config/slimConfig.d.ts +2 -2
- package/dist/config/slimConfig.js +2 -2
- package/dist/executor/emulator-emscripten.js +1 -1
- package/dist/executor/emulator-emscripten.wasm.js +1 -1
- package/dist/treasury/Treasury.d.ts +1 -1
- package/dist/treasury/Treasury.js +1 -1
- package/dist/utils/prettyLogTransaction.d.ts +4 -3
- package/dist/utils/prettyLogTransaction.js +4 -3
- package/dist/utils/printTransactionFees.d.ts +3 -3
- package/dist/utils/printTransactionFees.js +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export type Treasury = Sender & {
|
|
|
3
3
|
address: Address;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
* @class TreasuryContract is Wallet
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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) {
|