diff --git a/CHANGELOG.md b/CHANGELOG.md index 4225bef6f..7083c2238 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Continuous integration to run Tact tests on Linux, macOS and Windows: PR [#96](https://github.com/tact-lang/tact/pull/96) +### Changed +- Migration to `@ton` NPM packages: PR [#89](https://github.com/tact-lang/tact/pull/89) + ### Fixed - Struct and message identifiers need to be capitalized: PRs [#81](https://github.com/tact-lang/tact/pull/81) and [#83](https://github.com/tact-lang/tact/pull/83) - Fixed the signature of the `checkDataSignature` function in `stdlib/std/crypto.tact`: PR [#50](https://github.com/tact-lang/tact/pull/50) diff --git a/examples/__snapshots__/increment.spec.ts.snap b/examples/__snapshots__/increment.spec.ts.snap index ab50e1771..ba654e18e 100644 --- a/examples/__snapshots__/increment.spec.ts.snap +++ b/examples/__snapshots__/increment.spec.ts.snap @@ -12,14 +12,17 @@ exports[`increment should deploy 1`] = ` "$type": "received", "message": { "body": { - "cell": "x{946A98B60000000000000000}", - "type": "cell", + "type": "known", + "value": { + "$$type": "Deploy", + "queryId": 0n, + }, }, "bounce": true, "from": "@treasure(treasure)", "to": "kQDeI5IisUF0tSvWxNDeA-Og-_S1nAT8ZdqTvOZ30HeNgzC1", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -31,14 +34,17 @@ exports[`increment should deploy 1`] = ` "messages": [ { "body": { - "cell": "x{AFF90F570000000000000000}", - "type": "cell", + "type": "known", + "value": { + "$$type": "DeployOk", + "queryId": 0n, + }, }, "bounce": false, "from": "kQDeI5IisUF0tSvWxNDeA-Og-_S1nAT8ZdqTvOZ30HeNgzC1", "to": "@treasure(treasure)", "type": "internal", - "value": 9990313000n, + "value": "9.990313", }, ], }, @@ -56,14 +62,18 @@ exports[`increment should deploy 2`] = ` "$type": "received", "message": { "body": { - "cell": "x{20064F3B00000000000000000000000000000000000000000000000000000000000000007FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFECC2_}", - "type": "cell", + "type": "known", + "value": { + "$$type": "Increment", + "key": 0n, + "value": -1232n, + }, }, "bounce": true, "from": "@treasure(treasure)", "to": "kQDeI5IisUF0tSvWxNDeA-Og-_S1nAT8ZdqTvOZ30HeNgzC1", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { diff --git a/examples/__snapshots__/multisig-3.spec.ts.snap b/examples/__snapshots__/multisig-3.spec.ts.snap index 53b05ab30..f689fb66d 100644 --- a/examples/__snapshots__/multisig-3.spec.ts.snap +++ b/examples/__snapshots__/multisig-3.spec.ts.snap @@ -19,7 +19,7 @@ exports[`muiltisig-3 should deploy 1`] = ` "from": "@treasure(treasure)", "to": "kQA2dtHnP8ywA0dgkHw5rQTXGtbBDktii55xFgnShHpu1XtQ", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { diff --git a/examples/__snapshots__/wallet.spec.ts.snap b/examples/__snapshots__/wallet.spec.ts.snap index 4c5293f35..c1d7a063c 100644 --- a/examples/__snapshots__/wallet.spec.ts.snap +++ b/examples/__snapshots__/wallet.spec.ts.snap @@ -19,7 +19,7 @@ exports[`wallet should deploy 1`] = ` "from": "@treasure(treasure)", "to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -31,6 +31,10 @@ exports[`wallet should deploy 1`] = ` { "$seq": 1, "events": [ + { + "$type": "storage-charged", + "amount": "0.000000006", + }, { "$type": "received", "message": { @@ -43,7 +47,7 @@ exports[`wallet should deploy 1`] = ` "from": "@treasure(treasure)", "to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j", "type": "internal", - "value": 1000000000n, + "value": "1", }, }, { @@ -61,7 +65,7 @@ exports[`wallet should deploy 1`] = ` "from": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j", "to": "@treasure(treasure)", "type": "internal", - "value": 10000000000n, + "value": "10", }, ], }, @@ -75,6 +79,10 @@ exports[`wallet should deploy 2`] = ` { "$seq": 2, "events": [ + { + "$type": "storage-charged", + "amount": "0.000000006", + }, { "$type": "received", "message": { @@ -86,7 +94,7 @@ exports[`wallet should deploy 2`] = ` "from": "@treasure(treasure)", "to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j", "type": "internal", - "value": 1000000000n, + "value": "1", }, }, { @@ -103,6 +111,10 @@ exports[`wallet should deploy 3`] = ` { "$seq": 3, "events": [ + { + "$type": "storage-charged", + "amount": "0.000000006", + }, { "$type": "received", "message": { @@ -113,7 +125,7 @@ exports[`wallet should deploy 3`] = ` "from": "@treasure(treasure)", "to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j", "type": "internal", - "value": 1000000000n, + "value": "1", }, }, { diff --git a/examples/increment.spec.ts b/examples/increment.spec.ts index 0e0f43313..95747d9bb 100644 --- a/examples/increment.spec.ts +++ b/examples/increment.spec.ts @@ -1,6 +1,6 @@ import { IncrementContract } from "./output/increment_IncrementContract"; import { ContractSystem } from "@tact-lang/emulator"; -import { toNano } from "ton-core"; +import { toNano } from "@ton/core"; describe('increment', () => { it('should deploy', async () => { diff --git a/examples/multisig-3.spec.ts b/examples/multisig-3.spec.ts index 6183df180..911660e83 100644 --- a/examples/multisig-3.spec.ts +++ b/examples/multisig-3.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from "ton-core"; +import { toNano } from "@ton/core"; import { ContractSystem } from "@tact-lang/emulator"; import { MultisigContract } from "./output/multisig-3_MultisigContract"; diff --git a/examples/output/echo_Echo.ts b/examples/output/echo_Echo.ts index cac2b3a5a..4ea9c63fe 100644 --- a/examples/output/echo_Echo.ts +++ b/examples/output/echo_Echo.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/external_External.ts b/examples/output/external_External.ts index 6caa4b672..bb03f3b56 100644 --- a/examples/output/external_External.ts +++ b/examples/output/external_External.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/increment_IncrementContract.ts b/examples/output/increment_IncrementContract.ts index ec3f6774e..6f35df130 100644 --- a/examples/output/increment_IncrementContract.ts +++ b/examples/output/increment_IncrementContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/inheritance_Contract.ts b/examples/output/inheritance_Contract.ts index daf66dc1b..ff8c23eec 100644 --- a/examples/output/inheritance_Contract.ts +++ b/examples/output/inheritance_Contract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/large_Large.ts b/examples/output/large_Large.ts index c674d99db..99c538071 100644 --- a/examples/output/large_Large.ts +++ b/examples/output/large_Large.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/maps_MapTestContract.ts b/examples/output/maps_MapTestContract.ts index 305542b1e..f436ceb79 100644 --- a/examples/output/maps_MapTestContract.ts +++ b/examples/output/maps_MapTestContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/multisig-3_MultisigContract.ts b/examples/output/multisig-3_MultisigContract.ts index 57883a0bc..f92e75aff 100644 --- a/examples/output/multisig-3_MultisigContract.ts +++ b/examples/output/multisig-3_MultisigContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/multisig_Multisig.ts b/examples/output/multisig_Multisig.ts index b5e346bc8..8244c2f8f 100644 --- a/examples/output/multisig_Multisig.ts +++ b/examples/output/multisig_Multisig.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/multisig_MultisigSigner.ts b/examples/output/multisig_MultisigSigner.ts index de3cd0639..282471bd0 100644 --- a/examples/output/multisig_MultisigSigner.ts +++ b/examples/output/multisig_MultisigSigner.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/native_Native.ts b/examples/output/native_Native.ts index 3913eb3a6..1c22065e0 100644 --- a/examples/output/native_Native.ts +++ b/examples/output/native_Native.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/payouts_Beacon.ts b/examples/output/payouts_Beacon.ts index 3a15c82f2..f5f0386a5 100644 --- a/examples/output/payouts_Beacon.ts +++ b/examples/output/payouts_Beacon.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/payouts_Payouts.ts b/examples/output/payouts_Payouts.ts index 3baf0a70b..3e2706ea0 100644 --- a/examples/output/payouts_Payouts.ts +++ b/examples/output/payouts_Payouts.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/rugpull_RugPull.ts b/examples/output/rugpull_RugPull.ts index d993677b9..6a8233151 100644 --- a/examples/output/rugpull_RugPull.ts +++ b/examples/output/rugpull_RugPull.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/treasure_Treasure.ts b/examples/output/treasure_Treasure.ts index df59bb0d4..c7c75b9d5 100644 --- a/examples/output/treasure_Treasure.ts +++ b/examples/output/treasure_Treasure.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/wallet-opt_Wallet.ts b/examples/output/wallet-opt_Wallet.ts index 1872b5542..c693da8b7 100644 --- a/examples/output/wallet-opt_Wallet.ts +++ b/examples/output/wallet-opt_Wallet.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/output/wallet_Wallet.ts b/examples/output/wallet_Wallet.ts index 8ba7e7579..9b24c2d6a 100644 --- a/examples/output/wallet_Wallet.ts +++ b/examples/output/wallet_Wallet.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/examples/wallet.spec.ts b/examples/wallet.spec.ts index 55b8de5a1..e318a2129 100644 --- a/examples/wallet.spec.ts +++ b/examples/wallet.spec.ts @@ -1,7 +1,7 @@ import { storeTransfer, Transfer, Wallet } from "./output/wallet_Wallet"; import { ContractSystem, testKey } from "@tact-lang/emulator"; -import { beginCell, toNano } from "ton-core"; -import { sign } from "ton-crypto"; +import { beginCell, toNano } from "@ton/core"; +import { sign } from "@ton/crypto"; describe('wallet', () => { it('should deploy', async () => { diff --git a/jest.config.js b/jest.config.js index 32cdf8f3f..70e1d015f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,5 +5,5 @@ module.exports = { maxWorkers: 1, globalSetup: './jest.setup.js', globalTeardown: './jest.teardown.js', - snapshotSerializers: ["ton-jest/serializers"], + snapshotSerializers: ["@tact-lang/ton-jest/serializers"], }; \ No newline at end of file diff --git a/package.json b/package.json index 0df912036..db143728e 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ }, "dependencies": { "@ipld/dag-pb": "2.1.18", - "@tact-lang/opcode": "^0.0.13", + "@tact-lang/opcode": "^0.0.14", "arg": "^5.0.2", "blockstore-core": "1.0.5", "change-case": "^4.1.2", @@ -40,15 +40,15 @@ "path-normalize": "^6.0.10", "prando": "^6.0.1", "qs": "^6.11.0", - "ton-core": ">=0.49.0", - "ton-crypto": "^3.2.0", + "@ton/core": "0.49.2", + "@ton/crypto": "^3.2.0", "zod": "^3.20.2" }, "devDependencies": { "@ohm-js/cli": "^1.1.0", "@release-it/keep-a-changelog": "^3.1.0", - "@tact-lang/coverage": "^0.0.5", - "@tact-lang/emulator": "^3.4.1", + "@tact-lang/coverage": "^0.0.8", + "@tact-lang/emulator": "^4.2.3", "@types/glob": "^8.1.0", "@types/jest": "^29.2.3", "@types/js-yaml": "^4.0.5", @@ -63,10 +63,11 @@ "rollup": "^3.17.2", "shiki": "^0.12.1", "ton-compiler": "^2.3.0", - "ton-jest": "^0.0.3", + "@tact-lang/ton-jest": "^0.0.4", "ts-jest": "^29.0.3", "ts-node": "^10.9.1", - "typescript": "^4.9.3" + "typescript": "^4.9.3", + "@tact-lang/ton-abi": "^0.0.3" }, "publishConfig": { "access": "public", diff --git a/scripts/prepare.ts b/scripts/prepare.ts index b91e45284..68d1dbdaf 100644 --- a/scripts/prepare.ts +++ b/scripts/prepare.ts @@ -1,7 +1,7 @@ import fs from 'fs'; import { decompileAll } from '@tact-lang/opcode'; import { run } from '../src/node'; -import { Cell } from 'ton-core'; +import { Cell } from '@ton/core'; import { build } from '../src/pipeline/build'; import { FuncCompilationResult, funcCompile } from '../src/func/funcCompile'; import path from 'path'; diff --git a/src/abi/global.ts b/src/abi/global.ts index 6a875ef16..f9a9d5699 100644 --- a/src/abi/global.ts +++ b/src/abi/global.ts @@ -1,4 +1,4 @@ -import { Address, Cell, toNano } from "ton-core"; +import { Address, Cell, toNano } from "@ton/core"; import { enabledDebug, enabledMaterchain } from "../config/features"; import { writeAddress, writeCell } from "../generator/writers/writeConstant"; import { writeExpression } from "../generator/writers/writeExpression"; @@ -6,7 +6,7 @@ import { throwError } from "../grammar/ast"; import { resolveConstantValue } from "../types/resolveConstantValue"; import { getErrorId } from "../types/resolveErrors"; import { AbiFunction } from "./AbiFunction"; -import { sha256_sync } from "ton-crypto"; +import { sha256_sync } from "@ton/crypto"; import { getType } from "../types/resolveDescriptors"; import { ops } from "../generator/writers/ops"; diff --git a/src/benchmarks/benchmarks.spec.ts b/src/benchmarks/benchmarks.spec.ts index 3e77f097a..5f20f53fa 100644 --- a/src/benchmarks/benchmarks.spec.ts +++ b/src/benchmarks/benchmarks.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from "ton-core"; +import { toNano } from "@ton/core"; import { ContractSystem } from "@tact-lang/emulator"; import { Functions } from './contracts/output/benchmark_functions_Functions'; import { Functions as FunctionsInline } from './contracts/output/benchmark_functions_inline_Functions'; diff --git a/src/benchmarks/contracts/output/benchmark_functions_Functions.ts b/src/benchmarks/contracts/output/benchmark_functions_Functions.ts index 3b5452fc0..97dff76c7 100644 --- a/src/benchmarks/contracts/output/benchmark_functions_Functions.ts +++ b/src/benchmarks/contracts/output/benchmark_functions_Functions.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/benchmarks/contracts/output/benchmark_functions_inline_Functions.ts b/src/benchmarks/contracts/output/benchmark_functions_inline_Functions.ts index 460051a8a..18dde6735 100644 --- a/src/benchmarks/contracts/output/benchmark_functions_inline_Functions.ts +++ b/src/benchmarks/contracts/output/benchmark_functions_inline_Functions.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/bindings/typescript/serializers.ts b/src/bindings/typescript/serializers.ts index 225fc58a9..f40e6f415 100644 --- a/src/bindings/typescript/serializers.ts +++ b/src/bindings/typescript/serializers.ts @@ -1,4 +1,4 @@ -import { ABITypeRef } from "ton-core"; +import { ABITypeRef } from "@ton/core"; import { Writer } from "../../utils/Writer"; const primitiveTypes = ['int', 'uint', 'address', 'bool', 'string', 'cell', 'slice', 'builder', 'fixed-bytes']; diff --git a/src/bindings/typescript/writeStruct.ts b/src/bindings/typescript/writeStruct.ts index 81777b28d..0045e5f91 100644 --- a/src/bindings/typescript/writeStruct.ts +++ b/src/bindings/typescript/writeStruct.ts @@ -1,4 +1,4 @@ -import { ABIType, ABITypeRef } from "ton-core"; +import { ABIType, ABITypeRef } from "@ton/core"; import { serializers } from "./serializers"; import { AllocationCell, AllocationOperation } from "../../storage/operation"; import { Writer } from "../../utils/Writer"; diff --git a/src/bindings/writeTypescript.ts b/src/bindings/writeTypescript.ts index 50938a668..f4c281160 100644 --- a/src/bindings/writeTypescript.ts +++ b/src/bindings/writeTypescript.ts @@ -1,6 +1,6 @@ import * as changeCase from 'change-case'; import { Writer } from "../utils/Writer"; -import { ABIArgument, ABIType, ContractABI } from "ton-core"; +import { ABIArgument, ABIType, ContractABI } from "@ton/core"; import { writeArgumentToStack, writeDictParser, writeGetParser, writeInitSerializer, writeParser, writeSerializer, writeStruct, writeTupleParser, writeTupleSerializer } from "./typescript/writeStruct"; import { AllocationCell } from "../storage/operation"; import { topologicalSort } from "../utils/utils"; @@ -56,7 +56,7 @@ export function writeTypescript(abi: ContractABI, init?: { ABIReceiver, TupleBuilder, DictionaryValue - } from 'ton-core'; + } from '@ton/core'; `); w.append(); diff --git a/src/generator/createABI.ts b/src/generator/createABI.ts index 57e1805e9..f88f06444 100644 --- a/src/generator/createABI.ts +++ b/src/generator/createABI.ts @@ -1,4 +1,4 @@ -import { ABIGetter, ABIReceiver, ABIType, ContractABI } from "ton-core"; +import { ABIGetter, ABIReceiver, ABIType, ContractABI } from "@ton/core"; import { contractErrors } from "../abi/errors"; import { CompilerContext } from "../context"; import { getSupportedIntefaces } from "../types/getSupportedInterfaces"; diff --git a/src/generator/emitter/emit.ts b/src/generator/emitter/emit.ts index 60920a4e3..ff1634981 100644 --- a/src/generator/emitter/emit.ts +++ b/src/generator/emitter/emit.ts @@ -1,4 +1,4 @@ -import { Maybe } from "ton-core/dist/utils/maybe"; +import { Maybe } from "@ton/core/dist/utils/maybe"; import { trimIndent } from "../../utils/text" import { WrittenFunction } from "../Writer"; import { createPadded } from "./createPadded"; diff --git a/src/generator/writeProgram.ts b/src/generator/writeProgram.ts index e4f1b4188..f9b238043 100644 --- a/src/generator/writeProgram.ts +++ b/src/generator/writeProgram.ts @@ -5,7 +5,7 @@ import { WriterContext, WrittenFunction } from "./Writer"; import { writeBouncedParser, writeOptionalParser, writeOptionalSerializer, writeParser, writeSerializer } from "./writers/writeSerialization"; import { writeStdlib } from "./writers/writeStdlib"; import { writeAccessors } from "./writers/writeAccessors"; -import { ContractABI } from "ton-core"; +import { ContractABI } from "@ton/core"; import { writeFunction } from "./writers/writeFunction"; import { calculateIPFSlink } from "../utils/calculateIPFSlink"; import { getRawAST } from "../grammar/store"; diff --git a/src/generator/writeReport.ts b/src/generator/writeReport.ts index 6e999d874..4886ec98a 100644 --- a/src/generator/writeReport.ts +++ b/src/generator/writeReport.ts @@ -1,4 +1,4 @@ -import { ContractABI } from "ton-core"; +import { ContractABI } from "@ton/core"; import { CompilerContext } from "../context"; import { PackageFileFormat } from "../packaging/fileFormat"; import { getType } from "../types/resolveDescriptors"; diff --git a/src/generator/writers/resolveFuncTypeFromAbi.ts b/src/generator/writers/resolveFuncTypeFromAbi.ts index 112617597..9ca0ea1cd 100644 --- a/src/generator/writers/resolveFuncTypeFromAbi.ts +++ b/src/generator/writers/resolveFuncTypeFromAbi.ts @@ -1,4 +1,4 @@ -import { ABITypeRef } from "ton-core"; +import { ABITypeRef } from "@ton/core"; import { getType } from "../../types/resolveDescriptors"; import { WriterContext } from "../Writer"; diff --git a/src/generator/writers/resolveFuncTypeFromAbiUnpack.ts b/src/generator/writers/resolveFuncTypeFromAbiUnpack.ts index b04e2f181..7f2327f9c 100644 --- a/src/generator/writers/resolveFuncTypeFromAbiUnpack.ts +++ b/src/generator/writers/resolveFuncTypeFromAbiUnpack.ts @@ -1,4 +1,4 @@ -import { ABITypeRef } from "ton-core"; +import { ABITypeRef } from "@ton/core"; import { getType } from "../../types/resolveDescriptors"; import { WriterContext } from "../Writer"; diff --git a/src/generator/writers/writeConstant.ts b/src/generator/writers/writeConstant.ts index 78e16533a..0b47bc5d9 100644 --- a/src/generator/writers/writeConstant.ts +++ b/src/generator/writers/writeConstant.ts @@ -1,4 +1,4 @@ -import { Address, beginCell, Cell } from "ton-core"; +import { Address, beginCell, Cell } from "@ton/core"; import { WriterContext } from "../Writer"; export function writeString(str: string, ctx: WriterContext) { diff --git a/src/generator/writers/writeExpression.ts b/src/generator/writers/writeExpression.ts index 246e53499..0b96bf8bb 100644 --- a/src/generator/writers/writeExpression.ts +++ b/src/generator/writers/writeExpression.ts @@ -9,7 +9,7 @@ import { GlobalFunctions } from "../../abi/global"; import { id } from "./id"; import { StructFunctions } from "../../abi/struct"; import { resolveFuncType } from "./resolveFuncType"; -import { Address, Cell } from "ton-core"; +import { Address, Cell } from "@ton/core"; import { writeAddress, writeCell, writeString } from "./writeConstant"; import { ops } from "./ops"; import { tryExpressionIntrinsics } from "../intrinsics/tryExpressionIntrinsics"; diff --git a/src/generator/writers/writeRouter.ts b/src/generator/writers/writeRouter.ts index 63abd5f52..89908667e 100644 --- a/src/generator/writers/writeRouter.ts +++ b/src/generator/writers/writeRouter.ts @@ -1,4 +1,4 @@ -import { beginCell } from "ton-core"; +import { beginCell } from "@ton/core"; import { getType, resolveTypeRef, toBounced } from "../../types/resolveDescriptors"; import { ReceiverDescription, ReceiverSelector, TypeDescription } from "../../types/types"; import { WriterContext } from "../Writer"; diff --git a/src/pipeline/build.ts b/src/pipeline/build.ts index 271814a71..fefd2af68 100644 --- a/src/pipeline/build.ts +++ b/src/pipeline/build.ts @@ -1,4 +1,4 @@ -import { beginCell, Cell, Dictionary } from 'ton-core'; +import { beginCell, Cell, Dictionary } from '@ton/core'; import { decompileAll } from '@tact-lang/opcode'; import { writeTypescript } from '../bindings/writeTypescript'; import { featureEnable } from '../config/features'; diff --git a/src/storage/allocator.ts b/src/storage/allocator.ts index 0bec58ce7..88670e0d9 100644 --- a/src/storage/allocator.ts +++ b/src/storage/allocator.ts @@ -1,4 +1,4 @@ -import { ABITypeRef } from "ton-core"; +import { ABITypeRef } from "@ton/core"; import { AllocationCell, AllocationOperation, AllocationOperationType } from "./operation"; const ALLOCATOR_RESERVE_BIT = 1; diff --git a/src/storage/operation.ts b/src/storage/operation.ts index 7f942b78c..81c217fcd 100644 --- a/src/storage/operation.ts +++ b/src/storage/operation.ts @@ -1,4 +1,4 @@ -import { ABITypeRef } from "ton-core"; +import { ABITypeRef } from "@ton/core"; import { TypeRef } from "../types/types"; export type AllocationCell = { diff --git a/src/test/__snapshots__/bugs.spec.ts.snap b/src/test/__snapshots__/bugs.spec.ts.snap index 4187f897d..270ddcc2d 100644 --- a/src/test/__snapshots__/bugs.spec.ts.snap +++ b/src/test/__snapshots__/bugs.spec.ts.snap @@ -19,7 +19,7 @@ exports[`bugs should deploy contract correctly 1`] = ` "from": "kQDsxraH9C2q62rBFOR2qqOFjjomtfdWo64TkbdMhFTJiLsN", "to": "kQBGSDIgoUMAjGBNBXjsdBRlfPtqK5rKgQOD5N7yKFfIXeuh", "type": "internal", - "value": 9958850000n, + "value": "9.95885", }, }, { @@ -31,14 +31,17 @@ exports[`bugs should deploy contract correctly 1`] = ` "messages": [ { "body": { - "cell": "x{D53276DB0000000000000000}", - "type": "cell", + "type": "known", + "value": { + "$$type": "TokenExcesses", + "queryId": 0n, + }, }, "bounce": false, "from": "kQBGSDIgoUMAjGBNBXjsdBRlfPtqK5rKgQOD5N7yKFfIXeuh", "to": "@treasure(treasure)", "type": "internal", - "value": 9914852826n, + "value": "9.914852826", }, ], }, diff --git a/src/test/__snapshots__/feature-deep.spec.ts.snap b/src/test/__snapshots__/feature-deep.spec.ts.snap index c77f9d896..06d6c8b3c 100644 --- a/src/test/__snapshots__/feature-deep.spec.ts.snap +++ b/src/test/__snapshots__/feature-deep.spec.ts.snap @@ -25,7 +25,7 @@ exports[`feature-random should chain deep sequences correctly 4`] = ` "from": "@treasure(treasure)", "to": "kQBzQuBPhn7ZBGyfJon1nlzqk4L83mOm_Pq47fHucwcVCken", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -44,7 +44,7 @@ exports[`feature-random should chain deep sequences correctly 4`] = ` "from": "kQBzQuBPhn7ZBGyfJon1nlzqk4L83mOm_Pq47fHucwcVCken", "to": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G", "type": "internal", - "value": 9970524000n, + "value": "9.970524", }, ], }, @@ -72,7 +72,7 @@ exports[`feature-random should chain deep sequences correctly 5`] = ` "from": "kQBzQuBPhn7ZBGyfJon1nlzqk4L83mOm_Pq47fHucwcVCken", "to": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G", "type": "internal", - "value": 9970524000n, + "value": "9.970524", }, }, { @@ -91,7 +91,7 @@ exports[`feature-random should chain deep sequences correctly 5`] = ` "from": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G", "to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w", "type": "internal", - "value": 9946637000n, + "value": "9.946637", }, ], }, @@ -119,7 +119,7 @@ exports[`feature-random should chain deep sequences correctly 6`] = ` "from": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G", "to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w", "type": "internal", - "value": 9946637000n, + "value": "9.946637", }, }, { @@ -138,7 +138,7 @@ exports[`feature-random should chain deep sequences correctly 6`] = ` "from": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w", "to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w", "type": "internal", - "value": 9923010000n, + "value": "9.92301", }, ], }, @@ -158,7 +158,7 @@ exports[`feature-random should chain deep sequences correctly 6`] = ` "from": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w", "to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w", "type": "internal", - "value": 9923010000n, + "value": "9.92301", }, }, { diff --git a/src/test/__snapshots__/feature-instrinsics.spec.ts.snap b/src/test/__snapshots__/feature-instrinsics.spec.ts.snap index 3a2e147ed..62b20f03f 100644 --- a/src/test/__snapshots__/feature-instrinsics.spec.ts.snap +++ b/src/test/__snapshots__/feature-instrinsics.spec.ts.snap @@ -5,6 +5,10 @@ exports[`feature-instrinsics should return correct instinsic results 1`] = ` { "$seq": 1, "events": [ + { + "$type": "storage-charged", + "amount": "0.00000001", + }, { "$type": "received", "message": { @@ -16,7 +20,7 @@ exports[`feature-instrinsics should return correct instinsic results 1`] = ` "from": "@treasure(treasure)", "to": "@contract", "type": "internal", - "value": 1000000000n, + "value": "1", }, }, { diff --git a/src/test/__snapshots__/feature-masterchain.spec.ts.snap b/src/test/__snapshots__/feature-masterchain.spec.ts.snap index 0d3ea7e07..efb54ce82 100644 --- a/src/test/__snapshots__/feature-masterchain.spec.ts.snap +++ b/src/test/__snapshots__/feature-masterchain.spec.ts.snap @@ -19,7 +19,7 @@ exports[`feature-masterchain should deploy to the workchain 1`] = ` "from": "@treasure(treasure)", "to": "kQCH5BskP3iUdwhhHq1e-02uGZl1K1v7Nv0FofkQsgMIa7bk", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -50,7 +50,7 @@ exports[`feature-masterchain should deploy to the workchain from masterchain whe "from": "@treasure(treasure)", "to": "kQB62cwgU28lN8tGqr00-iU4DNXBpiVr4ZnPJ1Z32NbD9xqj", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -81,7 +81,7 @@ exports[`feature-masterchain should deploy to the workchain when masterchain ena "from": "@treasure(treasure)", "to": "kQB62cwgU28lN8tGqr00-iU4DNXBpiVr4ZnPJ1Z32NbD9xqj", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -112,7 +112,7 @@ exports[`feature-masterchain should not deploy to the workchain from masterchain "from": "@treasure(treasure)", "to": "kQCH5BskP3iUdwhhHq1e-02uGZl1K1v7Nv0FofkQsgMIa7bk", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -131,7 +131,7 @@ exports[`feature-masterchain should not deploy to the workchain from masterchain "from": "kQCH5BskP3iUdwhhHq1e-02uGZl1K1v7Nv0FofkQsgMIa7bk", "to": "@treasure(treasure)", "type": "internal", - "value": 9989000000n, + "value": "9.989", }, }, ], diff --git a/src/test/__snapshots__/feature-send.spec.ts.snap b/src/test/__snapshots__/feature-send.spec.ts.snap index 30a495aeb..add17a8d7 100644 --- a/src/test/__snapshots__/feature-send.spec.ts.snap +++ b/src/test/__snapshots__/feature-send.spec.ts.snap @@ -5,6 +5,10 @@ exports[`feature-send should bounce on unknown message 1`] = ` { "$seq": 1, "events": [ + { + "$type": "storage-charged", + "amount": "0.000000005", + }, { "$type": "received", "message": { @@ -16,7 +20,7 @@ exports[`feature-send should bounce on unknown message 1`] = ` "from": "@treasure(treasure)", "to": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -35,7 +39,7 @@ exports[`feature-send should bounce on unknown message 1`] = ` "from": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM", "to": "@treasure(treasure)", "type": "internal", - "value": 9996013000n, + "value": "9.996013", }, }, ], @@ -55,14 +59,17 @@ exports[`feature-send should send reply correctly 1`] = ` "$type": "received", "message": { "body": { - "cell": "x{946A98B60000000000000000}", - "type": "cell", + "type": "known", + "value": { + "$$type": "Deploy", + "queryId": 0n, + }, }, "bounce": true, "from": "@treasure(treasure)", "to": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -92,6 +99,10 @@ exports[`feature-send should send reply correctly 2`] = ` { "$seq": 1, "events": [ + { + "$type": "storage-charged", + "amount": "0.000000005", + }, { "$type": "received", "message": { @@ -103,7 +114,7 @@ exports[`feature-send should send reply correctly 2`] = ` "from": "@treasure(treasure)", "to": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM", "type": "internal", - "value": 10000000000n, + "value": "10", }, }, { @@ -122,7 +133,7 @@ exports[`feature-send should send reply correctly 2`] = ` "from": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM", "to": "@treasure(treasure)", "type": "internal", - "value": 9990889000n, + "value": "9.990889", }, ], }, diff --git a/src/test/bugs.spec.ts b/src/test/bugs.spec.ts index 06794d6eb..af330d4d2 100644 --- a/src/test/bugs.spec.ts +++ b/src/test/bugs.spec.ts @@ -1,4 +1,4 @@ -import { beginCell, toNano } from 'ton-core'; +import { beginCell, toNano } from '@ton/core'; import { ContractSystem, Verbosity } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { SampleJetton } from './bugs/output/bugs_SampleJetton'; diff --git a/src/test/bugs/output/bugs_JettonDefaultWallet.ts b/src/test/bugs/output/bugs_JettonDefaultWallet.ts index a57eda375..3fab5b69d 100644 --- a/src/test/bugs/output/bugs_JettonDefaultWallet.ts +++ b/src/test/bugs/output/bugs_JettonDefaultWallet.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/bugs/output/bugs_Maps.ts b/src/test/bugs/output/bugs_Maps.ts index 9928fd1b7..0ec3e608d 100644 --- a/src/test/bugs/output/bugs_Maps.ts +++ b/src/test/bugs/output/bugs_Maps.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/bugs/output/bugs_SampleJetton.ts b/src/test/bugs/output/bugs_SampleJetton.ts index 6aab83d4e..76833d297 100644 --- a/src/test/bugs/output/bugs_SampleJetton.ts +++ b/src/test/bugs/output/bugs_SampleJetton.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/contracts/output/case-1_Empty.ts b/src/test/contracts/output/case-1_Empty.ts index 60c382e0f..2d7c19dc3 100644 --- a/src/test/contracts/output/case-1_Empty.ts +++ b/src/test/contracts/output/case-1_Empty.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/contracts/output/case-2_Empty.ts b/src/test/contracts/output/case-2_Empty.ts index cb6b55d6c..0973debd6 100644 --- a/src/test/contracts/output/case-2_Empty.ts +++ b/src/test/contracts/output/case-2_Empty.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/contracts/output/case-3_SampleContract.ts b/src/test/contracts/output/case-3_SampleContract.ts index 5d3965271..69e88fab9 100644 --- a/src/test/contracts/output/case-3_SampleContract.ts +++ b/src/test/contracts/output/case-3_SampleContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/contracts/output/case-4_SampleContract.ts b/src/test/contracts/output/case-4_SampleContract.ts index d4d595640..0777b0d00 100644 --- a/src/test/contracts/output/case-4_SampleContract.ts +++ b/src/test/contracts/output/case-4_SampleContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/contracts/output/stdlib_StdlibTest.ts b/src/test/contracts/output/stdlib_StdlibTest.ts index 545c07e5a..f2d4adc6f 100644 --- a/src/test/contracts/output/stdlib_StdlibTest.ts +++ b/src/test/contracts/output/stdlib_StdlibTest.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/feature-bounced-routing.spec.ts b/src/test/feature-bounced-routing.spec.ts index cb0083b94..e367e34f0 100644 --- a/src/test/feature-bounced-routing.spec.ts +++ b/src/test/feature-bounced-routing.spec.ts @@ -1,4 +1,4 @@ -import { beginCell, toNano } from 'ton-core'; +import { beginCell, toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { SampleContract2 } from './features/output/bounced-routing_SampleContract2'; diff --git a/src/test/feature-debug.spec.ts b/src/test/feature-debug.spec.ts index 13813ba48..f24710232 100644 --- a/src/test/feature-debug.spec.ts +++ b/src/test/feature-debug.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from 'ton-core'; +import { toNano } from '@ton/core'; import { ContractSystem, Verbosity } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { Debug } from './features/output/debug_Debug'; diff --git a/src/test/feature-deep.spec.ts b/src/test/feature-deep.spec.ts index 31be7984c..39bae6456 100644 --- a/src/test/feature-deep.spec.ts +++ b/src/test/feature-deep.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from 'ton-core'; +import { toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { A } from './features/output/deep_A'; diff --git a/src/test/feature-dns.spec.ts b/src/test/feature-dns.spec.ts index 69cf6088f..05870afd1 100644 --- a/src/test/feature-dns.spec.ts +++ b/src/test/feature-dns.spec.ts @@ -1,4 +1,4 @@ -import { OpenedContract, beginCell, toNano } from 'ton-core'; +import { OpenedContract, beginCell, toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { DNSTester } from './features/output/dns_DNSTester'; diff --git a/src/test/feature-instrinsics.spec.ts b/src/test/feature-instrinsics.spec.ts index 8832e8b7e..928231ec6 100644 --- a/src/test/feature-instrinsics.spec.ts +++ b/src/test/feature-instrinsics.spec.ts @@ -1,8 +1,8 @@ -import { Address, beginCell, Cell, toNano } from 'ton-core'; +import { Address, beginCell, Cell, toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { IntrinsicsTester } from './features/output/intrinsics_IntrinsicsTester'; -import { sha256_sync } from 'ton-crypto'; +import { sha256_sync } from '@ton/crypto'; describe('feature-instrinsics', () => { beforeEach(() => { diff --git a/src/test/feature-map.spec.ts b/src/test/feature-map.spec.ts index a98c62fa0..e2e56b667 100644 --- a/src/test/feature-map.spec.ts +++ b/src/test/feature-map.spec.ts @@ -2,8 +2,8 @@ import { randomAddress } from './utils/randomAddress'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { MapTestContract, SomeStruct } from './features/output/maps_MapTestContract'; import { ContractSystem } from '@tact-lang/emulator'; -import { beginCell, toNano } from 'ton-core'; -import { ComputeError } from 'ton-core'; +import { beginCell, toNano } from '@ton/core'; +import { ComputeError } from '@ton/core'; function strEq(a: SomeStruct | null, b: SomeStruct | null) { if (a === null || b === null) { diff --git a/src/test/feature-masterchain.spec.ts b/src/test/feature-masterchain.spec.ts index a52c024e0..1c03da7fc 100644 --- a/src/test/feature-masterchain.spec.ts +++ b/src/test/feature-masterchain.spec.ts @@ -1,4 +1,4 @@ -import { Address, beginCell, toNano } from 'ton-core'; +import { Address, beginCell, toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { MasterchainTester } from './features/output/masterchain_MasterchainTester'; diff --git a/src/test/feature-math.spec.ts b/src/test/feature-math.spec.ts index b26782825..63df0609c 100644 --- a/src/test/feature-math.spec.ts +++ b/src/test/feature-math.spec.ts @@ -1,4 +1,4 @@ -import { beginCell, Dictionary, toNano } from 'ton-core'; +import { beginCell, Dictionary, toNano } from '@ton/core'; import { ContractSystem, randomAddress } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { MathTester } from './features/output/math_MathTester'; diff --git a/src/test/feature-optionals.spec.ts b/src/test/feature-optionals.spec.ts index c71844e60..b1901384e 100644 --- a/src/test/feature-optionals.spec.ts +++ b/src/test/feature-optionals.spec.ts @@ -1,7 +1,7 @@ import { randomAddress } from './utils/randomAddress'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { ContractWithOptionals, SomeGenericStruct, StructWithOptionals } from './features/output/optionals_ContractWithOptionals'; -import { Address, beginCell, Cell, toNano } from 'ton-core'; +import { Address, beginCell, Cell, toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; function strEq2(a: StructWithOptionals | null, b: StructWithOptionals | null) { diff --git a/src/test/feature-ordering.spec.ts b/src/test/feature-ordering.spec.ts index a76a384fc..341115562 100644 --- a/src/test/feature-ordering.spec.ts +++ b/src/test/feature-ordering.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from 'ton-core'; +import { toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { A } from './features/output/ordering_A'; diff --git a/src/test/feature-random.spec.ts b/src/test/feature-random.spec.ts index 5b0ac3e0e..43195396b 100644 --- a/src/test/feature-random.spec.ts +++ b/src/test/feature-random.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from 'ton-core'; +import { toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { RandomContract } from './features/output/random_RandomContract'; diff --git a/src/test/feature-send.spec.ts b/src/test/feature-send.spec.ts index 17e49d20d..208666785 100644 --- a/src/test/feature-send.spec.ts +++ b/src/test/feature-send.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from 'ton-core'; +import { toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { SendTester } from './features/output/send_SendTester'; diff --git a/src/test/feature-serialization.spec.ts b/src/test/feature-serialization.spec.ts index 5a05f0ceb..383c8daa7 100644 --- a/src/test/feature-serialization.spec.ts +++ b/src/test/feature-serialization.spec.ts @@ -1,4 +1,4 @@ -import { toNano } from 'ton-core'; +import { toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { SerializationTester2 } from './features/output/serialization-2_SerializationTester2'; diff --git a/src/test/feature-strings.spec.ts b/src/test/feature-strings.spec.ts index b3cdbd46a..c5c8e26b7 100644 --- a/src/test/feature-strings.spec.ts +++ b/src/test/feature-strings.spec.ts @@ -1,4 +1,4 @@ -import { beginCell, toNano } from 'ton-core'; +import { beginCell, toNano } from '@ton/core'; import { ContractSystem } from '@tact-lang/emulator'; import { __DANGER_resetNodeId } from '../grammar/ast'; import { StringsTester } from './features/output/strings_StringsTester'; diff --git a/src/test/features/output/bounced-routing_SampleContract.ts b/src/test/features/output/bounced-routing_SampleContract.ts index 399e36d95..15cdcd2e7 100644 --- a/src/test/features/output/bounced-routing_SampleContract.ts +++ b/src/test/features/output/bounced-routing_SampleContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/bounced-routing_SampleContract2.ts b/src/test/features/output/bounced-routing_SampleContract2.ts index a0a27cb83..728e380b4 100644 --- a/src/test/features/output/bounced-routing_SampleContract2.ts +++ b/src/test/features/output/bounced-routing_SampleContract2.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/constants_ConstantTester.ts b/src/test/features/output/constants_ConstantTester.ts index a342c9903..7e5ffe2b4 100644 --- a/src/test/features/output/constants_ConstantTester.ts +++ b/src/test/features/output/constants_ConstantTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/debug_Debug.ts b/src/test/features/output/debug_Debug.ts index ded52d547..287de21a3 100644 --- a/src/test/features/output/debug_Debug.ts +++ b/src/test/features/output/debug_Debug.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/deep_A.ts b/src/test/features/output/deep_A.ts index 79ea42d25..4962c0185 100644 --- a/src/test/features/output/deep_A.ts +++ b/src/test/features/output/deep_A.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/deep_B.ts b/src/test/features/output/deep_B.ts index 0da5c4747..8c40b562e 100644 --- a/src/test/features/output/deep_B.ts +++ b/src/test/features/output/deep_B.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/deep_C.ts b/src/test/features/output/deep_C.ts index 8e98c9f78..224063f21 100644 --- a/src/test/features/output/deep_C.ts +++ b/src/test/features/output/deep_C.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/dns_DNSTester.ts b/src/test/features/output/dns_DNSTester.ts index 5b925d36d..d0518ab45 100644 --- a/src/test/features/output/dns_DNSTester.ts +++ b/src/test/features/output/dns_DNSTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/intrinsics_IntrinsicsTester.ts b/src/test/features/output/intrinsics_IntrinsicsTester.ts index 71ad6e776..f63e57a05 100644 --- a/src/test/features/output/intrinsics_IntrinsicsTester.ts +++ b/src/test/features/output/intrinsics_IntrinsicsTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/maps_MapTestContract.ts b/src/test/features/output/maps_MapTestContract.ts index 96de935a3..4dc985b96 100644 --- a/src/test/features/output/maps_MapTestContract.ts +++ b/src/test/features/output/maps_MapTestContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/masterchain-allow_MasterchainTester.ts b/src/test/features/output/masterchain-allow_MasterchainTester.ts index 22787806c..e1b66fa34 100644 --- a/src/test/features/output/masterchain-allow_MasterchainTester.ts +++ b/src/test/features/output/masterchain-allow_MasterchainTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/masterchain_MasterchainTester.ts b/src/test/features/output/masterchain_MasterchainTester.ts index 1a7e61fce..4ffa5339d 100644 --- a/src/test/features/output/masterchain_MasterchainTester.ts +++ b/src/test/features/output/masterchain_MasterchainTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/math_MathTester.ts b/src/test/features/output/math_MathTester.ts index 72a83a40a..70f61355d 100644 --- a/src/test/features/output/math_MathTester.ts +++ b/src/test/features/output/math_MathTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/optionals_ContractWithOptionals.ts b/src/test/features/output/optionals_ContractWithOptionals.ts index bf4dd7089..d5f1d6aaf 100644 --- a/src/test/features/output/optionals_ContractWithOptionals.ts +++ b/src/test/features/output/optionals_ContractWithOptionals.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/optionals_Opt2.ts b/src/test/features/output/optionals_Opt2.ts index c4c66cf18..956b0a7c2 100644 --- a/src/test/features/output/optionals_Opt2.ts +++ b/src/test/features/output/optionals_Opt2.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/optionals_Opt3.ts b/src/test/features/output/optionals_Opt3.ts index bc9e30113..02c9fa0c5 100644 --- a/src/test/features/output/optionals_Opt3.ts +++ b/src/test/features/output/optionals_Opt3.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/ordering_A.ts b/src/test/features/output/ordering_A.ts index 2a8abe8ab..591eebb62 100644 --- a/src/test/features/output/ordering_A.ts +++ b/src/test/features/output/ordering_A.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/random_RandomContract.ts b/src/test/features/output/random_RandomContract.ts index 8fe24580a..7b7762c2c 100644 --- a/src/test/features/output/random_RandomContract.ts +++ b/src/test/features/output/random_RandomContract.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/send_SendTester.ts b/src/test/features/output/send_SendTester.ts index c6ee15a9f..c2743dc77 100644 --- a/src/test/features/output/send_SendTester.ts +++ b/src/test/features/output/send_SendTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/serialization-2_SerializationTester2.ts b/src/test/features/output/serialization-2_SerializationTester2.ts index 138dea9ba..c7c1c85a2 100644 --- a/src/test/features/output/serialization-2_SerializationTester2.ts +++ b/src/test/features/output/serialization-2_SerializationTester2.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/serialization-3_SerializationTester.ts b/src/test/features/output/serialization-3_SerializationTester.ts index b97e144da..87c7b56c3 100644 --- a/src/test/features/output/serialization-3_SerializationTester.ts +++ b/src/test/features/output/serialization-3_SerializationTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/serialization_SerializationTester.ts b/src/test/features/output/serialization_SerializationTester.ts index deb01df6f..de37dc326 100644 --- a/src/test/features/output/serialization_SerializationTester.ts +++ b/src/test/features/output/serialization_SerializationTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/features/output/strings_StringsTester.ts b/src/test/features/output/strings_StringsTester.ts index 0eb42a4e9..2bafc62c4 100644 --- a/src/test/features/output/strings_StringsTester.ts +++ b/src/test/features/output/strings_StringsTester.ts @@ -18,7 +18,7 @@ import { ABIReceiver, TupleBuilder, DictionaryValue -} from 'ton-core'; +} from '@ton/core'; export type StateInit = { $$type: 'StateInit'; diff --git a/src/test/stdlib.spec.ts b/src/test/stdlib.spec.ts index e09b4e3af..7862d036b 100644 --- a/src/test/stdlib.spec.ts +++ b/src/test/stdlib.spec.ts @@ -1,4 +1,4 @@ -import { beginCell, toNano } from "ton-core"; +import { beginCell, toNano } from "@ton/core"; import { ContractSystem } from "@tact-lang/emulator"; import { StdlibTest } from './contracts/output/stdlib_StdlibTest'; diff --git a/src/test/utils/randomAddress.ts b/src/test/utils/randomAddress.ts index 3f96497fd..43d3cd2f5 100644 --- a/src/test/utils/randomAddress.ts +++ b/src/test/utils/randomAddress.ts @@ -1,5 +1,5 @@ import Prando from "prando"; -import { Address } from "ton-core"; +import { Address } from "@ton/core"; export function randomAddress(workchain: number, seed: string) { const random = new Prando(seed); diff --git a/src/types/createTLBType.ts b/src/types/createTLBType.ts index 6776eb1a8..79c1d135a 100644 --- a/src/types/createTLBType.ts +++ b/src/types/createTLBType.ts @@ -1,6 +1,6 @@ -import { ABIField, beginCell } from "ton-core"; +import { ABIField, beginCell } from "@ton/core"; import * as cs from 'change-case'; -import { sha256_sync } from "ton-crypto"; +import { sha256_sync } from "@ton/crypto"; function createTypeFormat(type: string, format: string | number | boolean | null) { if (type === 'int') { diff --git a/src/types/resolveABITypeRef.ts b/src/types/resolveABITypeRef.ts index 9bef037e4..3068942c1 100644 --- a/src/types/resolveABITypeRef.ts +++ b/src/types/resolveABITypeRef.ts @@ -1,4 +1,4 @@ -import { ABITypeRef } from "ton-core"; +import { ABITypeRef } from "@ton/core"; import { ASTField, ASTRef, throwError } from "../grammar/ast"; import { TypeRef } from "./types"; diff --git a/src/types/resolveConstantValue.ts b/src/types/resolveConstantValue.ts index 59406f131..e6f6df323 100644 --- a/src/types/resolveConstantValue.ts +++ b/src/types/resolveConstantValue.ts @@ -1,9 +1,9 @@ -import { Address, Cell, toNano } from "ton-core"; +import { Address, Cell, toNano } from "@ton/core"; import { enabledMaterchain } from "../config/features"; import { CompilerContext } from "../context"; import { ASTExpression, throwError } from "../grammar/ast"; import { printTypeRef, TypeRef } from "./types"; -import { sha256_sync } from "ton-crypto"; +import { sha256_sync } from "@ton/crypto"; function reduceInt(ast: ASTExpression): bigint { if (ast.kind === 'number') { diff --git a/src/types/resolveDescriptors.ts b/src/types/resolveDescriptors.ts index c40243ebf..f5f9b4ff0 100644 --- a/src/types/resolveDescriptors.ts +++ b/src/types/resolveDescriptors.ts @@ -6,7 +6,7 @@ import { cloneNode } from "../grammar/clone"; import { crc16 } from "../utils/crc16"; import { resolveConstantValue } from "./resolveConstantValue"; import { resolveABIType } from "./resolveABITypeRef"; -import { Address, Cell } from "ton-core"; +import { Address, Cell } from "@ton/core"; import { enabledExternals } from "../config/features"; import { isRuntimeType } from "./isRuntimeType"; diff --git a/src/types/resolveErrors.ts b/src/types/resolveErrors.ts index 554171c6c..51693a02d 100644 --- a/src/types/resolveErrors.ts +++ b/src/types/resolveErrors.ts @@ -1,4 +1,4 @@ -import { sha256_sync } from "ton-crypto"; +import { sha256_sync } from "@ton/crypto"; import { CompilerContext, createContextStore } from "../context"; import { ASTNode, traverse } from "../grammar/ast"; import { resolveConstantValue } from "./resolveConstantValue"; diff --git a/src/types/resolveSignatures.ts b/src/types/resolveSignatures.ts index 07c25ab73..9c7741683 100644 --- a/src/types/resolveSignatures.ts +++ b/src/types/resolveSignatures.ts @@ -1,5 +1,5 @@ import * as changeCase from 'change-case'; -import { ABIField, beginCell } from "ton-core"; +import { ABIField, beginCell } from "@ton/core"; import { CompilerContext } from "../context"; import { idToHex } from '../utils/idToHex'; import { newMessageId } from "../utils/newMessageId"; diff --git a/src/types/types.ts b/src/types/types.ts index 1f62d83d4..58bd235be 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -1,4 +1,4 @@ -import { ABIField, Address, Cell } from "ton-core"; +import { ABIField, Address, Cell } from "@ton/core"; import { ASTConstant, ASTFunction, ASTInitFunction, ASTNativeFunction, ASTNode, ASTReceive, ASTRef, ASTStatement, ASTType } from "../grammar/ast"; export type TypeOrigin = 'stdlib' | 'user'; diff --git a/src/utils/idToHex.ts b/src/utils/idToHex.ts index 56858df40..59a0ab9eb 100644 --- a/src/utils/idToHex.ts +++ b/src/utils/idToHex.ts @@ -1,4 +1,4 @@ -import { beginCell } from "ton-core"; +import { beginCell } from "@ton/core"; export function idToHex(id: number) { return beginCell().storeUint(id, 32).endCell().beginParse().loadBuffer(4).toString('hex') diff --git a/src/utils/newMessageId.ts b/src/utils/newMessageId.ts index f3204d041..afedbd8d1 100644 --- a/src/utils/newMessageId.ts +++ b/src/utils/newMessageId.ts @@ -1,5 +1,5 @@ -import { beginCell } from "ton-core"; -import { sha256_sync } from "ton-crypto"; +import { beginCell } from "@ton/core"; +import { sha256_sync } from "@ton/crypto"; export function newMessageId(signature: string) { return beginCell().storeBuffer(sha256_sync(signature)).endCell().beginParse().loadUint(32); diff --git a/src/verify.ts b/src/verify.ts index f428478e6..96f0b897c 100644 --- a/src/verify.ts +++ b/src/verify.ts @@ -1,5 +1,5 @@ import normalize from "path-normalize"; -import { Cell } from "ton-core"; +import { Cell } from "@ton/core"; import { Config, Options } from "./config/parseConfig"; import { consoleLogger } from "./logger"; import { PackageFileFormat, run, TactLogger } from "./main"; diff --git a/yarn.lock b/yarn.lock index 3612c94dc..f4dd202d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -823,35 +823,63 @@ dependencies: defer-to-connect "^2.0.1" -"@tact-lang/coverage@^0.0.5": - version "0.0.5" - resolved "https://registry.yarnpkg.com/@tact-lang/coverage/-/coverage-0.0.5.tgz#8da0d25f2a48638712fe746bfd05491d14773afa" - integrity sha512-1vWP2DyXDTMFrThdX+oYCHus+7FpAYTF2Jx0zEfHMJi0g6QL/4zCOkouEBFrvueOtsOiTQKGR+IFgUcNzXjnFw== +"@tact-lang/coverage@^0.0.8": + version "0.0.8" + resolved "https://registry.yarnpkg.com/@tact-lang/coverage/-/coverage-0.0.8.tgz#45e3e149fde407818b3f89036375afa55f7cd86c" + integrity sha512-e9S7gaPajCTj9z88yIEvMVVy+fHCHMpzFnj/jri33tO1HkpbE48jls8ZiAYuvDJVSbJ5hYItEklLw5hKC6jwqw== dependencies: - "@tact-lang/opcode" "^0.0.12" + "@tact-lang/opcode" "^0.0.14" glob "^9.3.2" prando "^6.0.1" teslabot "^1.5.0" zod "^3.20.2" -"@tact-lang/emulator@^3.4.1": - version "3.4.1" - resolved "https://registry.yarnpkg.com/@tact-lang/emulator/-/emulator-3.4.1.tgz#974fef4859ef8977dcbaa665c05f296410791ef6" - integrity sha512-+elgvFUCmjqBPWTFcxiyWQM+CxP+r8nqcd59HxJ2YkboiarC3IkjTcXkXAKIP9gMFfNRrbYjF1w/iC+5Mylgew== +"@tact-lang/emulator@^4.2.3": + version "4.2.3" + resolved "https://registry.yarnpkg.com/@tact-lang/emulator/-/emulator-4.2.3.tgz#a08216fb545b1d3e2da4cf47d6b4cc2293fd8b5b" + integrity sha512-uZF5cQUReToHNntiZjxP/Fc2kSO5lpO+rctuq/vFuGtpY/vdXVeT9pt8MpDgrWu6sR9emxjMDJUkRyEI0F4ROA== dependencies: prando "^6.0.1" teslabot "^1.5.0" zod "^3.20.2" -"@tact-lang/opcode@^0.0.12": - version "0.0.12" - resolved "https://registry.yarnpkg.com/@tact-lang/opcode/-/opcode-0.0.12.tgz#a186dc6ffaac91da39bdbf55dc28bd330be7a26b" - integrity sha512-iSLoENXb5KlD15d2XaH8omhSZFlmoF/uRMpblggnlt9WLxogCDNkMODyNS1EijhkhzBlAzXZIByFvWTLZda3bQ== +"@tact-lang/opcode@^0.0.14": + version "0.0.14" + resolved "https://registry.yarnpkg.com/@tact-lang/opcode/-/opcode-0.0.14.tgz#52a9cb65bd43b8975481ecac26a3a59b377d1cf2" + integrity sha512-8FKHK2jwvViRBReO2t40DCkHAP9KPTRWZof4kdsAUJFlyeWIC8SsRQSl9QkZxF+48WvjDduKNqN5Ltb80paufA== + +"@tact-lang/ton-abi@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@tact-lang/ton-abi/-/ton-abi-0.0.3.tgz#68aa8ecf8e14d91f37252773395753e4c623798e" + integrity sha512-n3ecmlwJiRI+4YKodc2/I3OsI14kYuxjPgFSWdNfr+GRMSZ76OvDIzq8Qr8k8iA3mSE+1RIplpluNnO9HCtgXg== + +"@tact-lang/ton-jest@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@tact-lang/ton-jest/-/ton-jest-0.0.4.tgz#c87604669ed0c6b4ba1a2e6f06616e267f7fc8ca" + integrity sha512-FWjfiNvhMlE44ZLLL7tgmHbrszMTPMttmYiaTekf1vwFXV3uAOawM8xM9NldYaCVs9eh8840PjgISdMMUTCSCw== + +"@ton/core@0.49.2": + version "0.49.2" + resolved "https://registry.yarnpkg.com/@ton/core/-/core-0.49.2.tgz#bb5f714f727cb98768d53bfb76b87133858e6bda" + integrity sha512-jzW7ZGNkkkv131uvgX/4JgHBdtEnanT8i1fnZ6NOL7lxXjlVIKTuAfr1J2wJQAGHn0wLrbceAHix3jKX+4F5CA== + dependencies: + symbol.inspect "1.0.1" -"@tact-lang/opcode@^0.0.13": - version "0.0.13" - resolved "https://registry.yarnpkg.com/@tact-lang/opcode/-/opcode-0.0.13.tgz#a168df5269809be7903f663fc216f0b9486a291a" - integrity sha512-4FGp1p3ahVrXr2QbyD2FqmnvXTMYapTlRJSPhj4O1L2yIq7dp0CkFL9EdKOCUfyirT0X5en78PHLfj0CuQGD7A== +"@ton/crypto-primitives@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@ton/crypto-primitives/-/crypto-primitives-2.0.0.tgz#446256146d64fcec6e3f21d9f40b5148640329cc" + integrity sha512-wttiNClmGbI6Dfy/8oyNnsIV0b/qYkCJz4Gn4eP62lJZzMtVQ94Ko7nikDX1EfYHkLI1xpOitWpW+8ZuG6XtDg== + dependencies: + jssha "3.2.0" + +"@ton/crypto@^3.2.0": + version "3.2.0" + resolved "https://registry.yarnpkg.com/@ton/crypto/-/crypto-3.2.0.tgz#8fcb36cc93eafd05249c847d1f4ad39cf2565e46" + integrity sha512-50RkwReEuV2FkxSZ8ht/x9+n0ZGtwRKGsJ0ay4I/HFhkYVG/awIIBQeH0W4j8d5lADdO5h01UtX8PJ8AjiejjA== + dependencies: + "@ton/crypto-primitives" "2.0.0" + jssha "3.2.0" + tweetnacl "1.0.3" "@tootallnate/once@1": version "1.1.2" @@ -4569,34 +4597,6 @@ ton-compiler@^2.3.0: arg "^5.0.1" tmp "^0.2.1" -ton-core@>=0.49.0: - version "0.49.0" - resolved "https://registry.yarnpkg.com/ton-core/-/ton-core-0.49.0.tgz#69d338daa72e33b36aea4fb02cb0c7b3bf2c668b" - integrity sha512-t3fhs9rb7JfOccSU966bLSHq5G4PYippaXpQJGZPvUwoNVdlM3/nUwz6S6cr/hsGbthRBzApl4FhJsDlx9r4vA== - dependencies: - symbol.inspect "1.0.1" - -ton-crypto-primitives@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ton-crypto-primitives/-/ton-crypto-primitives-2.0.0.tgz#e85cd68c0d523f6bdf3f306201a76e51b7e9312e" - integrity sha512-K+qKjpS0h9sPW6oExcpxnzuQ7nEgHEiDKwIqE/jWD25o8iFGe3FWj1gKxFNbKE9wwYKc5IV8FwrU+raF0KO5nQ== - dependencies: - jssha "3.2.0" - -ton-crypto@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ton-crypto/-/ton-crypto-3.2.0.tgz#cf8cd5410d8f04b04b359f80415b11efb312c60e" - integrity sha512-fltdBNQ45gARMuGMEOjPZWPJ5eSql8p3CA0Dj7tPv5lhU5ziT8SxXLAzDraR9HJ8YpjBHLVvYyhMLRiEwxgtMQ== - dependencies: - jssha "3.2.0" - ton-crypto-primitives "2.0.0" - tweetnacl "1.0.3" - -ton-jest@^0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/ton-jest/-/ton-jest-0.0.3.tgz#87b905ff32f7b6a007fe0595bc830c12d761441c" - integrity sha512-9ngWRCsd2CZHeybmV0mASLnKnZOWGAfRyoFgHAyOoI3IIC3T9VgHT8BemZLdEQxoizwQgVybCoVtXwCZ9MM0pw== - tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"