@trustwallet/wallet-core 4.2.0-dev-rc2 → 4.2.0-dev-rc3
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.
- package/dist/generated/core_proto.d.ts +479 -0
- package/dist/generated/core_proto.js +1861 -403
- package/dist/lib/wallet-core.js +151 -147
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +17 -0
- package/package.json +1 -1
Binary file
|
@@ -115,6 +115,12 @@ export class Base64 {
|
|
115
115
|
static encode(data: Uint8Array | Buffer): string;
|
116
116
|
static encodeUrl(data: Uint8Array | Buffer): string;
|
117
117
|
}
|
118
|
+
export class Bech32 {
|
119
|
+
static encode(hrp: string, data: Uint8Array | Buffer): string;
|
120
|
+
static decode(string: string): Uint8Array;
|
121
|
+
static encodeM(hrp: string, data: Uint8Array | Buffer): string;
|
122
|
+
static decodeM(string: string): Uint8Array;
|
123
|
+
}
|
118
124
|
export class BitcoinAddress {
|
119
125
|
static equal(lhs: BitcoinAddress, rhs: BitcoinAddress): boolean;
|
120
126
|
static isValid(data: Uint8Array | Buffer): boolean;
|
@@ -223,6 +229,8 @@ export class Blockchain {
|
|
223
229
|
static internetComputer: Blockchain;
|
224
230
|
static nativeEvmos: Blockchain;
|
225
231
|
static nativeInjective: Blockchain;
|
232
|
+
static bitcoinCash: Blockchain;
|
233
|
+
static pactus: Blockchain;
|
226
234
|
}
|
227
235
|
export class Cardano {
|
228
236
|
static minAdaAmount(tokenBundle: Uint8Array | Buffer): number;
|
@@ -390,6 +398,7 @@ export class CoinType {
|
|
390
398
|
static blast: CoinType;
|
391
399
|
static bounceBit: CoinType;
|
392
400
|
static zkLinkNova: CoinType;
|
401
|
+
static pactus: CoinType;
|
393
402
|
}
|
394
403
|
export class CoinTypeConfiguration {
|
395
404
|
static getSymbol(type: CoinType): string;
|
@@ -448,6 +457,7 @@ export class Derivation {
|
|
448
457
|
static litecoinLegacy: Derivation;
|
449
458
|
static solanaSolana: Derivation;
|
450
459
|
static stratisSegwit: Derivation;
|
460
|
+
static bitcoinTaproot: Derivation;
|
451
461
|
}
|
452
462
|
export class DerivationPath {
|
453
463
|
static create(purpose: Purpose, coin: number, account: number, change: number, address: number): DerivationPath;
|
@@ -719,6 +729,7 @@ export class HRP {
|
|
719
729
|
static harmony: HRP;
|
720
730
|
static cardano: HRP;
|
721
731
|
static qtum: HRP;
|
732
|
+
static pactus: HRP;
|
722
733
|
static stratis: HRP;
|
723
734
|
static nativeInjective: HRP;
|
724
735
|
static osmosis: HRP;
|
@@ -855,6 +866,7 @@ export class Purpose {
|
|
855
866
|
static bip44: Purpose;
|
856
867
|
static bip49: Purpose;
|
857
868
|
static bip84: Purpose;
|
869
|
+
static bip86: Purpose;
|
858
870
|
static bip1852: Purpose;
|
859
871
|
}
|
860
872
|
export class RippleXAddress {
|
@@ -891,6 +903,10 @@ export class SolanaAddress {
|
|
891
903
|
}
|
892
904
|
export class SolanaTransaction {
|
893
905
|
static updateBlockhashAndSign(encodedTx: string, recentBlockhash: string, privateKeys: DataVector): Uint8Array;
|
906
|
+
static getComputeUnitPrice(encodedTx: string): string;
|
907
|
+
static getComputeUnitLimit(encodedTx: string): string;
|
908
|
+
static setComputeUnitPrice(encodedTx: string, price: string): string;
|
909
|
+
static setComputeUnitLimit(encodedTx: string, limit: string): string;
|
894
910
|
}
|
895
911
|
export class StarkExMessageSigner {
|
896
912
|
static signMessage(privateKey: PrivateKey, message: string): string;
|
@@ -1036,6 +1052,7 @@ export interface WalletCore {
|
|
1036
1052
|
Base32: typeof Base32;
|
1037
1053
|
Base58: typeof Base58;
|
1038
1054
|
Base64: typeof Base64;
|
1055
|
+
Bech32: typeof Bech32;
|
1039
1056
|
BitcoinAddress: typeof BitcoinAddress;
|
1040
1057
|
BitcoinMessageSigner: typeof BitcoinMessageSigner;
|
1041
1058
|
BitcoinScript: typeof BitcoinScript;
|