@trustwallet/wallet-core 3.1.9 → 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
@@ -168,6 +168,7 @@ export class Blockchain {
168
168
  static aptos: Blockchain;
169
169
  static hedera: Blockchain;
170
170
  static theOpenNetwork: Blockchain;
171
+ static sui: Blockchain;
171
172
  }
172
173
  export class Cardano {
173
174
  static minAdaAmount(tokenBundle: Uint8Array | Buffer): number;
@@ -276,6 +277,7 @@ export class CoinType {
276
277
  static nativeInjective: CoinType;
277
278
  static agoric: CoinType;
278
279
  static ton: CoinType;
280
+ static sui: CoinType;
279
281
  }
280
282
  export class CoinTypeConfiguration {
281
283
  static getSymbol(type: CoinType): string;
@@ -339,6 +341,7 @@ export class DerivationPathIndex {
339
341
  export class Ethereum {
340
342
  static eip1014AddressCreate2(fromEthAddress: string, salt: Uint8Array | Buffer, initCodeHash: Uint8Array | Buffer): string;
341
343
  static eip2645GetPath(ethAddress: string, layer: string, application: string, index: string): string;
344
+ static eip4337GetDeploymentAddress(factoryAddress: string, logicAddress: string, ownerAddress: string): string;
342
345
  }
343
346
  export class EthereumAbi {
344
347
  static encode(fn: EthereumAbiFunction): Uint8Array;
@@ -443,7 +446,11 @@ export class EthereumChainID {
443
446
  static aurora: EthereumChainID;
444
447
  }
445
448
  export class EthereumMessageSigner {
449
+ static signTypedMessage(privateKey: PrivateKey, messageJson: string): string;
450
+ static signTypedMessageEip155(privateKey: PrivateKey, messageJson: string, chainId: number): string;
446
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;
447
454
  static verifyMessage(pubKey: PublicKey, message: string, signature: string): boolean;
448
455
  }
449
456
  export class FIOAccount {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "3.1.9",
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",