@trustwallet/wallet-core 3.1.8 → 3.1.10

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.
Binary file
@@ -167,6 +167,8 @@ export class Blockchain {
167
167
  static everscale: Blockchain;
168
168
  static aptos: Blockchain;
169
169
  static hedera: Blockchain;
170
+ static theOpenNetwork: Blockchain;
171
+ static sui: Blockchain;
170
172
  }
171
173
  export class Cardano {
172
174
  static minAdaAmount(tokenBundle: Uint8Array | Buffer): number;
@@ -188,6 +190,7 @@ export class CoinType {
188
190
  static digiByte: CoinType;
189
191
  static dogecoin: CoinType;
190
192
  static eos: CoinType;
193
+ static wax: CoinType;
191
194
  static ethereum: CoinType;
192
195
  static ethereumClassic: CoinType;
193
196
  static fio: CoinType;
@@ -273,6 +276,8 @@ export class CoinType {
273
276
  static secret: CoinType;
274
277
  static nativeInjective: CoinType;
275
278
  static agoric: CoinType;
279
+ static ton: CoinType;
280
+ static sui: CoinType;
276
281
  }
277
282
  export class CoinTypeConfiguration {
278
283
  static getSymbol(type: CoinType): string;
@@ -333,6 +338,11 @@ export class DerivationPathIndex {
333
338
  description(): string;
334
339
  delete(): void;
335
340
  }
341
+ export class Ethereum {
342
+ static eip1014AddressCreate2(fromEthAddress: string, salt: Uint8Array | Buffer, initCodeHash: Uint8Array | Buffer): string;
343
+ static eip2645GetPath(ethAddress: string, layer: string, application: string, index: string): string;
344
+ static eip4337GetDeploymentAddress(factoryAddress: string, logicAddress: string, ownerAddress: string): string;
345
+ }
336
346
  export class EthereumAbi {
337
347
  static encode(fn: EthereumAbiFunction): Uint8Array;
338
348
  static decodeOutput(fn: EthereumAbiFunction, encoded: Uint8Array | Buffer): boolean;
@@ -435,11 +445,12 @@ export class EthereumChainID {
435
445
  static smartchain: EthereumChainID;
436
446
  static aurora: EthereumChainID;
437
447
  }
438
- export class EthereumEip2645 {
439
- static getPath(ethAddress: string, layer: string, application: string, index: string): string;
440
- }
441
448
  export class EthereumMessageSigner {
449
+ static signTypedMessage(privateKey: PrivateKey, messageJson: string): string;
450
+ static signTypedMessageEip155(privateKey: PrivateKey, messageJson: string, chainId: number): string;
442
451
  static signMessage(privateKey: PrivateKey, message: string): string;
452
+ static signMessageImmutableX(privateKey: PrivateKey, message: string): string;
453
+ static signMessageEip155(privateKey: PrivateKey, message: string, chainId: number): string;
443
454
  static verifyMessage(pubKey: PublicKey, message: string, signature: string): boolean;
444
455
  }
445
456
  export class FIOAccount {
@@ -778,11 +789,11 @@ export interface WalletCore {
778
789
  Derivation: typeof Derivation;
779
790
  DerivationPath: typeof DerivationPath;
780
791
  DerivationPathIndex: typeof DerivationPathIndex;
792
+ Ethereum: typeof Ethereum;
781
793
  EthereumAbi: typeof EthereumAbi;
782
794
  EthereumAbiFunction: typeof EthereumAbiFunction;
783
795
  EthereumAbiValue: typeof EthereumAbiValue;
784
796
  EthereumChainID: typeof EthereumChainID;
785
- EthereumEip2645: typeof EthereumEip2645;
786
797
  EthereumMessageSigner: typeof EthereumMessageSigner;
787
798
  FIOAccount: typeof FIOAccount;
788
799
  GroestlcoinAddress: typeof GroestlcoinAddress;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "3.1.8",
3
+ "version": "3.1.10",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",