injectivejs 1.7.1 → 1.7.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 +12 -12
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center" width="100%">
|
|
9
|
-
<!-- <a href="https://github.com/
|
|
10
|
-
<img height="20" src="https://github.com/
|
|
9
|
+
<!-- <a href="https://github.com/hyperweb-io/interchainjs/actions/workflows/run-tests.yaml">
|
|
10
|
+
<img height="20" src="https://github.com/hyperweb-io/interchainjs/actions/workflows/run-tests.yaml/badge.svg" />
|
|
11
11
|
</a> -->
|
|
12
|
-
<a href="https://github.com/
|
|
13
|
-
<a href="https://github.com/
|
|
12
|
+
<a href="https://github.com/hyperweb-io/interchainjs/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
|
|
13
|
+
<a href="https://github.com/hyperweb-io/interchainjs/blob/main/LICENSE-Apache"><img height="20" src="https://img.shields.io/badge/license-Apache-blue.svg"></a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
## install
|
|
@@ -89,9 +89,9 @@ const exchangeBalance = await getExchangeBalances({});
|
|
|
89
89
|
|
|
90
90
|
For tx messages, there're helper functions to sign and broadcast messages:
|
|
91
91
|
|
|
92
|
-
For more detailed usage on how to use these functions, please see the starship tests in the [networks/injective repo](https://github.com/
|
|
92
|
+
For more detailed usage on how to use these functions, please see the starship tests in the [networks/injective repo](https://github.com/hyperweb-io/interchainjs/tree/main/networks/injective/starship/__tests__)
|
|
93
93
|
|
|
94
|
-
There're also react and vue hooks for helper functions. Please see [injective-react](https://github.com/
|
|
94
|
+
There're also react and vue hooks for helper functions. Please see [injective-react](https://github.com/hyperweb-io/interchainjs/tree/main/libs/injective-react) and [injective-vue](https://github.com/hyperweb-io/interchainjs/tree/main/libs/injective-vue) repos for more information.
|
|
95
95
|
|
|
96
96
|
```js
|
|
97
97
|
import {
|
|
@@ -445,9 +445,9 @@ const { deposit, submitProposal, vote, voteWeighted } =
|
|
|
445
445
|
|
|
446
446
|
## Connecting with Wallets and Signing Messages
|
|
447
447
|
|
|
448
|
-
⚡️ For web interfaces, we recommend using [interchain-kit](https://github.com/
|
|
448
|
+
⚡️ For web interfaces, we recommend using [interchain-kit](https://github.com/hyperweb-io/interchain-kit/). Continue below to see how to manually construct signers and clients.
|
|
449
449
|
|
|
450
|
-
Here are the docs on [creating signers](https://github.com/
|
|
450
|
+
Here are the docs on [creating signers](https://github.com/hyperweb-io/interchain-kit/blob/main/packages/core/README.md) in interchain-kit that can be used with Keplr and other wallets.
|
|
451
451
|
|
|
452
452
|
### Initializing the Stargate Client
|
|
453
453
|
|
|
@@ -466,7 +466,7 @@ signingClient = await InjSigningClient.connectWithSigner(
|
|
|
466
466
|
|
|
467
467
|
To broadcast messages, you can create signers with a variety of options:
|
|
468
468
|
|
|
469
|
-
- [interchain-kit](https://github.com/
|
|
469
|
+
- [interchain-kit](https://github.com/hyperweb-io/interchain-kit/) (recommended)
|
|
470
470
|
- [keplr](https://docs.keplr.app/api/cosmjs.html)
|
|
471
471
|
- [cosmjs](https://gist.github.com/webmaster128/8444d42a7eceeda2544c8a59fbd7e1d9)
|
|
472
472
|
|
|
@@ -503,7 +503,7 @@ const response = await stargateClient.signAndBroadcast(address, [msg], fee);
|
|
|
503
503
|
|
|
504
504
|
### All In One Example
|
|
505
505
|
|
|
506
|
-
For a comprehensive example of how to use InjectiveJS to send messages, please see the example [here](https://github.com/
|
|
506
|
+
For a comprehensive example of how to use InjectiveJS to send messages, please see the example [here](https://github.com/hyperweb-io/create-cosmos-app/blob/main/examples/injective/components/SendMsg.tsx). This example demonstrates how to:
|
|
507
507
|
|
|
508
508
|
- Initialize the client.
|
|
509
509
|
- Create and sign messages.
|
|
@@ -512,7 +512,7 @@ For a comprehensive example of how to use InjectiveJS to send messages, please s
|
|
|
512
512
|
|
|
513
513
|
The example provides a complete walkthrough of setting up the client, creating a message for sending tokens, and broadcasting the transaction to the Injective blockchain.
|
|
514
514
|
|
|
515
|
-
Follow the [instructions](https://github.com/
|
|
515
|
+
Follow the [instructions](https://github.com/hyperweb-io/create-cosmos-app/tree/main/examples/injective) in the example to set up your InjectiveJS client and start sending messages to the Injective blockchain.
|
|
516
516
|
|
|
517
517
|
## Advanced Usage
|
|
518
518
|
|
|
@@ -589,7 +589,7 @@ yarn publish
|
|
|
589
589
|
Code built with the help of these related projects:
|
|
590
590
|
|
|
591
591
|
- [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) for generated CosmWasm contract Typescript classes
|
|
592
|
-
- [@cosmology/telescope](https://github.com/
|
|
592
|
+
- [@cosmology/telescope](https://github.com/hyperweb-io/telescope) a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
|
|
593
593
|
|
|
594
594
|
## License
|
|
595
595
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "injectivejs",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "Injectivejs is a JavaScript library for interacting with injective sdk.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
|
-
"author": "
|
|
9
|
-
"homepage": "https://github.com/
|
|
8
|
+
"author": "Hyperweb <developers@hyperweb.io>",
|
|
9
|
+
"homepage": "https://github.com/hyperweb-io/interchainjs",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/hyperweb-io/interchainjs"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"publishConfig": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"prepare": "npm run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@interchainjs/cosmos": "1.
|
|
29
|
-
"@interchainjs/cosmos-types": "1.
|
|
30
|
-
"@interchainjs/types": "1.
|
|
31
|
-
"@interchainjs/utils": "1.
|
|
28
|
+
"@interchainjs/cosmos": "1.7.5",
|
|
29
|
+
"@interchainjs/cosmos-types": "1.7.5",
|
|
30
|
+
"@interchainjs/types": "1.7.5",
|
|
31
|
+
"@interchainjs/utils": "1.7.5",
|
|
32
32
|
"@noble/hashes": "^1.3.1",
|
|
33
33
|
"decimal.js": "^10.4.3"
|
|
34
34
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"cosmjs",
|
|
46
46
|
"wallet"
|
|
47
47
|
],
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9efaadee53077f62aa7d8a0077128a1b6bd86cf8"
|
|
49
49
|
}
|