@trustwallet/wallet-core 3.1.28 → 3.1.30
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.
@@ -1558,6 +1558,319 @@ export namespace TW {
|
|
1558
1558
|
public toJSON(): { [k: string]: any };
|
1559
1559
|
}
|
1560
1560
|
|
1561
|
+
/** Properties of a TortugaClaim. */
|
1562
|
+
interface ITortugaClaim {
|
1563
|
+
|
1564
|
+
/** TortugaClaim idx */
|
1565
|
+
idx?: (Long|null);
|
1566
|
+
}
|
1567
|
+
|
1568
|
+
/** Represents a TortugaClaim. */
|
1569
|
+
class TortugaClaim implements ITortugaClaim {
|
1570
|
+
|
1571
|
+
/**
|
1572
|
+
* Constructs a new TortugaClaim.
|
1573
|
+
* @param [properties] Properties to set
|
1574
|
+
*/
|
1575
|
+
constructor(properties?: TW.Aptos.Proto.ITortugaClaim);
|
1576
|
+
|
1577
|
+
/** TortugaClaim idx. */
|
1578
|
+
public idx: Long;
|
1579
|
+
|
1580
|
+
/**
|
1581
|
+
* Creates a new TortugaClaim instance using the specified properties.
|
1582
|
+
* @param [properties] Properties to set
|
1583
|
+
* @returns TortugaClaim instance
|
1584
|
+
*/
|
1585
|
+
public static create(properties?: TW.Aptos.Proto.ITortugaClaim): TW.Aptos.Proto.TortugaClaim;
|
1586
|
+
|
1587
|
+
/**
|
1588
|
+
* Encodes the specified TortugaClaim message. Does not implicitly {@link TW.Aptos.Proto.TortugaClaim.verify|verify} messages.
|
1589
|
+
* @param message TortugaClaim message or plain object to encode
|
1590
|
+
* @param [writer] Writer to encode to
|
1591
|
+
* @returns Writer
|
1592
|
+
*/
|
1593
|
+
public static encode(message: TW.Aptos.Proto.ITortugaClaim, writer?: $protobuf.Writer): $protobuf.Writer;
|
1594
|
+
|
1595
|
+
/**
|
1596
|
+
* Decodes a TortugaClaim message from the specified reader or buffer.
|
1597
|
+
* @param reader Reader or buffer to decode from
|
1598
|
+
* @param [length] Message length if known beforehand
|
1599
|
+
* @returns TortugaClaim
|
1600
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1601
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1602
|
+
*/
|
1603
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TortugaClaim;
|
1604
|
+
|
1605
|
+
/**
|
1606
|
+
* Verifies a TortugaClaim message.
|
1607
|
+
* @param message Plain object to verify
|
1608
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1609
|
+
*/
|
1610
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1611
|
+
|
1612
|
+
/**
|
1613
|
+
* Creates a TortugaClaim message from a plain object. Also converts values to their respective internal types.
|
1614
|
+
* @param object Plain object
|
1615
|
+
* @returns TortugaClaim
|
1616
|
+
*/
|
1617
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TortugaClaim;
|
1618
|
+
|
1619
|
+
/**
|
1620
|
+
* Creates a plain object from a TortugaClaim message. Also converts values to other types if specified.
|
1621
|
+
* @param message TortugaClaim
|
1622
|
+
* @param [options] Conversion options
|
1623
|
+
* @returns Plain object
|
1624
|
+
*/
|
1625
|
+
public static toObject(message: TW.Aptos.Proto.TortugaClaim, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1626
|
+
|
1627
|
+
/**
|
1628
|
+
* Converts this TortugaClaim to JSON.
|
1629
|
+
* @returns JSON object
|
1630
|
+
*/
|
1631
|
+
public toJSON(): { [k: string]: any };
|
1632
|
+
}
|
1633
|
+
|
1634
|
+
/** Properties of a TortugaStake. */
|
1635
|
+
interface ITortugaStake {
|
1636
|
+
|
1637
|
+
/** TortugaStake amount */
|
1638
|
+
amount?: (Long|null);
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
/** Represents a TortugaStake. */
|
1642
|
+
class TortugaStake implements ITortugaStake {
|
1643
|
+
|
1644
|
+
/**
|
1645
|
+
* Constructs a new TortugaStake.
|
1646
|
+
* @param [properties] Properties to set
|
1647
|
+
*/
|
1648
|
+
constructor(properties?: TW.Aptos.Proto.ITortugaStake);
|
1649
|
+
|
1650
|
+
/** TortugaStake amount. */
|
1651
|
+
public amount: Long;
|
1652
|
+
|
1653
|
+
/**
|
1654
|
+
* Creates a new TortugaStake instance using the specified properties.
|
1655
|
+
* @param [properties] Properties to set
|
1656
|
+
* @returns TortugaStake instance
|
1657
|
+
*/
|
1658
|
+
public static create(properties?: TW.Aptos.Proto.ITortugaStake): TW.Aptos.Proto.TortugaStake;
|
1659
|
+
|
1660
|
+
/**
|
1661
|
+
* Encodes the specified TortugaStake message. Does not implicitly {@link TW.Aptos.Proto.TortugaStake.verify|verify} messages.
|
1662
|
+
* @param message TortugaStake message or plain object to encode
|
1663
|
+
* @param [writer] Writer to encode to
|
1664
|
+
* @returns Writer
|
1665
|
+
*/
|
1666
|
+
public static encode(message: TW.Aptos.Proto.ITortugaStake, writer?: $protobuf.Writer): $protobuf.Writer;
|
1667
|
+
|
1668
|
+
/**
|
1669
|
+
* Decodes a TortugaStake message from the specified reader or buffer.
|
1670
|
+
* @param reader Reader or buffer to decode from
|
1671
|
+
* @param [length] Message length if known beforehand
|
1672
|
+
* @returns TortugaStake
|
1673
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1674
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1675
|
+
*/
|
1676
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TortugaStake;
|
1677
|
+
|
1678
|
+
/**
|
1679
|
+
* Verifies a TortugaStake message.
|
1680
|
+
* @param message Plain object to verify
|
1681
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1682
|
+
*/
|
1683
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1684
|
+
|
1685
|
+
/**
|
1686
|
+
* Creates a TortugaStake message from a plain object. Also converts values to their respective internal types.
|
1687
|
+
* @param object Plain object
|
1688
|
+
* @returns TortugaStake
|
1689
|
+
*/
|
1690
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TortugaStake;
|
1691
|
+
|
1692
|
+
/**
|
1693
|
+
* Creates a plain object from a TortugaStake message. Also converts values to other types if specified.
|
1694
|
+
* @param message TortugaStake
|
1695
|
+
* @param [options] Conversion options
|
1696
|
+
* @returns Plain object
|
1697
|
+
*/
|
1698
|
+
public static toObject(message: TW.Aptos.Proto.TortugaStake, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1699
|
+
|
1700
|
+
/**
|
1701
|
+
* Converts this TortugaStake to JSON.
|
1702
|
+
* @returns JSON object
|
1703
|
+
*/
|
1704
|
+
public toJSON(): { [k: string]: any };
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
/** Properties of a TortugaUnstake. */
|
1708
|
+
interface ITortugaUnstake {
|
1709
|
+
|
1710
|
+
/** TortugaUnstake amount */
|
1711
|
+
amount?: (Long|null);
|
1712
|
+
}
|
1713
|
+
|
1714
|
+
/** Represents a TortugaUnstake. */
|
1715
|
+
class TortugaUnstake implements ITortugaUnstake {
|
1716
|
+
|
1717
|
+
/**
|
1718
|
+
* Constructs a new TortugaUnstake.
|
1719
|
+
* @param [properties] Properties to set
|
1720
|
+
*/
|
1721
|
+
constructor(properties?: TW.Aptos.Proto.ITortugaUnstake);
|
1722
|
+
|
1723
|
+
/** TortugaUnstake amount. */
|
1724
|
+
public amount: Long;
|
1725
|
+
|
1726
|
+
/**
|
1727
|
+
* Creates a new TortugaUnstake instance using the specified properties.
|
1728
|
+
* @param [properties] Properties to set
|
1729
|
+
* @returns TortugaUnstake instance
|
1730
|
+
*/
|
1731
|
+
public static create(properties?: TW.Aptos.Proto.ITortugaUnstake): TW.Aptos.Proto.TortugaUnstake;
|
1732
|
+
|
1733
|
+
/**
|
1734
|
+
* Encodes the specified TortugaUnstake message. Does not implicitly {@link TW.Aptos.Proto.TortugaUnstake.verify|verify} messages.
|
1735
|
+
* @param message TortugaUnstake message or plain object to encode
|
1736
|
+
* @param [writer] Writer to encode to
|
1737
|
+
* @returns Writer
|
1738
|
+
*/
|
1739
|
+
public static encode(message: TW.Aptos.Proto.ITortugaUnstake, writer?: $protobuf.Writer): $protobuf.Writer;
|
1740
|
+
|
1741
|
+
/**
|
1742
|
+
* Decodes a TortugaUnstake message from the specified reader or buffer.
|
1743
|
+
* @param reader Reader or buffer to decode from
|
1744
|
+
* @param [length] Message length if known beforehand
|
1745
|
+
* @returns TortugaUnstake
|
1746
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1747
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1748
|
+
*/
|
1749
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TortugaUnstake;
|
1750
|
+
|
1751
|
+
/**
|
1752
|
+
* Verifies a TortugaUnstake message.
|
1753
|
+
* @param message Plain object to verify
|
1754
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1755
|
+
*/
|
1756
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1757
|
+
|
1758
|
+
/**
|
1759
|
+
* Creates a TortugaUnstake message from a plain object. Also converts values to their respective internal types.
|
1760
|
+
* @param object Plain object
|
1761
|
+
* @returns TortugaUnstake
|
1762
|
+
*/
|
1763
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TortugaUnstake;
|
1764
|
+
|
1765
|
+
/**
|
1766
|
+
* Creates a plain object from a TortugaUnstake message. Also converts values to other types if specified.
|
1767
|
+
* @param message TortugaUnstake
|
1768
|
+
* @param [options] Conversion options
|
1769
|
+
* @returns Plain object
|
1770
|
+
*/
|
1771
|
+
public static toObject(message: TW.Aptos.Proto.TortugaUnstake, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1772
|
+
|
1773
|
+
/**
|
1774
|
+
* Converts this TortugaUnstake to JSON.
|
1775
|
+
* @returns JSON object
|
1776
|
+
*/
|
1777
|
+
public toJSON(): { [k: string]: any };
|
1778
|
+
}
|
1779
|
+
|
1780
|
+
/** Properties of a LiquidStaking. */
|
1781
|
+
interface ILiquidStaking {
|
1782
|
+
|
1783
|
+
/** LiquidStaking smartContractAddress */
|
1784
|
+
smartContractAddress?: (string|null);
|
1785
|
+
|
1786
|
+
/** LiquidStaking stake */
|
1787
|
+
stake?: (TW.Aptos.Proto.ITortugaStake|null);
|
1788
|
+
|
1789
|
+
/** LiquidStaking unstake */
|
1790
|
+
unstake?: (TW.Aptos.Proto.ITortugaUnstake|null);
|
1791
|
+
|
1792
|
+
/** LiquidStaking claim */
|
1793
|
+
claim?: (TW.Aptos.Proto.ITortugaClaim|null);
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
/** Represents a LiquidStaking. */
|
1797
|
+
class LiquidStaking implements ILiquidStaking {
|
1798
|
+
|
1799
|
+
/**
|
1800
|
+
* Constructs a new LiquidStaking.
|
1801
|
+
* @param [properties] Properties to set
|
1802
|
+
*/
|
1803
|
+
constructor(properties?: TW.Aptos.Proto.ILiquidStaking);
|
1804
|
+
|
1805
|
+
/** LiquidStaking smartContractAddress. */
|
1806
|
+
public smartContractAddress: string;
|
1807
|
+
|
1808
|
+
/** LiquidStaking stake. */
|
1809
|
+
public stake?: (TW.Aptos.Proto.ITortugaStake|null);
|
1810
|
+
|
1811
|
+
/** LiquidStaking unstake. */
|
1812
|
+
public unstake?: (TW.Aptos.Proto.ITortugaUnstake|null);
|
1813
|
+
|
1814
|
+
/** LiquidStaking claim. */
|
1815
|
+
public claim?: (TW.Aptos.Proto.ITortugaClaim|null);
|
1816
|
+
|
1817
|
+
/** LiquidStaking liquidStakeTransactionPayload. */
|
1818
|
+
public liquidStakeTransactionPayload?: ("stake"|"unstake"|"claim");
|
1819
|
+
|
1820
|
+
/**
|
1821
|
+
* Creates a new LiquidStaking instance using the specified properties.
|
1822
|
+
* @param [properties] Properties to set
|
1823
|
+
* @returns LiquidStaking instance
|
1824
|
+
*/
|
1825
|
+
public static create(properties?: TW.Aptos.Proto.ILiquidStaking): TW.Aptos.Proto.LiquidStaking;
|
1826
|
+
|
1827
|
+
/**
|
1828
|
+
* Encodes the specified LiquidStaking message. Does not implicitly {@link TW.Aptos.Proto.LiquidStaking.verify|verify} messages.
|
1829
|
+
* @param message LiquidStaking message or plain object to encode
|
1830
|
+
* @param [writer] Writer to encode to
|
1831
|
+
* @returns Writer
|
1832
|
+
*/
|
1833
|
+
public static encode(message: TW.Aptos.Proto.ILiquidStaking, writer?: $protobuf.Writer): $protobuf.Writer;
|
1834
|
+
|
1835
|
+
/**
|
1836
|
+
* Decodes a LiquidStaking message from the specified reader or buffer.
|
1837
|
+
* @param reader Reader or buffer to decode from
|
1838
|
+
* @param [length] Message length if known beforehand
|
1839
|
+
* @returns LiquidStaking
|
1840
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1841
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1842
|
+
*/
|
1843
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.LiquidStaking;
|
1844
|
+
|
1845
|
+
/**
|
1846
|
+
* Verifies a LiquidStaking message.
|
1847
|
+
* @param message Plain object to verify
|
1848
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1849
|
+
*/
|
1850
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1851
|
+
|
1852
|
+
/**
|
1853
|
+
* Creates a LiquidStaking message from a plain object. Also converts values to their respective internal types.
|
1854
|
+
* @param object Plain object
|
1855
|
+
* @returns LiquidStaking
|
1856
|
+
*/
|
1857
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.LiquidStaking;
|
1858
|
+
|
1859
|
+
/**
|
1860
|
+
* Creates a plain object from a LiquidStaking message. Also converts values to other types if specified.
|
1861
|
+
* @param message LiquidStaking
|
1862
|
+
* @param [options] Conversion options
|
1863
|
+
* @returns Plain object
|
1864
|
+
*/
|
1865
|
+
public static toObject(message: TW.Aptos.Proto.LiquidStaking, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1866
|
+
|
1867
|
+
/**
|
1868
|
+
* Converts this LiquidStaking to JSON.
|
1869
|
+
* @returns JSON object
|
1870
|
+
*/
|
1871
|
+
public toJSON(): { [k: string]: any };
|
1872
|
+
}
|
1873
|
+
|
1561
1874
|
/** Properties of a NftMessage. */
|
1562
1875
|
interface INftMessage {
|
1563
1876
|
|
@@ -1687,6 +2000,9 @@ export namespace TW {
|
|
1687
2000
|
|
1688
2001
|
/** SigningInput registerToken */
|
1689
2002
|
registerToken?: (TW.Aptos.Proto.IManagedTokensRegisterMessage|null);
|
2003
|
+
|
2004
|
+
/** SigningInput liquidStakingMessage */
|
2005
|
+
liquidStakingMessage?: (TW.Aptos.Proto.ILiquidStaking|null);
|
1690
2006
|
}
|
1691
2007
|
|
1692
2008
|
/** Represents a SigningInput. */
|
@@ -1737,8 +2053,11 @@ export namespace TW {
|
|
1737
2053
|
/** SigningInput registerToken. */
|
1738
2054
|
public registerToken?: (TW.Aptos.Proto.IManagedTokensRegisterMessage|null);
|
1739
2055
|
|
2056
|
+
/** SigningInput liquidStakingMessage. */
|
2057
|
+
public liquidStakingMessage?: (TW.Aptos.Proto.ILiquidStaking|null);
|
2058
|
+
|
1740
2059
|
/** SigningInput transactionPayload. */
|
1741
|
-
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken");
|
2060
|
+
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken"|"liquidStakingMessage");
|
1742
2061
|
|
1743
2062
|
/**
|
1744
2063
|
* Creates a new SigningInput instance using the specified properties.
|
@@ -15655,7 +15974,8 @@ export namespace TW {
|
|
15655
15974
|
enum Coin {
|
15656
15975
|
MATIC = 0,
|
15657
15976
|
ATOM = 1,
|
15658
|
-
BNB = 2
|
15977
|
+
BNB = 2,
|
15978
|
+
APT = 3
|
15659
15979
|
}
|
15660
15980
|
|
15661
15981
|
/** Blockchain enum. */
|
@@ -15663,13 +15983,15 @@ export namespace TW {
|
|
15663
15983
|
ETHEREUM = 0,
|
15664
15984
|
POLYGON = 1,
|
15665
15985
|
STRIDE = 2,
|
15666
|
-
BNB_BSC = 3
|
15986
|
+
BNB_BSC = 3,
|
15987
|
+
APTOS = 4
|
15667
15988
|
}
|
15668
15989
|
|
15669
15990
|
/** Protocol enum. */
|
15670
15991
|
enum Protocol {
|
15671
15992
|
Strader = 0,
|
15672
|
-
Stride = 1
|
15993
|
+
Stride = 1,
|
15994
|
+
Tortuga = 2
|
15673
15995
|
}
|
15674
15996
|
|
15675
15997
|
/** StatusCode enum. */
|
@@ -16017,6 +16339,9 @@ export namespace TW {
|
|
16017
16339
|
|
16018
16340
|
/** Withdraw amount */
|
16019
16341
|
amount?: (string|null);
|
16342
|
+
|
16343
|
+
/** Withdraw idx */
|
16344
|
+
idx?: (string|null);
|
16020
16345
|
}
|
16021
16346
|
|
16022
16347
|
/** Represents a Withdraw. */
|
@@ -16034,6 +16359,9 @@ export namespace TW {
|
|
16034
16359
|
/** Withdraw amount. */
|
16035
16360
|
public amount: string;
|
16036
16361
|
|
16362
|
+
/** Withdraw idx. */
|
16363
|
+
public idx: string;
|
16364
|
+
|
16037
16365
|
/**
|
16038
16366
|
* Creates a new Withdraw instance using the specified properties.
|
16039
16367
|
* @param [properties] Properties to set
|
@@ -16205,6 +16533,9 @@ export namespace TW {
|
|
16205
16533
|
|
16206
16534
|
/** Output cosmos */
|
16207
16535
|
cosmos?: (TW.Cosmos.Proto.ISigningInput|null);
|
16536
|
+
|
16537
|
+
/** Output aptos */
|
16538
|
+
aptos?: (TW.Aptos.Proto.ISigningInput|null);
|
16208
16539
|
}
|
16209
16540
|
|
16210
16541
|
/** Represents an Output. */
|
@@ -16225,8 +16556,11 @@ export namespace TW {
|
|
16225
16556
|
/** Output cosmos. */
|
16226
16557
|
public cosmos?: (TW.Cosmos.Proto.ISigningInput|null);
|
16227
16558
|
|
16559
|
+
/** Output aptos. */
|
16560
|
+
public aptos?: (TW.Aptos.Proto.ISigningInput|null);
|
16561
|
+
|
16228
16562
|
/** Output signingInputOneof. */
|
16229
|
-
public signingInputOneof?: ("ethereum"|"cosmos");
|
16563
|
+
public signingInputOneof?: ("ethereum"|"cosmos"|"aptos");
|
16230
16564
|
|
16231
16565
|
/**
|
16232
16566
|
* Creates a new Output instance using the specified properties.
|
@@ -27341,6 +27675,9 @@ export namespace TW {
|
|
27341
27675
|
|
27342
27676
|
/** Transfer comment */
|
27343
27677
|
comment?: (string|null);
|
27678
|
+
|
27679
|
+
/** Transfer bounceable */
|
27680
|
+
bounceable?: (boolean|null);
|
27344
27681
|
}
|
27345
27682
|
|
27346
27683
|
/** Represents a Transfer. */
|
@@ -27373,6 +27710,9 @@ export namespace TW {
|
|
27373
27710
|
/** Transfer comment. */
|
27374
27711
|
public comment: string;
|
27375
27712
|
|
27713
|
+
/** Transfer bounceable. */
|
27714
|
+
public bounceable: boolean;
|
27715
|
+
|
27376
27716
|
/**
|
27377
27717
|
* Creates a new Transfer instance using the specified properties.
|
27378
27718
|
* @param [properties] Properties to set
|