Commit 7df73ad8 authored by yann300's avatar yann300 Committed by davidzagi93@gmail.com

ensure API is public

parent 39c92ac5
...@@ -196,6 +196,14 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { ...@@ -196,6 +196,14 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) {
return this.el return this.el
} }
async compileWithParameters (compilationTargets, settings) {
return await super.compileWithParameters(compilationTargets, settings)
}
getCompilationResult () {
return super.getCompilationResult()
}
/** /**
* set the compiler configuration * set the compiler configuration
* This function is used by remix-plugin compiler API. * This function is used by remix-plugin compiler API.
...@@ -213,6 +221,10 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { ...@@ -213,6 +221,10 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) {
super.compile(fileName) super.compile(fileName)
} }
compileFile (event) {
return super.compileFile(event)
}
onActivation () { onActivation () {
super.onActivation() super.onActivation()
this.call('filePanel', 'registerContextMenuItem', { this.call('filePanel', 'registerContextMenuItem', {
......
...@@ -2,6 +2,19 @@ import { PluginClient } from "@remixproject/plugin"; ...@@ -2,6 +2,19 @@ import { PluginClient } from "@remixproject/plugin";
import { createClient } from "@remixproject/plugin-webview"; import { createClient } from "@remixproject/plugin-webview";
import { CompilerApiMixin } from './compiler-api' 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 { export interface ConfigurationSettings {
version: string, version: string,
evmVersion: string, evmVersion: string,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment