Skip to content

add comments and fix deps #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/injective/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"decimal.js": "^10.4.3",
"immer": "^10.0.2",
"injective-react": "1.9.12",
"injectivejs": "1.11.2",
"mobx": "^6.13.5",
"next": "^13",
"react": "18.2.0",
Expand Down
6 changes: 5 additions & 1 deletion examples/injective/starship/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ import path from 'path';
import { ConfigContext, generateMnemonic, useRegistry } from 'starshipjs';
import { useChain } from 'starshipjs';

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

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

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

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

const main = async () => {
// initialize starship
Expand Down
17 changes: 17 additions & 0 deletions examples/injective/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2578,6 +2578,7 @@ __metadata:
generate-lockfile: "npm:0.0.12"
immer: "npm:^10.0.2"
injective-react: "npm:1.9.12"
injectivejs: "npm:1.11.2"
mobx: "npm:^6.13.5"
next: "npm:^13"
react: "npm:18.2.0"
Expand Down Expand Up @@ -9162,6 +9163,22 @@ __metadata:
languageName: node
linkType: hard

"injectivejs@npm:1.11.2":
version: 1.11.2
resolution: "injectivejs@npm:1.11.2"
dependencies:
"@interchainjs/cosmos": "npm:1.11.2"
"@interchainjs/cosmos-types": "npm:1.11.2"
"@interchainjs/encoding": "npm:1.11.2"
"@interchainjs/pubkey": "npm:1.11.2"
"@interchainjs/types": "npm:1.11.2"
"@interchainjs/utils": "npm:1.11.2"
"@noble/hashes": "npm:^1.3.1"
decimal.js: "npm:^10.4.3"
checksum: 10c0/01292df87e7af2f455fe085d09d09018e0815d198566a81ebddca43d8980a7c6a2be0826ebe04d9e7bb53887a3df5c685923fb2e6b9300ed58e57920f9a14fb3
languageName: node
linkType: hard

"inquirer-autocomplete-prompt@npm:^0.11.1":
version: 0.11.1
resolution: "inquirer-autocomplete-prompt@npm:0.11.1"
Expand Down
Loading