From d8788c3a34c3f82d7185f55eda0e031078883bdd Mon Sep 17 00:00:00 2001 From: Dan Volkov Date: Mon, 18 Sep 2023 20:38:02 +0400 Subject: [PATCH] wip: ConfigParser and ElectorContract to @ton/core --- package.json | 2 +- src/config/ConfigParser.spec.ts | 2 +- src/config/ConfigParser.ts | 2 +- src/elector/ElectorContract.spec.ts | 2 +- src/elector/ElectorContract.ts | 2 +- yarn.lock | 10 +++++----- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 1dc1dbd..960a118 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@release-it/keep-a-changelog": "^3.1.0", - "@ton/core": "^0.49.2", + "@ton/core": "^0.52.2", "@ton/crypto": "3.2.0", "@ton/emulator": "^2.1.1", "@types/jest": "^27.0.1", diff --git a/src/config/ConfigParser.spec.ts b/src/config/ConfigParser.spec.ts index 952ce45..3f64267 100644 --- a/src/config/ConfigParser.spec.ts +++ b/src/config/ConfigParser.spec.ts @@ -7,7 +7,7 @@ */ import { createTestClient4 } from "../utils/createTestClient4"; -import { Address } from "ton-core"; +import { Address } from "@ton/core"; import { configParse5, configParse13, configParse17, configParse18, configParseValidatorSet, configParseBridge, configParse12, parseFullConfig, loadConfigParamById, loadConfigParamsAsSlice } from "./ConfigParser"; const client = createTestClient4("mainnet"); diff --git a/src/config/ConfigParser.ts b/src/config/ConfigParser.ts index 3892f24..281e1af 100644 --- a/src/config/ConfigParser.ts +++ b/src/config/ConfigParser.ts @@ -1,4 +1,4 @@ -import { Address, Slice, Cell, Dictionary, DictionaryValue, Builder } from "ton-core"; +import { Address, Slice, Cell, Dictionary, DictionaryValue, Builder } from "@ton/core"; export function configParseMasterAddress(slice: Slice | null | undefined) { if (slice) { diff --git a/src/elector/ElectorContract.spec.ts b/src/elector/ElectorContract.spec.ts index b4a39d1..6253b2d 100644 --- a/src/elector/ElectorContract.spec.ts +++ b/src/elector/ElectorContract.spec.ts @@ -7,7 +7,7 @@ */ import { createTestClient4 } from "../utils/createTestClient4"; -import { Address } from "ton-core"; +import { Address } from "@ton/core"; import { ElectorContract } from "./ElectorContract"; const client = createTestClient4("mainnet"); diff --git a/src/elector/ElectorContract.ts b/src/elector/ElectorContract.ts index 161ccd4..e3b70f8 100644 --- a/src/elector/ElectorContract.ts +++ b/src/elector/ElectorContract.ts @@ -1,4 +1,4 @@ -import { Address, Cell, Contract, TupleReader, TupleBuilder, Dictionary, DictionaryValue, Slice, Builder, ContractProvider } from "ton-core"; +import { Address, Cell, Contract, TupleReader, TupleBuilder, Dictionary, DictionaryValue, Slice, Builder, ContractProvider } from "@ton/core"; const FrozenDictValue: DictionaryValue<{ address: Address, weight: bigint, stake: bigint }> = { diff --git a/yarn.lock b/yarn.lock index 509ca46..0e6d694 100644 --- a/yarn.lock +++ b/yarn.lock @@ -950,14 +950,14 @@ __metadata: languageName: node linkType: hard -"@ton/core@npm:^0.49.2": - version: 0.49.2 - resolution: "@ton/core@npm:0.49.2" +"@ton/core@npm:^0.52.2": + version: 0.52.2 + resolution: "@ton/core@npm:0.52.2" dependencies: symbol.inspect: 1.0.1 peerDependencies: "@ton/crypto": ">=3.2.0" - checksum: c0bbad44f89664852d2289e073fa5666d38b4738f13cb951b973bd56b635df6d45ee26c6d1d6348c8736172fd84aaa8f5ef3296f45cca2b346c715a92a0cf774 + checksum: abd6214a631a398f751dca1562a3f2ee44a5e6ac4582faf9d63d08298f4aeb118a78f91c342f73fa4984f94c97888aa1ff123981081629a2455853f699ec8d05 languageName: node linkType: hard @@ -1000,7 +1000,7 @@ __metadata: resolution: "@ton/ton@workspace:." dependencies: "@release-it/keep-a-changelog": ^3.1.0 - "@ton/core": ^0.49.2 + "@ton/core": ^0.52.2 "@ton/crypto": 3.2.0 "@ton/emulator": ^2.1.1 "@types/jest": ^27.0.1