@trustwallet/wallet-core 4.2.2 → 4.2.4

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.
@@ -7789,90 +7789,11 @@ export namespace TW {
7789
7789
  public toJSON(): { [k: string]: any };
7790
7790
  }
7791
7791
 
7792
- /** Properties of an OutPoint. */
7793
- interface IOutPoint {
7794
-
7795
- /** OutPoint hash */
7796
- hash?: (Uint8Array|null);
7797
-
7798
- /** OutPoint vout */
7799
- vout?: (number|null);
7800
- }
7801
-
7802
- /** Represents an OutPoint. */
7803
- class OutPoint implements IOutPoint {
7804
-
7805
- /**
7806
- * Constructs a new OutPoint.
7807
- * @param [properties] Properties to set
7808
- */
7809
- constructor(properties?: TW.BitcoinV2.Proto.IOutPoint);
7810
-
7811
- /** OutPoint hash. */
7812
- public hash: Uint8Array;
7813
-
7814
- /** OutPoint vout. */
7815
- public vout: number;
7816
-
7817
- /**
7818
- * Creates a new OutPoint instance using the specified properties.
7819
- * @param [properties] Properties to set
7820
- * @returns OutPoint instance
7821
- */
7822
- public static create(properties?: TW.BitcoinV2.Proto.IOutPoint): TW.BitcoinV2.Proto.OutPoint;
7823
-
7824
- /**
7825
- * Encodes the specified OutPoint message. Does not implicitly {@link TW.BitcoinV2.Proto.OutPoint.verify|verify} messages.
7826
- * @param message OutPoint message or plain object to encode
7827
- * @param [writer] Writer to encode to
7828
- * @returns Writer
7829
- */
7830
- public static encode(message: TW.BitcoinV2.Proto.IOutPoint, writer?: $protobuf.Writer): $protobuf.Writer;
7831
-
7832
- /**
7833
- * Decodes an OutPoint message from the specified reader or buffer.
7834
- * @param reader Reader or buffer to decode from
7835
- * @param [length] Message length if known beforehand
7836
- * @returns OutPoint
7837
- * @throws {Error} If the payload is not a reader or valid buffer
7838
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7839
- */
7840
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.OutPoint;
7841
-
7842
- /**
7843
- * Verifies an OutPoint message.
7844
- * @param message Plain object to verify
7845
- * @returns `null` if valid, otherwise the reason why it is not
7846
- */
7847
- public static verify(message: { [k: string]: any }): (string|null);
7848
-
7849
- /**
7850
- * Creates an OutPoint message from a plain object. Also converts values to their respective internal types.
7851
- * @param object Plain object
7852
- * @returns OutPoint
7853
- */
7854
- public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.OutPoint;
7855
-
7856
- /**
7857
- * Creates a plain object from an OutPoint message. Also converts values to other types if specified.
7858
- * @param message OutPoint
7859
- * @param [options] Conversion options
7860
- * @returns Plain object
7861
- */
7862
- public static toObject(message: TW.BitcoinV2.Proto.OutPoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
7863
-
7864
- /**
7865
- * Converts this OutPoint to JSON.
7866
- * @returns JSON object
7867
- */
7868
- public toJSON(): { [k: string]: any };
7869
- }
7870
-
7871
7792
  /** Properties of an Input. */
7872
7793
  interface IInput {
7873
7794
 
7874
7795
  /** Input outPoint */
7875
- outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
7796
+ outPoint?: (TW.Utxo.Proto.IOutPoint|null);
7876
7797
 
7877
7798
  /** Input value */
7878
7799
  value?: (Long|null);
@@ -7903,7 +7824,7 @@ export namespace TW {
7903
7824
  constructor(properties?: TW.BitcoinV2.Proto.IInput);
7904
7825
 
7905
7826
  /** Input outPoint. */
7906
- public outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
7827
+ public outPoint?: (TW.Utxo.Proto.IOutPoint|null);
7907
7828
 
7908
7829
  /** Input value. */
7909
7830
  public value: Long;
@@ -8962,6 +8883,9 @@ export namespace TW {
8962
8883
 
8963
8884
  /** TransactionBuilder fixedDustThreshold */
8964
8885
  fixedDustThreshold?: (Long|null);
8886
+
8887
+ /** TransactionBuilder zcashExtraData */
8888
+ zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
8965
8889
  }
8966
8890
 
8967
8891
  /** Represents a TransactionBuilder. */
@@ -9000,9 +8924,15 @@ export namespace TW {
9000
8924
  /** TransactionBuilder fixedDustThreshold. */
9001
8925
  public fixedDustThreshold?: (Long|null);
9002
8926
 
8927
+ /** TransactionBuilder zcashExtraData. */
8928
+ public zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
8929
+
9003
8930
  /** TransactionBuilder dustPolicy. */
9004
8931
  public dustPolicy?: "fixedDustThreshold";
9005
8932
 
8933
+ /** TransactionBuilder chainSpecific. */
8934
+ public chainSpecific?: "zcashExtraData";
8935
+
9006
8936
  /**
9007
8937
  * Creates a new TransactionBuilder instance using the specified properties.
9008
8938
  * @param [properties] Properties to set
@@ -9236,270 +9166,6 @@ export namespace TW {
9236
9166
  public toJSON(): { [k: string]: any };
9237
9167
  }
9238
9168
 
9239
- /** Properties of a Transaction. */
9240
- interface ITransaction {
9241
-
9242
- /** Transaction version */
9243
- version?: (number|null);
9244
-
9245
- /** Transaction lockTime */
9246
- lockTime?: (number|null);
9247
-
9248
- /** Transaction inputs */
9249
- inputs?: (TW.BitcoinV2.Proto.Transaction.ITransactionInput[]|null);
9250
-
9251
- /** Transaction outputs */
9252
- outputs?: (TW.BitcoinV2.Proto.Transaction.ITransactionOutput[]|null);
9253
- }
9254
-
9255
- /** Represents a Transaction. */
9256
- class Transaction implements ITransaction {
9257
-
9258
- /**
9259
- * Constructs a new Transaction.
9260
- * @param [properties] Properties to set
9261
- */
9262
- constructor(properties?: TW.BitcoinV2.Proto.ITransaction);
9263
-
9264
- /** Transaction version. */
9265
- public version: number;
9266
-
9267
- /** Transaction lockTime. */
9268
- public lockTime: number;
9269
-
9270
- /** Transaction inputs. */
9271
- public inputs: TW.BitcoinV2.Proto.Transaction.ITransactionInput[];
9272
-
9273
- /** Transaction outputs. */
9274
- public outputs: TW.BitcoinV2.Proto.Transaction.ITransactionOutput[];
9275
-
9276
- /**
9277
- * Creates a new Transaction instance using the specified properties.
9278
- * @param [properties] Properties to set
9279
- * @returns Transaction instance
9280
- */
9281
- public static create(properties?: TW.BitcoinV2.Proto.ITransaction): TW.BitcoinV2.Proto.Transaction;
9282
-
9283
- /**
9284
- * Encodes the specified Transaction message. Does not implicitly {@link TW.BitcoinV2.Proto.Transaction.verify|verify} messages.
9285
- * @param message Transaction message or plain object to encode
9286
- * @param [writer] Writer to encode to
9287
- * @returns Writer
9288
- */
9289
- public static encode(message: TW.BitcoinV2.Proto.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
9290
-
9291
- /**
9292
- * Decodes a Transaction message from the specified reader or buffer.
9293
- * @param reader Reader or buffer to decode from
9294
- * @param [length] Message length if known beforehand
9295
- * @returns Transaction
9296
- * @throws {Error} If the payload is not a reader or valid buffer
9297
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
9298
- */
9299
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Transaction;
9300
-
9301
- /**
9302
- * Verifies a Transaction message.
9303
- * @param message Plain object to verify
9304
- * @returns `null` if valid, otherwise the reason why it is not
9305
- */
9306
- public static verify(message: { [k: string]: any }): (string|null);
9307
-
9308
- /**
9309
- * Creates a Transaction message from a plain object. Also converts values to their respective internal types.
9310
- * @param object Plain object
9311
- * @returns Transaction
9312
- */
9313
- public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Transaction;
9314
-
9315
- /**
9316
- * Creates a plain object from a Transaction message. Also converts values to other types if specified.
9317
- * @param message Transaction
9318
- * @param [options] Conversion options
9319
- * @returns Plain object
9320
- */
9321
- public static toObject(message: TW.BitcoinV2.Proto.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
9322
-
9323
- /**
9324
- * Converts this Transaction to JSON.
9325
- * @returns JSON object
9326
- */
9327
- public toJSON(): { [k: string]: any };
9328
- }
9329
-
9330
- namespace Transaction {
9331
-
9332
- /** Properties of a TransactionInput. */
9333
- interface ITransactionInput {
9334
-
9335
- /** TransactionInput outPoint */
9336
- outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
9337
-
9338
- /** TransactionInput sequence */
9339
- sequence?: (number|null);
9340
-
9341
- /** TransactionInput scriptSig */
9342
- scriptSig?: (Uint8Array|null);
9343
-
9344
- /** TransactionInput witnessItems */
9345
- witnessItems?: (Uint8Array[]|null);
9346
- }
9347
-
9348
- /** Represents a TransactionInput. */
9349
- class TransactionInput implements ITransactionInput {
9350
-
9351
- /**
9352
- * Constructs a new TransactionInput.
9353
- * @param [properties] Properties to set
9354
- */
9355
- constructor(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionInput);
9356
-
9357
- /** TransactionInput outPoint. */
9358
- public outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
9359
-
9360
- /** TransactionInput sequence. */
9361
- public sequence: number;
9362
-
9363
- /** TransactionInput scriptSig. */
9364
- public scriptSig: Uint8Array;
9365
-
9366
- /** TransactionInput witnessItems. */
9367
- public witnessItems: Uint8Array[];
9368
-
9369
- /**
9370
- * Creates a new TransactionInput instance using the specified properties.
9371
- * @param [properties] Properties to set
9372
- * @returns TransactionInput instance
9373
- */
9374
- public static create(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionInput): TW.BitcoinV2.Proto.Transaction.TransactionInput;
9375
-
9376
- /**
9377
- * Encodes the specified TransactionInput message. Does not implicitly {@link TW.BitcoinV2.Proto.Transaction.TransactionInput.verify|verify} messages.
9378
- * @param message TransactionInput message or plain object to encode
9379
- * @param [writer] Writer to encode to
9380
- * @returns Writer
9381
- */
9382
- public static encode(message: TW.BitcoinV2.Proto.Transaction.ITransactionInput, writer?: $protobuf.Writer): $protobuf.Writer;
9383
-
9384
- /**
9385
- * Decodes a TransactionInput message from the specified reader or buffer.
9386
- * @param reader Reader or buffer to decode from
9387
- * @param [length] Message length if known beforehand
9388
- * @returns TransactionInput
9389
- * @throws {Error} If the payload is not a reader or valid buffer
9390
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
9391
- */
9392
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Transaction.TransactionInput;
9393
-
9394
- /**
9395
- * Verifies a TransactionInput message.
9396
- * @param message Plain object to verify
9397
- * @returns `null` if valid, otherwise the reason why it is not
9398
- */
9399
- public static verify(message: { [k: string]: any }): (string|null);
9400
-
9401
- /**
9402
- * Creates a TransactionInput message from a plain object. Also converts values to their respective internal types.
9403
- * @param object Plain object
9404
- * @returns TransactionInput
9405
- */
9406
- public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Transaction.TransactionInput;
9407
-
9408
- /**
9409
- * Creates a plain object from a TransactionInput message. Also converts values to other types if specified.
9410
- * @param message TransactionInput
9411
- * @param [options] Conversion options
9412
- * @returns Plain object
9413
- */
9414
- public static toObject(message: TW.BitcoinV2.Proto.Transaction.TransactionInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
9415
-
9416
- /**
9417
- * Converts this TransactionInput to JSON.
9418
- * @returns JSON object
9419
- */
9420
- public toJSON(): { [k: string]: any };
9421
- }
9422
-
9423
- /** Properties of a TransactionOutput. */
9424
- interface ITransactionOutput {
9425
-
9426
- /** TransactionOutput scriptPubkey */
9427
- scriptPubkey?: (Uint8Array|null);
9428
-
9429
- /** TransactionOutput value */
9430
- value?: (Long|null);
9431
- }
9432
-
9433
- /** Represents a TransactionOutput. */
9434
- class TransactionOutput implements ITransactionOutput {
9435
-
9436
- /**
9437
- * Constructs a new TransactionOutput.
9438
- * @param [properties] Properties to set
9439
- */
9440
- constructor(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionOutput);
9441
-
9442
- /** TransactionOutput scriptPubkey. */
9443
- public scriptPubkey: Uint8Array;
9444
-
9445
- /** TransactionOutput value. */
9446
- public value: Long;
9447
-
9448
- /**
9449
- * Creates a new TransactionOutput instance using the specified properties.
9450
- * @param [properties] Properties to set
9451
- * @returns TransactionOutput instance
9452
- */
9453
- public static create(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionOutput): TW.BitcoinV2.Proto.Transaction.TransactionOutput;
9454
-
9455
- /**
9456
- * Encodes the specified TransactionOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.Transaction.TransactionOutput.verify|verify} messages.
9457
- * @param message TransactionOutput message or plain object to encode
9458
- * @param [writer] Writer to encode to
9459
- * @returns Writer
9460
- */
9461
- public static encode(message: TW.BitcoinV2.Proto.Transaction.ITransactionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
9462
-
9463
- /**
9464
- * Decodes a TransactionOutput message from the specified reader or buffer.
9465
- * @param reader Reader or buffer to decode from
9466
- * @param [length] Message length if known beforehand
9467
- * @returns TransactionOutput
9468
- * @throws {Error} If the payload is not a reader or valid buffer
9469
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
9470
- */
9471
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Transaction.TransactionOutput;
9472
-
9473
- /**
9474
- * Verifies a TransactionOutput message.
9475
- * @param message Plain object to verify
9476
- * @returns `null` if valid, otherwise the reason why it is not
9477
- */
9478
- public static verify(message: { [k: string]: any }): (string|null);
9479
-
9480
- /**
9481
- * Creates a TransactionOutput message from a plain object. Also converts values to their respective internal types.
9482
- * @param object Plain object
9483
- * @returns TransactionOutput
9484
- */
9485
- public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Transaction.TransactionOutput;
9486
-
9487
- /**
9488
- * Creates a plain object from a TransactionOutput message. Also converts values to other types if specified.
9489
- * @param message TransactionOutput
9490
- * @param [options] Conversion options
9491
- * @returns Plain object
9492
- */
9493
- public static toObject(message: TW.BitcoinV2.Proto.Transaction.TransactionOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
9494
-
9495
- /**
9496
- * Converts this TransactionOutput to JSON.
9497
- * @returns JSON object
9498
- */
9499
- public toJSON(): { [k: string]: any };
9500
- }
9501
- }
9502
-
9503
9169
  /** Properties of a TransactionPlan. */
9504
9170
  interface ITransactionPlan {
9505
9171
 
@@ -9889,9 +9555,6 @@ export namespace TW {
9889
9555
  /** SigningOutput errorMessage */
9890
9556
  errorMessage?: (string|null);
9891
9557
 
9892
- /** SigningOutput transaction */
9893
- transaction?: (TW.BitcoinV2.Proto.ITransaction|null);
9894
-
9895
9558
  /** SigningOutput encoded */
9896
9559
  encoded?: (Uint8Array|null);
9897
9560
 
@@ -9909,6 +9572,12 @@ export namespace TW {
9909
9572
 
9910
9573
  /** SigningOutput psbt */
9911
9574
  psbt?: (TW.BitcoinV2.Proto.IPsbt|null);
9575
+
9576
+ /** SigningOutput bitcoin */
9577
+ bitcoin?: (TW.Utxo.Proto.ITransaction|null);
9578
+
9579
+ /** SigningOutput zcash */
9580
+ zcash?: (TW.Zcash.Proto.ITransaction|null);
9912
9581
  }
9913
9582
 
9914
9583
  /** Represents a SigningOutput. */
@@ -9926,9 +9595,6 @@ export namespace TW {
9926
9595
  /** SigningOutput errorMessage. */
9927
9596
  public errorMessage: string;
9928
9597
 
9929
- /** SigningOutput transaction. */
9930
- public transaction?: (TW.BitcoinV2.Proto.ITransaction|null);
9931
-
9932
9598
  /** SigningOutput encoded. */
9933
9599
  public encoded: Uint8Array;
9934
9600
 
@@ -9947,6 +9613,15 @@ export namespace TW {
9947
9613
  /** SigningOutput psbt. */
9948
9614
  public psbt?: (TW.BitcoinV2.Proto.IPsbt|null);
9949
9615
 
9616
+ /** SigningOutput bitcoin. */
9617
+ public bitcoin?: (TW.Utxo.Proto.ITransaction|null);
9618
+
9619
+ /** SigningOutput zcash. */
9620
+ public zcash?: (TW.Zcash.Proto.ITransaction|null);
9621
+
9622
+ /** SigningOutput transaction. */
9623
+ public transaction?: ("bitcoin"|"zcash");
9624
+
9950
9625
  /**
9951
9626
  * Creates a new SigningOutput instance using the specified properties.
9952
9627
  * @param [properties] Properties to set
@@ -10003,6 +9678,562 @@ export namespace TW {
10003
9678
  }
10004
9679
  }
10005
9680
 
9681
+ /** Namespace Utxo. */
9682
+ namespace Utxo {
9683
+
9684
+ /** Namespace Proto. */
9685
+ namespace Proto {
9686
+
9687
+ /** Properties of an OutPoint. */
9688
+ interface IOutPoint {
9689
+
9690
+ /** OutPoint hash */
9691
+ hash?: (Uint8Array|null);
9692
+
9693
+ /** OutPoint vout */
9694
+ vout?: (number|null);
9695
+ }
9696
+
9697
+ /** Represents an OutPoint. */
9698
+ class OutPoint implements IOutPoint {
9699
+
9700
+ /**
9701
+ * Constructs a new OutPoint.
9702
+ * @param [properties] Properties to set
9703
+ */
9704
+ constructor(properties?: TW.Utxo.Proto.IOutPoint);
9705
+
9706
+ /** OutPoint hash. */
9707
+ public hash: Uint8Array;
9708
+
9709
+ /** OutPoint vout. */
9710
+ public vout: number;
9711
+
9712
+ /**
9713
+ * Creates a new OutPoint instance using the specified properties.
9714
+ * @param [properties] Properties to set
9715
+ * @returns OutPoint instance
9716
+ */
9717
+ public static create(properties?: TW.Utxo.Proto.IOutPoint): TW.Utxo.Proto.OutPoint;
9718
+
9719
+ /**
9720
+ * Encodes the specified OutPoint message. Does not implicitly {@link TW.Utxo.Proto.OutPoint.verify|verify} messages.
9721
+ * @param message OutPoint message or plain object to encode
9722
+ * @param [writer] Writer to encode to
9723
+ * @returns Writer
9724
+ */
9725
+ public static encode(message: TW.Utxo.Proto.IOutPoint, writer?: $protobuf.Writer): $protobuf.Writer;
9726
+
9727
+ /**
9728
+ * Decodes an OutPoint message from the specified reader or buffer.
9729
+ * @param reader Reader or buffer to decode from
9730
+ * @param [length] Message length if known beforehand
9731
+ * @returns OutPoint
9732
+ * @throws {Error} If the payload is not a reader or valid buffer
9733
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9734
+ */
9735
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.OutPoint;
9736
+
9737
+ /**
9738
+ * Verifies an OutPoint message.
9739
+ * @param message Plain object to verify
9740
+ * @returns `null` if valid, otherwise the reason why it is not
9741
+ */
9742
+ public static verify(message: { [k: string]: any }): (string|null);
9743
+
9744
+ /**
9745
+ * Creates an OutPoint message from a plain object. Also converts values to their respective internal types.
9746
+ * @param object Plain object
9747
+ * @returns OutPoint
9748
+ */
9749
+ public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.OutPoint;
9750
+
9751
+ /**
9752
+ * Creates a plain object from an OutPoint message. Also converts values to other types if specified.
9753
+ * @param message OutPoint
9754
+ * @param [options] Conversion options
9755
+ * @returns Plain object
9756
+ */
9757
+ public static toObject(message: TW.Utxo.Proto.OutPoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
9758
+
9759
+ /**
9760
+ * Converts this OutPoint to JSON.
9761
+ * @returns JSON object
9762
+ */
9763
+ public toJSON(): { [k: string]: any };
9764
+ }
9765
+
9766
+ /** Properties of a TransactionInput. */
9767
+ interface ITransactionInput {
9768
+
9769
+ /** TransactionInput outPoint */
9770
+ outPoint?: (TW.Utxo.Proto.IOutPoint|null);
9771
+
9772
+ /** TransactionInput sequence */
9773
+ sequence?: (number|null);
9774
+
9775
+ /** TransactionInput scriptSig */
9776
+ scriptSig?: (Uint8Array|null);
9777
+
9778
+ /** TransactionInput witnessItems */
9779
+ witnessItems?: (Uint8Array[]|null);
9780
+ }
9781
+
9782
+ /** Represents a TransactionInput. */
9783
+ class TransactionInput implements ITransactionInput {
9784
+
9785
+ /**
9786
+ * Constructs a new TransactionInput.
9787
+ * @param [properties] Properties to set
9788
+ */
9789
+ constructor(properties?: TW.Utxo.Proto.ITransactionInput);
9790
+
9791
+ /** TransactionInput outPoint. */
9792
+ public outPoint?: (TW.Utxo.Proto.IOutPoint|null);
9793
+
9794
+ /** TransactionInput sequence. */
9795
+ public sequence: number;
9796
+
9797
+ /** TransactionInput scriptSig. */
9798
+ public scriptSig: Uint8Array;
9799
+
9800
+ /** TransactionInput witnessItems. */
9801
+ public witnessItems: Uint8Array[];
9802
+
9803
+ /**
9804
+ * Creates a new TransactionInput instance using the specified properties.
9805
+ * @param [properties] Properties to set
9806
+ * @returns TransactionInput instance
9807
+ */
9808
+ public static create(properties?: TW.Utxo.Proto.ITransactionInput): TW.Utxo.Proto.TransactionInput;
9809
+
9810
+ /**
9811
+ * Encodes the specified TransactionInput message. Does not implicitly {@link TW.Utxo.Proto.TransactionInput.verify|verify} messages.
9812
+ * @param message TransactionInput message or plain object to encode
9813
+ * @param [writer] Writer to encode to
9814
+ * @returns Writer
9815
+ */
9816
+ public static encode(message: TW.Utxo.Proto.ITransactionInput, writer?: $protobuf.Writer): $protobuf.Writer;
9817
+
9818
+ /**
9819
+ * Decodes a TransactionInput message from the specified reader or buffer.
9820
+ * @param reader Reader or buffer to decode from
9821
+ * @param [length] Message length if known beforehand
9822
+ * @returns TransactionInput
9823
+ * @throws {Error} If the payload is not a reader or valid buffer
9824
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9825
+ */
9826
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.TransactionInput;
9827
+
9828
+ /**
9829
+ * Verifies a TransactionInput message.
9830
+ * @param message Plain object to verify
9831
+ * @returns `null` if valid, otherwise the reason why it is not
9832
+ */
9833
+ public static verify(message: { [k: string]: any }): (string|null);
9834
+
9835
+ /**
9836
+ * Creates a TransactionInput message from a plain object. Also converts values to their respective internal types.
9837
+ * @param object Plain object
9838
+ * @returns TransactionInput
9839
+ */
9840
+ public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.TransactionInput;
9841
+
9842
+ /**
9843
+ * Creates a plain object from a TransactionInput message. Also converts values to other types if specified.
9844
+ * @param message TransactionInput
9845
+ * @param [options] Conversion options
9846
+ * @returns Plain object
9847
+ */
9848
+ public static toObject(message: TW.Utxo.Proto.TransactionInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
9849
+
9850
+ /**
9851
+ * Converts this TransactionInput to JSON.
9852
+ * @returns JSON object
9853
+ */
9854
+ public toJSON(): { [k: string]: any };
9855
+ }
9856
+
9857
+ /** Properties of a TransactionOutput. */
9858
+ interface ITransactionOutput {
9859
+
9860
+ /** TransactionOutput scriptPubkey */
9861
+ scriptPubkey?: (Uint8Array|null);
9862
+
9863
+ /** TransactionOutput value */
9864
+ value?: (Long|null);
9865
+ }
9866
+
9867
+ /** Represents a TransactionOutput. */
9868
+ class TransactionOutput implements ITransactionOutput {
9869
+
9870
+ /**
9871
+ * Constructs a new TransactionOutput.
9872
+ * @param [properties] Properties to set
9873
+ */
9874
+ constructor(properties?: TW.Utxo.Proto.ITransactionOutput);
9875
+
9876
+ /** TransactionOutput scriptPubkey. */
9877
+ public scriptPubkey: Uint8Array;
9878
+
9879
+ /** TransactionOutput value. */
9880
+ public value: Long;
9881
+
9882
+ /**
9883
+ * Creates a new TransactionOutput instance using the specified properties.
9884
+ * @param [properties] Properties to set
9885
+ * @returns TransactionOutput instance
9886
+ */
9887
+ public static create(properties?: TW.Utxo.Proto.ITransactionOutput): TW.Utxo.Proto.TransactionOutput;
9888
+
9889
+ /**
9890
+ * Encodes the specified TransactionOutput message. Does not implicitly {@link TW.Utxo.Proto.TransactionOutput.verify|verify} messages.
9891
+ * @param message TransactionOutput message or plain object to encode
9892
+ * @param [writer] Writer to encode to
9893
+ * @returns Writer
9894
+ */
9895
+ public static encode(message: TW.Utxo.Proto.ITransactionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
9896
+
9897
+ /**
9898
+ * Decodes a TransactionOutput message from the specified reader or buffer.
9899
+ * @param reader Reader or buffer to decode from
9900
+ * @param [length] Message length if known beforehand
9901
+ * @returns TransactionOutput
9902
+ * @throws {Error} If the payload is not a reader or valid buffer
9903
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9904
+ */
9905
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.TransactionOutput;
9906
+
9907
+ /**
9908
+ * Verifies a TransactionOutput message.
9909
+ * @param message Plain object to verify
9910
+ * @returns `null` if valid, otherwise the reason why it is not
9911
+ */
9912
+ public static verify(message: { [k: string]: any }): (string|null);
9913
+
9914
+ /**
9915
+ * Creates a TransactionOutput message from a plain object. Also converts values to their respective internal types.
9916
+ * @param object Plain object
9917
+ * @returns TransactionOutput
9918
+ */
9919
+ public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.TransactionOutput;
9920
+
9921
+ /**
9922
+ * Creates a plain object from a TransactionOutput message. Also converts values to other types if specified.
9923
+ * @param message TransactionOutput
9924
+ * @param [options] Conversion options
9925
+ * @returns Plain object
9926
+ */
9927
+ public static toObject(message: TW.Utxo.Proto.TransactionOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
9928
+
9929
+ /**
9930
+ * Converts this TransactionOutput to JSON.
9931
+ * @returns JSON object
9932
+ */
9933
+ public toJSON(): { [k: string]: any };
9934
+ }
9935
+
9936
+ /** Properties of a Transaction. */
9937
+ interface ITransaction {
9938
+
9939
+ /** Transaction version */
9940
+ version?: (number|null);
9941
+
9942
+ /** Transaction lockTime */
9943
+ lockTime?: (number|null);
9944
+
9945
+ /** Transaction inputs */
9946
+ inputs?: (TW.Utxo.Proto.ITransactionInput[]|null);
9947
+
9948
+ /** Transaction outputs */
9949
+ outputs?: (TW.Utxo.Proto.ITransactionOutput[]|null);
9950
+ }
9951
+
9952
+ /** Represents a Transaction. */
9953
+ class Transaction implements ITransaction {
9954
+
9955
+ /**
9956
+ * Constructs a new Transaction.
9957
+ * @param [properties] Properties to set
9958
+ */
9959
+ constructor(properties?: TW.Utxo.Proto.ITransaction);
9960
+
9961
+ /** Transaction version. */
9962
+ public version: number;
9963
+
9964
+ /** Transaction lockTime. */
9965
+ public lockTime: number;
9966
+
9967
+ /** Transaction inputs. */
9968
+ public inputs: TW.Utxo.Proto.ITransactionInput[];
9969
+
9970
+ /** Transaction outputs. */
9971
+ public outputs: TW.Utxo.Proto.ITransactionOutput[];
9972
+
9973
+ /**
9974
+ * Creates a new Transaction instance using the specified properties.
9975
+ * @param [properties] Properties to set
9976
+ * @returns Transaction instance
9977
+ */
9978
+ public static create(properties?: TW.Utxo.Proto.ITransaction): TW.Utxo.Proto.Transaction;
9979
+
9980
+ /**
9981
+ * Encodes the specified Transaction message. Does not implicitly {@link TW.Utxo.Proto.Transaction.verify|verify} messages.
9982
+ * @param message Transaction message or plain object to encode
9983
+ * @param [writer] Writer to encode to
9984
+ * @returns Writer
9985
+ */
9986
+ public static encode(message: TW.Utxo.Proto.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
9987
+
9988
+ /**
9989
+ * Decodes a Transaction message from the specified reader or buffer.
9990
+ * @param reader Reader or buffer to decode from
9991
+ * @param [length] Message length if known beforehand
9992
+ * @returns Transaction
9993
+ * @throws {Error} If the payload is not a reader or valid buffer
9994
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9995
+ */
9996
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.Transaction;
9997
+
9998
+ /**
9999
+ * Verifies a Transaction message.
10000
+ * @param message Plain object to verify
10001
+ * @returns `null` if valid, otherwise the reason why it is not
10002
+ */
10003
+ public static verify(message: { [k: string]: any }): (string|null);
10004
+
10005
+ /**
10006
+ * Creates a Transaction message from a plain object. Also converts values to their respective internal types.
10007
+ * @param object Plain object
10008
+ * @returns Transaction
10009
+ */
10010
+ public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.Transaction;
10011
+
10012
+ /**
10013
+ * Creates a plain object from a Transaction message. Also converts values to other types if specified.
10014
+ * @param message Transaction
10015
+ * @param [options] Conversion options
10016
+ * @returns Plain object
10017
+ */
10018
+ public static toObject(message: TW.Utxo.Proto.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
10019
+
10020
+ /**
10021
+ * Converts this Transaction to JSON.
10022
+ * @returns JSON object
10023
+ */
10024
+ public toJSON(): { [k: string]: any };
10025
+ }
10026
+ }
10027
+ }
10028
+
10029
+ /** Namespace Zcash. */
10030
+ namespace Zcash {
10031
+
10032
+ /** Namespace Proto. */
10033
+ namespace Proto {
10034
+
10035
+ /** Properties of a TransactionBuilderExtraData. */
10036
+ interface ITransactionBuilderExtraData {
10037
+
10038
+ /** TransactionBuilderExtraData branchId */
10039
+ branchId?: (Uint8Array|null);
10040
+
10041
+ /** TransactionBuilderExtraData expiryHeight */
10042
+ expiryHeight?: (number|null);
10043
+
10044
+ /** TransactionBuilderExtraData zip_0317 */
10045
+ zip_0317?: (boolean|null);
10046
+ }
10047
+
10048
+ /** Represents a TransactionBuilderExtraData. */
10049
+ class TransactionBuilderExtraData implements ITransactionBuilderExtraData {
10050
+
10051
+ /**
10052
+ * Constructs a new TransactionBuilderExtraData.
10053
+ * @param [properties] Properties to set
10054
+ */
10055
+ constructor(properties?: TW.Zcash.Proto.ITransactionBuilderExtraData);
10056
+
10057
+ /** TransactionBuilderExtraData branchId. */
10058
+ public branchId: Uint8Array;
10059
+
10060
+ /** TransactionBuilderExtraData expiryHeight. */
10061
+ public expiryHeight: number;
10062
+
10063
+ /** TransactionBuilderExtraData zip_0317. */
10064
+ public zip_0317: boolean;
10065
+
10066
+ /**
10067
+ * Creates a new TransactionBuilderExtraData instance using the specified properties.
10068
+ * @param [properties] Properties to set
10069
+ * @returns TransactionBuilderExtraData instance
10070
+ */
10071
+ public static create(properties?: TW.Zcash.Proto.ITransactionBuilderExtraData): TW.Zcash.Proto.TransactionBuilderExtraData;
10072
+
10073
+ /**
10074
+ * Encodes the specified TransactionBuilderExtraData message. Does not implicitly {@link TW.Zcash.Proto.TransactionBuilderExtraData.verify|verify} messages.
10075
+ * @param message TransactionBuilderExtraData message or plain object to encode
10076
+ * @param [writer] Writer to encode to
10077
+ * @returns Writer
10078
+ */
10079
+ public static encode(message: TW.Zcash.Proto.ITransactionBuilderExtraData, writer?: $protobuf.Writer): $protobuf.Writer;
10080
+
10081
+ /**
10082
+ * Decodes a TransactionBuilderExtraData message from the specified reader or buffer.
10083
+ * @param reader Reader or buffer to decode from
10084
+ * @param [length] Message length if known beforehand
10085
+ * @returns TransactionBuilderExtraData
10086
+ * @throws {Error} If the payload is not a reader or valid buffer
10087
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10088
+ */
10089
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Zcash.Proto.TransactionBuilderExtraData;
10090
+
10091
+ /**
10092
+ * Verifies a TransactionBuilderExtraData message.
10093
+ * @param message Plain object to verify
10094
+ * @returns `null` if valid, otherwise the reason why it is not
10095
+ */
10096
+ public static verify(message: { [k: string]: any }): (string|null);
10097
+
10098
+ /**
10099
+ * Creates a TransactionBuilderExtraData message from a plain object. Also converts values to their respective internal types.
10100
+ * @param object Plain object
10101
+ * @returns TransactionBuilderExtraData
10102
+ */
10103
+ public static fromObject(object: { [k: string]: any }): TW.Zcash.Proto.TransactionBuilderExtraData;
10104
+
10105
+ /**
10106
+ * Creates a plain object from a TransactionBuilderExtraData message. Also converts values to other types if specified.
10107
+ * @param message TransactionBuilderExtraData
10108
+ * @param [options] Conversion options
10109
+ * @returns Plain object
10110
+ */
10111
+ public static toObject(message: TW.Zcash.Proto.TransactionBuilderExtraData, options?: $protobuf.IConversionOptions): { [k: string]: any };
10112
+
10113
+ /**
10114
+ * Converts this TransactionBuilderExtraData to JSON.
10115
+ * @returns JSON object
10116
+ */
10117
+ public toJSON(): { [k: string]: any };
10118
+ }
10119
+
10120
+ /** Properties of a Transaction. */
10121
+ interface ITransaction {
10122
+
10123
+ /** Currently, version 4 (0x80000004) is supported only. */
10124
+ version?: (number|null);
10125
+
10126
+ /** Transaction versionGroupId */
10127
+ versionGroupId?: (number|null);
10128
+
10129
+ /** Transaction inputs */
10130
+ inputs?: (TW.Utxo.Proto.ITransactionInput[]|null);
10131
+
10132
+ /** Transaction outputs */
10133
+ outputs?: (TW.Utxo.Proto.ITransactionOutput[]|null);
10134
+
10135
+ /** Transaction lockTime */
10136
+ lockTime?: (number|null);
10137
+
10138
+ /** Transaction expiryHeight */
10139
+ expiryHeight?: (number|null);
10140
+
10141
+ /** Transaction saplingValueBalance */
10142
+ saplingValueBalance?: (Long|null);
10143
+
10144
+ /** Transaction branchId */
10145
+ branchId?: (Uint8Array|null);
10146
+ }
10147
+
10148
+ /** Represents a Transaction. */
10149
+ class Transaction implements ITransaction {
10150
+
10151
+ /**
10152
+ * Constructs a new Transaction.
10153
+ * @param [properties] Properties to set
10154
+ */
10155
+ constructor(properties?: TW.Zcash.Proto.ITransaction);
10156
+
10157
+ /** Currently, version 4 (0x80000004) is supported only. */
10158
+ public version: number;
10159
+
10160
+ /** Transaction versionGroupId. */
10161
+ public versionGroupId: number;
10162
+
10163
+ /** Transaction inputs. */
10164
+ public inputs: TW.Utxo.Proto.ITransactionInput[];
10165
+
10166
+ /** Transaction outputs. */
10167
+ public outputs: TW.Utxo.Proto.ITransactionOutput[];
10168
+
10169
+ /** Transaction lockTime. */
10170
+ public lockTime: number;
10171
+
10172
+ /** Transaction expiryHeight. */
10173
+ public expiryHeight: number;
10174
+
10175
+ /** Transaction saplingValueBalance. */
10176
+ public saplingValueBalance: Long;
10177
+
10178
+ /** Transaction branchId. */
10179
+ public branchId: Uint8Array;
10180
+
10181
+ /**
10182
+ * Creates a new Transaction instance using the specified properties.
10183
+ * @param [properties] Properties to set
10184
+ * @returns Transaction instance
10185
+ */
10186
+ public static create(properties?: TW.Zcash.Proto.ITransaction): TW.Zcash.Proto.Transaction;
10187
+
10188
+ /**
10189
+ * Encodes the specified Transaction message. Does not implicitly {@link TW.Zcash.Proto.Transaction.verify|verify} messages.
10190
+ * @param message Transaction message or plain object to encode
10191
+ * @param [writer] Writer to encode to
10192
+ * @returns Writer
10193
+ */
10194
+ public static encode(message: TW.Zcash.Proto.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
10195
+
10196
+ /**
10197
+ * Decodes a Transaction message from the specified reader or buffer.
10198
+ * @param reader Reader or buffer to decode from
10199
+ * @param [length] Message length if known beforehand
10200
+ * @returns Transaction
10201
+ * @throws {Error} If the payload is not a reader or valid buffer
10202
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10203
+ */
10204
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Zcash.Proto.Transaction;
10205
+
10206
+ /**
10207
+ * Verifies a Transaction message.
10208
+ * @param message Plain object to verify
10209
+ * @returns `null` if valid, otherwise the reason why it is not
10210
+ */
10211
+ public static verify(message: { [k: string]: any }): (string|null);
10212
+
10213
+ /**
10214
+ * Creates a Transaction message from a plain object. Also converts values to their respective internal types.
10215
+ * @param object Plain object
10216
+ * @returns Transaction
10217
+ */
10218
+ public static fromObject(object: { [k: string]: any }): TW.Zcash.Proto.Transaction;
10219
+
10220
+ /**
10221
+ * Creates a plain object from a Transaction message. Also converts values to other types if specified.
10222
+ * @param message Transaction
10223
+ * @param [options] Conversion options
10224
+ * @returns Plain object
10225
+ */
10226
+ public static toObject(message: TW.Zcash.Proto.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
10227
+
10228
+ /**
10229
+ * Converts this Transaction to JSON.
10230
+ * @returns JSON object
10231
+ */
10232
+ public toJSON(): { [k: string]: any };
10233
+ }
10234
+ }
10235
+ }
10236
+
10006
10237
  /** Namespace Cardano. */
10007
10238
  namespace Cardano {
10008
10239
 
@@ -41751,6 +41982,255 @@ export namespace TW {
41751
41982
  */
41752
41983
  public toJSON(): { [k: string]: any };
41753
41984
  }
41985
+
41986
+ /** Properties of a MessageSigningInput. */
41987
+ interface IMessageSigningInput {
41988
+
41989
+ /** MessageSigningInput privateKey */
41990
+ privateKey?: (Uint8Array|null);
41991
+
41992
+ /** MessageSigningInput message */
41993
+ message?: (string|null);
41994
+ }
41995
+
41996
+ /** Represents a MessageSigningInput. */
41997
+ class MessageSigningInput implements IMessageSigningInput {
41998
+
41999
+ /**
42000
+ * Constructs a new MessageSigningInput.
42001
+ * @param [properties] Properties to set
42002
+ */
42003
+ constructor(properties?: TW.Sui.Proto.IMessageSigningInput);
42004
+
42005
+ /** MessageSigningInput privateKey. */
42006
+ public privateKey: Uint8Array;
42007
+
42008
+ /** MessageSigningInput message. */
42009
+ public message: string;
42010
+
42011
+ /**
42012
+ * Creates a new MessageSigningInput instance using the specified properties.
42013
+ * @param [properties] Properties to set
42014
+ * @returns MessageSigningInput instance
42015
+ */
42016
+ public static create(properties?: TW.Sui.Proto.IMessageSigningInput): TW.Sui.Proto.MessageSigningInput;
42017
+
42018
+ /**
42019
+ * Encodes the specified MessageSigningInput message. Does not implicitly {@link TW.Sui.Proto.MessageSigningInput.verify|verify} messages.
42020
+ * @param message MessageSigningInput message or plain object to encode
42021
+ * @param [writer] Writer to encode to
42022
+ * @returns Writer
42023
+ */
42024
+ public static encode(message: TW.Sui.Proto.IMessageSigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
42025
+
42026
+ /**
42027
+ * Decodes a MessageSigningInput message from the specified reader or buffer.
42028
+ * @param reader Reader or buffer to decode from
42029
+ * @param [length] Message length if known beforehand
42030
+ * @returns MessageSigningInput
42031
+ * @throws {Error} If the payload is not a reader or valid buffer
42032
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42033
+ */
42034
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.MessageSigningInput;
42035
+
42036
+ /**
42037
+ * Verifies a MessageSigningInput message.
42038
+ * @param message Plain object to verify
42039
+ * @returns `null` if valid, otherwise the reason why it is not
42040
+ */
42041
+ public static verify(message: { [k: string]: any }): (string|null);
42042
+
42043
+ /**
42044
+ * Creates a MessageSigningInput message from a plain object. Also converts values to their respective internal types.
42045
+ * @param object Plain object
42046
+ * @returns MessageSigningInput
42047
+ */
42048
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.MessageSigningInput;
42049
+
42050
+ /**
42051
+ * Creates a plain object from a MessageSigningInput message. Also converts values to other types if specified.
42052
+ * @param message MessageSigningInput
42053
+ * @param [options] Conversion options
42054
+ * @returns Plain object
42055
+ */
42056
+ public static toObject(message: TW.Sui.Proto.MessageSigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
42057
+
42058
+ /**
42059
+ * Converts this MessageSigningInput to JSON.
42060
+ * @returns JSON object
42061
+ */
42062
+ public toJSON(): { [k: string]: any };
42063
+ }
42064
+
42065
+ /** Properties of a MessageSigningOutput. */
42066
+ interface IMessageSigningOutput {
42067
+
42068
+ /** MessageSigningOutput signature */
42069
+ signature?: (string|null);
42070
+
42071
+ /** MessageSigningOutput error */
42072
+ error?: (TW.Common.Proto.SigningError|null);
42073
+
42074
+ /** MessageSigningOutput errorMessage */
42075
+ errorMessage?: (string|null);
42076
+ }
42077
+
42078
+ /** Represents a MessageSigningOutput. */
42079
+ class MessageSigningOutput implements IMessageSigningOutput {
42080
+
42081
+ /**
42082
+ * Constructs a new MessageSigningOutput.
42083
+ * @param [properties] Properties to set
42084
+ */
42085
+ constructor(properties?: TW.Sui.Proto.IMessageSigningOutput);
42086
+
42087
+ /** MessageSigningOutput signature. */
42088
+ public signature: string;
42089
+
42090
+ /** MessageSigningOutput error. */
42091
+ public error: TW.Common.Proto.SigningError;
42092
+
42093
+ /** MessageSigningOutput errorMessage. */
42094
+ public errorMessage: string;
42095
+
42096
+ /**
42097
+ * Creates a new MessageSigningOutput instance using the specified properties.
42098
+ * @param [properties] Properties to set
42099
+ * @returns MessageSigningOutput instance
42100
+ */
42101
+ public static create(properties?: TW.Sui.Proto.IMessageSigningOutput): TW.Sui.Proto.MessageSigningOutput;
42102
+
42103
+ /**
42104
+ * Encodes the specified MessageSigningOutput message. Does not implicitly {@link TW.Sui.Proto.MessageSigningOutput.verify|verify} messages.
42105
+ * @param message MessageSigningOutput message or plain object to encode
42106
+ * @param [writer] Writer to encode to
42107
+ * @returns Writer
42108
+ */
42109
+ public static encode(message: TW.Sui.Proto.IMessageSigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
42110
+
42111
+ /**
42112
+ * Decodes a MessageSigningOutput message from the specified reader or buffer.
42113
+ * @param reader Reader or buffer to decode from
42114
+ * @param [length] Message length if known beforehand
42115
+ * @returns MessageSigningOutput
42116
+ * @throws {Error} If the payload is not a reader or valid buffer
42117
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42118
+ */
42119
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.MessageSigningOutput;
42120
+
42121
+ /**
42122
+ * Verifies a MessageSigningOutput message.
42123
+ * @param message Plain object to verify
42124
+ * @returns `null` if valid, otherwise the reason why it is not
42125
+ */
42126
+ public static verify(message: { [k: string]: any }): (string|null);
42127
+
42128
+ /**
42129
+ * Creates a MessageSigningOutput message from a plain object. Also converts values to their respective internal types.
42130
+ * @param object Plain object
42131
+ * @returns MessageSigningOutput
42132
+ */
42133
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.MessageSigningOutput;
42134
+
42135
+ /**
42136
+ * Creates a plain object from a MessageSigningOutput message. Also converts values to other types if specified.
42137
+ * @param message MessageSigningOutput
42138
+ * @param [options] Conversion options
42139
+ * @returns Plain object
42140
+ */
42141
+ public static toObject(message: TW.Sui.Proto.MessageSigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
42142
+
42143
+ /**
42144
+ * Converts this MessageSigningOutput to JSON.
42145
+ * @returns JSON object
42146
+ */
42147
+ public toJSON(): { [k: string]: any };
42148
+ }
42149
+
42150
+ /** Properties of a MessageVerifyingInput. */
42151
+ interface IMessageVerifyingInput {
42152
+
42153
+ /** MessageVerifyingInput message */
42154
+ message?: (string|null);
42155
+
42156
+ /** MessageVerifyingInput publicKey */
42157
+ publicKey?: (Uint8Array|null);
42158
+
42159
+ /** MessageVerifyingInput signature */
42160
+ signature?: (string|null);
42161
+ }
42162
+
42163
+ /** Represents a MessageVerifyingInput. */
42164
+ class MessageVerifyingInput implements IMessageVerifyingInput {
42165
+
42166
+ /**
42167
+ * Constructs a new MessageVerifyingInput.
42168
+ * @param [properties] Properties to set
42169
+ */
42170
+ constructor(properties?: TW.Sui.Proto.IMessageVerifyingInput);
42171
+
42172
+ /** MessageVerifyingInput message. */
42173
+ public message: string;
42174
+
42175
+ /** MessageVerifyingInput publicKey. */
42176
+ public publicKey: Uint8Array;
42177
+
42178
+ /** MessageVerifyingInput signature. */
42179
+ public signature: string;
42180
+
42181
+ /**
42182
+ * Creates a new MessageVerifyingInput instance using the specified properties.
42183
+ * @param [properties] Properties to set
42184
+ * @returns MessageVerifyingInput instance
42185
+ */
42186
+ public static create(properties?: TW.Sui.Proto.IMessageVerifyingInput): TW.Sui.Proto.MessageVerifyingInput;
42187
+
42188
+ /**
42189
+ * Encodes the specified MessageVerifyingInput message. Does not implicitly {@link TW.Sui.Proto.MessageVerifyingInput.verify|verify} messages.
42190
+ * @param message MessageVerifyingInput message or plain object to encode
42191
+ * @param [writer] Writer to encode to
42192
+ * @returns Writer
42193
+ */
42194
+ public static encode(message: TW.Sui.Proto.IMessageVerifyingInput, writer?: $protobuf.Writer): $protobuf.Writer;
42195
+
42196
+ /**
42197
+ * Decodes a MessageVerifyingInput message from the specified reader or buffer.
42198
+ * @param reader Reader or buffer to decode from
42199
+ * @param [length] Message length if known beforehand
42200
+ * @returns MessageVerifyingInput
42201
+ * @throws {Error} If the payload is not a reader or valid buffer
42202
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42203
+ */
42204
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.MessageVerifyingInput;
42205
+
42206
+ /**
42207
+ * Verifies a MessageVerifyingInput message.
42208
+ * @param message Plain object to verify
42209
+ * @returns `null` if valid, otherwise the reason why it is not
42210
+ */
42211
+ public static verify(message: { [k: string]: any }): (string|null);
42212
+
42213
+ /**
42214
+ * Creates a MessageVerifyingInput message from a plain object. Also converts values to their respective internal types.
42215
+ * @param object Plain object
42216
+ * @returns MessageVerifyingInput
42217
+ */
42218
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.MessageVerifyingInput;
42219
+
42220
+ /**
42221
+ * Creates a plain object from a MessageVerifyingInput message. Also converts values to other types if specified.
42222
+ * @param message MessageVerifyingInput
42223
+ * @param [options] Conversion options
42224
+ * @returns Plain object
42225
+ */
42226
+ public static toObject(message: TW.Sui.Proto.MessageVerifyingInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
42227
+
42228
+ /**
42229
+ * Converts this MessageVerifyingInput to JSON.
42230
+ * @returns JSON object
42231
+ */
42232
+ public toJSON(): { [k: string]: any };
42233
+ }
41754
42234
  }
41755
42235
  }
41756
42236