@0x/web3-wrapper
Version:
Wraps around web3 and gives a nicer interface
445 lines (239 loc) • 10.6 kB
Markdown
<!--
changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
Edit the package's CHANGELOG.json file only.
-->
CHANGELOG
## v8.0.1 - _April 7, 2023_
* Dependencies updated
## v8.0.0 - _August 18, 2022_
* Remove ganache specific `eth_signTypedData` as JSON string (#65)
* Detect new structure for Ganache errors (#65)
## v7.6.5 - _March 16, 2022_
* Dependencies updated
## v7.6.4 - _March 16, 2022_
* Dependencies updated
## v7.6.3 - _February 26, 2022_
* Dependencies updated
## v7.6.2 - _January 19, 2022_
* Dependencies updated
## v7.6.1 - _September 23, 2021_
* Dependencies updated
## v7.6.0 - _August 25, 2021_
* Add support for fee market (1559) RPC methods (#45)
## v7.5.4 - _June 28, 2021_
* Dependencies updated
## v7.5.3 - _April 28, 2021_
* Dependencies updated
## v7.5.2 - _April 26, 2021_
* Dependencies updated
## v7.5.1 - _April 26, 2021_
* Dependencies updated
## v7.5.0 - _April 26, 2021_
* Add `Web3Wrapper.createAccessListAsync()` (#33)
* Fix null JSONRPC results from being considered errors (#33)
## v7.4.3 - _April 6, 2021_
* Dependencies updated
## v7.4.2 - _March 24, 2021_
* Dependencies updated
## v7.4.1 - _January 26, 2021_
* Handle missing RPC method error for `web3-provider-engine` geth defaults provider (#22)
## v7.4.0 - _January 26, 2021_
* Remove `Web3Wrapper.signTypedDataV4Async()` and add backoff support for multiple versions of `eth_signTypedData` to `Web3Wrapper.signTypedDataAsync()`. (#21)
## v7.3.2 - _January 7, 2021_
* Dependencies updated
## v7.3.1 - _January 5, 2021_
* Dependencies updated
## v7.3.0 - _December 9, 2020_
* Add `Web3Wrapper.signTypedDataV4Async()` (metamask EIP712) (#13)
## v7.2.10 - _December 2, 2020_
* Dependencies updated
## v7.2.9 - _December 1, 2020_
* Dependencies updated
## v7.2.8 - _October 29, 2020_
* Dependencies updated
## v7.2.7 - _October 29, 2020_
* Dependencies updated
## v7.2.6 - _October 29, 2020_
* Dependencies updated
## v7.2.5 - _October 28, 2020_
* Dependencies updated
## v7.2.4 - _October 21, 2020_
* Dependencies updated
## v7.2.3 - _October 21, 2020_
* Dependencies updated
## v7.2.2 - _October 20, 2020_
* Dependencies updated
## v7.2.1 - _October 20, 2020_
* Dependencies updated
## v7.2.0 - _July 15, 2020_
* Add geth eth_call support (#2620)
* Remove duplicate overrides data from the eth_call rpc call (#2629)
## v7.1.0 - _June 24, 2020_
* Add `getAccountNonce()` to `Web3Wrapper` (#2545)
* Update ganache-core (#2545)
## v7.0.7 - _February 25, 2020_
* Dependencies updated
## v7.0.6 - _February 8, 2020_
* Dependencies updated
## v7.0.5 - _February 6, 2020_
* Dependencies updated
## v7.0.4 - _January 22, 2020_
* Dependencies updated
## v7.0.3 - _January 6, 2020_
* Dependencies updated
## v7.0.2 - _December 17, 2019_
* Dependencies updated
## v7.0.1 - _December 9, 2019_
* Dependencies updated
## v7.0.0 - _December 2, 2019_
* Let `toBaseUnitAmount()` accept a `number` (#1819)
## v6.1.0-beta.3 - _December 2, 2019_
* Dependencies updated
## v6.1.0-beta.2 - _November 17, 2019_
* Dependencies updated
## v6.1.0-beta.1 - _November 7, 2019_
* Dependencies updated
## v6.1.0-beta.0 - _October 3, 2019_
* Let `toBaseUnitAmount()` accept a `number` (#1819)
## v6.0.13 - _September 17, 2019_
* Dependencies updated
## v6.0.12 - _September 3, 2019_
* Dependencies updated
## v6.0.11 - _August 22, 2019_
* Dependencies updated
## v6.0.10 - _August 8, 2019_
* Dependencies updated
## v6.0.9 - _July 31, 2019_
* Dependencies updated
## v6.0.8 - _July 24, 2019_
* re-export new ethereum-types types, TupleDataItem (#1919)
## v6.0.7 - _July 13, 2019_
* Dependencies updated
## v6.0.6 - _May 10, 2019_
* Dependencies updated
## v6.0.5 - _April 11, 2019_
* Dependencies updated
## v6.0.4 - _March 21, 2019_
* Dependencies updated
## v6.0.3 - _March 20, 2019_
* Update ganache-core to 2.5.3 (#1707)
## v6.0.2 - _March 1, 2019_
* Dependencies updated
## v6.0.1 - _February 26, 2019_
* Dependencies updated
## v6.0.0 - _February 25, 2019_
* Add support for EIP1193 providers & Web3.js providers >= 1.0-beta.38 (#1627)
* Update provider params to type SupportedProvider which outlines all supported providers (#1627)
## v5.0.0 - _February 9, 2019_
* Export `DecodedCalldata` from @0x/utils (#1569)
## v4.0.2 - _February 7, 2019_
* Dependencies updated
## v4.0.1 - _February 6, 2019_
* Dependencies updated
## v4.0.0 - _February 5, 2019_
* Upgrade the bignumber.js to v8.0.2 (#1517)
* Update ganache-core to v2.3.3 (#1518)
## v3.2.4 - _January 15, 2019_
* Dependencies updated
## v3.2.3 - _January 11, 2019_
* Dependencies updated
## v3.2.2 - _January 9, 2019_
* Dependencies updated
## v3.2.1 - _December 13, 2018_
* Dependencies updated
## v3.2.0 - _December 11, 2018_
* Return `value` and `gasPrice` as BigNumbers to avoid loss of precision errors (#1402)
## v3.1.6 - _November 28, 2018_
* Unmarshall mined transaction receipts (#1308)
## v3.1.5 - _November 21, 2018_
* Add unmarshalling of transaction receipts (#1291)
* Return `undefined` instead of `null` if transaction receipt not found (#1291)
## v3.1.4 - _November 14, 2018_
* Dependencies updated
## v3.1.3 - _November 13, 2018_
* Dependencies updated
## v3.1.2 - _November 12, 2018_
* Dependencies updated
## v3.1.1 - _November 9, 2018_
* Fix bug in `getTransactionByHashAsync` which was causing the return value to have the wrong type (raw fields instead of unmarshalled fields). (#1177)
## v3.1.0 - _October 18, 2018_
* Add `signTypedData` to perform EIP712 `eth_signTypedData`. (#1102)
* Web3Wrapper now throws when an RPC request contains an error field in the response. Previously errors could be swallowed and undefined returned. (#1102)
## v3.0.3 - _October 4, 2018_
* Dependencies updated
## v3.0.2 - _September 28, 2018_
* Dependencies updated
## v3.0.1 - _September 25, 2018_
* Dependencies updated
## v3.0.0 - _September 25, 2018_
* Rename `getBlockAsync` to `getBlockIfExistsAsync` and rather then throw if the requested block wasn't found, return undefined. (#1082)
* Expose `sendRawPayloadAsync` so one can easily extend `Web3Wrapper` with their own custom JSON RPC calls (#1080)
## v2.0.3 - _September 21, 2018_
* Fixes issue #1076 where Parity now returns a placeholder transactionReceipt before the transaction is mined. (#1079)
## v2.0.2 - _September 5, 2018_
* Dependencies updated
## v2.0.1 - _August 27, 2018_
* Dependencies updated
## v2.0.0 - _August 24, 2018_
* Export types: `BlockParam`, `TxData`, `Provider`, `TransactionReceipt`, `Transaction`, `TraceParams`, `TransactionTrace``, BlockWithoutTransactionDat`a, `LogEntry`, `FilterObject`, `CallData`, `TransactionReceiptWithDecodedLogs`, `BlockWithTransactionData``, LogTopi`c, `JSONRPCRequestPayload`, `TransactionReceiptStatus`, `DecodedLogArgs`, `StructLog`, `JSONRPCErrorCallback``, BlockParamLitera`l, `ContractEventArg`, `DecodedLogEntry`, `LogEntryEvent`, `OpCode`, `TxDataPayable`, `JSONRPCResponsePayload``, RawLogEntr`y, `DecodedLogEntryEvent`, `LogWithDecodedArgs`, `AbiDefinition`, `RawLog`, `FunctionAbi`, `EventAbi`, `EventParameter``, MethodAb`i, `ConstructorAbi`, `FallbackAbi`, `DataItem`, `ConstructorStateMutability` and `StateMutability` (#924)
* Stop exporting types: `CallTxDataBaseRPC` and `AbstractBlockRPC` (#924)
* Export `AbiDecoder` class (#924)
## v1.2.0 - _August 14, 2018_
* Export marshaller to convert between RPC and user-space data formats (#938)
* Export RPC types (#938)
## v1.1.2 - _July 26, 2018_
* Dependencies updated
## v1.1.1 - _July 26, 2018_
* Dependencies updated
## v1.1.0 - _July 26, 2018_
* Add `getTransactionByHashAsync` method (#847)
## v1.0.1 - _July 23, 2018_
* Dependencies updated
## v1.0.0 - _July 19, 2018_
* Stop exporting `marshaller` utility file. (#902)
* Export `marshaller` utility file. (#829)
* Add `getNodeTypeAsync` method (#812)
* Stop exporting uniqueVersionIds object (#897)
## v0.7.3 - _July 18, 2018_
* Dependencies updated
## v0.7.2 - _July 9, 2018_
* Dependencies updated
## v0.7.1 - _June 19, 2018_
* Dependencies updated
## v0.7.0 - _June 4, 2018_
* Add `web3Wrapper.getContractCodeAsync` (#675)
* Add `web3Wrapper.getTransactionTraceAsync` (#675)
* Add `web3Wrapper.getBlockWithTransactionDataAsync` (#675)
* Add exported uniqueVersionIds object (#622)
* Update increaseTimeAsync to work with Geth (#622)
* Make callAsync throw if raw call result is 0x (null) (#622)
* Add new setHeadAsync method (#622)
* Improve performance of awaitTransactionMinedAsync by immediately checking if the transaction was already mined instead of waiting for the first interval. (#688)
## v0.6.4 - _May 22, 2018_
* Dependencies updated
## v0.6.3 - _May 4, 2018_
* Dependencies updated
## v0.6.2 - _May 4, 2018_
* Dependencies updated
## v0.6.1 - _April 18, 2018_
* Dependencies updated
## v0.6.0 - _April 11, 2018_
* Make `isAddress` and `toWei` static (#501)
* Add static methods `toUnitAmount` and `toBaseUnitAmount` (#501)
## v0.5.0 - _April 2, 2018_
* Add `web3Wrapper.awaitTransactionMinedAsync` (#485)
* Add a public field `abiDecoder: AbiDecoder` which allows you to add your ABIs that are later used to decode logs (#485)
* Export enum `Web3WrapperErrors` with a single value so far: `TransactionMiningTimeout` (#485)
## v0.4.0 - _April 2, 2018_
* Rename `signTransactionAsync` to `signMessageAsync` for clarity (#465)
## v0.3.0 - _March 17, 2018_
* Add `web3Wrapper.takeSnapshotAsync`, `web3Wrapper.revertSnapshotAsync`, `web3Wrapper.mineBlockAsync`, `web3Wrapper.increaseTimeAsync` (#426)
* Add `web3Wrapper.isZeroExWeb3Wrapper` for runtime instanceOf checks (#426)
* Add a `getProvider` method (#444)
## v0.2.0 - _March 3, 2018_
* Ensure all returned user addresses are lowercase (#373)
* Add `web3Wrapper.callAsync` (#413)
* Make `web3Wrapper.estimateGas` accept whole `txData` instead of `data` (#413)
* Remove `web3Wrapper.getContractInstance` (#413)
## v0.1.12 - _February 8, 2018_
* Fix publishing issue where .npmignore was not properly excluding undesired content (#389)