@ton/ton 16.0.0 → 16.2.0
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/README.md +47 -11
- package/dist/client/TonClient.d.ts +6 -6
- package/dist/client/TonClient.js +105 -80
- package/dist/client/TonClient4.d.ts +1 -1
- package/dist/client/TonClient4.js +227 -138
- package/dist/client/api/HttpApi.d.ts +122 -122
- package/dist/client/api/HttpApi.js +103 -72
- package/dist/client/api/TonCache.js +3 -3
- package/dist/config/ConfigParser.d.ts +221 -409
- package/dist/config/ConfigParser.js +407 -89
- package/dist/elector/ElectorContract.js +46 -20
- package/dist/index.d.ts +22 -22
- package/dist/index.js +2 -1
- package/dist/jetton/JettonMaster.js +5 -3
- package/dist/jetton/JettonWallet.js +2 -2
- package/dist/multisig/MultisigOrder.d.ts +2 -2
- package/dist/multisig/MultisigOrder.js +1 -1
- package/dist/multisig/MultisigOrderBuilder.d.ts +2 -2
- package/dist/multisig/MultisigOrderBuilder.js +1 -1
- package/dist/multisig/MultisigWallet.d.ts +3 -3
- package/dist/multisig/MultisigWallet.js +8 -8
- package/dist/utils/createTestClient.d.ts +1 -1
- package/dist/utils/createTestClient.js +6 -2
- package/dist/utils/createTestClient4.d.ts +1 -1
- package/dist/utils/createTestClient4.js +5 -1
- package/dist/utils/fees.d.ts +2 -2
- package/dist/utils/fees.js +21 -6
- package/dist/utils/{randomTestKey.d.ts → testUtils.d.ts} +2 -0
- package/dist/utils/testUtils.js +21 -0
- package/dist/utils/testWallets.d.ts +10 -10
- package/dist/utils/time.js +5 -3
- package/dist/utils/toUrlSafe.js +6 -6
- package/dist/wallets/WalletContractV1R1.d.ts +1 -57
- package/dist/wallets/WalletContractV1R1.js +15 -99
- package/dist/wallets/WalletContractV1R2.d.ts +1 -57
- package/dist/wallets/WalletContractV1R2.js +15 -100
- package/dist/wallets/WalletContractV1R3.d.ts +1 -57
- package/dist/wallets/WalletContractV1R3.js +15 -99
- package/dist/wallets/WalletContractV2R1.d.ts +1 -59
- package/dist/wallets/WalletContractV2R1.js +15 -101
- package/dist/wallets/WalletContractV2R2.d.ts +1 -59
- package/dist/wallets/WalletContractV2R2.js +15 -101
- package/dist/wallets/WalletContractV3R1.d.ts +1 -56
- package/dist/wallets/WalletContractV3R1.js +15 -103
- package/dist/wallets/WalletContractV3R2.d.ts +1 -56
- package/dist/wallets/WalletContractV3R2.js +15 -103
- package/dist/wallets/WalletContractV4.d.ts +2 -2
- package/dist/wallets/WalletContractV5Beta.d.ts +3 -3
- package/dist/wallets/WalletContractV5R1.d.ts +3 -3
- package/dist/wallets/signing/createWalletTransfer.d.ts +11 -3
- package/dist/wallets/signing/createWalletTransfer.js +18 -15
- package/dist/wallets/signing/singer.d.ts +2 -1
- package/dist/wallets/signing/singer.js +11 -5
- package/dist/wallets/v1/r1.d.ts +59 -0
- package/dist/wallets/v1/r1.js +103 -0
- package/dist/wallets/v1/r2.d.ts +59 -0
- package/dist/wallets/v1/r2.js +104 -0
- package/dist/wallets/v1/r3.d.ts +59 -0
- package/dist/wallets/v1/r3.js +103 -0
- package/dist/wallets/v2/r1.d.ts +61 -0
- package/dist/wallets/v2/r1.js +107 -0
- package/dist/wallets/v2/r2.d.ts +61 -0
- package/dist/wallets/v2/r2.js +107 -0
- package/dist/wallets/v3/r1.d.ts +58 -0
- package/dist/wallets/v3/r1.js +109 -0
- package/dist/wallets/v3/r2.d.ts +58 -0
- package/dist/wallets/v3/r2.js +109 -0
- package/dist/wallets/v4/WalletContractV4.d.ts +4 -2
- package/dist/wallets/v4/WalletContractV4.js +36 -32
- package/dist/wallets/v4/WalletContractV4Actions.d.ts +4 -4
- package/dist/wallets/v4/WalletContractV4Actions.js +10 -10
- package/dist/wallets/v5beta/WalletContractV5Beta.d.ts +7 -5
- package/dist/wallets/v5beta/WalletContractV5Beta.js +44 -28
- package/dist/wallets/v5beta/WalletV5BetaActions.d.ts +1 -1
- package/dist/wallets/v5beta/WalletV5BetaActions.js +25 -18
- package/dist/wallets/v5beta/WalletV5BetaWalletId.d.ts +2 -2
- package/dist/wallets/v5beta/WalletV5BetaWalletId.js +6 -4
- package/dist/wallets/v5beta/WalletV5OutActions.d.ts +4 -4
- package/dist/wallets/v5beta/WalletV5OutActions.js +3 -1
- package/dist/wallets/v5r1/WalletContractV5R1.d.ts +10 -6
- package/dist/wallets/v5r1/WalletContractV5R1.js +55 -36
- package/dist/wallets/v5r1/WalletV5R1Actions.d.ts +3 -3
- package/dist/wallets/v5r1/WalletV5R1Actions.js +32 -25
- package/dist/wallets/v5r1/WalletV5R1WalletId.d.ts +2 -2
- package/dist/wallets/v5r1/WalletV5R1WalletId.js +16 -10
- package/package.json +62 -65
- package/dist/client/TonClient.spec.d.ts +0 -1
- package/dist/client/TonClient.spec.js +0 -59
- package/dist/client/TonClient4.spec.d.ts +0 -1
- package/dist/client/TonClient4.spec.js +0 -67
- package/dist/config/ConfigParser.spec.d.ts +0 -8
- package/dist/config/ConfigParser.spec.js +0 -137
- package/dist/elector/ElectorContract.spec.d.ts +0 -8
- package/dist/elector/ElectorContract.spec.js +0 -104
- package/dist/jetton/JettonMaster.spec.d.ts +0 -8
- package/dist/jetton/JettonMaster.spec.js +0 -27
- package/dist/multisig/MultisigOrder.spec.d.ts +0 -1
- package/dist/multisig/MultisigOrder.spec.js +0 -139
- package/dist/multisig/MultisigWallet.spec.d.ts +0 -1
- package/dist/multisig/MultisigWallet.spec.js +0 -248
- package/dist/utils/fees.spec.d.ts +0 -1
- package/dist/utils/fees.spec.js +0 -83
- package/dist/utils/randomTestKey.js +0 -23
- package/dist/wallets/WalletContractV1R1.spec.d.ts +0 -8
- package/dist/wallets/WalletContractV1R1.spec.js +0 -67
- package/dist/wallets/WalletContractV1R2.spec.d.ts +0 -8
- package/dist/wallets/WalletContractV1R2.spec.js +0 -67
- package/dist/wallets/WalletContractV1R3.spec.d.ts +0 -8
- package/dist/wallets/WalletContractV1R3.spec.js +0 -44
- package/dist/wallets/WalletContractV2R1.spec.d.ts +0 -8
- package/dist/wallets/WalletContractV2R1.spec.js +0 -67
- package/dist/wallets/WalletContractV2R2.spec.d.ts +0 -8
- package/dist/wallets/WalletContractV2R2.spec.js +0 -67
- package/dist/wallets/WalletContractV3R1.spec.d.ts +0 -8
- package/dist/wallets/WalletContractV3R1.spec.js +0 -67
- package/dist/wallets/WalletContractV3R2.spec.d.ts +0 -8
- package/dist/wallets/WalletContractV3R2.spec.js +0 -67
- package/dist/wallets/v4/WalletContractV4.spec.d.ts +0 -8
- package/dist/wallets/v4/WalletContractV4.spec.js +0 -157
- package/dist/wallets/v4/WalletContractV4Actions.spec.d.ts +0 -1
- package/dist/wallets/v4/WalletContractV4Actions.spec.js +0 -74
- package/dist/wallets/v5beta/WalletContractV5Beta.spec.d.ts +0 -8
- package/dist/wallets/v5beta/WalletContractV5Beta.spec.js +0 -317
- package/dist/wallets/v5beta/WalletV5BetaActions.spec.d.ts +0 -1
- package/dist/wallets/v5beta/WalletV5BetaActions.spec.js +0 -166
- package/dist/wallets/v5beta/WalletV5BetaWalletId.spec.d.ts +0 -1
- package/dist/wallets/v5beta/WalletV5BetaWalletId.spec.js +0 -68
- package/dist/wallets/v5r1/WalletContractV5R1.spec.d.ts +0 -8
- package/dist/wallets/v5r1/WalletContractV5R1.spec.js +0 -340
- package/dist/wallets/v5r1/WalletV5R1Actions.spec.d.ts +0 -1
- package/dist/wallets/v5r1/WalletV5R1Actions.spec.js +0 -262
- package/dist/wallets/v5r1/WalletV5R1WalletId.spec.d.ts +0 -1
- package/dist/wallets/v5r1/WalletV5R1WalletId.spec.js +0 -103
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { TonCache } from
|
|
9
|
-
import { AxiosAdapter } from
|
|
10
|
-
import { Address, Cell, TupleItem } from
|
|
11
|
-
import { z } from
|
|
8
|
+
import { TonCache } from "./TonCache";
|
|
9
|
+
import { AxiosAdapter } from "axios";
|
|
10
|
+
import { Address, Cell, TupleItem } from "@ton/core";
|
|
11
|
+
import { z } from "zod";
|
|
12
12
|
declare const message: z.ZodObject<{
|
|
13
13
|
source: z.ZodString;
|
|
14
14
|
destination: z.ZodString;
|
|
@@ -18,40 +18,40 @@ declare const message: z.ZodObject<{
|
|
|
18
18
|
created_lt: z.ZodString;
|
|
19
19
|
body_hash: z.ZodString;
|
|
20
20
|
msg_data: z.ZodUnion<[z.ZodObject<{
|
|
21
|
-
|
|
21
|
+
"@type": z.ZodLiteral<"msg.dataRaw">;
|
|
22
22
|
body: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
|
|
24
|
+
"@type": "msg.dataRaw";
|
|
25
25
|
body: string;
|
|
26
26
|
}, {
|
|
27
|
-
|
|
27
|
+
"@type": "msg.dataRaw";
|
|
28
28
|
body: string;
|
|
29
29
|
}>, z.ZodObject<{
|
|
30
|
-
|
|
30
|
+
"@type": z.ZodLiteral<"msg.dataText">;
|
|
31
31
|
text: z.ZodString;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
|
|
33
|
+
"@type": "msg.dataText";
|
|
34
34
|
text: string;
|
|
35
35
|
}, {
|
|
36
|
-
|
|
36
|
+
"@type": "msg.dataText";
|
|
37
37
|
text: string;
|
|
38
38
|
}>, z.ZodObject<{
|
|
39
|
-
|
|
39
|
+
"@type": z.ZodLiteral<"msg.dataDecryptedText">;
|
|
40
40
|
text: z.ZodString;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
|
|
42
|
+
"@type": "msg.dataDecryptedText";
|
|
43
43
|
text: string;
|
|
44
44
|
}, {
|
|
45
|
-
|
|
45
|
+
"@type": "msg.dataDecryptedText";
|
|
46
46
|
text: string;
|
|
47
47
|
}>, z.ZodObject<{
|
|
48
|
-
|
|
48
|
+
"@type": z.ZodLiteral<"msg.dataEncryptedText">;
|
|
49
49
|
text: z.ZodString;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
|
|
51
|
+
"@type": "msg.dataEncryptedText";
|
|
52
52
|
text: string;
|
|
53
53
|
}, {
|
|
54
|
-
|
|
54
|
+
"@type": "msg.dataEncryptedText";
|
|
55
55
|
text: string;
|
|
56
56
|
}>]>;
|
|
57
57
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -64,16 +64,16 @@ declare const message: z.ZodObject<{
|
|
|
64
64
|
created_lt: string;
|
|
65
65
|
body_hash: string;
|
|
66
66
|
msg_data: {
|
|
67
|
-
|
|
67
|
+
"@type": "msg.dataRaw";
|
|
68
68
|
body: string;
|
|
69
69
|
} | {
|
|
70
|
-
|
|
70
|
+
"@type": "msg.dataText";
|
|
71
71
|
text: string;
|
|
72
72
|
} | {
|
|
73
|
-
|
|
73
|
+
"@type": "msg.dataDecryptedText";
|
|
74
74
|
text: string;
|
|
75
75
|
} | {
|
|
76
|
-
|
|
76
|
+
"@type": "msg.dataEncryptedText";
|
|
77
77
|
text: string;
|
|
78
78
|
};
|
|
79
79
|
message?: string | undefined;
|
|
@@ -86,16 +86,16 @@ declare const message: z.ZodObject<{
|
|
|
86
86
|
created_lt: string;
|
|
87
87
|
body_hash: string;
|
|
88
88
|
msg_data: {
|
|
89
|
-
|
|
89
|
+
"@type": "msg.dataRaw";
|
|
90
90
|
body: string;
|
|
91
91
|
} | {
|
|
92
|
-
|
|
92
|
+
"@type": "msg.dataText";
|
|
93
93
|
text: string;
|
|
94
94
|
} | {
|
|
95
|
-
|
|
95
|
+
"@type": "msg.dataDecryptedText";
|
|
96
96
|
text: string;
|
|
97
97
|
} | {
|
|
98
|
-
|
|
98
|
+
"@type": "msg.dataEncryptedText";
|
|
99
99
|
text: string;
|
|
100
100
|
};
|
|
101
101
|
message?: string | undefined;
|
|
@@ -125,40 +125,40 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
125
125
|
created_lt: z.ZodString;
|
|
126
126
|
body_hash: z.ZodString;
|
|
127
127
|
msg_data: z.ZodUnion<[z.ZodObject<{
|
|
128
|
-
|
|
128
|
+
"@type": z.ZodLiteral<"msg.dataRaw">;
|
|
129
129
|
body: z.ZodString;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
|
|
131
|
+
"@type": "msg.dataRaw";
|
|
132
132
|
body: string;
|
|
133
133
|
}, {
|
|
134
|
-
|
|
134
|
+
"@type": "msg.dataRaw";
|
|
135
135
|
body: string;
|
|
136
136
|
}>, z.ZodObject<{
|
|
137
|
-
|
|
137
|
+
"@type": z.ZodLiteral<"msg.dataText">;
|
|
138
138
|
text: z.ZodString;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
|
|
140
|
+
"@type": "msg.dataText";
|
|
141
141
|
text: string;
|
|
142
142
|
}, {
|
|
143
|
-
|
|
143
|
+
"@type": "msg.dataText";
|
|
144
144
|
text: string;
|
|
145
145
|
}>, z.ZodObject<{
|
|
146
|
-
|
|
146
|
+
"@type": z.ZodLiteral<"msg.dataDecryptedText">;
|
|
147
147
|
text: z.ZodString;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
|
|
149
|
+
"@type": "msg.dataDecryptedText";
|
|
150
150
|
text: string;
|
|
151
151
|
}, {
|
|
152
|
-
|
|
152
|
+
"@type": "msg.dataDecryptedText";
|
|
153
153
|
text: string;
|
|
154
154
|
}>, z.ZodObject<{
|
|
155
|
-
|
|
155
|
+
"@type": z.ZodLiteral<"msg.dataEncryptedText">;
|
|
156
156
|
text: z.ZodString;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
|
|
158
|
+
"@type": "msg.dataEncryptedText";
|
|
159
159
|
text: string;
|
|
160
160
|
}, {
|
|
161
|
-
|
|
161
|
+
"@type": "msg.dataEncryptedText";
|
|
162
162
|
text: string;
|
|
163
163
|
}>]>;
|
|
164
164
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -171,16 +171,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
171
171
|
created_lt: string;
|
|
172
172
|
body_hash: string;
|
|
173
173
|
msg_data: {
|
|
174
|
-
|
|
174
|
+
"@type": "msg.dataRaw";
|
|
175
175
|
body: string;
|
|
176
176
|
} | {
|
|
177
|
-
|
|
177
|
+
"@type": "msg.dataText";
|
|
178
178
|
text: string;
|
|
179
179
|
} | {
|
|
180
|
-
|
|
180
|
+
"@type": "msg.dataDecryptedText";
|
|
181
181
|
text: string;
|
|
182
182
|
} | {
|
|
183
|
-
|
|
183
|
+
"@type": "msg.dataEncryptedText";
|
|
184
184
|
text: string;
|
|
185
185
|
};
|
|
186
186
|
message?: string | undefined;
|
|
@@ -193,16 +193,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
193
193
|
created_lt: string;
|
|
194
194
|
body_hash: string;
|
|
195
195
|
msg_data: {
|
|
196
|
-
|
|
196
|
+
"@type": "msg.dataRaw";
|
|
197
197
|
body: string;
|
|
198
198
|
} | {
|
|
199
|
-
|
|
199
|
+
"@type": "msg.dataText";
|
|
200
200
|
text: string;
|
|
201
201
|
} | {
|
|
202
|
-
|
|
202
|
+
"@type": "msg.dataDecryptedText";
|
|
203
203
|
text: string;
|
|
204
204
|
} | {
|
|
205
|
-
|
|
205
|
+
"@type": "msg.dataEncryptedText";
|
|
206
206
|
text: string;
|
|
207
207
|
};
|
|
208
208
|
message?: string | undefined;
|
|
@@ -216,40 +216,40 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
216
216
|
created_lt: z.ZodString;
|
|
217
217
|
body_hash: z.ZodString;
|
|
218
218
|
msg_data: z.ZodUnion<[z.ZodObject<{
|
|
219
|
-
|
|
219
|
+
"@type": z.ZodLiteral<"msg.dataRaw">;
|
|
220
220
|
body: z.ZodString;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
|
|
222
|
+
"@type": "msg.dataRaw";
|
|
223
223
|
body: string;
|
|
224
224
|
}, {
|
|
225
|
-
|
|
225
|
+
"@type": "msg.dataRaw";
|
|
226
226
|
body: string;
|
|
227
227
|
}>, z.ZodObject<{
|
|
228
|
-
|
|
228
|
+
"@type": z.ZodLiteral<"msg.dataText">;
|
|
229
229
|
text: z.ZodString;
|
|
230
230
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
-
|
|
231
|
+
"@type": "msg.dataText";
|
|
232
232
|
text: string;
|
|
233
233
|
}, {
|
|
234
|
-
|
|
234
|
+
"@type": "msg.dataText";
|
|
235
235
|
text: string;
|
|
236
236
|
}>, z.ZodObject<{
|
|
237
|
-
|
|
237
|
+
"@type": z.ZodLiteral<"msg.dataDecryptedText">;
|
|
238
238
|
text: z.ZodString;
|
|
239
239
|
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
|
|
240
|
+
"@type": "msg.dataDecryptedText";
|
|
241
241
|
text: string;
|
|
242
242
|
}, {
|
|
243
|
-
|
|
243
|
+
"@type": "msg.dataDecryptedText";
|
|
244
244
|
text: string;
|
|
245
245
|
}>, z.ZodObject<{
|
|
246
|
-
|
|
246
|
+
"@type": z.ZodLiteral<"msg.dataEncryptedText">;
|
|
247
247
|
text: z.ZodString;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
|
-
|
|
249
|
+
"@type": "msg.dataEncryptedText";
|
|
250
250
|
text: string;
|
|
251
251
|
}, {
|
|
252
|
-
|
|
252
|
+
"@type": "msg.dataEncryptedText";
|
|
253
253
|
text: string;
|
|
254
254
|
}>]>;
|
|
255
255
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -262,16 +262,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
262
262
|
created_lt: string;
|
|
263
263
|
body_hash: string;
|
|
264
264
|
msg_data: {
|
|
265
|
-
|
|
265
|
+
"@type": "msg.dataRaw";
|
|
266
266
|
body: string;
|
|
267
267
|
} | {
|
|
268
|
-
|
|
268
|
+
"@type": "msg.dataText";
|
|
269
269
|
text: string;
|
|
270
270
|
} | {
|
|
271
|
-
|
|
271
|
+
"@type": "msg.dataDecryptedText";
|
|
272
272
|
text: string;
|
|
273
273
|
} | {
|
|
274
|
-
|
|
274
|
+
"@type": "msg.dataEncryptedText";
|
|
275
275
|
text: string;
|
|
276
276
|
};
|
|
277
277
|
message?: string | undefined;
|
|
@@ -284,16 +284,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
284
284
|
created_lt: string;
|
|
285
285
|
body_hash: string;
|
|
286
286
|
msg_data: {
|
|
287
|
-
|
|
287
|
+
"@type": "msg.dataRaw";
|
|
288
288
|
body: string;
|
|
289
289
|
} | {
|
|
290
|
-
|
|
290
|
+
"@type": "msg.dataText";
|
|
291
291
|
text: string;
|
|
292
292
|
} | {
|
|
293
|
-
|
|
293
|
+
"@type": "msg.dataDecryptedText";
|
|
294
294
|
text: string;
|
|
295
295
|
} | {
|
|
296
|
-
|
|
296
|
+
"@type": "msg.dataEncryptedText";
|
|
297
297
|
text: string;
|
|
298
298
|
};
|
|
299
299
|
message?: string | undefined;
|
|
@@ -317,16 +317,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
317
317
|
created_lt: string;
|
|
318
318
|
body_hash: string;
|
|
319
319
|
msg_data: {
|
|
320
|
-
|
|
320
|
+
"@type": "msg.dataRaw";
|
|
321
321
|
body: string;
|
|
322
322
|
} | {
|
|
323
|
-
|
|
323
|
+
"@type": "msg.dataText";
|
|
324
324
|
text: string;
|
|
325
325
|
} | {
|
|
326
|
-
|
|
326
|
+
"@type": "msg.dataDecryptedText";
|
|
327
327
|
text: string;
|
|
328
328
|
} | {
|
|
329
|
-
|
|
329
|
+
"@type": "msg.dataEncryptedText";
|
|
330
330
|
text: string;
|
|
331
331
|
};
|
|
332
332
|
message?: string | undefined;
|
|
@@ -340,16 +340,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
340
340
|
created_lt: string;
|
|
341
341
|
body_hash: string;
|
|
342
342
|
msg_data: {
|
|
343
|
-
|
|
343
|
+
"@type": "msg.dataRaw";
|
|
344
344
|
body: string;
|
|
345
345
|
} | {
|
|
346
|
-
|
|
346
|
+
"@type": "msg.dataText";
|
|
347
347
|
text: string;
|
|
348
348
|
} | {
|
|
349
|
-
|
|
349
|
+
"@type": "msg.dataDecryptedText";
|
|
350
350
|
text: string;
|
|
351
351
|
} | {
|
|
352
|
-
|
|
352
|
+
"@type": "msg.dataEncryptedText";
|
|
353
353
|
text: string;
|
|
354
354
|
};
|
|
355
355
|
message?: string | undefined;
|
|
@@ -373,16 +373,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
373
373
|
created_lt: string;
|
|
374
374
|
body_hash: string;
|
|
375
375
|
msg_data: {
|
|
376
|
-
|
|
376
|
+
"@type": "msg.dataRaw";
|
|
377
377
|
body: string;
|
|
378
378
|
} | {
|
|
379
|
-
|
|
379
|
+
"@type": "msg.dataText";
|
|
380
380
|
text: string;
|
|
381
381
|
} | {
|
|
382
|
-
|
|
382
|
+
"@type": "msg.dataDecryptedText";
|
|
383
383
|
text: string;
|
|
384
384
|
} | {
|
|
385
|
-
|
|
385
|
+
"@type": "msg.dataEncryptedText";
|
|
386
386
|
text: string;
|
|
387
387
|
};
|
|
388
388
|
message?: string | undefined;
|
|
@@ -396,16 +396,16 @@ declare const getTransactions: z.ZodArray<z.ZodObject<{
|
|
|
396
396
|
created_lt: string;
|
|
397
397
|
body_hash: string;
|
|
398
398
|
msg_data: {
|
|
399
|
-
|
|
399
|
+
"@type": "msg.dataRaw";
|
|
400
400
|
body: string;
|
|
401
401
|
} | {
|
|
402
|
-
|
|
402
|
+
"@type": "msg.dataText";
|
|
403
403
|
text: string;
|
|
404
404
|
} | {
|
|
405
|
-
|
|
405
|
+
"@type": "msg.dataDecryptedText";
|
|
406
406
|
text: string;
|
|
407
407
|
} | {
|
|
408
|
-
|
|
408
|
+
"@type": "msg.dataEncryptedText";
|
|
409
409
|
text: string;
|
|
410
410
|
};
|
|
411
411
|
message?: string | undefined;
|
|
@@ -442,12 +442,12 @@ export declare class HttpApi {
|
|
|
442
442
|
balance: string | number;
|
|
443
443
|
state: "active" | "uninitialized" | "frozen";
|
|
444
444
|
last_transaction_id: {
|
|
445
|
-
|
|
445
|
+
"@type": "internal.transactionId";
|
|
446
446
|
lt: string;
|
|
447
447
|
hash: string;
|
|
448
448
|
};
|
|
449
449
|
block_id: {
|
|
450
|
-
|
|
450
|
+
"@type": "ton.blockIdExt";
|
|
451
451
|
workchain: number;
|
|
452
452
|
shard: string;
|
|
453
453
|
seqno: number;
|
|
@@ -456,7 +456,7 @@ export declare class HttpApi {
|
|
|
456
456
|
};
|
|
457
457
|
sync_utime: number;
|
|
458
458
|
extra_currencies?: {
|
|
459
|
-
|
|
459
|
+
"@type": "extraCurrency";
|
|
460
460
|
id: number;
|
|
461
461
|
amount: string;
|
|
462
462
|
}[] | undefined;
|
|
@@ -487,16 +487,16 @@ export declare class HttpApi {
|
|
|
487
487
|
created_lt: string;
|
|
488
488
|
body_hash: string;
|
|
489
489
|
msg_data: {
|
|
490
|
-
|
|
490
|
+
"@type": "msg.dataRaw";
|
|
491
491
|
body: string;
|
|
492
492
|
} | {
|
|
493
|
-
|
|
493
|
+
"@type": "msg.dataText";
|
|
494
494
|
text: string;
|
|
495
495
|
} | {
|
|
496
|
-
|
|
496
|
+
"@type": "msg.dataDecryptedText";
|
|
497
497
|
text: string;
|
|
498
498
|
} | {
|
|
499
|
-
|
|
499
|
+
"@type": "msg.dataEncryptedText";
|
|
500
500
|
text: string;
|
|
501
501
|
};
|
|
502
502
|
message?: string | undefined;
|
|
@@ -510,16 +510,16 @@ export declare class HttpApi {
|
|
|
510
510
|
created_lt: string;
|
|
511
511
|
body_hash: string;
|
|
512
512
|
msg_data: {
|
|
513
|
-
|
|
513
|
+
"@type": "msg.dataRaw";
|
|
514
514
|
body: string;
|
|
515
515
|
} | {
|
|
516
|
-
|
|
516
|
+
"@type": "msg.dataText";
|
|
517
517
|
text: string;
|
|
518
518
|
} | {
|
|
519
|
-
|
|
519
|
+
"@type": "msg.dataDecryptedText";
|
|
520
520
|
text: string;
|
|
521
521
|
} | {
|
|
522
|
-
|
|
522
|
+
"@type": "msg.dataEncryptedText";
|
|
523
523
|
text: string;
|
|
524
524
|
};
|
|
525
525
|
message?: string | undefined;
|
|
@@ -528,7 +528,7 @@ export declare class HttpApi {
|
|
|
528
528
|
getMasterchainInfo(): Promise<{
|
|
529
529
|
state_root_hash: string;
|
|
530
530
|
last: {
|
|
531
|
-
|
|
531
|
+
"@type": "ton.blockIdExt";
|
|
532
532
|
workchain: number;
|
|
533
533
|
shard: string;
|
|
534
534
|
seqno: number;
|
|
@@ -536,7 +536,7 @@ export declare class HttpApi {
|
|
|
536
536
|
file_hash: string;
|
|
537
537
|
};
|
|
538
538
|
init: {
|
|
539
|
-
|
|
539
|
+
"@type": "ton.blockIdExt";
|
|
540
540
|
workchain: number;
|
|
541
541
|
shard: string;
|
|
542
542
|
seqno: number;
|
|
@@ -545,7 +545,7 @@ export declare class HttpApi {
|
|
|
545
545
|
};
|
|
546
546
|
}>;
|
|
547
547
|
getShards(seqno: number): Promise<{
|
|
548
|
-
|
|
548
|
+
"@type": "ton.blockIdExt";
|
|
549
549
|
workchain: number;
|
|
550
550
|
shard: string;
|
|
551
551
|
seqno: number;
|
|
@@ -554,7 +554,7 @@ export declare class HttpApi {
|
|
|
554
554
|
}[]>;
|
|
555
555
|
getBlockTransactions(workchain: number, seqno: number, shard: string): Promise<{
|
|
556
556
|
id: {
|
|
557
|
-
|
|
557
|
+
"@type": "ton.blockIdExt";
|
|
558
558
|
workchain: number;
|
|
559
559
|
shard: string;
|
|
560
560
|
seqno: number;
|
|
@@ -564,7 +564,7 @@ export declare class HttpApi {
|
|
|
564
564
|
req_count: number;
|
|
565
565
|
incomplete: boolean;
|
|
566
566
|
transactions: {
|
|
567
|
-
|
|
567
|
+
"@type": "blocks.shortTxId";
|
|
568
568
|
lt: string;
|
|
569
569
|
hash: string;
|
|
570
570
|
mode: number;
|
|
@@ -590,16 +590,16 @@ export declare class HttpApi {
|
|
|
590
590
|
created_lt: string;
|
|
591
591
|
body_hash: string;
|
|
592
592
|
msg_data: {
|
|
593
|
-
|
|
593
|
+
"@type": "msg.dataRaw";
|
|
594
594
|
body: string;
|
|
595
595
|
} | {
|
|
596
|
-
|
|
596
|
+
"@type": "msg.dataText";
|
|
597
597
|
text: string;
|
|
598
598
|
} | {
|
|
599
|
-
|
|
599
|
+
"@type": "msg.dataDecryptedText";
|
|
600
600
|
text: string;
|
|
601
601
|
} | {
|
|
602
|
-
|
|
602
|
+
"@type": "msg.dataEncryptedText";
|
|
603
603
|
text: string;
|
|
604
604
|
};
|
|
605
605
|
message?: string | undefined;
|
|
@@ -613,16 +613,16 @@ export declare class HttpApi {
|
|
|
613
613
|
created_lt: string;
|
|
614
614
|
body_hash: string;
|
|
615
615
|
msg_data: {
|
|
616
|
-
|
|
616
|
+
"@type": "msg.dataRaw";
|
|
617
617
|
body: string;
|
|
618
618
|
} | {
|
|
619
|
-
|
|
619
|
+
"@type": "msg.dataText";
|
|
620
620
|
text: string;
|
|
621
621
|
} | {
|
|
622
|
-
|
|
622
|
+
"@type": "msg.dataDecryptedText";
|
|
623
623
|
text: string;
|
|
624
624
|
} | {
|
|
625
|
-
|
|
625
|
+
"@type": "msg.dataEncryptedText";
|
|
626
626
|
text: string;
|
|
627
627
|
};
|
|
628
628
|
message?: string | undefined;
|
|
@@ -640,9 +640,9 @@ export declare class HttpApi {
|
|
|
640
640
|
initData: Cell | null;
|
|
641
641
|
ignoreSignature: boolean;
|
|
642
642
|
}): Promise<{
|
|
643
|
-
|
|
643
|
+
"@type": "query.fees";
|
|
644
644
|
source_fees: {
|
|
645
|
-
|
|
645
|
+
"@type": "fees";
|
|
646
646
|
in_fwd_fee: number;
|
|
647
647
|
storage_fee: number;
|
|
648
648
|
gas_fee: number;
|
|
@@ -668,16 +668,16 @@ export declare class HttpApi {
|
|
|
668
668
|
created_lt: string;
|
|
669
669
|
body_hash: string;
|
|
670
670
|
msg_data: {
|
|
671
|
-
|
|
671
|
+
"@type": "msg.dataRaw";
|
|
672
672
|
body: string;
|
|
673
673
|
} | {
|
|
674
|
-
|
|
674
|
+
"@type": "msg.dataText";
|
|
675
675
|
text: string;
|
|
676
676
|
} | {
|
|
677
|
-
|
|
677
|
+
"@type": "msg.dataDecryptedText";
|
|
678
678
|
text: string;
|
|
679
679
|
} | {
|
|
680
|
-
|
|
680
|
+
"@type": "msg.dataEncryptedText";
|
|
681
681
|
text: string;
|
|
682
682
|
};
|
|
683
683
|
message?: string | undefined;
|
|
@@ -691,16 +691,16 @@ export declare class HttpApi {
|
|
|
691
691
|
created_lt: string;
|
|
692
692
|
body_hash: string;
|
|
693
693
|
msg_data: {
|
|
694
|
-
|
|
694
|
+
"@type": "msg.dataRaw";
|
|
695
695
|
body: string;
|
|
696
696
|
} | {
|
|
697
|
-
|
|
697
|
+
"@type": "msg.dataText";
|
|
698
698
|
text: string;
|
|
699
699
|
} | {
|
|
700
|
-
|
|
700
|
+
"@type": "msg.dataDecryptedText";
|
|
701
701
|
text: string;
|
|
702
702
|
} | {
|
|
703
|
-
|
|
703
|
+
"@type": "msg.dataEncryptedText";
|
|
704
704
|
text: string;
|
|
705
705
|
};
|
|
706
706
|
message?: string | undefined;
|
|
@@ -725,16 +725,16 @@ export declare class HttpApi {
|
|
|
725
725
|
created_lt: string;
|
|
726
726
|
body_hash: string;
|
|
727
727
|
msg_data: {
|
|
728
|
-
|
|
728
|
+
"@type": "msg.dataRaw";
|
|
729
729
|
body: string;
|
|
730
730
|
} | {
|
|
731
|
-
|
|
731
|
+
"@type": "msg.dataText";
|
|
732
732
|
text: string;
|
|
733
733
|
} | {
|
|
734
|
-
|
|
734
|
+
"@type": "msg.dataDecryptedText";
|
|
735
735
|
text: string;
|
|
736
736
|
} | {
|
|
737
|
-
|
|
737
|
+
"@type": "msg.dataEncryptedText";
|
|
738
738
|
text: string;
|
|
739
739
|
};
|
|
740
740
|
message?: string | undefined;
|
|
@@ -748,16 +748,16 @@ export declare class HttpApi {
|
|
|
748
748
|
created_lt: string;
|
|
749
749
|
body_hash: string;
|
|
750
750
|
msg_data: {
|
|
751
|
-
|
|
751
|
+
"@type": "msg.dataRaw";
|
|
752
752
|
body: string;
|
|
753
753
|
} | {
|
|
754
|
-
|
|
754
|
+
"@type": "msg.dataText";
|
|
755
755
|
text: string;
|
|
756
756
|
} | {
|
|
757
|
-
|
|
757
|
+
"@type": "msg.dataDecryptedText";
|
|
758
758
|
text: string;
|
|
759
759
|
} | {
|
|
760
|
-
|
|
760
|
+
"@type": "msg.dataEncryptedText";
|
|
761
761
|
text: string;
|
|
762
762
|
};
|
|
763
763
|
message?: string | undefined;
|