|
|
|
@ -21,7 +21,7 @@ export class RemixAppManager extends PluginEngine { |
|
|
|
|
super(plugins, settings) |
|
|
|
|
this.event = new EventEmitter() |
|
|
|
|
this.registered = {} |
|
|
|
|
this.pluginsDirectory = 'https://raw.githubusercontent.com/ethereum/remix-plugins-directory/master/build/profile.json' |
|
|
|
|
this.pluginsDirectory = 'https://raw.githubusercontent.com/ethereum/remix-plugins-directory/master/build/metadata.json' |
|
|
|
|
this.pluginLoader = new PluginLoader() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -77,158 +77,9 @@ export class RemixAppManager extends PluginEngine { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async registeredPlugins () { |
|
|
|
|
const pipeline = { |
|
|
|
|
name: 'pipeline', |
|
|
|
|
displayName: 'Pipeline', |
|
|
|
|
events: [], |
|
|
|
|
methods: [], |
|
|
|
|
notifications: { |
|
|
|
|
'solidity': ['compilationFinished'] |
|
|
|
|
}, |
|
|
|
|
url: 'https://pipeline-alpha.pipeos.one', |
|
|
|
|
description: 'Visual IDE for contracts and dapps', |
|
|
|
|
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAAAAACIM/FCAAAJU0lEQVR42u3ce1QUVRgA8EEemgoWvjkltIZlIJhCmmTmqVBJJSofaaWpYUUn08wHmkfR6GFWqKh51CDzLZkPKs2MNAkFVAgxw007WZklaWqsLutt0b13LusM7LDfN+x07vcXe3dmvvkxszN35rszEvmfhCQgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgAiIgHgspXbcsdVoybKQsXrPfqivk0qoBJqSImV+uG6Tyq34mxOi+7oI+EMt4E3L0P60H5PRjJvSIOYwPsejgsO9ev6FDXjXpEgMvIUM2mXSKibgQWz+9IJ3OoEJWcbtx+t4yM2gcK8jk/k9TUSHyefClUjNClM0NpQnCLiJCfmCOJDNSLGQpNiJCVgQ1b+YfcFPrdt1KsSDmwSFtAgP8AwLbjMeCVGYOu1FyRPvEfBz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v7zoWj/tWIJ1oh/eisxVxjMfv1w0DoY7l+/OvaanqUu+kxzZBoOm8F11hBGyNgILSIHKbYGVGIbaTuEAt/bqGNnWAg9LVa4S5C3iTaIX3pzPwjTyXAu1agY3GNXNq1AneQOkA878c+Ruk9p7VDWD24A3f4ZSfJd2Egz7BzlXz4LQ5QQPjHpim/eFbTCdFSvyfEpZnZJTa11awdcll+5rS3o4vCjshSO6CLqzy5izLE0UVhBxkpwZVLDa2dxlmLZunQaUxX7zS6Afn3TtWj4G2HoSC71Lvxrj1YabwLKzcgKm8/s/evzYARrXKpu5jAQWzD9Lj5EO7azQd3IMQap5DifuAXJRy4Q2G/SiKgEE+6QecmhBwcUO2W6QPbzAjxYTRPCXjmJIGH1MNNbE2PI2oqK6TQssKDR7Eg+ayssI4QNIhHFHogINZoJkk8iOHYI5feniaIEI8ohoJAKmL0Kk8PJ6gQ/QYMFCJDPGAIBxDk4mg9HBMJOqT+hzlBQcjl97AHnq0hRA9IfQ8FBIQQ29fJWIMzZxcRoh+kKuptuCw0xNNCQAREQAREQAREQAREQAREQAREQAREQAREQAREQAREQATEY+M/DV/rjLxphEwAAAAASUVORK5CYII=', |
|
|
|
|
location: 'mainPanel' |
|
|
|
|
} |
|
|
|
|
const provable = { |
|
|
|
|
name: 'provable', |
|
|
|
|
displayName: 'Provable - oracle service', |
|
|
|
|
events: [], |
|
|
|
|
methods: [], |
|
|
|
|
notifications: { |
|
|
|
|
'udapp': ['newTransaction'], |
|
|
|
|
'network': ['providerChanged'] |
|
|
|
|
}, |
|
|
|
|
url: 'https://remix-plugin.provable.xyz', |
|
|
|
|
documentation: 'https://docs.oraclize.it/#development-tools-remix-ide-provable-plugin', |
|
|
|
|
description: 'request real-world data for your contracts', |
|
|
|
|
icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNTcuNTMgMTU5Ij48ZGVmcz48c3R5bGU+LmNsc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N5PSIxMTAuNSIgcj0iNy43NSIvPjwvZz48L3N2Zz4=', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const threeBox = { |
|
|
|
|
name: 'box', |
|
|
|
|
displayName: '3Box Spaces', |
|
|
|
|
description: 'A decentralized storage for everything that happen on Remix', |
|
|
|
|
methods: ['login', 'isEnabled', 'getUserAddress', 'openSpace', 'closeSpace', 'isSpaceOpened', 'getSpacePrivateValue', 'setSpacePrivateValue', 'getSpacePublicValue', 'setSpacePublicValue', 'getSpacePublicData'], |
|
|
|
|
events: [], |
|
|
|
|
version: '0.1.0-beta', |
|
|
|
|
url: 'https://remix-3box.surge.sh', |
|
|
|
|
icon: 'https://raw.githubusercontent.com/3box/3box-dapp/master/public/3Box3.png', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const debugPlugin = { |
|
|
|
|
name: 'debugPlugin', |
|
|
|
|
displayName: 'Debug Tools for Remix plugins', |
|
|
|
|
description: 'Easily test and debug your plugins !', |
|
|
|
|
methods: ['sayHello', 'sayMyName', 'sayOurNames'], // test calls with 0, 1, and 2 args
|
|
|
|
|
events: [], |
|
|
|
|
version: '0.1.0-alpha', |
|
|
|
|
url: 'https://remix-debug-a.surge.sh', |
|
|
|
|
icon: 'https://remix-debug-a.surge.sh/icon.png', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const libraTools = { |
|
|
|
|
name: 'libratools', |
|
|
|
|
displayName: 'Libra and Move Tools', |
|
|
|
|
events: [], |
|
|
|
|
methods: [], |
|
|
|
|
url: 'https://libra.pipeos.one', |
|
|
|
|
description: 'Create, compile, deploy and interact with Libra modules and scripts', |
|
|
|
|
icon: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYX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|
|
|
|
|
methods: [], |
|
|
|
|
version: '0.1.0', |
|
|
|
|
notifications: { |
|
|
|
|
solidity: ['compilationFinished'] |
|
|
|
|
}, |
|
|
|
|
url: 'https://remix-one-click-dapp.surge.sh', |
|
|
|
|
description: 'A free tool to generate smart contract interfaces.', |
|
|
|
|
documentation: 'https://github.com/pi0neerpat/remix-plugin-one-click-dapp', |
|
|
|
|
icon: 'https://remix-one-click-dapp.surge.sh/icon.png', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const gasProfiler = { |
|
|
|
|
name: 'gasProfiler', |
|
|
|
|
displayName: 'Gas Profiler', |
|
|
|
|
events: [], |
|
|
|
|
methods: [], |
|
|
|
|
version: '0.1.0-alpha', |
|
|
|
|
url: 'https://remix-gas-profiler.surge.sh', |
|
|
|
|
description: 'Profile gas costs', |
|
|
|
|
icon: 'https://res.cloudinary.com/key-solutions/image/upload/v1565781702/gas-profiler_nxmsal.png', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const flattener = { |
|
|
|
|
name: 'flattener', |
|
|
|
|
displayName: 'Flattener', |
|
|
|
|
events: [], |
|
|
|
|
methods: [], |
|
|
|
|
version: '0.1.0', |
|
|
|
|
url: 'https://remix-flattener.netlify.com', |
|
|
|
|
description: 'Flattens compiled smart contracts', |
|
|
|
|
documentation: 'https://github.com/Destiner/remix-flattener', |
|
|
|
|
icon: 'https://remix-flattener.netlify.com/logo.svg', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const ethpm = { |
|
|
|
|
name: 'ethPM', |
|
|
|
|
displayName: 'ethPM', |
|
|
|
|
events: [], |
|
|
|
|
methods: [], |
|
|
|
|
notifications: { |
|
|
|
|
solidity: ['compilationFinished'] |
|
|
|
|
}, |
|
|
|
|
url: 'https://ethpm.surge.sh', |
|
|
|
|
description: 'Generate and import ethPM packages.', |
|
|
|
|
documentation: 'https://docs.ethpm.com/ethpm-developer-guide/ethpm-and-remix-ide', |
|
|
|
|
icon: 'https://ethpm.surge.sh/ethpmlogo.png', |
|
|
|
|
location: 'mainPanel' |
|
|
|
|
} |
|
|
|
|
const zokrates = { |
|
|
|
|
name: 'ZoKrates', |
|
|
|
|
displayName: 'ZoKrates', |
|
|
|
|
description: 'ZoKrates toolbox for zkSNARKs on Ethereum', |
|
|
|
|
documentation: 'https://zokrates.github.io/', |
|
|
|
|
methods: [], |
|
|
|
|
events: [], |
|
|
|
|
version: '0.1.0-alpha', |
|
|
|
|
url: 'https://zokrates.blockchain-it.hr/', |
|
|
|
|
icon: 'https://zokrates.blockchain-it.hr/zokrates.svg', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const quorum = { |
|
|
|
|
name: 'quorum', |
|
|
|
|
displayName: 'Quorum Network', |
|
|
|
|
description: 'Deploy and interact with private contracts on a Quorum network.', |
|
|
|
|
events: [], |
|
|
|
|
methods: [], |
|
|
|
|
url: '//remix-plugin.goquorum.com/', |
|
|
|
|
icon: '//remix-plugin.goquorum.com/tab_icon.png', |
|
|
|
|
documentation: 'https://docs.goquorum.com/en/latest/RemixPlugin/Overview/', |
|
|
|
|
version: '0.1.4-beta', |
|
|
|
|
location: 'sidePanel' |
|
|
|
|
} |
|
|
|
|
const res = await fetch(this.pluginsDirectory) |
|
|
|
|
const plugins = await res.json() |
|
|
|
|
return [ |
|
|
|
|
new IframePlugin(pipeline), |
|
|
|
|
new IframePlugin(provable), |
|
|
|
|
new IframePlugin(threeBox), |
|
|
|
|
new IframePlugin(debugPlugin), |
|
|
|
|
new IframePlugin(libraTools), |
|
|
|
|
new IframePlugin(oneClickDapp), |
|
|
|
|
new IframePlugin(gasProfiler), |
|
|
|
|
new IframePlugin(flattener), |
|
|
|
|
new IframePlugin(ethpm), |
|
|
|
|
new IframePlugin(zokrates), |
|
|
|
|
new IframePlugin(quorum), |
|
|
|
|
...plugins.map(plugin => new IframePlugin(plugin)) |
|
|
|
|
] |
|
|
|
|
return plugins.map(plugin => new IframePlugin(plugin)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|