@trustwallet/wallet-core 4.0.26 → 4.0.28-rc1

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
@@ -952,6 +952,9 @@ export class TransactionCompiler {
952
952
  static compileWithSignatures(coinType: CoinType, txInputData: Uint8Array | Buffer, signatures: DataVector, publicKeys: DataVector): Uint8Array;
953
953
  static compileWithSignaturesAndPubKeyType(coinType: CoinType, txInputData: Uint8Array | Buffer, signatures: DataVector, publicKeys: DataVector, pubKeyType: PublicKeyType): Uint8Array;
954
954
  }
955
+ export class TransactionDecoder {
956
+ static decode(coinType: CoinType, encodedTx: Uint8Array | Buffer): Uint8Array;
957
+ }
955
958
  export class TronMessageSigner {
956
959
  static signMessage(privateKey: PrivateKey, message: string): string;
957
960
  static verifyMessage(pubKey: PublicKey, message: string, signature: string): boolean;
@@ -1034,6 +1037,7 @@ export interface WalletCore {
1034
1037
  THORChainSwap: typeof THORChainSwap;
1035
1038
  TezosMessageSigner: typeof TezosMessageSigner;
1036
1039
  TransactionCompiler: typeof TransactionCompiler;
1040
+ TransactionDecoder: typeof TransactionDecoder;
1037
1041
  TronMessageSigner: typeof TronMessageSigner;
1038
1042
  WalletConnectRequest: typeof WalletConnectRequest;
1039
1043
  WebAuthn: typeof WebAuthn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.0.26",
3
+ "version": "4.0.28-rc1",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",