@n1xyz/wallet-widget 0.0.35-alpha.42 → 0.0.35-alpha.44
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.
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { VersionedTransaction } from '@solana/web3.js';
|
|
2
|
+
/**
|
|
3
|
+
* Hashes a VersionedTransaction for signature verification.
|
|
4
|
+
* Local copy to avoid cross-package import that breaks tsc rootDir.
|
|
5
|
+
*/
|
|
6
|
+
export declare const hashVersionedTransaction: (tx: VersionedTransaction) => string;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { sha256 } from '@noble/hashes/sha2';
|
|
2
|
+
import { bytesToHex } from '@noble/hashes/utils';
|
|
3
|
+
/**
|
|
4
|
+
* Hashes a VersionedTransaction for signature verification.
|
|
5
|
+
* Local copy to avoid cross-package import that breaks tsc rootDir.
|
|
6
|
+
*/
|
|
7
|
+
export var hashVersionedTransaction = function (tx) {
|
|
8
|
+
var serialized = tx.serialize();
|
|
9
|
+
return bytesToHex(sha256(serialized));
|
|
10
|
+
};
|
|
2
11
|
//# sourceMappingURL=solanaClaim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solanaClaim.js","sourceRoot":"","sources":["../../../../src/features/onboarding-flow/cctp/solanaClaim.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"solanaClaim.js","sourceRoot":"","sources":["../../../../src/features/onboarding-flow/cctp/solanaClaim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,IAAM,wBAAwB,GAAG,UAAC,EAAwB;IAC/D,IAAM,UAAU,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACxC,CAAC,CAAC","sourcesContent":["import type { VersionedTransaction } from '@solana/web3.js';\nimport { sha256 } from '@noble/hashes/sha2';\nimport { bytesToHex } from '@noble/hashes/utils';\n\n/**\n * Hashes a VersionedTransaction for signature verification.\n * Local copy to avoid cross-package import that breaks tsc rootDir.\n */\nexport const hashVersionedTransaction = (tx: VersionedTransaction): string => {\n const serialized = tx.serialize();\n return bytesToHex(sha256(serialized));\n};\n"]}
|