injectivejs 1.9.12 → 1.9.13

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.
Files changed (2) hide show
  1. package/README.md +26 -22
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -46,7 +46,7 @@ npm install injectivejs
46
46
  - [IBC Messages](#ibc-messages)
47
47
  - [Cosmos Messages](#cosmos-messages)
48
48
  - [Connecting with Wallets and Signing Messages](#connecting-with-wallets-and-signing-messages)
49
- - [Initializing the Stargate Client](#initializing-the-stargate-client)
49
+ - [Initializing the Signing Client](#initializing-the-signing-client)
50
50
  - [Creating Signers](#creating-signers)
51
51
  - [Broadcasting Messages](#broadcasting-messages)
52
52
  - [All In One Example](#all-in-one-example)
@@ -448,16 +448,20 @@ const { deposit, submitProposal, vote, voteWeighted } =
448
448
 
449
449
  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.
450
450
 
451
- ### Initializing the Stargate Client
451
+ ### Initializing the Signing Client
452
452
 
453
- Use `getSigningInjectiveClient` to get your `SigningStargateClient`, with the proto/amino messages full-loaded. No need to manually add amino types, just require and initialize the client:
453
+ Use SigningClient.connectWithSigner and pass in the signer options for injective to get your `SigningClient`:
454
454
 
455
455
  ```js
456
- import { InjSigningClient } from "@interchainjs/injective/signing-client";
456
+ import { SigningClient } from "@interchainjs/cosmos/signing-client";
457
+ import { defaultSignerOptions } from "@interchainjs/injective/defaults";
457
458
 
458
- signingClient = await InjSigningClient.connectWithSigner(
459
+ const signingClient = await SigningClient.connectWithSigner(
459
460
  await getRpcEndpoint(),
460
- new AminoGenericOfflineSigner(aminoOfflineSigner)
461
+ new AminoGenericOfflineSigner(aminoOfflineSigner),
462
+ {
463
+ signerOptions: defaultSignerOptions.Cosmos,
464
+ }
461
465
  );
462
466
  ```
463
467
 
@@ -497,12 +501,12 @@ const fee: StdFee = {
497
501
  ],
498
502
  gas: "86364",
499
503
  };
500
- const response = await stargateClient.signAndBroadcast(address, [msg], fee);
504
+ const response = await signingClient.signAndBroadcast(address, [msg], fee);
501
505
  ```
502
506
 
503
507
  ### All In One Example
504
508
 
505
- 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:
509
+ For a comprehensive example of how to use InjectiveJS to send messages, please see the example [here](https://github.com/hyperweb-io/create-interchain-app/tree/main/examples/injective/components/SendMsg.tsx). This example demonstrates how to:
506
510
 
507
511
  - Initialize the client.
508
512
  - Create and sign messages.
@@ -511,11 +515,11 @@ For a comprehensive example of how to use InjectiveJS to send messages, please s
511
515
 
512
516
  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.
513
517
 
514
- 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.
518
+ Follow the [instructions](https://github.com/hyperweb-io/create-interchain-app/tree/main/examples/injective) in the example to set up your InjectiveJS client and start sending messages to the Injective blockchain.
515
519
 
516
520
  ## Advanced Usage
517
521
 
518
- If you want to manually construct a stargate client
522
+ If you want to manually construct a signing client, you can do so by following the example below:
519
523
 
520
524
  ```js
521
525
  import {
@@ -549,7 +553,7 @@ const aminoConverters = {
549
553
  const registry = new Registry(protoRegistry);
550
554
  const aminoTypes = new AminoTypes(aminoConverters);
551
555
 
552
- const signingClient = await InjSigningClient.connectWithSigner(rpcEndpoint, signer);
556
+ const signingClient = await SigningClient.connectWithSigner(rpcEndpoint, signer);
553
557
 
554
558
  signingClient.addEncoders(registry);
555
559
  signingClient.addConverters(aminoTypes);
@@ -585,17 +589,17 @@ yarn publish
585
589
 
586
590
  A unified toolkit for building applications and smart contracts in the Interchain ecosystem
587
591
 
588
- | Category | Tools | Description |
589
- |----------------------|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
590
- | **Chain Information** | [**Chain Registry**](https://github.com/hyperweb-io/chain-registry), [**Utils**](https://www.npmjs.com/package/@chain-registry/utils), [**Client**](https://www.npmjs.com/package/@chain-registry/client) | Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. |
591
- | **Wallet Connectors**| [**Interchain Kit**](https://github.com/hyperweb-io/interchain-kit)<sup>beta</sup>, [**Cosmos Kit**](https://github.com/hyperweb-io/cosmos-kit) | Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. |
592
- | **Signing Clients** | [**InterchainJS**](https://github.com/hyperweb-io/interchainjs)<sup>beta</sup>, [**CosmJS**](https://github.com/cosmos/cosmjs) | A single, universal signing interface for any network |
593
- | **SDK Clients** | [**Telescope**](https://github.com/hyperweb-io/telescope) | Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. |
594
- | **Starter Kits** | [**Create Interchain App**](https://github.com/hyperweb-io/create-interchain-app)<sup>beta</sup>, [**Create Cosmos App**](https://github.com/hyperweb-io/create-cosmos-app) | Set up a modern Interchain app by running one command. |
595
- | **UI Kits** | [**Interchain UI**](https://github.com/hyperweb-io/interchain-ui) | The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. |
596
- | **Testing Frameworks** | [**Starship**](https://github.com/hyperweb-io/starship) | Unified Testing and Development for the Interchain. |
597
- | **TypeScript Smart Contracts** | [**Create Hyperweb App**](https://github.com/hyperweb-io/create-hyperweb-app) | Build and deploy full-stack blockchain applications with TypeScript |
598
- | **CosmWasm Contracts** | [**CosmWasm TS Codegen**](https://github.com/CosmWasm/ts-codegen) | Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. |
592
+ | Category | Tools | Description |
593
+ | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
594
+ | **Chain Information** | [**Chain Registry**](https://github.com/hyperweb-io/chain-registry), [**Utils**](https://www.npmjs.com/package/@chain-registry/utils), [**Client**](https://www.npmjs.com/package/@chain-registry/client) | Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. |
595
+ | **Wallet Connectors** | [**Interchain Kit**](https://github.com/hyperweb-io/interchain-kit)<sup>beta</sup>, [**Cosmos Kit**](https://github.com/hyperweb-io/cosmos-kit) | Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. |
596
+ | **Signing Clients** | [**InterchainJS**](https://github.com/hyperweb-io/interchainjs)<sup>beta</sup>, [**CosmJS**](https://github.com/cosmos/cosmjs) | A single, universal signing interface for any network |
597
+ | **SDK Clients** | [**Telescope**](https://github.com/hyperweb-io/telescope) | Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. |
598
+ | **Starter Kits** | [**Create Interchain App**](https://github.com/hyperweb-io/create-interchain-app)<sup>beta</sup>, [**Create Cosmos App**](https://github.com/hyperweb-io/create-cosmos-app) | Set up a modern Interchain app by running one command. |
599
+ | **UI Kits** | [**Interchain UI**](https://github.com/hyperweb-io/interchain-ui) | The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. |
600
+ | **Testing Frameworks** | [**Starship**](https://github.com/hyperweb-io/starship) | Unified Testing and Development for the Interchain. |
601
+ | **TypeScript Smart Contracts** | [**Create Hyperweb App**](https://github.com/hyperweb-io/create-hyperweb-app) | Build and deploy full-stack blockchain applications with TypeScript |
602
+ | **CosmWasm Contracts** | [**CosmWasm TS Codegen**](https://github.com/CosmWasm/ts-codegen) | Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. |
599
603
 
600
604
  ## Credits
601
605
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "injectivejs",
3
- "version": "1.9.12",
3
+ "version": "1.9.13",
4
4
  "description": "Injectivejs is a JavaScript library for interacting with injective sdk.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -25,12 +25,12 @@
25
25
  "prepare": "npm run build"
26
26
  },
27
27
  "dependencies": {
28
- "@interchainjs/cosmos": "1.9.12",
29
- "@interchainjs/cosmos-types": "1.9.12",
30
- "@interchainjs/encoding": "1.9.12",
31
- "@interchainjs/pubkey": "1.9.12",
32
- "@interchainjs/types": "1.9.12",
33
- "@interchainjs/utils": "1.9.12",
28
+ "@interchainjs/cosmos": "1.9.13",
29
+ "@interchainjs/cosmos-types": "1.9.13",
30
+ "@interchainjs/encoding": "1.9.13",
31
+ "@interchainjs/pubkey": "1.9.13",
32
+ "@interchainjs/types": "1.9.13",
33
+ "@interchainjs/utils": "1.9.13",
34
34
  "@noble/hashes": "^1.3.1",
35
35
  "decimal.js": "^10.4.3"
36
36
  },
@@ -41,5 +41,5 @@
41
41
  "cosmjs",
42
42
  "wallet"
43
43
  ],
44
- "gitHead": "fe93f74f81349ed074aea9dab13a5b0ffa239811"
44
+ "gitHead": "240f7ecd5b3f5790be96543a41a125b363b37f6d"
45
45
  }