File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
target_chains/cosmwasm/deploy-scripts/src Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import yargs from "yargs";
22import { hideBin } from "yargs/helpers" ;
33import { DefaultStore } from "../src/node/utils/store" ;
44import { loadHotWallet } from "../src/node/utils/governance" ;
5- import { readFileSync } from "fs" ;
65
76const 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 ) {
Original file line number Diff line number Diff line change 11{
22 "extends" : " ../tsconfig.base.json" ,
3- "include" : [" src/**/*" ],
4- "exclude" : [" node_modules" , " **/__tests__/*" ],
53 "compilerOptions" : {
64 "rootDir" : " src/" ,
75 "outDir" : " ./lib"
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { hideBin } from "yargs/helpers";
33import { sha256 } from "@cosmjs/crypto" ;
44import { getPythConfig } from "./configs" ;
55import { 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" ;
99import { CHAINS } from "@pythnetwork/xc-admin-common" ;
1010import { DeploymentType , getContractBytesDict } from "./helper" ;
1111
You can’t perform that action at this time.
0 commit comments