@ton-wallet/create 14.0.5 → 14.0.6

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