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
89ca2698
Commit
89ca2698
authored
Feb 19, 2020
by
ioedeveloper
Committed by
yann300
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change testFunction assertion test
parent
ce9592de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
txLogger.js
src/app/ui/txLogger.js
+14
-14
No files found.
src/app/ui/txLogger.js
View file @
89ca2698
...
...
@@ -400,14 +400,14 @@ function createTable (opts) {
table
.
appendChild
(
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> status </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
status
}${
msg
}
</td>
<td class="
${
css
.
td
}
" data-
id="txLoggerTableStatus
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
status
}${
msg
}
</td>
</tr>`
)
}
var
transactionHash
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> transaction hash </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
hash
}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableHash
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
hash
}
${
copyToClipboard
(()
=>
opts
.
hash
)}
</td>
</tr>
...
...
@@ -417,7 +417,7 @@ function createTable (opts) {
var
contractAddress
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> contract address </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
contractAddress
}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableContractAddress
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
contractAddress
}
${
copyToClipboard
(()
=>
opts
.
contractAddress
)}
</td>
</tr>
...
...
@@ -427,7 +427,7 @@ function createTable (opts) {
var
from
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
${
css
.
tableTitle
}
" data-shared="key_
${
opts
.
hash
}
"> from </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
from
}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableFrom
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
from
}
${
copyToClipboard
(()
=>
opts
.
from
)}
</td>
</tr>
...
...
@@ -444,7 +444,7 @@ function createTable (opts) {
var
to
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> to </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
toHash
}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableTo
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
toHash
}
${
copyToClipboard
(()
=>
data
.
to
?
data
.
to
:
toHash
)}
</td>
</tr>
...
...
@@ -454,7 +454,7 @@ function createTable (opts) {
var
gas
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> gas </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
gas
}
gas
<td class="
${
css
.
td
}
" data-
id="txLoggerTableGas
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
gas
}
gas
${
copyToClipboard
(()
=>
opts
.
gas
)}
</td>
</tr>
...
...
@@ -469,7 +469,7 @@ function createTable (opts) {
table
.
appendChild
(
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> transaction cost </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
transactionCost
}
gas
${
callWarning
}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableTransactionCost
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
transactionCost
}
gas
${
callWarning
}
${
copyToClipboard
(()
=>
opts
.
transactionCost
)}
</td>
</tr>`
)
...
...
@@ -479,7 +479,7 @@ function createTable (opts) {
table
.
appendChild
(
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> execution cost </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
executionCost
}
gas
${
callWarning
}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableExecutionHash
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
executionCost
}
gas
${
callWarning
}
${
copyToClipboard
(()
=>
opts
.
executionCost
)}
</td>
</tr>`
)
...
...
@@ -488,7 +488,7 @@ function createTable (opts) {
var
hash
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> hash </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
.
hash
}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableHash
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
.
hash
}
${
copyToClipboard
(()
=>
opts
.
hash
)}
</td>
</tr>
...
...
@@ -498,7 +498,7 @@ function createTable (opts) {
var
input
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> input </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
helper
.
shortenHexData
(
opts
.
input
)}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableInput
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
helper
.
shortenHexData
(
opts
.
input
)}
${
copyToClipboard
(()
=>
opts
.
input
)}
</td>
</tr>
...
...
@@ -509,7 +509,7 @@ function createTable (opts) {
var
inputDecoded
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> decoded input </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
opts
[
'decoded input'
]}
<td class="
${
css
.
td
}
" data-
id="txLoggerTableDecodedInput
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
[
'decoded input'
]}
${
copyToClipboard
(()
=>
opts
[
'decoded input'
])}
</td>
</tr>`
...
...
@@ -520,7 +520,7 @@ function createTable (opts) {
var
outputDecoded
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> decoded output </td>
<td class="
${
css
.
td
}
" id="decodedoutput" data-shared="pair_
${
opts
.
hash
}
">
${
opts
[
'decoded output'
]}
<td class="
${
css
.
td
}
" id="decodedoutput" data-
id="txLoggerTableDecodedOutput
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
opts
[
'decoded output'
]}
${
copyToClipboard
(()
=>
opts
[
'decoded output'
])}
</td>
</tr>`
...
...
@@ -534,7 +534,7 @@ function createTable (opts) {
var
logs
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> logs </td>
<td class="
${
css
.
td
}
" id="logs" data-shared="pair_
${
opts
.
hash
}
">
<td class="
${
css
.
td
}
" id="logs" data-
id="txLoggerTableLogs
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
JSON
.
stringify
(
stringified
,
null
,
'
\
t'
)}
${
copyToClipboard
(()
=>
JSON
.
stringify
(
stringified
,
null
,
'
\
t'
))}
${
copyToClipboard
(()
=>
JSON
.
stringify
(
opts
.
logs
.
raw
||
'0'
))}
...
...
@@ -547,7 +547,7 @@ function createTable (opts) {
val
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
" data-shared="key_
${
opts
.
hash
}
"> value </td>
<td class="
${
css
.
td
}
" data-shared="pair_
${
opts
.
hash
}
">
${
val
}
wei
<td class="
${
css
.
td
}
" data-
id="txLoggerTableValue
${
opts
.
hash
}
" data-
shared="pair_
${
opts
.
hash
}
">
${
val
}
wei
${
copyToClipboard
(()
=>
`
${
val
}
wei`
)}
</td>
</tr>
...
...
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