From 5bb68974ec779232fb4c7197bee31b672fe5f5bd Mon Sep 17 00:00:00 2001 From: Igor Kroitor Date: Fri, 20 Jul 2018 08:49:16 +0300 Subject: Deduplicate assert web3-wrapper signMessageAsync --- packages/web3-wrapper/src/web3_wrapper.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'packages/web3-wrapper') diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index 4439eb284..883a99bb4 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -291,7 +291,6 @@ export class Web3Wrapper { * @returns Signature string (might be VRS or RSV depending on the Signer) */ public async signMessageAsync(address: string, message: string): Promise { - assert.isETHAddressHex('address', address); assert.isETHAddressHex('address', address); assert.isString('message', message); // TODO: Should this be stricter? Hex string? const signData = await this._sendRawPayloadAsync({ -- cgit v1.2.3 From dc151f7290072c9776c9b351ae30bf577fcd1015 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 20 Jul 2018 20:13:53 +0200 Subject: Add missing timestamp to CHANGELOG entries --- packages/web3-wrapper/CHANGELOG.json | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/web3-wrapper') diff --git a/packages/web3-wrapper/CHANGELOG.json b/packages/web3-wrapper/CHANGELOG.json index e8f3b5f43..200836a82 100644 --- a/packages/web3-wrapper/CHANGELOG.json +++ b/packages/web3-wrapper/CHANGELOG.json @@ -1,5 +1,6 @@ [ { + "timestamp": 1532043000, "version": "1.0.0", "changes": [ { -- cgit v1.2.3 From 855b6b1dc5597f360451232ff6dfc91beb3a9f50 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 23 Jul 2018 16:58:40 +0200 Subject: Updated CHANGELOGS --- packages/web3-wrapper/CHANGELOG.json | 9 +++++++++ packages/web3-wrapper/CHANGELOG.md | 21 +++++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) (limited to 'packages/web3-wrapper') diff --git a/packages/web3-wrapper/CHANGELOG.json b/packages/web3-wrapper/CHANGELOG.json index 200836a82..d707ef486 100644 --- a/packages/web3-wrapper/CHANGELOG.json +++ b/packages/web3-wrapper/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "timestamp": 1532357734, + "version": "1.0.1", + "changes": [ + { + "note": "Dependencies updated" + } + ] + }, { "timestamp": 1532043000, "version": "1.0.0", diff --git a/packages/web3-wrapper/CHANGELOG.md b/packages/web3-wrapper/CHANGELOG.md index 324e60643..b17baaeeb 100644 --- a/packages/web3-wrapper/CHANGELOG.md +++ b/packages/web3-wrapper/CHANGELOG.md @@ -1,10 +1,20 @@ CHANGELOG +## v1.0.1 - _July 23, 2018_ + + * Dependencies updated + +## v1.0.0 - _July 20, 2018_ + + * Export `marshaller` utility file. (#829) + * Add `getNodeTypeAsync` method (#812) + * Stop exporting uniqueVersionIds object (#897) + ## v0.7.3 - _July 18, 2018_ * Dependencies updated @@ -19,7 +29,14 @@ CHANGELOG ## v0.7.0 - _June 4, 2018_ - * Add default parameters when sending a raw payload + * 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_ -- cgit v1.2.3 From 0a976a3fb8792b83eaae621c0c78607c90344b8e Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Wed, 18 Jul 2018 13:31:29 -0700 Subject: Get actual gasPrice from transaction instead of setting default --- packages/web3-wrapper/src/web3_wrapper.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'packages/web3-wrapper') diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index 883a99bb4..dd35e2094 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -14,6 +14,7 @@ import { Provider, RawLogEntry, TraceParams, + Transaction, TransactionReceipt, TransactionReceiptWithDecodedLogs, TransactionTrace, @@ -220,6 +221,19 @@ export class Web3Wrapper { } return transactionReceipt; } + /** + * Retrieves the transaction data for a given transaction + * @param txHash Transaction hash + * @returns The raw transaction data + */ + public async getTransactionByHashAsync(txHash: string): Promise { + assert.isHexString('txHash', txHash); + const transaction = await this._sendRawPayloadAsync({ + method: 'eth_getTransactionByHash', + params: [txHash], + }); + return transaction; + } /** * Retrieves an accounts Ether balance in wei * @param owner Account whose balance you wish to check -- cgit v1.2.3 From d8099d53fe6ab7d2662ecd20219648016b12bcaa Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Wed, 18 Jul 2018 13:37:22 -0700 Subject: Update web3Wrapper CHANGELOG --- packages/web3-wrapper/CHANGELOG.json | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages/web3-wrapper') diff --git a/packages/web3-wrapper/CHANGELOG.json b/packages/web3-wrapper/CHANGELOG.json index d707ef486..975f83037 100644 --- a/packages/web3-wrapper/CHANGELOG.json +++ b/packages/web3-wrapper/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "1.1.0", + "changes": [ + { + "note": "Add `getTransactionByHashAsync` method", + "pr": 847 + } + ] + }, { "timestamp": 1532357734, "version": "1.0.1", -- cgit v1.2.3