@hashgraph/hedera-wallet-connect 2.0.1-canary.619d02d.0 → 2.0.1-canary.64ddc43.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 CHANGED
@@ -1,11 +1,10 @@
1
1
  # Background
2
2
 
3
- ## Overview
4
-
5
3
  This library provides tools and recommendations on how to integrate Hedera into an application
6
4
  that requires communication with a wallet that supports Hedera. There are 2 different paths to
7
5
  integrate Hedera in this context. Both approaches use the
8
- [WalletConnect](https://walletconnect.network/) network to send messages from apps to wallets.
6
+ [WalletConnect](https://walletconnect.network/) network to send messages from apps to wallets
7
+ and back.
9
8
 
10
9
  ## Hedera APIs
11
10
 
@@ -23,9 +22,9 @@ Hedera gRPC and REST API calls.
23
22
  ## Ethereum JSON-RPC vs. Hedera JSON-RPC vs. Hedera JSON-RPC Relay
24
23
 
25
24
  When integrating, app developers can choose to use the Hedera native approach and send
26
- transactions to wallets over the WalletConnect relays using the JSON-RPC spec defined for Hedera
27
- native transactions or use Ethereum JSON-RPC calls sent to a Hedera JSON-RPC Relay provider
28
- 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.
29
28
 
30
29
  On a high level, JSON-RPC is a type of API stucture, such as SOAP, gRPC, REST, GraphQL, etc. In
31
30
  the Hedera ecosystem, there are distinct concepts regarding JSON-RPC APIs to consider:
@@ -43,7 +42,9 @@ For more information see:
43
42
  - [Ethereum JSON-RPC Specification ](https://ethereum.github.io/execution-apis/api-documentation/)
44
43
  - [Hedera JSON-RPC relay](https://docs.hedera.com/hedera/core-concepts/smart-contracts/json-rpc-relay)
45
44
  - [Hedera Native JSON-RPC spec for WalletConnect](https://docs.reown.com/advanced/multichain/rpc-reference/hedera-rpc)
46
- - [@hashgraph/sdk](https://www.npmjs.com/package/@hashgraph/sdk)
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/)
47
48
 
48
49
  # Getting started
49
50
 
@@ -51,13 +52,14 @@ In addition to choosing between the Hedera native JSON-RPC spec and the Ethereum
51
52
  when building with javascript/typescript, there are 2 supported options to utilize the
52
53
  WalletConnect network to send information from apps to wallets and back.
53
54
 
54
- This README assumes a basic understanding of how to create transactions on Hedera and focusses
55
+ This README assumes an understanding of Hedera as well as the WalletConnect network and focusses
55
56
  on how to send a payload to a wallet for processing and presentation to an end user that is a
56
57
  Hedera account holder. We recommend reviewing the [Hedera Docs](https://docs.hedera.com/) and
57
58
  first submitting transactions directly to the Hedera network without requiring interaction with
58
- a [Wallet](#hedera-wallets) when integrating Hedera for the first time.
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).
59
61
 
60
- ## Using this library and WalletConnect libraries directly
62
+ ## Using this library and underlying WalletConnect libraries directly
61
63
 
62
64
  1. Add Hedera dependencies to your project:
63
65
 
@@ -231,6 +233,6 @@ While minimal, the main breaking changes are:
231
233
 
232
234
  - remove setting node id's within this library for transactions
233
235
 
234
- - initially, a transaction created by the Hedera javascript SDK needed to have a node id or
235
- set of node id's set to be able to serialize into bytes to be passed sent over a network and
236
- 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
@@ -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.caipNetworks || [],
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/universal-provider/node_modules/@walletconnect/sign-client';
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.619d02d.0",
3
+ "version": "2.0.1-canary.64ddc43.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.61.0",
34
- "@reown/appkit": "^1.7.1",
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"