@trustwallet/wallet-core 3.0.7 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1109,6 +1109,79 @@ export namespace TW {
1109
1109
  public toJSON(): { [k: string]: any };
1110
1110
  }
1111
1111
 
1112
+ /** Properties of a ManagedTokensRegisterMessage. */
1113
+ interface IManagedTokensRegisterMessage {
1114
+
1115
+ /** ManagedTokensRegisterMessage function */
1116
+ "function"?: (TW.Aptos.Proto.IStructTag|null);
1117
+ }
1118
+
1119
+ /** Represents a ManagedTokensRegisterMessage. */
1120
+ class ManagedTokensRegisterMessage implements IManagedTokensRegisterMessage {
1121
+
1122
+ /**
1123
+ * Constructs a new ManagedTokensRegisterMessage.
1124
+ * @param [properties] Properties to set
1125
+ */
1126
+ constructor(properties?: TW.Aptos.Proto.IManagedTokensRegisterMessage);
1127
+
1128
+ /** ManagedTokensRegisterMessage function. */
1129
+ public function?: (TW.Aptos.Proto.IStructTag|null);
1130
+
1131
+ /**
1132
+ * Creates a new ManagedTokensRegisterMessage instance using the specified properties.
1133
+ * @param [properties] Properties to set
1134
+ * @returns ManagedTokensRegisterMessage instance
1135
+ */
1136
+ public static create(properties?: TW.Aptos.Proto.IManagedTokensRegisterMessage): TW.Aptos.Proto.ManagedTokensRegisterMessage;
1137
+
1138
+ /**
1139
+ * Encodes the specified ManagedTokensRegisterMessage message. Does not implicitly {@link TW.Aptos.Proto.ManagedTokensRegisterMessage.verify|verify} messages.
1140
+ * @param message ManagedTokensRegisterMessage message or plain object to encode
1141
+ * @param [writer] Writer to encode to
1142
+ * @returns Writer
1143
+ */
1144
+ public static encode(message: TW.Aptos.Proto.IManagedTokensRegisterMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1145
+
1146
+ /**
1147
+ * Decodes a ManagedTokensRegisterMessage message from the specified reader or buffer.
1148
+ * @param reader Reader or buffer to decode from
1149
+ * @param [length] Message length if known beforehand
1150
+ * @returns ManagedTokensRegisterMessage
1151
+ * @throws {Error} If the payload is not a reader or valid buffer
1152
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1153
+ */
1154
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.ManagedTokensRegisterMessage;
1155
+
1156
+ /**
1157
+ * Verifies a ManagedTokensRegisterMessage message.
1158
+ * @param message Plain object to verify
1159
+ * @returns `null` if valid, otherwise the reason why it is not
1160
+ */
1161
+ public static verify(message: { [k: string]: any }): (string|null);
1162
+
1163
+ /**
1164
+ * Creates a ManagedTokensRegisterMessage message from a plain object. Also converts values to their respective internal types.
1165
+ * @param object Plain object
1166
+ * @returns ManagedTokensRegisterMessage
1167
+ */
1168
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.ManagedTokensRegisterMessage;
1169
+
1170
+ /**
1171
+ * Creates a plain object from a ManagedTokensRegisterMessage message. Also converts values to other types if specified.
1172
+ * @param message ManagedTokensRegisterMessage
1173
+ * @param [options] Conversion options
1174
+ * @returns Plain object
1175
+ */
1176
+ public static toObject(message: TW.Aptos.Proto.ManagedTokensRegisterMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1177
+
1178
+ /**
1179
+ * Converts this ManagedTokensRegisterMessage to JSON.
1180
+ * @returns JSON object
1181
+ */
1182
+ public toJSON(): { [k: string]: any };
1183
+ }
1184
+
1112
1185
  /** Properties of a CreateAccountMessage. */
1113
1186
  interface ICreateAccountMessage {
1114
1187
 
@@ -1576,18 +1649,6 @@ export namespace TW {
1576
1649
  /** SigningInput sequenceNumber */
1577
1650
  sequenceNumber?: (Long|null);
1578
1651
 
1579
- /** SigningInput transfer */
1580
- transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1581
-
1582
- /** SigningInput tokenTransfer */
1583
- tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1584
-
1585
- /** SigningInput createAccount */
1586
- createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1587
-
1588
- /** SigningInput nftMessage */
1589
- nftMessage?: (TW.Aptos.Proto.INftMessage|null);
1590
-
1591
1652
  /** SigningInput maxGasAmount */
1592
1653
  maxGasAmount?: (Long|null);
1593
1654
 
@@ -1605,6 +1666,21 @@ export namespace TW {
1605
1666
 
1606
1667
  /** SigningInput anyEncoded */
1607
1668
  anyEncoded?: (string|null);
1669
+
1670
+ /** SigningInput transfer */
1671
+ transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1672
+
1673
+ /** SigningInput tokenTransfer */
1674
+ tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1675
+
1676
+ /** SigningInput createAccount */
1677
+ createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1678
+
1679
+ /** SigningInput nftMessage */
1680
+ nftMessage?: (TW.Aptos.Proto.INftMessage|null);
1681
+
1682
+ /** SigningInput registerToken */
1683
+ registerToken?: (TW.Aptos.Proto.IManagedTokensRegisterMessage|null);
1608
1684
  }
1609
1685
 
1610
1686
  /** Represents a SigningInput. */
@@ -1622,18 +1698,6 @@ export namespace TW {
1622
1698
  /** SigningInput sequenceNumber. */
1623
1699
  public sequenceNumber: Long;
1624
1700
 
1625
- /** SigningInput transfer. */
1626
- public transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1627
-
1628
- /** SigningInput tokenTransfer. */
1629
- public tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1630
-
1631
- /** SigningInput createAccount. */
1632
- public createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1633
-
1634
- /** SigningInput nftMessage. */
1635
- public nftMessage?: (TW.Aptos.Proto.INftMessage|null);
1636
-
1637
1701
  /** SigningInput maxGasAmount. */
1638
1702
  public maxGasAmount: Long;
1639
1703
 
@@ -1652,8 +1716,23 @@ export namespace TW {
1652
1716
  /** SigningInput anyEncoded. */
1653
1717
  public anyEncoded: string;
1654
1718
 
1719
+ /** SigningInput transfer. */
1720
+ public transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1721
+
1722
+ /** SigningInput tokenTransfer. */
1723
+ public tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1724
+
1725
+ /** SigningInput createAccount. */
1726
+ public createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1727
+
1728
+ /** SigningInput nftMessage. */
1729
+ public nftMessage?: (TW.Aptos.Proto.INftMessage|null);
1730
+
1731
+ /** SigningInput registerToken. */
1732
+ public registerToken?: (TW.Aptos.Proto.IManagedTokensRegisterMessage|null);
1733
+
1655
1734
  /** SigningInput transactionPayload. */
1656
- public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage");
1735
+ public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken");
1657
1736
 
1658
1737
  /**
1659
1738
  * Creates a new SigningInput instance using the specified properties.
@@ -20481,12 +20560,6 @@ export namespace TW {
20481
20560
  /** Namespace Proto. */
20482
20561
  namespace Proto {
20483
20562
 
20484
- /** Network enum. */
20485
- enum Network {
20486
- POLKADOT = 0,
20487
- KUSAMA = 2
20488
- }
20489
-
20490
20563
  /** RewardDestination enum. */
20491
20564
  enum RewardDestination {
20492
20565
  STAKED = 0,
@@ -21488,7 +21561,7 @@ export namespace TW {
21488
21561
  privateKey?: (Uint8Array|null);
21489
21562
 
21490
21563
  /** SigningInput network */
21491
- network?: (TW.Polkadot.Proto.Network|null);
21564
+ network?: (number|null);
21492
21565
 
21493
21566
  /** SigningInput balanceCall */
21494
21567
  balanceCall?: (TW.Polkadot.Proto.IBalance|null);
@@ -21531,7 +21604,7 @@ export namespace TW {
21531
21604
  public privateKey: Uint8Array;
21532
21605
 
21533
21606
  /** SigningInput network. */
21534
- public network: TW.Polkadot.Proto.Network;
21607
+ public network: number;
21535
21608
 
21536
21609
  /** SigningInput balanceCall. */
21537
21610
  public balanceCall?: (TW.Polkadot.Proto.IBalance|null);
@@ -22888,6 +22961,9 @@ export namespace TW {
22888
22961
 
22889
22962
  /** SigningOutput encoded */
22890
22963
  encoded?: (string|null);
22964
+
22965
+ /** SigningOutput unsignedTx */
22966
+ unsignedTx?: (string|null);
22891
22967
  }
22892
22968
 
22893
22969
  /** Represents a SigningOutput. */
@@ -22902,6 +22978,9 @@ export namespace TW {
22902
22978
  /** SigningOutput encoded. */
22903
22979
  public encoded: string;
22904
22980
 
22981
+ /** SigningOutput unsignedTx. */
22982
+ public unsignedTx: string;
22983
+
22905
22984
  /**
22906
22985
  * Creates a new SigningOutput instance using the specified properties.
22907
22986
  * @param [properties] Properties to set