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
234c362a
Commit
234c362a
authored
May 11, 2021
by
aniket-engg
Committed by
Aniket
May 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile using hardhat
parent
d79bdab5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
5 deletions
+12
-5
app.js
apps/remix-ide/src/app.js
+2
-1
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+5
-0
hardhat-handle.js
apps/remix-ide/src/app/files/hardhat-handle.js
+1
-1
remixd-handle.js
apps/remix-ide/src/app/files/remixd-handle.js
+1
-1
file-panel.js
apps/remix-ide/src/app/panels/file-panel.js
+2
-0
compileTab.js
apps/remix-ide/src/app/tabs/compileTab/compileTab.js
+1
-1
remixdClient.ts
libs/remixd/src/services/remixdClient.ts
+0
-1
No files found.
apps/remix-ide/src/app.js
View file @
234c362a
...
...
@@ -436,7 +436,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
analysis
,
test
,
filePanel
.
remixdHandle
,
filePanel
.
gitHandle
filePanel
.
gitHandle
,
filePanel
.
hardhatHandle
])
if
(
isElectron
())
{
...
...
apps/remix-ide/src/app/files/fileManager.js
View file @
234c362a
...
...
@@ -57,6 +57,11 @@ class FileManager extends Plugin {
this
.
mode
=
mode
}
async
compileWithHardhat
(
cmd
)
{
console
.
log
(
'Inside compileWithHardhat, calling hardhat compile using appManager'
)
return
await
this
.
appManager
.
call
(
'hardhat'
,
'compile'
,
cmd
)
}
limitPluginScope
(
path
)
{
return
path
.
replace
(
/^
\/
browser
\/
/
,
''
).
replace
(
/^browser
\/
/
,
''
)
// forbids plugin to access the root filesystem
}
...
...
apps/remix-ide/src/app/files/hardhat-handle.js
View file @
234c362a
...
...
@@ -11,7 +11,7 @@ const profile = {
version
:
packageJson
.
version
}
export
class
h
ardhatHandle
extends
WebsocketPlugin
{
export
class
H
ardhatHandle
extends
WebsocketPlugin
{
constructor
()
{
super
(
profile
)
}
...
...
apps/remix-ide/src/app/files/remixd-handle.js
View file @
234c362a
...
...
@@ -81,7 +81,7 @@ export class RemixdHandle extends WebsocketPlugin {
}
},
3000
)
this
.
locahostProvider
.
init
(()
=>
{})
// this.call('manager', 'activatePlugin', 'gi
t')
this
.
call
(
'manager'
,
'activatePlugin'
,
'hardha
t'
)
}
}
if
(
this
.
locahostProvider
.
isConnected
())
{
...
...
apps/remix-ide/src/app/panels/file-panel.js
View file @
234c362a
...
...
@@ -9,6 +9,7 @@ import { checkSpecialChars, checkSlash } from '../../lib/helper'
var
EventManager
=
require
(
'../../lib/events'
)
var
{
RemixdHandle
}
=
require
(
'../files/remixd-handle.js'
)
var
{
GitHandle
}
=
require
(
'../files/git-handle.js'
)
var
{
HardhatHandle
}
=
require
(
'../files/hardhat-handle.js'
)
var
globalRegistry
=
require
(
'../../global/registry'
)
var
examples
=
require
(
'../editor/examples'
)
var
GistHandler
=
require
(
'../../lib/gist-handler'
)
...
...
@@ -60,6 +61,7 @@ module.exports = class Filepanel extends ViewPlugin {
this
.
remixdHandle
=
new
RemixdHandle
(
this
.
_deps
.
fileProviders
.
localhost
,
appManager
)
this
.
gitHandle
=
new
GitHandle
()
this
.
hardhatHandle
=
new
HardhatHandle
()
this
.
registeredMenuItems
=
[]
this
.
request
=
{}
this
.
workspaces
=
[]
...
...
apps/remix-ide/src/app/tabs/compileTab/compileTab.js
View file @
234c362a
...
...
@@ -83,7 +83,7 @@ class CompileTab {
console
.
log
(
'mode is - '
,
this
.
fileManager
.
mode
)
if
(
this
.
fileManager
.
mode
===
'localhost'
)
{
console
.
log
(
'calling compilehardhat'
)
// this.fileProvider.compileWithHardhat(
).then(console.log)
this
.
fileManager
.
compileWithHardhat
(
'npx hardhat compile'
).
then
(
console
.
log
)
}
this
.
fileManager
.
saveCurrentFile
()
this
.
miscApi
.
clearAnnotations
()
...
...
libs/remixd/src/services/remixdClient.ts
View file @
234c362a
...
...
@@ -5,7 +5,6 @@ import * as utils from '../utils'
import
*
as
chokidar
from
'chokidar'
import
*
as
fs
from
'fs-extra'
import
*
as
isbinaryfile
from
'isbinaryfile'
const
hre
=
require
(
"hardhat"
);
export
class
RemixdClient
extends
PluginClient
{
methods
:
Array
<
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