Comparing version 1.0.2 to 1.0.4
{ | ||
"name": "tronweb", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "A jssdk that encapsulates the TRON HTTP request", | ||
@@ -14,3 +14,4 @@ "main": "lib/index.js", | ||
"build": "nwb build-web-module", | ||
"clean": "nwb clean-module" | ||
"clean": "nwb clean-module", | ||
"test": "cross-env NODE_ENV=test NWB_TEST=true mocha --require babel-register test/*-test.js" | ||
}, | ||
@@ -20,2 +21,3 @@ "dependencies": { | ||
"bignumber.js": "^7.2.1", | ||
"chai": "^4.1.2", | ||
"ethers": "^3.0.26", | ||
@@ -25,5 +27,32 @@ "js-sha3": "^0.7.0" | ||
"devDependencies": { | ||
"nwb": "0.21.x" | ||
"nwb": "0.21.x", | ||
"babel-preset-flow": "6.23.0", | ||
"babel-register": "6.26.0", | ||
"cross-env": "5.2.0", | ||
"babel-cli": "6.26.0", | ||
"babel-core": "6.26.3", | ||
"babel-plugin-add-module-exports": "0.2.1", | ||
"babel-plugin-inferno": "5.1.0", | ||
"babel-plugin-istanbul": "4.1.6", | ||
"babel-plugin-lodash": "3.2.11", | ||
"babel-plugin-react-transform": "3.0.0", | ||
"babel-plugin-syntax-dynamic-import": "6.18.0", | ||
"babel-plugin-syntax-jsx": "6.18.0", | ||
"babel-plugin-transform-decorators-legacy": "1.3.5", | ||
"babel-plugin-transform-react-constant-elements": "6.23.0", | ||
"babel-plugin-transform-react-jsx": "6.24.1", | ||
"babel-plugin-transform-react-jsx-self": "6.22.0", | ||
"babel-plugin-transform-react-jsx-source": "6.22.0", | ||
"babel-plugin-transform-react-remove-prop-types": "0.4.10", | ||
"babel-plugin-transform-runtime": "6.23.0", | ||
"babel-polyfill": "6.26.0", | ||
"babel-preset-env": "1.7.0", | ||
"babel-preset-react": "6.24.1", | ||
"babel-preset-stage-0": "6.24.1", | ||
"babel-preset-stage-1": "6.24.1", | ||
"babel-preset-stage-2": "6.24.1", | ||
"babel-preset-stage-3": "6.24.1", | ||
"babel-runtime": "6.26.0" | ||
}, | ||
"author": "wujiaolong", | ||
"author": "wujiaolong&lizhengwei", | ||
"homepage": "https://tron.network", | ||
@@ -30,0 +59,0 @@ "license": "MIT", |
@@ -13,25 +13,21 @@ # TronWeb | ||
``` | ||
const TronWeb = require('tronWeb') | ||
const solidityNode = TronWeb.getSolidityNode({apiUrl:''}) | ||
const fullNode = TronWeb.getFullNode({apiUrl:''}) | ||
const address = 'TYrWfWFGwrWLwNvE4T12aQGeur9UdjQJom' | ||
let tronWeb = new TronWeb('http://52.44.75.99:8090'); | ||
tronWeb.setEventServer('http://52.44.75.99:18889'); | ||
tronWeb.defaultAccount = 'TPL66VK2gCXNCD7EJg9pgJRfqcRazjhUZY'; | ||
tronWeb.defaultPk='da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0'; | ||
// ES7 | ||
async getAccountInfo(){ | ||
const data = await solidityNode.getAccountInfo(address); | ||
console.log(data); | ||
} | ||
// or promise | ||
async getBalance(){ | ||
const res = await tronWeb.getBalance(this.account.value); | ||
this.setState({ | ||
data:res | ||
}) | ||
} | ||
getAccountInfo(){ | ||
solidityNode.getAccountInfo(address).then(res=>{ | ||
console.log(res); | ||
}) | ||
} | ||
``` | ||
# GitHub | ||
https://github.com/gitwujiaolong/tronWeb.git | ||
# docs | ||
[document](http://doc.tron.network/) | ||
[官方文档](http://doc.tron.network/) | ||
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2546
5
28
2
0
33
2
+ Addedchai@^4.1.2
+ Addedassertion-error@1.1.0(transitive)
+ Addedchai@4.5.0(transitive)
+ Addedcheck-error@1.0.3(transitive)
+ Addeddeep-eql@4.1.4(transitive)
+ Addedget-func-name@2.0.2(transitive)
+ Addedloupe@2.3.7(transitive)
+ Addedpathval@1.1.1(transitive)
+ Addedtype-detect@4.1.0(transitive)