mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
18 lines
415 B
TypeScript
18 lines
415 B
TypeScript
|
import * as HDWalletProvider from "truffle-hdwallet-provider"
|
||
|
import { Config } from "../src"
|
||
|
import * as configJson from "./config/config.json"
|
||
|
|
||
|
if (process.env.SEED_WORDS) {
|
||
|
const seedphrase = process.env.SEED_WORDS
|
||
|
|
||
|
// @ts-ignore
|
||
|
configJson.web3Provider = new HDWalletProvider(
|
||
|
seedphrase,
|
||
|
configJson.nodeUri,
|
||
|
0,
|
||
|
2,
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const config = configJson as Config
|