Skip to content

Commit b46c5db

Browse files
committed
fix: address comments
1 parent a8d762d commit b46c5db

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

contract_manager/scripts/generate_governance_set_fee_payload.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import yargs from "yargs";
22
import { hideBin } from "yargs/helpers";
33
import { DefaultStore } from "../src/node/utils/store";
44
import { loadHotWallet } from "../src/node/utils/governance";
5-
import { readFileSync } from "fs";
65

76
const parser = yargs(hideBin(process.argv))
87
.usage("Usage: $0 --config <path/to/config.json>")
@@ -31,7 +30,7 @@ async function main() {
3130
vault: vaultId,
3231
} = await parser.argv;
3332

34-
const config = JSON.parse(readFileSync(configPath, "utf8"));
33+
const config = await import(configPath, { assert: { type: "json" } });
3534

3635
const updatePayloads: Buffer[] = [];
3736
for (const setFeeEntry of config) {

contract_manager/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"extends": "../tsconfig.base.json",
3-
"include": ["src/**/*"],
4-
"exclude": ["node_modules", "**/__tests__/*"],
53
"compilerOptions": {
64
"rootDir": "src/",
75
"outDir": "./lib"

target_chains/cosmwasm/deploy-scripts/src/instantiate-pyth.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { hideBin } from "yargs/helpers";
33
import { sha256 } from "@cosmjs/crypto";
44
import { getPythConfig } from "./configs";
55
import { DefaultStore, Store } from "@pythnetwork/contract-manager/node/store";
6-
import { CosmWasmChain } from "../../../../contract_manager/lib/core/chains";
7-
import { toPrivateKey } from "../../../../contract_manager/lib/core/base";
8-
import { CosmWasmPriceFeedContract } from "../../../../contract_manager/lib/core/contracts/cosmwasm";
6+
import { CosmWasmChain } from "@pythnetwork/contract-manager/core/chains";
7+
import { toPrivateKey } from "@pythnetwork/contract-manager/core/base";
8+
import { CosmWasmPriceFeedContract } from "@pythnetwork/contract-manager/core/contracts/cosmwasm";
99
import { CHAINS } from "@pythnetwork/xc-admin-common";
1010
import { DeploymentType, getContractBytesDict } from "./helper";
1111

0 commit comments

Comments
 (0)