diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index a77ccb4737..037a14492f 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -196,12 +196,20 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { return this.el } + async compileWithParameters (compilationTargets, settings) { + return await super.compileWithParameters(compilationTargets, settings) + } + + getCompilationResult () { + return super.getCompilationResult() + } + /** * set the compiler configuration * This function is used by remix-plugin compiler API. * @param {object} settings {evmVersion, optimize, runs, version, language} */ - setCompilerConfig (settings) { + setCompilerConfig (settings) { super.setCompilerConfig(settings) this.renderComponent() // @todo(#2875) should use loading compiler return value to check whether the compiler is loaded instead of "setInterval" @@ -213,6 +221,10 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { super.compile(fileName) } + compileFile (event) { + return super.compileFile(event) + } + onActivation () { super.onActivation() this.call('filePanel', 'registerContextMenuItem', { diff --git a/apps/solidity-compiler/src/app/compiler.ts b/apps/solidity-compiler/src/app/compiler.ts index d16c6a5740..f42d2f88bd 100644 --- a/apps/solidity-compiler/src/app/compiler.ts +++ b/apps/solidity-compiler/src/app/compiler.ts @@ -2,6 +2,19 @@ import { PluginClient } from "@remixproject/plugin"; import { createClient } from "@remixproject/plugin-webview"; import { CompilerApiMixin } from './compiler-api' +const profile = { + name: 'solidity', + displayName: 'Solidity compiler', + icon: 'assets/img/solidity.webp', + description: 'Compile solidity contracts', + kind: 'compiler', + permission: true, + location: 'sidePanel', + documentation: 'https://remix-ide.readthedocs.io/en/latest/solidity_editor.html', + version: '0.0.1', + methods: ['getCompilationResult', 'compile', 'compileWithParameters', 'setCompilerConfig', 'compileFile'] +} + export interface ConfigurationSettings { version: string, evmVersion: string,