@tonappchain/sdk 0.7.1 → 0.7.2-alpha-2
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.
- package/LICENSE +20 -20
- package/README.md +198 -198
- package/dist/artifacts/dev/ton/internal/build/CrossChainLayer.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/build/Executor.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/build/JettonMinter.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/build/JettonProxy.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/build/JettonWallet.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/build/NFTItem.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/build/NFTProxy.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/wrappers/CrossChainLayer.d.ts +13 -1
- package/dist/artifacts/dev/ton/internal/wrappers/CrossChainLayer.js +45 -7
- package/dist/artifacts/dev/ton/internal/wrappers/JettonMinter.d.ts +2 -2
- package/dist/artifacts/dev/ton/internal/wrappers/JettonMinter.js +2 -2
- package/dist/artifacts/testnet/ton/internal/build/CrossChainLayer.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/build/Executor.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/build/JettonMinter.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/build/JettonProxy.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/build/JettonWallet.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/build/NFTItem.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/build/NFTProxy.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/wrappers/CrossChainLayer.d.ts +13 -1
- package/dist/artifacts/testnet/ton/internal/wrappers/CrossChainLayer.js +45 -7
- package/dist/artifacts/testnet/ton/internal/wrappers/JettonMinter.d.ts +2 -2
- package/dist/artifacts/testnet/ton/internal/wrappers/JettonMinter.js +2 -2
- package/dist/src/adapters/contractOpener.d.ts +4 -0
- package/dist/src/adapters/contractOpener.js +162 -1
- package/dist/src/adapters/retryableContractOpener.d.ts +5 -1
- package/dist/src/adapters/retryableContractOpener.js +38 -7
- package/dist/src/assets/AssetFactory.js +8 -2
- package/dist/src/assets/FT.d.ts +1 -1
- package/dist/src/assets/FT.js +1 -1
- package/dist/src/assets/NFT.d.ts +1 -1
- package/dist/src/assets/NFT.js +1 -1
- package/dist/src/assets/TON.d.ts +3 -2
- package/dist/src/assets/TON.js +2 -1
- package/dist/src/errors/instances.d.ts +2 -0
- package/dist/src/errors/instances.js +3 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +2 -4
- package/dist/src/interfaces/Asset.d.ts +4 -9
- package/dist/src/interfaces/ContractOpener.d.ts +5 -1
- package/dist/src/interfaces/ISimulator.d.ts +15 -1
- package/dist/src/interfaces/ITONTransactionManager.d.ts +20 -1
- package/dist/src/interfaces/ITacSDK.d.ts +10 -1
- package/dist/src/interfaces/ITxFinalizer.d.ts +5 -0
- package/dist/src/interfaces/ITxFinalizer.js +2 -0
- package/dist/src/interfaces/WalletInstanse.d.ts +4 -8
- package/dist/src/sdk/Consts.d.ts +50 -1
- package/dist/src/sdk/Consts.js +52 -2
- package/dist/src/sdk/Simulator.d.ts +11 -2
- package/dist/src/sdk/Simulator.js +190 -0
- package/dist/src/sdk/StartTracking.d.ts +5 -3
- package/dist/src/sdk/StartTracking.js +60 -40
- package/dist/src/sdk/TONTransactionManager.d.ts +8 -5
- package/dist/src/sdk/TONTransactionManager.js +50 -7
- package/dist/src/sdk/TacSdk.d.ts +2 -1
- package/dist/src/sdk/TacSdk.js +7 -1
- package/dist/src/sdk/TxFinalizer.d.ts +15 -4
- package/dist/src/sdk/TxFinalizer.js +102 -23
- package/dist/src/sdk/Utils.d.ts +10 -1
- package/dist/src/sdk/Utils.js +48 -0
- package/dist/src/sender/BatchSender.js +19 -0
- package/dist/src/sender/MockSender.d.ts +2 -0
- package/dist/src/sender/MockSender.js +13 -0
- package/dist/src/sender/RawSender.js +34 -1
- package/dist/src/sender/SenderFactory.js +1 -1
- package/dist/src/sender/TonConnectSender.js +2 -0
- package/dist/src/sender/index.d.ts +1 -0
- package/dist/src/sender/index.js +1 -0
- package/dist/src/structs/InternalStruct.d.ts +45 -1
- package/dist/src/structs/Struct.d.ts +29 -2
- package/dist/src/wrappers/HighloadWalletV3.d.ts +5 -3
- package/dist/src/wrappers/HighloadWalletV3.js +14 -3
- package/package.json +116 -118
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cell } from '@ton/ton';
|
|
1
|
+
import { Address, Cell } from '@ton/ton';
|
|
2
2
|
import { AbstractProvider, ethers } from 'ethers';
|
|
3
3
|
import { ICrossChainLayer, ISAFactory, ISettings, ITokenUtils } from '../../artifacts/tacTypes';
|
|
4
4
|
import { ContractOpener } from '../interfaces';
|
|
@@ -7,6 +7,10 @@ export type ShardMessage = {
|
|
|
7
7
|
address: string;
|
|
8
8
|
value: bigint;
|
|
9
9
|
payload: Cell;
|
|
10
|
+
extra: {
|
|
11
|
+
tonNetworkFee: bigint;
|
|
12
|
+
tacEstimatedGas?: bigint;
|
|
13
|
+
};
|
|
10
14
|
};
|
|
11
15
|
export type ShardTransaction = {
|
|
12
16
|
validUntil: number;
|
|
@@ -61,6 +65,7 @@ export type OperationIdWithLogIndex = {
|
|
|
61
65
|
export type OperationIdWithLogIndexResponse = ResponseBase<OperationIdWithLogIndex>;
|
|
62
66
|
export interface SendResult {
|
|
63
67
|
success: boolean;
|
|
68
|
+
boc: string;
|
|
64
69
|
result?: unknown;
|
|
65
70
|
error?: Error;
|
|
66
71
|
lastMessageIndex?: number;
|
|
@@ -88,6 +93,7 @@ export type ToncenterTransaction = {
|
|
|
88
93
|
}[];
|
|
89
94
|
};
|
|
90
95
|
export type TransactionDepth = {
|
|
96
|
+
address?: Address;
|
|
91
97
|
hash: string;
|
|
92
98
|
depth: number;
|
|
93
99
|
};
|
|
@@ -114,3 +120,41 @@ export type ConvertedCurrencyRawResult = {
|
|
|
114
120
|
tacPrice: USDPriceInfoRaw;
|
|
115
121
|
tonPrice: USDPriceInfoRaw;
|
|
116
122
|
};
|
|
123
|
+
export type GetTransactionsOptions = {
|
|
124
|
+
limit: number;
|
|
125
|
+
lt?: string;
|
|
126
|
+
hash?: string;
|
|
127
|
+
to_lt?: string;
|
|
128
|
+
inclusive?: boolean;
|
|
129
|
+
archival?: boolean;
|
|
130
|
+
timeoutMs?: number;
|
|
131
|
+
retryDelayMs?: number;
|
|
132
|
+
};
|
|
133
|
+
export type AddressInformation = {
|
|
134
|
+
lastTransaction: {
|
|
135
|
+
lt: string;
|
|
136
|
+
hash: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export type TONFeeCalculationParams = {
|
|
140
|
+
accountBits: number;
|
|
141
|
+
accountCells: number;
|
|
142
|
+
timeDelta: number;
|
|
143
|
+
msgBits: number;
|
|
144
|
+
msgCells: number;
|
|
145
|
+
gasUsed: number;
|
|
146
|
+
bitPricePs?: number;
|
|
147
|
+
cellPricePs?: number;
|
|
148
|
+
lumpPrice?: number;
|
|
149
|
+
gasPrice?: number;
|
|
150
|
+
firstFrac?: number;
|
|
151
|
+
ihrPriceFactor?: number;
|
|
152
|
+
};
|
|
153
|
+
export type TransactionFeeCalculationStep = {
|
|
154
|
+
accountBits: number;
|
|
155
|
+
accountCells: number;
|
|
156
|
+
gasUsed: number;
|
|
157
|
+
msgBits: number;
|
|
158
|
+
msgCells: number;
|
|
159
|
+
timeDelta: number;
|
|
160
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SandboxContract } from '@ton/sandbox';
|
|
2
|
-
import { OpenedContract } from '@ton/ton';
|
|
2
|
+
import { Cell, OpenedContract } from '@ton/ton';
|
|
3
3
|
import { AbstractProvider } from 'ethers';
|
|
4
4
|
import { JettonMinter, JettonMinterData } from '../../artifacts/tonTypes';
|
|
5
5
|
import type { FT, NFT } from '../assets';
|
|
6
6
|
import type { Asset, ContractOpener, ILogger } from '../interfaces';
|
|
7
|
+
import { ITxFinalizer } from '../interfaces/ITxFinalizer';
|
|
8
|
+
import { SendResult } from './InternalStruct';
|
|
7
9
|
export type ContractState = {
|
|
8
10
|
balance: bigint;
|
|
9
11
|
state: 'active' | 'uninitialized' | 'frozen';
|
|
@@ -59,6 +61,10 @@ export type TONParams = {
|
|
|
59
61
|
* Address of TON settings contract. Use only for tests.
|
|
60
62
|
*/
|
|
61
63
|
settingsAddress?: string;
|
|
64
|
+
/**
|
|
65
|
+
* TxFinalizer for tracking transaction tree
|
|
66
|
+
*/
|
|
67
|
+
txFinalizer?: ITxFinalizer;
|
|
62
68
|
};
|
|
63
69
|
export type SDKParams = {
|
|
64
70
|
/**
|
|
@@ -110,7 +116,7 @@ export type TransactionLinker = {
|
|
|
110
116
|
shardCount: number;
|
|
111
117
|
shardsKey: string;
|
|
112
118
|
timestamp: number;
|
|
113
|
-
sendTransactionResult?:
|
|
119
|
+
sendTransactionResult?: SendResult;
|
|
114
120
|
};
|
|
115
121
|
export type TransactionLinkerWithOperationId = TransactionLinker & {
|
|
116
122
|
operationId?: string;
|
|
@@ -279,6 +285,7 @@ export type FeeParams = {
|
|
|
279
285
|
protocolFee: bigint;
|
|
280
286
|
evmExecutorFee: bigint;
|
|
281
287
|
tvmExecutorFee: bigint;
|
|
288
|
+
evmEstimatedGas?: bigint;
|
|
282
289
|
};
|
|
283
290
|
export type CrossChainTransactionOptions = {
|
|
284
291
|
allowSimulationError?: boolean;
|
|
@@ -367,6 +374,11 @@ export interface WaitOptions<T = unknown, TContext = unknown> {
|
|
|
367
374
|
* Receives both the result and optional context with additional parameters
|
|
368
375
|
*/
|
|
369
376
|
onSuccess?: (result: T, context?: TContext) => Promise<void> | void;
|
|
377
|
+
/**
|
|
378
|
+
* Ensure that TON transaction is succesful
|
|
379
|
+
* @default true
|
|
380
|
+
*/
|
|
381
|
+
ensureTxExecuted?: boolean;
|
|
370
382
|
}
|
|
371
383
|
export declare const defaultWaitOptions: WaitOptions;
|
|
372
384
|
export declare enum Origin {
|
|
@@ -418,3 +430,18 @@ export type FTOriginAndData = {
|
|
|
418
430
|
evmAddress?: string;
|
|
419
431
|
jettonData?: JettonMinterData;
|
|
420
432
|
};
|
|
433
|
+
export type CrossChainPayloadResult = {
|
|
434
|
+
body: Cell;
|
|
435
|
+
destinationAddress: string;
|
|
436
|
+
tonAmount: bigint;
|
|
437
|
+
tonNetworkFee: bigint;
|
|
438
|
+
tacEstimatedGas?: bigint;
|
|
439
|
+
transactionLinker: TransactionLinker;
|
|
440
|
+
};
|
|
441
|
+
export type GeneratePayloadParams = {
|
|
442
|
+
excessReceiver: string;
|
|
443
|
+
evmData: Cell;
|
|
444
|
+
crossChainTonAmount?: bigint;
|
|
445
|
+
forwardFeeTonAmount?: bigint;
|
|
446
|
+
feeParams?: FeeParams;
|
|
447
|
+
};
|
|
@@ -25,6 +25,8 @@ export declare class HighloadWalletV3 implements WalletInstanse {
|
|
|
25
25
|
data: Cell;
|
|
26
26
|
} | undefined);
|
|
27
27
|
getSeqno(): Promise<number>;
|
|
28
|
+
send(provider: ContractProvider, msg: Cell): Promise<void>;
|
|
29
|
+
createTransfer(): Cell;
|
|
28
30
|
sendTransfer(provider: ContractProvider, args: {
|
|
29
31
|
seqno?: number;
|
|
30
32
|
secretKey: Buffer;
|
|
@@ -33,7 +35,7 @@ export declare class HighloadWalletV3 implements WalletInstanse {
|
|
|
33
35
|
timeout?: number;
|
|
34
36
|
subwalletId?: number;
|
|
35
37
|
createdAt?: number;
|
|
36
|
-
}): Promise<
|
|
38
|
+
}): Promise<string>;
|
|
37
39
|
static create(config: HighloadWalletV3Config, code?: Cell, workchain?: number): HighloadWalletV3;
|
|
38
40
|
static generateCreatedAt(): number;
|
|
39
41
|
sendExternalMessage(provider: ContractProvider, secretKey: Buffer, opts: {
|
|
@@ -43,8 +45,8 @@ export declare class HighloadWalletV3 implements WalletInstanse {
|
|
|
43
45
|
createdAt: number;
|
|
44
46
|
subwalletId: number;
|
|
45
47
|
timeout: number;
|
|
46
|
-
}): Promise<
|
|
47
|
-
sendBatch(provider: ContractProvider, secretKey: Buffer, messages: OutActionSendMsg[], subwallet: number, timeout: number, createdAt?: number, value?: bigint): Promise<
|
|
48
|
+
}): Promise<string>;
|
|
49
|
+
sendBatch(provider: ContractProvider, secretKey: Buffer, messages: OutActionSendMsg[], subwallet: number, timeout: number, createdAt?: number, value?: bigint): Promise<string>;
|
|
48
50
|
getQueryIdFromCreatedAt(createdAt: number): HighloadQueryId;
|
|
49
51
|
getExternalMessage(messages: MessageRelaxed[], sendMode: SendMode, value: bigint, queryId: HighloadQueryId): MessageRelaxed;
|
|
50
52
|
static createInternalTransferBody(opts: {
|
|
@@ -30,9 +30,15 @@ class HighloadWalletV3 {
|
|
|
30
30
|
async getSeqno() {
|
|
31
31
|
return 0; // will not be used
|
|
32
32
|
}
|
|
33
|
+
async send(provider, msg) {
|
|
34
|
+
await provider.external(msg);
|
|
35
|
+
}
|
|
36
|
+
createTransfer() {
|
|
37
|
+
throw new Error('Not implemented. Use sendTransfer instead - it returns the BOC as a string');
|
|
38
|
+
}
|
|
33
39
|
async sendTransfer(provider, args) {
|
|
34
40
|
if (!args.messages.length) {
|
|
35
|
-
return;
|
|
41
|
+
return '';
|
|
36
42
|
}
|
|
37
43
|
const state = await provider.getState();
|
|
38
44
|
const isActive = state.state.type === 'active';
|
|
@@ -43,7 +49,7 @@ class HighloadWalletV3 {
|
|
|
43
49
|
mode: args.sendMode,
|
|
44
50
|
outMsg: msg,
|
|
45
51
|
}));
|
|
46
|
-
await this.sendBatch(provider, args.secretKey, actions, subwalletId, timeout, args.createdAt);
|
|
52
|
+
return await this.sendBatch(provider, args.secretKey, actions, subwalletId, timeout, args.createdAt);
|
|
47
53
|
}
|
|
48
54
|
static create(config, code = HIGHLOAD_V3_CODE, workchain = 0) {
|
|
49
55
|
const data = highloadWalletV3ConfigToCell(config);
|
|
@@ -72,7 +78,12 @@ class HighloadWalletV3 {
|
|
|
72
78
|
.storeUint(opts.createdAt, exports.TIMESTAMP_SIZE)
|
|
73
79
|
.storeUint(opts.timeout, exports.TIMEOUT_SIZE)
|
|
74
80
|
.endCell();
|
|
75
|
-
|
|
81
|
+
const externalMessage = (0, ton_1.beginCell)()
|
|
82
|
+
.storeBuffer((0, ton_crypto_1.sign)(messageInner.hash(), secretKey))
|
|
83
|
+
.storeRef(messageInner)
|
|
84
|
+
.endCell();
|
|
85
|
+
await provider.external(externalMessage);
|
|
86
|
+
return externalMessage.toBoc().toString('base64');
|
|
76
87
|
}
|
|
77
88
|
async sendBatch(provider, secretKey, messages, subwallet, timeout, createdAt, value = 0n) {
|
|
78
89
|
if (createdAt == undefined) {
|
package/package.json
CHANGED
|
@@ -1,118 +1,116 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tonappchain/sdk",
|
|
3
|
-
"version": "0.7.
|
|
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
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"build": "
|
|
55
|
-
"build:artifacts:
|
|
56
|
-
"build:artifacts:
|
|
57
|
-
"build:artifacts:
|
|
58
|
-
"build:artifacts:
|
|
59
|
-
"build:artifacts:
|
|
60
|
-
"build:artifacts:ton:
|
|
61
|
-
"build:artifacts:
|
|
62
|
-
"build:artifacts
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"lint": "eslint .",
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"eslint": "^
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"jest": "^29.
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
118
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tonappchain/sdk",
|
|
3
|
+
"version": "0.7.2-alpha-2",
|
|
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
|
+
}
|