Skip to content

Commit

Permalink
rename namespace of network/injective
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason Smith committed Jun 13, 2024
1 parent 386208f commit 966ac98
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 1 addition & 3 deletions networks/injective/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@interchainjs/cosmos",
"name": "@interchainjs/injective",
"version": "0.0.1-beta.2",
"description": "Transaction codec and client to communicate with any cosmos blockchain",
"main": "index.js",
Expand All @@ -17,10 +17,8 @@
"directory": "dist"
},
"scripts": {

"copy": "copyfiles -f ../../LICENSE-MIT ../../LICENSE-Apache README.md package.json dist",
"clean": "rimraf dist/**",

"prepare": "npm run build",
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
"build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
Expand Down
2 changes: 1 addition & 1 deletion networks/injective/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
throw new Error(
'@interchainjs/cosmos have no entry-point: consult README for usage'
'@interchainjs/injective have no entry-point: consult README for usage'
);
6 changes: 3 additions & 3 deletions networks/injective/starship/__tests__/gov.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertIsDeliverTxSuccess,
toConverters,
toEncoders,
} from "@interchainjs/cosmos/utils";
} from "@interchainjs/injective/utils";
import {
ProposalStatus,
TextProposal,
Expand All @@ -19,8 +19,8 @@ import {
bondStatusToJSON,
} from "@interchainjs/cosmos-types/cosmos/staking/v1beta1/staking";
import { MsgDelegate } from "@interchainjs/cosmos-types/cosmos/staking/v1beta1/tx";
import { AminoSigner } from '@interchainjs/cosmos/amino';
import { DirectSigner } from '@interchainjs/cosmos/direct';
import { AminoSigner } from '@interchainjs/injective/amino';
import { DirectSigner } from '@interchainjs/injective/direct';
import { fromBase64, toUtf8 } from "@interchainjs/utils";
import { BigNumber } from "bignumber.js";
import { RpcQuery } from "interchainjs/query/rpc";
Expand Down
4 changes: 2 additions & 2 deletions networks/injective/starship/__tests__/staking.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Using `fromWallet` to construct Signer
import { RpcQuery } from "interchainjs/query/rpc";
import { DirectSigner } from '@interchainjs/cosmos/direct';
import { DirectSigner } from '@interchainjs/injective/direct';
import BigNumber from "bignumber.js";
import { useChain } from "starshipjs";
import "./setup.test";
Expand All @@ -13,7 +13,7 @@ import { ChainInfo } from "@chain-registry/client";
import {
assertIsDeliverTxSuccess,
toEncoders,
} from "@interchainjs/cosmos/utils";
} from "@interchainjs/injective/utils";
import { Secp256k1Auth } from "@interchainjs/auth/secp256k1";
import { generateMnemonic } from "../src";

Expand Down
6 changes: 3 additions & 3 deletions networks/injective/starship/__tests__/token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import './setup.test';

import { ChainInfo } from '@chain-registry/client';
import { Secp256k1Auth } from '@interchainjs/auth/secp256k1';
import { defaultSignerOptions } from '@interchainjs/cosmos/defaults';
import { DirectSigner } from '@interchainjs/cosmos/direct';
import { defaultSignerOptions } from '@interchainjs/injective/defaults';
import { DirectSigner } from '@interchainjs/injective/direct';
import {
assertIsDeliverTxSuccess,
toEncoders,
} from '@interchainjs/cosmos/utils';
} from '@interchainjs/injective/utils';
import { MsgSend } from '@interchainjs/cosmos-types/cosmos/bank/v1beta1/tx';
import { MsgTransfer } from '@interchainjs/cosmos-types/ibc/applications/transfer/v1/tx';
import { RpcQuery } from 'interchainjs/query/rpc';
Expand Down

0 comments on commit 966ac98

Please sign in to comment.