@hashgraph/hedera-wallet-connect 1.5.2-canary.8dde86c.0 → 1.5.2-canary.93d61f2.0
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.
@@ -30,9 +30,10 @@ export declare function transactionToBase64String<T extends Transaction>(transac
|
|
30
30
|
export declare function base64StringToTransaction<T extends Transaction>(transactionBytes: string): T;
|
31
31
|
/**
|
32
32
|
* @param transaction - a base64 encoded string of proto.TransactionBody.encode().finish()
|
33
|
+
* @param nodeAccountId - an optional `AccountId` to set the node account ID for the transaction
|
33
34
|
* @returns `string`
|
34
35
|
* */
|
35
|
-
export declare function transactionToTransactionBody<T extends Transaction>(transaction: T):
|
36
|
+
export declare function transactionToTransactionBody<T extends Transaction>(transaction: T, nodeAccountId?: AccountId | null): proto.ITransactionBody;
|
36
37
|
export declare function transactionBodyToBase64String(transactionBody: proto.ITransactionBody): string;
|
37
38
|
/**
|
38
39
|
* @param transactionList - a proto.TransactionList object
|
package/dist/lib/shared/utils.js
CHANGED
@@ -55,12 +55,13 @@ export function base64StringToTransaction(transactionBytes) {
|
|
55
55
|
}
|
56
56
|
/**
|
57
57
|
* @param transaction - a base64 encoded string of proto.TransactionBody.encode().finish()
|
58
|
+
* @param nodeAccountId - an optional `AccountId` to set the node account ID for the transaction
|
58
59
|
* @returns `string`
|
59
60
|
* */
|
60
|
-
export function transactionToTransactionBody(transaction) {
|
61
|
+
export function transactionToTransactionBody(transaction, nodeAccountId = null) {
|
61
62
|
// This is a private function, though provides the capabilities to construct a proto.TransactionBody
|
62
63
|
//@ts-ignore
|
63
|
-
return transaction._makeTransactionBody(
|
64
|
+
return transaction._makeTransactionBody(nodeAccountId);
|
64
65
|
}
|
65
66
|
export function transactionBodyToBase64String(transactionBody) {
|
66
67
|
return Uint8ArrayToBase64String(proto.TransactionBody.encode(transactionBody).finish());
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hashgraph/hedera-wallet-connect",
|
3
|
-
"version": "1.5.2-canary.
|
3
|
+
"version": "1.5.2-canary.93d61f2.0",
|
4
4
|
"description": "A library to facilitate integrating Hedera with WalletConnect",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -22,8 +22,8 @@
|
|
22
22
|
"@hashgraph/hedera-wallet-connect": "^1.5.0",
|
23
23
|
"@swc/core": "^1.7.40",
|
24
24
|
"@swc/jest": "^0.2.36",
|
25
|
-
"@types/jest": "^
|
26
|
-
"@types/node": "^
|
25
|
+
"@types/jest": "^30.0.0",
|
26
|
+
"@types/node": "^24.0.3",
|
27
27
|
"@types/react-dom": "^19.0.3",
|
28
28
|
"@walletconnect/modal": "^2.7.0",
|
29
29
|
"@walletconnect/sign-client": "^2.19.1",
|
@@ -32,9 +32,7 @@
|
|
32
32
|
"esbuild": "^0.25.0",
|
33
33
|
"esbuild-plugin-copy": "^2.1.1",
|
34
34
|
"eslint-plugin-tsdoc": "^0.4.0",
|
35
|
-
"
|
36
|
-
"jest": "^29.7.0",
|
37
|
-
"lint-staged": "^15.1.0",
|
35
|
+
"jest": "^30.0.0",
|
38
36
|
"lokijs": "^1.5.12",
|
39
37
|
"long": "^5.2.3",
|
40
38
|
"nodemon": "^3.0.3",
|
@@ -44,29 +42,18 @@
|
|
44
42
|
"rimraf": "^5.0.5",
|
45
43
|
"ts-node": "^10.9.2",
|
46
44
|
"tweetnacl": "^1.0.3",
|
47
|
-
"typedoc": "^0.27.6",
|
48
|
-
"typedoc-theme-hierarchy": "^5.0.0",
|
49
45
|
"typescript": "^5.2.2"
|
50
46
|
},
|
51
47
|
"scripts": {
|
52
48
|
"build": "rimraf dist && tsc",
|
53
|
-
"build:ts-demo": "node scripts/demos/typescript/build.mjs",
|
54
|
-
"build:react-demo": "node scripts/demos/react/build.mjs",
|
55
|
-
"build:docs": "typedoc --options typedoc.json",
|
56
49
|
"watch": "nodemon --watch src/lib/ --ext ts --exec \"npm run build\"",
|
57
|
-
"dev": "npm run dev:ts-demo",
|
58
|
-
"dev:docs": "cd docs && npm run start",
|
59
|
-
"dev:ts-demo": "rimraf dist && npm run build && concurrently --raw \"npm run watch\" \"node scripts/demos/typescript/dev.mjs\"",
|
60
|
-
"dev:react-demo": "rimraf dist && npm run build && concurrently --raw \"npm run watch\" \"node scripts/demos/react/dev.mjs\"",
|
61
50
|
"test": "jest",
|
62
51
|
"test:watch": "jest --watch",
|
63
52
|
"test:connect": "jest --testMatch '**/DAppConnector.test.ts' --verbose",
|
64
53
|
"test:signer": "jest --testMatch '**/DAppSigner.test.ts' --verbose",
|
65
54
|
"prepublishOnly": "rm -Rf dist && npm run build",
|
66
|
-
"prepare": "husky install",
|
67
55
|
"prettier:check": "prettier --check ./src/",
|
68
56
|
"prettier:fix": "prettier --write ./src/",
|
69
|
-
"prod:docs-docker": "sh docker-run.sh",
|
70
57
|
"test:sigMap": "jest --testMatch '**/SignatureMapHelpers.test.ts' --verbose",
|
71
58
|
"test:coverage": "jest --coverage",
|
72
59
|
"test:coverage:html": "jest --coverage --coverageReporters='text-summary' --coverageReporters='html'"
|