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
6b8b1259
Commit
6b8b1259
authored
Nov 14, 2014
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Run JSHint on all code using Travis CI"
parent
c966a5c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
.travis.yml
+0
-7
0 additions, 7 deletions
.travis.yml
README.md
+0
-2
0 additions, 2 deletions
README.md
httprpc.js
+4
-4
4 additions, 4 deletions
httprpc.js
main.js
+15
-11
15 additions, 11 deletions
main.js
qt.js
+1
-1
1 addition, 1 deletion
qt.js
websocket.js
+1
-1
1 addition, 1 deletion
websocket.js
with
21 additions
and
26 deletions
.travis.yml
deleted
100644 → 0
+
0
−
7
View file @
c966a5c1
language
:
node_js
node_js
:
-
"
0.11"
install
:
-
"
npm
install
jshint"
script
:
-
"
jshint
*.js"
This diff is collapsed.
Click to expand it.
README.md
+
0
−
2
View file @
6b8b1259
# Ethereum JavaScript API
[

](https://travis-ci.org/ethereum/ethereum.js)
This is the Ethereum compatible JavaScript API using
`Promise`
s
which implements the
[
Generic JSON RPC
](
https://github.com/ethereum/wiki/wiki/Generic-JSON-RPC
)
spec.
...
...
This diff is collapsed.
Click to expand it.
httprpc.js
+
4
−
4
View file @
6b8b1259
...
...
@@ -10,8 +10,8 @@
method
:
object
.
call
,
params
:
object
.
args
,
id
:
object
.
_id
};
}
};
function
formatJsonRpcMessage
(
message
)
{
var
object
=
JSON
.
parse
(
message
);
...
...
@@ -20,7 +20,7 @@
_id
:
object
.
id
,
data
:
object
.
result
};
}
}
;
HttpRpcProvider
.
prototype
.
sendRequest
=
function
(
payload
,
cb
)
{
var
data
=
formatJsonRpcObject
(
payload
);
...
...
@@ -32,7 +32,7 @@
if
(
request
.
readyState
===
4
&&
cb
)
{
cb
(
request
);
}
}
;
}
};
HttpRpcProvider
.
prototype
.
send
=
function
(
payload
)
{
...
...
This diff is collapsed.
Click to expand it.
main.js
+
15
−
11
View file @
6b8b1259
(
function
(
window
)
{
function
isPromise
(
o
)
{
return
o
instanceof
Promise
;
return
o
instanceof
Promise
}
function
flattenPromise
(
obj
)
{
...
...
@@ -40,7 +40,7 @@
}
return
Promise
.
resolve
(
obj
);
}
}
;
var
ethMethods
=
function
()
{
var
blockCall
=
function
(
args
)
{
...
...
@@ -171,7 +171,7 @@
}).
catch
(
function
(
err
)
{
console
.
error
(
err
);
});
}
;
}
}
Object
.
defineProperty
(
obj
,
property
.
name
,
proto
);
});
...
...
@@ -196,8 +196,8 @@
var
str
=
""
;
var
i
=
0
,
l
=
hex
.
length
;
for
(;
i
<
l
;
i
+=
2
)
{
var
code
=
hex
.
charCodeAt
(
i
)
;
if
(
code
==
=
0
)
{
var
code
=
hex
.
charCodeAt
(
i
)
if
(
code
==
0
)
{
break
;
}
...
...
@@ -216,18 +216,22 @@
var
hex
=
this
.
toHex
(
str
);
while
(
hex
.
length
<
pad
*
2
)
hex
+=
"
00
"
;
return
hex
;
return
hex
},
eth
:
{
prototype
:
Object
(),
watch
:
function
(
params
)
{
return
new
Filter
(
params
,
ethWatch
);
},
},
db
:
{},
db
:
{
prototype
:
Object
()
},
shh
:
{
prototype
:
Object
(),
watch
:
function
(
params
)
{
return
new
Filter
(
params
,
shhWatch
);
}
...
...
@@ -239,7 +243,7 @@
}
web3
.
_events
[
event
][
id
]
=
cb
;
return
this
;
return
this
},
off
:
function
(
event
,
id
)
{
...
...
@@ -247,7 +251,7 @@
delete
web3
.
_events
[
event
][
id
];
}
return
this
;
return
this
},
trigger
:
function
(
event
,
id
,
data
)
{
...
...
@@ -372,7 +376,7 @@
Filter
.
prototype
.
arrived
=
function
(
callback
)
{
this
.
changed
(
callback
);
}
;
}
Filter
.
prototype
.
changed
=
function
(
callback
)
{
var
self
=
this
;
...
...
@@ -412,7 +416,7 @@
if
(
data
.
_id
)
{
var
cb
=
web3
.
_callbacks
[
data
.
_id
];
if
(
cb
)
{
cb
.
call
(
this
,
data
.
data
)
;
cb
.
call
(
this
,
data
.
data
)
delete
web3
.
_callbacks
[
data
.
_id
];
}
}
...
...
This diff is collapsed.
Click to expand it.
qt.js
+
1
−
1
View file @
6b8b1259
...
...
@@ -7,7 +7,7 @@
self
.
handlers
.
forEach
(
function
(
handler
)
{
handler
.
call
(
self
,
JSON
.
parse
(
message
.
data
));
});
}
;
}
};
QtProvider
.
prototype
.
send
=
function
(
payload
)
{
...
...
This diff is collapsed.
Click to expand it.
websocket.js
+
1
−
1
View file @
6b8b1259
...
...
@@ -11,7 +11,7 @@
var
self
=
this
;
this
.
ws
.
onmessage
=
function
(
event
)
{
for
(
var
i
=
0
;
i
<
self
.
handlers
.
length
;
i
++
)
{
self
.
handlers
[
i
].
call
(
self
,
JSON
.
parse
(
event
.
data
),
event
)
;
self
.
handlers
[
i
].
call
(
self
,
JSON
.
parse
(
event
.
data
),
event
)
}
};
...
...
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