@ton/sandbox 0.31.0 → 0.32.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 +7 -0
- package/dist/blockchain/Blockchain.d.ts +16 -2
- package/dist/blockchain/Blockchain.js +18 -1
- package/dist/blockchain/SmartContract.js +2 -0
- package/dist/executor/Executor.d.ts +14 -0
- package/dist/executor/Executor.js +34 -1
- package/dist/executor/emulator-emscripten.js +1 -1
- package/dist/executor/emulator-emscripten.wasm.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/meta/ContractsMeta.d.ts +10 -0
- package/dist/meta/ContractsMeta.js +2 -0
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { BlockchainContractProvider, SandboxContractProvider, } from './blockcha
|
|
|
4
4
|
export { BlockchainSender, } from './blockchain/BlockchainSender';
|
|
5
5
|
export { BlockchainStorage, LocalBlockchainStorage, RemoteBlockchainStorage, RemoteBlockchainStorageClient, wrapTonClient4ForRemote, } from './blockchain/BlockchainStorage';
|
|
6
6
|
export { Verbosity, LogsVerbosity, SmartContract, SmartContractTransaction, MessageParams, GetMethodParams, GetMethodResult, createEmptyShardAccount, createShardAccount, GetMethodError, TimeError, SmartContractSnapshot, EmulationError, } from './blockchain/SmartContract';
|
|
7
|
-
export { TickOrTock, IExecutor, Executor, GetMethodArgs as ExecutorGetMethodArgs, GetMethodResult as ExecutorGetMethodResult, RunTickTockArgs as ExecutorRunTickTockArgs, EmulationResult as ExecutorEmulationResult, RunTransactionArgs as ExecutorRunTransactionArgs, ExecutorVerbosity, } from './executor/Executor';
|
|
7
|
+
export { TickOrTock, IExecutor, Executor, GetMethodArgs as ExecutorGetMethodArgs, GetMethodResult as ExecutorGetMethodResult, RunTickTockArgs as ExecutorRunTickTockArgs, EmulationResult as ExecutorEmulationResult, RunTransactionArgs as ExecutorRunTransactionArgs, ExecutorVerbosity, BlockId, PrevBlocksInfo, } from './executor/Executor';
|
|
8
8
|
export { Event, EventAccountCreated, EventAccountDestroyed, EventMessageSent, } from './event/Event';
|
|
9
9
|
export { Treasury, TreasuryContract, } from './treasury/Treasury';
|
|
10
10
|
export { prettyLogTransaction, prettyLogTransactions, } from './utils/prettyLogTransaction';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Address, ContractABI } from "@ton/core";
|
|
2
|
+
export type ContractMeta = {
|
|
3
|
+
wrapperName?: string;
|
|
4
|
+
abi?: ContractABI | null;
|
|
5
|
+
treasurySeed?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface ContractsMeta {
|
|
8
|
+
get(key: Address): ContractMeta | undefined;
|
|
9
|
+
upsert(key: Address, value: Partial<ContractMeta>): void;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ton/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "TON transaction emulator",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@ton/core": "^0.60.1",
|
|
19
19
|
"@ton/crypto": "3.3.0",
|
|
20
|
-
"@ton/test-utils": "^0.
|
|
20
|
+
"@ton/test-utils": "^0.7.0",
|
|
21
|
+
"@ton/tolk-js": "^0.13.0",
|
|
21
22
|
"@ton/ton": "^15.2.1",
|
|
22
23
|
"@types/jest": "^29.5.0",
|
|
23
24
|
"@types/node": "^18.15.11",
|
|
@@ -30,9 +31,13 @@
|
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"@ton/crypto": ">=3.3.0",
|
|
34
|
+
"@ton/test-utils": ">=0.7.0",
|
|
33
35
|
"jest": "^29.5.0"
|
|
34
36
|
},
|
|
35
37
|
"peerDependenciesMeta": {
|
|
38
|
+
"@ton/test-utils": {
|
|
39
|
+
"optional": true
|
|
40
|
+
},
|
|
36
41
|
"jest": {
|
|
37
42
|
"optional": true
|
|
38
43
|
}
|