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
515e49e4
Commit
515e49e4
authored
Jan 03, 2018
by
ninabreznik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply basic styling
parent
0c7e1844
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
txRunner.js
src/app/execution/txRunner.js
+14
-7
No files found.
src/app/execution/txRunner.js
View file @
515e49e4
...
@@ -4,8 +4,19 @@ var EthJSBlock = require('ethereumjs-block')
...
@@ -4,8 +4,19 @@ var EthJSBlock = require('ethereumjs-block')
var
ethJSUtil
=
require
(
'ethereumjs-util'
)
var
ethJSUtil
=
require
(
'ethereumjs-util'
)
var
BN
=
ethJSUtil
.
BN
var
BN
=
ethJSUtil
.
BN
var
executionContext
=
require
(
'../../execution-context'
)
var
executionContext
=
require
(
'../../execution-context'
)
var
yo
=
require
(
'yo-yo'
)
var
modalDialog
=
require
(
'../ui/modaldialog'
)
var
modalDialog
=
require
(
'../ui/modaldialog'
)
var
helper
=
require
(
'../../lib/helper'
)
var
yo
=
require
(
'yo-yo'
)
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
styleGuide
var
styles
=
styleGuide
()
var
css
=
csjs
`
.txInfoBox {
${
styles
.
rightPanel
.
compileTab
.
box_CompileContainer
}
; // add askToConfirmTXContainer to Remix and then replace this styling
}
`
function
TxRunner
(
vmaccounts
,
opts
)
{
function
TxRunner
(
vmaccounts
,
opts
)
{
this
.
personalMode
=
opts
.
personalMode
this
.
personalMode
=
opts
.
personalMode
...
@@ -174,24 +185,20 @@ function run (self, tx, stamp, callback) {
...
@@ -174,24 +185,20 @@ function run (self, tx, stamp, callback) {
}
}
}
}
function
remixdDialog
(
tx
)
{
function
remixdDialog
(
tx
)
{
return
yo
`
return
yo
`
<div>
<div>
<div>You are trying to execute transaction on the main network. Please, click confirm to continue!</div>
<div>You are trying to execute transaction on the main network. Please, click confirm to continue!</div>
<div>
<div
class=
${
css
.
txInfoBox
}
>
<div>from:
${
tx
.
from
}
</div>
<div>from:
${
tx
.
from
}
</div>
<div>to:
${
tx
.
from
}
</div>
<div>to:
${
tx
.
from
}
</div>
<div>tx value:
${
tx
.
value
}
</div>
<div>tx value:
${
tx
.
value
}
</div>
<div>gas limit:
${
tx
.
gasLimit
}
</div>
<div>gas limit:
${
tx
.
gasLimit
}
</div>
<div>gas price:
${
tx
.
gasEstimation
}
</div>
<div>gas price:
${
tx
.
gasEstimation
}
</div>
<div>data:
${
tx
.
data
}
</div>
<div>data:
${
helper
.
shortenHexData
(
tx
.
data
)
}
</div>
</div>
</div>
</div>
</div>
`
`
}
}
module
.
exports
=
TxRunner
module
.
exports
=
TxRunner
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