@hashgraph/hedera-wallet-connect 1.3.8-canary.e4390ac.0 → 1.3.8-canary.edae801.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -3
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.js +22 -0
- package/dist/{shared → lib/shared}/utils.d.ts +2 -2
- package/dist/{shared → lib/shared}/utils.js +2 -2
- package/package.json +3 -3
- /package/dist/{dapp → lib/dapp}/DAppSigner.d.ts +0 -0
- /package/dist/{dapp → lib/dapp}/DAppSigner.js +0 -0
- /package/dist/{dapp → lib/dapp}/index.d.ts +0 -0
- /package/dist/{dapp → lib/dapp}/index.js +0 -0
- /package/dist/{shared → lib/shared}/chainIds.d.ts +0 -0
- /package/dist/{shared → lib/shared}/chainIds.js +0 -0
- /package/dist/{shared → lib/shared}/errors.d.ts +0 -0
- /package/dist/{shared → lib/shared}/errors.js +0 -0
- /package/dist/{shared → lib/shared}/events.d.ts +0 -0
- /package/dist/{shared → lib/shared}/events.js +0 -0
- /package/dist/{shared → lib/shared}/extensionController.d.ts +0 -0
- /package/dist/{shared → lib/shared}/extensionController.js +0 -0
- /package/dist/{shared → lib/shared}/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/index.js +0 -0
- /package/dist/{shared → lib/shared}/logger.d.ts +0 -0
- /package/dist/{shared → lib/shared}/logger.js +0 -0
- /package/dist/{shared → lib/shared}/methods.d.ts +0 -0
- /package/dist/{shared → lib/shared}/methods.js +0 -0
- /package/dist/{shared → lib/shared}/payloads.d.ts +0 -0
- /package/dist/{shared → lib/shared}/payloads.js +0 -0
- /package/dist/{wallet → lib/wallet}/index.d.ts +0 -0
- /package/dist/{wallet → lib/wallet}/index.js +0 -0
- /package/dist/{wallet → lib/wallet}/provider.d.ts +0 -0
- /package/dist/{wallet → lib/wallet}/provider.js +0 -0
- /package/dist/{wallet → lib/wallet}/types.d.ts +0 -0
- /package/dist/{wallet → lib/wallet}/types.js +0 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
/*
|
2
|
+
*
|
3
|
+
* Hedera Wallet Connect
|
4
|
+
*
|
5
|
+
* Copyright (C) 2023 Hedera Hashgraph, LLC
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*
|
19
|
+
*/
|
20
|
+
export * from './shared';
|
21
|
+
export { default as Wallet } from './wallet';
|
22
|
+
export * from './dapp';
|
@@ -49,8 +49,8 @@ export declare function base64StringToTransaction<T extends Transaction>(transac
|
|
49
49
|
* @param transaction - a base64 encoded string of proto.TransactionBody.encode().finish()
|
50
50
|
* @returns `string`
|
51
51
|
* */
|
52
|
-
export declare function transactionToTransactionBody<T extends Transaction>(transaction: T, nodeAccountId: AccountId):
|
53
|
-
export declare function transactionBodyToBase64String(transactionBody:
|
52
|
+
export declare function transactionToTransactionBody<T extends Transaction>(transaction: T, nodeAccountId: AccountId): Uint8Array | null | undefined;
|
53
|
+
export declare function transactionBodyToBase64String(transactionBody: Uint8Array): string;
|
54
54
|
/**
|
55
55
|
* @param transactionList - a proto.TransactionList object
|
56
56
|
* @returns `string`
|
@@ -86,10 +86,10 @@ export function base64StringToTransaction(transactionBytes) {
|
|
86
86
|
export function transactionToTransactionBody(transaction, nodeAccountId) {
|
87
87
|
// This is a private function, though provides the capabilities to construct a proto.TransactionBody
|
88
88
|
//@ts-ignore
|
89
|
-
return transaction.
|
89
|
+
return transaction._signedTransactions.current.bodyBytes;
|
90
90
|
}
|
91
91
|
export function transactionBodyToBase64String(transactionBody) {
|
92
|
-
return Uint8ArrayToBase64String(
|
92
|
+
return Uint8ArrayToBase64String(transactionBody);
|
93
93
|
}
|
94
94
|
/**
|
95
95
|
* @param transactionList - a proto.TransactionList object
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hashgraph/hedera-wallet-connect",
|
3
|
-
"version": "1.3.8-canary.
|
3
|
+
"version": "1.3.8-canary.edae801.0",
|
4
4
|
"description": "A library to facilitate integrating Hedera with WalletConnect",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "git+https://github.com/hashgraph/hedera-wallet-connect.git"
|
8
8
|
},
|
9
|
-
"main": "./dist/
|
10
|
-
"types": "./dist/
|
9
|
+
"main": "./dist/index.js",
|
10
|
+
"types": "./dist/index.d.ts",
|
11
11
|
"author": "Hgraph <support@hgraph.io>",
|
12
12
|
"keywords": [
|
13
13
|
"hedera",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|