mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-30 21:28:09 +00:00
switch to theGraph ipfs gateway
This is being done while we diagnose the issues with the status gateway
This commit is contained in:
parent
e8d5bb0aa9
commit
b83eb9e7bf
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user