diff --git a/package.json b/package.json index e8a7f21..d20749e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@tact-lang/ton-jest": "^0.0.4", "@ton/core": "~0.56.3", "@ton/crypto": "^3.2.0", - "@ton/ton": "^13.9.0", + "@ton/ton": "^13.11.1", "@types/jest": "^29.2.4", "@types/node": "^18.11.14", "@types/qs": "^6.9.7", diff --git a/sources/contract.deploy.ts b/sources/contract.deploy.ts index 86425a0..8760845 100644 --- a/sources/contract.deploy.ts +++ b/sources/contract.deploy.ts @@ -1,7 +1,7 @@ import * as fs from "fs"; import * as path from "path"; import { Address, contractAddress } from "@ton/core"; -import { SampleTactContract } from "./output/sample_SampleTactContract"; +import { SampleTactContract } from "./output/sample_SampleTactContract"; // The modoles will show up in here after compiled the tact contract import { prepareTactDeployment } from "@tact-lang/deployer"; (async () => { diff --git a/sources/contract.spec.ts b/sources/contract.spec.ts index 06620e7..f8df51e 100644 --- a/sources/contract.spec.ts +++ b/sources/contract.spec.ts @@ -3,13 +3,22 @@ import { ContractSystem } from "@tact-lang/emulator"; import { SampleTactContract } from "./output/sample_SampleTactContract"; describe("contract", () => { - it("should deploy correctly", async () => { + + let system: ContractSystem; + let owner: any; + let nonOwner: any; + + beforeAll(async () => { // Create ContractSystem and deploy contract - let system = await ContractSystem.create(); - let owner = system.treasure("owner"); - let nonOwner = system.treasure("non-owner"); - let contract = system.open(await SampleTactContract.fromInit(owner.address)); + system = await ContractSystem.create(); + owner = system.treasure("owner"); + nonOwner = system.treasure("non-owner"); + }); + + it("should deploy correctly", async () => { + let contract = await system.open(await SampleTactContract.fromInit(owner.address)); system.name(contract.address, "main"); + let track = system.track(contract); await contract.send(owner, { value: toNano(1) }, { $$type: "Deploy", queryId: 0n }); await system.run(); diff --git a/yarn.lock b/yarn.lock index 8a36bc5..75705b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -709,7 +709,7 @@ resolved "https://registry.yarnpkg.com/@tact-lang/ton-jest/-/ton-jest-0.0.4.tgz#c87604669ed0c6b4ba1a2e6f06616e267f7fc8ca" integrity sha512-FWjfiNvhMlE44ZLLL7tgmHbrszMTPMttmYiaTekf1vwFXV3uAOawM8xM9NldYaCVs9eh8840PjgISdMMUTCSCw== -"@ton/core@0.56.3", "@ton/core@~0.56.3": +"@ton/core@0.56.3", "@ton/core@^0.56.3": version "0.56.3" resolved "https://registry.yarnpkg.com/@ton/core/-/core-0.56.3.tgz#1162764573abb76032eba70f8497e5cb2ea532ee" integrity sha512-HVkalfqw8zqLLPehtq0CNhu5KjVzc7IrbDwDHPjGoOSXmnqSobiWj8a5F+YuWnZnEbQKtrnMGNOOjVw4LG37rg== @@ -732,12 +732,12 @@ jssha "3.2.0" tweetnacl "1.0.3" -"@ton/ton@^13.9.0": - version "13.9.0" - resolved "https://registry.yarnpkg.com/@ton/ton/-/ton-13.9.0.tgz#18b0a447d49c84b30997bda385af30278bac8033" - integrity sha512-bvDn9vv0rNsN/OH84Q4DKH3N21AD0MvTxXmnS0wPEOoU38F4mltXmA7an2SjaSgd9kAlsOSHa0EirkTie+Zitw== +"@ton/ton@^13.11.1": + version "13.11.1" + resolved "https://registry.yarnpkg.com/@ton/ton/-/ton-13.11.1.tgz#d72169a6a5bf7fce6e556126c56391139442b1e2" + integrity sha512-tcLdHzwhS5bmS0EGstcmfYK0ZeRrNz1AUIzUGKq/Xh0MGEwfP1qZBMloGGHLQnyZdRQ1D7Wx4g4mBKNrvG6DcQ== dependencies: - axios "^0.25.0" + axios "^1.6.7" dataloader "^2.0.0" symbol.inspect "1.0.1" teslabot "^1.3.0" @@ -942,13 +942,6 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -axios@^0.25.0: - version "0.25.0" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.25.0.tgz#349cfbb31331a9b4453190791760a8d35b093e0a" - integrity sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g== - dependencies: - follow-redirects "^1.14.7" - axios@^1.3.4: version "1.6.2" resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.2.tgz#de67d42c755b571d3e698df1b6504cde9b0ee9f2" @@ -958,6 +951,15 @@ axios@^1.3.4: form-data "^4.0.0" proxy-from-env "^1.1.0" +axios@^1.6.7: + version "1.6.8" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66" + integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + babel-jest@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5" @@ -1516,16 +1518,16 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -follow-redirects@^1.14.7: - version "1.15.5" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.5.tgz#54d4d6d062c0fa7d9d17feb008461550e3ba8020" - integrity sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw== - follow-redirects@^1.15.0: version "1.15.3" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a" integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q== +follow-redirects@^1.15.6: + version "1.15.6" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" + integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== + form-data@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"