switch to theGraph ipfs gateway

This is being done while we diagnose the issues
with the status gateway
This commit is contained in:
Barry Gitarts 2019-08-21 16:33:52 -04:00 committed by Barry G
parent e8d5bb0aa9
commit b83eb9e7bf
2 changed files with 4 additions and 4 deletions

View File

@ -197,15 +197,14 @@ const SubmissionSection = ({ classes, history }) => {
const { title, commitTime } = values
const manifest = createJSON(values)
const contentHash = await uploadFilesToIpfs(uploads, manifest)
uploadFilesToIpfs(uploads, manifest, true)
const args = [title, contentHash, account, 0, hoursToSeconds(commitTime), ZERO_ADDRESS]
addProject(...args)
.estimateGas({ from: account })
.then(async gas => {
addProject(...args)
.send({ from: account, gas: gas + 100 })
.then(res => {
// upload to gateway
uploadFilesToIpfs(uploads, manifest, true)
.then(async res => {
pinToGateway(contentHash)
console.log({res})
openSnackBar('success', addProjectSucessMsg(res))

View File

@ -7,7 +7,8 @@ import { getImageType } from './images'
const ipfsMatcher = new Matcher().begin().find('ipfs/')
export const ipfs = new IPFS()
const ipfsHttp = ipfsClient('test-ipfs.status.im', '2053', { protocol: 'https' })
//const ipfsHttp = ipfsClient('test-ipfs.status.im', '2053', { protocol: 'https' })
const ipfsHttp = ipfsClient({ host: 'api.thegraph.com', 'api-path': '/ipfs/api/v0/', protocol: 'https', port: '443' })
window.ipfsHttp = ipfsHttp
window.jsIPFS = ipfs