web3-eth-contract
Advanced tools
Comparing version 1.0.0-beta.55 to 1.0.0
{ | ||
"name": "web3-eth-contract", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.55", | ||
"version": "1.0.0", | ||
"description": "Web3 module to interact with Ethereum smart contracts.", | ||
"repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-eth-contract", | ||
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-contract", | ||
"license": "LGPL-3.0", | ||
"main": "dist/web3-eth-contract.cjs.js", | ||
"module": "dist/web3-eth-contract.esm.js", | ||
"browser": "dist/web3-eth-contract.umd.js", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"dev": "rollup -c -w", | ||
"test": "jest", | ||
"dtslint": "dtslint types --onlyTestTsNext" | ||
"engines": { | ||
"node": ">=8.0.0 <=11.15.0" | ||
}, | ||
"main": "src/index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1", | ||
"@types/bn.js": "^4.11.4", | ||
"lodash": "^4.17.11", | ||
"web3-core": "1.0.0-beta.55", | ||
"web3-core-helpers": "1.0.0-beta.55", | ||
"web3-core-method": "1.0.0-beta.55", | ||
"web3-core-subscriptions": "1.0.0-beta.55", | ||
"web3-eth-abi": "1.0.0-beta.55", | ||
"web3-eth-accounts": "1.0.0-beta.55", | ||
"web3-providers": "1.0.0-beta.55", | ||
"web3-utils": "1.0.0-beta.55" | ||
}, | ||
"devDependencies": { | ||
"definitelytyped-header-parser": "^1.0.1", | ||
"dtslint": "0.4.2" | ||
}, | ||
"files": [ | ||
"dist", | ||
"types/index.d.ts" | ||
], | ||
"gitHead": "37347fd46344f45d1c57104920bdda0779f0d51c" | ||
"underscore": "1.9.1", | ||
"web3-core": "1.0.0", | ||
"web3-core-helpers": "1.0.0", | ||
"web3-core-method": "1.0.0", | ||
"web3-core-promievent": "1.0.0", | ||
"web3-core-subscriptions": "1.0.0", | ||
"web3-eth-abi": "1.0.0", | ||
"web3-utils": "1.0.0" | ||
} | ||
} |
# web3-eth-contract | ||
This is a sub module of [web3.js][repo] | ||
This is a sub package of [web3.js][repo] | ||
This is the contract module to be used in the `web3-eth` module. | ||
This is the contract package to be used in the `web3-eth` package. | ||
Please read the [documentation][docs] for more. | ||
@@ -10,2 +10,4 @@ | ||
### Node.js | ||
```bash | ||
@@ -15,20 +17,34 @@ npm install web3-eth-contract | ||
### In the Browser | ||
Build running the following in the [web3.js][repo] repository: | ||
```bash | ||
npm run-script build-all | ||
``` | ||
Then include `dist/web3-eth-contract.js` in your html file. | ||
This will expose the `Web3EthContract` object on the window object. | ||
## Usage | ||
```js | ||
import {Contract} from 'web3-eth-contract'; | ||
// in node.js | ||
var Web3EthContract = require('web3-eth-contract'); | ||
new Contract( | ||
'http://127.0.0.1:4546', | ||
abi, | ||
address, | ||
options | ||
); | ||
// set provider for all later instances to use | ||
Web3EthContract.setProvider('ws://localhost:8546'); | ||
var contract = new Web3EthContract(jsonInterface, address); | ||
contract.methods.somFunc().send({from: ....}) | ||
.on('receipt', function(){ | ||
... | ||
}); | ||
``` | ||
## Types | ||
All the typescript typings are placed in the types folder. | ||
[docs]: http://web3js.readthedocs.io/en/1.0/ | ||
[repo]: https://github.com/ethereum/web3.js | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
8
0
2
1
49
31693
3
721
1
+ Addedunderscore@1.9.1
+ Addedweb3-core-promievent@1.0.0
+ Addedany-promise@1.3.0(transitive)
+ Addedelliptic@6.3.36.5.7(transitive)
+ Addedeth-lib@0.2.7(transitive)
+ Addedethers@4.0.0-beta.3(transitive)
+ Addedeventemitter3@3.1.2(transitive)
+ Addedrandomhex@0.1.5(transitive)
+ Addedscrypt-js@2.0.3(transitive)
+ Addedunderscore@1.9.1(transitive)
+ Addedutf8@3.0.0(transitive)
+ Addedweb3-core-helpers@1.0.0(transitive)
+ Addedweb3-core-method@1.0.0(transitive)
+ Addedweb3-core-promievent@1.0.0(transitive)
+ Addedweb3-core-subscriptions@1.0.0(transitive)
+ Addedweb3-eth-abi@1.0.0(transitive)
+ Addedweb3-eth-iban@1.0.0(transitive)
+ Addedweb3-utils@1.0.0(transitive)
- Removed@babel/runtime@^7.3.1
- Removed@types/bn.js@^4.11.4
- Removedlodash@^4.17.11
- Removedweb3-eth-accounts@1.0.0-beta.55
- Removedweb3-providers@1.0.0-beta.55
- Removed@babel/runtime@7.25.6(transitive)
- Removed@types/bn.js@4.11.6(transitive)
- Removed@types/node@22.5.4(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbrowserify-cipher@1.0.1(transitive)
- Removedbrowserify-des@1.0.2(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedbufferutil@4.0.8(transitive)
- Removedcipher-base@1.0.4(transitive)
- Removedcookiejar@2.1.4(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedd@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddes.js@1.1.0(transitive)
- Removedelliptic@6.5.4(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedeth-lib@0.2.8(transitive)
- Removedethers@4.0.49(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedeventemitter3@3.1.0(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedext@1.7.0(transitive)
- Removedhash-base@3.1.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removedms@2.0.0(transitive)
- Removednan@2.20.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-gyp-build@4.8.2(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedrequires-port@1.0.0(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedscrypt@6.0.3(transitive)
- Removedscrypt-js@2.0.4(transitive)
- Removedscrypt.js@0.3.0(transitive)
- Removedscryptsy@1.2.1(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtype@2.7.3(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedurl-parse@1.4.4(transitive)
- Removedutf-8-validate@5.0.10(transitive)
- Removedutf8@2.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@3.3.2(transitive)
- Removedweb3-core@1.0.0-beta.55(transitive)
- Removedweb3-core-helpers@1.0.0-beta.55(transitive)
- Removedweb3-core-method@1.0.0-beta.55(transitive)
- Removedweb3-core-subscriptions@1.0.0-beta.55(transitive)
- Removedweb3-eth-abi@1.0.0-beta.55(transitive)
- Removedweb3-eth-accounts@1.0.0-beta.55(transitive)
- Removedweb3-eth-iban@1.0.0-beta.55(transitive)
- Removedweb3-providers@1.0.0-beta.55(transitive)
- Removedweb3-utils@1.0.0-beta.55(transitive)
- Removedwebsocket@1.0.35(transitive)
- Removedxhr2-cookies@1.1.0(transitive)
- Removedyaeti@0.0.6(transitive)
Updatedweb3-core@1.0.0
Updatedweb3-core-helpers@1.0.0
Updatedweb3-core-method@1.0.0
Updatedweb3-eth-abi@1.0.0
Updatedweb3-utils@1.0.0