@tonappchain/sdk 0.7.2-alpha-8 → 0.7.2-alpha-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +198 -198
  3. package/dist/artifacts/dev/index.d.ts +2 -2
  4. package/dist/artifacts/dev/index.js +2 -1
  5. package/dist/artifacts/dev/tac/endpoints.d.ts +1 -0
  6. package/dist/artifacts/dev/tac/endpoints.js +2 -1
  7. package/dist/artifacts/dev/ton/internal/build/CrossChainLayer.compiled.json +1 -1
  8. package/dist/artifacts/dev/ton/internal/build/Executor.compiled.json +1 -1
  9. package/dist/artifacts/dev/ton/internal/build/JettonMinter.compiled.json +1 -1
  10. package/dist/artifacts/dev/ton/internal/build/JettonProxy.compiled.json +1 -1
  11. package/dist/artifacts/dev/ton/internal/build/JettonWallet.compiled.json +1 -1
  12. package/dist/artifacts/dev/ton/internal/build/NFTItem.compiled.json +1 -1
  13. package/dist/artifacts/dev/ton/internal/build/NFTProxy.compiled.json +1 -1
  14. package/dist/artifacts/dev/ton/internal/build/Settings.compiled.json +1 -1
  15. package/dist/artifacts/dev/ton/internal/wrappers/CrossChainLayer.d.ts +54 -6
  16. package/dist/artifacts/dev/ton/internal/wrappers/CrossChainLayer.js +137 -18
  17. package/dist/artifacts/dev/ton/internal/wrappers/JettonMinter.d.ts +8 -2
  18. package/dist/artifacts/dev/ton/internal/wrappers/JettonMinter.js +12 -3
  19. package/dist/artifacts/dev/ton/internal/wrappers/JettonProxy.d.ts +9 -0
  20. package/dist/artifacts/dev/ton/internal/wrappers/JettonProxy.js +10 -1
  21. package/dist/artifacts/dev/ton/internal/wrappers/JettonWallet.d.ts +7 -0
  22. package/dist/artifacts/dev/ton/internal/wrappers/JettonWallet.js +9 -2
  23. package/dist/artifacts/dev/ton/internal/wrappers/NFTCollection.d.ts +9 -0
  24. package/dist/artifacts/dev/ton/internal/wrappers/NFTCollection.js +9 -0
  25. package/dist/artifacts/dev/ton/internal/wrappers/NFTItem.d.ts +7 -0
  26. package/dist/artifacts/dev/ton/internal/wrappers/NFTItem.js +7 -0
  27. package/dist/artifacts/dev/ton/internal/wrappers/NFTProxy.d.ts +7 -0
  28. package/dist/artifacts/dev/ton/internal/wrappers/NFTProxy.js +8 -1
  29. package/dist/artifacts/dev/ton/internal/wrappers/Settings.d.ts +1 -0
  30. package/dist/artifacts/dev/ton/internal/wrappers/Settings.js +1 -0
  31. package/dist/artifacts/dev/ton/internal/wrappers/utils/CrossChainLayerPayload.d.ts +10 -0
  32. package/dist/artifacts/dev/ton/internal/wrappers/utils/CrossChainLayerPayload.js +24 -0
  33. package/dist/artifacts/dev/ton/internal/wrappers/utils/MerkleRoots.d.ts +2 -1
  34. package/dist/artifacts/dev/ton/internal/wrappers/utils/MerkleRoots.js +9 -1
  35. package/dist/artifacts/mainnet/index.d.ts +2 -2
  36. package/dist/artifacts/mainnet/index.js +2 -1
  37. package/dist/artifacts/mainnet/tac/endpoints.d.ts +1 -0
  38. package/dist/artifacts/mainnet/tac/endpoints.js +2 -1
  39. package/dist/artifacts/mainnet/ton/internal/wrappers/JettonMinter.d.ts +4 -0
  40. package/dist/artifacts/mainnet/ton/internal/wrappers/JettonMinter.js +7 -0
  41. package/dist/artifacts/testnet/index.d.ts +2 -2
  42. package/dist/artifacts/testnet/index.js +2 -1
  43. package/dist/artifacts/testnet/tac/endpoints.d.ts +1 -0
  44. package/dist/artifacts/testnet/tac/endpoints.js +2 -1
  45. package/dist/artifacts/testnet/ton/internal/wrappers/JettonMinter.d.ts +4 -0
  46. package/dist/artifacts/testnet/ton/internal/wrappers/JettonMinter.js +7 -0
  47. package/dist/src/adapters/contractOpener.js +10 -19
  48. package/dist/src/assets/FT.d.ts +9 -0
  49. package/dist/src/assets/FT.js +48 -4
  50. package/dist/src/errors/instances.js +2 -2
  51. package/dist/src/index.d.ts +1 -0
  52. package/dist/src/index.js +3 -1
  53. package/dist/src/interfaces/Asset.d.ts +4 -0
  54. package/dist/src/interfaces/ILiteSequencerClient.d.ts +1 -6
  55. package/dist/src/interfaces/IOperationTracker.d.ts +1 -6
  56. package/dist/src/interfaces/ITacExplorerClient.d.ts +8 -0
  57. package/dist/src/interfaces/ITacExplorerClient.js +2 -0
  58. package/dist/src/interfaces/ITacSDK.d.ts +5 -0
  59. package/dist/src/interfaces/index.d.ts +1 -0
  60. package/dist/src/interfaces/index.js +1 -0
  61. package/dist/src/sdk/Configuration.d.ts +4 -3
  62. package/dist/src/sdk/Configuration.js +18 -6
  63. package/dist/src/sdk/Consts.d.ts +1 -0
  64. package/dist/src/sdk/Consts.js +2 -1
  65. package/dist/src/sdk/Fees.d.ts +20 -74
  66. package/dist/src/sdk/Fees.js +56 -53
  67. package/dist/src/sdk/LiteSequencerClient.d.ts +1 -2
  68. package/dist/src/sdk/LiteSequencerClient.js +0 -9
  69. package/dist/src/sdk/OperationTracker.d.ts +1 -2
  70. package/dist/src/sdk/OperationTracker.js +0 -20
  71. package/dist/src/sdk/Simulator.js +23 -21
  72. package/dist/src/sdk/StartTracking.js +4 -4
  73. package/dist/src/sdk/TacExplorerClient.d.ts +8 -0
  74. package/dist/src/sdk/TacExplorerClient.js +22 -0
  75. package/dist/src/sdk/TacSdk.d.ts +5 -7
  76. package/dist/src/sdk/TacSdk.js +10 -4
  77. package/dist/src/sdk/Utils.d.ts +5 -0
  78. package/dist/src/sdk/Utils.js +11 -0
  79. package/dist/src/structs/InternalStruct.d.ts +66 -0
  80. package/dist/src/structs/Struct.d.ts +4 -6
  81. package/package.json +115 -116
@@ -1,12 +1,13 @@
1
1
  import { Wallet } from 'ethers';
2
2
  import { JettonMinterData, NFTItemData } from '../../artifacts/tonTypes';
3
3
  import { FT, NFT } from '../assets';
4
- import { IConfiguration, ILogger, IOperationTracker, ITacSDK } from '../interfaces';
4
+ import { IConfiguration, ILogger, IOperationTracker, ITacExplorerClient, ITacSDK } from '../interfaces';
5
5
  import type { SenderAbstraction } from '../sender';
6
- import { AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg, AssetLike, BatchCrossChainTxWithAssetLike, CrossChainPayloadResult, CrossChainTransactionOptions, CrossChainTransactionsOptions, CrosschainTx, EVMAddress, EvmProxyMsg, ExecutionFeeEstimationResult, NFTAddressType, SDKParams, SuggestedTVMExecutorFee, TACSimulationParams, TACSimulationResult, TransactionLinkerWithOperationId, TVMAddress, UserWalletBalanceExtended } from '../structs/Struct';
6
+ import { AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg, AssetLike, BatchCrossChainTxWithAssetLike, CrossChainPayloadResult, CrossChainTransactionOptions, CrossChainTransactionsOptions, CrosschainTx, EVMAddress, EvmProxyMsg, ExecutionFeeEstimationResult, NFTAddressType, SDKParams, SuggestedTVMExecutorFee, TacGasPrice, TACSimulationParams, TACSimulationResult, TransactionLinkerWithOperationId, TVMAddress, UserWalletBalanceExtended } from '../structs/Struct';
7
7
  export declare class TacSdk implements ITacSDK {
8
8
  readonly config: IConfiguration;
9
9
  readonly operationTracker: IOperationTracker;
10
+ readonly explorerClient: ITacExplorerClient;
10
11
  private readonly simulator;
11
12
  private readonly tonTransactionManager;
12
13
  private readonly tacTransactionManager;
@@ -41,10 +42,7 @@ export declare class TacSdk implements ITacSDK {
41
42
  getTVMNFTAddress(evmNFTAddress: string, tokenId?: number | bigint): Promise<string>;
42
43
  getEVMNFTAddress(tvmNFTAddress: string, addressType: NFTAddressType): Promise<string>;
43
44
  getOperationTracker(): IOperationTracker;
45
+ getTacExplorerClient(): ITacExplorerClient;
44
46
  prepareCrossChainTransactionPayload(evmProxyMsg: EvmProxyMsg, senderAddress: string, assets?: AssetLike[], options?: CrossChainTransactionOptions): Promise<CrossChainPayloadResult[]>;
45
- getTACGasPrice(): Promise<{
46
- average: number;
47
- fast: number;
48
- slow: number;
49
- }>;
47
+ getTACGasPrice(): Promise<TacGasPrice>;
50
48
  }
@@ -9,17 +9,19 @@ const Consts_1 = require("./Consts");
9
9
  const Logger_1 = require("./Logger");
10
10
  const OperationTracker_1 = require("./OperationTracker");
11
11
  const Simulator_1 = require("./Simulator");
12
+ const TacExplorerClient_1 = require("./TacExplorerClient");
12
13
  const TACTransactionManager_1 = require("./TACTransactionManager");
13
14
  const TONTransactionManager_1 = require("./TONTransactionManager");
14
15
  const TxFinalizer_1 = require("./TxFinalizer");
15
16
  const Utils_1 = require("./Utils");
16
17
  class TacSdk {
17
- constructor(config, simulator, tonTransactionManager, tacTransactionManager, operationTracker) {
18
+ constructor(config, simulator, tonTransactionManager, tacTransactionManager, operationTracker, explorerClient) {
18
19
  this.config = config;
19
20
  this.simulator = simulator;
20
21
  this.tonTransactionManager = tonTransactionManager;
21
22
  this.tacTransactionManager = tacTransactionManager;
22
23
  this.operationTracker = operationTracker;
24
+ this.explorerClient = explorerClient;
23
25
  }
24
26
  static async create(sdkParams, logger = new Logger_1.NoopLogger()) {
25
27
  const network = sdkParams.network;
@@ -38,13 +40,14 @@ class TacSdk {
38
40
  default:
39
41
  throw new Error(`Unsupported network: ${network}`);
40
42
  }
41
- const config = await Configuration_1.Configuration.create(network, artifacts, sdkParams.TONParams, sdkParams.TACParams, sdkParams.customLiteSequencerEndpoints, delay);
43
+ const config = await Configuration_1.Configuration.create(network, artifacts, sdkParams.TONParams, sdkParams.TACParams, sdkParams.customLiteSequencerEndpoints, delay, logger);
42
44
  const operationTracker = new OperationTracker_1.OperationTracker(network, config.liteSequencerEndpoints);
45
+ const explorerClient = new TacExplorerClient_1.TacExplorerClient(artifacts.TAC_EXPLORER_API_ENDPOINT);
43
46
  const simulator = new Simulator_1.Simulator(config, operationTracker, logger);
44
47
  const txFinalizer = sdkParams.TONParams?.txFinalizer ?? new TxFinalizer_1.TonTxFinalizer(config.TONParams.contractOpener, logger);
45
48
  const tonTransactionManager = new TONTransactionManager_1.TONTransactionManager(config, simulator, operationTracker, logger, txFinalizer);
46
49
  const tacTransactionManager = new TACTransactionManager_1.TACTransactionManager(config, operationTracker, logger);
47
- return new TacSdk(config, simulator, tonTransactionManager, tacTransactionManager, operationTracker);
50
+ return new TacSdk(config, simulator, tonTransactionManager, tacTransactionManager, operationTracker, explorerClient);
48
51
  }
49
52
  closeConnections() {
50
53
  return this.config.closeConnections();
@@ -179,12 +182,15 @@ class TacSdk {
179
182
  getOperationTracker() {
180
183
  return this.operationTracker;
181
184
  }
185
+ getTacExplorerClient() {
186
+ return this.explorerClient;
187
+ }
182
188
  async prepareCrossChainTransactionPayload(evmProxyMsg, senderAddress, assets = [], options) {
183
189
  const normalizedAssets = await (0, Utils_1.normalizeAssets)(this.config, assets);
184
190
  return this.tonTransactionManager.prepareCrossChainTransactionPayload(evmProxyMsg, senderAddress, normalizedAssets, options);
185
191
  }
186
192
  async getTACGasPrice() {
187
- const response = await this.operationTracker.getTACGasPrice();
193
+ const response = await this.explorerClient.getTACGasPrice();
188
194
  return {
189
195
  average: response.gasPrices.average,
190
196
  fast: response.gasPrices.fast,
@@ -32,6 +32,11 @@ export declare function normalizeAssets(config: IConfiguration, assets?: AssetLi
32
32
  export declare function getAddressString(cell?: Cell): string;
33
33
  export declare function getNumber(len: number, cell?: Cell): number;
34
34
  export declare function getString(cell?: Cell): string;
35
+ /**
36
+ * Multiply-divide with rounding (muldivr)
37
+ * Calculates (a * b + c / 2) / c with proper rounding
38
+ */
39
+ export declare function muldivr(a: bigint, b: bigint, c: bigint): bigint;
35
40
  export declare function getNormalizedExtMessageHash(message: Message): string;
36
41
  export declare function retry<T>(fn: () => Promise<T>, options: {
37
42
  retries: number;
@@ -19,6 +19,7 @@ exports.normalizeAssets = normalizeAssets;
19
19
  exports.getAddressString = getAddressString;
20
20
  exports.getNumber = getNumber;
21
21
  exports.getString = getString;
22
+ exports.muldivr = muldivr;
22
23
  exports.getNormalizedExtMessageHash = getNormalizedExtMessageHash;
23
24
  exports.retry = retry;
24
25
  exports.recurisivelyCollectCellStats = recurisivelyCollectCellStats;
@@ -305,6 +306,16 @@ function getNumber(len, cell) {
305
306
  function getString(cell) {
306
307
  return cell?.beginParse().loadStringTail() ?? '';
307
308
  }
309
+ /**
310
+ * Multiply-divide with rounding (muldivr)
311
+ * Calculates (a * b + c / 2) / c with proper rounding
312
+ */
313
+ function muldivr(a, b, c) {
314
+ if (c === 0n) {
315
+ throw new Error('Division by zero in muldivr');
316
+ }
317
+ return (a * b + c / 2n) / c;
318
+ }
308
319
  function getNormalizedExtMessageHash(message) {
309
320
  if (message.info.type !== 'external-in') {
310
321
  throw new Error(`Message must be "external-in", got ${message.info.type}`);
@@ -37,6 +37,7 @@ export type InternalTONParams = {
37
37
  nftItemCode: Cell;
38
38
  nftCollectionCode: Cell;
39
39
  feesParams: TONFeesParams;
40
+ contractFeeUsageParams: ContractFeeUsageParams;
40
41
  };
41
42
  export type InternalTACParams = {
42
43
  provider: AbstractProvider;
@@ -148,6 +149,64 @@ export type TONFeesParams = {
148
149
  msgBitPrice: number;
149
150
  msgCellPrice: number;
150
151
  };
152
+ export type ContractFeeUsageParams = {
153
+ crossChainLayer: {
154
+ accountBits: number;
155
+ accountCells: number;
156
+ gas: {
157
+ tvmMsgToEvm: number;
158
+ };
159
+ };
160
+ jettonWallet: {
161
+ accountBits: number;
162
+ accountCells: number;
163
+ estimatedAccountBits: number;
164
+ estimatedAccountCells: number;
165
+ initStateBits: number;
166
+ initStateCells: number;
167
+ gas: {
168
+ internalTransfer: number;
169
+ receive: number;
170
+ burn: number;
171
+ estimatedSendTransfer: number;
172
+ estimatedReceiveTransfer: number;
173
+ };
174
+ };
175
+ jettonProxy: {
176
+ accountBits: number;
177
+ accountCells: number;
178
+ gas: {
179
+ ownershipAssigned: number;
180
+ transferNotification: number;
181
+ errorNotification: number;
182
+ };
183
+ };
184
+ jettonMinter: {
185
+ accountBits: number;
186
+ accountCells: number;
187
+ gas: {
188
+ burnNotification: number;
189
+ mintAfterError: number;
190
+ };
191
+ };
192
+ nftItem: {
193
+ accountBits: number;
194
+ accountCells: number;
195
+ gas: {
196
+ send: number;
197
+ burn: number;
198
+ errorNotification: number;
199
+ };
200
+ };
201
+ nftProxy: {
202
+ accountBits: number;
203
+ accountCells: number;
204
+ gas: {
205
+ ownershipAssigned: number;
206
+ errorNotification: number;
207
+ };
208
+ };
209
+ };
151
210
  export type TransactionFeeCalculationStep = {
152
211
  accountBits: number;
153
212
  accountCells: number;
@@ -157,3 +216,10 @@ export type TransactionFeeCalculationStep = {
157
216
  timeDelta: number;
158
217
  };
159
218
  export type TONFeeCalculationParams = TransactionFeeCalculationStep & TONFeesParams;
219
+ export type TacGasPriceResponse = {
220
+ gasPrices: {
221
+ average: number;
222
+ fast: number;
223
+ slow: number;
224
+ };
225
+ };
@@ -446,12 +446,10 @@ export type GeneratePayloadParams = {
446
446
  forwardFeeTonAmount?: bigint;
447
447
  feeParams?: FeeParams;
448
448
  };
449
- export type TacGasPriceResponse = {
450
- gasPrices: {
451
- average: number;
452
- fast: number;
453
- slow: number;
454
- };
449
+ export type TacGasPrice = {
450
+ average: number;
451
+ fast: number;
452
+ slow: number;
455
453
  };
456
454
  export type TrackTransactionTreeParams = {
457
455
  maxDepth?: number;
package/package.json CHANGED
@@ -1,116 +1,115 @@
1
- {
2
- "name": "@tonappchain/sdk",
3
- "version": "0.7.2-alpha-8",
4
- "repository": "https://github.com/TacBuild/tac-sdk.git",
5
- "author": "TAC. <developers@tac>",
6
- "license": "MIT",
7
- "main": "dist/src/index.js",
8
- "types": "dist/src/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "node": {
12
- "types": "./dist/src/index.d.ts",
13
- "require": "./dist/src/index.js",
14
- "import": "./dist/src/index.js"
15
- },
16
- "browser": {
17
- "types": "./dist/src/index.d.ts",
18
- "import": "./dist/src/index.js"
19
- },
20
- "types": "./dist/src/index.d.ts",
21
- "require": "./dist/src/index.js",
22
- "import": "./dist/src/index.js",
23
- "default": "./dist/src/index.js"
24
- },
25
- "./package.json": "./package.json",
26
- "./dist": null,
27
- "./dist/*": null,
28
- "./src": null,
29
- "./src/*": null,
30
- "./artifacts": {
31
- "types": "./dist/artifacts/index.d.ts",
32
- "import": "./dist/artifacts/index.js",
33
- "require": "./dist/artifacts/index.js"
34
- },
35
- "./artifacts/types/ton": {
36
- "types": "./dist/artifacts/tonTypes.d.ts",
37
- "import": "./dist/artifacts/tonTypes.js",
38
- "require": "./dist/artifacts/tonTypes.js"
39
- },
40
- "./artifacts/types/tac": {
41
- "types": "./dist/artifacts/tacTypes.d.ts",
42
- "import": "./dist/artifacts/tacTypes.js",
43
- "require": "./dist/artifacts/tacTypes.js"
44
- },
45
- "./artifacts/*": null,
46
- "./*": null
47
- },
48
- "files": [
49
- "dist"
50
- ],
51
- "scripts": {
52
- "litebuild": "rm -rf dist && tsc --declaration",
53
- "build": "rm -rf dist && npm run build:artifacts && tsc --declaration",
54
- "build:artifacts:tac:dev": "cd artifacts/dev/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
55
- "build:artifacts:ton:dev": "cd artifacts/dev/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
56
- "build:artifacts:tac:testnet": "cd artifacts/testnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
57
- "build:artifacts:ton:testnet": "cd artifacts/testnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
58
- "build:artifacts:tac:mainnet": "cd artifacts/mainnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
59
- "build:artifacts:ton:mainnet": "cd artifacts/mainnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
60
- "build:artifacts:ton:all": "npm run build:artifacts:ton:dev && npm run build:artifacts:ton:testnet && npm run build:artifacts:ton:mainnet",
61
- "build:artifacts:tac:all": "npm run build:artifacts:tac:dev && npm run build:artifacts:tac:testnet && npm run build:artifacts:tac:mainnet",
62
- "build:artifacts": "npm run build:artifacts:ton:all && npm run build:artifacts:tac:all",
63
- "test": "jest --verbose --runInBand",
64
- "release": "yarn build && yarn release-it --npm.yarn1",
65
- "lint": "eslint .",
66
- "lint:fix": "eslint . --fix",
67
- "prettier": "prettier --ignore-path .gitignore --write \"./src/**/*.+(js|ts|json)\""
68
- },
69
- "dependencies": {
70
- "@aws-crypto/sha256-js": "^5.2.0",
71
- "@orbs-network/ton-access": "^2.3.3",
72
- "@ton/ton": "^16.1.0",
73
- "@tonappchain/ton-lite-client": "3.0.6",
74
- "@tonconnect/ui": "^2.0.11",
75
- "bn.js": "^5.2.1",
76
- "dotenv": "^16.4.7",
77
- "ethers": "^6.13.5",
78
- "ton-crypto": "^3.2.0"
79
- },
80
- "keywords": [],
81
- "description": "",
82
- "devDependencies": {
83
- "@eslint/js": "^9.21.0",
84
- "@jest/globals": "^29.7.0",
85
- "@release-it/keep-a-changelog": "^6.0.0",
86
- "@ton/sandbox": "^0.27.1",
87
- "@ton/test-utils": "^0.5.0",
88
- "@types/bn.js": "^5.1.6",
89
- "@types/jest": "^29.5.14",
90
- "eslint": "^9.21.0",
91
- "eslint-config-prettier": "^10.0.2",
92
- "eslint-plugin-simple-import-sort": "^12.1.1",
93
- "jest": "^29.7.0",
94
- "prettier": "^3.5.3",
95
- "ts-jest": "^29.2.6",
96
- "ts-node": "^10.9.2",
97
- "typescript": "^5.7.3",
98
- "typescript-eslint": "^8.17.0",
99
- "yarn": "^1.22.22"
100
- },
101
- "publishConfig": {
102
- "access": "public",
103
- "registry": "https://registry.npmjs.org/"
104
- },
105
- "release-it": {
106
- "plugins": {
107
- "@release-it/keep-a-changelog": {
108
- "filename": "CHANGELOG.md"
109
- }
110
- },
111
- "npm": {
112
- "publish": false
113
- }
114
- },
115
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
116
- }
1
+ {
2
+ "name": "@tonappchain/sdk",
3
+ "version": "0.7.2-alpha-10",
4
+ "repository": "https://github.com/TacBuild/tac-sdk.git",
5
+ "author": "TAC. <developers@tac>",
6
+ "license": "MIT",
7
+ "main": "dist/src/index.js",
8
+ "types": "dist/src/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "node": {
12
+ "types": "./dist/src/index.d.ts",
13
+ "require": "./dist/src/index.js",
14
+ "import": "./dist/src/index.js"
15
+ },
16
+ "browser": {
17
+ "types": "./dist/src/index.d.ts",
18
+ "import": "./dist/src/index.js"
19
+ },
20
+ "types": "./dist/src/index.d.ts",
21
+ "require": "./dist/src/index.js",
22
+ "import": "./dist/src/index.js",
23
+ "default": "./dist/src/index.js"
24
+ },
25
+ "./package.json": "./package.json",
26
+ "./dist": null,
27
+ "./dist/*": null,
28
+ "./src": null,
29
+ "./src/*": null,
30
+ "./artifacts": {
31
+ "types": "./dist/artifacts/index.d.ts",
32
+ "import": "./dist/artifacts/index.js",
33
+ "require": "./dist/artifacts/index.js"
34
+ },
35
+ "./artifacts/types/ton": {
36
+ "types": "./dist/artifacts/tonTypes.d.ts",
37
+ "import": "./dist/artifacts/tonTypes.js",
38
+ "require": "./dist/artifacts/tonTypes.js"
39
+ },
40
+ "./artifacts/types/tac": {
41
+ "types": "./dist/artifacts/tacTypes.d.ts",
42
+ "import": "./dist/artifacts/tacTypes.js",
43
+ "require": "./dist/artifacts/tacTypes.js"
44
+ },
45
+ "./artifacts/*": null,
46
+ "./*": null
47
+ },
48
+ "files": [
49
+ "dist"
50
+ ],
51
+ "scripts": {
52
+ "litebuild": "rm -rf dist && tsc --declaration",
53
+ "build": "rm -rf dist && npm run build:artifacts && tsc --declaration",
54
+ "build:artifacts:tac:dev": "cd artifacts/dev/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
55
+ "build:artifacts:ton:dev": "cd artifacts/dev/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
56
+ "build:artifacts:tac:testnet": "cd artifacts/testnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
57
+ "build:artifacts:ton:testnet": "cd artifacts/testnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
58
+ "build:artifacts:tac:mainnet": "cd artifacts/mainnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
59
+ "build:artifacts:ton:mainnet": "cd artifacts/mainnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
60
+ "build:artifacts:ton:all": "npm run build:artifacts:ton:dev && npm run build:artifacts:ton:testnet && npm run build:artifacts:ton:mainnet",
61
+ "build:artifacts:tac:all": "npm run build:artifacts:tac:dev && npm run build:artifacts:tac:testnet && npm run build:artifacts:tac:mainnet",
62
+ "build:artifacts": "npm run build:artifacts:ton:all && npm run build:artifacts:tac:all",
63
+ "test": "jest --verbose --runInBand",
64
+ "release": "npm run build && npx release-it",
65
+ "lint": "eslint .",
66
+ "lint:fix": "eslint . --fix",
67
+ "prettier": "prettier --ignore-path .gitignore --write \"./src/**/*.+(js|ts|json)\""
68
+ },
69
+ "dependencies": {
70
+ "@aws-crypto/sha256-js": "^5.2.0",
71
+ "@orbs-network/ton-access": "^2.3.3",
72
+ "@ton/ton": "16.1.0",
73
+ "@tonappchain/ton-lite-client": "3.0.6",
74
+ "@tonconnect/ui": "^2.0.11",
75
+ "bn.js": "^5.2.1",
76
+ "cli-table3": "^0.6.5",
77
+ "dotenv": "^16.4.7",
78
+ "ethers": "^6.13.5",
79
+ "ton-crypto": "^3.2.0"
80
+ },
81
+ "keywords": [],
82
+ "description": "",
83
+ "devDependencies": {
84
+ "@eslint/js": "^9.21.0",
85
+ "@jest/globals": "^29.7.0",
86
+ "@release-it/keep-a-changelog": "^7.0.0",
87
+ "@ton/sandbox": "^0.27.1",
88
+ "@ton/test-utils": "^0.5.0",
89
+ "@types/bn.js": "^5.1.6",
90
+ "@types/jest": "^29.5.14",
91
+ "eslint": "^9.26.0",
92
+ "eslint-config-prettier": "^10.0.2",
93
+ "eslint-plugin-simple-import-sort": "^12.1.1",
94
+ "jest": "^29.7.0",
95
+ "prettier": "^3.5.3",
96
+ "ts-jest": "^29.2.6",
97
+ "ts-node": "^10.9.2",
98
+ "typescript": "^5.7.3",
99
+ "typescript-eslint": "^8.17.0"
100
+ },
101
+ "publishConfig": {
102
+ "access": "public",
103
+ "registry": "https://registry.npmjs.org/"
104
+ },
105
+ "release-it": {
106
+ "plugins": {
107
+ "@release-it/keep-a-changelog": {
108
+ "filename": "CHANGELOG.md"
109
+ }
110
+ },
111
+ "npm": {
112
+ "publish": false
113
+ }
114
+ }
115
+ }