File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 46
46
"decimal.js" : " ^10.4.3" ,
47
47
"immer" : " ^10.0.2" ,
48
48
"injective-react" : " 1.9.12" ,
49
+ "injectivejs" : " 1.11.2" ,
49
50
"mobx" : " ^6.13.5" ,
50
51
"next" : " ^13" ,
51
52
"react" : " 18.2.0" ,
Original file line number Diff line number Diff line change @@ -2,18 +2,22 @@ import path from 'path';
2
2
import { ConfigContext , generateMnemonic , useRegistry } from 'starshipjs' ;
3
3
import { useChain } from 'starshipjs' ;
4
4
5
+ // the defaultSignerOptions.Cosmos makes a general DirectSigner become a injective signer
5
6
import { defaultSignerOptions } from '@interchainjs/injective/defaults' ;
6
7
import { DirectSigner } from '@interchainjs/cosmos/signers/direct' ;
7
8
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
8
12
import { getBalance } from 'injectivejs/cosmos/bank/v1beta1/query.rpc.func' ;
9
13
import { send } from 'injectivejs/cosmos/bank/v1beta1/tx.rpc.func' ;
14
+ import { MsgSend } from 'injectivejs/cosmos/bank/v1beta1/tx' ;
10
15
11
16
import { Secp256k1Auth } from '@interchainjs/auth/secp256k1' ;
12
17
import { EthSecp256k1Auth } from '@interchainjs/auth/ethSecp256k1' ;
13
18
import { HDPath } from '@interchainjs/types' ;
14
19
15
20
import { sleep } from '@interchainjs/utils' ;
16
- import { MsgSend } from 'injectivejs/cosmos/bank/v1beta1/tx' ;
17
21
18
22
const main = async ( ) => {
19
23
// initialize starship
Original file line number Diff line number Diff line change @@ -2578,6 +2578,7 @@ __metadata:
2578
2578
generate-lockfile : " npm:0.0.12"
2579
2579
immer : " npm:^10.0.2"
2580
2580
injective-react : " npm:1.9.12"
2581
+ injectivejs : " npm:1.11.2"
2581
2582
mobx : " npm:^6.13.5"
2582
2583
next : " npm:^13"
2583
2584
react : " npm:18.2.0"
@@ -9162,6 +9163,22 @@ __metadata:
9162
9163
languageName : node
9163
9164
linkType : hard
9164
9165
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
+
9165
9182
" inquirer-autocomplete-prompt@npm:^0.11.1 " :
9166
9183
version : 0.11.1
9167
9184
resolution : " inquirer-autocomplete-prompt@npm:0.11.1"
You can’t perform that action at this time.
0 commit comments