@gnolang/tm2-js-client 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/proto/google/protobuf/any.d.ts +2 -14
- package/bin/proto/tm2/tx.d.ts +8 -476
- package/bin/provider/endpoints.d.ts +2 -1
- package/bin/provider/endpoints.js +1 -0
- package/bin/provider/jsonrpc/jsonrpc.d.ts +2 -1
- package/bin/provider/jsonrpc/jsonrpc.js +14 -2
- package/bin/provider/jsonrpc/jsonrpc.test.js +2 -2
- package/bin/provider/types/common.d.ts +7 -0
- package/bin/provider/utility/provider.utility.js +5 -3
- package/bin/provider/websocket/ws.d.ts +2 -2
- package/bin/provider/websocket/ws.js +15 -2
- package/bin/provider/websocket/ws.test.js +2 -2
- package/bin/services/rest/restService.js +2 -2
- package/bin/wallet/key/key.js +2 -2
- package/bin/wallet/key/key.test.js +2 -2
- package/bin/wallet/ledger/ledger.js +2 -2
- package/bin/wallet/utility/utility.js +4 -4
- package/bin/wallet/wallet.js +2 -2
- package/bin/wallet/wallet.test.js +2 -2
- package/package.json +20 -16
|
@@ -123,20 +123,8 @@ export declare const Any: {
|
|
|
123
123
|
decode(input: _m0.Reader | Uint8Array, length?: number): Any;
|
|
124
124
|
fromJSON(object: any): Any;
|
|
125
125
|
toJSON(message: Any): unknown;
|
|
126
|
-
create<I extends
|
|
127
|
-
|
|
128
|
-
value?: Uint8Array | undefined;
|
|
129
|
-
} & {
|
|
130
|
-
typeUrl?: string | undefined;
|
|
131
|
-
value?: Uint8Array | undefined;
|
|
132
|
-
} & { [K in Exclude<keyof I, keyof Any>]: never; }>(base?: I): Any;
|
|
133
|
-
fromPartial<I_1 extends {
|
|
134
|
-
typeUrl?: string | undefined;
|
|
135
|
-
value?: Uint8Array | undefined;
|
|
136
|
-
} & {
|
|
137
|
-
typeUrl?: string | undefined;
|
|
138
|
-
value?: Uint8Array | undefined;
|
|
139
|
-
} & { [K_1 in Exclude<keyof I_1, keyof Any>]: never; }>(object: I_1): Any;
|
|
126
|
+
create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any;
|
|
127
|
+
fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any;
|
|
140
128
|
};
|
|
141
129
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
142
130
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
package/bin/proto/tm2/tx.d.ts
CHANGED
|
@@ -32,500 +32,32 @@ export declare const Tx: {
|
|
|
32
32
|
decode(input: _m0.Reader | Uint8Array, length?: number): Tx;
|
|
33
33
|
fromJSON(object: any): Tx;
|
|
34
34
|
toJSON(message: Tx): unknown;
|
|
35
|
-
create<I extends
|
|
36
|
-
|
|
37
|
-
typeUrl?: string | undefined;
|
|
38
|
-
value?: Uint8Array | undefined;
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
fee?: {
|
|
41
|
-
gasWanted?: string | number | Long | undefined;
|
|
42
|
-
gasFee?: string | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
signatures?: {
|
|
45
|
-
pubKey?: {
|
|
46
|
-
typeUrl?: string | undefined;
|
|
47
|
-
value?: Uint8Array | undefined;
|
|
48
|
-
} | undefined;
|
|
49
|
-
signature?: Uint8Array | undefined;
|
|
50
|
-
}[] | undefined;
|
|
51
|
-
memo?: string | undefined;
|
|
52
|
-
} & {
|
|
53
|
-
messages?: ({
|
|
54
|
-
typeUrl?: string | undefined;
|
|
55
|
-
value?: Uint8Array | undefined;
|
|
56
|
-
}[] & ({
|
|
57
|
-
typeUrl?: string | undefined;
|
|
58
|
-
value?: Uint8Array | undefined;
|
|
59
|
-
} & {
|
|
60
|
-
typeUrl?: string | undefined;
|
|
61
|
-
value?: Uint8Array | undefined;
|
|
62
|
-
} & { [K in Exclude<keyof I["messages"][number], keyof Any>]: never; })[] & { [K_1 in Exclude<keyof I["messages"], keyof {
|
|
63
|
-
typeUrl?: string | undefined;
|
|
64
|
-
value?: Uint8Array | undefined;
|
|
65
|
-
}[]>]: never; }) | undefined;
|
|
66
|
-
fee?: ({
|
|
67
|
-
gasWanted?: string | number | Long | undefined;
|
|
68
|
-
gasFee?: string | undefined;
|
|
69
|
-
} & {
|
|
70
|
-
gasWanted?: string | number | (Long & {
|
|
71
|
-
high: number;
|
|
72
|
-
low: number;
|
|
73
|
-
unsigned: boolean;
|
|
74
|
-
add: (addend: string | number | Long) => Long;
|
|
75
|
-
and: (other: string | number | Long) => Long;
|
|
76
|
-
compare: (other: string | number | Long) => number;
|
|
77
|
-
comp: (other: string | number | Long) => number;
|
|
78
|
-
divide: (divisor: string | number | Long) => Long;
|
|
79
|
-
div: (divisor: string | number | Long) => Long;
|
|
80
|
-
equals: (other: string | number | Long) => boolean;
|
|
81
|
-
eq: (other: string | number | Long) => boolean;
|
|
82
|
-
getHighBits: () => number;
|
|
83
|
-
getHighBitsUnsigned: () => number;
|
|
84
|
-
getLowBits: () => number;
|
|
85
|
-
getLowBitsUnsigned: () => number;
|
|
86
|
-
getNumBitsAbs: () => number;
|
|
87
|
-
greaterThan: (other: string | number | Long) => boolean;
|
|
88
|
-
gt: (other: string | number | Long) => boolean;
|
|
89
|
-
greaterThanOrEqual: (other: string | number | Long) => boolean;
|
|
90
|
-
gte: (other: string | number | Long) => boolean;
|
|
91
|
-
ge: (other: string | number | Long) => boolean;
|
|
92
|
-
isEven: () => boolean;
|
|
93
|
-
isNegative: () => boolean;
|
|
94
|
-
isOdd: () => boolean;
|
|
95
|
-
isPositive: () => boolean;
|
|
96
|
-
isZero: () => boolean;
|
|
97
|
-
eqz: () => boolean;
|
|
98
|
-
lessThan: (other: string | number | Long) => boolean;
|
|
99
|
-
lt: (other: string | number | Long) => boolean;
|
|
100
|
-
lessThanOrEqual: (other: string | number | Long) => boolean;
|
|
101
|
-
lte: (other: string | number | Long) => boolean;
|
|
102
|
-
le: (other: string | number | Long) => boolean;
|
|
103
|
-
modulo: (other: string | number | Long) => Long;
|
|
104
|
-
mod: (other: string | number | Long) => Long;
|
|
105
|
-
rem: (other: string | number | Long) => Long;
|
|
106
|
-
multiply: (multiplier: string | number | Long) => Long;
|
|
107
|
-
mul: (multiplier: string | number | Long) => Long;
|
|
108
|
-
negate: () => Long;
|
|
109
|
-
neg: () => Long;
|
|
110
|
-
not: () => Long;
|
|
111
|
-
countLeadingZeros: () => number;
|
|
112
|
-
clz: () => number;
|
|
113
|
-
countTrailingZeros: () => number;
|
|
114
|
-
ctz: () => number;
|
|
115
|
-
notEquals: (other: string | number | Long) => boolean;
|
|
116
|
-
neq: (other: string | number | Long) => boolean;
|
|
117
|
-
ne: (other: string | number | Long) => boolean;
|
|
118
|
-
or: (other: string | number | Long) => Long;
|
|
119
|
-
shiftLeft: (numBits: number | Long) => Long;
|
|
120
|
-
shl: (numBits: number | Long) => Long;
|
|
121
|
-
shiftRight: (numBits: number | Long) => Long;
|
|
122
|
-
shr: (numBits: number | Long) => Long;
|
|
123
|
-
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
124
|
-
shru: (numBits: number | Long) => Long;
|
|
125
|
-
shr_u: (numBits: number | Long) => Long;
|
|
126
|
-
rotateLeft: (numBits: number | Long) => Long;
|
|
127
|
-
rotl: (numBits: number | Long) => Long;
|
|
128
|
-
rotateRight: (numBits: number | Long) => Long;
|
|
129
|
-
rotr: (numBits: number | Long) => Long;
|
|
130
|
-
subtract: (subtrahend: string | number | Long) => Long;
|
|
131
|
-
sub: (subtrahend: string | number | Long) => Long;
|
|
132
|
-
toInt: () => number;
|
|
133
|
-
toNumber: () => number;
|
|
134
|
-
toBytes: (le?: boolean | undefined) => number[];
|
|
135
|
-
toBytesLE: () => number[];
|
|
136
|
-
toBytesBE: () => number[];
|
|
137
|
-
toSigned: () => Long;
|
|
138
|
-
toString: (radix?: number | undefined) => string;
|
|
139
|
-
toUnsigned: () => Long;
|
|
140
|
-
xor: (other: string | number | Long) => Long;
|
|
141
|
-
} & { [K_2 in Exclude<keyof I["fee"]["gasWanted"], keyof Long>]: never; }) | undefined;
|
|
142
|
-
gasFee?: string | undefined;
|
|
143
|
-
} & { [K_3 in Exclude<keyof I["fee"], keyof TxFee>]: never; }) | undefined;
|
|
144
|
-
signatures?: ({
|
|
145
|
-
pubKey?: {
|
|
146
|
-
typeUrl?: string | undefined;
|
|
147
|
-
value?: Uint8Array | undefined;
|
|
148
|
-
} | undefined;
|
|
149
|
-
signature?: Uint8Array | undefined;
|
|
150
|
-
}[] & ({
|
|
151
|
-
pubKey?: {
|
|
152
|
-
typeUrl?: string | undefined;
|
|
153
|
-
value?: Uint8Array | undefined;
|
|
154
|
-
} | undefined;
|
|
155
|
-
signature?: Uint8Array | undefined;
|
|
156
|
-
} & {
|
|
157
|
-
pubKey?: ({
|
|
158
|
-
typeUrl?: string | undefined;
|
|
159
|
-
value?: Uint8Array | undefined;
|
|
160
|
-
} & {
|
|
161
|
-
typeUrl?: string | undefined;
|
|
162
|
-
value?: Uint8Array | undefined;
|
|
163
|
-
} & { [K_4 in Exclude<keyof I["signatures"][number]["pubKey"], keyof Any>]: never; }) | undefined;
|
|
164
|
-
signature?: Uint8Array | undefined;
|
|
165
|
-
} & { [K_5 in Exclude<keyof I["signatures"][number], keyof TxSignature>]: never; })[] & { [K_6 in Exclude<keyof I["signatures"], keyof {
|
|
166
|
-
pubKey?: {
|
|
167
|
-
typeUrl?: string | undefined;
|
|
168
|
-
value?: Uint8Array | undefined;
|
|
169
|
-
} | undefined;
|
|
170
|
-
signature?: Uint8Array | undefined;
|
|
171
|
-
}[]>]: never; }) | undefined;
|
|
172
|
-
memo?: string | undefined;
|
|
173
|
-
} & { [K_7 in Exclude<keyof I, keyof Tx>]: never; }>(base?: I): Tx;
|
|
174
|
-
fromPartial<I_1 extends {
|
|
175
|
-
messages?: {
|
|
176
|
-
typeUrl?: string | undefined;
|
|
177
|
-
value?: Uint8Array | undefined;
|
|
178
|
-
}[] | undefined;
|
|
179
|
-
fee?: {
|
|
180
|
-
gasWanted?: string | number | Long | undefined;
|
|
181
|
-
gasFee?: string | undefined;
|
|
182
|
-
} | undefined;
|
|
183
|
-
signatures?: {
|
|
184
|
-
pubKey?: {
|
|
185
|
-
typeUrl?: string | undefined;
|
|
186
|
-
value?: Uint8Array | undefined;
|
|
187
|
-
} | undefined;
|
|
188
|
-
signature?: Uint8Array | undefined;
|
|
189
|
-
}[] | undefined;
|
|
190
|
-
memo?: string | undefined;
|
|
191
|
-
} & {
|
|
192
|
-
messages?: ({
|
|
193
|
-
typeUrl?: string | undefined;
|
|
194
|
-
value?: Uint8Array | undefined;
|
|
195
|
-
}[] & ({
|
|
196
|
-
typeUrl?: string | undefined;
|
|
197
|
-
value?: Uint8Array | undefined;
|
|
198
|
-
} & {
|
|
199
|
-
typeUrl?: string | undefined;
|
|
200
|
-
value?: Uint8Array | undefined;
|
|
201
|
-
} & { [K_8 in Exclude<keyof I_1["messages"][number], keyof Any>]: never; })[] & { [K_9 in Exclude<keyof I_1["messages"], keyof {
|
|
202
|
-
typeUrl?: string | undefined;
|
|
203
|
-
value?: Uint8Array | undefined;
|
|
204
|
-
}[]>]: never; }) | undefined;
|
|
205
|
-
fee?: ({
|
|
206
|
-
gasWanted?: string | number | Long | undefined;
|
|
207
|
-
gasFee?: string | undefined;
|
|
208
|
-
} & {
|
|
209
|
-
gasWanted?: string | number | (Long & {
|
|
210
|
-
high: number;
|
|
211
|
-
low: number;
|
|
212
|
-
unsigned: boolean;
|
|
213
|
-
add: (addend: string | number | Long) => Long;
|
|
214
|
-
and: (other: string | number | Long) => Long;
|
|
215
|
-
compare: (other: string | number | Long) => number;
|
|
216
|
-
comp: (other: string | number | Long) => number;
|
|
217
|
-
divide: (divisor: string | number | Long) => Long;
|
|
218
|
-
div: (divisor: string | number | Long) => Long;
|
|
219
|
-
equals: (other: string | number | Long) => boolean;
|
|
220
|
-
eq: (other: string | number | Long) => boolean;
|
|
221
|
-
getHighBits: () => number;
|
|
222
|
-
getHighBitsUnsigned: () => number;
|
|
223
|
-
getLowBits: () => number;
|
|
224
|
-
getLowBitsUnsigned: () => number;
|
|
225
|
-
getNumBitsAbs: () => number;
|
|
226
|
-
greaterThan: (other: string | number | Long) => boolean;
|
|
227
|
-
gt: (other: string | number | Long) => boolean;
|
|
228
|
-
greaterThanOrEqual: (other: string | number | Long) => boolean;
|
|
229
|
-
gte: (other: string | number | Long) => boolean;
|
|
230
|
-
ge: (other: string | number | Long) => boolean;
|
|
231
|
-
isEven: () => boolean;
|
|
232
|
-
isNegative: () => boolean;
|
|
233
|
-
isOdd: () => boolean;
|
|
234
|
-
isPositive: () => boolean;
|
|
235
|
-
isZero: () => boolean;
|
|
236
|
-
eqz: () => boolean;
|
|
237
|
-
lessThan: (other: string | number | Long) => boolean;
|
|
238
|
-
lt: (other: string | number | Long) => boolean;
|
|
239
|
-
lessThanOrEqual: (other: string | number | Long) => boolean;
|
|
240
|
-
lte: (other: string | number | Long) => boolean;
|
|
241
|
-
le: (other: string | number | Long) => boolean;
|
|
242
|
-
modulo: (other: string | number | Long) => Long;
|
|
243
|
-
mod: (other: string | number | Long) => Long;
|
|
244
|
-
rem: (other: string | number | Long) => Long;
|
|
245
|
-
multiply: (multiplier: string | number | Long) => Long;
|
|
246
|
-
mul: (multiplier: string | number | Long) => Long;
|
|
247
|
-
negate: () => Long;
|
|
248
|
-
neg: () => Long;
|
|
249
|
-
not: () => Long;
|
|
250
|
-
countLeadingZeros: () => number;
|
|
251
|
-
clz: () => number;
|
|
252
|
-
countTrailingZeros: () => number;
|
|
253
|
-
ctz: () => number;
|
|
254
|
-
notEquals: (other: string | number | Long) => boolean;
|
|
255
|
-
neq: (other: string | number | Long) => boolean;
|
|
256
|
-
ne: (other: string | number | Long) => boolean;
|
|
257
|
-
or: (other: string | number | Long) => Long;
|
|
258
|
-
shiftLeft: (numBits: number | Long) => Long;
|
|
259
|
-
shl: (numBits: number | Long) => Long;
|
|
260
|
-
shiftRight: (numBits: number | Long) => Long;
|
|
261
|
-
shr: (numBits: number | Long) => Long;
|
|
262
|
-
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
263
|
-
shru: (numBits: number | Long) => Long;
|
|
264
|
-
shr_u: (numBits: number | Long) => Long;
|
|
265
|
-
rotateLeft: (numBits: number | Long) => Long;
|
|
266
|
-
rotl: (numBits: number | Long) => Long;
|
|
267
|
-
rotateRight: (numBits: number | Long) => Long;
|
|
268
|
-
rotr: (numBits: number | Long) => Long;
|
|
269
|
-
subtract: (subtrahend: string | number | Long) => Long;
|
|
270
|
-
sub: (subtrahend: string | number | Long) => Long;
|
|
271
|
-
toInt: () => number;
|
|
272
|
-
toNumber: () => number;
|
|
273
|
-
toBytes: (le?: boolean | undefined) => number[];
|
|
274
|
-
toBytesLE: () => number[];
|
|
275
|
-
toBytesBE: () => number[];
|
|
276
|
-
toSigned: () => Long;
|
|
277
|
-
toString: (radix?: number | undefined) => string;
|
|
278
|
-
toUnsigned: () => Long;
|
|
279
|
-
xor: (other: string | number | Long) => Long;
|
|
280
|
-
} & { [K_10 in Exclude<keyof I_1["fee"]["gasWanted"], keyof Long>]: never; }) | undefined;
|
|
281
|
-
gasFee?: string | undefined;
|
|
282
|
-
} & { [K_11 in Exclude<keyof I_1["fee"], keyof TxFee>]: never; }) | undefined;
|
|
283
|
-
signatures?: ({
|
|
284
|
-
pubKey?: {
|
|
285
|
-
typeUrl?: string | undefined;
|
|
286
|
-
value?: Uint8Array | undefined;
|
|
287
|
-
} | undefined;
|
|
288
|
-
signature?: Uint8Array | undefined;
|
|
289
|
-
}[] & ({
|
|
290
|
-
pubKey?: {
|
|
291
|
-
typeUrl?: string | undefined;
|
|
292
|
-
value?: Uint8Array | undefined;
|
|
293
|
-
} | undefined;
|
|
294
|
-
signature?: Uint8Array | undefined;
|
|
295
|
-
} & {
|
|
296
|
-
pubKey?: ({
|
|
297
|
-
typeUrl?: string | undefined;
|
|
298
|
-
value?: Uint8Array | undefined;
|
|
299
|
-
} & {
|
|
300
|
-
typeUrl?: string | undefined;
|
|
301
|
-
value?: Uint8Array | undefined;
|
|
302
|
-
} & { [K_12 in Exclude<keyof I_1["signatures"][number]["pubKey"], keyof Any>]: never; }) | undefined;
|
|
303
|
-
signature?: Uint8Array | undefined;
|
|
304
|
-
} & { [K_13 in Exclude<keyof I_1["signatures"][number], keyof TxSignature>]: never; })[] & { [K_14 in Exclude<keyof I_1["signatures"], keyof {
|
|
305
|
-
pubKey?: {
|
|
306
|
-
typeUrl?: string | undefined;
|
|
307
|
-
value?: Uint8Array | undefined;
|
|
308
|
-
} | undefined;
|
|
309
|
-
signature?: Uint8Array | undefined;
|
|
310
|
-
}[]>]: never; }) | undefined;
|
|
311
|
-
memo?: string | undefined;
|
|
312
|
-
} & { [K_15 in Exclude<keyof I_1, keyof Tx>]: never; }>(object: I_1): Tx;
|
|
35
|
+
create<I extends Exact<DeepPartial<Tx>, I>>(base?: I): Tx;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<Tx>, I>>(object: I): Tx;
|
|
313
37
|
};
|
|
314
38
|
export declare const TxFee: {
|
|
315
39
|
encode(message: TxFee, writer?: _m0.Writer): _m0.Writer;
|
|
316
40
|
decode(input: _m0.Reader | Uint8Array, length?: number): TxFee;
|
|
317
41
|
fromJSON(object: any): TxFee;
|
|
318
42
|
toJSON(message: TxFee): unknown;
|
|
319
|
-
create<I extends
|
|
320
|
-
|
|
321
|
-
gasFee?: string | undefined;
|
|
322
|
-
} & {
|
|
323
|
-
gasWanted?: string | number | (Long & {
|
|
324
|
-
high: number;
|
|
325
|
-
low: number;
|
|
326
|
-
unsigned: boolean;
|
|
327
|
-
add: (addend: string | number | Long) => Long;
|
|
328
|
-
and: (other: string | number | Long) => Long;
|
|
329
|
-
compare: (other: string | number | Long) => number;
|
|
330
|
-
comp: (other: string | number | Long) => number;
|
|
331
|
-
divide: (divisor: string | number | Long) => Long;
|
|
332
|
-
div: (divisor: string | number | Long) => Long;
|
|
333
|
-
equals: (other: string | number | Long) => boolean;
|
|
334
|
-
eq: (other: string | number | Long) => boolean;
|
|
335
|
-
getHighBits: () => number;
|
|
336
|
-
getHighBitsUnsigned: () => number;
|
|
337
|
-
getLowBits: () => number;
|
|
338
|
-
getLowBitsUnsigned: () => number;
|
|
339
|
-
getNumBitsAbs: () => number;
|
|
340
|
-
greaterThan: (other: string | number | Long) => boolean;
|
|
341
|
-
gt: (other: string | number | Long) => boolean;
|
|
342
|
-
greaterThanOrEqual: (other: string | number | Long) => boolean;
|
|
343
|
-
gte: (other: string | number | Long) => boolean;
|
|
344
|
-
ge: (other: string | number | Long) => boolean;
|
|
345
|
-
isEven: () => boolean;
|
|
346
|
-
isNegative: () => boolean;
|
|
347
|
-
isOdd: () => boolean;
|
|
348
|
-
isPositive: () => boolean;
|
|
349
|
-
isZero: () => boolean;
|
|
350
|
-
eqz: () => boolean;
|
|
351
|
-
lessThan: (other: string | number | Long) => boolean;
|
|
352
|
-
lt: (other: string | number | Long) => boolean;
|
|
353
|
-
lessThanOrEqual: (other: string | number | Long) => boolean;
|
|
354
|
-
lte: (other: string | number | Long) => boolean;
|
|
355
|
-
le: (other: string | number | Long) => boolean;
|
|
356
|
-
modulo: (other: string | number | Long) => Long;
|
|
357
|
-
mod: (other: string | number | Long) => Long;
|
|
358
|
-
rem: (other: string | number | Long) => Long;
|
|
359
|
-
multiply: (multiplier: string | number | Long) => Long;
|
|
360
|
-
mul: (multiplier: string | number | Long) => Long;
|
|
361
|
-
negate: () => Long;
|
|
362
|
-
neg: () => Long;
|
|
363
|
-
not: () => Long;
|
|
364
|
-
countLeadingZeros: () => number;
|
|
365
|
-
clz: () => number;
|
|
366
|
-
countTrailingZeros: () => number;
|
|
367
|
-
ctz: () => number;
|
|
368
|
-
notEquals: (other: string | number | Long) => boolean;
|
|
369
|
-
neq: (other: string | number | Long) => boolean;
|
|
370
|
-
ne: (other: string | number | Long) => boolean;
|
|
371
|
-
or: (other: string | number | Long) => Long;
|
|
372
|
-
shiftLeft: (numBits: number | Long) => Long;
|
|
373
|
-
shl: (numBits: number | Long) => Long;
|
|
374
|
-
shiftRight: (numBits: number | Long) => Long;
|
|
375
|
-
shr: (numBits: number | Long) => Long;
|
|
376
|
-
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
377
|
-
shru: (numBits: number | Long) => Long;
|
|
378
|
-
shr_u: (numBits: number | Long) => Long;
|
|
379
|
-
rotateLeft: (numBits: number | Long) => Long;
|
|
380
|
-
rotl: (numBits: number | Long) => Long;
|
|
381
|
-
rotateRight: (numBits: number | Long) => Long;
|
|
382
|
-
rotr: (numBits: number | Long) => Long;
|
|
383
|
-
subtract: (subtrahend: string | number | Long) => Long;
|
|
384
|
-
sub: (subtrahend: string | number | Long) => Long;
|
|
385
|
-
toInt: () => number;
|
|
386
|
-
toNumber: () => number;
|
|
387
|
-
toBytes: (le?: boolean | undefined) => number[];
|
|
388
|
-
toBytesLE: () => number[];
|
|
389
|
-
toBytesBE: () => number[];
|
|
390
|
-
toSigned: () => Long;
|
|
391
|
-
toString: (radix?: number | undefined) => string;
|
|
392
|
-
toUnsigned: () => Long;
|
|
393
|
-
xor: (other: string | number | Long) => Long;
|
|
394
|
-
} & { [K in Exclude<keyof I["gasWanted"], keyof Long>]: never; }) | undefined;
|
|
395
|
-
gasFee?: string | undefined;
|
|
396
|
-
} & { [K_1 in Exclude<keyof I, keyof TxFee>]: never; }>(base?: I): TxFee;
|
|
397
|
-
fromPartial<I_1 extends {
|
|
398
|
-
gasWanted?: string | number | Long | undefined;
|
|
399
|
-
gasFee?: string | undefined;
|
|
400
|
-
} & {
|
|
401
|
-
gasWanted?: string | number | (Long & {
|
|
402
|
-
high: number;
|
|
403
|
-
low: number;
|
|
404
|
-
unsigned: boolean;
|
|
405
|
-
add: (addend: string | number | Long) => Long;
|
|
406
|
-
and: (other: string | number | Long) => Long;
|
|
407
|
-
compare: (other: string | number | Long) => number;
|
|
408
|
-
comp: (other: string | number | Long) => number;
|
|
409
|
-
divide: (divisor: string | number | Long) => Long;
|
|
410
|
-
div: (divisor: string | number | Long) => Long;
|
|
411
|
-
equals: (other: string | number | Long) => boolean;
|
|
412
|
-
eq: (other: string | number | Long) => boolean;
|
|
413
|
-
getHighBits: () => number;
|
|
414
|
-
getHighBitsUnsigned: () => number;
|
|
415
|
-
getLowBits: () => number;
|
|
416
|
-
getLowBitsUnsigned: () => number;
|
|
417
|
-
getNumBitsAbs: () => number;
|
|
418
|
-
greaterThan: (other: string | number | Long) => boolean;
|
|
419
|
-
gt: (other: string | number | Long) => boolean;
|
|
420
|
-
greaterThanOrEqual: (other: string | number | Long) => boolean;
|
|
421
|
-
gte: (other: string | number | Long) => boolean;
|
|
422
|
-
ge: (other: string | number | Long) => boolean;
|
|
423
|
-
isEven: () => boolean;
|
|
424
|
-
isNegative: () => boolean;
|
|
425
|
-
isOdd: () => boolean;
|
|
426
|
-
isPositive: () => boolean;
|
|
427
|
-
isZero: () => boolean;
|
|
428
|
-
eqz: () => boolean;
|
|
429
|
-
lessThan: (other: string | number | Long) => boolean;
|
|
430
|
-
lt: (other: string | number | Long) => boolean;
|
|
431
|
-
lessThanOrEqual: (other: string | number | Long) => boolean;
|
|
432
|
-
lte: (other: string | number | Long) => boolean;
|
|
433
|
-
le: (other: string | number | Long) => boolean;
|
|
434
|
-
modulo: (other: string | number | Long) => Long;
|
|
435
|
-
mod: (other: string | number | Long) => Long;
|
|
436
|
-
rem: (other: string | number | Long) => Long;
|
|
437
|
-
multiply: (multiplier: string | number | Long) => Long;
|
|
438
|
-
mul: (multiplier: string | number | Long) => Long;
|
|
439
|
-
negate: () => Long;
|
|
440
|
-
neg: () => Long;
|
|
441
|
-
not: () => Long;
|
|
442
|
-
countLeadingZeros: () => number;
|
|
443
|
-
clz: () => number;
|
|
444
|
-
countTrailingZeros: () => number;
|
|
445
|
-
ctz: () => number;
|
|
446
|
-
notEquals: (other: string | number | Long) => boolean;
|
|
447
|
-
neq: (other: string | number | Long) => boolean;
|
|
448
|
-
ne: (other: string | number | Long) => boolean;
|
|
449
|
-
or: (other: string | number | Long) => Long;
|
|
450
|
-
shiftLeft: (numBits: number | Long) => Long;
|
|
451
|
-
shl: (numBits: number | Long) => Long;
|
|
452
|
-
shiftRight: (numBits: number | Long) => Long;
|
|
453
|
-
shr: (numBits: number | Long) => Long;
|
|
454
|
-
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
455
|
-
shru: (numBits: number | Long) => Long;
|
|
456
|
-
shr_u: (numBits: number | Long) => Long;
|
|
457
|
-
rotateLeft: (numBits: number | Long) => Long;
|
|
458
|
-
rotl: (numBits: number | Long) => Long;
|
|
459
|
-
rotateRight: (numBits: number | Long) => Long;
|
|
460
|
-
rotr: (numBits: number | Long) => Long;
|
|
461
|
-
subtract: (subtrahend: string | number | Long) => Long;
|
|
462
|
-
sub: (subtrahend: string | number | Long) => Long;
|
|
463
|
-
toInt: () => number;
|
|
464
|
-
toNumber: () => number;
|
|
465
|
-
toBytes: (le?: boolean | undefined) => number[];
|
|
466
|
-
toBytesLE: () => number[];
|
|
467
|
-
toBytesBE: () => number[];
|
|
468
|
-
toSigned: () => Long;
|
|
469
|
-
toString: (radix?: number | undefined) => string;
|
|
470
|
-
toUnsigned: () => Long;
|
|
471
|
-
xor: (other: string | number | Long) => Long;
|
|
472
|
-
} & { [K_2 in Exclude<keyof I_1["gasWanted"], keyof Long>]: never; }) | undefined;
|
|
473
|
-
gasFee?: string | undefined;
|
|
474
|
-
} & { [K_3 in Exclude<keyof I_1, keyof TxFee>]: never; }>(object: I_1): TxFee;
|
|
43
|
+
create<I extends Exact<DeepPartial<TxFee>, I>>(base?: I): TxFee;
|
|
44
|
+
fromPartial<I extends Exact<DeepPartial<TxFee>, I>>(object: I): TxFee;
|
|
475
45
|
};
|
|
476
46
|
export declare const TxSignature: {
|
|
477
47
|
encode(message: TxSignature, writer?: _m0.Writer): _m0.Writer;
|
|
478
48
|
decode(input: _m0.Reader | Uint8Array, length?: number): TxSignature;
|
|
479
49
|
fromJSON(object: any): TxSignature;
|
|
480
50
|
toJSON(message: TxSignature): unknown;
|
|
481
|
-
create<I extends
|
|
482
|
-
|
|
483
|
-
typeUrl?: string | undefined;
|
|
484
|
-
value?: Uint8Array | undefined;
|
|
485
|
-
} | undefined;
|
|
486
|
-
signature?: Uint8Array | undefined;
|
|
487
|
-
} & {
|
|
488
|
-
pubKey?: ({
|
|
489
|
-
typeUrl?: string | undefined;
|
|
490
|
-
value?: Uint8Array | undefined;
|
|
491
|
-
} & {
|
|
492
|
-
typeUrl?: string | undefined;
|
|
493
|
-
value?: Uint8Array | undefined;
|
|
494
|
-
} & { [K in Exclude<keyof I["pubKey"], keyof Any>]: never; }) | undefined;
|
|
495
|
-
signature?: Uint8Array | undefined;
|
|
496
|
-
} & { [K_1 in Exclude<keyof I, keyof TxSignature>]: never; }>(base?: I): TxSignature;
|
|
497
|
-
fromPartial<I_1 extends {
|
|
498
|
-
pubKey?: {
|
|
499
|
-
typeUrl?: string | undefined;
|
|
500
|
-
value?: Uint8Array | undefined;
|
|
501
|
-
} | undefined;
|
|
502
|
-
signature?: Uint8Array | undefined;
|
|
503
|
-
} & {
|
|
504
|
-
pubKey?: ({
|
|
505
|
-
typeUrl?: string | undefined;
|
|
506
|
-
value?: Uint8Array | undefined;
|
|
507
|
-
} & {
|
|
508
|
-
typeUrl?: string | undefined;
|
|
509
|
-
value?: Uint8Array | undefined;
|
|
510
|
-
} & { [K_2 in Exclude<keyof I_1["pubKey"], keyof Any>]: never; }) | undefined;
|
|
511
|
-
signature?: Uint8Array | undefined;
|
|
512
|
-
} & { [K_3 in Exclude<keyof I_1, keyof TxSignature>]: never; }>(object: I_1): TxSignature;
|
|
51
|
+
create<I extends Exact<DeepPartial<TxSignature>, I>>(base?: I): TxSignature;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<TxSignature>, I>>(object: I): TxSignature;
|
|
513
53
|
};
|
|
514
54
|
export declare const PubKeySecp256k1: {
|
|
515
55
|
encode(message: PubKeySecp256k1, writer?: _m0.Writer): _m0.Writer;
|
|
516
56
|
decode(input: _m0.Reader | Uint8Array, length?: number): PubKeySecp256k1;
|
|
517
57
|
fromJSON(object: any): PubKeySecp256k1;
|
|
518
58
|
toJSON(message: PubKeySecp256k1): unknown;
|
|
519
|
-
create<I extends
|
|
520
|
-
|
|
521
|
-
} & {
|
|
522
|
-
key?: Uint8Array | undefined;
|
|
523
|
-
} & { [K in Exclude<keyof I, "key">]: never; }>(base?: I): PubKeySecp256k1;
|
|
524
|
-
fromPartial<I_1 extends {
|
|
525
|
-
key?: Uint8Array | undefined;
|
|
526
|
-
} & {
|
|
527
|
-
key?: Uint8Array | undefined;
|
|
528
|
-
} & { [K_1 in Exclude<keyof I_1, "key">]: never; }>(object: I_1): PubKeySecp256k1;
|
|
59
|
+
create<I extends Exact<DeepPartial<PubKeySecp256k1>, I>>(base?: I): PubKeySecp256k1;
|
|
60
|
+
fromPartial<I extends Exact<DeepPartial<PubKeySecp256k1>, I>>(object: I): PubKeySecp256k1;
|
|
529
61
|
};
|
|
530
62
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
531
63
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -20,7 +20,8 @@ export declare enum TransactionEndpoint {
|
|
|
20
20
|
UNCONFIRMED_TXS = "unconfirmed_txs",
|
|
21
21
|
BROADCAST_TX_ASYNC = "broadcast_tx_async",
|
|
22
22
|
BROADCAST_TX_SYNC = "broadcast_tx_sync",
|
|
23
|
-
BROADCAST_TX_COMMIT = "broadcast_tx_commit"
|
|
23
|
+
BROADCAST_TX_COMMIT = "broadcast_tx_commit",
|
|
24
|
+
TX = "tx"
|
|
24
25
|
}
|
|
25
26
|
export declare enum ABCIEndpoint {
|
|
26
27
|
ABCI_INFO = "abci_info",
|
|
@@ -28,6 +28,7 @@ var TransactionEndpoint;
|
|
|
28
28
|
TransactionEndpoint["BROADCAST_TX_ASYNC"] = "broadcast_tx_async";
|
|
29
29
|
TransactionEndpoint["BROADCAST_TX_SYNC"] = "broadcast_tx_sync";
|
|
30
30
|
TransactionEndpoint["BROADCAST_TX_COMMIT"] = "broadcast_tx_commit";
|
|
31
|
+
TransactionEndpoint["TX"] = "tx";
|
|
31
32
|
})(TransactionEndpoint || (exports.TransactionEndpoint = TransactionEndpoint = {}));
|
|
32
33
|
var ABCIEndpoint;
|
|
33
34
|
(function (ABCIEndpoint) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Provider } from '../provider';
|
|
2
|
-
import { BlockInfo, BlockResult, BroadcastTransactionMap, ConsensusParams, NetworkInfo, Status } from '../types';
|
|
2
|
+
import { BlockInfo, BlockResult, BroadcastTransactionMap, ConsensusParams, NetworkInfo, Status, TxResult } from '../types';
|
|
3
3
|
import { Tx } from '../../proto';
|
|
4
4
|
/**
|
|
5
5
|
* Provider based on JSON-RPC HTTP requests
|
|
@@ -22,6 +22,7 @@ export declare class JSONRPCProvider implements Provider {
|
|
|
22
22
|
getAccountSequence(address: string, height?: number): Promise<number>;
|
|
23
23
|
getAccountNumber(address: string, height?: number): Promise<number>;
|
|
24
24
|
getStatus(): Promise<Status>;
|
|
25
|
+
getTransaction(hash: string): Promise<TxResult>;
|
|
25
26
|
sendTransaction<K extends keyof BroadcastTransactionMap>(tx: string, endpoint: K): Promise<BroadcastTransactionMap[K]['result']>;
|
|
26
27
|
private broadcastTxSync;
|
|
27
28
|
private broadcastTxCommit;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -194,6 +194,18 @@ var JSONRPCProvider = /** @class */ (function () {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
|
+
JSONRPCProvider.prototype.getTransaction = function (hash) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
return __generator(this, function (_a) {
|
|
200
|
+
switch (_a.label) {
|
|
201
|
+
case 0: return [4 /*yield*/, services_1.RestService.post(this.baseURL, {
|
|
202
|
+
request: (0, utility_1.newRequest)(endpoints_1.TransactionEndpoint.TX, [hash]),
|
|
203
|
+
})];
|
|
204
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
};
|
|
197
209
|
JSONRPCProvider.prototype.sendTransaction = function (tx, endpoint) {
|
|
198
210
|
return __awaiter(this, void 0, void 0, function () {
|
|
199
211
|
var request;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -130,6 +130,13 @@ export interface BlockResult {
|
|
|
130
130
|
begin_block: BeginBlock;
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
+
export interface TxResult {
|
|
134
|
+
hash: string;
|
|
135
|
+
index: number;
|
|
136
|
+
height: string;
|
|
137
|
+
tx_result: DeliverTx;
|
|
138
|
+
tx: string;
|
|
139
|
+
}
|
|
133
140
|
export interface DeliverTx {
|
|
134
141
|
ResponseBase: ABCIResponseBase;
|
|
135
142
|
GasWanted: string;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -85,7 +85,9 @@ var extractSequenceFromResponse = function (abciData) {
|
|
|
85
85
|
var account = (0, requests_utility_1.parseABCI)(abciData);
|
|
86
86
|
return parseInt(account.BaseAccount.sequence, 10);
|
|
87
87
|
}
|
|
88
|
-
catch (e) {
|
|
88
|
+
catch (e) {
|
|
89
|
+
// unused case
|
|
90
|
+
}
|
|
89
91
|
// Account not initialized,
|
|
90
92
|
// return default value (0)
|
|
91
93
|
return 0;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Provider } from '../provider';
|
|
3
|
-
import { BlockInfo, BlockResult, BroadcastTransactionMap, ConsensusParams, NetworkInfo, RPCRequest, RPCResponse, Status } from '../types';
|
|
2
|
+
import { BlockInfo, BlockResult, BroadcastTransactionMap, ConsensusParams, NetworkInfo, RPCRequest, RPCResponse, Status, TxResult } from '../types';
|
|
4
3
|
import { Tx } from '../../proto';
|
|
5
4
|
/**
|
|
6
5
|
* Provider based on WS JSON-RPC HTTP requests
|
|
@@ -50,6 +49,7 @@ export declare class WSProvider implements Provider {
|
|
|
50
49
|
getAccountSequence(address: string, height?: number): Promise<number>;
|
|
51
50
|
getAccountNumber(address: string, height?: number): Promise<number>;
|
|
52
51
|
getStatus(): Promise<Status>;
|
|
52
|
+
getTransaction(hash: string): Promise<TxResult>;
|
|
53
53
|
sendTransaction<K extends keyof BroadcastTransactionMap>(tx: string, endpoint: K): Promise<BroadcastTransactionMap[K]['result']>;
|
|
54
54
|
private broadcastTxSync;
|
|
55
55
|
private broadcastTxCommit;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -284,6 +284,19 @@ var WSProvider = /** @class */ (function () {
|
|
|
284
284
|
});
|
|
285
285
|
});
|
|
286
286
|
};
|
|
287
|
+
WSProvider.prototype.getTransaction = function (hash) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
289
|
+
var response;
|
|
290
|
+
return __generator(this, function (_a) {
|
|
291
|
+
switch (_a.label) {
|
|
292
|
+
case 0: return [4 /*yield*/, this.sendRequest((0, utility_1.newRequest)(endpoints_1.TransactionEndpoint.TX, [hash]))];
|
|
293
|
+
case 1:
|
|
294
|
+
response = _a.sent();
|
|
295
|
+
return [2 /*return*/, this.parseResponse(response)];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
};
|
|
287
300
|
WSProvider.prototype.sendTransaction = function (tx, endpoint) {
|
|
288
301
|
return __awaiter(this, void 0, void 0, function () {
|
|
289
302
|
var request;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
package/bin/wallet/key/key.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -39,7 +39,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.
|
|
42
|
+
exports.stringToUTF8 = exports.defaultAddressPrefix = exports.generateKeyPair = exports.generateEntropy = exports.generateHDPath = void 0;
|
|
43
|
+
exports.encodeCharacterSet = encodeCharacterSet;
|
|
43
44
|
var crypto_1 = require("@cosmjs/crypto");
|
|
44
45
|
var crypto_2 = __importDefault(require("crypto"));
|
|
45
46
|
/**
|
|
@@ -114,4 +115,3 @@ function encodeCharacterSet(data) {
|
|
|
114
115
|
.replace(/>/g, '\\u003e')
|
|
115
116
|
.replace(/&/g, '\\u0026');
|
|
116
117
|
}
|
|
117
|
-
exports.encodeCharacterSet = encodeCharacterSet;
|
package/bin/wallet/wallet.js
CHANGED
|
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g =
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnolang/tm2-js-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Tendermint2 JS / TS Client",
|
|
5
5
|
"main": "./bin/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -26,33 +26,37 @@
|
|
|
26
26
|
"registry": "https://registry.npmjs.org/"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
+
"@eslint/js": "^9.10.0",
|
|
29
30
|
"@types/jest": "^29.5.12",
|
|
30
31
|
"@types/long": "^5.0.0",
|
|
31
|
-
"@types/node": "^
|
|
32
|
-
"@types/ws": "^8.5.
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
34
|
-
"@typescript-eslint/parser": "^
|
|
35
|
-
"eslint": "^8.
|
|
32
|
+
"@types/node": "^22.5.5",
|
|
33
|
+
"@types/ws": "^8.5.11",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.6.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.6.0",
|
|
36
|
+
"@typescript-eslint/typescript-estree": "^8.6.0",
|
|
37
|
+
"eslint": "^9.10.0",
|
|
36
38
|
"eslint-config-prettier": "^9.0.0",
|
|
37
|
-
"eslint-plugin-prettier": "5.1
|
|
39
|
+
"eslint-plugin-prettier": "5.2.1",
|
|
40
|
+
"globals": "^15.9.0",
|
|
38
41
|
"jest": "^29.7.0",
|
|
39
42
|
"jest-mock-extended": "^3.0.4",
|
|
40
43
|
"jest-websocket-mock": "^2.4.0",
|
|
41
|
-
"prettier": "^3.
|
|
42
|
-
"ts-jest": "^29.
|
|
43
|
-
"ts-proto": "^
|
|
44
|
-
"typescript": "^5.
|
|
44
|
+
"prettier": "^3.3.3",
|
|
45
|
+
"ts-jest": "^29.2.2",
|
|
46
|
+
"ts-proto": "^2.2.0",
|
|
47
|
+
"typescript": "^5.6.2",
|
|
48
|
+
"typescript-eslint": "^8.6.0"
|
|
45
49
|
},
|
|
46
50
|
"dependencies": {
|
|
47
51
|
"@cosmjs/amino": "^0.32.4",
|
|
48
52
|
"@cosmjs/crypto": "^0.32.4",
|
|
49
53
|
"@cosmjs/ledger-amino": "^0.32.4",
|
|
50
|
-
"@types/uuid": "^
|
|
51
|
-
"axios": "^1.
|
|
54
|
+
"@types/uuid": "^10.0.0",
|
|
55
|
+
"axios": "^1.7.2",
|
|
52
56
|
"long": "^5.2.3",
|
|
53
|
-
"protobufjs": "^7.
|
|
54
|
-
"uuid": "^
|
|
55
|
-
"ws": "^8.
|
|
57
|
+
"protobufjs": "^7.4.0",
|
|
58
|
+
"uuid": "^10.0.0",
|
|
59
|
+
"ws": "^8.18.0"
|
|
56
60
|
},
|
|
57
61
|
"scripts": {
|
|
58
62
|
"tsc": "tsc",
|