Skip to content

Commit 24ba093

Browse files
requestFunctionContract add fn api
1 parent b6156f4 commit 24ba093

File tree

7 files changed

+408
-218
lines changed

7 files changed

+408
-218
lines changed

_API/home.jade

+3-3
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ html
240240
else
241241
input.form-control(type='hidden',value=val1.method,name='method')
242242
.input-group(style='width: 100%;')
243-
span.input-group-addon(style='width: 250px;') API secret
244-
input.form-control(type='text',value='',placeholder='Rest API secret key',name='api_secret')
245-
span.input-group-addon(style='width: 150px;') _SECRET_API_
243+
span.input-group-addon(style='width: 250px;') API key
244+
input.form-control(type='text',value='',placeholder='Rest API key',name='api_key')
245+
span.input-group-addon(style='width: 150px;') _API.key_
246246

247247
br
248248
if val1 && val1.param

app/api/wallet.js

+385-212
Large diffs are not rendered by default.

app/modules/express/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function (app,express) {
2929
var param = Object.assign({}, req.body, req.query);
3030
if (param.method) {
3131

32-
if (param.api_key === "597236bd4f0c16129a8af55f") {
32+
if (typeof param.api_key === 'string') {
3333

3434
db.users.findOne({
3535
"api.status": true,

config.sol.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"jade": "^1.11.0",
3939
"keythereum": "^1.0.1",
4040
"lodash": "^4.17.4",
41+
"md5": "^2.2.1",
4142
"mongoose": "^4.11.3",
4243
"nconf": "^0.8.4",
4344
"nodemailer": "^4.0.1",

test.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
const Web3 = require('web3');
3+
const web3 = new Web3();
4+
web3.setProvider(new web3.providers.HttpProvider('http://52.178.151.150:8545'));
5+
const Tx = require('ethereumjs-tx');
6+
const util = require('ethereumjs-util');
7+
const md5 = require('md5');
8+
9+
const _ = require('lodash');
10+
const SolidityFunction = require('web3/lib/web3/function');
11+
console.log(web3.toHex({photo1:'https://gfdshsg.gsdg/gsdfgsdgdsfgfsdg.png'}));
12+
13+
/**
14+
* Created by bogdanmedvedev on 23.07.17.
15+
*/

wallets/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**dir keystore file**

0 commit comments

Comments
 (0)