@trustwallet/wallet-core 3.1.7 → 3.1.9
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/generated/core_proto.d.ts +301 -0
- package/dist/generated/core_proto.js +925 -0
- package/dist/lib/wallet-core.js +11 -11
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +28 -0
- package/package.json +1 -1
@@ -26244,6 +26244,307 @@ export namespace TW {
|
|
26244
26244
|
}
|
26245
26245
|
}
|
26246
26246
|
|
26247
|
+
/** Namespace TheOpenNetwork. */
|
26248
|
+
namespace TheOpenNetwork {
|
26249
|
+
|
26250
|
+
/** Namespace Proto. */
|
26251
|
+
namespace Proto {
|
26252
|
+
|
26253
|
+
/** WalletVersion enum. */
|
26254
|
+
enum WalletVersion {
|
26255
|
+
WALLET_V3_R1 = 0,
|
26256
|
+
WALLET_V3_R2 = 1,
|
26257
|
+
WALLET_V4_R2 = 2
|
26258
|
+
}
|
26259
|
+
|
26260
|
+
/** SendMode enum. */
|
26261
|
+
enum SendMode {
|
26262
|
+
DEFAULT = 0,
|
26263
|
+
PAY_FEES_SEPARATELY = 1,
|
26264
|
+
IGNORE_ACTION_PHASE_ERRORS = 2,
|
26265
|
+
DESTROY_ON_ZERO_BALANCE = 32,
|
26266
|
+
ATTACH_ALL_INBOUND_MESSAGE_VALUE = 64,
|
26267
|
+
ATTACH_ALL_CONTRACT_BALANCE = 128
|
26268
|
+
}
|
26269
|
+
|
26270
|
+
/** Properties of a Transfer. */
|
26271
|
+
interface ITransfer {
|
26272
|
+
|
26273
|
+
/** Transfer walletVersion */
|
26274
|
+
walletVersion?: (TW.TheOpenNetwork.Proto.WalletVersion|null);
|
26275
|
+
|
26276
|
+
/** Transfer dest */
|
26277
|
+
dest?: (string|null);
|
26278
|
+
|
26279
|
+
/** Transfer amount */
|
26280
|
+
amount?: (Long|null);
|
26281
|
+
|
26282
|
+
/** Transfer sequenceNumber */
|
26283
|
+
sequenceNumber?: (number|null);
|
26284
|
+
|
26285
|
+
/** Transfer mode */
|
26286
|
+
mode?: (number|null);
|
26287
|
+
|
26288
|
+
/** Transfer expireAt */
|
26289
|
+
expireAt?: (number|null);
|
26290
|
+
|
26291
|
+
/** Transfer comment */
|
26292
|
+
comment?: (string|null);
|
26293
|
+
}
|
26294
|
+
|
26295
|
+
/** Represents a Transfer. */
|
26296
|
+
class Transfer implements ITransfer {
|
26297
|
+
|
26298
|
+
/**
|
26299
|
+
* Constructs a new Transfer.
|
26300
|
+
* @param [properties] Properties to set
|
26301
|
+
*/
|
26302
|
+
constructor(properties?: TW.TheOpenNetwork.Proto.ITransfer);
|
26303
|
+
|
26304
|
+
/** Transfer walletVersion. */
|
26305
|
+
public walletVersion: TW.TheOpenNetwork.Proto.WalletVersion;
|
26306
|
+
|
26307
|
+
/** Transfer dest. */
|
26308
|
+
public dest: string;
|
26309
|
+
|
26310
|
+
/** Transfer amount. */
|
26311
|
+
public amount: Long;
|
26312
|
+
|
26313
|
+
/** Transfer sequenceNumber. */
|
26314
|
+
public sequenceNumber: number;
|
26315
|
+
|
26316
|
+
/** Transfer mode. */
|
26317
|
+
public mode: number;
|
26318
|
+
|
26319
|
+
/** Transfer expireAt. */
|
26320
|
+
public expireAt: number;
|
26321
|
+
|
26322
|
+
/** Transfer comment. */
|
26323
|
+
public comment: string;
|
26324
|
+
|
26325
|
+
/**
|
26326
|
+
* Creates a new Transfer instance using the specified properties.
|
26327
|
+
* @param [properties] Properties to set
|
26328
|
+
* @returns Transfer instance
|
26329
|
+
*/
|
26330
|
+
public static create(properties?: TW.TheOpenNetwork.Proto.ITransfer): TW.TheOpenNetwork.Proto.Transfer;
|
26331
|
+
|
26332
|
+
/**
|
26333
|
+
* Encodes the specified Transfer message. Does not implicitly {@link TW.TheOpenNetwork.Proto.Transfer.verify|verify} messages.
|
26334
|
+
* @param message Transfer message or plain object to encode
|
26335
|
+
* @param [writer] Writer to encode to
|
26336
|
+
* @returns Writer
|
26337
|
+
*/
|
26338
|
+
public static encode(message: TW.TheOpenNetwork.Proto.ITransfer, writer?: $protobuf.Writer): $protobuf.Writer;
|
26339
|
+
|
26340
|
+
/**
|
26341
|
+
* Decodes a Transfer message from the specified reader or buffer.
|
26342
|
+
* @param reader Reader or buffer to decode from
|
26343
|
+
* @param [length] Message length if known beforehand
|
26344
|
+
* @returns Transfer
|
26345
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
26346
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
26347
|
+
*/
|
26348
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.TheOpenNetwork.Proto.Transfer;
|
26349
|
+
|
26350
|
+
/**
|
26351
|
+
* Verifies a Transfer message.
|
26352
|
+
* @param message Plain object to verify
|
26353
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
26354
|
+
*/
|
26355
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
26356
|
+
|
26357
|
+
/**
|
26358
|
+
* Creates a Transfer message from a plain object. Also converts values to their respective internal types.
|
26359
|
+
* @param object Plain object
|
26360
|
+
* @returns Transfer
|
26361
|
+
*/
|
26362
|
+
public static fromObject(object: { [k: string]: any }): TW.TheOpenNetwork.Proto.Transfer;
|
26363
|
+
|
26364
|
+
/**
|
26365
|
+
* Creates a plain object from a Transfer message. Also converts values to other types if specified.
|
26366
|
+
* @param message Transfer
|
26367
|
+
* @param [options] Conversion options
|
26368
|
+
* @returns Plain object
|
26369
|
+
*/
|
26370
|
+
public static toObject(message: TW.TheOpenNetwork.Proto.Transfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
26371
|
+
|
26372
|
+
/**
|
26373
|
+
* Converts this Transfer to JSON.
|
26374
|
+
* @returns JSON object
|
26375
|
+
*/
|
26376
|
+
public toJSON(): { [k: string]: any };
|
26377
|
+
}
|
26378
|
+
|
26379
|
+
/** Properties of a SigningInput. */
|
26380
|
+
interface ISigningInput {
|
26381
|
+
|
26382
|
+
/** SigningInput privateKey */
|
26383
|
+
privateKey?: (Uint8Array|null);
|
26384
|
+
|
26385
|
+
/** SigningInput transfer */
|
26386
|
+
transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
|
26387
|
+
}
|
26388
|
+
|
26389
|
+
/** Represents a SigningInput. */
|
26390
|
+
class SigningInput implements ISigningInput {
|
26391
|
+
|
26392
|
+
/**
|
26393
|
+
* Constructs a new SigningInput.
|
26394
|
+
* @param [properties] Properties to set
|
26395
|
+
*/
|
26396
|
+
constructor(properties?: TW.TheOpenNetwork.Proto.ISigningInput);
|
26397
|
+
|
26398
|
+
/** SigningInput privateKey. */
|
26399
|
+
public privateKey: Uint8Array;
|
26400
|
+
|
26401
|
+
/** SigningInput transfer. */
|
26402
|
+
public transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
|
26403
|
+
|
26404
|
+
/** SigningInput actionOneof. */
|
26405
|
+
public actionOneof?: "transfer";
|
26406
|
+
|
26407
|
+
/**
|
26408
|
+
* Creates a new SigningInput instance using the specified properties.
|
26409
|
+
* @param [properties] Properties to set
|
26410
|
+
* @returns SigningInput instance
|
26411
|
+
*/
|
26412
|
+
public static create(properties?: TW.TheOpenNetwork.Proto.ISigningInput): TW.TheOpenNetwork.Proto.SigningInput;
|
26413
|
+
|
26414
|
+
/**
|
26415
|
+
* Encodes the specified SigningInput message. Does not implicitly {@link TW.TheOpenNetwork.Proto.SigningInput.verify|verify} messages.
|
26416
|
+
* @param message SigningInput message or plain object to encode
|
26417
|
+
* @param [writer] Writer to encode to
|
26418
|
+
* @returns Writer
|
26419
|
+
*/
|
26420
|
+
public static encode(message: TW.TheOpenNetwork.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
26421
|
+
|
26422
|
+
/**
|
26423
|
+
* Decodes a SigningInput message from the specified reader or buffer.
|
26424
|
+
* @param reader Reader or buffer to decode from
|
26425
|
+
* @param [length] Message length if known beforehand
|
26426
|
+
* @returns SigningInput
|
26427
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
26428
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
26429
|
+
*/
|
26430
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.TheOpenNetwork.Proto.SigningInput;
|
26431
|
+
|
26432
|
+
/**
|
26433
|
+
* Verifies a SigningInput message.
|
26434
|
+
* @param message Plain object to verify
|
26435
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
26436
|
+
*/
|
26437
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
26438
|
+
|
26439
|
+
/**
|
26440
|
+
* Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
|
26441
|
+
* @param object Plain object
|
26442
|
+
* @returns SigningInput
|
26443
|
+
*/
|
26444
|
+
public static fromObject(object: { [k: string]: any }): TW.TheOpenNetwork.Proto.SigningInput;
|
26445
|
+
|
26446
|
+
/**
|
26447
|
+
* Creates a plain object from a SigningInput message. Also converts values to other types if specified.
|
26448
|
+
* @param message SigningInput
|
26449
|
+
* @param [options] Conversion options
|
26450
|
+
* @returns Plain object
|
26451
|
+
*/
|
26452
|
+
public static toObject(message: TW.TheOpenNetwork.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
26453
|
+
|
26454
|
+
/**
|
26455
|
+
* Converts this SigningInput to JSON.
|
26456
|
+
* @returns JSON object
|
26457
|
+
*/
|
26458
|
+
public toJSON(): { [k: string]: any };
|
26459
|
+
}
|
26460
|
+
|
26461
|
+
/** Properties of a SigningOutput. */
|
26462
|
+
interface ISigningOutput {
|
26463
|
+
|
26464
|
+
/** SigningOutput encoded */
|
26465
|
+
encoded?: (string|null);
|
26466
|
+
|
26467
|
+
/** SigningOutput error */
|
26468
|
+
error?: (TW.Common.Proto.SigningError|null);
|
26469
|
+
|
26470
|
+
/** SigningOutput errorMessage */
|
26471
|
+
errorMessage?: (string|null);
|
26472
|
+
}
|
26473
|
+
|
26474
|
+
/** Represents a SigningOutput. */
|
26475
|
+
class SigningOutput implements ISigningOutput {
|
26476
|
+
|
26477
|
+
/**
|
26478
|
+
* Constructs a new SigningOutput.
|
26479
|
+
* @param [properties] Properties to set
|
26480
|
+
*/
|
26481
|
+
constructor(properties?: TW.TheOpenNetwork.Proto.ISigningOutput);
|
26482
|
+
|
26483
|
+
/** SigningOutput encoded. */
|
26484
|
+
public encoded: string;
|
26485
|
+
|
26486
|
+
/** SigningOutput error. */
|
26487
|
+
public error: TW.Common.Proto.SigningError;
|
26488
|
+
|
26489
|
+
/** SigningOutput errorMessage. */
|
26490
|
+
public errorMessage: string;
|
26491
|
+
|
26492
|
+
/**
|
26493
|
+
* Creates a new SigningOutput instance using the specified properties.
|
26494
|
+
* @param [properties] Properties to set
|
26495
|
+
* @returns SigningOutput instance
|
26496
|
+
*/
|
26497
|
+
public static create(properties?: TW.TheOpenNetwork.Proto.ISigningOutput): TW.TheOpenNetwork.Proto.SigningOutput;
|
26498
|
+
|
26499
|
+
/**
|
26500
|
+
* Encodes the specified SigningOutput message. Does not implicitly {@link TW.TheOpenNetwork.Proto.SigningOutput.verify|verify} messages.
|
26501
|
+
* @param message SigningOutput message or plain object to encode
|
26502
|
+
* @param [writer] Writer to encode to
|
26503
|
+
* @returns Writer
|
26504
|
+
*/
|
26505
|
+
public static encode(message: TW.TheOpenNetwork.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
26506
|
+
|
26507
|
+
/**
|
26508
|
+
* Decodes a SigningOutput message from the specified reader or buffer.
|
26509
|
+
* @param reader Reader or buffer to decode from
|
26510
|
+
* @param [length] Message length if known beforehand
|
26511
|
+
* @returns SigningOutput
|
26512
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
26513
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
26514
|
+
*/
|
26515
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.TheOpenNetwork.Proto.SigningOutput;
|
26516
|
+
|
26517
|
+
/**
|
26518
|
+
* Verifies a SigningOutput message.
|
26519
|
+
* @param message Plain object to verify
|
26520
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
26521
|
+
*/
|
26522
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
26523
|
+
|
26524
|
+
/**
|
26525
|
+
* Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
|
26526
|
+
* @param object Plain object
|
26527
|
+
* @returns SigningOutput
|
26528
|
+
*/
|
26529
|
+
public static fromObject(object: { [k: string]: any }): TW.TheOpenNetwork.Proto.SigningOutput;
|
26530
|
+
|
26531
|
+
/**
|
26532
|
+
* Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
|
26533
|
+
* @param message SigningOutput
|
26534
|
+
* @param [options] Conversion options
|
26535
|
+
* @returns Plain object
|
26536
|
+
*/
|
26537
|
+
public static toObject(message: TW.TheOpenNetwork.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
26538
|
+
|
26539
|
+
/**
|
26540
|
+
* Converts this SigningOutput to JSON.
|
26541
|
+
* @returns JSON object
|
26542
|
+
*/
|
26543
|
+
public toJSON(): { [k: string]: any };
|
26544
|
+
}
|
26545
|
+
}
|
26546
|
+
}
|
26547
|
+
|
26247
26548
|
/** Namespace Theta. */
|
26248
26549
|
namespace Theta {
|
26249
26550
|
|