File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -2,18 +2,22 @@ import path from 'path';
22import { ConfigContext , generateMnemonic , useRegistry } from 'starshipjs' ;
33import { useChain } from 'starshipjs' ;
44
5+ // the defaultSignerOptions.Cosmos makes a general DirectSigner become a injective signer
56import { defaultSignerOptions } from '@interchainjs/injective/defaults' ;
67import { 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
812import { getBalance } from 'injectivejs/cosmos/bank/v1beta1/query.rpc.func' ;
913import { send } from 'injectivejs/cosmos/bank/v1beta1/tx.rpc.func' ;
14+ import { MsgSend } from 'injectivejs/cosmos/bank/v1beta1/tx' ;
1015
1116import { Secp256k1Auth } from '@interchainjs/auth/secp256k1' ;
1217import { EthSecp256k1Auth } from '@interchainjs/auth/ethSecp256k1' ;
1318import { HDPath } from '@interchainjs/types' ;
1419
1520import { sleep } from '@interchainjs/utils' ;
16- import { MsgSend } from 'injectivejs/cosmos/bank/v1beta1/tx' ;
1721
1822const main = async ( ) => {
1923 // initialize starship
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments