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
0e67fcd3
Commit
0e67fcd3
authored
Nov 13, 2014
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contract object
parent
d99fea2d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
14 deletions
+21
-14
ethereum.js
dist/ethereum.js
+3
-3
ethereum.js.map
dist/ethereum.js.map
+3
-3
ethereum.min.js
dist/ethereum.min.js
+1
-1
index.js
index.js
+1
-1
abi.js
lib/abi.js
+12
-3
main.js
lib/main.js
+1
-3
No files found.
dist/ethereum.js
View file @
0e67fcd3
This diff is collapsed.
Click to expand it.
dist/ethereum.js.map
View file @
0e67fcd3
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
0e67fcd3
This diff is collapsed.
Click to expand it.
index.js
View file @
0e67fcd3
...
@@ -3,6 +3,6 @@ web3.providers.WebSocketProvider = require('./lib/websocket');
...
@@ -3,6 +3,6 @@ web3.providers.WebSocketProvider = require('./lib/websocket');
web3
.
providers
.
HttpRpcProvider
=
require
(
'./lib/httprpc'
);
web3
.
providers
.
HttpRpcProvider
=
require
(
'./lib/httprpc'
);
web3
.
providers
.
QtProvider
=
require
(
'./lib/qt'
);
web3
.
providers
.
QtProvider
=
require
(
'./lib/qt'
);
web3
.
providers
.
AutoProvider
=
require
(
'./lib/autoprovider'
);
web3
.
providers
.
AutoProvider
=
require
(
'./lib/autoprovider'
);
web3
.
abi
=
require
(
'./lib/abi'
);
web3
.
contract
=
require
(
'./lib/abi'
);
module
.
exports
=
web3
;
module
.
exports
=
web3
;
lib/abi.js
View file @
0e67fcd3
...
@@ -148,8 +148,17 @@ var fromAbiOutput = function (json, methodName, output) {
...
@@ -148,8 +148,17 @@ var fromAbiOutput = function (json, methodName, output) {
return
result
;
return
result
;
};
};
module
.
exports
=
{
var
load
=
function
(
json
)
{
toAbiInput
:
toAbiInput
,
var
contract
=
{};
fromAbiOutput
:
fromAbiOutput
json
.
forEach
(
function
(
method
)
{
contract
[
method
.
name
]
=
function
()
{
var
params
=
Array
.
prototype
.
slice
.
call
(
arguments
);
return
toAbiInput
(
json
,
method
.
name
,
params
);
};
});
return
contract
;
};
};
module
.
exports
=
load
;
lib/main.js
View file @
0e67fcd3
...
@@ -86,9 +86,7 @@ var ethMethods = function () {
...
@@ -86,9 +86,7 @@ var ethMethods = function () {
{
name
:
'uncle'
,
call
:
uncleCall
},
{
name
:
'uncle'
,
call
:
uncleCall
},
{
name
:
'compilers'
,
call
:
'eth_compilers'
},
{
name
:
'compilers'
,
call
:
'eth_compilers'
},
{
name
:
'lll'
,
call
:
'eth_lll'
},
{
name
:
'lll'
,
call
:
'eth_lll'
},
{
name
:
'solidity'
,
call
:
'eth_solidity'
},
{
name
:
'solidity'
,
call
:
'eth_solidity'
}
{
name
:
'contractCreate'
,
call
:
'eth_contractCreate'
},
{
name
:
'contractCall'
,
call
:
'eth_contractCall'
}
];
];
return
methods
;
return
methods
;
};
};
...
...
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