uses profile.json

pull/1/head
yann300 5 years ago
parent 23b33df000
commit 447d1383cd
  1. 78
      src/remixAppManager.js

@ -20,7 +20,7 @@ export class RemixAppManager extends PluginEngine {
super(plugins, settings)
this.event = new EventEmitter()
this.registered = {}
this.pluginsDirectory = 'https://github.com/ethereum/remix-plugins-directory'
this.pluginsDirectory = 'https://raw.githubusercontent.com/ethereum/remix-plugins-directory/master/build/profile.json'
}
onActivated (plugin) {
@ -75,20 +75,6 @@ export class RemixAppManager extends PluginEngine {
}
async registeredPlugins () {
const vyper = {
name: 'vyper',
displayName: 'Vyper',
events: ['compilationFinished'],
methods: [],
notifications: {
'fileManager': ['currentFileChanged']
},
url: 'https://remix-vyper-plugin.surge.sh',
description: 'Compile vyper contracts',
kind: 'compiler',
icon: 'data:image/svg+xml;base64,PHN2ZyBpZD0iRmxhdF9Mb2dvIiBkYXRhLW5hbWU9IkZsYXQgTG9nbyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjA0OCAxNzczLjYyIj4gIDx0aXRsZT52eXBlci1sb2dvLWZsYXQ8L3RpdGxlPiAgPHBvbHlsaW5lIHBvaW50cz0iMTAyNCA4ODYuODEgNzY4IDEzMzAuMjIgMTAyNCAxNzczLjYyIDEyODAgMTMzMC4yMiAxMDI0IDg4Ni44MSIgc3R5bGU9ImZpbGw6IzMzMyIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMTI4MCA0NDMuNDEgMTAyNCA4ODYuODEgMTI4MCAxMzMwLjIyIDE1MzYgODg2LjgxIDEyODAgNDQzLjQxIiBzdHlsZT0iZmlsbDojNjY2Ii8+ICA8cG9seWxpbmUgcG9pbnRzPSI3NjggNDQzLjQxIDUxMiA4ODYuODEgNzY4IDEzMzAuMjIgMTAyNCA4ODYuODEgNzY4IDQ0My40MSIgc3R5bGU9ImZpbGw6IzY2NiIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMTUzNiAwIDEyODAgNDQzLjQxIDE1MzYgODg2LjgxIDE3OTIgNDQzLjQxIDE1MzYgMCIgc3R5bGU9ImZpbGw6IzhjOGM4YyIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMTE1MiAyMjEuNyA4OTYgMjIxLjcgNzY4IDQ0My40MSAxMDI0IDg4Ni44MSAxMjgwIDQ0My40MSAxMTUyIDIyMS43IiBzdHlsZT0iZmlsbDojOGM4YzhjIi8+ICA8cG9seWxpbmUgcG9pbnRzPSI1MTIgMCAyNTYgNDQzLjQxIDUxMiA4ODYuODEgNzY4IDQ0My40MSA1MTIgMCIgc3R5bGU9ImZpbGw6IzhjOGM4YyIvPiAgPHBvbHlsaW5lIHBvaW50cz0iMjA0OCAwIDE1MzYgMCAxNzkyIDQ0My40IDIwNDggMCIgc3R5bGU9ImZpbGw6I2IyYjJiMiIvPiAgPHBvbHlsaW5lIHBvaW50cz0iNTEyIDAgMCAwIDI1NiA0NDMuNCA1MTIgMCIgc3R5bGU9ImZpbGw6I2IyYjJiMiIvPjwvc3ZnPg==',
location: 'sidePanel'
}
const pipeline = {
name: 'pipeline',
displayName: 'Pipeline',
@ -102,47 +88,6 @@ export class RemixAppManager extends PluginEngine {
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAAAAACIM/FCAAAJU0lEQVR42u3ce1QUVRgA8EEemgoWvjkltIZlIJhCmmTmqVBJJSofaaWpYUUn08wHmkfR6GFWqKh51CDzLZkPKs2MNAkFVAgxw007WZklaWqsLutt0b13LusM7LDfN+x07vcXe3dmvvkxszN35rszEvmfhCQgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgHgspXbcsdVoybKQsXrPfqivk0qoBJqSImV+uG6Tyq34mxOi+7oI+EMt4E3L0P60H5PRjJvSIOYwPsejgsO9ev6FDXjXpEgMvIUM2mXSKibgQWz+9IJ3OoEJWcbtx+t4yM2gcK8jk/k9TUSHyefClUjNClM0NpQnCLiJCfmCOJDNSLGQpNiJCV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JKs7RC1tI5g+QHtMvZvysNBvIsXd598tDMQz411t52aIUk0TnXKumehIF0psv7zoWj/tWIJ1oh/eisxVxjMfv1w0DoY7l+/OvaanqUu+kxzZBoOm8F11hBGyNgILSIHKbYGVGIbaTuEAt/bqGNnWAg9LVa4S5C3iTaIX3pzPwjTyXAu1agY3GNXNq1AneQOkA878c+Ruk9p7VDWD24A3f4ZSfJd2Egz7BzlXz4LQ5QQPjHpim/eFbTCdFSvyfEpZnZJTa11awdcll+5rS3o4vCjshSO6CLqzy5izLE0UVhBxkpwZVLDa2dxlmLZunQaUxX7zS6Afn3TtWj4G2HoSC71Lvxrj1YabwLKzcgKm8/s/evzYARrXKpu5jAQWzD9Lj5EO7azQd3IMQap5DifuAXJRy4Q2G/SiKgEE+6QecmhBwcUO2W6QPbzAjxYTRPCXjmJIGH1MNNbE2PI2oqK6TQssKDR7Eg+ayssI4QNIhHFHogINZoJkk8iOHYI5feniaIEI8ohoJAKmL0Kk8PJ6gQ/QYMFCJDPGAIBxDk4mg9HBMJOqT+hzlBQcjl97AHnq0hRA9IfQ8FBIQQ29fJWIMzZxcRoh+kKuptuCw0xNNCQAREQAREQAREQAREQAREQAREQAREQAREQAREQAREQATEY+M/DV/rjLxphEwAAAAASUVORK5CYII=',
location: 'mainPanel'
}
const etherscan = {
name: 'etherscan',
displayName: 'Etherscan - Contract verification',
events: [],
methods: [],
notifications: {
'solidity': ['compilationFinished']
},
url: 'https://remix-etherscan-plugin.surge.sh',
description: 'Verify Solidity contract code using Etherscan API',
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHsAAAB7CAYAAABUx/9/AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAHBklEQVR42u2dy3WbTBTH/+ikgFEFwZ8K8HQAm6yjDkIHdiogHWBXgDqADgQVaLLJToZ1NtAB38JC0QNJIPGYx73nsIgcHVvz033OnblWVVXQQcqyhBACQgiUZYk0TfHnz5/q79+/rd7PG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x2+hA6dZfWmyZ1fV0I0bpLtL4Gq4boOM7+GFN9q6/q8j8QmqQtM04gOgAAAABJRU5ErkJggg==',
location: 'sidePanel'
}
const ethdoc = {
name: 'solidityDocMd',
displayName: 'Solidity documentation generator',
events: [],
methods: [],
notifications: {
'solidity': ['compilationFinished']
},
url: 'https://remix-ethdoc-plugin.surge.sh',
description: 'Generate Solidity documentation (as md) using Natspec',
icon: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgaGVpZ2h0PSIxMDI0IiB3aWR0aD0iMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOTUwLjE1NCAxOTJINzMuODQ2QzMzLjEyNyAxOTIgMCAyMjUuMTI2OTk5OTk5OTk5OTUgMCAyNjUuODQ2djQ5Mi4zMDhDMCA3OTguODc1IDMzLjEyNyA4MzIgNzMuODQ2IDgzMmg4NzYuMzA4YzQwLjcyMSAwIDczLjg0Ni0zMy4xMjUgNzMuODQ2LTczLjg0NlYyNjUuODQ2QzEwMjQgMjI1LjEyNjk5OTk5OTk5OTk1IDk5MC44NzUgMTkyIDk1MC4xNTQgMTkyek01NzYgNzAzLjg3NUw0NDggNzA0VjUxMmwtOTYgMTIzLjA3N0wyNTYgNTEydjE5MkgxMjhWMzIwaDEyOGw5NiAxMjggOTYtMTI4IDEyOC0wLjEyNVY3MDMuODc1ek03NjcuMDkxIDczNS44NzVMNjA4IDUxMmg5NlYzMjBoMTI4djE5Mmg5Nkw3NjcuMDkxIDczNS44NzV6Ii8+PC9zdmc+',
location: 'sidePanel'
}
const mythx = {
name: 'remythx',
displayName: 'MythX Security Verification',
events: [],
methods: [],
notifications: {
'solidity': ['compilationFinished']
},
version: '0.1.0',
url: 'https://remix-mythx-plugin.surge.sh',
description: 'Perform Static and Dynamic Security Analysis using the MythX Cloud Service',
icon: 'https://remix-mythx-plugin.surge.sh/logo.png',
location: 'sidePanel',
documentation: 'https://github.com/aquiladev/remix-mythx-plugin/blob/master/README.md'
}
const provable = {
name: 'provable',
displayName: 'Provable - oracle service',
@ -169,17 +114,6 @@ export class RemixAppManager extends PluginEngine {
icon: 'https://raw.githubusercontent.com/3box/3box-dapp/master/public/3Box3.png',
location: 'sidePanel'
}
const remixWorkshop = {
name: 'workshops',
displayName: 'Remix Workshops',
description: 'Learn Ethereum with Remix !',
methods: [],
events: [],
version: '0.1.0-alpha',
url: 'https://remix-plugin-workshops.surge.sh',
icon: 'https://image.flaticon.com/icons/svg/1570/1570493.svg',
location: 'sidePanel'
}
const debugPlugin = {
name: 'debugPlugin',
displayName: 'Debug Tools for Remix plugins',
@ -263,16 +197,12 @@ export class RemixAppManager extends PluginEngine {
icon: 'https://zokrates.blockchain-it.hr/zokrates.svg',
location: 'sidePanel'
}
const plugins = JSON.parse(await fetch(this.pluginsDirectory))
const res = await fetch(this.pluginsDirectory)
const plugins = await res.json()
return [
new IframePlugin(pipeline),
new IframePlugin(vyper),
new IframePlugin(etherscan),
new IframePlugin(ethdoc),
new IframePlugin(mythx),
new IframePlugin(provable),
new IframePlugin(threeBox),
new IframePlugin(remixWorkshop),
new IframePlugin(debugPlugin),
new IframePlugin(libraTools),
new IframePlugin(oneClickDapp),
@ -280,7 +210,7 @@ export class RemixAppManager extends PluginEngine {
new IframePlugin(flattener),
new IframePlugin(ethpm),
new IframePlugin(zokrates),
...plugins
...plugins.map(plugin => new IframePlugin(plugin))
]
}
}

Loading…
Cancel
Save