ensure API is public

pull/5370/head
yann300 3 years ago
parent eb38865e42
commit 42220cfda0
  1. 14
      apps/remix-ide/src/app/tabs/compile-tab.js
  2. 13
      apps/solidity-compiler/src/app/compiler.ts

@ -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', {

@ -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,

Loading…
Cancel
Save