@trustwallet/wallet-core 3.1.11 → 3.1.13
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 +129 -1
- package/dist/generated/core_proto.js +410 -0
- package/dist/lib/wallet-core.js +139 -138
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +23 -1
- package/package.json +1 -1
Binary file
|
@@ -11,6 +11,28 @@ export class AnySigner {
|
|
11
11
|
static plan(data: Uint8Array | Buffer, coin: CoinType): Uint8Array;
|
12
12
|
static supportsJSON(coin: CoinType): boolean;
|
13
13
|
}
|
14
|
+
export class CoinTypeExtension {
|
15
|
+
constructor(CoinType)
|
16
|
+
value(): CoinType
|
17
|
+
blockchain(): Blockchain
|
18
|
+
purpose(): Purpose
|
19
|
+
curve(): Curve
|
20
|
+
xpubVersion(): HDVersion
|
21
|
+
xprvVersion(): HDVersion
|
22
|
+
validate(address: string): boolean
|
23
|
+
derivationPath(): string
|
24
|
+
derivationPathWithDerivation(derivation: Derivation): string
|
25
|
+
deriveAddress(privateKey: PrivateKey): string
|
26
|
+
deriveAddressFromPublicKey(publicKey: PublicKey): string
|
27
|
+
hrp(): HRP
|
28
|
+
P2pkhPrefix(): number
|
29
|
+
P2shPrefix(): number
|
30
|
+
staticPrefix(): number
|
31
|
+
chainID(): string
|
32
|
+
slip44ID(): number
|
33
|
+
SS58Prefix(): number
|
34
|
+
publicKeyType(): PublicKeyType
|
35
|
+
}
|
14
36
|
export namespace HexCoding {
|
15
37
|
export function decode(hex: string): Uint8Array;
|
16
38
|
export function encode(buffer: Uint8Array | Buffer): string;
|
@@ -339,7 +361,6 @@ export class DerivationPathIndex {
|
|
339
361
|
delete(): void;
|
340
362
|
}
|
341
363
|
export class Ethereum {
|
342
|
-
static eip1014AddressCreate2(fromEthAddress: string, salt: Uint8Array | Buffer, initCodeHash: Uint8Array | Buffer): string;
|
343
364
|
static eip2645GetPath(ethAddress: string, layer: string, application: string, index: string): string;
|
344
365
|
static eip4337GetDeploymentAddress(factoryAddress: string, logicAddress: string, ownerAddress: string): string;
|
345
366
|
}
|
@@ -768,6 +789,7 @@ export class TransactionCompiler {
|
|
768
789
|
}
|
769
790
|
export interface WalletCore {
|
770
791
|
AnySigner: typeof AnySigner;
|
792
|
+
CoinTypeExtension: typeof CoinTypeExtension;
|
771
793
|
HexCoding: typeof HexCoding;
|
772
794
|
AES: typeof AES;
|
773
795
|
AESPaddingMode: typeof AESPaddingMode;
|