@trustwallet/wallet-core 2.9.0 → 2.9.3

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.
@@ -3424,7 +3424,8 @@ export namespace TW {
3424
3424
  Error_input_parse = 19,
3425
3425
  Error_no_support_n2n = 20,
3426
3426
  Error_signatures_count = 21,
3427
- Error_invalid_params = 22
3427
+ Error_invalid_params = 22,
3428
+ Error_invalid_requested_token_amount = 23
3428
3429
  }
3429
3430
  }
3430
3431
  }
@@ -4652,6 +4653,9 @@ export namespace TW {
4652
4653
 
4653
4654
  /** TxOutput amount */
4654
4655
  amount?: (Long|null);
4656
+
4657
+ /** TxOutput tokenAmount */
4658
+ tokenAmount?: (TW.Cardano.Proto.ITokenAmount[]|null);
4655
4659
  }
4656
4660
 
4657
4661
  /** Represents a TxOutput. */
@@ -4669,6 +4673,9 @@ export namespace TW {
4669
4673
  /** TxOutput amount. */
4670
4674
  public amount: Long;
4671
4675
 
4676
+ /** TxOutput tokenAmount. */
4677
+ public tokenAmount: TW.Cardano.Proto.ITokenAmount[];
4678
+
4672
4679
  /**
4673
4680
  * Creates a new TxOutput instance using the specified properties.
4674
4681
  * @param [properties] Properties to set
@@ -4723,6 +4730,79 @@ export namespace TW {
4723
4730
  public toJSON(): { [k: string]: any };
4724
4731
  }
4725
4732
 
4733
+ /** Properties of a TokenBundle. */
4734
+ interface ITokenBundle {
4735
+
4736
+ /** TokenBundle token */
4737
+ token?: (TW.Cardano.Proto.ITokenAmount[]|null);
4738
+ }
4739
+
4740
+ /** Represents a TokenBundle. */
4741
+ class TokenBundle implements ITokenBundle {
4742
+
4743
+ /**
4744
+ * Constructs a new TokenBundle.
4745
+ * @param [properties] Properties to set
4746
+ */
4747
+ constructor(properties?: TW.Cardano.Proto.ITokenBundle);
4748
+
4749
+ /** TokenBundle token. */
4750
+ public token: TW.Cardano.Proto.ITokenAmount[];
4751
+
4752
+ /**
4753
+ * Creates a new TokenBundle instance using the specified properties.
4754
+ * @param [properties] Properties to set
4755
+ * @returns TokenBundle instance
4756
+ */
4757
+ public static create(properties?: TW.Cardano.Proto.ITokenBundle): TW.Cardano.Proto.TokenBundle;
4758
+
4759
+ /**
4760
+ * Encodes the specified TokenBundle message. Does not implicitly {@link TW.Cardano.Proto.TokenBundle.verify|verify} messages.
4761
+ * @param message TokenBundle message or plain object to encode
4762
+ * @param [writer] Writer to encode to
4763
+ * @returns Writer
4764
+ */
4765
+ public static encode(message: TW.Cardano.Proto.ITokenBundle, writer?: $protobuf.Writer): $protobuf.Writer;
4766
+
4767
+ /**
4768
+ * Decodes a TokenBundle message from the specified reader or buffer.
4769
+ * @param reader Reader or buffer to decode from
4770
+ * @param [length] Message length if known beforehand
4771
+ * @returns TokenBundle
4772
+ * @throws {Error} If the payload is not a reader or valid buffer
4773
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4774
+ */
4775
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cardano.Proto.TokenBundle;
4776
+
4777
+ /**
4778
+ * Verifies a TokenBundle message.
4779
+ * @param message Plain object to verify
4780
+ * @returns `null` if valid, otherwise the reason why it is not
4781
+ */
4782
+ public static verify(message: { [k: string]: any }): (string|null);
4783
+
4784
+ /**
4785
+ * Creates a TokenBundle message from a plain object. Also converts values to their respective internal types.
4786
+ * @param object Plain object
4787
+ * @returns TokenBundle
4788
+ */
4789
+ public static fromObject(object: { [k: string]: any }): TW.Cardano.Proto.TokenBundle;
4790
+
4791
+ /**
4792
+ * Creates a plain object from a TokenBundle message. Also converts values to other types if specified.
4793
+ * @param message TokenBundle
4794
+ * @param [options] Conversion options
4795
+ * @returns Plain object
4796
+ */
4797
+ public static toObject(message: TW.Cardano.Proto.TokenBundle, options?: $protobuf.IConversionOptions): { [k: string]: any };
4798
+
4799
+ /**
4800
+ * Converts this TokenBundle to JSON.
4801
+ * @returns JSON object
4802
+ */
4803
+ public toJSON(): { [k: string]: any };
4804
+ }
4805
+
4726
4806
  /** Properties of a Transfer. */
4727
4807
  interface ITransfer {
4728
4808
 
@@ -4735,8 +4815,14 @@ export namespace TW {
4735
4815
  /** Transfer amount */
4736
4816
  amount?: (Long|null);
4737
4817
 
4818
+ /** Transfer tokenAmount */
4819
+ tokenAmount?: (TW.Cardano.Proto.ITokenBundle|null);
4820
+
4738
4821
  /** Transfer useMaxAmount */
4739
4822
  useMaxAmount?: (boolean|null);
4823
+
4824
+ /** Transfer forceFee */
4825
+ forceFee?: (Long|null);
4740
4826
  }
4741
4827
 
4742
4828
  /** Represents a Transfer. */
@@ -4757,9 +4843,15 @@ export namespace TW {
4757
4843
  /** Transfer amount. */
4758
4844
  public amount: Long;
4759
4845
 
4846
+ /** Transfer tokenAmount. */
4847
+ public tokenAmount?: (TW.Cardano.Proto.ITokenBundle|null);
4848
+
4760
4849
  /** Transfer useMaxAmount. */
4761
4850
  public useMaxAmount: boolean;
4762
4851
 
4852
+ /** Transfer forceFee. */
4853
+ public forceFee: Long;
4854
+
4763
4855
  /**
4764
4856
  * Creates a new Transfer instance using the specified properties.
4765
4857
  * @param [properties] Properties to set
@@ -4817,18 +4909,27 @@ export namespace TW {
4817
4909
  /** Properties of a TransactionPlan. */
4818
4910
  interface ITransactionPlan {
4819
4911
 
4820
- /** TransactionPlan amount */
4821
- amount?: (Long|null);
4822
-
4823
4912
  /** TransactionPlan availableAmount */
4824
4913
  availableAmount?: (Long|null);
4825
4914
 
4915
+ /** TransactionPlan amount */
4916
+ amount?: (Long|null);
4917
+
4826
4918
  /** TransactionPlan fee */
4827
4919
  fee?: (Long|null);
4828
4920
 
4829
4921
  /** TransactionPlan change */
4830
4922
  change?: (Long|null);
4831
4923
 
4924
+ /** TransactionPlan availableTokens */
4925
+ availableTokens?: (TW.Cardano.Proto.ITokenAmount[]|null);
4926
+
4927
+ /** TransactionPlan outputTokens */
4928
+ outputTokens?: (TW.Cardano.Proto.ITokenAmount[]|null);
4929
+
4930
+ /** TransactionPlan changeTokens */
4931
+ changeTokens?: (TW.Cardano.Proto.ITokenAmount[]|null);
4932
+
4832
4933
  /** TransactionPlan utxos */
4833
4934
  utxos?: (TW.Cardano.Proto.ITxInput[]|null);
4834
4935
 
@@ -4845,18 +4946,27 @@ export namespace TW {
4845
4946
  */
4846
4947
  constructor(properties?: TW.Cardano.Proto.ITransactionPlan);
4847
4948
 
4848
- /** TransactionPlan amount. */
4849
- public amount: Long;
4850
-
4851
4949
  /** TransactionPlan availableAmount. */
4852
4950
  public availableAmount: Long;
4853
4951
 
4952
+ /** TransactionPlan amount. */
4953
+ public amount: Long;
4954
+
4854
4955
  /** TransactionPlan fee. */
4855
4956
  public fee: Long;
4856
4957
 
4857
4958
  /** TransactionPlan change. */
4858
4959
  public change: Long;
4859
4960
 
4961
+ /** TransactionPlan availableTokens. */
4962
+ public availableTokens: TW.Cardano.Proto.ITokenAmount[];
4963
+
4964
+ /** TransactionPlan outputTokens. */
4965
+ public outputTokens: TW.Cardano.Proto.ITokenAmount[];
4966
+
4967
+ /** TransactionPlan changeTokens. */
4968
+ public changeTokens: TW.Cardano.Proto.ITokenAmount[];
4969
+
4860
4970
  /** TransactionPlan utxos. */
4861
4971
  public utxos: TW.Cardano.Proto.ITxInput[];
4862
4972
 
@@ -16967,6 +17077,9 @@ export namespace TW {
16967
17077
 
16968
17078
  /** Staking chill */
16969
17079
  chill?: (TW.Polkadot.Proto.Staking.IChill|null);
17080
+
17081
+ /** Staking chillAndUnbond */
17082
+ chillAndUnbond?: (TW.Polkadot.Proto.Staking.IChillAndUnbond|null);
16970
17083
  }
16971
17084
 
16972
17085
  /** Represents a Staking. */
@@ -16999,8 +17112,11 @@ export namespace TW {
16999
17112
  /** Staking chill. */
17000
17113
  public chill?: (TW.Polkadot.Proto.Staking.IChill|null);
17001
17114
 
17115
+ /** Staking chillAndUnbond. */
17116
+ public chillAndUnbond?: (TW.Polkadot.Proto.Staking.IChillAndUnbond|null);
17117
+
17002
17118
  /** Staking messageOneof. */
17003
- public messageOneof?: ("bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill");
17119
+ public messageOneof?: ("bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|"chillAndUnbond");
17004
17120
 
17005
17121
  /**
17006
17122
  * Creates a new Staking instance using the specified properties.
@@ -17526,6 +17642,79 @@ export namespace TW {
17526
17642
  public toJSON(): { [k: string]: any };
17527
17643
  }
17528
17644
 
17645
+ /** Properties of a ChillAndUnbond. */
17646
+ interface IChillAndUnbond {
17647
+
17648
+ /** ChillAndUnbond value */
17649
+ value?: (Uint8Array|null);
17650
+ }
17651
+
17652
+ /** Represents a ChillAndUnbond. */
17653
+ class ChillAndUnbond implements IChillAndUnbond {
17654
+
17655
+ /**
17656
+ * Constructs a new ChillAndUnbond.
17657
+ * @param [properties] Properties to set
17658
+ */
17659
+ constructor(properties?: TW.Polkadot.Proto.Staking.IChillAndUnbond);
17660
+
17661
+ /** ChillAndUnbond value. */
17662
+ public value: Uint8Array;
17663
+
17664
+ /**
17665
+ * Creates a new ChillAndUnbond instance using the specified properties.
17666
+ * @param [properties] Properties to set
17667
+ * @returns ChillAndUnbond instance
17668
+ */
17669
+ public static create(properties?: TW.Polkadot.Proto.Staking.IChillAndUnbond): TW.Polkadot.Proto.Staking.ChillAndUnbond;
17670
+
17671
+ /**
17672
+ * Encodes the specified ChillAndUnbond message. Does not implicitly {@link TW.Polkadot.Proto.Staking.ChillAndUnbond.verify|verify} messages.
17673
+ * @param message ChillAndUnbond message or plain object to encode
17674
+ * @param [writer] Writer to encode to
17675
+ * @returns Writer
17676
+ */
17677
+ public static encode(message: TW.Polkadot.Proto.Staking.IChillAndUnbond, writer?: $protobuf.Writer): $protobuf.Writer;
17678
+
17679
+ /**
17680
+ * Decodes a ChillAndUnbond message from the specified reader or buffer.
17681
+ * @param reader Reader or buffer to decode from
17682
+ * @param [length] Message length if known beforehand
17683
+ * @returns ChillAndUnbond
17684
+ * @throws {Error} If the payload is not a reader or valid buffer
17685
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17686
+ */
17687
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Polkadot.Proto.Staking.ChillAndUnbond;
17688
+
17689
+ /**
17690
+ * Verifies a ChillAndUnbond message.
17691
+ * @param message Plain object to verify
17692
+ * @returns `null` if valid, otherwise the reason why it is not
17693
+ */
17694
+ public static verify(message: { [k: string]: any }): (string|null);
17695
+
17696
+ /**
17697
+ * Creates a ChillAndUnbond message from a plain object. Also converts values to their respective internal types.
17698
+ * @param object Plain object
17699
+ * @returns ChillAndUnbond
17700
+ */
17701
+ public static fromObject(object: { [k: string]: any }): TW.Polkadot.Proto.Staking.ChillAndUnbond;
17702
+
17703
+ /**
17704
+ * Creates a plain object from a ChillAndUnbond message. Also converts values to other types if specified.
17705
+ * @param message ChillAndUnbond
17706
+ * @param [options] Conversion options
17707
+ * @returns Plain object
17708
+ */
17709
+ public static toObject(message: TW.Polkadot.Proto.Staking.ChillAndUnbond, options?: $protobuf.IConversionOptions): { [k: string]: any };
17710
+
17711
+ /**
17712
+ * Converts this ChillAndUnbond to JSON.
17713
+ * @returns JSON object
17714
+ */
17715
+ public toJSON(): { [k: string]: any };
17716
+ }
17717
+
17529
17718
  /** Properties of a Chill. */
17530
17719
  interface IChill {
17531
17720
  }