@trustwallet/wallet-core 4.1.8-rc1 → 4.1.8

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.
@@ -7675,6 +7675,9 @@ export namespace TW {
7675
7675
 
7676
7676
  /** ChainInfo p2shPrefix */
7677
7677
  p2shPrefix?: (number|null);
7678
+
7679
+ /** ChainInfo hrp */
7680
+ hrp?: (string|null);
7678
7681
  }
7679
7682
 
7680
7683
  /** Represents a ChainInfo. */
@@ -7692,6 +7695,9 @@ export namespace TW {
7692
7695
  /** ChainInfo p2shPrefix. */
7693
7696
  public p2shPrefix: number;
7694
7697
 
7698
+ /** ChainInfo hrp. */
7699
+ public hrp: string;
7700
+
7695
7701
  /**
7696
7702
  * Creates a new ChainInfo instance using the specified properties.
7697
7703
  * @param [properties] Properties to set
@@ -8171,7 +8177,7 @@ export namespace TW {
8171
8177
  /** TransactionPlan error */
8172
8178
  error?: (TW.Common.Proto.SigningError|null);
8173
8179
 
8174
- /** Error description. */
8180
+ /** TransactionPlan errorMessage */
8175
8181
  errorMessage?: (string|null);
8176
8182
 
8177
8183
  /** TransactionPlan inputs */
@@ -8208,7 +8214,7 @@ export namespace TW {
8208
8214
  /** TransactionPlan error. */
8209
8215
  public error: TW.Common.Proto.SigningError;
8210
8216
 
8211
- /** Error description. */
8217
+ /** TransactionPlan errorMessage. */
8212
8218
  public errorMessage: string;
8213
8219
 
8214
8220
  /** TransactionPlan inputs. */
@@ -8295,7 +8301,7 @@ export namespace TW {
8295
8301
  /** PreSigningOutput errorMessage */
8296
8302
  errorMessage?: (string|null);
8297
8303
 
8298
- /** The sighashes to be signed; ECDSA for legacy and Segwit, Schnorr for Taproot. */
8304
+ /** PreSigningOutput sighashes */
8299
8305
  sighashes?: (TW.BitcoinV2.Proto.PreSigningOutput.ISighash[]|null);
8300
8306
  }
8301
8307
 
@@ -8314,7 +8320,7 @@ export namespace TW {
8314
8320
  /** PreSigningOutput errorMessage. */
8315
8321
  public errorMessage: string;
8316
8322
 
8317
- /** The sighashes to be signed; ECDSA for legacy and Segwit, Schnorr for Taproot. */
8323
+ /** PreSigningOutput sighashes. */
8318
8324
  public sighashes: TW.BitcoinV2.Proto.PreSigningOutput.ISighash[];
8319
8325
 
8320
8326
  /**
@@ -8659,6 +8665,224 @@ export namespace TW {
8659
8665
  */
8660
8666
  public toJSON(): { [k: string]: any };
8661
8667
  }
8668
+
8669
+ /** Properties of a PsbtSigningInput. */
8670
+ interface IPsbtSigningInput {
8671
+
8672
+ /** PsbtSigningInput psbt */
8673
+ psbt?: (Uint8Array|null);
8674
+
8675
+ /** PsbtSigningInput privateKeys */
8676
+ privateKeys?: (Uint8Array[]|null);
8677
+
8678
+ /** PsbtSigningInput publicKeys */
8679
+ publicKeys?: (Uint8Array[]|null);
8680
+
8681
+ /** PsbtSigningInput chainInfo */
8682
+ chainInfo?: (TW.BitcoinV2.Proto.IChainInfo|null);
8683
+
8684
+ /** PsbtSigningInput dangerousUseFixedSchnorrRng */
8685
+ dangerousUseFixedSchnorrRng?: (boolean|null);
8686
+ }
8687
+
8688
+ /** Represents a PsbtSigningInput. */
8689
+ class PsbtSigningInput implements IPsbtSigningInput {
8690
+
8691
+ /**
8692
+ * Constructs a new PsbtSigningInput.
8693
+ * @param [properties] Properties to set
8694
+ */
8695
+ constructor(properties?: TW.BitcoinV2.Proto.IPsbtSigningInput);
8696
+
8697
+ /** PsbtSigningInput psbt. */
8698
+ public psbt: Uint8Array;
8699
+
8700
+ /** PsbtSigningInput privateKeys. */
8701
+ public privateKeys: Uint8Array[];
8702
+
8703
+ /** PsbtSigningInput publicKeys. */
8704
+ public publicKeys: Uint8Array[];
8705
+
8706
+ /** PsbtSigningInput chainInfo. */
8707
+ public chainInfo?: (TW.BitcoinV2.Proto.IChainInfo|null);
8708
+
8709
+ /** PsbtSigningInput dangerousUseFixedSchnorrRng. */
8710
+ public dangerousUseFixedSchnorrRng: boolean;
8711
+
8712
+ /**
8713
+ * Creates a new PsbtSigningInput instance using the specified properties.
8714
+ * @param [properties] Properties to set
8715
+ * @returns PsbtSigningInput instance
8716
+ */
8717
+ public static create(properties?: TW.BitcoinV2.Proto.IPsbtSigningInput): TW.BitcoinV2.Proto.PsbtSigningInput;
8718
+
8719
+ /**
8720
+ * Encodes the specified PsbtSigningInput message. Does not implicitly {@link TW.BitcoinV2.Proto.PsbtSigningInput.verify|verify} messages.
8721
+ * @param message PsbtSigningInput message or plain object to encode
8722
+ * @param [writer] Writer to encode to
8723
+ * @returns Writer
8724
+ */
8725
+ public static encode(message: TW.BitcoinV2.Proto.IPsbtSigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
8726
+
8727
+ /**
8728
+ * Decodes a PsbtSigningInput message from the specified reader or buffer.
8729
+ * @param reader Reader or buffer to decode from
8730
+ * @param [length] Message length if known beforehand
8731
+ * @returns PsbtSigningInput
8732
+ * @throws {Error} If the payload is not a reader or valid buffer
8733
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8734
+ */
8735
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PsbtSigningInput;
8736
+
8737
+ /**
8738
+ * Verifies a PsbtSigningInput message.
8739
+ * @param message Plain object to verify
8740
+ * @returns `null` if valid, otherwise the reason why it is not
8741
+ */
8742
+ public static verify(message: { [k: string]: any }): (string|null);
8743
+
8744
+ /**
8745
+ * Creates a PsbtSigningInput message from a plain object. Also converts values to their respective internal types.
8746
+ * @param object Plain object
8747
+ * @returns PsbtSigningInput
8748
+ */
8749
+ public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PsbtSigningInput;
8750
+
8751
+ /**
8752
+ * Creates a plain object from a PsbtSigningInput message. Also converts values to other types if specified.
8753
+ * @param message PsbtSigningInput
8754
+ * @param [options] Conversion options
8755
+ * @returns Plain object
8756
+ */
8757
+ public static toObject(message: TW.BitcoinV2.Proto.PsbtSigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
8758
+
8759
+ /**
8760
+ * Converts this PsbtSigningInput to JSON.
8761
+ * @returns JSON object
8762
+ */
8763
+ public toJSON(): { [k: string]: any };
8764
+ }
8765
+
8766
+ /** Properties of a PsbtSigningOutput. */
8767
+ interface IPsbtSigningOutput {
8768
+
8769
+ /** PsbtSigningOutput error */
8770
+ error?: (TW.Common.Proto.SigningError|null);
8771
+
8772
+ /** PsbtSigningOutput errorMessage */
8773
+ errorMessage?: (string|null);
8774
+
8775
+ /** PsbtSigningOutput transaction */
8776
+ transaction?: (TW.BitcoinV2.Proto.ITransaction|null);
8777
+
8778
+ /** PsbtSigningOutput encoded */
8779
+ encoded?: (Uint8Array|null);
8780
+
8781
+ /** PsbtSigningOutput txid */
8782
+ txid?: (Uint8Array|null);
8783
+
8784
+ /** PsbtSigningOutput vsize */
8785
+ vsize?: (Long|null);
8786
+
8787
+ /** PsbtSigningOutput weight */
8788
+ weight?: (Long|null);
8789
+
8790
+ /** PsbtSigningOutput fee */
8791
+ fee?: (Long|null);
8792
+
8793
+ /** PsbtSigningOutput psbt */
8794
+ psbt?: (Uint8Array|null);
8795
+ }
8796
+
8797
+ /** Represents a PsbtSigningOutput. */
8798
+ class PsbtSigningOutput implements IPsbtSigningOutput {
8799
+
8800
+ /**
8801
+ * Constructs a new PsbtSigningOutput.
8802
+ * @param [properties] Properties to set
8803
+ */
8804
+ constructor(properties?: TW.BitcoinV2.Proto.IPsbtSigningOutput);
8805
+
8806
+ /** PsbtSigningOutput error. */
8807
+ public error: TW.Common.Proto.SigningError;
8808
+
8809
+ /** PsbtSigningOutput errorMessage. */
8810
+ public errorMessage: string;
8811
+
8812
+ /** PsbtSigningOutput transaction. */
8813
+ public transaction?: (TW.BitcoinV2.Proto.ITransaction|null);
8814
+
8815
+ /** PsbtSigningOutput encoded. */
8816
+ public encoded: Uint8Array;
8817
+
8818
+ /** PsbtSigningOutput txid. */
8819
+ public txid: Uint8Array;
8820
+
8821
+ /** PsbtSigningOutput vsize. */
8822
+ public vsize: Long;
8823
+
8824
+ /** PsbtSigningOutput weight. */
8825
+ public weight: Long;
8826
+
8827
+ /** PsbtSigningOutput fee. */
8828
+ public fee: Long;
8829
+
8830
+ /** PsbtSigningOutput psbt. */
8831
+ public psbt: Uint8Array;
8832
+
8833
+ /**
8834
+ * Creates a new PsbtSigningOutput instance using the specified properties.
8835
+ * @param [properties] Properties to set
8836
+ * @returns PsbtSigningOutput instance
8837
+ */
8838
+ public static create(properties?: TW.BitcoinV2.Proto.IPsbtSigningOutput): TW.BitcoinV2.Proto.PsbtSigningOutput;
8839
+
8840
+ /**
8841
+ * Encodes the specified PsbtSigningOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.PsbtSigningOutput.verify|verify} messages.
8842
+ * @param message PsbtSigningOutput message or plain object to encode
8843
+ * @param [writer] Writer to encode to
8844
+ * @returns Writer
8845
+ */
8846
+ public static encode(message: TW.BitcoinV2.Proto.IPsbtSigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
8847
+
8848
+ /**
8849
+ * Decodes a PsbtSigningOutput message from the specified reader or buffer.
8850
+ * @param reader Reader or buffer to decode from
8851
+ * @param [length] Message length if known beforehand
8852
+ * @returns PsbtSigningOutput
8853
+ * @throws {Error} If the payload is not a reader or valid buffer
8854
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8855
+ */
8856
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PsbtSigningOutput;
8857
+
8858
+ /**
8859
+ * Verifies a PsbtSigningOutput message.
8860
+ * @param message Plain object to verify
8861
+ * @returns `null` if valid, otherwise the reason why it is not
8862
+ */
8863
+ public static verify(message: { [k: string]: any }): (string|null);
8864
+
8865
+ /**
8866
+ * Creates a PsbtSigningOutput message from a plain object. Also converts values to their respective internal types.
8867
+ * @param object Plain object
8868
+ * @returns PsbtSigningOutput
8869
+ */
8870
+ public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PsbtSigningOutput;
8871
+
8872
+ /**
8873
+ * Creates a plain object from a PsbtSigningOutput message. Also converts values to other types if specified.
8874
+ * @param message PsbtSigningOutput
8875
+ * @param [options] Conversion options
8876
+ * @returns Plain object
8877
+ */
8878
+ public static toObject(message: TW.BitcoinV2.Proto.PsbtSigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
8879
+
8880
+ /**
8881
+ * Converts this PsbtSigningOutput to JSON.
8882
+ * @returns JSON object
8883
+ */
8884
+ public toJSON(): { [k: string]: any };
8885
+ }
8662
8886
  }
8663
8887
  }
8664
8888
 
@@ -14634,6 +14858,85 @@ export namespace TW {
14634
14858
  public toJSON(): { [k: string]: any };
14635
14859
  }
14636
14860
 
14861
+ /** Properties of an Access. */
14862
+ interface IAccess {
14863
+
14864
+ /** Access address */
14865
+ address?: (string|null);
14866
+
14867
+ /** Access storedKeys */
14868
+ storedKeys?: (Uint8Array[]|null);
14869
+ }
14870
+
14871
+ /** Represents an Access. */
14872
+ class Access implements IAccess {
14873
+
14874
+ /**
14875
+ * Constructs a new Access.
14876
+ * @param [properties] Properties to set
14877
+ */
14878
+ constructor(properties?: TW.Ethereum.Proto.IAccess);
14879
+
14880
+ /** Access address. */
14881
+ public address: string;
14882
+
14883
+ /** Access storedKeys. */
14884
+ public storedKeys: Uint8Array[];
14885
+
14886
+ /**
14887
+ * Creates a new Access instance using the specified properties.
14888
+ * @param [properties] Properties to set
14889
+ * @returns Access instance
14890
+ */
14891
+ public static create(properties?: TW.Ethereum.Proto.IAccess): TW.Ethereum.Proto.Access;
14892
+
14893
+ /**
14894
+ * Encodes the specified Access message. Does not implicitly {@link TW.Ethereum.Proto.Access.verify|verify} messages.
14895
+ * @param message Access message or plain object to encode
14896
+ * @param [writer] Writer to encode to
14897
+ * @returns Writer
14898
+ */
14899
+ public static encode(message: TW.Ethereum.Proto.IAccess, writer?: $protobuf.Writer): $protobuf.Writer;
14900
+
14901
+ /**
14902
+ * Decodes an Access message from the specified reader or buffer.
14903
+ * @param reader Reader or buffer to decode from
14904
+ * @param [length] Message length if known beforehand
14905
+ * @returns Access
14906
+ * @throws {Error} If the payload is not a reader or valid buffer
14907
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14908
+ */
14909
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ethereum.Proto.Access;
14910
+
14911
+ /**
14912
+ * Verifies an Access message.
14913
+ * @param message Plain object to verify
14914
+ * @returns `null` if valid, otherwise the reason why it is not
14915
+ */
14916
+ public static verify(message: { [k: string]: any }): (string|null);
14917
+
14918
+ /**
14919
+ * Creates an Access message from a plain object. Also converts values to their respective internal types.
14920
+ * @param object Plain object
14921
+ * @returns Access
14922
+ */
14923
+ public static fromObject(object: { [k: string]: any }): TW.Ethereum.Proto.Access;
14924
+
14925
+ /**
14926
+ * Creates a plain object from an Access message. Also converts values to other types if specified.
14927
+ * @param message Access
14928
+ * @param [options] Conversion options
14929
+ * @returns Plain object
14930
+ */
14931
+ public static toObject(message: TW.Ethereum.Proto.Access, options?: $protobuf.IConversionOptions): { [k: string]: any };
14932
+
14933
+ /**
14934
+ * Converts this Access to JSON.
14935
+ * @returns JSON object
14936
+ */
14937
+ public toJSON(): { [k: string]: any };
14938
+ }
14939
+
14637
14940
  /** Properties of a SigningInput. */
14638
14941
  interface ISigningInput {
14639
14942
 
@@ -14669,6 +14972,9 @@ export namespace TW {
14669
14972
 
14670
14973
  /** SigningInput userOperation */
14671
14974
  userOperation?: (TW.Ethereum.Proto.IUserOperation|null);
14975
+
14976
+ /** SigningInput accessList */
14977
+ accessList?: (TW.Ethereum.Proto.IAccess[]|null);
14672
14978
  }
14673
14979
 
14674
14980
  /** Represents a SigningInput. */
@@ -14713,6 +15019,9 @@ export namespace TW {
14713
15019
  /** SigningInput userOperation. */
14714
15020
  public userOperation?: (TW.Ethereum.Proto.IUserOperation|null);
14715
15021
 
15022
+ /** SigningInput accessList. */
15023
+ public accessList: TW.Ethereum.Proto.IAccess[];
15024
+
14716
15025
  /**
14717
15026
  * Creates a new SigningInput instance using the specified properties.
14718
15027
  * @param [properties] Properties to set