diff --git a/package-lock.json b/package-lock.json index 9c7fd49..24078ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@minoru/react-dnd-treeview": "^3.4.1", "@monaco-editor/react": "^4.5.1", "@orbs-network/ton-access": "^2.3.0", - "@tact-lang/compiler": "^1.4.0", + "@tact-lang/compiler": "^1.4.1", "@ton-community/func-js": "^0.5.0", "@ton/core": "^0.56.3", "@ton/sandbox": "^0.16.0", @@ -897,12 +897,11 @@ } }, "node_modules/@tact-lang/compiler": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@tact-lang/compiler/-/compiler-1.4.0.tgz", - "integrity": "sha512-MUZ8ulTrIs0sgs1tdNww7yan6ozMGNO7xR6S0yKZc57E0EN9o72vRqKdQW7k3iS3+MvltKPt6RVbNamtuVJ1tQ==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@tact-lang/compiler/-/compiler-1.4.1.tgz", + "integrity": "sha512-JwwPCIqbcDaD+SDCzlJS625Hq0AK+qyPR6/VQKCwjm36UH7jk1YbhgYpgSGC18eBEWai3pNn7l1cwUo5Cc+jWQ==", "dependencies": { - "@ipld/dag-pb": "2.1.18", - "@tact-lang/opcode": "^0.0.14", + "@tact-lang/opcode": "^0.0.16", "@ton/core": "0.56.3", "@ton/crypto": "^3.2.0", "blockstore-core": "1.0.5", @@ -910,26 +909,19 @@ "ipfs-unixfs-importer": "9.0.10", "meow": "^13.2.0", "mkdirp": "^2.1.3", - "multiformats": "^13.1.0", "ohm-js": "^17.1.0", "path-normalize": "^6.0.13", "prando": "^6.0.1", - "qs": "^6.12.1", "zod": "^3.22.4" }, "bin": { - "tact": "bin/tact" + "tact": "bin/tact.js" } }, - "node_modules/@tact-lang/compiler/node_modules/multiformats": { - "version": "13.1.0", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", - "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" - }, "node_modules/@tact-lang/opcode": { - "version": "0.0.14", - "resolved": "https://registry.npmjs.org/@tact-lang/opcode/-/opcode-0.0.14.tgz", - "integrity": "sha512-8FKHK2jwvViRBReO2t40DCkHAP9KPTRWZof4kdsAUJFlyeWIC8SsRQSl9QkZxF+48WvjDduKNqN5Ltb80paufA==", + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/@tact-lang/opcode/-/opcode-0.0.16.tgz", + "integrity": "sha512-YJTUjoDOy+e+FHHppJiF+uWJ2IMjVknB9VQ5n78pknCE129DazCb/nFXnw0wVRDVcn8Tn59ky+pmjiQjQOjEbw==", "peerDependencies": { "@ton/core": ">=0.49.2", "@ton/crypto": "^3.2.0" @@ -6762,20 +6754,6 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, - "node_modules/qs": { - "version": "6.12.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.1.tgz", - "integrity": "sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==", - "dependencies": { - "side-channel": "^1.0.6" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -10024,12 +10002,11 @@ } }, "@tact-lang/compiler": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@tact-lang/compiler/-/compiler-1.4.0.tgz", - "integrity": "sha512-MUZ8ulTrIs0sgs1tdNww7yan6ozMGNO7xR6S0yKZc57E0EN9o72vRqKdQW7k3iS3+MvltKPt6RVbNamtuVJ1tQ==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@tact-lang/compiler/-/compiler-1.4.1.tgz", + "integrity": "sha512-JwwPCIqbcDaD+SDCzlJS625Hq0AK+qyPR6/VQKCwjm36UH7jk1YbhgYpgSGC18eBEWai3pNn7l1cwUo5Cc+jWQ==", "requires": { - "@ipld/dag-pb": "2.1.18", - "@tact-lang/opcode": "^0.0.14", + "@tact-lang/opcode": "^0.0.16", "@ton/core": "0.56.3", "@ton/crypto": "^3.2.0", "blockstore-core": "1.0.5", @@ -10037,25 +10014,16 @@ "ipfs-unixfs-importer": "9.0.10", "meow": "^13.2.0", "mkdirp": "^2.1.3", - "multiformats": "^13.1.0", "ohm-js": "^17.1.0", "path-normalize": "^6.0.13", "prando": "^6.0.1", - "qs": "^6.12.1", "zod": "^3.22.4" - }, - "dependencies": { - "multiformats": { - "version": "13.1.0", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", - "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" - } } }, "@tact-lang/opcode": { - "version": "0.0.14", - "resolved": "https://registry.npmjs.org/@tact-lang/opcode/-/opcode-0.0.14.tgz", - "integrity": "sha512-8FKHK2jwvViRBReO2t40DCkHAP9KPTRWZof4kdsAUJFlyeWIC8SsRQSl9QkZxF+48WvjDduKNqN5Ltb80paufA==", + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/@tact-lang/opcode/-/opcode-0.0.16.tgz", + "integrity": "sha512-YJTUjoDOy+e+FHHppJiF+uWJ2IMjVknB9VQ5n78pknCE129DazCb/nFXnw0wVRDVcn8Tn59ky+pmjiQjQOjEbw==", "requires": {} }, "@ton-community/func-js": { @@ -14254,14 +14222,6 @@ "integrity": "sha512-oyF+Urr3oAMUG/OiOuONL3HXM+53wvuH3mtIWQrYmsXoAq0DkvZp2RYUWFSMFtbdOpuS++9v+WAkzNVkMlNW6Q==", "requires": {} }, - "qs": { - "version": "6.12.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.1.tgz", - "integrity": "sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==", - "requires": { - "side-channel": "^1.0.6" - } - }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", diff --git a/package.json b/package.json index b64462b..3e0158c 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@minoru/react-dnd-treeview": "^3.4.1", "@monaco-editor/react": "^4.5.1", "@orbs-network/ton-access": "^2.3.0", - "@tact-lang/compiler": "^1.4.0", + "@tact-lang/compiler": "^1.4.1", "@ton-community/func-js": "^0.5.0", "@ton/core": "^0.56.3", "@ton/sandbox": "^0.16.0", diff --git a/src/assets/ton/tact/tmLanguage.json b/src/assets/ton/tact/tmLanguage.json index 5ef32bc..2ce6e7b 100644 --- a/src/assets/ton/tact/tmLanguage.json +++ b/src/assets/ton/tact/tmLanguage.json @@ -100,7 +100,7 @@ "patterns": [ { "comment": "FunC identifier", - "match": "((?:[a-zA-Z_\\'\\?!&]|::)(?:[a-zA-Z0-9_\\'\\?!&]|::)*)", + "match": "(.*?)", "name": "entity.name.function.func.tact" } ], diff --git a/src/hooks/project.hooks.ts b/src/hooks/project.hooks.ts index 0fdc0c3..a5f3208 100644 --- a/src/hooks/project.hooks.ts +++ b/src/hooks/project.hooks.ts @@ -217,7 +217,7 @@ export function useProjectActions() { project: fs, stdlib: '@stdlib', }); - if (!response) { + if (!response.ok) { throw new Error('Error while building'); } @@ -406,10 +406,10 @@ const getInitParams = ( initParams = // eslint-disable-next-line @typescript-eslint/no-explicit-any - contactType.init?.args.map((item: any) => { + contactType.init?.params.map((item: any) => { return { - name: item.name, - type: item.type.name, + name: item.name.text, + type: item.type.name.toLowerCase(), optional: item.type.optional, }; }) ?? [];