@layerzerolabs/ton-sdk-tools 3.0.12-ton.0 → 3.0.18-ton.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 +18 -0
- package/dist/index.cjs +131 -173
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -8
- package/dist/index.d.ts +17 -8
- package/dist/index.mjs +130 -168
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cell, Builder, ContractProvider, Sender, SenderArguments, Address, SendMode, Contract, Transaction, TransactionComputeVm, Message } from '@ton/core';
|
|
2
2
|
import { BlockchainTransaction, Blockchain } from '@ton/sandbox';
|
|
3
3
|
import { FlatTransactionComparable } from '@ton/test-utils';
|
|
4
4
|
|
|
@@ -78,12 +78,18 @@ declare function saveConstantsFile(constants: Map<string, bigint>, directory: st
|
|
|
78
78
|
declare function generateAllViewFunctions(rootDir: string, nameWhitelist: string[], blacklist: string[]): TonViewFunctionsDict;
|
|
79
79
|
declare function saveViewFunctions(viewFunctions: TonViewFunctionsDict, directory: string, filename: string): void;
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Wraps a blueprint-like artifact in a `Cell`. The constrains on the input type are loosened
|
|
83
|
+
* and only the `hex` property is made required.
|
|
84
|
+
*
|
|
85
|
+
* @param artifact Blueprint JSON artifact object
|
|
86
|
+
* @returns {Cell}
|
|
87
|
+
*/
|
|
88
|
+
declare const cellFromArtifact: ({ hex }: {
|
|
89
|
+
hex: string;
|
|
90
|
+
hash?: string | undefined;
|
|
91
|
+
hashBase64?: string | undefined;
|
|
92
|
+
}) => Cell;
|
|
87
93
|
declare function getOpcodeCRC(input: string): bigint;
|
|
88
94
|
declare const MASTER_CHAIN_ID = -1;
|
|
89
95
|
declare const BASE_CHAIN_ID = 0;
|
|
@@ -99,6 +105,9 @@ declare const addressToBigInt: (address: Address) => bigint;
|
|
|
99
105
|
* @param maxIntermediateBufferSize
|
|
100
106
|
*/
|
|
101
107
|
declare function to32ByteBuffer(value: bigint | number | string | Uint8Array, maxIntermediateBufferSize?: number): Buffer;
|
|
108
|
+
declare function findDeepestCell(cell: Cell): {
|
|
109
|
+
subTreeCells: number;
|
|
110
|
+
};
|
|
102
111
|
|
|
103
112
|
interface SendRequestOptions {
|
|
104
113
|
value: number | bigint | string;
|
|
@@ -439,4 +448,4 @@ declare function printTransactionTrace(transactions: Transaction[], opcodeInfo:
|
|
|
439
448
|
[p: string]: string;
|
|
440
449
|
}, callerStack?: string, profile?: Profile): void;
|
|
441
450
|
|
|
442
|
-
export { type Action, type Attribute, BASE_CHAIN_ID, BaseWrapper, type ConstructorArgs, type ConstructorCallGenerator, Errors, type FieldMap, type GasInfo, type InverseFieldMap, JettonMinter, type JettonMinterConfig, type JettonMinterContent, JettonWallet, type JettonWalletConfig, MASTER_CHAIN_ID, MASTER_CHAIN_SHARD, type MetaType, type Module, MultiSigErrors, MultiSigOpCodes, MultiSigParams, Multisig, type MultisigConfig, type MultisigData, Op, Order, type OrderFullConfig, type OrderInitConfig, type Profile, type SendRequestOptions, type TonObject, type TonObjectsDict, type TonViewFunction, type TonViewFunctionsDict, type TransferRequest, Txiterator, type UpdateRequest, addressToBigInt,
|
|
451
|
+
export { type Action, type Attribute, BASE_CHAIN_ID, BaseWrapper, type ConstructorArgs, type ConstructorCallGenerator, Errors, type FieldMap, type GasInfo, type InverseFieldMap, JettonMinter, type JettonMinterConfig, type JettonMinterContent, JettonWallet, type JettonWalletConfig, MASTER_CHAIN_ID, MASTER_CHAIN_SHARD, type MetaType, type Module, MultiSigErrors, MultiSigOpCodes, MultiSigParams, Multisig, type MultisigConfig, type MultisigData, Op, Order, type OrderFullConfig, type OrderInitConfig, type Profile, type SendRequestOptions, type TonObject, type TonObjectsDict, type TonViewFunction, type TonViewFunctionsDict, type TransferRequest, Txiterator, type UpdateRequest, addressToBigInt, beginMessage, bigintToAddress, buildOnchainMetadata, cellFromArtifact, computedGeneric, differentAddress, executeFrom, executeTill, extractConstants, extractEvents, findDeepestCell, findTransaction, formatCoinsPure, generateAllViewFunctions, generateTestUtilsCode, getMsgPrices, getOpcodeCRC, getRandom, getRandomInt, getSpecificFiles, jettonContentToCell, jettonMinterConfigToCell, jettonWalletConfigToCell, makeSnakeCell, mergeConstructorDicts, multisigConfigToCell, orderConfigToCell, parseDirectory, printTransactionTrace, randomQueryId, recursiveGenConstructorCode, recursiveGenDeconstructorCode, recursiveGenTSTypes, saveAllTypes, saveConstantsFile, saveEventsFile, saveObjectsAsTS, saveTonContractWrapper, saveTonObjectUnwrapper, saveViewFunctions, sendRequest, storageCollected, to32ByteBuffer };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cell, Builder, ContractProvider, Sender, SenderArguments, Address, SendMode, Contract, Transaction, TransactionComputeVm, Message } from '@ton/core';
|
|
2
2
|
import { BlockchainTransaction, Blockchain } from '@ton/sandbox';
|
|
3
3
|
import { FlatTransactionComparable } from '@ton/test-utils';
|
|
4
4
|
|
|
@@ -78,12 +78,18 @@ declare function saveConstantsFile(constants: Map<string, bigint>, directory: st
|
|
|
78
78
|
declare function generateAllViewFunctions(rootDir: string, nameWhitelist: string[], blacklist: string[]): TonViewFunctionsDict;
|
|
79
79
|
declare function saveViewFunctions(viewFunctions: TonViewFunctionsDict, directory: string, filename: string): void;
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Wraps a blueprint-like artifact in a `Cell`. The constrains on the input type are loosened
|
|
83
|
+
* and only the `hex` property is made required.
|
|
84
|
+
*
|
|
85
|
+
* @param artifact Blueprint JSON artifact object
|
|
86
|
+
* @returns {Cell}
|
|
87
|
+
*/
|
|
88
|
+
declare const cellFromArtifact: ({ hex }: {
|
|
89
|
+
hex: string;
|
|
90
|
+
hash?: string | undefined;
|
|
91
|
+
hashBase64?: string | undefined;
|
|
92
|
+
}) => Cell;
|
|
87
93
|
declare function getOpcodeCRC(input: string): bigint;
|
|
88
94
|
declare const MASTER_CHAIN_ID = -1;
|
|
89
95
|
declare const BASE_CHAIN_ID = 0;
|
|
@@ -99,6 +105,9 @@ declare const addressToBigInt: (address: Address) => bigint;
|
|
|
99
105
|
* @param maxIntermediateBufferSize
|
|
100
106
|
*/
|
|
101
107
|
declare function to32ByteBuffer(value: bigint | number | string | Uint8Array, maxIntermediateBufferSize?: number): Buffer;
|
|
108
|
+
declare function findDeepestCell(cell: Cell): {
|
|
109
|
+
subTreeCells: number;
|
|
110
|
+
};
|
|
102
111
|
|
|
103
112
|
interface SendRequestOptions {
|
|
104
113
|
value: number | bigint | string;
|
|
@@ -439,4 +448,4 @@ declare function printTransactionTrace(transactions: Transaction[], opcodeInfo:
|
|
|
439
448
|
[p: string]: string;
|
|
440
449
|
}, callerStack?: string, profile?: Profile): void;
|
|
441
450
|
|
|
442
|
-
export { type Action, type Attribute, BASE_CHAIN_ID, BaseWrapper, type ConstructorArgs, type ConstructorCallGenerator, Errors, type FieldMap, type GasInfo, type InverseFieldMap, JettonMinter, type JettonMinterConfig, type JettonMinterContent, JettonWallet, type JettonWalletConfig, MASTER_CHAIN_ID, MASTER_CHAIN_SHARD, type MetaType, type Module, MultiSigErrors, MultiSigOpCodes, MultiSigParams, Multisig, type MultisigConfig, type MultisigData, Op, Order, type OrderFullConfig, type OrderInitConfig, type Profile, type SendRequestOptions, type TonObject, type TonObjectsDict, type TonViewFunction, type TonViewFunctionsDict, type TransferRequest, Txiterator, type UpdateRequest, addressToBigInt,
|
|
451
|
+
export { type Action, type Attribute, BASE_CHAIN_ID, BaseWrapper, type ConstructorArgs, type ConstructorCallGenerator, Errors, type FieldMap, type GasInfo, type InverseFieldMap, JettonMinter, type JettonMinterConfig, type JettonMinterContent, JettonWallet, type JettonWalletConfig, MASTER_CHAIN_ID, MASTER_CHAIN_SHARD, type MetaType, type Module, MultiSigErrors, MultiSigOpCodes, MultiSigParams, Multisig, type MultisigConfig, type MultisigData, Op, Order, type OrderFullConfig, type OrderInitConfig, type Profile, type SendRequestOptions, type TonObject, type TonObjectsDict, type TonViewFunction, type TonViewFunctionsDict, type TransferRequest, Txiterator, type UpdateRequest, addressToBigInt, beginMessage, bigintToAddress, buildOnchainMetadata, cellFromArtifact, computedGeneric, differentAddress, executeFrom, executeTill, extractConstants, extractEvents, findDeepestCell, findTransaction, formatCoinsPure, generateAllViewFunctions, generateTestUtilsCode, getMsgPrices, getOpcodeCRC, getRandom, getRandomInt, getSpecificFiles, jettonContentToCell, jettonMinterConfigToCell, jettonWalletConfigToCell, makeSnakeCell, mergeConstructorDicts, multisigConfigToCell, orderConfigToCell, parseDirectory, printTransactionTrace, randomQueryId, recursiveGenConstructorCode, recursiveGenDeconstructorCode, recursiveGenTSTypes, saveAllTypes, saveConstantsFile, saveEventsFile, saveObjectsAsTS, saveTonContractWrapper, saveTonObjectUnwrapper, saveViewFunctions, sendRequest, storageCollected, to32ByteBuffer };
|