2022-08-19 22:31:10 +03:00
|
|
|
/* eslint-disable */
|
2022-09-27 01:01:50 +03:00
|
|
|
require('dotenv').config({ path: '.env.production' })
|
2022-08-19 22:31:10 +03:00
|
|
|
const { exec } = require('child_process')
|
|
|
|
const dataConfig = require('./relay.config')
|
|
|
|
const thegraphConfig = require('./relay_thegraph.config')
|
|
|
|
/* eslint-enable */
|
|
|
|
|
|
|
|
const THEGRAPH_API_URL = 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3'
|
|
|
|
exec(`get-graphql-schema ${THEGRAPH_API_URL} > ${thegraphConfig.schema}`)
|
|
|
|
|
2022-09-27 01:01:50 +03:00
|
|
|
console.log(process.env.REACT_APP_AWS_API_ENDPOINT)
|
|
|
|
exec(
|
|
|
|
`get-graphql-schema --h Origin=https://app.uniswap.org ${process.env.REACT_APP_AWS_API_ENDPOINT} > ${dataConfig.schema}`
|
|
|
|
)
|