good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
91824af4
Commit
91824af4
authored
May 5, 2014
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
Changed getkey and secrettoaddress
parent
dd45197b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ethereal/assets/ethereum.js
+4
-1
4 additions, 1 deletion
ethereal/assets/ethereum.js
ethereal/assets/qml/webapp.qml
+7
-8
7 additions, 8 deletions
ethereal/assets/qml/webapp.qml
ethereal/assets/samplecoin/samplecoin.html
+9
-7
9 additions, 7 deletions
ethereal/assets/samplecoin/samplecoin.html
with
20 additions
and
16 deletions
ethereal/assets/ethereum.js
+
4
−
1
View file @
91824af4
...
@@ -36,11 +36,14 @@ window.eth = {
...
@@ -36,11 +36,14 @@ window.eth = {
postData
({
call
:
"
getKey
"
},
cb
);
postData
({
call
:
"
getKey
"
},
cb
);
},
},
getBalanceAt
:
function
(
address
,
cb
)
{
getBalanceAt
:
function
(
address
,
cb
)
{
postData
({
call
:
"
getBalance
"
,
args
:
[
address
]},
cb
);
postData
({
call
:
"
getBalance
"
,
args
:
[
address
]},
cb
);
},
},
getSecretToAddress
:
function
(
sec
,
cb
)
{
postData
({
call
:
"
getSecretToAddress
"
,
args
:
[
sec
]},
cb
);
},
watch
:
function
(
address
,
storageAddrOrCb
,
cb
)
{
watch
:
function
(
address
,
storageAddrOrCb
,
cb
)
{
var
ev
;
var
ev
;
if
(
cb
===
undefined
)
{
if
(
cb
===
undefined
)
{
...
...
This diff is collapsed.
Click to expand it.
ethereal/assets/qml/webapp.qml
+
7
−
8
View file @
91824af4
...
@@ -81,8 +81,9 @@ ApplicationWindow {
...
@@ -81,8 +81,9 @@ ApplicationWindow {
break
break
case
"
getKey
"
:
case
"
getKey
"
:
var
keys
=
eth
.
getKey
()
var
key
=
eth
.
getKey
().
privateKey
;
postData
(
data
.
_seed
,
keys
)
postData
(
data
.
_seed
,
key
)
break
break
case
"
watch
"
:
case
"
watch
"
:
require
(
1
)
require
(
1
)
...
@@ -99,14 +100,13 @@ ApplicationWindow {
...
@@ -99,14 +100,13 @@ ApplicationWindow {
}
}
}
}
break
;
break
;
case
"
getSecretToAddress
"
:
require
(
1
)
postData
(
data
.
_seed
,
eth
.
secretToAddress
(
data
.
args
[
0
]))
break
;
case
"
debug
"
:
case
"
debug
"
:
console
.
log
(
data
.
args
[
0
]);
console
.
log
(
data
.
args
[
0
]);
break
;
break
;
case
"
test
"
:
console
.
log
(
"
in
"
)
webview
.
experimental
.
evaluateJavaScript
(
"
hello()
"
)
console
.
log
(
"
out
"
)
break
;
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
data
.
call
+
"
:
"
+
e
)
console
.
log
(
data
.
call
+
"
:
"
+
e
)
...
@@ -134,7 +134,6 @@ ApplicationWindow {
...
@@ -134,7 +134,6 @@ ApplicationWindow {
postEvent
(
"
object:
"
+
stateObject
.
address
(),
stateObject
)
postEvent
(
"
object:
"
+
stateObject
.
address
(),
stateObject
)
}
}
function
onStorageChangeCb
(
storageObject
)
{
function
onStorageChangeCb
(
storageObject
)
{
console
.
log
(
"
storage object cb
"
,
storageObject
)
var
ev
=
[
"
storage
"
,
storageObject
.
stateAddress
,
storageObject
.
address
].
join
(
"
:
"
);
var
ev
=
[
"
storage
"
,
storageObject
.
stateAddress
,
storageObject
.
address
].
join
(
"
:
"
);
postEvent
(
ev
,
[
storageObject
.
address
,
storageObject
.
value
])
postEvent
(
ev
,
[
storageObject
.
address
,
storageObject
.
value
])
}
}
...
...
This diff is collapsed.
Click to expand it.
ethereal/assets/samplecoin/samplecoin.html
+
9
−
7
View file @
91824af4
...
@@ -26,17 +26,19 @@ function createTransaction() {
...
@@ -26,17 +26,19 @@ function createTransaction() {
function
init
()
{
function
init
()
{
eth
.
set
({
width
:
500
});
eth
.
set
({
width
:
500
});
eth
.
getKey
(
function
(
keyPair
)
{
eth
.
getKey
(
function
(
sec
)
{
mAddr
=
keyPair
.
privateKey
;
eth
.
getSecretToAddress
(
sec
,
function
(
addr
)
{
mAddr
=
addr
;
eth
.
getStorageAt
(
jefcoinAddr
,
keyPair
.
addr
ess
,
function
(
storage
)
{
eth
.
getStorageAt
(
jefcoinAddr
,
addr
,
function
(
storage
)
{
document
.
querySelector
(
"
#current-amount
"
).
innerHTML
=
storage
;
document
.
querySelector
(
"
#current-amount
"
).
innerHTML
=
storage
;
});
});
eth
.
watch
(
jefcoinAddr
,
keyPair
.
addr
ess
,
function
(
addr
,
value
)
{
eth
.
watch
(
jefcoinAddr
,
addr
,
function
(
addr
,
value
)
{
document
.
querySelector
(
"
#current-amount
"
).
innerHTML
=
value
document
.
querySelector
(
"
#current-amount
"
).
innerHTML
=
value
});
});
});
});
});
}
}
</script>
</script>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment