pull/1342/head
yann300 3 years ago committed by davidzagi93@gmail.com
parent a9eeebcbaf
commit 26c653ca12
  1. 6
      apps/remix-ide/src/app/tabs/compile-tab.js
  2. 2
      libs/remix-lib/src/index.ts
  3. 10
      libs/remix-lib/src/types/ICompilerApi.ts
  4. 2
      libs/remix-ui/solidity-compiler/src/index.ts
  5. 2
      libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts
  6. 2
      libs/remix-ui/solidity-compiler/src/lib/types/index.ts

@ -4,15 +4,11 @@ import ReactDOM from 'react-dom'
import { SolidityCompiler, CompileTab as CompileTabLogic, parseContracts } from '@remix-ui/solidity-compiler' // eslint-disable-line
import { CompilerApiMixin } from '@remixproject/solidity-compiler-plugin'
import { ViewPlugin } from '@remixproject/engine-web'
import { ICompilerApi } from '@remix-project/remix-lib-ts'
// import { ICompilerApi } from '@remix-project/remix-lib-ts'
import * as packageJson from '../../../../../package.json'
const EventEmitter = require('events')
const $ = require('jquery')
const yo = require('yo-yo')
var QueryParams = require('../../lib/query-params')
const addTooltip = require('../ui/tooltip')
const globalRegistry = require('../../global/registry')
const css = require('./styles/compile-tab-styles')

@ -18,7 +18,7 @@ import * as typeConversion from './execution/typeConversion'
import { TxRunnerVM } from './execution/txRunnerVM'
import { TxRunnerWeb3 } from './execution/txRunnerWeb3'
import * as txResultHelper from './helpers/txResultHelper'
export { ICompilerApi, ConfigurationSettings} from './types/ICompilerApi'
export { ICompilerApi, ConfigurationSettings } from './types/ICompilerApi'
const helpers = {
ui: uiHelper,

@ -7,7 +7,7 @@ export interface ICompilerApi {
compileTabLogic: any
contractsDetails: Record<string, any>
configurationSettings: ConfigurationSettings
setHardHatCompilation: (value: boolean) => void
getParameters: () => any
setParameters: (params) => void
@ -15,9 +15,9 @@ export interface ICompilerApi {
setConfiguration: (name: string, value: string) => void
getFileManagerMode: () => string
setCompilerConfig: (settings: any) => void
getCompilationResult: () => any
onCurrentFileChanged: (fileName: string) => void
onResetResults: () => void,
onSetWorkspace: (workspace: any) => void
@ -25,7 +25,7 @@ export interface ICompilerApi {
onCompilationFinished: (contractsDetails: any, contractMap: any) => void
onSessionSwitched: () => void
onContentChanged: () => void
fileExists: (file: string) => Promise<boolean>
writeFile: (file: string, content: string) => Promise<void>
readFile: (file: string) => Promise<string>
@ -38,4 +38,4 @@ export interface ConfigurationSettings {
language: string,
optimize: boolean,
runs: string
}
}

@ -1,2 +1,2 @@
export * from './lib/solidity-compiler'
export * from './lib/logic'
export * from './lib/logic'

@ -42,7 +42,7 @@ export const listenToEvents = (compileTabLogic, api) => (dispatch: React.Dispatc
api.onContentChanged = () => {
dispatch(setEditorMode('contentChanged'))
}
compileTabLogic.compiler.event.register('loadingCompiler', () => {
dispatch(setCompilerMode('loadingCompiler'))
})

@ -22,4 +22,4 @@ export interface ContractSelectionProps {
} | Record<string, any>,
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void,
contractsDetails: Record<string, any>
}
}

Loading…
Cancel
Save