Browse Source

fix: update imports to use @pythnetwork/contract-manager instead of relative imports

Daniel Chew 5 months ago
parent
commit
ecd23ff30b

+ 3 - 3
target_chains/cosmwasm/deploy-scripts/src/instantiate-wormhole.ts

@@ -4,9 +4,9 @@ import { getWormholeConfig } from "./configs";
 import {
   CosmWasmPriceFeedContract,
   CosmWasmWormholeContract,
-} from "../../../../contract_manager/lib/core/contracts/cosmwasm";
-import { toPrivateKey } from "../../../../contract_manager/lib/core/base";
-import { CosmWasmChain } from "../../../../contract_manager/lib/core/chains";
+} from "@pythnetwork/contract-manager/core/contracts/cosmwasm";
+import { toPrivateKey } from "@pythnetwork/contract-manager/core/base";
+import { CosmWasmChain } from "@pythnetwork/contract-manager/core/chains";
 import { DefaultStore, Store } from "@pythnetwork/contract-manager/node/store";
 import { CHAINS } from "@pythnetwork/xc-admin-common";
 import { DeploymentType } from "./helper";

+ 3 - 3
target_chains/sui/cli-iota/src/cli.ts

@@ -1,9 +1,9 @@
 import yargs from "yargs";
 import { hideBin } from "yargs/helpers";
-import { IotaChain } from "../../../../contract_manager/lib/core/chains";
-import { IotaPriceFeedContract } from "../../../../contract_manager/lib/core/contracts/iota";
+import { IotaChain } from "@pythnetwork/contract-manager/core/chains";
+import { IotaPriceFeedContract } from "@pythnetwork/contract-manager/core/contracts/iota";
 import { DefaultStore } from "@pythnetwork/contract-manager/node/store";
-import { getDefaultDeploymentConfig } from "../../../../contract_manager/lib/core/base";
+import { getDefaultDeploymentConfig } from "@pythnetwork/contract-manager/core/base";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
 import { execSync } from "child_process";
 import { initPyth, publishPackage } from "./pyth_deploy";

+ 1 - 1
target_chains/sui/cli-iota/src/upgrade_pyth.ts

@@ -8,7 +8,7 @@ import { IotaClient } from "@iota/iota-sdk/client";
 import { Ed25519Keypair } from "@iota/iota-sdk/keypairs/ed25519";
 
 import { execSync } from "child_process";
-import { IotaPriceFeedContract } from "../../../../contract_manager/lib/core/contracts/iota";
+import { IotaPriceFeedContract } from "@pythnetwork/contract-manager/core/contracts/iota";
 
 export function buildForBytecodeAndDigest(packagePath: string) {
   const buildOutput: {

+ 3 - 3
target_chains/sui/cli/src/cli.ts

@@ -1,9 +1,9 @@
 import yargs from "yargs";
 import { hideBin } from "yargs/helpers";
-import { SuiChain } from "../../../../contract_manager/lib/core/chains";
-import { SuiPriceFeedContract } from "../../../../contract_manager/lib/core/contracts/sui";
+import { SuiChain } from "@pythnetwork/contract-manager/core/chains";
+import { SuiPriceFeedContract } from "@pythnetwork/contract-manager/core/contracts/sui";
 import { DefaultStore } from "@pythnetwork/contract-manager/node/store";
-import { getDefaultDeploymentConfig } from "../../../../contract_manager/lib/core/base";
+import { getDefaultDeploymentConfig } from "@pythnetwork/contract-manager/core/base";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
 import { execSync } from "child_process";
 import { initPyth, publishPackage } from "./pyth_deploy";

+ 1 - 1
target_chains/sui/cli/src/upgrade_pyth.ts

@@ -4,7 +4,7 @@ import { SuiClient } from "@mysten/sui/client";
 import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519";
 
 import { execSync } from "child_process";
-import { SuiPriceFeedContract } from "../../../../contract_manager/lib/core/contracts/sui";
+import { SuiPriceFeedContract } from "@pythnetwork/contract-manager/core/contracts/sui";
 
 export function buildForBytecodeAndDigest(packagePath: string) {
   const buildOutput: {