Skip to content

Commit 047852a

Browse files
author
Trinketer22
committed
Migrate to @ton packages
1 parent ee52524 commit 047852a

File tree

9 files changed

+38
-29
lines changed

9 files changed

+38
-29
lines changed

tests/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Address, beginCell, Cell, MessageRelaxed, SendMode, storeMessageRelaxed } from 'ton-core';
1+
import { Address, beginCell, Cell, MessageRelaxed, SendMode, storeMessageRelaxed } from '@ton/core';
22
import { isTestOnlyExtendedAction, TestOnlyExtendedAction, TestOnlyOutAction } from './test-only-actions';
33

44
export class ActionSendMsg {

tests/test-only-actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
SendMode,
88
storeCurrencyCollection,
99
storeMessageRelaxed
10-
} from 'ton-core';
10+
} from '@ton/core';
1111
import {
1212
ExtendedAction,
1313
OutAction
@@ -79,4 +79,4 @@ export function isTestOnlyExtendedAction(action: OutAction | ExtendedAction): ac
7979
return (
8080
action.tag === ActionSetData.tag
8181
);
82-
}
82+
}

tests/wallet-v5-extensions.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {Blockchain, BlockchainTransaction, SandboxContract} from '@ton-community/sandbox';
2-
import { Address, beginCell, Cell, Dictionary, Sender, SendMode, toNano } from 'ton-core';
1+
import {Blockchain, BlockchainTransaction, SandboxContract} from '@ton/sandbox';
2+
import { Address, beginCell, Cell, Dictionary, Sender, SendMode, toNano } from '@ton/core';
33
import { Opcodes, WalletId, WalletV5 } from '../wrappers/wallet-v5';
4-
import '@ton-community/test-utils';
5-
import { compile } from '@ton-community/blueprint';
4+
import '@ton/test-utils';
5+
import { compile } from '@ton/blueprint';
66
import { getSecureRandomBytes, KeyPair, keyPairFromSeed, sign } from 'ton-crypto';
77
import { bufferToBigInt, createMsgInternal, packAddress, validUntil } from './utils';
88
import {
@@ -11,8 +11,8 @@ import {
1111
ActionSendMsg, ActionSetSignatureAuthAllowed,
1212
packActionsList
1313
} from './actions';
14-
import { TransactionDescriptionGeneric } from 'ton-core/src/types/TransactionDescription';
15-
import { TransactionComputeVm } from 'ton-core/src/types/TransactionComputePhase';
14+
import { TransactionDescriptionGeneric } from '@ton/core/src/types/TransactionDescription';
15+
import { TransactionComputeVm } from '@ton/core/src/types/TransactionComputePhase';
1616
import { buildBlockchainLibraries, LibraryDeployer } from '../wrappers/library-deployer';
1717
import { default as config } from './config';
1818

tests/wallet-v5-external.spec.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import {Blockchain, BlockchainTransaction, SandboxContract} from '@ton-community/sandbox';
2-
import { Address, beginCell, Cell, Dictionary, internal, Sender, SendMode, toNano } from 'ton-core';
1+
import {Blockchain, BlockchainTransaction, SandboxContract} from '@ton/sandbox';
2+
import { Address, beginCell, Cell, Dictionary, internal, Sender, SendMode, toNano } from '@ton/core';
33
import { Opcodes, WalletId, WalletV5 } from '../wrappers/wallet-v5';
4-
import '@ton-community/test-utils';
5-
import { compile } from '@ton-community/blueprint';
6-
import { getSecureRandomBytes, KeyPair, keyPairFromSeed, sign } from 'ton-crypto';
4+
import '@ton/test-utils';
5+
import { compile } from '@ton/blueprint';
6+
import { getSecureRandomBytes, KeyPair, keyPairFromSeed, sign } from '@ton/crypto';
7+
78
import {
89
bufferToBigInt,
910
createMsgInternal,

tests/wallet-v5-get.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Blockchain, SandboxContract } from '@ton-community/sandbox';
2-
import { Address, beginCell, Cell, Dictionary, Sender, toNano } from 'ton-core';
1+
import { Blockchain, SandboxContract } from '@ton/sandbox';
2+
import { Address, beginCell, Cell, Dictionary, Sender, toNano } from '@ton/core';
33
import { WalletId, WalletV5 } from '../wrappers/wallet-v5';
4-
import '@ton-community/test-utils';
5-
import { compile } from '@ton-community/blueprint';
4+
import '@ton/test-utils';
5+
import { compile } from '@ton/blueprint';
66
import { getSecureRandomBytes, KeyPair, keyPairFromSeed } from 'ton-crypto';
77
import { bufferToBigInt, packAddress } from './utils';
88
import { buildBlockchainLibraries, LibraryDeployer } from '../wrappers/library-deployer';

tests/wallet-v5-internal.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {Blockchain, BlockchainTransaction, SandboxContract} from '@ton-community/sandbox';
2-
import { Address, beginCell, Cell, Dictionary, Sender, SendMode, toNano } from 'ton-core';
1+
import {Blockchain, BlockchainTransaction, SandboxContract} from '@ton/sandbox';
2+
import { Address, beginCell, Cell, Dictionary, Sender, SendMode, toNano } from '@ton/core';
33
import { Opcodes, WalletId, WalletV5 } from '../wrappers/wallet-v5';
4-
import '@ton-community/test-utils';
5-
import { compile } from '@ton-community/blueprint';
4+
import '@ton/test-utils';
5+
import { compile } from '@ton/blueprint';
66
import { getSecureRandomBytes, KeyPair, keyPairFromSeed, sign } from 'ton-crypto';
77
import { bufferToBigInt, createMsgInternal, disableConsoleError, packAddress, validUntil } from './utils';
88
import {
@@ -11,8 +11,8 @@ import {
1111
ActionSendMsg, ActionSetSignatureAuthAllowed,
1212
packActionsList
1313
} from './actions';
14-
import { TransactionDescriptionGeneric } from 'ton-core/src/types/TransactionDescription';
15-
import { TransactionComputeVm } from 'ton-core/src/types/TransactionComputePhase';
14+
import { TransactionDescriptionGeneric } from '@ton/core/src/types/TransactionDescription';
15+
import { TransactionComputeVm } from '@ton/core/src/types/TransactionComputePhase';
1616
import { buildBlockchainLibraries, LibraryDeployer } from '../wrappers/library-deployer';
1717
import { default as config } from './config';
1818
import { ActionSetCode, ActionSetData } from './test-only-actions';

wrappers/library-deployer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
Sender,
1212
SendMode,
1313
SimpleLibrary
14-
} from 'ton-core';
15-
import { SimpleLibraryValue } from 'ton-core/dist/types/SimpleLibrary';
14+
} from '@ton/core';
15+
import { SimpleLibraryValue } from '@ton/core/dist/types/SimpleLibrary';
1616

1717
export type LibraryDeployerConfig = {
1818
libraryCode: Cell;

wrappers/wallet-v5.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@ import {
99
contractAddress,
1010
ContractProvider,
1111
Dictionary,
12+
MessageRelaxed,
13+
storeOutList,
14+
OutAction,
1215
Sender,
13-
SendMode
14-
} from 'ton-core';
16+
SendMode,
17+
Builder,
18+
OutActionSendMsg,
19+
toNano
20+
} from '@ton/core';
1521
import { bufferToBigInt } from '../tests/utils';
1622

23+
import { sign } from '@ton/crypto';
24+
1725
export type WalletV5Config = {
1826
signatureAllowed: boolean;
1927
seqno: number;

wrappers/wallet_v5.compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CompilerConfig } from '@ton-community/blueprint';
1+
import { CompilerConfig } from '@ton/blueprint';
22

33
export const compile: CompilerConfig = {
44
lang: 'func',

0 commit comments

Comments
 (0)