@injectivelabs/wallet-wallet-connect 0.0.4-beta.3 → 0.0.4-beta.5
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 +19 -19
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -20,12 +20,12 @@ yarn add @injectivelabs/wallet-wallet-connect
|
|
|
20
20
|
|
|
21
21
|
## 📖 Documentation
|
|
22
22
|
|
|
23
|
-
Injective's wallet packages are intended to make it easy for developers to choose exactly what wallets - and subsequent dependencies - they
|
|
24
|
-
want to include in their projects.
|
|
23
|
+
Injective's wallet packages are intended to make it easy for developers to choose exactly what wallets - and subsequent dependencies - they want to include in their projects.
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
Keep in mind to include specific wallet images in your public directory, right now we only have:
|
|
26
|
+
- Fireblocks (path: `wallet-connect/fireblocks.webp`)
|
|
27
|
+
|
|
28
|
+
Regardless of which wallet package(s) you choose to use you must also have `@injectivelabs/wallet-core` and `@injectivelabs/wallet-base` installed. These contain all of the types and core wallet functionality, with the separate wallet packages only providing the necessary dependencies and implementations for their specific wallets.
|
|
29
29
|
|
|
30
30
|
Here's a brief example of how to use this package to send 1 INJ.:
|
|
31
31
|
|
|
@@ -58,21 +58,21 @@ const msgBroadcaster = new MsgBroadcaster({
|
|
|
58
58
|
})
|
|
59
59
|
|
|
60
60
|
const sendTX = async () => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
const injectiveAddress = 'someInjectiveAddress'
|
|
62
|
+
|
|
63
|
+
const message = MsgSend.fromJSON({
|
|
64
|
+
srcInjectiveAddress: injectiveAddress,
|
|
65
|
+
dstInjectiveAddress: injectiveAddress,
|
|
66
|
+
amount: {
|
|
67
|
+
amount: '1',
|
|
68
|
+
denom: 'inj',
|
|
69
|
+
},
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
return await msgBroadcaster.broadcast({ msgs: message })
|
|
73
|
+
}
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
const result = await sendTX()
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Read more and find example usages on our [WalletStrategy Docs](https://docs.ts.injective.network/wallet/wallet-wallet-strategy)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-wallet-connect",
|
|
3
3
|
"description": "Wallet connect strategy for use with @injectivelabs/wallet-core.",
|
|
4
|
-
"version": "0.0.4-beta.
|
|
4
|
+
"version": "0.0.4-beta.5",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "InjectiveLabs",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"start": "node dist/index.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@injectivelabs/exceptions": "^1.14.
|
|
35
|
-
"@injectivelabs/sdk-ts": "^1.14.17-beta.
|
|
34
|
+
"@injectivelabs/exceptions": "^1.14.17-beta.0",
|
|
35
|
+
"@injectivelabs/sdk-ts": "^1.14.17-beta.4",
|
|
36
36
|
"@injectivelabs/ts-types": "^1.14.16",
|
|
37
|
-
"@injectivelabs/utils": "^1.14.
|
|
38
|
-
"@injectivelabs/wallet-base": "^0.0.4-beta.
|
|
37
|
+
"@injectivelabs/utils": "^1.14.17-beta.0",
|
|
38
|
+
"@injectivelabs/wallet-base": "^0.0.4-beta.4",
|
|
39
39
|
"@walletconnect/ethereum-provider": "^2.12.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c416c26ad818e9388da90a56a0687a4390a4b90d",
|
|
42
42
|
"typedoc": {
|
|
43
43
|
"entryPoint": "./src/index.ts",
|
|
44
44
|
"readmeFile": "./README.md",
|