Skip to content

Commit f8a5635

Browse files
authored
Merge pull request #34 from hyperweb-io/interchainjs-1.11
add comments and fix deps
2 parents 584cf59 + c33499a commit f8a5635

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

examples/injective/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"decimal.js": "^10.4.3",
4747
"immer": "^10.0.2",
4848
"injective-react": "1.9.12",
49+
"injectivejs": "1.11.2",
4950
"mobx": "^6.13.5",
5051
"next": "^13",
5152
"react": "18.2.0",

examples/injective/starship/src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@ import path from 'path';
22
import { ConfigContext, generateMnemonic, useRegistry } from 'starshipjs';
33
import { useChain } from 'starshipjs';
44

5+
// the defaultSignerOptions.Cosmos makes a general DirectSigner become a injective signer
56
import { defaultSignerOptions } from '@interchainjs/injective/defaults';
67
import { DirectSigner } from '@interchainjs/cosmos/signers/direct';
78

9+
// the cosmos part of these functions is the same with the ones in interchainjs
10+
// meaning these functions can be also imported from interchainjs
11+
// and feel free to use those injective specific functions from injectivejs/injective
812
import { getBalance } from 'injectivejs/cosmos/bank/v1beta1/query.rpc.func';
913
import { send } from 'injectivejs/cosmos/bank/v1beta1/tx.rpc.func';
14+
import { MsgSend } from 'injectivejs/cosmos/bank/v1beta1/tx';
1015

1116
import { Secp256k1Auth } from '@interchainjs/auth/secp256k1';
1217
import { EthSecp256k1Auth } from '@interchainjs/auth/ethSecp256k1';
1318
import { HDPath } from '@interchainjs/types';
1419

1520
import { sleep } from '@interchainjs/utils';
16-
import { MsgSend } from 'injectivejs/cosmos/bank/v1beta1/tx';
1721

1822
const main = async () => {
1923
// initialize starship

examples/injective/yarn.lock

+17
Original file line numberDiff line numberDiff line change
@@ -2578,6 +2578,7 @@ __metadata:
25782578
generate-lockfile: "npm:0.0.12"
25792579
immer: "npm:^10.0.2"
25802580
injective-react: "npm:1.9.12"
2581+
injectivejs: "npm:1.11.2"
25812582
mobx: "npm:^6.13.5"
25822583
next: "npm:^13"
25832584
react: "npm:18.2.0"
@@ -9162,6 +9163,22 @@ __metadata:
91629163
languageName: node
91639164
linkType: hard
91649165

9166+
"injectivejs@npm:1.11.2":
9167+
version: 1.11.2
9168+
resolution: "injectivejs@npm:1.11.2"
9169+
dependencies:
9170+
"@interchainjs/cosmos": "npm:1.11.2"
9171+
"@interchainjs/cosmos-types": "npm:1.11.2"
9172+
"@interchainjs/encoding": "npm:1.11.2"
9173+
"@interchainjs/pubkey": "npm:1.11.2"
9174+
"@interchainjs/types": "npm:1.11.2"
9175+
"@interchainjs/utils": "npm:1.11.2"
9176+
"@noble/hashes": "npm:^1.3.1"
9177+
decimal.js: "npm:^10.4.3"
9178+
checksum: 10c0/01292df87e7af2f455fe085d09d09018e0815d198566a81ebddca43d8980a7c6a2be0826ebe04d9e7bb53887a3df5c685923fb2e6b9300ed58e57920f9a14fb3
9179+
languageName: node
9180+
linkType: hard
9181+
91659182
"inquirer-autocomplete-prompt@npm:^0.11.1":
91669183
version: 0.11.1
91679184
resolution: "inquirer-autocomplete-prompt@npm:0.11.1"

0 commit comments

Comments
 (0)