Skip to content

Commit

Permalink
feat: 🎸 Output ddn-js for wallet app
Browse files Browse the repository at this point in the history
  • Loading branch information
imfly committed Jun 29, 2020
1 parent 4f3be6b commit fc4832c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions packages/node-sdk/build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// FIXME: DELETE IT
// window.DdnJS = require('./index.js');
// window.DdnJS.options.set('nethash','fl6ybowg') //EOK
// window.DdnJS.options.set('nethash','0ab796cd') // 测试网络
// window.DdnJS.options.set('nethash','1d6f46cj') //CCS testnet
const DdnJS = require('./lib/index.js')
DdnJS.options.set('nethash', '0ab796cd') // 测试网络
module.exports = DdnJS
4 changes: 3 additions & 1 deletion packages/node-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"test": "test"
},
"scripts": {
"test": "mocha test"
"test": "mocha test",
"build": "browserify build.js -o ddn.js",
"build:dev": "browserify -r ./lib -o ddn2.js"
},
"keywords": [
"ddn",
Expand Down
1 change: 0 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"lib"
],
"dependencies": {
"@ddn/crypto": "^0.2.5",
"bignumber.js": "^7.2.1",
"depd": "^2.0.0",
"ip": "^1.1.5",
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import depd from 'depd'
import assetTypes from './asset-types'
import runtimeState from './runtime-states'
// import address from './address';
import amount from './amount'
import limitCache from './limit-cache'
import system from './system'
Expand Down

0 comments on commit fc4832c

Please sign in to comment.