diff --git a/apps/remix-ide/ci/publishIpfs b/apps/remix-ide/ci/publishIpfs index c56a5f37bf..98a5d56729 100755 --- a/apps/remix-ide/ci/publishIpfs +++ b/apps/remix-ide/ci/publishIpfs @@ -6,13 +6,13 @@ console.log('current folder', process.cwd()) const folder = process.cwd() + '/temp_publish_docker'; (async () => { - const host = 'ipfs.komputing.org' // ethdev berlin ipfs node + const host = 'ipfs.remixproject.org' const ipfs = IpfsHttpClient({ host, port: 443, protocol: 'https' }) try { let result = await ipfs.add(globSource(folder, { recursive: true}), { pin: false }) const hash = result.cid.toString() console.log('ipfs://' + hash) - console.log('https://ipfsgw.komputing.org/ipfs/' + hash) + console.log('https://ipfs.remixproject.org/ipfs/' + hash) console.log('https://gateway.ipfs.io/ipfs/' + hash) } catch (e) { console.log(e) diff --git a/apps/remix-ide/src/app/files/dgitProvider.js b/apps/remix-ide/src/app/files/dgitProvider.js index ed7d4edb8e..5a2bc6a366 100644 --- a/apps/remix-ide/src/app/files/dgitProvider.js +++ b/apps/remix-ide/src/app/files/dgitProvider.js @@ -27,10 +27,10 @@ class DGitProvider extends Plugin { constructor () { super(profile) this.ipfsconfig = { - host: 'ipfs.komputing.org', + host: 'ipfs.remixproject.org', port: 443, protocol: 'https', - ipfsurl: 'https://ipfsgw.komputing.org/ipfs/' + ipfsurl: 'https://ipfs.remixproject.org/ipfs/' } this.globalIPFSConfig = { host: 'ipfs.io', diff --git a/apps/remix-ide/src/lib/publishOnIpfs.js b/apps/remix-ide/src/lib/publishOnIpfs.js index 52a55a02e7..07f8256540 100644 --- a/apps/remix-ide/src/lib/publishOnIpfs.js +++ b/apps/remix-ide/src/lib/publishOnIpfs.js @@ -4,7 +4,7 @@ const async = require('async') const IpfsClient = require('ipfs-mini') const ipfsNodes = [ - new IpfsClient({ host: 'ipfs.komputing.org', port: 443, protocol: 'https' }), + new IpfsClient({ host: 'ipfs.remixproject.org', port: 443, protocol: 'https' }), new IpfsClient({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' }), new IpfsClient({ host: '127.0.0.1', port: 5001, protocol: 'http' }) ] diff --git a/libs/remix-lib/src/init.ts b/libs/remix-lib/src/init.ts index 7e3d371715..43c68ee58f 100644 --- a/libs/remix-lib/src/init.ts +++ b/libs/remix-lib/src/init.ts @@ -12,23 +12,6 @@ export function extendWeb3 (web3) { this.extend(web3) } -export function setProvider (web3, url) { - web3.setProvider(new web3.providers.HttpProvider(url)) -} - -export function web3DebugNode (network) { - const web3DebugNodes = { - Main: 'https://gethmainnet.komputing.org', - Rinkeby: 'https://remix-rinkeby.ethdevops.io', - Ropsten: 'https://remix-ropsten.ethdevops.io', - Goerli: 'https://remix-goerli.ethdevops.io' - } - if (web3DebugNodes[network]) { - return this.loadWeb3(web3DebugNodes[network]) - } - return null -} - export function extend (web3) { if (!web3.extend) { return diff --git a/libs/remix-url-resolver/src/resolve.ts b/libs/remix-url-resolver/src/resolve.ts index adfc05d862..38076686a2 100644 --- a/libs/remix-url-resolver/src/resolve.ts +++ b/libs/remix-url-resolver/src/resolve.ts @@ -113,7 +113,7 @@ export class RemixURLResolver { url = url.replace(/^ipfs:\/\/?/, 'ipfs/') // eslint-disable-next-line no-useless-catch try { - const req = 'https://ipfsgw.komputing.org/' + url + const req = 'https://ipfs.remixproject.org/' + url // If you don't find greeter.sol on ipfs gateway use local // const req = 'http://localhost:8080/' + url const response: AxiosResponse = await axios.get(req) diff --git a/libs/remixd/src/origins.json b/libs/remixd/src/origins.json index d91e2f8a61..5a3331f3c7 100644 --- a/libs/remixd/src/origins.json +++ b/libs/remixd/src/origins.json @@ -6,6 +6,7 @@ "https://remix.ethereum.org", "package://a7df6d3c223593f3550b35e90d7b0b1f.mod", "package://6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod", - "https://ipfsgw.komputing.org" + "https://ipfsgw.komputing.org", + "https://ipfs.remixproject.org" ] } \ No newline at end of file