@hashgraph/hedera-wallet-connect 2.0.1-canary.3ca89d4.0 → 2.0.1-canary.5976a49.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/README.md +15 -15
- package/dist/reown/adapter.js +1 -1
- package/dist/reown/providers/EIP155Provider.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
@@ -22,9 +22,9 @@ Hedera gRPC and REST API calls.
|
|
22
22
|
## Ethereum JSON-RPC vs. Hedera JSON-RPC vs. Hedera JSON-RPC Relay
|
23
23
|
|
24
24
|
When integrating, app developers can choose to use the Hedera native approach and send
|
25
|
-
transactions to wallets over the WalletConnect
|
26
|
-
native transactions or use Ethereum JSON-RPC calls sent to a Hedera JSON-RPC Relay
|
27
|
-
which then communicates with Hedera consensus and mirror nodes.
|
25
|
+
transactions to wallets over the WalletConnect network using the JSON-RPC spec defined for
|
26
|
+
Hedera native transactions or use Ethereum JSON-RPC calls sent to a Hedera JSON-RPC Relay
|
27
|
+
provider which then communicates with Hedera consensus and mirror nodes.
|
28
28
|
|
29
29
|
On a high level, JSON-RPC is a type of API stucture, such as SOAP, gRPC, REST, GraphQL, etc. In
|
30
30
|
the Hedera ecosystem, there are distinct concepts regarding JSON-RPC APIs to consider:
|
@@ -42,7 +42,9 @@ For more information see:
|
|
42
42
|
- [Ethereum JSON-RPC Specification ](https://ethereum.github.io/execution-apis/api-documentation/)
|
43
43
|
- [Hedera JSON-RPC relay](https://docs.hedera.com/hedera/core-concepts/smart-contracts/json-rpc-relay)
|
44
44
|
- [Hedera Native JSON-RPC spec for WalletConnect](https://docs.reown.com/advanced/multichain/rpc-reference/hedera-rpc)
|
45
|
-
- [
|
45
|
+
- [Hedera Javascript SDK](https://www.npmjs.com/package/@hashgraph/sdk)
|
46
|
+
- [Reown Docs](https://docs.reown.com/overview)
|
47
|
+
- [WalletConnect Network](https://walletconnect.network/)
|
46
48
|
|
47
49
|
# Getting started
|
48
50
|
|
@@ -50,14 +52,12 @@ In addition to choosing between the Hedera native JSON-RPC spec and the Ethereum
|
|
50
52
|
when building with javascript/typescript, there are 2 supported options to utilize the
|
51
53
|
WalletConnect network to send information from apps to wallets and back.
|
52
54
|
|
53
|
-
This README assumes
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
[
|
58
|
-
|
59
|
-
for the first time. We also recommend reviewing the
|
60
|
-
[Reown docs](https://docs.reown.com/overview).
|
55
|
+
This README assumes an understanding of Hedera as well as the WalletConnect network and focusses
|
56
|
+
on how to send a payload to a wallet for processing and presentation to an end user that is a
|
57
|
+
Hedera account holder. We recommend reviewing the [Hedera Docs](https://docs.hedera.com/) and
|
58
|
+
first submitting transactions directly to the Hedera network without requiring interaction with
|
59
|
+
a [Wallet](#hedera-wallets) when integrating Hedera for the first time. We also recommend
|
60
|
+
reviewing the [Reown docs](https://docs.reown.com/overview).
|
61
61
|
|
62
62
|
## Using this library and underlying WalletConnect libraries directly
|
63
63
|
|
@@ -233,6 +233,6 @@ While minimal, the main breaking changes are:
|
|
233
233
|
|
234
234
|
- remove setting node id's within this library for transactions
|
235
235
|
|
236
|
-
- initially, a transaction created by the Hedera
|
237
|
-
|
238
|
-
deserialized by the SDK
|
236
|
+
- initially, a transaction created by the Hedera Javascript SDK needed to have one or more
|
237
|
+
consensus node ids set to be able to serialize into bytes, sent over a network, and
|
238
|
+
deserialized by the SDK
|
package/dist/reown/adapter.js
CHANGED
@@ -28,7 +28,7 @@ export class HederaAdapter extends AdapterBlueprint {
|
|
28
28
|
setUniversalProvider(universalProvider) {
|
29
29
|
this.addConnector(new HederaConnector({
|
30
30
|
provider: universalProvider,
|
31
|
-
caipNetworks: this.
|
31
|
+
caipNetworks: this.getCaipNetworks() || [],
|
32
32
|
namespace: this.namespace,
|
33
33
|
}));
|
34
34
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { EventEmitter } from 'events';
|
2
|
-
import Client from '@walletconnect/
|
2
|
+
import Client from '@walletconnect/sign-client';
|
3
3
|
import { SessionTypes } from '@walletconnect/types';
|
4
4
|
import { IProvider, SessionNamespace, RpcProvidersMap, RequestParams, Namespace } from '@walletconnect/universal-provider';
|
5
5
|
declare class EIP155Provider implements IProvider {
|
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.5976a49.0",
|
4
4
|
"description": "A library to facilitate integrating Hedera",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
"prettier:fix": "prettier --write ./src/"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
|
-
"@hashgraph/sdk": "^2.
|
34
|
-
"@reown/appkit": "^1.7.
|
33
|
+
"@hashgraph/sdk": "^2.63.0",
|
34
|
+
"@reown/appkit": "^1.7.3",
|
35
35
|
"@reown/walletkit": "^1.2.3",
|
36
36
|
"@walletconnect/modal": "^2.7.0",
|
37
37
|
"ethers": "^6.13.5"
|