web3-eth-abi
Advanced tools
Comparing version 2.0.0-alpha.1 to 3.0.0-rc.0
{ | ||
"name": "web3-eth-abi", | ||
"namespace": "ethereum", | ||
"version": "2.0.0-alpha.1", | ||
"version": "3.0.0-rc.0", | ||
"description": "Web3 module encode and decode EVM in/output.", | ||
"repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-eth-abi", | ||
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-abi", | ||
"license": "LGPL-3.0", | ||
@@ -11,27 +10,18 @@ "engines": { | ||
}, | ||
"main": "dist/web3-eth-abi.cjs.js", | ||
"module": "dist/web3-eth-abi.esm.js", | ||
"browser": "dist/web3-eth-abi.umd.js", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"dev": "rollup -c -w", | ||
"test": "jest", | ||
"dtslint": "dtslint types --onlyTestTsNext" | ||
"compile": "tsc -b tsconfig.json", | ||
"dtslint": "dtslint --localTs ../../node_modules/typescript/lib types" | ||
}, | ||
"types": "types/index.d.ts", | ||
"main": "lib/index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1", | ||
"ethers": "^4.0.27", | ||
"lodash": "^4.17.11", | ||
"web3-utils": "2.0.0-alpha.1" | ||
"@ethersproject/abi": "5.0.7", | ||
"underscore": "1.9.1", | ||
"web3-utils": "3.0.0-rc.0" | ||
}, | ||
"devDependencies": { | ||
"definitelytyped-header-parser": "^1.0.1", | ||
"dtslint": "0.4.2" | ||
"dtslint": "^3.4.1", | ||
"typescript": "^3.9.5" | ||
}, | ||
"files": [ | ||
"dist", | ||
"types/index.d.ts" | ||
], | ||
"gitHead": "cb266cc298150f4eb1c8cdac4f41551dd8819a81" | ||
"gitHead": "4c88fbc94d1348dfa412ebdefa1d34e50f509977" | ||
} |
# web3-eth-abi | ||
This is a sub module of [web3.js][repo] | ||
[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url] | ||
This is the ABI module will be used in the `web3-eth` package. | ||
This is a sub-package of [web3.js][repo]. | ||
This is the abi package used in the `web3-eth` package. | ||
Please read the [documentation][docs] for more. | ||
@@ -10,2 +13,4 @@ | ||
### Node.js | ||
```bash | ||
@@ -18,12 +23,19 @@ npm install web3-eth-abi | ||
```js | ||
import {AbiCoder} from 'web3-eth-abi'; | ||
const Web3EthAbi = require('web3-eth-abi'); | ||
new AbiCoder(); | ||
Web3EthAbi.encodeFunctionSignature('myMethod(uint256,string)'); | ||
> '0x24ee0097' | ||
``` | ||
## Types | ||
## Types | ||
All the typescript typings are placed in the types folder. | ||
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 | ||
[npm-image]: https://img.shields.io/npm/v/web3-eth-abi.svg | ||
[npm-url]: https://npmjs.org/package/web3-eth-abi | ||
[deps-image]: https://david-dm.org/ethereum/web3.js/1.x/status.svg?path=packages/web3-eth-abi | ||
[deps-url]: https://david-dm.org/ethereum/web3.js/1.x?path=packages/web3-eth-abi | ||
[deps-dev-image]: https://david-dm.org/ethereum/web3.js/1.x/dev-status.svg?path=packages/web3-eth-abi | ||
[deps-dev-url]: https://david-dm.org/ethereum/web3.js/1.x?type=dev&path=packages/web3-eth-abi |
@@ -20,3 +20,3 @@ /* | ||
import {AbiInput, AbiItem} from 'web3-utils'; | ||
import { AbiInput, AbiItem } from 'web3-utils'; | ||
@@ -28,13 +28,17 @@ export class AbiCoder { | ||
encodeParameter(type: string | {}, parameter: any): string; | ||
encodeParameter(type: any, parameter: any): string; | ||
encodeParameters(types: Array<string | {}>, paramaters: any[]): string; | ||
encodeParameters(types: any[], paramaters: any[]): string; | ||
encodeFunctionCall(abiItem: AbiItem, params: string[]): string; | ||
decodeParameter(type: string | {}, hex: string): {[key: string]: any;}; | ||
decodeParameter(type: any, hex: string): { [key: string]: any }; | ||
decodeParameters(types: Array<string | {}>, hex: string): {[key: string]: any;}; | ||
decodeParameters(types: any[], hex: string): { [key: string]: any }; | ||
decodeLog(inputs: AbiInput[], hex: string, topics: string[]): {[key: string]: string;}; | ||
decodeLog( | ||
inputs: AbiInput[], | ||
hex: string, | ||
topics: string[] | ||
): { [key: string]: string }; | ||
} |
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
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
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
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
48990
3
10
1519
40
1
+ Added@ethersproject/abi@5.0.7
+ Addedunderscore@1.9.1
+ Added@ethersproject/abi@5.0.7(transitive)
+ Added@ethersproject/abstract-provider@5.7.0(transitive)
+ Added@ethersproject/abstract-signer@5.7.0(transitive)
+ Added@ethersproject/address@5.7.0(transitive)
+ Added@ethersproject/base64@5.7.0(transitive)
+ Added@ethersproject/bignumber@5.7.0(transitive)
+ Added@ethersproject/bytes@5.7.0(transitive)
+ Added@ethersproject/constants@5.7.0(transitive)
+ Added@ethersproject/hash@5.7.0(transitive)
+ Added@ethersproject/keccak256@5.7.0(transitive)
+ Added@ethersproject/logger@5.7.0(transitive)
+ Added@ethersproject/networks@5.7.1(transitive)
+ Added@ethersproject/properties@5.7.0(transitive)
+ Added@ethersproject/rlp@5.7.0(transitive)
+ Added@ethersproject/signing-key@5.7.0(transitive)
+ Added@ethersproject/strings@5.7.0(transitive)
+ Added@ethersproject/transactions@5.7.0(transitive)
+ Added@ethersproject/web@5.7.1(transitive)
+ Added@noble/hashes@1.5.0(transitive)
+ Addedbn.js@5.2.1(transitive)
+ Addedethereum-bloom-filters@1.2.0(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedjs-sha3@0.8.0(transitive)
+ Addedunderscore@1.9.1(transitive)
+ Addedutf8@3.0.0(transitive)
+ Addedweb3-utils@3.0.0-rc.0(transitive)
- Removed@babel/runtime@^7.3.1
- Removedethers@^4.0.27
- Removedlodash@^4.17.11
- Removed@babel/runtime@7.26.0(transitive)
- Removed@types/bn.js@4.11.6(transitive)
- Removed@types/node@12.20.55(transitive)
- Removedaes-js@3.0.0(transitive)
- Removedbn.js@4.11.8(transitive)
- Removedethers@4.0.49(transitive)
- Removedhash.js@1.1.3(transitive)
- Removedjs-sha3@0.5.7(transitive)
- Removedlodash@4.17.21(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedscrypt-js@2.0.4(transitive)
- Removedsetimmediate@1.0.4(transitive)
- Removedutf8@2.1.1(transitive)
- Removeduuid@2.0.1(transitive)
- Removedweb3-utils@2.0.0-alpha.1(transitive)
- Removedxmlhttprequest@1.8.0(transitive)
Updatedweb3-utils@3.0.0-rc.0