@ton/ton 13.11.1 → 13.11.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.
@@ -277,6 +277,8 @@ function parseStackEntry(s) {
277
277
  return { type: 'cell', cell: core_1.Cell.fromBase64(s.cell) };
278
278
  case 'tvm.stackEntryTuple':
279
279
  return { type: 'tuple', items: s.tuple.elements.map(parseStackEntry) };
280
+ case 'tvm.stackEntryList':
281
+ return { type: 'list', items: s.list.elements.map(parseStackEntry) };
280
282
  default:
281
283
  throw Error("Unsupported item type: " + s["@type"]);
282
284
  }
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
8
  /// <reference types="node" />
9
- import { AxiosAdapter } from "axios";
9
+ import { AxiosAdapter, InternalAxiosRequestConfig } from "axios";
10
10
  import { Address, Contract, ContractProvider, OpenedContract, StateInit, Transaction, TupleItem, TupleReader } from "@ton/core";
11
11
  import { z } from 'zod';
12
12
  export type TonClient4Parameters = {
@@ -22,6 +22,10 @@ export type TonClient4Parameters = {
22
22
  * HTTP Adapter for axios
23
23
  */
24
24
  httpAdapter?: AxiosAdapter;
25
+ /**
26
+ * HTTP request interceptor for axios
27
+ */
28
+ requestInterceptor?: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig;
25
29
  };
26
30
  export declare class TonClient4 {
27
31
  #private;
@@ -20,7 +20,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
20
20
  var __importDefault = (this && this.__importDefault) || function (mod) {
21
21
  return (mod && mod.__esModule) ? mod : { "default": mod };
22
22
  };
23
- var _TonClient4_endpoint, _TonClient4_timeout, _TonClient4_adapter;
23
+ var _TonClient4_endpoint, _TonClient4_timeout, _TonClient4_adapter, _TonClient4_axios;
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.TonClient4 = void 0;
26
26
  const axios_1 = __importDefault(require("axios"));
@@ -32,16 +32,21 @@ class TonClient4 {
32
32
  _TonClient4_endpoint.set(this, void 0);
33
33
  _TonClient4_timeout.set(this, void 0);
34
34
  _TonClient4_adapter.set(this, void 0);
35
+ _TonClient4_axios.set(this, void 0);
36
+ __classPrivateFieldSet(this, _TonClient4_axios, axios_1.default.create(), "f");
35
37
  __classPrivateFieldSet(this, _TonClient4_endpoint, args.endpoint, "f");
36
38
  __classPrivateFieldSet(this, _TonClient4_timeout, args.timeout || 5000, "f");
37
39
  __classPrivateFieldSet(this, _TonClient4_adapter, args.httpAdapter, "f");
40
+ if (args.requestInterceptor) {
41
+ __classPrivateFieldGet(this, _TonClient4_axios, "f").interceptors.request.use(args.requestInterceptor);
42
+ }
38
43
  }
39
44
  /**
40
45
  * Get Last Block
41
46
  * @returns last block info
42
47
  */
43
48
  async getLastBlock() {
44
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/latest', { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
49
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/latest', { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
45
50
  let lastBlock = lastBlockCodec.safeParse(res.data);
46
51
  if (!lastBlock.success) {
47
52
  throw Error('Mailformed response: ' + lastBlock.error.format()._errors.join(', '));
@@ -54,7 +59,7 @@ class TonClient4 {
54
59
  * @returns block info
55
60
  */
56
61
  async getBlock(seqno) {
57
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
62
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
58
63
  let block = blockCodec.safeParse(res.data);
59
64
  if (!block.success) {
60
65
  throw Error('Mailformed response');
@@ -70,7 +75,7 @@ class TonClient4 {
70
75
  * @returns block info
71
76
  */
72
77
  async getBlockByUtime(ts) {
73
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/utime/' + ts, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
78
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/utime/' + ts, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
74
79
  let block = blockCodec.safeParse(res.data);
75
80
  if (!block.success) {
76
81
  throw Error('Mailformed response');
@@ -87,7 +92,7 @@ class TonClient4 {
87
92
  * @returns account info
88
93
  */
89
94
  async getAccount(seqno, address) {
90
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/' + address.toString({ urlSafe: true }), { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
95
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/' + address.toString({ urlSafe: true }), { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
91
96
  let account = accountCodec.safeParse(res.data);
92
97
  if (!account.success) {
93
98
  throw Error('Mailformed response');
@@ -101,7 +106,7 @@ class TonClient4 {
101
106
  * @returns account lite info
102
107
  */
103
108
  async getAccountLite(seqno, address) {
104
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/' + address.toString({ urlSafe: true }) + '/lite', { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
109
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/' + address.toString({ urlSafe: true }) + '/lite', { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
105
110
  let account = accountLiteCodec.safeParse(res.data);
106
111
  if (!account.success) {
107
112
  throw Error('Mailformed response');
@@ -125,7 +130,7 @@ class TonClient4 {
125
130
  * @returns account change info
126
131
  */
127
132
  async isAccountChanged(seqno, address, lt) {
128
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/' + address.toString({ urlSafe: true }) + '/changed/' + lt.toString(10), { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
133
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/' + address.toString({ urlSafe: true }) + '/changed/' + lt.toString(10), { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
129
134
  let changed = changedCodec.safeParse(res.data);
130
135
  if (!changed.success) {
131
136
  throw Error('Mailformed response');
@@ -140,7 +145,7 @@ class TonClient4 {
140
145
  * @returns unparsed transactions
141
146
  */
142
147
  async getAccountTransactions(address, lt, hash) {
143
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/account/' + address.toString({ urlSafe: true }) + '/tx/' + lt.toString(10) + '/' + (0, toUrlSafe_1.toUrlSafe)(hash.toString('base64')), { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
148
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/account/' + address.toString({ urlSafe: true }) + '/tx/' + lt.toString(10) + '/' + (0, toUrlSafe_1.toUrlSafe)(hash.toString('base64')), { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
144
149
  let transactions = transactionsCodec.safeParse(res.data);
145
150
  if (!transactions.success) {
146
151
  throw Error('Mailformed response');
@@ -165,7 +170,7 @@ class TonClient4 {
165
170
  * @returns parsed transactions
166
171
  */
167
172
  async getAccountTransactionsParsed(address, lt, hash, count = 20) {
168
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/account/' + address.toString({ urlSafe: true }) + '/tx/parsed/' + lt.toString(10) + '/' + (0, toUrlSafe_1.toUrlSafe)(hash.toString('base64')), {
173
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/account/' + address.toString({ urlSafe: true }) + '/tx/parsed/' + lt.toString(10) + '/' + (0, toUrlSafe_1.toUrlSafe)(hash.toString('base64')), {
169
174
  adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"),
170
175
  timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f"),
171
176
  params: {
@@ -189,7 +194,7 @@ class TonClient4 {
189
194
  if (ids && ids.length > 0) {
190
195
  tail = '/' + [...ids].sort().join(',');
191
196
  }
192
- let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/config' + tail, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
197
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/config' + tail, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
193
198
  let config = configCodec.safeParse(res.data);
194
199
  if (!config.success) {
195
200
  throw Error('Mailformed response');
@@ -207,7 +212,7 @@ class TonClient4 {
207
212
  async runMethod(seqno, address, name, args) {
208
213
  let tail = args && args.length > 0 ? '/' + (0, toUrlSafe_1.toUrlSafe)((0, core_1.serializeTuple)(args).toBoc({ idx: false, crc32: false }).toString('base64')) : '';
209
214
  let url = __classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/' + address.toString({ urlSafe: true }) + '/run/' + encodeURIComponent(name) + tail;
210
- let res = await axios_1.default.get(url, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
215
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").get(url, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
211
216
  let runMethod = runMethodCodec.safeParse(res.data);
212
217
  if (!runMethod.success) {
213
218
  throw Error('Mailformed response');
@@ -228,7 +233,7 @@ class TonClient4 {
228
233
  * @returns message status
229
234
  */
230
235
  async sendMessage(message) {
231
- let res = await axios_1.default.post(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/send', { boc: message.toString('base64') }, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
236
+ let res = await __classPrivateFieldGet(this, _TonClient4_axios, "f").post(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/send', { boc: message.toString('base64') }, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") });
232
237
  let send = sendCodec.safeParse(res.data);
233
238
  if (!send.success) {
234
239
  throw Error('Mailformed response');
@@ -273,7 +278,7 @@ class TonClient4 {
273
278
  }
274
279
  }
275
280
  exports.TonClient4 = TonClient4;
276
- _TonClient4_endpoint = new WeakMap(), _TonClient4_timeout = new WeakMap(), _TonClient4_adapter = new WeakMap();
281
+ _TonClient4_endpoint = new WeakMap(), _TonClient4_timeout = new WeakMap(), _TonClient4_adapter = new WeakMap(), _TonClient4_axios = new WeakMap();
277
282
  function createProvider(client, block, address, init) {
278
283
  return {
279
284
  async getState() {
@@ -55,10 +55,9 @@ declare const message: z.ZodObject<{
55
55
  '@type': "msg.dataEncryptedText";
56
56
  text: string;
57
57
  }>]>;
58
- message: z.ZodString;
58
+ message: z.ZodOptional<z.ZodString>;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  value: string;
61
- message: string;
62
61
  fwd_fee: string;
63
62
  source: string;
64
63
  destination: string;
@@ -78,9 +77,9 @@ declare const message: z.ZodObject<{
78
77
  '@type': "msg.dataEncryptedText";
79
78
  text: string;
80
79
  };
80
+ message?: string | undefined;
81
81
  }, {
82
82
  value: string;
83
- message: string;
84
83
  fwd_fee: string;
85
84
  source: string;
86
85
  destination: string;
@@ -100,6 +99,7 @@ declare const message: z.ZodObject<{
100
99
  '@type': "msg.dataEncryptedText";
101
100
  text: string;
102
101
  };
102
+ message?: string | undefined;
103
103
  }>;
104
104
  declare const getTransactions: z.ZodArray<z.ZodObject<{
105
105
  data: z.ZodString;
@@ -162,10 +162,9 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
162
162
  '@type': "msg.dataEncryptedText";
163
163
  text: string;
164
164
  }>]>;
165
- message: z.ZodString;
165
+ message: z.ZodOptional<z.ZodString>;
166
166
  }, "strip", z.ZodTypeAny, {
167
167
  value: string;
168
- message: string;
169
168
  fwd_fee: string;
170
169
  source: string;
171
170
  destination: string;
@@ -185,9 +184,9 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
185
184
  '@type': "msg.dataEncryptedText";
186
185
  text: string;
187
186
  };
187
+ message?: string | undefined;
188
188
  }, {
189
189
  value: string;
190
- message: string;
191
190
  fwd_fee: string;
192
191
  source: string;
193
192
  destination: string;
@@ -207,6 +206,7 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
207
206
  '@type': "msg.dataEncryptedText";
208
207
  text: string;
209
208
  };
209
+ message?: string | undefined;
210
210
  }>]>;
211
211
  out_msgs: z.ZodArray<z.ZodObject<{
212
212
  source: z.ZodString;
@@ -253,10 +253,9 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
253
253
  '@type': "msg.dataEncryptedText";
254
254
  text: string;
255
255
  }>]>;
256
- message: z.ZodString;
256
+ message: z.ZodOptional<z.ZodString>;
257
257
  }, "strip", z.ZodTypeAny, {
258
258
  value: string;
259
- message: string;
260
259
  fwd_fee: string;
261
260
  source: string;
262
261
  destination: string;
@@ -276,9 +275,9 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
276
275
  '@type': "msg.dataEncryptedText";
277
276
  text: string;
278
277
  };
278
+ message?: string | undefined;
279
279
  }, {
280
280
  value: string;
281
- message: string;
282
281
  fwd_fee: string;
283
282
  source: string;
284
283
  destination: string;
@@ -298,6 +297,7 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
298
297
  '@type': "msg.dataEncryptedText";
299
298
  text: string;
300
299
  };
300
+ message?: string | undefined;
301
301
  }>, "many">;
302
302
  }, "strip", z.ZodTypeAny, {
303
303
  data: string;
@@ -311,7 +311,6 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
311
311
  other_fee: string;
312
312
  out_msgs: {
313
313
  value: string;
314
- message: string;
315
314
  fwd_fee: string;
316
315
  source: string;
317
316
  destination: string;
@@ -331,10 +330,10 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
331
330
  '@type': "msg.dataEncryptedText";
332
331
  text: string;
333
332
  };
333
+ message?: string | undefined;
334
334
  }[];
335
335
  in_msg?: {
336
336
  value: string;
337
- message: string;
338
337
  fwd_fee: string;
339
338
  source: string;
340
339
  destination: string;
@@ -354,6 +353,7 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
354
353
  '@type': "msg.dataEncryptedText";
355
354
  text: string;
356
355
  };
356
+ message?: string | undefined;
357
357
  } | undefined;
358
358
  }, {
359
359
  data: string;
@@ -367,7 +367,6 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
367
367
  other_fee: string;
368
368
  out_msgs: {
369
369
  value: string;
370
- message: string;
371
370
  fwd_fee: string;
372
371
  source: string;
373
372
  destination: string;
@@ -387,10 +386,10 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
387
386
  '@type': "msg.dataEncryptedText";
388
387
  text: string;
389
388
  };
389
+ message?: string | undefined;
390
390
  }[];
391
391
  in_msg?: {
392
392
  value: string;
393
- message: string;
394
393
  fwd_fee: string;
395
394
  source: string;
396
395
  destination: string;
@@ -410,6 +409,7 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
410
409
  '@type': "msg.dataEncryptedText";
411
410
  text: string;
412
411
  };
412
+ message?: string | undefined;
413
413
  } | undefined;
414
414
  }>, "many">;
415
415
  export type HTTPTransaction = z.TypeOf<typeof getTransactions>[number];
@@ -476,7 +476,6 @@ export declare class HttpApi {
476
476
  other_fee: string;
477
477
  out_msgs: {
478
478
  value: string;
479
- message: string;
480
479
  fwd_fee: string;
481
480
  source: string;
482
481
  destination: string;
@@ -496,10 +495,10 @@ export declare class HttpApi {
496
495
  '@type': "msg.dataEncryptedText";
497
496
  text: string;
498
497
  };
498
+ message?: string | undefined;
499
499
  }[];
500
500
  in_msg?: {
501
501
  value: string;
502
- message: string;
503
502
  fwd_fee: string;
504
503
  source: string;
505
504
  destination: string;
@@ -519,6 +518,7 @@ export declare class HttpApi {
519
518
  '@type': "msg.dataEncryptedText";
520
519
  text: string;
521
520
  };
521
+ message?: string | undefined;
522
522
  } | undefined;
523
523
  }[]>;
524
524
  getMasterchainInfo(): Promise<{
@@ -579,7 +579,6 @@ export declare class HttpApi {
579
579
  other_fee: string;
580
580
  out_msgs: {
581
581
  value: string;
582
- message: string;
583
582
  fwd_fee: string;
584
583
  source: string;
585
584
  destination: string;
@@ -599,10 +598,10 @@ export declare class HttpApi {
599
598
  '@type': "msg.dataEncryptedText";
600
599
  text: string;
601
600
  };
601
+ message?: string | undefined;
602
602
  }[];
603
603
  in_msg?: {
604
604
  value: string;
605
- message: string;
606
605
  fwd_fee: string;
607
606
  source: string;
608
607
  destination: string;
@@ -622,6 +621,7 @@ export declare class HttpApi {
622
621
  '@type': "msg.dataEncryptedText";
623
622
  text: string;
624
623
  };
624
+ message?: string | undefined;
625
625
  } | undefined;
626
626
  } | null>;
627
627
  callGetMethod(address: Address, method: string, stack: TupleItem[]): Promise<{
@@ -657,7 +657,6 @@ export declare class HttpApi {
657
657
  other_fee: string;
658
658
  out_msgs: {
659
659
  value: string;
660
- message: string;
661
660
  fwd_fee: string;
662
661
  source: string;
663
662
  destination: string;
@@ -677,10 +676,10 @@ export declare class HttpApi {
677
676
  '@type': "msg.dataEncryptedText";
678
677
  text: string;
679
678
  };
679
+ message?: string | undefined;
680
680
  }[];
681
681
  in_msg?: {
682
682
  value: string;
683
- message: string;
684
683
  fwd_fee: string;
685
684
  source: string;
686
685
  destination: string;
@@ -700,6 +699,7 @@ export declare class HttpApi {
700
699
  '@type': "msg.dataEncryptedText";
701
700
  text: string;
702
701
  };
702
+ message?: string | undefined;
703
703
  } | undefined;
704
704
  }>;
705
705
  tryLocateSourceTx(source: Address, destination: Address, created_lt: string): Promise<{
@@ -714,7 +714,6 @@ export declare class HttpApi {
714
714
  other_fee: string;
715
715
  out_msgs: {
716
716
  value: string;
717
- message: string;
718
717
  fwd_fee: string;
719
718
  source: string;
720
719
  destination: string;
@@ -734,10 +733,10 @@ export declare class HttpApi {
734
733
  '@type': "msg.dataEncryptedText";
735
734
  text: string;
736
735
  };
736
+ message?: string | undefined;
737
737
  }[];
738
738
  in_msg?: {
739
739
  value: string;
740
- message: string;
741
740
  fwd_fee: string;
742
741
  source: string;
743
742
  destination: string;
@@ -757,6 +756,7 @@ export declare class HttpApi {
757
756
  '@type': "msg.dataEncryptedText";
758
757
  text: string;
759
758
  };
759
+ message?: string | undefined;
760
760
  } | undefined;
761
761
  }>;
762
762
  private doCall;
@@ -82,7 +82,7 @@ const message = zod_1.z.object({
82
82
  created_lt: zod_1.z.string(),
83
83
  body_hash: zod_1.z.string(),
84
84
  msg_data: messageData,
85
- message: zod_1.z.string()
85
+ message: zod_1.z.string().optional()
86
86
  });
87
87
  const transaction = zod_1.z.object({
88
88
  data: zod_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ton/ton",
3
- "version": "13.11.1",
3
+ "version": "13.11.2",
4
4
  "repository": "https://github.com/ton-org/ton.git",
5
5
  "author": "Whales Corp. <developers@whalescorp.com>",
6
6
  "license": "MIT",