@hashgraph/hedera-wallet-connect 1.3.7-canary.a9c215c.0 → 1.3.7-canary.b4de118.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 +1 -1
- /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): any;
|
53
|
+
export declare function transactionBodyToBase64String(transactionBody: proto.ITransactionBody): 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._makeTransactionBody(nodeAccountId);
|
90
90
|
}
|
91
91
|
export function transactionBodyToBase64String(transactionBody) {
|
92
|
-
return Uint8ArrayToBase64String(transactionBody);
|
92
|
+
return Uint8ArrayToBase64String(proto.TransactionBody.encode(transactionBody).finish());
|
93
93
|
}
|
94
94
|
/**
|
95
95
|
* @param transactionList - a proto.TransactionList object
|
package/package.json
CHANGED
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
|