@ton/ton 13.5.1

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 (80) hide show
  1. package/CHANGELOG.md +133 -0
  2. package/LICENSE +9 -0
  3. package/README.md +78 -0
  4. package/dist/client/TonClient.d.ts +231 -0
  5. package/dist/client/TonClient.js +392 -0
  6. package/dist/client/TonClient.spec.d.ts +1 -0
  7. package/dist/client/TonClient.spec.js +37 -0
  8. package/dist/client/TonClient4.d.ts +289 -0
  9. package/dist/client/TonClient4.js +514 -0
  10. package/dist/client/TonClient4.spec.d.ts +1 -0
  11. package/dist/client/TonClient4.spec.js +36 -0
  12. package/dist/client/api/HttpApi.d.ts +632 -0
  13. package/dist/client/api/HttpApi.js +297 -0
  14. package/dist/client/api/TonCache.d.ts +16 -0
  15. package/dist/client/api/TonCache.js +33 -0
  16. package/dist/index.d.ts +24 -0
  17. package/dist/index.js +68 -0
  18. package/dist/jetton/JettonMaster.d.ts +21 -0
  19. package/dist/jetton/JettonMaster.js +39 -0
  20. package/dist/jetton/JettonMaster.spec.d.ts +8 -0
  21. package/dist/jetton/JettonMaster.spec.js +27 -0
  22. package/dist/jetton/JettonWallet.d.ts +14 -0
  23. package/dist/jetton/JettonWallet.js +27 -0
  24. package/dist/multisig/MultisigOrder.d.ts +17 -0
  25. package/dist/multisig/MultisigOrder.js +73 -0
  26. package/dist/multisig/MultisigOrder.spec.d.ts +1 -0
  27. package/dist/multisig/MultisigOrder.spec.js +139 -0
  28. package/dist/multisig/MultisigOrderBuilder.d.ts +13 -0
  29. package/dist/multisig/MultisigOrderBuilder.js +37 -0
  30. package/dist/multisig/MultisigWallet.d.ts +26 -0
  31. package/dist/multisig/MultisigWallet.js +120 -0
  32. package/dist/multisig/MultisigWallet.spec.d.ts +1 -0
  33. package/dist/multisig/MultisigWallet.spec.js +230 -0
  34. package/dist/utils/createTestClient.d.ts +9 -0
  35. package/dist/utils/createTestClient.js +18 -0
  36. package/dist/utils/createTestClient4.d.ts +9 -0
  37. package/dist/utils/createTestClient4.js +15 -0
  38. package/dist/utils/maybe.d.ts +8 -0
  39. package/dist/utils/maybe.js +9 -0
  40. package/dist/utils/randomTestKey.d.ts +8 -0
  41. package/dist/utils/randomTestKey.js +24 -0
  42. package/dist/utils/time.d.ts +15 -0
  43. package/dist/utils/time.js +63 -0
  44. package/dist/utils/toUrlSafe.d.ts +8 -0
  45. package/dist/utils/toUrlSafe.js +23 -0
  46. package/dist/wallets/WalletContractV1R1.d.ts +58 -0
  47. package/dist/wallets/WalletContractV1R1.js +100 -0
  48. package/dist/wallets/WalletContractV1R1.spec.d.ts +8 -0
  49. package/dist/wallets/WalletContractV1R1.spec.js +44 -0
  50. package/dist/wallets/WalletContractV1R2.d.ts +58 -0
  51. package/dist/wallets/WalletContractV1R2.js +101 -0
  52. package/dist/wallets/WalletContractV1R2.spec.d.ts +8 -0
  53. package/dist/wallets/WalletContractV1R2.spec.js +44 -0
  54. package/dist/wallets/WalletContractV1R3.d.ts +58 -0
  55. package/dist/wallets/WalletContractV1R3.js +101 -0
  56. package/dist/wallets/WalletContractV1R3.spec.d.ts +8 -0
  57. package/dist/wallets/WalletContractV1R3.spec.js +44 -0
  58. package/dist/wallets/WalletContractV2R1.d.ts +60 -0
  59. package/dist/wallets/WalletContractV2R1.js +102 -0
  60. package/dist/wallets/WalletContractV2R1.spec.d.ts +8 -0
  61. package/dist/wallets/WalletContractV2R1.spec.js +44 -0
  62. package/dist/wallets/WalletContractV2R2.d.ts +60 -0
  63. package/dist/wallets/WalletContractV2R2.js +102 -0
  64. package/dist/wallets/WalletContractV2R2.spec.d.ts +8 -0
  65. package/dist/wallets/WalletContractV2R2.spec.js +44 -0
  66. package/dist/wallets/WalletContractV3R1.d.ts +62 -0
  67. package/dist/wallets/WalletContractV3R1.js +111 -0
  68. package/dist/wallets/WalletContractV3R1.spec.d.ts +8 -0
  69. package/dist/wallets/WalletContractV3R1.spec.js +44 -0
  70. package/dist/wallets/WalletContractV3R2.d.ts +62 -0
  71. package/dist/wallets/WalletContractV3R2.js +111 -0
  72. package/dist/wallets/WalletContractV3R2.spec.d.ts +8 -0
  73. package/dist/wallets/WalletContractV3R2.spec.js +44 -0
  74. package/dist/wallets/WalletContractV4.d.ts +62 -0
  75. package/dist/wallets/WalletContractV4.js +112 -0
  76. package/dist/wallets/WalletContractV4.spec.d.ts +8 -0
  77. package/dist/wallets/WalletContractV4.spec.js +48 -0
  78. package/dist/wallets/signing/createWalletTransfer.d.ts +39 -0
  79. package/dist/wallets/signing/createWalletTransfer.js +122 -0
  80. package/package.json +68 -0
@@ -0,0 +1,632 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Copyright (c) Whales Corp.
4
+ * All Rights Reserved.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { TonCache } from './TonCache';
10
+ import { AxiosAdapter } from 'axios';
11
+ import { Address, Cell, TupleItem } from '@ton/core';
12
+ import { z } from 'zod';
13
+ declare const message: z.ZodObject<{
14
+ source: z.ZodString;
15
+ destination: z.ZodString;
16
+ value: z.ZodString;
17
+ fwd_fee: z.ZodString;
18
+ ihr_fee: z.ZodString;
19
+ created_lt: z.ZodString;
20
+ body_hash: z.ZodString;
21
+ msg_data: z.ZodUnion<[z.ZodObject<{
22
+ '@type': z.ZodLiteral<"msg.dataRaw">;
23
+ body: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ '@type': "msg.dataRaw";
26
+ body: string;
27
+ }, {
28
+ '@type': "msg.dataRaw";
29
+ body: string;
30
+ }>, z.ZodObject<{
31
+ '@type': z.ZodLiteral<"msg.dataText">;
32
+ text: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ '@type': "msg.dataText";
35
+ text: string;
36
+ }, {
37
+ '@type': "msg.dataText";
38
+ text: string;
39
+ }>, z.ZodObject<{
40
+ '@type': z.ZodLiteral<"msg.dataDecryptedText">;
41
+ text: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ '@type': "msg.dataDecryptedText";
44
+ text: string;
45
+ }, {
46
+ '@type': "msg.dataDecryptedText";
47
+ text: string;
48
+ }>, z.ZodObject<{
49
+ '@type': z.ZodLiteral<"msg.dataEncryptedText">;
50
+ text: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ '@type': "msg.dataEncryptedText";
53
+ text: string;
54
+ }, {
55
+ '@type': "msg.dataEncryptedText";
56
+ text: string;
57
+ }>]>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ value: string;
60
+ fwd_fee: string;
61
+ source: string;
62
+ destination: string;
63
+ ihr_fee: string;
64
+ created_lt: string;
65
+ body_hash: string;
66
+ msg_data: {
67
+ '@type': "msg.dataRaw";
68
+ body: string;
69
+ } | {
70
+ '@type': "msg.dataText";
71
+ text: string;
72
+ } | {
73
+ '@type': "msg.dataDecryptedText";
74
+ text: string;
75
+ } | {
76
+ '@type': "msg.dataEncryptedText";
77
+ text: string;
78
+ };
79
+ }, {
80
+ value: string;
81
+ fwd_fee: string;
82
+ source: string;
83
+ destination: string;
84
+ ihr_fee: string;
85
+ created_lt: string;
86
+ body_hash: string;
87
+ msg_data: {
88
+ '@type': "msg.dataRaw";
89
+ body: string;
90
+ } | {
91
+ '@type': "msg.dataText";
92
+ text: string;
93
+ } | {
94
+ '@type': "msg.dataDecryptedText";
95
+ text: string;
96
+ } | {
97
+ '@type': "msg.dataEncryptedText";
98
+ text: string;
99
+ };
100
+ }>;
101
+ declare const getTransactions: z.ZodArray<z.ZodObject<{
102
+ data: z.ZodString;
103
+ utime: z.ZodNumber;
104
+ transaction_id: z.ZodObject<{
105
+ lt: z.ZodString;
106
+ hash: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ lt: string;
109
+ hash: string;
110
+ }, {
111
+ lt: string;
112
+ hash: string;
113
+ }>;
114
+ fee: z.ZodString;
115
+ storage_fee: z.ZodString;
116
+ other_fee: z.ZodString;
117
+ in_msg: z.ZodUnion<[z.ZodUndefined, z.ZodObject<{
118
+ source: z.ZodString;
119
+ destination: z.ZodString;
120
+ value: z.ZodString;
121
+ fwd_fee: z.ZodString;
122
+ ihr_fee: z.ZodString;
123
+ created_lt: z.ZodString;
124
+ body_hash: z.ZodString;
125
+ msg_data: z.ZodUnion<[z.ZodObject<{
126
+ '@type': z.ZodLiteral<"msg.dataRaw">;
127
+ body: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ '@type': "msg.dataRaw";
130
+ body: string;
131
+ }, {
132
+ '@type': "msg.dataRaw";
133
+ body: string;
134
+ }>, z.ZodObject<{
135
+ '@type': z.ZodLiteral<"msg.dataText">;
136
+ text: z.ZodString;
137
+ }, "strip", z.ZodTypeAny, {
138
+ '@type': "msg.dataText";
139
+ text: string;
140
+ }, {
141
+ '@type': "msg.dataText";
142
+ text: string;
143
+ }>, z.ZodObject<{
144
+ '@type': z.ZodLiteral<"msg.dataDecryptedText">;
145
+ text: z.ZodString;
146
+ }, "strip", z.ZodTypeAny, {
147
+ '@type': "msg.dataDecryptedText";
148
+ text: string;
149
+ }, {
150
+ '@type': "msg.dataDecryptedText";
151
+ text: string;
152
+ }>, z.ZodObject<{
153
+ '@type': z.ZodLiteral<"msg.dataEncryptedText">;
154
+ text: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ '@type': "msg.dataEncryptedText";
157
+ text: string;
158
+ }, {
159
+ '@type': "msg.dataEncryptedText";
160
+ text: string;
161
+ }>]>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ value: string;
164
+ fwd_fee: string;
165
+ source: string;
166
+ destination: string;
167
+ ihr_fee: string;
168
+ created_lt: string;
169
+ body_hash: string;
170
+ msg_data: {
171
+ '@type': "msg.dataRaw";
172
+ body: string;
173
+ } | {
174
+ '@type': "msg.dataText";
175
+ text: string;
176
+ } | {
177
+ '@type': "msg.dataDecryptedText";
178
+ text: string;
179
+ } | {
180
+ '@type': "msg.dataEncryptedText";
181
+ text: string;
182
+ };
183
+ }, {
184
+ value: string;
185
+ fwd_fee: string;
186
+ source: string;
187
+ destination: string;
188
+ ihr_fee: string;
189
+ created_lt: string;
190
+ body_hash: string;
191
+ msg_data: {
192
+ '@type': "msg.dataRaw";
193
+ body: string;
194
+ } | {
195
+ '@type': "msg.dataText";
196
+ text: string;
197
+ } | {
198
+ '@type': "msg.dataDecryptedText";
199
+ text: string;
200
+ } | {
201
+ '@type': "msg.dataEncryptedText";
202
+ text: string;
203
+ };
204
+ }>]>;
205
+ out_msgs: z.ZodArray<z.ZodObject<{
206
+ source: z.ZodString;
207
+ destination: z.ZodString;
208
+ value: z.ZodString;
209
+ fwd_fee: z.ZodString;
210
+ ihr_fee: z.ZodString;
211
+ created_lt: z.ZodString;
212
+ body_hash: z.ZodString;
213
+ msg_data: z.ZodUnion<[z.ZodObject<{
214
+ '@type': z.ZodLiteral<"msg.dataRaw">;
215
+ body: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ '@type': "msg.dataRaw";
218
+ body: string;
219
+ }, {
220
+ '@type': "msg.dataRaw";
221
+ body: string;
222
+ }>, z.ZodObject<{
223
+ '@type': z.ZodLiteral<"msg.dataText">;
224
+ text: z.ZodString;
225
+ }, "strip", z.ZodTypeAny, {
226
+ '@type': "msg.dataText";
227
+ text: string;
228
+ }, {
229
+ '@type': "msg.dataText";
230
+ text: string;
231
+ }>, z.ZodObject<{
232
+ '@type': z.ZodLiteral<"msg.dataDecryptedText">;
233
+ text: z.ZodString;
234
+ }, "strip", z.ZodTypeAny, {
235
+ '@type': "msg.dataDecryptedText";
236
+ text: string;
237
+ }, {
238
+ '@type': "msg.dataDecryptedText";
239
+ text: string;
240
+ }>, z.ZodObject<{
241
+ '@type': z.ZodLiteral<"msg.dataEncryptedText">;
242
+ text: z.ZodString;
243
+ }, "strip", z.ZodTypeAny, {
244
+ '@type': "msg.dataEncryptedText";
245
+ text: string;
246
+ }, {
247
+ '@type': "msg.dataEncryptedText";
248
+ text: string;
249
+ }>]>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ value: string;
252
+ fwd_fee: string;
253
+ source: string;
254
+ destination: string;
255
+ ihr_fee: string;
256
+ created_lt: string;
257
+ body_hash: string;
258
+ msg_data: {
259
+ '@type': "msg.dataRaw";
260
+ body: string;
261
+ } | {
262
+ '@type': "msg.dataText";
263
+ text: string;
264
+ } | {
265
+ '@type': "msg.dataDecryptedText";
266
+ text: string;
267
+ } | {
268
+ '@type': "msg.dataEncryptedText";
269
+ text: string;
270
+ };
271
+ }, {
272
+ value: string;
273
+ fwd_fee: string;
274
+ source: string;
275
+ destination: string;
276
+ ihr_fee: string;
277
+ created_lt: string;
278
+ body_hash: string;
279
+ msg_data: {
280
+ '@type': "msg.dataRaw";
281
+ body: string;
282
+ } | {
283
+ '@type': "msg.dataText";
284
+ text: string;
285
+ } | {
286
+ '@type': "msg.dataDecryptedText";
287
+ text: string;
288
+ } | {
289
+ '@type': "msg.dataEncryptedText";
290
+ text: string;
291
+ };
292
+ }>, "many">;
293
+ }, "strip", z.ZodTypeAny, {
294
+ data: string;
295
+ storage_fee: string;
296
+ utime: number;
297
+ transaction_id: {
298
+ lt: string;
299
+ hash: string;
300
+ };
301
+ fee: string;
302
+ other_fee: string;
303
+ out_msgs: {
304
+ value: string;
305
+ fwd_fee: string;
306
+ source: string;
307
+ destination: string;
308
+ ihr_fee: string;
309
+ created_lt: string;
310
+ body_hash: string;
311
+ msg_data: {
312
+ '@type': "msg.dataRaw";
313
+ body: string;
314
+ } | {
315
+ '@type': "msg.dataText";
316
+ text: string;
317
+ } | {
318
+ '@type': "msg.dataDecryptedText";
319
+ text: string;
320
+ } | {
321
+ '@type': "msg.dataEncryptedText";
322
+ text: string;
323
+ };
324
+ }[];
325
+ in_msg?: {
326
+ value: string;
327
+ fwd_fee: string;
328
+ source: string;
329
+ destination: string;
330
+ ihr_fee: string;
331
+ created_lt: string;
332
+ body_hash: string;
333
+ msg_data: {
334
+ '@type': "msg.dataRaw";
335
+ body: string;
336
+ } | {
337
+ '@type': "msg.dataText";
338
+ text: string;
339
+ } | {
340
+ '@type': "msg.dataDecryptedText";
341
+ text: string;
342
+ } | {
343
+ '@type': "msg.dataEncryptedText";
344
+ text: string;
345
+ };
346
+ } | undefined;
347
+ }, {
348
+ data: string;
349
+ storage_fee: string;
350
+ utime: number;
351
+ transaction_id: {
352
+ lt: string;
353
+ hash: string;
354
+ };
355
+ fee: string;
356
+ other_fee: string;
357
+ out_msgs: {
358
+ value: string;
359
+ fwd_fee: string;
360
+ source: string;
361
+ destination: string;
362
+ ihr_fee: string;
363
+ created_lt: string;
364
+ body_hash: string;
365
+ msg_data: {
366
+ '@type': "msg.dataRaw";
367
+ body: string;
368
+ } | {
369
+ '@type': "msg.dataText";
370
+ text: string;
371
+ } | {
372
+ '@type': "msg.dataDecryptedText";
373
+ text: string;
374
+ } | {
375
+ '@type': "msg.dataEncryptedText";
376
+ text: string;
377
+ };
378
+ }[];
379
+ in_msg?: {
380
+ value: string;
381
+ fwd_fee: string;
382
+ source: string;
383
+ destination: string;
384
+ ihr_fee: string;
385
+ created_lt: string;
386
+ body_hash: string;
387
+ msg_data: {
388
+ '@type': "msg.dataRaw";
389
+ body: string;
390
+ } | {
391
+ '@type': "msg.dataText";
392
+ text: string;
393
+ } | {
394
+ '@type': "msg.dataDecryptedText";
395
+ text: string;
396
+ } | {
397
+ '@type': "msg.dataEncryptedText";
398
+ text: string;
399
+ };
400
+ } | undefined;
401
+ }>, "many">;
402
+ export declare type HTTPTransaction = z.TypeOf<typeof getTransactions>[number];
403
+ export declare type HTTPMessage = z.TypeOf<typeof message>;
404
+ export interface HttpApiParameters {
405
+ /**
406
+ * HTTP request timeout in milliseconds.
407
+ */
408
+ timeout?: number;
409
+ /**
410
+ * API Key
411
+ */
412
+ apiKey?: string;
413
+ /**
414
+ * Adapter for Axios
415
+ */
416
+ adapter?: AxiosAdapter;
417
+ }
418
+ export declare class HttpApi {
419
+ readonly endpoint: string;
420
+ readonly cache: TonCache;
421
+ private readonly parameters;
422
+ private shardCache;
423
+ private shardLoader;
424
+ private shardTransactionsCache;
425
+ private shardTransactionsLoader;
426
+ constructor(endpoint: string, parameters?: HttpApiParameters);
427
+ getAddressInformation(address: Address): Promise<{
428
+ data: string;
429
+ code: string;
430
+ balance: string | number;
431
+ state: "active" | "uninitialized" | "frozen";
432
+ last_transaction_id: {
433
+ '@type': "internal.transactionId";
434
+ lt: string;
435
+ hash: string;
436
+ };
437
+ block_id: {
438
+ '@type': "ton.blockIdExt";
439
+ workchain: number;
440
+ shard: string;
441
+ seqno: number;
442
+ root_hash: string;
443
+ file_hash: string;
444
+ };
445
+ sync_utime: number;
446
+ }>;
447
+ getTransactions(address: Address, opts: {
448
+ limit: number;
449
+ lt?: string;
450
+ hash?: string;
451
+ to_lt?: string;
452
+ inclusive?: boolean;
453
+ }): Promise<{
454
+ data: string;
455
+ storage_fee: string;
456
+ utime: number;
457
+ transaction_id: {
458
+ lt: string;
459
+ hash: string;
460
+ };
461
+ fee: string;
462
+ other_fee: string;
463
+ out_msgs: {
464
+ value: string;
465
+ fwd_fee: string;
466
+ source: string;
467
+ destination: string;
468
+ ihr_fee: string;
469
+ created_lt: string;
470
+ body_hash: string;
471
+ msg_data: {
472
+ '@type': "msg.dataRaw";
473
+ body: string;
474
+ } | {
475
+ '@type': "msg.dataText";
476
+ text: string;
477
+ } | {
478
+ '@type': "msg.dataDecryptedText";
479
+ text: string;
480
+ } | {
481
+ '@type': "msg.dataEncryptedText";
482
+ text: string;
483
+ };
484
+ }[];
485
+ in_msg?: {
486
+ value: string;
487
+ fwd_fee: string;
488
+ source: string;
489
+ destination: string;
490
+ ihr_fee: string;
491
+ created_lt: string;
492
+ body_hash: string;
493
+ msg_data: {
494
+ '@type': "msg.dataRaw";
495
+ body: string;
496
+ } | {
497
+ '@type': "msg.dataText";
498
+ text: string;
499
+ } | {
500
+ '@type': "msg.dataDecryptedText";
501
+ text: string;
502
+ } | {
503
+ '@type': "msg.dataEncryptedText";
504
+ text: string;
505
+ };
506
+ } | undefined;
507
+ }[]>;
508
+ getMasterchainInfo(): Promise<{
509
+ state_root_hash: string;
510
+ last: {
511
+ '@type': "ton.blockIdExt";
512
+ workchain: number;
513
+ shard: string;
514
+ seqno: number;
515
+ root_hash: string;
516
+ file_hash: string;
517
+ };
518
+ init: {
519
+ '@type': "ton.blockIdExt";
520
+ workchain: number;
521
+ shard: string;
522
+ seqno: number;
523
+ root_hash: string;
524
+ file_hash: string;
525
+ };
526
+ }>;
527
+ getShards(seqno: number): Promise<{
528
+ '@type': "ton.blockIdExt";
529
+ workchain: number;
530
+ shard: string;
531
+ seqno: number;
532
+ root_hash: string;
533
+ file_hash: string;
534
+ }[]>;
535
+ getBlockTransactions(workchain: number, seqno: number, shard: string): Promise<{
536
+ id: {
537
+ '@type': "ton.blockIdExt";
538
+ workchain: number;
539
+ shard: string;
540
+ seqno: number;
541
+ root_hash: string;
542
+ file_hash: string;
543
+ };
544
+ req_count: number;
545
+ incomplete: boolean;
546
+ transactions: {
547
+ '@type': "blocks.shortTxId";
548
+ lt: string;
549
+ hash: string;
550
+ mode: number;
551
+ account: string;
552
+ }[];
553
+ }>;
554
+ getTransaction(address: Address, lt: string, hash: string): Promise<{
555
+ data: string;
556
+ storage_fee: string;
557
+ utime: number;
558
+ transaction_id: {
559
+ lt: string;
560
+ hash: string;
561
+ };
562
+ fee: string;
563
+ other_fee: string;
564
+ out_msgs: {
565
+ value: string;
566
+ fwd_fee: string;
567
+ source: string;
568
+ destination: string;
569
+ ihr_fee: string;
570
+ created_lt: string;
571
+ body_hash: string;
572
+ msg_data: {
573
+ '@type': "msg.dataRaw";
574
+ body: string;
575
+ } | {
576
+ '@type': "msg.dataText";
577
+ text: string;
578
+ } | {
579
+ '@type': "msg.dataDecryptedText";
580
+ text: string;
581
+ } | {
582
+ '@type': "msg.dataEncryptedText";
583
+ text: string;
584
+ };
585
+ }[];
586
+ in_msg?: {
587
+ value: string;
588
+ fwd_fee: string;
589
+ source: string;
590
+ destination: string;
591
+ ihr_fee: string;
592
+ created_lt: string;
593
+ body_hash: string;
594
+ msg_data: {
595
+ '@type': "msg.dataRaw";
596
+ body: string;
597
+ } | {
598
+ '@type': "msg.dataText";
599
+ text: string;
600
+ } | {
601
+ '@type': "msg.dataDecryptedText";
602
+ text: string;
603
+ } | {
604
+ '@type': "msg.dataEncryptedText";
605
+ text: string;
606
+ };
607
+ } | undefined;
608
+ } | null>;
609
+ callGetMethod(address: Address, method: string, stack: TupleItem[]): Promise<{
610
+ gas_used: number;
611
+ exit_code: number;
612
+ stack: unknown[];
613
+ }>;
614
+ sendBoc(body: Buffer): Promise<void>;
615
+ estimateFee(address: Address, args: {
616
+ body: Cell;
617
+ initCode: Cell | null;
618
+ initData: Cell | null;
619
+ ignoreSignature: boolean;
620
+ }): Promise<{
621
+ '@type': "query.fees";
622
+ source_fees: {
623
+ '@type': "fees";
624
+ in_fwd_fee: number;
625
+ storage_fee: number;
626
+ gas_fee: number;
627
+ fwd_fee: number;
628
+ };
629
+ }>;
630
+ private doCall;
631
+ }
632
+ export {};