@hashgraph/hedera-wallet-connect 2.0.1-canary.ccd6696.0 → 2.0.1-canary.ce3d8cf.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.
package/dist/lib/dapp/index.d.ts
CHANGED
@@ -194,9 +194,7 @@ export declare class DAppConnector {
|
|
194
194
|
*
|
195
195
|
* @param {SignTransactionParams} params - The parameters of type {@link SignTransactionParams | `SignTransactionParams`} required for `Transaction` signing.
|
196
196
|
* @param {string} params.signerAccountId - a signer Hedera Account identifier in {@link https://hips.hedera.com/hip/hip-30 | HIP-30} (`<nework>:<shard>.<realm>.<num>`) form.
|
197
|
-
* @param {Transaction
|
198
|
-
* HIP-820 calls for a base64 encoded proto.TransactionBody and many wallets support a serialized Transaction object generated by the Hedera Javascript SDK.
|
199
|
-
* Both options are supported here for backwards compatibility.
|
197
|
+
* @param {Transaction} params.transactionBody - a Transaction object built with the @hashgraph/sdk
|
200
198
|
* @returns Promise\<{@link SignTransactionResult}\>
|
201
199
|
* @example
|
202
200
|
* ```ts
|
package/dist/lib/dapp/index.js
CHANGED
@@ -501,9 +501,7 @@ export class DAppConnector {
|
|
501
501
|
*
|
502
502
|
* @param {SignTransactionParams} params - The parameters of type {@link SignTransactionParams | `SignTransactionParams`} required for `Transaction` signing.
|
503
503
|
* @param {string} params.signerAccountId - a signer Hedera Account identifier in {@link https://hips.hedera.com/hip/hip-30 | HIP-30} (`<nework>:<shard>.<realm>.<num>`) form.
|
504
|
-
* @param {Transaction
|
505
|
-
* HIP-820 calls for a base64 encoded proto.TransactionBody and many wallets support a serialized Transaction object generated by the Hedera Javascript SDK.
|
506
|
-
* Both options are supported here for backwards compatibility.
|
504
|
+
* @param {Transaction} params.transactionBody - a Transaction object built with the @hashgraph/sdk
|
507
505
|
* @returns Promise\<{@link SignTransactionResult}\>
|
508
506
|
* @example
|
509
507
|
* ```ts
|
@@ -84,7 +84,7 @@ export interface SignAndExecuteTransactionResponse extends EngineTypes.RespondPa
|
|
84
84
|
}
|
85
85
|
export interface SignTransactionParams {
|
86
86
|
signerAccountId: string;
|
87
|
-
transactionBody: Transaction
|
87
|
+
transactionBody: Transaction;
|
88
88
|
}
|
89
89
|
export interface SignTransactionRequest extends EngineTypes.RequestParams {
|
90
90
|
request: {
|
@@ -29,10 +29,9 @@ export declare function transactionToBase64String<T extends Transaction>(transac
|
|
29
29
|
export declare function base64StringToTransaction<T extends Transaction>(transactionBytes: string): T;
|
30
30
|
/**
|
31
31
|
* @param transaction - a base64 encoded string of proto.TransactionBody.encode().finish()
|
32
|
-
* @param nodeAccountId - an optional `AccountId` to set the node account ID for the transaction
|
33
32
|
* @returns `string`
|
34
33
|
* */
|
35
|
-
export declare function transactionToTransactionBody<T extends Transaction>(transaction: T
|
34
|
+
export declare function transactionToTransactionBody<T extends Transaction>(transaction: T): any;
|
36
35
|
export declare function transactionBodyToBase64String(transactionBody: proto.ITransactionBody): string;
|
37
36
|
/**
|
38
37
|
* @param transactionList - a proto.TransactionList object
|
package/dist/lib/shared/utils.js
CHANGED
@@ -54,13 +54,12 @@ export function base64StringToTransaction(transactionBytes) {
|
|
54
54
|
}
|
55
55
|
/**
|
56
56
|
* @param transaction - a base64 encoded string of proto.TransactionBody.encode().finish()
|
57
|
-
* @param nodeAccountId - an optional `AccountId` to set the node account ID for the transaction
|
58
57
|
* @returns `string`
|
59
58
|
* */
|
60
|
-
export function transactionToTransactionBody(transaction
|
59
|
+
export function transactionToTransactionBody(transaction) {
|
61
60
|
// This is a private function, though provides the capabilities to construct a proto.TransactionBody
|
62
61
|
//@ts-ignore
|
63
|
-
return transaction._makeTransactionBody(
|
62
|
+
return transaction._makeTransactionBody(null);
|
64
63
|
}
|
65
64
|
export function transactionBodyToBase64String(transactionBody) {
|
66
65
|
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": "2.0.1-canary.
|
3
|
+
"version": "2.0.1-canary.ce3d8cf.0",
|
4
4
|
"description": "A library to facilitate integrating Hedera with WalletConnect",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -14,9 +14,11 @@
|
|
14
14
|
"walletconnect",
|
15
15
|
"reown",
|
16
16
|
"hashgraph",
|
17
|
-
"hbar",
|
18
17
|
"evm",
|
19
|
-
"
|
18
|
+
"ethereum",
|
19
|
+
"smart contracts",
|
20
|
+
"hbar",
|
21
|
+
"ethers"
|
20
22
|
],
|
21
23
|
"license": "Apache-2.0",
|
22
24
|
"scripts": {
|
@@ -36,8 +38,8 @@
|
|
36
38
|
},
|
37
39
|
"devDependencies": {
|
38
40
|
"@swc/jest": "^0.2.37",
|
39
|
-
"@types/jest": "^
|
40
|
-
"jest": "^
|
41
|
+
"@types/jest": "^29.5.14",
|
42
|
+
"jest": "^29.7.0",
|
41
43
|
"prettier": "^3.5.3",
|
42
44
|
"ts-node": "^10.9.2",
|
43
45
|
"typescript": "^5.8.2"
|