Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
7c758481
Commit
7c758481
authored
Sep 07, 2021
by
yann300
Committed by
davidzagi93@gmail.com
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor ICompilerAPI
parent
6f451bd2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
44 deletions
+0
-44
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+0
-1
app.tsx
apps/solidity-compiler/src/app/app.tsx
+0
-0
compiler.ts
apps/solidity-compiler/src/app/compiler.ts
+0
-42
ICompilerApi.ts
libs/remix-lib/src/types/ICompilerApi.ts
+0
-1
No files found.
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
7c758481
...
@@ -5,7 +5,6 @@ import { SolidityCompiler } from '@remix-ui/solidity-compiler' // eslint-disable
...
@@ -5,7 +5,6 @@ import { SolidityCompiler } from '@remix-ui/solidity-compiler' // eslint-disable
import
{
CompileTabLogic
}
from
'@remix-ui/solidity-compiler'
// eslint-disable-line
import
{
CompileTabLogic
}
from
'@remix-ui/solidity-compiler'
// eslint-disable-line
import
{
CompilerApiMixin
}
from
'@remixproject/solidity-compiler-plugin'
import
{
CompilerApiMixin
}
from
'@remixproject/solidity-compiler-plugin'
import
{
ViewPlugin
}
from
'@remixproject/engine-web'
import
{
ViewPlugin
}
from
'@remixproject/engine-web'
import
QueryParams
from
'../../lib/query-params'
import
QueryParams
from
'../../lib/query-params'
// import { ICompilerApi } from '@remix-project/remix-lib-ts'
// import { ICompilerApi } from '@remix-project/remix-lib-ts'
import
*
as
packageJson
from
'../../../../../package.json'
import
*
as
packageJson
from
'../../../../../package.json'
...
...
apps/solidity-compiler/src/app/app.tsx
View file @
7c758481
apps/solidity-compiler/src/app/compiler.ts
View file @
7c758481
...
@@ -2,10 +2,7 @@ import { PluginClient } from "@remixproject/plugin";
...
@@ -2,10 +2,7 @@ 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'
import
{
ICompilerApi
}
from
'@remix-project/remix-lib-ts'
import
{
ICompilerApi
}
from
'@remix-project/remix-lib-ts'
<<<<<<<
HEAD
import
{
CompileTabLogic
}
from
'@remix-ui/solidity-compiler'
import
{
CompileTabLogic
}
from
'@remix-ui/solidity-compiler'
=======
>>>>>>>
49
c62946c
(
better
org
of
types
)
const
profile
=
{
const
profile
=
{
name
:
'solidity'
,
name
:
'solidity'
,
...
@@ -26,7 +23,6 @@ const defaultAppParameters = {
...
@@ -26,7 +23,6 @@ const defaultAppParameters = {
includeNightlies
:
false
includeNightlies
:
false
}
}
<<<<<<<
HEAD
const
defaultCompilerParameters
=
{
const
defaultCompilerParameters
=
{
runs
:
'200'
,
runs
:
'200'
,
optimize
:
false
,
optimize
:
false
,
...
@@ -34,44 +30,6 @@ const defaultCompilerParameters = {
...
@@ -34,44 +30,6 @@ const defaultCompilerParameters = {
evmVersion
:
null
,
// compiler default
evmVersion
:
null
,
// compiler default
language
:
'Solidity'
language
:
'Solidity'
}
}
=======
export
class
CompilerClientApi
extends
CompilerApiMixin
(
PluginClient
)
implements
ICompilerApi
{
// interface matches libs/remix-ui/solidity-compiler/types/index.ts : ICompilerApi
currentFile
:
string
contractMap
:
{
file
:
string
}
|
Record
<
string
,
any
>
compileErrors
:
any
compileTabLogic
:
any
contractsDetails
:
Record
<
string
,
any
>
configurationSettings
:
ConfigurationSettings
setHardHatCompilation
:
(
value
:
boolean
)
=>
void
getParameters
:
()
=>
ConfigurationSettings
setParameters
:
(
params
:
Partial
<
ConfigurationSettings
>
)
=>
void
setCompilerConfig
:
(
settings
:
ConfigurationSettings
)
=>
void
getConfiguration
:
(
value
:
string
)
=>
string
setConfiguration
:
(
name
:
string
,
value
:
string
)
=>
void
getFileManagerMode
:
()
=>
string
getCompilationResult
:
()
=>
any
onCurrentFileChanged
:
(
fileName
:
string
)
=>
void
onResetResults
:
()
=>
void
onSetWorkspace
:
(
isLocalhost
:
boolean
)
=>
void
onNoFileSelected
:
()
=>
void
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
>
open
:
(
file
:
string
)
=>
void
>>>>>>>
49
c62946c
(
better
org
of
types
)
export
class
CompilerClientApi
extends
CompilerApiMixin
(
PluginClient
)
implements
ICompilerApi
{
export
class
CompilerClientApi
extends
CompilerApiMixin
(
PluginClient
)
implements
ICompilerApi
{
constructor
()
{
constructor
()
{
super
()
super
()
...
...
libs/remix-lib/src/types/ICompilerApi.ts
View file @
7c758481
...
@@ -28,7 +28,6 @@ export interface ICompilerApi {
...
@@ -28,7 +28,6 @@ export interface ICompilerApi {
onContentChanged
:
()
=>
void
onContentChanged
:
()
=>
void
resolveContentAndSave
:
(
url
:
string
)
=>
Promise
<
string
>
resolveContentAndSave
:
(
url
:
string
)
=>
Promise
<
string
>
fileExists
:
(
file
:
string
)
=>
Promise
<
boolean
>
fileExists
:
(
file
:
string
)
=>
Promise
<
boolean
>
writeFile
:
(
file
:
string
,
content
:
string
)
=>
Promise
<
void
>
writeFile
:
(
file
:
string
,
content
:
string
)
=>
Promise
<
void
>
readFile
:
(
file
:
string
)
=>
Promise
<
string
>
readFile
:
(
file
:
string
)
=>
Promise
<
string
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment