@trustwallet/wallet-core 3.1.8 → 3.1.10

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.
@@ -25223,6 +25223,248 @@ export namespace TW {
25223
25223
  }
25224
25224
  }
25225
25225
 
25226
+ /** Namespace Sui. */
25227
+ namespace Sui {
25228
+
25229
+ /** Namespace Proto. */
25230
+ namespace Proto {
25231
+
25232
+ /** Properties of a SignDirect. */
25233
+ interface ISignDirect {
25234
+
25235
+ /** SignDirect unsignedTxMsg */
25236
+ unsignedTxMsg?: (string|null);
25237
+ }
25238
+
25239
+ /** Represents a SignDirect. */
25240
+ class SignDirect implements ISignDirect {
25241
+
25242
+ /**
25243
+ * Constructs a new SignDirect.
25244
+ * @param [properties] Properties to set
25245
+ */
25246
+ constructor(properties?: TW.Sui.Proto.ISignDirect);
25247
+
25248
+ /** SignDirect unsignedTxMsg. */
25249
+ public unsignedTxMsg: string;
25250
+
25251
+ /**
25252
+ * Creates a new SignDirect instance using the specified properties.
25253
+ * @param [properties] Properties to set
25254
+ * @returns SignDirect instance
25255
+ */
25256
+ public static create(properties?: TW.Sui.Proto.ISignDirect): TW.Sui.Proto.SignDirect;
25257
+
25258
+ /**
25259
+ * Encodes the specified SignDirect message. Does not implicitly {@link TW.Sui.Proto.SignDirect.verify|verify} messages.
25260
+ * @param message SignDirect message or plain object to encode
25261
+ * @param [writer] Writer to encode to
25262
+ * @returns Writer
25263
+ */
25264
+ public static encode(message: TW.Sui.Proto.ISignDirect, writer?: $protobuf.Writer): $protobuf.Writer;
25265
+
25266
+ /**
25267
+ * Decodes a SignDirect message from the specified reader or buffer.
25268
+ * @param reader Reader or buffer to decode from
25269
+ * @param [length] Message length if known beforehand
25270
+ * @returns SignDirect
25271
+ * @throws {Error} If the payload is not a reader or valid buffer
25272
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25273
+ */
25274
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.SignDirect;
25275
+
25276
+ /**
25277
+ * Verifies a SignDirect message.
25278
+ * @param message Plain object to verify
25279
+ * @returns `null` if valid, otherwise the reason why it is not
25280
+ */
25281
+ public static verify(message: { [k: string]: any }): (string|null);
25282
+
25283
+ /**
25284
+ * Creates a SignDirect message from a plain object. Also converts values to their respective internal types.
25285
+ * @param object Plain object
25286
+ * @returns SignDirect
25287
+ */
25288
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.SignDirect;
25289
+
25290
+ /**
25291
+ * Creates a plain object from a SignDirect message. Also converts values to other types if specified.
25292
+ * @param message SignDirect
25293
+ * @param [options] Conversion options
25294
+ * @returns Plain object
25295
+ */
25296
+ public static toObject(message: TW.Sui.Proto.SignDirect, options?: $protobuf.IConversionOptions): { [k: string]: any };
25297
+
25298
+ /**
25299
+ * Converts this SignDirect to JSON.
25300
+ * @returns JSON object
25301
+ */
25302
+ public toJSON(): { [k: string]: any };
25303
+ }
25304
+
25305
+ /** Properties of a SigningInput. */
25306
+ interface ISigningInput {
25307
+
25308
+ /** SigningInput privateKey */
25309
+ privateKey?: (Uint8Array|null);
25310
+
25311
+ /** SigningInput signDirectMessage */
25312
+ signDirectMessage?: (TW.Sui.Proto.ISignDirect|null);
25313
+ }
25314
+
25315
+ /** Represents a SigningInput. */
25316
+ class SigningInput implements ISigningInput {
25317
+
25318
+ /**
25319
+ * Constructs a new SigningInput.
25320
+ * @param [properties] Properties to set
25321
+ */
25322
+ constructor(properties?: TW.Sui.Proto.ISigningInput);
25323
+
25324
+ /** SigningInput privateKey. */
25325
+ public privateKey: Uint8Array;
25326
+
25327
+ /** SigningInput signDirectMessage. */
25328
+ public signDirectMessage?: (TW.Sui.Proto.ISignDirect|null);
25329
+
25330
+ /** SigningInput transactionPayload. */
25331
+ public transactionPayload?: "signDirectMessage";
25332
+
25333
+ /**
25334
+ * Creates a new SigningInput instance using the specified properties.
25335
+ * @param [properties] Properties to set
25336
+ * @returns SigningInput instance
25337
+ */
25338
+ public static create(properties?: TW.Sui.Proto.ISigningInput): TW.Sui.Proto.SigningInput;
25339
+
25340
+ /**
25341
+ * Encodes the specified SigningInput message. Does not implicitly {@link TW.Sui.Proto.SigningInput.verify|verify} messages.
25342
+ * @param message SigningInput message or plain object to encode
25343
+ * @param [writer] Writer to encode to
25344
+ * @returns Writer
25345
+ */
25346
+ public static encode(message: TW.Sui.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
25347
+
25348
+ /**
25349
+ * Decodes a SigningInput message from the specified reader or buffer.
25350
+ * @param reader Reader or buffer to decode from
25351
+ * @param [length] Message length if known beforehand
25352
+ * @returns SigningInput
25353
+ * @throws {Error} If the payload is not a reader or valid buffer
25354
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25355
+ */
25356
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.SigningInput;
25357
+
25358
+ /**
25359
+ * Verifies a SigningInput message.
25360
+ * @param message Plain object to verify
25361
+ * @returns `null` if valid, otherwise the reason why it is not
25362
+ */
25363
+ public static verify(message: { [k: string]: any }): (string|null);
25364
+
25365
+ /**
25366
+ * Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
25367
+ * @param object Plain object
25368
+ * @returns SigningInput
25369
+ */
25370
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.SigningInput;
25371
+
25372
+ /**
25373
+ * Creates a plain object from a SigningInput message. Also converts values to other types if specified.
25374
+ * @param message SigningInput
25375
+ * @param [options] Conversion options
25376
+ * @returns Plain object
25377
+ */
25378
+ public static toObject(message: TW.Sui.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
25379
+
25380
+ /**
25381
+ * Converts this SigningInput to JSON.
25382
+ * @returns JSON object
25383
+ */
25384
+ public toJSON(): { [k: string]: any };
25385
+ }
25386
+
25387
+ /** Properties of a SigningOutput. */
25388
+ interface ISigningOutput {
25389
+
25390
+ /** The raw transaction without indent in base64 */
25391
+ unsignedTx?: (string|null);
25392
+
25393
+ /** The signature encoded in base64 */
25394
+ signature?: (string|null);
25395
+ }
25396
+
25397
+ /** Represents a SigningOutput. */
25398
+ class SigningOutput implements ISigningOutput {
25399
+
25400
+ /**
25401
+ * Constructs a new SigningOutput.
25402
+ * @param [properties] Properties to set
25403
+ */
25404
+ constructor(properties?: TW.Sui.Proto.ISigningOutput);
25405
+
25406
+ /** The raw transaction without indent in base64 */
25407
+ public unsignedTx: string;
25408
+
25409
+ /** The signature encoded in base64 */
25410
+ public signature: string;
25411
+
25412
+ /**
25413
+ * Creates a new SigningOutput instance using the specified properties.
25414
+ * @param [properties] Properties to set
25415
+ * @returns SigningOutput instance
25416
+ */
25417
+ public static create(properties?: TW.Sui.Proto.ISigningOutput): TW.Sui.Proto.SigningOutput;
25418
+
25419
+ /**
25420
+ * Encodes the specified SigningOutput message. Does not implicitly {@link TW.Sui.Proto.SigningOutput.verify|verify} messages.
25421
+ * @param message SigningOutput message or plain object to encode
25422
+ * @param [writer] Writer to encode to
25423
+ * @returns Writer
25424
+ */
25425
+ public static encode(message: TW.Sui.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
25426
+
25427
+ /**
25428
+ * Decodes a SigningOutput message from the specified reader or buffer.
25429
+ * @param reader Reader or buffer to decode from
25430
+ * @param [length] Message length if known beforehand
25431
+ * @returns SigningOutput
25432
+ * @throws {Error} If the payload is not a reader or valid buffer
25433
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25434
+ */
25435
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.SigningOutput;
25436
+
25437
+ /**
25438
+ * Verifies a SigningOutput message.
25439
+ * @param message Plain object to verify
25440
+ * @returns `null` if valid, otherwise the reason why it is not
25441
+ */
25442
+ public static verify(message: { [k: string]: any }): (string|null);
25443
+
25444
+ /**
25445
+ * Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
25446
+ * @param object Plain object
25447
+ * @returns SigningOutput
25448
+ */
25449
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.SigningOutput;
25450
+
25451
+ /**
25452
+ * Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
25453
+ * @param message SigningOutput
25454
+ * @param [options] Conversion options
25455
+ * @returns Plain object
25456
+ */
25457
+ public static toObject(message: TW.Sui.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
25458
+
25459
+ /**
25460
+ * Converts this SigningOutput to JSON.
25461
+ * @returns JSON object
25462
+ */
25463
+ public toJSON(): { [k: string]: any };
25464
+ }
25465
+ }
25466
+ }
25467
+
25226
25468
  /** Namespace Tezos. */
25227
25469
  namespace Tezos {
25228
25470
 
@@ -26244,6 +26486,307 @@ export namespace TW {
26244
26486
  }
26245
26487
  }
26246
26488
 
26489
+ /** Namespace TheOpenNetwork. */
26490
+ namespace TheOpenNetwork {
26491
+
26492
+ /** Namespace Proto. */
26493
+ namespace Proto {
26494
+
26495
+ /** WalletVersion enum. */
26496
+ enum WalletVersion {
26497
+ WALLET_V3_R1 = 0,
26498
+ WALLET_V3_R2 = 1,
26499
+ WALLET_V4_R2 = 2
26500
+ }
26501
+
26502
+ /** SendMode enum. */
26503
+ enum SendMode {
26504
+ DEFAULT = 0,
26505
+ PAY_FEES_SEPARATELY = 1,
26506
+ IGNORE_ACTION_PHASE_ERRORS = 2,
26507
+ DESTROY_ON_ZERO_BALANCE = 32,
26508
+ ATTACH_ALL_INBOUND_MESSAGE_VALUE = 64,
26509
+ ATTACH_ALL_CONTRACT_BALANCE = 128
26510
+ }
26511
+
26512
+ /** Properties of a Transfer. */
26513
+ interface ITransfer {
26514
+
26515
+ /** Transfer walletVersion */
26516
+ walletVersion?: (TW.TheOpenNetwork.Proto.WalletVersion|null);
26517
+
26518
+ /** Transfer dest */
26519
+ dest?: (string|null);
26520
+
26521
+ /** Transfer amount */
26522
+ amount?: (Long|null);
26523
+
26524
+ /** Transfer sequenceNumber */
26525
+ sequenceNumber?: (number|null);
26526
+
26527
+ /** Transfer mode */
26528
+ mode?: (number|null);
26529
+
26530
+ /** Transfer expireAt */
26531
+ expireAt?: (number|null);
26532
+
26533
+ /** Transfer comment */
26534
+ comment?: (string|null);
26535
+ }
26536
+
26537
+ /** Represents a Transfer. */
26538
+ class Transfer implements ITransfer {
26539
+
26540
+ /**
26541
+ * Constructs a new Transfer.
26542
+ * @param [properties] Properties to set
26543
+ */
26544
+ constructor(properties?: TW.TheOpenNetwork.Proto.ITransfer);
26545
+
26546
+ /** Transfer walletVersion. */
26547
+ public walletVersion: TW.TheOpenNetwork.Proto.WalletVersion;
26548
+
26549
+ /** Transfer dest. */
26550
+ public dest: string;
26551
+
26552
+ /** Transfer amount. */
26553
+ public amount: Long;
26554
+
26555
+ /** Transfer sequenceNumber. */
26556
+ public sequenceNumber: number;
26557
+
26558
+ /** Transfer mode. */
26559
+ public mode: number;
26560
+
26561
+ /** Transfer expireAt. */
26562
+ public expireAt: number;
26563
+
26564
+ /** Transfer comment. */
26565
+ public comment: string;
26566
+
26567
+ /**
26568
+ * Creates a new Transfer instance using the specified properties.
26569
+ * @param [properties] Properties to set
26570
+ * @returns Transfer instance
26571
+ */
26572
+ public static create(properties?: TW.TheOpenNetwork.Proto.ITransfer): TW.TheOpenNetwork.Proto.Transfer;
26573
+
26574
+ /**
26575
+ * Encodes the specified Transfer message. Does not implicitly {@link TW.TheOpenNetwork.Proto.Transfer.verify|verify} messages.
26576
+ * @param message Transfer message or plain object to encode
26577
+ * @param [writer] Writer to encode to
26578
+ * @returns Writer
26579
+ */
26580
+ public static encode(message: TW.TheOpenNetwork.Proto.ITransfer, writer?: $protobuf.Writer): $protobuf.Writer;
26581
+
26582
+ /**
26583
+ * Decodes a Transfer message from the specified reader or buffer.
26584
+ * @param reader Reader or buffer to decode from
26585
+ * @param [length] Message length if known beforehand
26586
+ * @returns Transfer
26587
+ * @throws {Error} If the payload is not a reader or valid buffer
26588
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26589
+ */
26590
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.TheOpenNetwork.Proto.Transfer;
26591
+
26592
+ /**
26593
+ * Verifies a Transfer message.
26594
+ * @param message Plain object to verify
26595
+ * @returns `null` if valid, otherwise the reason why it is not
26596
+ */
26597
+ public static verify(message: { [k: string]: any }): (string|null);
26598
+
26599
+ /**
26600
+ * Creates a Transfer message from a plain object. Also converts values to their respective internal types.
26601
+ * @param object Plain object
26602
+ * @returns Transfer
26603
+ */
26604
+ public static fromObject(object: { [k: string]: any }): TW.TheOpenNetwork.Proto.Transfer;
26605
+
26606
+ /**
26607
+ * Creates a plain object from a Transfer message. Also converts values to other types if specified.
26608
+ * @param message Transfer
26609
+ * @param [options] Conversion options
26610
+ * @returns Plain object
26611
+ */
26612
+ public static toObject(message: TW.TheOpenNetwork.Proto.Transfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
26613
+
26614
+ /**
26615
+ * Converts this Transfer to JSON.
26616
+ * @returns JSON object
26617
+ */
26618
+ public toJSON(): { [k: string]: any };
26619
+ }
26620
+
26621
+ /** Properties of a SigningInput. */
26622
+ interface ISigningInput {
26623
+
26624
+ /** SigningInput privateKey */
26625
+ privateKey?: (Uint8Array|null);
26626
+
26627
+ /** SigningInput transfer */
26628
+ transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
26629
+ }
26630
+
26631
+ /** Represents a SigningInput. */
26632
+ class SigningInput implements ISigningInput {
26633
+
26634
+ /**
26635
+ * Constructs a new SigningInput.
26636
+ * @param [properties] Properties to set
26637
+ */
26638
+ constructor(properties?: TW.TheOpenNetwork.Proto.ISigningInput);
26639
+
26640
+ /** SigningInput privateKey. */
26641
+ public privateKey: Uint8Array;
26642
+
26643
+ /** SigningInput transfer. */
26644
+ public transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
26645
+
26646
+ /** SigningInput actionOneof. */
26647
+ public actionOneof?: "transfer";
26648
+
26649
+ /**
26650
+ * Creates a new SigningInput instance using the specified properties.
26651
+ * @param [properties] Properties to set
26652
+ * @returns SigningInput instance
26653
+ */
26654
+ public static create(properties?: TW.TheOpenNetwork.Proto.ISigningInput): TW.TheOpenNetwork.Proto.SigningInput;
26655
+
26656
+ /**
26657
+ * Encodes the specified SigningInput message. Does not implicitly {@link TW.TheOpenNetwork.Proto.SigningInput.verify|verify} messages.
26658
+ * @param message SigningInput message or plain object to encode
26659
+ * @param [writer] Writer to encode to
26660
+ * @returns Writer
26661
+ */
26662
+ public static encode(message: TW.TheOpenNetwork.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
26663
+
26664
+ /**
26665
+ * Decodes a SigningInput message from the specified reader or buffer.
26666
+ * @param reader Reader or buffer to decode from
26667
+ * @param [length] Message length if known beforehand
26668
+ * @returns SigningInput
26669
+ * @throws {Error} If the payload is not a reader or valid buffer
26670
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26671
+ */
26672
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.TheOpenNetwork.Proto.SigningInput;
26673
+
26674
+ /**
26675
+ * Verifies a SigningInput message.
26676
+ * @param message Plain object to verify
26677
+ * @returns `null` if valid, otherwise the reason why it is not
26678
+ */
26679
+ public static verify(message: { [k: string]: any }): (string|null);
26680
+
26681
+ /**
26682
+ * Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
26683
+ * @param object Plain object
26684
+ * @returns SigningInput
26685
+ */
26686
+ public static fromObject(object: { [k: string]: any }): TW.TheOpenNetwork.Proto.SigningInput;
26687
+
26688
+ /**
26689
+ * Creates a plain object from a SigningInput message. Also converts values to other types if specified.
26690
+ * @param message SigningInput
26691
+ * @param [options] Conversion options
26692
+ * @returns Plain object
26693
+ */
26694
+ public static toObject(message: TW.TheOpenNetwork.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
26695
+
26696
+ /**
26697
+ * Converts this SigningInput to JSON.
26698
+ * @returns JSON object
26699
+ */
26700
+ public toJSON(): { [k: string]: any };
26701
+ }
26702
+
26703
+ /** Properties of a SigningOutput. */
26704
+ interface ISigningOutput {
26705
+
26706
+ /** SigningOutput encoded */
26707
+ encoded?: (string|null);
26708
+
26709
+ /** SigningOutput error */
26710
+ error?: (TW.Common.Proto.SigningError|null);
26711
+
26712
+ /** SigningOutput errorMessage */
26713
+ errorMessage?: (string|null);
26714
+ }
26715
+
26716
+ /** Represents a SigningOutput. */
26717
+ class SigningOutput implements ISigningOutput {
26718
+
26719
+ /**
26720
+ * Constructs a new SigningOutput.
26721
+ * @param [properties] Properties to set
26722
+ */
26723
+ constructor(properties?: TW.TheOpenNetwork.Proto.ISigningOutput);
26724
+
26725
+ /** SigningOutput encoded. */
26726
+ public encoded: string;
26727
+
26728
+ /** SigningOutput error. */
26729
+ public error: TW.Common.Proto.SigningError;
26730
+
26731
+ /** SigningOutput errorMessage. */
26732
+ public errorMessage: string;
26733
+
26734
+ /**
26735
+ * Creates a new SigningOutput instance using the specified properties.
26736
+ * @param [properties] Properties to set
26737
+ * @returns SigningOutput instance
26738
+ */
26739
+ public static create(properties?: TW.TheOpenNetwork.Proto.ISigningOutput): TW.TheOpenNetwork.Proto.SigningOutput;
26740
+
26741
+ /**
26742
+ * Encodes the specified SigningOutput message. Does not implicitly {@link TW.TheOpenNetwork.Proto.SigningOutput.verify|verify} messages.
26743
+ * @param message SigningOutput message or plain object to encode
26744
+ * @param [writer] Writer to encode to
26745
+ * @returns Writer
26746
+ */
26747
+ public static encode(message: TW.TheOpenNetwork.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
26748
+
26749
+ /**
26750
+ * Decodes a SigningOutput message from the specified reader or buffer.
26751
+ * @param reader Reader or buffer to decode from
26752
+ * @param [length] Message length if known beforehand
26753
+ * @returns SigningOutput
26754
+ * @throws {Error} If the payload is not a reader or valid buffer
26755
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26756
+ */
26757
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.TheOpenNetwork.Proto.SigningOutput;
26758
+
26759
+ /**
26760
+ * Verifies a SigningOutput message.
26761
+ * @param message Plain object to verify
26762
+ * @returns `null` if valid, otherwise the reason why it is not
26763
+ */
26764
+ public static verify(message: { [k: string]: any }): (string|null);
26765
+
26766
+ /**
26767
+ * Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
26768
+ * @param object Plain object
26769
+ * @returns SigningOutput
26770
+ */
26771
+ public static fromObject(object: { [k: string]: any }): TW.TheOpenNetwork.Proto.SigningOutput;
26772
+
26773
+ /**
26774
+ * Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
26775
+ * @param message SigningOutput
26776
+ * @param [options] Conversion options
26777
+ * @returns Plain object
26778
+ */
26779
+ public static toObject(message: TW.TheOpenNetwork.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
26780
+
26781
+ /**
26782
+ * Converts this SigningOutput to JSON.
26783
+ * @returns JSON object
26784
+ */
26785
+ public toJSON(): { [k: string]: any };
26786
+ }
26787
+ }
26788
+ }
26789
+
26247
26790
  /** Namespace Theta. */
26248
26791
  namespace Theta {
26249
26792