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
a8dde171
Commit
a8dde171
authored
Jan 08, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for node.js
parent
5208bb32
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
61 additions
and
66 deletions
+61
-66
ethereum.js
dist/ethereum.js
+51
-51
ethereum.js.map
dist/ethereum.js.map
+6
-6
ethereum.min.js
dist/ethereum.min.js
+1
-1
index.js
index.js
+1
-1
index_qt.js
index_qt.js
+0
-5
autoprovider.js
lib/autoprovider.js
+1
-1
contract.js
lib/contract.js
+1
-1
web3.js
lib/web3.js
+0
-0
No files found.
dist/ethereum.js
View file @
a8dde171
...
...
@@ -298,7 +298,7 @@ module.exports = {
// TODO: is these line is supposed to be here?
if
(
"build"
!==
'build'
)
{
/*
var WebSocket = require('ws'); // jshint ignore:line
var web3 = require('./
main.js
'); // jshint ignore:line
var web3 = require('./
web3
'); // jshint ignore:line
*/
}
var
AutoProvider
=
function
(
userOptions
)
{
...
...
@@ -394,7 +394,7 @@ module.exports = AutoProvider;
// TODO: is these line is supposed to be here?
if
(
"build"
!==
'build'
)
{
/*
var web3 = require('./web3');
// jshint ignore:line
var web3 = require('./web3');
*/
}
var
abi
=
require
(
'./abi'
);
...
...
@@ -549,6 +549,53 @@ module.exports = HttpRpcProvider;
You should have received a copy of the GNU Lesser General Public License
along with ethereum.js. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file qt.js
* @authors:
* Jeffrey Wilcke <jeff@ethdev.com>
* Marek Kotewicz <marek@ethdev.com>
* @date 2014
*/
var
QtProvider
=
function
()
{
this
.
handlers
=
[];
var
self
=
this
;
navigator
.
qt
.
onmessage
=
function
(
message
)
{
self
.
handlers
.
forEach
(
function
(
handler
)
{
handler
.
call
(
self
,
JSON
.
parse
(
message
.
data
));
});
};
};
QtProvider
.
prototype
.
send
=
function
(
payload
)
{
navigator
.
qt
.
postMessage
(
JSON
.
stringify
(
payload
));
};
Object
.
defineProperty
(
QtProvider
.
prototype
,
"onmessage"
,
{
set
:
function
(
handler
)
{
this
.
handlers
.
push
(
handler
);
}
});
module
.
exports
=
QtProvider
;
},{}],
6
:[
function
(
require
,
module
,
exports
){
/*
This file is part of ethereum.js.
ethereum.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethereum.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with ethereum.js. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file main.js
* @authors:
* Jeffrey Wilcke <jeff@ethdev.com>
...
...
@@ -1042,53 +1089,6 @@ function messageHandler(data) {
module
.
exports
=
web3
;
},{}],
6
:[
function
(
require
,
module
,
exports
){
/*
This file is part of ethereum.js.
ethereum.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethereum.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with ethereum.js. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file qt.js
* @authors:
* Jeffrey Wilcke <jeff@ethdev.com>
* Marek Kotewicz <marek@ethdev.com>
* @date 2014
*/
var
QtProvider
=
function
()
{
this
.
handlers
=
[];
var
self
=
this
;
navigator
.
qt
.
onmessage
=
function
(
message
)
{
self
.
handlers
.
forEach
(
function
(
handler
)
{
handler
.
call
(
self
,
JSON
.
parse
(
message
.
data
));
});
};
};
QtProvider
.
prototype
.
send
=
function
(
payload
)
{
navigator
.
qt
.
postMessage
(
JSON
.
stringify
(
payload
));
};
Object
.
defineProperty
(
QtProvider
.
prototype
,
"onmessage"
,
{
set
:
function
(
handler
)
{
this
.
handlers
.
push
(
handler
);
}
});
module
.
exports
=
QtProvider
;
},{}],
7
:[
function
(
require
,
module
,
exports
){
/*
This file is part of ethereum.js.
...
...
@@ -1169,7 +1169,7 @@ Object.defineProperty(WebSocketProvider.prototype, "onmessage", {
module
.
exports
=
WebSocketProvider
;
},{}],
"web3"
:[
function
(
require
,
module
,
exports
){
var
web3
=
require
(
'./lib/
main
'
);
var
web3
=
require
(
'./lib/
web3
'
);
web3
.
providers
.
WebSocketProvider
=
require
(
'./lib/websocket'
);
web3
.
providers
.
HttpRpcProvider
=
require
(
'./lib/httprpc'
);
web3
.
providers
.
QtProvider
=
require
(
'./lib/qt'
);
...
...
@@ -1178,7 +1178,7 @@ web3.contract = require('./lib/contract');
module
.
exports
=
web3
;
},{
"./lib/autoprovider"
:
2
,
"./lib/contract"
:
3
,
"./lib/httprpc"
:
4
,
"./lib/
main"
:
5
,
"./lib/qt
"
:
6
,
"./lib/websocket"
:
7
}]},{},[
"web3"
])
},{
"./lib/autoprovider"
:
2
,
"./lib/contract"
:
3
,
"./lib/httprpc"
:
4
,
"./lib/
qt"
:
5
,
"./lib/web3
"
:
6
,
"./lib/websocket"
:
7
}]},{},[
"web3"
])
//# sourceMappingURL=ethereum.js.map
\ No newline at end of file
dist/ethereum.js.map
View file @
a8dde171
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
a8dde171
This diff is collapsed.
Click to expand it.
index.js
View file @
a8dde171
var
web3
=
require
(
'./lib/
main
'
);
var
web3
=
require
(
'./lib/
web3
'
);
web3
.
providers
.
WebSocketProvider
=
require
(
'./lib/websocket'
);
web3
.
providers
.
HttpRpcProvider
=
require
(
'./lib/httprpc'
);
web3
.
providers
.
QtProvider
=
require
(
'./lib/qt'
);
...
...
index_qt.js
deleted
100644 → 0
View file @
5208bb32
var
web3
=
require
(
'./lib/main'
);
web3
.
providers
.
QtProvider
=
require
(
'./lib/qt'
);
web3
.
contract
=
require
(
'./lib/contract'
);
module
.
exports
=
web3
;
lib/autoprovider.js
View file @
a8dde171
...
...
@@ -30,7 +30,7 @@
// TODO: is these line is supposed to be here?
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
var
WebSocket
=
require
(
'ws'
);
// jshint ignore:line
var
web3
=
require
(
'./
main.js
'
);
// jshint ignore:line
var
web3
=
require
(
'./
web3
'
);
// jshint ignore:line
}
var
AutoProvider
=
function
(
userOptions
)
{
...
...
lib/contract.js
View file @
a8dde171
...
...
@@ -22,7 +22,7 @@
// TODO: is these line is supposed to be here?
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
var
web3
=
require
(
'./web3'
);
}
var
abi
=
require
(
'./abi'
);
...
...
lib/
main
.js
→
lib/
web3
.js
View file @
a8dde171
File moved
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