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";
2
2
import { hideBin } from "yargs/helpers" ;
3
3
import { DefaultStore } from "../src/node/utils/store" ;
4
4
import { loadHotWallet } from "../src/node/utils/governance" ;
5
- import { readFileSync } from "fs" ;
6
5
7
6
const parser = yargs ( hideBin ( process . argv ) )
8
7
. usage ( "Usage: $0 --config <path/to/config.json>" )
@@ -31,7 +30,7 @@ async function main() {
31
30
vault : vaultId ,
32
31
} = await parser . argv ;
33
32
34
- const config = JSON . parse ( readFileSync ( configPath , "utf8" ) ) ;
33
+ const config = await import ( configPath , { assert : { type : "json" } } ) ;
35
34
36
35
const updatePayloads : Buffer [ ] = [ ] ;
37
36
for ( const setFeeEntry of config ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../tsconfig.base.json" ,
3
- "include" : [" src/**/*" ],
4
- "exclude" : [" node_modules" , " **/__tests__/*" ],
5
3
"compilerOptions" : {
6
4
"rootDir" : " src/" ,
7
5
"outDir" : " ./lib"
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { hideBin } from "yargs/helpers";
3
3
import { sha256 } from "@cosmjs/crypto" ;
4
4
import { getPythConfig } from "./configs" ;
5
5
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" ;
9
9
import { CHAINS } from "@pythnetwork/xc-admin-common" ;
10
10
import { DeploymentType , getContractBytesDict } from "./helper" ;
11
11
You can’t perform that action at this time.
0 commit comments