@bitgo-beta/sdk-coin-icp 1.0.1-beta.84 → 1.0.1-beta.840
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/dist/resources/messageCompiled.d.ts +797 -0
- package/dist/resources/messageCompiled.js +1859 -0
- package/dist/src/icp.d.ts +64 -3
- package/dist/src/icp.d.ts.map +1 -1
- package/dist/src/icp.js +332 -10
- package/dist/src/lib/icpAgent.d.ts +36 -0
- package/dist/src/lib/icpAgent.d.ts.map +1 -0
- package/dist/src/lib/icpAgent.js +90 -0
- package/dist/src/lib/iface.d.ts +195 -0
- package/dist/src/lib/iface.d.ts.map +1 -0
- package/dist/src/lib/iface.js +44 -0
- package/dist/src/lib/index.d.ts +4 -0
- package/dist/src/lib/index.d.ts.map +1 -1
- package/dist/src/lib/index.js +12 -2
- package/dist/src/lib/signedTransactionBuilder.d.ts +9 -0
- package/dist/src/lib/signedTransactionBuilder.d.ts.map +1 -0
- package/dist/src/lib/signedTransactionBuilder.js +64 -0
- package/dist/src/lib/transaction.d.ts +54 -0
- package/dist/src/lib/transaction.d.ts.map +1 -0
- package/dist/src/lib/transaction.js +255 -0
- package/dist/src/lib/transactionBuilder.d.ts +58 -28
- package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilder.js +127 -40
- package/dist/src/lib/transactionBuilderFactory.d.ts +15 -14
- package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilderFactory.js +43 -27
- package/dist/src/lib/transferBuilder.d.ts +7 -24
- package/dist/src/lib/transferBuilder.d.ts.map +1 -1
- package/dist/src/lib/transferBuilder.js +88 -43
- package/dist/src/lib/unsignedTransactionBuilder.d.ts +13 -0
- package/dist/src/lib/unsignedTransactionBuilder.d.ts.map +1 -0
- package/dist/src/lib/unsignedTransactionBuilder.js +90 -0
- package/dist/src/lib/utils.d.ts +286 -8
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +615 -53
- package/dist/src/ticp.d.ts +0 -4
- package/dist/src/ticp.d.ts.map +1 -1
- package/dist/src/ticp.js +1 -7
- package/dist/test/resources/icp.d.ts +268 -0
- package/dist/test/resources/icp.d.ts.map +1 -0
- package/dist/test/resources/icp.js +377 -0
- package/dist/test/unit/getBuilderFactory.d.ts +3 -0
- package/dist/test/unit/getBuilderFactory.d.ts.map +1 -0
- package/dist/test/unit/getBuilderFactory.js +10 -0
- package/dist/test/unit/icp.d.ts +2 -0
- package/dist/test/unit/icp.d.ts.map +1 -0
- package/dist/test/unit/icp.js +418 -0
- package/dist/test/unit/keyPair.d.ts +2 -0
- package/dist/test/unit/keyPair.d.ts.map +1 -0
- package/dist/test/unit/keyPair.js +107 -0
- package/dist/test/unit/transaction.d.ts +2 -0
- package/dist/test/unit/transaction.d.ts.map +1 -0
- package/dist/test/unit/transaction.js +109 -0
- package/dist/test/unit/transactionBuilder/transactionBuilder.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/transactionBuilder.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/transactionBuilder.js +274 -0
- package/dist/test/unit/transactionBuilder/transactionRecover.d.ts +2 -0
- package/dist/test/unit/transactionBuilder/transactionRecover.d.ts.map +1 -0
- package/dist/test/unit/transactionBuilder/transactionRecover.js +188 -0
- package/dist/test/unit/utils.d.ts +2 -0
- package/dist/test/unit/utils.d.ts.map +1 -0
- package/dist/test/unit/utils.js +206 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +23 -12
- package/.eslintignore +0 -4
- package/.mocharc.yml +0 -8
- package/CHANGELOG.md +0 -54
|
@@ -0,0 +1,797 @@
|
|
|
1
|
+
import * as $protobuf from 'protobufjs';
|
|
2
|
+
import Long = require('long');
|
|
3
|
+
/** Properties of a Memo. */
|
|
4
|
+
export interface IMemo {
|
|
5
|
+
/** Memo memo */
|
|
6
|
+
memo?: number | Long | null;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Represents a Memo. */
|
|
10
|
+
export class Memo implements IMemo {
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new Memo.
|
|
13
|
+
* @param [properties] Properties to set
|
|
14
|
+
*/
|
|
15
|
+
constructor(properties?: IMemo);
|
|
16
|
+
|
|
17
|
+
/** Memo memo. */
|
|
18
|
+
public memo: number | Long;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new Memo instance using the specified properties.
|
|
22
|
+
* @param [properties] Properties to set
|
|
23
|
+
* @returns Memo instance
|
|
24
|
+
*/
|
|
25
|
+
public static create(properties?: IMemo): Memo;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Encodes the specified Memo message. Does not implicitly {@link Memo.verify|verify} messages.
|
|
29
|
+
* @param message Memo message or plain object to encode
|
|
30
|
+
* @param [writer] Writer to encode to
|
|
31
|
+
* @returns Writer
|
|
32
|
+
*/
|
|
33
|
+
public static encode(message: IMemo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Encodes the specified Memo message, length delimited. Does not implicitly {@link Memo.verify|verify} messages.
|
|
37
|
+
* @param message Memo message or plain object to encode
|
|
38
|
+
* @param [writer] Writer to encode to
|
|
39
|
+
* @returns Writer
|
|
40
|
+
*/
|
|
41
|
+
public static encodeDelimited(message: IMemo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Decodes a Memo message from the specified reader or buffer.
|
|
45
|
+
* @param reader Reader or buffer to decode from
|
|
46
|
+
* @param [length] Message length if known beforehand
|
|
47
|
+
* @returns Memo
|
|
48
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50
|
+
*/
|
|
51
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Memo;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Decodes a Memo message from the specified reader or buffer, length delimited.
|
|
55
|
+
* @param reader Reader or buffer to decode from
|
|
56
|
+
* @returns Memo
|
|
57
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59
|
+
*/
|
|
60
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Memo;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Verifies a Memo message.
|
|
64
|
+
* @param message Plain object to verify
|
|
65
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
66
|
+
*/
|
|
67
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Creates a Memo message from a plain object. Also converts values to their respective internal types.
|
|
71
|
+
* @param object Plain object
|
|
72
|
+
* @returns Memo
|
|
73
|
+
*/
|
|
74
|
+
public static fromObject(object: { [k: string]: any }): Memo;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Creates a plain object from a Memo message. Also converts values to other types if specified.
|
|
78
|
+
* @param message Memo
|
|
79
|
+
* @param [options] Conversion options
|
|
80
|
+
* @returns Plain object
|
|
81
|
+
*/
|
|
82
|
+
public static toObject(message: Memo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Converts this Memo to JSON.
|
|
86
|
+
* @returns JSON object
|
|
87
|
+
*/
|
|
88
|
+
public toJSON(): { [k: string]: any };
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Gets the default type url for Memo
|
|
92
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
93
|
+
* @returns The default type url
|
|
94
|
+
*/
|
|
95
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Properties of a Tokens. */
|
|
99
|
+
export interface ITokens {
|
|
100
|
+
/** Tokens e8s */
|
|
101
|
+
e8s?: number | Long | null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Represents a Tokens. */
|
|
105
|
+
export class Tokens implements ITokens {
|
|
106
|
+
/**
|
|
107
|
+
* Constructs a new Tokens.
|
|
108
|
+
* @param [properties] Properties to set
|
|
109
|
+
*/
|
|
110
|
+
constructor(properties?: ITokens);
|
|
111
|
+
|
|
112
|
+
/** Tokens e8s. */
|
|
113
|
+
public e8s: number | Long;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Creates a new Tokens instance using the specified properties.
|
|
117
|
+
* @param [properties] Properties to set
|
|
118
|
+
* @returns Tokens instance
|
|
119
|
+
*/
|
|
120
|
+
public static create(properties?: ITokens): Tokens;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Encodes the specified Tokens message. Does not implicitly {@link Tokens.verify|verify} messages.
|
|
124
|
+
* @param message Tokens message or plain object to encode
|
|
125
|
+
* @param [writer] Writer to encode to
|
|
126
|
+
* @returns Writer
|
|
127
|
+
*/
|
|
128
|
+
public static encode(message: ITokens, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Encodes the specified Tokens message, length delimited. Does not implicitly {@link Tokens.verify|verify} messages.
|
|
132
|
+
* @param message Tokens message or plain object to encode
|
|
133
|
+
* @param [writer] Writer to encode to
|
|
134
|
+
* @returns Writer
|
|
135
|
+
*/
|
|
136
|
+
public static encodeDelimited(message: ITokens, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Decodes a Tokens message from the specified reader or buffer.
|
|
140
|
+
* @param reader Reader or buffer to decode from
|
|
141
|
+
* @param [length] Message length if known beforehand
|
|
142
|
+
* @returns Tokens
|
|
143
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
144
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
145
|
+
*/
|
|
146
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Decodes a Tokens message from the specified reader or buffer, length delimited.
|
|
150
|
+
* @param reader Reader or buffer to decode from
|
|
151
|
+
* @returns Tokens
|
|
152
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
153
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
154
|
+
*/
|
|
155
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Verifies a Tokens message.
|
|
159
|
+
* @param message Plain object to verify
|
|
160
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
161
|
+
*/
|
|
162
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Creates a Tokens message from a plain object. Also converts values to their respective internal types.
|
|
166
|
+
* @param object Plain object
|
|
167
|
+
* @returns Tokens
|
|
168
|
+
*/
|
|
169
|
+
public static fromObject(object: { [k: string]: any }): Tokens;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Creates a plain object from a Tokens message. Also converts values to other types if specified.
|
|
173
|
+
* @param message Tokens
|
|
174
|
+
* @param [options] Conversion options
|
|
175
|
+
* @returns Plain object
|
|
176
|
+
*/
|
|
177
|
+
public static toObject(message: Tokens, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Converts this Tokens to JSON.
|
|
181
|
+
* @returns JSON object
|
|
182
|
+
*/
|
|
183
|
+
public toJSON(): { [k: string]: any };
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Gets the default type url for Tokens
|
|
187
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
188
|
+
* @returns The default type url
|
|
189
|
+
*/
|
|
190
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** Properties of a Payment. */
|
|
194
|
+
export interface IPayment {
|
|
195
|
+
/** Payment receiverGets */
|
|
196
|
+
receiverGets?: ITokens | null;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** Represents a Payment. */
|
|
200
|
+
export class Payment implements IPayment {
|
|
201
|
+
/**
|
|
202
|
+
* Constructs a new Payment.
|
|
203
|
+
* @param [properties] Properties to set
|
|
204
|
+
*/
|
|
205
|
+
constructor(properties?: IPayment);
|
|
206
|
+
|
|
207
|
+
/** Payment receiverGets. */
|
|
208
|
+
public receiverGets?: ITokens | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Creates a new Payment instance using the specified properties.
|
|
212
|
+
* @param [properties] Properties to set
|
|
213
|
+
* @returns Payment instance
|
|
214
|
+
*/
|
|
215
|
+
public static create(properties?: IPayment): Payment;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Encodes the specified Payment message. Does not implicitly {@link Payment.verify|verify} messages.
|
|
219
|
+
* @param message Payment message or plain object to encode
|
|
220
|
+
* @param [writer] Writer to encode to
|
|
221
|
+
* @returns Writer
|
|
222
|
+
*/
|
|
223
|
+
public static encode(message: IPayment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Encodes the specified Payment message, length delimited. Does not implicitly {@link Payment.verify|verify} messages.
|
|
227
|
+
* @param message Payment message or plain object to encode
|
|
228
|
+
* @param [writer] Writer to encode to
|
|
229
|
+
* @returns Writer
|
|
230
|
+
*/
|
|
231
|
+
public static encodeDelimited(message: IPayment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Decodes a Payment message from the specified reader or buffer.
|
|
235
|
+
* @param reader Reader or buffer to decode from
|
|
236
|
+
* @param [length] Message length if known beforehand
|
|
237
|
+
* @returns Payment
|
|
238
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
239
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
240
|
+
*/
|
|
241
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Payment;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Decodes a Payment message from the specified reader or buffer, length delimited.
|
|
245
|
+
* @param reader Reader or buffer to decode from
|
|
246
|
+
* @returns Payment
|
|
247
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
248
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
249
|
+
*/
|
|
250
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Payment;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Verifies a Payment message.
|
|
254
|
+
* @param message Plain object to verify
|
|
255
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
256
|
+
*/
|
|
257
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Creates a Payment message from a plain object. Also converts values to their respective internal types.
|
|
261
|
+
* @param object Plain object
|
|
262
|
+
* @returns Payment
|
|
263
|
+
*/
|
|
264
|
+
public static fromObject(object: { [k: string]: any }): Payment;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Creates a plain object from a Payment message. Also converts values to other types if specified.
|
|
268
|
+
* @param message Payment
|
|
269
|
+
* @param [options] Conversion options
|
|
270
|
+
* @returns Plain object
|
|
271
|
+
*/
|
|
272
|
+
public static toObject(message: Payment, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Converts this Payment to JSON.
|
|
276
|
+
* @returns JSON object
|
|
277
|
+
*/
|
|
278
|
+
public toJSON(): { [k: string]: any };
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Gets the default type url for Payment
|
|
282
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
283
|
+
* @returns The default type url
|
|
284
|
+
*/
|
|
285
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** Properties of a Subaccount. */
|
|
289
|
+
export interface ISubaccount {
|
|
290
|
+
/** Subaccount subAccount */
|
|
291
|
+
subAccount?: Uint8Array | null;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/** Represents a Subaccount. */
|
|
295
|
+
export class Subaccount implements ISubaccount {
|
|
296
|
+
/**
|
|
297
|
+
* Constructs a new Subaccount.
|
|
298
|
+
* @param [properties] Properties to set
|
|
299
|
+
*/
|
|
300
|
+
constructor(properties?: ISubaccount);
|
|
301
|
+
|
|
302
|
+
/** Subaccount subAccount. */
|
|
303
|
+
public subAccount: Uint8Array;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Creates a new Subaccount instance using the specified properties.
|
|
307
|
+
* @param [properties] Properties to set
|
|
308
|
+
* @returns Subaccount instance
|
|
309
|
+
*/
|
|
310
|
+
public static create(properties?: ISubaccount): Subaccount;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Encodes the specified Subaccount message. Does not implicitly {@link Subaccount.verify|verify} messages.
|
|
314
|
+
* @param message Subaccount message or plain object to encode
|
|
315
|
+
* @param [writer] Writer to encode to
|
|
316
|
+
* @returns Writer
|
|
317
|
+
*/
|
|
318
|
+
public static encode(message: ISubaccount, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Encodes the specified Subaccount message, length delimited. Does not implicitly {@link Subaccount.verify|verify} messages.
|
|
322
|
+
* @param message Subaccount message or plain object to encode
|
|
323
|
+
* @param [writer] Writer to encode to
|
|
324
|
+
* @returns Writer
|
|
325
|
+
*/
|
|
326
|
+
public static encodeDelimited(message: ISubaccount, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Decodes a Subaccount message from the specified reader or buffer.
|
|
330
|
+
* @param reader Reader or buffer to decode from
|
|
331
|
+
* @param [length] Message length if known beforehand
|
|
332
|
+
* @returns Subaccount
|
|
333
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
334
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
335
|
+
*/
|
|
336
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Subaccount;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Decodes a Subaccount message from the specified reader or buffer, length delimited.
|
|
340
|
+
* @param reader Reader or buffer to decode from
|
|
341
|
+
* @returns Subaccount
|
|
342
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
343
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
344
|
+
*/
|
|
345
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Subaccount;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Verifies a Subaccount message.
|
|
349
|
+
* @param message Plain object to verify
|
|
350
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
351
|
+
*/
|
|
352
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Creates a Subaccount message from a plain object. Also converts values to their respective internal types.
|
|
356
|
+
* @param object Plain object
|
|
357
|
+
* @returns Subaccount
|
|
358
|
+
*/
|
|
359
|
+
public static fromObject(object: { [k: string]: any }): Subaccount;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Creates a plain object from a Subaccount message. Also converts values to other types if specified.
|
|
363
|
+
* @param message Subaccount
|
|
364
|
+
* @param [options] Conversion options
|
|
365
|
+
* @returns Plain object
|
|
366
|
+
*/
|
|
367
|
+
public static toObject(message: Subaccount, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Converts this Subaccount to JSON.
|
|
371
|
+
* @returns JSON object
|
|
372
|
+
*/
|
|
373
|
+
public toJSON(): { [k: string]: any };
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Gets the default type url for Subaccount
|
|
377
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
378
|
+
* @returns The default type url
|
|
379
|
+
*/
|
|
380
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/** Properties of an AccountIdentifier. */
|
|
384
|
+
export interface IAccountIdentifier {
|
|
385
|
+
/** AccountIdentifier hash */
|
|
386
|
+
hash?: Uint8Array | null;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/** Represents an AccountIdentifier. */
|
|
390
|
+
export class AccountIdentifier implements IAccountIdentifier {
|
|
391
|
+
/**
|
|
392
|
+
* Constructs a new AccountIdentifier.
|
|
393
|
+
* @param [properties] Properties to set
|
|
394
|
+
*/
|
|
395
|
+
constructor(properties?: IAccountIdentifier);
|
|
396
|
+
|
|
397
|
+
/** AccountIdentifier hash. */
|
|
398
|
+
public hash: Uint8Array;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Creates a new AccountIdentifier instance using the specified properties.
|
|
402
|
+
* @param [properties] Properties to set
|
|
403
|
+
* @returns AccountIdentifier instance
|
|
404
|
+
*/
|
|
405
|
+
public static create(properties?: IAccountIdentifier): AccountIdentifier;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Encodes the specified AccountIdentifier message. Does not implicitly {@link AccountIdentifier.verify|verify} messages.
|
|
409
|
+
* @param message AccountIdentifier message or plain object to encode
|
|
410
|
+
* @param [writer] Writer to encode to
|
|
411
|
+
* @returns Writer
|
|
412
|
+
*/
|
|
413
|
+
public static encode(message: IAccountIdentifier, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Encodes the specified AccountIdentifier message, length delimited. Does not implicitly {@link AccountIdentifier.verify|verify} messages.
|
|
417
|
+
* @param message AccountIdentifier message or plain object to encode
|
|
418
|
+
* @param [writer] Writer to encode to
|
|
419
|
+
* @returns Writer
|
|
420
|
+
*/
|
|
421
|
+
public static encodeDelimited(message: IAccountIdentifier, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Decodes an AccountIdentifier message from the specified reader or buffer.
|
|
425
|
+
* @param reader Reader or buffer to decode from
|
|
426
|
+
* @param [length] Message length if known beforehand
|
|
427
|
+
* @returns AccountIdentifier
|
|
428
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
429
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
430
|
+
*/
|
|
431
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountIdentifier;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Decodes an AccountIdentifier message from the specified reader or buffer, length delimited.
|
|
435
|
+
* @param reader Reader or buffer to decode from
|
|
436
|
+
* @returns AccountIdentifier
|
|
437
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
438
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
439
|
+
*/
|
|
440
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountIdentifier;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Verifies an AccountIdentifier message.
|
|
444
|
+
* @param message Plain object to verify
|
|
445
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
446
|
+
*/
|
|
447
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Creates an AccountIdentifier message from a plain object. Also converts values to their respective internal types.
|
|
451
|
+
* @param object Plain object
|
|
452
|
+
* @returns AccountIdentifier
|
|
453
|
+
*/
|
|
454
|
+
public static fromObject(object: { [k: string]: any }): AccountIdentifier;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Creates a plain object from an AccountIdentifier message. Also converts values to other types if specified.
|
|
458
|
+
* @param message AccountIdentifier
|
|
459
|
+
* @param [options] Conversion options
|
|
460
|
+
* @returns Plain object
|
|
461
|
+
*/
|
|
462
|
+
public static toObject(message: AccountIdentifier, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Converts this AccountIdentifier to JSON.
|
|
466
|
+
* @returns JSON object
|
|
467
|
+
*/
|
|
468
|
+
public toJSON(): { [k: string]: any };
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Gets the default type url for AccountIdentifier
|
|
472
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
473
|
+
* @returns The default type url
|
|
474
|
+
*/
|
|
475
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/** Properties of a BlockIndex. */
|
|
479
|
+
export interface IBlockIndex {
|
|
480
|
+
/** BlockIndex height */
|
|
481
|
+
height?: number | Long | null;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/** Represents a BlockIndex. */
|
|
485
|
+
export class BlockIndex implements IBlockIndex {
|
|
486
|
+
/**
|
|
487
|
+
* Constructs a new BlockIndex.
|
|
488
|
+
* @param [properties] Properties to set
|
|
489
|
+
*/
|
|
490
|
+
constructor(properties?: IBlockIndex);
|
|
491
|
+
|
|
492
|
+
/** BlockIndex height. */
|
|
493
|
+
public height: number | Long;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Creates a new BlockIndex instance using the specified properties.
|
|
497
|
+
* @param [properties] Properties to set
|
|
498
|
+
* @returns BlockIndex instance
|
|
499
|
+
*/
|
|
500
|
+
public static create(properties?: IBlockIndex): BlockIndex;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Encodes the specified BlockIndex message. Does not implicitly {@link BlockIndex.verify|verify} messages.
|
|
504
|
+
* @param message BlockIndex message or plain object to encode
|
|
505
|
+
* @param [writer] Writer to encode to
|
|
506
|
+
* @returns Writer
|
|
507
|
+
*/
|
|
508
|
+
public static encode(message: IBlockIndex, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Encodes the specified BlockIndex message, length delimited. Does not implicitly {@link BlockIndex.verify|verify} messages.
|
|
512
|
+
* @param message BlockIndex message or plain object to encode
|
|
513
|
+
* @param [writer] Writer to encode to
|
|
514
|
+
* @returns Writer
|
|
515
|
+
*/
|
|
516
|
+
public static encodeDelimited(message: IBlockIndex, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Decodes a BlockIndex message from the specified reader or buffer.
|
|
520
|
+
* @param reader Reader or buffer to decode from
|
|
521
|
+
* @param [length] Message length if known beforehand
|
|
522
|
+
* @returns BlockIndex
|
|
523
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
524
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
525
|
+
*/
|
|
526
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BlockIndex;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Decodes a BlockIndex message from the specified reader or buffer, length delimited.
|
|
530
|
+
* @param reader Reader or buffer to decode from
|
|
531
|
+
* @returns BlockIndex
|
|
532
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
533
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
534
|
+
*/
|
|
535
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BlockIndex;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Verifies a BlockIndex message.
|
|
539
|
+
* @param message Plain object to verify
|
|
540
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
541
|
+
*/
|
|
542
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Creates a BlockIndex message from a plain object. Also converts values to their respective internal types.
|
|
546
|
+
* @param object Plain object
|
|
547
|
+
* @returns BlockIndex
|
|
548
|
+
*/
|
|
549
|
+
public static fromObject(object: { [k: string]: any }): BlockIndex;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Creates a plain object from a BlockIndex message. Also converts values to other types if specified.
|
|
553
|
+
* @param message BlockIndex
|
|
554
|
+
* @param [options] Conversion options
|
|
555
|
+
* @returns Plain object
|
|
556
|
+
*/
|
|
557
|
+
public static toObject(message: BlockIndex, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Converts this BlockIndex to JSON.
|
|
561
|
+
* @returns JSON object
|
|
562
|
+
*/
|
|
563
|
+
public toJSON(): { [k: string]: any };
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Gets the default type url for BlockIndex
|
|
567
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
568
|
+
* @returns The default type url
|
|
569
|
+
*/
|
|
570
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/** Properties of a TimeStamp. */
|
|
574
|
+
export interface ITimeStamp {
|
|
575
|
+
/** TimeStamp timestampNanos */
|
|
576
|
+
timestampNanos?: number | Long | null;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/** Represents a TimeStamp. */
|
|
580
|
+
export class TimeStamp implements ITimeStamp {
|
|
581
|
+
/**
|
|
582
|
+
* Constructs a new TimeStamp.
|
|
583
|
+
* @param [properties] Properties to set
|
|
584
|
+
*/
|
|
585
|
+
constructor(properties?: ITimeStamp);
|
|
586
|
+
|
|
587
|
+
/** TimeStamp timestampNanos. */
|
|
588
|
+
public timestampNanos: number | Long;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Creates a new TimeStamp instance using the specified properties.
|
|
592
|
+
* @param [properties] Properties to set
|
|
593
|
+
* @returns TimeStamp instance
|
|
594
|
+
*/
|
|
595
|
+
public static create(properties?: ITimeStamp): TimeStamp;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Encodes the specified TimeStamp message. Does not implicitly {@link TimeStamp.verify|verify} messages.
|
|
599
|
+
* @param message TimeStamp message or plain object to encode
|
|
600
|
+
* @param [writer] Writer to encode to
|
|
601
|
+
* @returns Writer
|
|
602
|
+
*/
|
|
603
|
+
public static encode(message: ITimeStamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Encodes the specified TimeStamp message, length delimited. Does not implicitly {@link TimeStamp.verify|verify} messages.
|
|
607
|
+
* @param message TimeStamp message or plain object to encode
|
|
608
|
+
* @param [writer] Writer to encode to
|
|
609
|
+
* @returns Writer
|
|
610
|
+
*/
|
|
611
|
+
public static encodeDelimited(message: ITimeStamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Decodes a TimeStamp message from the specified reader or buffer.
|
|
615
|
+
* @param reader Reader or buffer to decode from
|
|
616
|
+
* @param [length] Message length if known beforehand
|
|
617
|
+
* @returns TimeStamp
|
|
618
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
619
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
620
|
+
*/
|
|
621
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): TimeStamp;
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Decodes a TimeStamp message from the specified reader or buffer, length delimited.
|
|
625
|
+
* @param reader Reader or buffer to decode from
|
|
626
|
+
* @returns TimeStamp
|
|
627
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
628
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
629
|
+
*/
|
|
630
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): TimeStamp;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Verifies a TimeStamp message.
|
|
634
|
+
* @param message Plain object to verify
|
|
635
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
636
|
+
*/
|
|
637
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Creates a TimeStamp message from a plain object. Also converts values to their respective internal types.
|
|
641
|
+
* @param object Plain object
|
|
642
|
+
* @returns TimeStamp
|
|
643
|
+
*/
|
|
644
|
+
public static fromObject(object: { [k: string]: any }): TimeStamp;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Creates a plain object from a TimeStamp message. Also converts values to other types if specified.
|
|
648
|
+
* @param message TimeStamp
|
|
649
|
+
* @param [options] Conversion options
|
|
650
|
+
* @returns Plain object
|
|
651
|
+
*/
|
|
652
|
+
public static toObject(message: TimeStamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Converts this TimeStamp to JSON.
|
|
656
|
+
* @returns JSON object
|
|
657
|
+
*/
|
|
658
|
+
public toJSON(): { [k: string]: any };
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Gets the default type url for TimeStamp
|
|
662
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
663
|
+
* @returns The default type url
|
|
664
|
+
*/
|
|
665
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/** Properties of a SendRequest. */
|
|
669
|
+
export interface ISendRequest {
|
|
670
|
+
/** SendRequest memo */
|
|
671
|
+
memo?: IMemo | null;
|
|
672
|
+
|
|
673
|
+
/** SendRequest payment */
|
|
674
|
+
payment?: IPayment | null;
|
|
675
|
+
|
|
676
|
+
/** SendRequest maxFee */
|
|
677
|
+
maxFee?: ITokens | null;
|
|
678
|
+
|
|
679
|
+
/** SendRequest fromSubaccount */
|
|
680
|
+
fromSubaccount?: ISubaccount | null;
|
|
681
|
+
|
|
682
|
+
/** SendRequest to */
|
|
683
|
+
to?: IAccountIdentifier | null;
|
|
684
|
+
|
|
685
|
+
/** SendRequest createdAt */
|
|
686
|
+
createdAt?: IBlockIndex | null;
|
|
687
|
+
|
|
688
|
+
/** SendRequest createdAtTime */
|
|
689
|
+
createdAtTime?: ITimeStamp | null;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/** Represents a SendRequest. */
|
|
693
|
+
export class SendRequest implements ISendRequest {
|
|
694
|
+
/**
|
|
695
|
+
* Constructs a new SendRequest.
|
|
696
|
+
* @param [properties] Properties to set
|
|
697
|
+
*/
|
|
698
|
+
constructor(properties?: ISendRequest);
|
|
699
|
+
|
|
700
|
+
/** SendRequest memo. */
|
|
701
|
+
public memo?: IMemo | null;
|
|
702
|
+
|
|
703
|
+
/** SendRequest payment. */
|
|
704
|
+
public payment?: IPayment | null;
|
|
705
|
+
|
|
706
|
+
/** SendRequest maxFee. */
|
|
707
|
+
public maxFee?: ITokens | null;
|
|
708
|
+
|
|
709
|
+
/** SendRequest fromSubaccount. */
|
|
710
|
+
public fromSubaccount?: ISubaccount | null;
|
|
711
|
+
|
|
712
|
+
/** SendRequest to. */
|
|
713
|
+
public to?: IAccountIdentifier | null;
|
|
714
|
+
|
|
715
|
+
/** SendRequest createdAt. */
|
|
716
|
+
public createdAt?: IBlockIndex | null;
|
|
717
|
+
|
|
718
|
+
/** SendRequest createdAtTime. */
|
|
719
|
+
public createdAtTime?: ITimeStamp | null;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Creates a new SendRequest instance using the specified properties.
|
|
723
|
+
* @param [properties] Properties to set
|
|
724
|
+
* @returns SendRequest instance
|
|
725
|
+
*/
|
|
726
|
+
public static create(properties?: ISendRequest): SendRequest;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Encodes the specified SendRequest message. Does not implicitly {@link SendRequest.verify|verify} messages.
|
|
730
|
+
* @param message SendRequest message or plain object to encode
|
|
731
|
+
* @param [writer] Writer to encode to
|
|
732
|
+
* @returns Writer
|
|
733
|
+
*/
|
|
734
|
+
public static encode(message: ISendRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Encodes the specified SendRequest message, length delimited. Does not implicitly {@link SendRequest.verify|verify} messages.
|
|
738
|
+
* @param message SendRequest message or plain object to encode
|
|
739
|
+
* @param [writer] Writer to encode to
|
|
740
|
+
* @returns Writer
|
|
741
|
+
*/
|
|
742
|
+
public static encodeDelimited(message: ISendRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Decodes a SendRequest message from the specified reader or buffer.
|
|
746
|
+
* @param reader Reader or buffer to decode from
|
|
747
|
+
* @param [length] Message length if known beforehand
|
|
748
|
+
* @returns SendRequest
|
|
749
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
750
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
751
|
+
*/
|
|
752
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SendRequest;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Decodes a SendRequest message from the specified reader or buffer, length delimited.
|
|
756
|
+
* @param reader Reader or buffer to decode from
|
|
757
|
+
* @returns SendRequest
|
|
758
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
759
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
760
|
+
*/
|
|
761
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SendRequest;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Verifies a SendRequest message.
|
|
765
|
+
* @param message Plain object to verify
|
|
766
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
767
|
+
*/
|
|
768
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Creates a SendRequest message from a plain object. Also converts values to their respective internal types.
|
|
772
|
+
* @param object Plain object
|
|
773
|
+
* @returns SendRequest
|
|
774
|
+
*/
|
|
775
|
+
public static fromObject(object: { [k: string]: any }): SendRequest;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Creates a plain object from a SendRequest message. Also converts values to other types if specified.
|
|
779
|
+
* @param message SendRequest
|
|
780
|
+
* @param [options] Conversion options
|
|
781
|
+
* @returns Plain object
|
|
782
|
+
*/
|
|
783
|
+
public static toObject(message: SendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Converts this SendRequest to JSON.
|
|
787
|
+
* @returns JSON object
|
|
788
|
+
*/
|
|
789
|
+
public toJSON(): { [k: string]: any };
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Gets the default type url for SendRequest
|
|
793
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
794
|
+
* @returns The default type url
|
|
795
|
+
*/
|
|
796
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
797
|
+
}
|