Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
af9242f4
Commit
af9242f4
authored
Jan 06, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed gulp build
parent
1954b878
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
26 deletions
+23
-26
ethereum.js
dist/ethereum.js
+3
-3
ethereum.js.map
dist/ethereum.js.map
+2
-2
ethereum.min.js
dist/ethereum.min.js
+1
-1
abi.js
lib/abi.js
+1
-1
autoprovider.js
lib/autoprovider.js
+2
-4
contract.js
lib/contract.js
+3
-4
httprpc.js
lib/httprpc.js
+2
-4
main.js
lib/main.js
+7
-3
websocket.js
lib/websocket.js
+2
-4
No files found.
dist/ethereum.js
View file @
af9242f4
This diff is collapsed.
Click to expand it.
dist/ethereum.js.map
View file @
af9242f4
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
af9242f4
This diff is collapsed.
Click to expand it.
lib/abi.js
View file @
af9242f4
...
...
@@ -46,7 +46,7 @@ var findMethodIndex = function (json, methodName) {
};
var
padLeft
=
function
(
string
,
chars
)
{
return
Array
(
chars
-
string
.
length
+
1
).
join
(
"0"
)
+
string
;
return
new
Array
(
chars
-
string
.
length
+
1
).
join
(
"0"
)
+
string
;
};
var
setupInputTypes
=
function
()
{
...
...
lib/autoprovider.js
View file @
af9242f4
...
...
@@ -27,12 +27,10 @@
* if it fails, it uses HttpRpcProvider
*/
// TODO: work out which of the following two lines it is supposed to be...
//if (process.env.NODE_ENV !== 'build') {
if
(
"build"
!==
'build'
)
{
/*
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
var
WebSocket
=
require
(
'ws'
);
// jshint ignore:line
var
web3
=
require
(
'./main.js'
);
// jshint ignore:line
*/
}
}
var
AutoProvider
=
function
(
userOptions
)
{
if
(
web3
.
haveProvider
())
{
...
...
lib/contract.js
View file @
af9242f4
...
...
@@ -20,11 +20,10 @@
* @date 2014
*/
// TODO: work out which of the following two lines it is supposed to be...
//if (process.env.NODE_ENV !== 'build') {
if
(
"build"
!==
'build'
)
{
/*
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
*/
}
}
var
abi
=
require
(
'./abi'
);
var
contract
=
function
(
address
,
desc
)
{
...
...
lib/httprpc.js
View file @
af9242f4
...
...
@@ -21,11 +21,9 @@
* @date 2014
*/
// TODO: work out which of the following two lines it is supposed to be...
//if (process.env.NODE_ENV !== 'build') {
if
(
"build"
!==
"build"
)
{
/*
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
var
XMLHttpRequest
=
require
(
'xmlhttprequest'
).
XMLHttpRequest
;
// jshint ignore:line
*/
}
}
var
HttpRpcProvider
=
function
(
host
)
{
this
.
handlers
=
[];
...
...
lib/main.js
View file @
af9242f4
...
...
@@ -272,7 +272,7 @@ var web3 = {
},
toEth
:
function
(
str
)
{
var
val
=
typeof
str
===
"string"
?
str
.
indexOf
(
'0x'
)
==
0
?
parseInt
(
str
.
substr
(
2
),
16
)
:
parseInt
(
str
)
:
str
;
var
val
=
typeof
str
===
"string"
?
str
.
indexOf
(
'0x'
)
==
=
0
?
parseInt
(
str
.
substr
(
2
),
16
)
:
parseInt
(
str
)
:
str
;
var
unit
=
0
;
var
units
=
[
'wei'
,
'Kwei'
,
'Mwei'
,
'Gwei'
,
'szabo'
,
'finney'
,
'ether'
,
'grand'
,
'Mether'
,
'Gether'
,
'Tether'
,
'Pether'
,
'Eether'
,
'Zether'
,
'Yether'
,
'Nether'
,
'Dether'
,
'Vether'
,
'Uether'
];
while
(
val
>
3000
&&
unit
<
units
.
length
-
1
)
...
...
@@ -281,10 +281,14 @@ var web3 = {
unit
++
;
}
var
s
=
val
.
toString
().
length
<
val
.
toFixed
(
2
).
length
?
val
.
toString
()
:
val
.
toFixed
(
2
);
var
replaceFunction
=
function
(
$0
,
$1
,
$2
)
{
return
$1
+
','
+
$2
;
};
while
(
true
)
{
var
o
=
s
;
s
=
s
.
replace
(
/
(\d)(\d\d\d[\.\,])
/
,
function
(
$0
,
$1
,
$2
)
{
return
$1
+
','
+
$2
;
}
);
if
(
o
==
s
)
s
=
s
.
replace
(
/
(\d)(\d\d\d[\.\,])
/
,
replaceFunction
);
if
(
o
==
=
s
)
break
;
}
return
s
+
' '
+
units
[
unit
];
...
...
lib/websocket.js
View file @
af9242f4
...
...
@@ -22,11 +22,9 @@
* @date 2014
*/
// TODO: work out which of the following two lines it is supposed to be...
//if (process.env.NODE_ENV !== 'build') {
if
(
"build"
!==
"build"
)
{
/*
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
var
WebSocket
=
require
(
'ws'
);
// jshint ignore:line
*/
}
}
var
WebSocketProvider
=
function
(
host
)
{
// onmessage handlers
...
...
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