Commit Graph

254 Commits

Author SHA1 Message Date
Richard Moore
023a20ff47
Fixed and refactored populating transaction values for signers (#306). 2018-10-14 19:00:15 -04:00
Richard Moore
5020897f10
Updated dist files. 2018-10-13 17:19:07 -04:00
Richard Moore
6ac2d923b7
Fixed filtering with null non-indexed parameters (#305). 2018-10-13 17:17:02 -04:00
Richard Moore
6996dd86f4
Updated dist files. 2018-10-11 16:50:52 -04:00
Richard Moore
493273d698
Added optional blockTag to call; note that this may not behave as expected on all nodes (#226). 2018-10-11 16:03:18 -04:00
Richard Moore
84344ac4c2
Check all transaction parameters are valid; protect against typos (#299). 2018-10-11 15:16:31 -04:00
Richard Moore
9b118af304
Updated dist files. 2018-10-07 01:13:10 -04:00
Richard Moore
e39e2ed718
Added address to HDNode (#196). 2018-10-07 01:09:56 -04:00
Richard Moore
b2db10e216
Mark progressCallback as optional (#293). 2018-10-07 00:42:52 -04:00
Richard Moore
3736a15714
Updated dist files. 2018-10-04 20:25:07 -04:00
Richard Moore
248158130e
Added automatic event parsing for contract transaction receipts from tx.wait. 2018-10-04 19:54:15 -04:00
Richard Moore
f5c7ccbb80
Added ability to wait for a specific number of confirmations (#229). 2018-10-04 17:27:42 -04:00
Richard Moore
24335d0dd7
Fix for geth-etc (official geth is fine), which returns Receipts before the blockHash is synced to the database. 2018-10-04 16:46:19 -04:00
Richard Moore
908c2c1096
Fixed confirmations tests and bootstrap fast blockNumber. 2018-10-04 16:44:29 -04:00
Richard Moore
9797b36186
Added confirmations to TransactionResponse (#156, #238). 2018-10-04 16:24:31 -04:00
Richard Moore
731f189010
Fixed nested errors for providers that were masking true error (#292). 2018-10-04 15:24:29 -04:00
Richard Moore
99fed75202
Added version to errors. 2018-10-03 22:50:22 -04:00
Richard Moore
cb5f9f576a
Fixed French and Spanish for browsers without Uint8Array.forEach. 2018-10-03 22:47:44 -04:00
Richard Moore
f6d946cf68
Updated dist files. 2018-10-03 20:03:32 -04:00
Richard Moore
c34a1f73c6
Added French and Spanish BIP-39 wordlists (#191). 2018-10-03 19:58:45 -04:00
Richard Moore
281bd0613d
Added support for JSON serialized BigNumbers in the constructor (#288). 2018-10-03 19:54:38 -04:00
Richard Moore
5a0ebf84ef
Updated dist files. 2018-10-01 17:34:44 -04:00
Richard Moore
c9c5b4d641
Added chainId as supported override for contract transactions. 2018-10-01 17:33:09 -04:00
Richard Moore
5e86e02304
Fixed wildcard events and made nested events more robust (#289). 2018-10-01 17:30:45 -04:00
Richard Moore
061b0eae1d
Version bump (major). 2018-09-27 17:17:41 -04:00
Richard Moore
ef5d19e5c9
More logical interface for hexDataSlice (mimic slice). 2018-09-27 16:52:05 -04:00
Richard Moore
f4e247fc92
Fixed trailing-zero issue after commify fix. 2018-09-26 16:11:38 -04:00
Richard Moore
543e12c6ca
Changing contract deployment to ContractFactory. 2018-09-26 15:47:09 -04:00
Richard Moore
57439af25d
Removed options from unit conversion and added separate otto-safe commify function (#202, prep for #228). 2018-09-26 15:44:39 -04:00
Richard Moore
f4dd5d19e7
Updated dist files. 2018-09-24 16:07:14 -04:00
Richard Moore
05e30f4680
Major overhaul of file layout and import/export structure to better support TypeScript. 2018-09-24 15:55:17 -04:00
Richard Moore
9c87e569cf
Added Ethereum Classic Testnet to networks. 2018-09-21 15:34:56 -04:00
Richard Moore
15761027df
Added constructor support for Human-Readable ABI. 2018-09-21 15:34:24 -04:00
Richard Moore
892f30a051
Check HTTP status before parsing body in fetchJson (#280). 2018-09-20 12:44:46 -04:00
Richard Moore
eef07e5a4f
Updated dist files. 2018-09-06 16:41:02 -04:00
Richard Moore
13e50ec6db
Exposed more secp256k1 primitives (#233 #271). 2018-09-06 16:37:44 -04:00
Richard Moore
9dcf6f3253
Added headers and timeout to fetchJson (#224 #257). 2018-09-06 16:34:45 -04:00
Richard Moore
e0cefb0398
Added VoidSigner for read-only access as a specific address. 2018-09-04 10:28:26 -04:00
Richard Moore
6018bf63f9
Make AbstractSigner provider readonly. 2018-09-04 10:27:22 -04:00
Richard Moore
7aebe53e5b
Change Buffer constructor to safer operations (#265). 2018-09-04 10:20:31 -04:00
Richard Moore
32a070d909
Added support for fetching block transactions with blocks. 2018-09-04 10:08:50 -04:00
Richard Moore
afae5cd2f9
Block calling contract methods until it deployed, if it is pending deployment. 2018-08-27 13:38:48 +02:00
Richard Moore
280dc56a74
Removing address from JsonRpcSigner and cache address (#263). 2018-08-27 13:27:59 +02:00
Richard Moore
2b9d8d6d6a
Silence warning for external keyword in human-readable ABI. 2018-08-27 13:27:03 +02:00
Richard Moore
810e9e743e
Updated dist files. 2018-08-21 13:13:52 +02:00
Richard Moore
e092746165
Removed jsonCopy and added deepCopy instead (#261). 2018-08-21 13:11:44 +02:00
Richard Moore
388b658bfa
Invalid utf-8 strings now fail by default. 2018-08-21 13:08:28 +02:00
Richard Moore
0358e8afb7
Fixed typo in units for finney (#259). 2018-08-21 13:01:55 +02:00
Richard Moore
2b88efea65
Updated dist files. 2018-08-13 17:01:44 +01:00
Richard Moore
f4c3073304
Removed BigNumber and AbiCoder objects from utils and exposed them at the root. 2018-08-13 16:58:19 +01:00
Richard Moore
e4d5786861
Fixed isType for null values. 2018-08-13 16:56:59 +01:00
Richard Moore
46a55a1d99
Removing old dead code. 2018-08-13 16:56:20 +01:00
Richard Moore
2c1022cde1
Removed timeout from wait so we can use confirmations in the future instead and remain backwards compatible. 2018-08-13 16:54:32 +01:00
Richard Moore
f9723c42cb
Re-use shallowCopy. 2018-08-13 16:52:35 +01:00
Richard Moore
3635a9bb40
Fixed custom network chain ID check. 2018-08-13 16:50:47 +01:00
Richard Moore
a80a8a8ced
Fixed miscalculating estimated fees for payable functions. 2018-08-05 18:35:00 -04:00
Richard Moore
e3b04bb3fc
Updated dist files. 2018-08-04 19:40:06 -04:00
Richard Moore
fcee62a3d9
Fixed parseSignature with empty parameter lists. 2018-08-04 19:34:30 -04:00
Richard Moore
7f1fbfc203
Make wallet.encrypt options optional. 2018-08-04 19:33:51 -04:00
Richard Moore
4f63b82bbb
Updated dist files. 2018-08-03 15:26:01 -04:00
Richard Moore
f63c844c42
Added support for getting JsonRpcSigner by index and fixed gas limit in sendTransaction. 2018-08-03 15:22:28 -04:00
Richard Moore
1c45840148
Updated dist files. 2018-08-02 21:35:39 -04:00
Richard Moore
421b2c857b
Fixing TypeScript compiler using host paths for resolving constants. 2018-08-02 21:34:10 -04:00
Richard Moore
bacf42a22f
Updated dist files. 2018-08-02 20:43:09 -04:00
Richard Moore
5c8703fb30
Restructuring for TypeScript. 2018-08-02 20:30:44 -04:00
Richard Moore
c7555516ff
Using the Vyper-style gas limits sans the base cost. 2018-08-02 17:14:06 -04:00
Richard Moore
957ccd2eaf
Updated dist files and tests. 2018-08-01 18:05:19 -04:00
Richard Moore
558ef2c00d
Updated ethers exported structure. 2018-08-01 17:35:23 -04:00
Richard Moore
b73a964bac
Moved type to enum for hmac SupportedAlgorithms. 2018-08-01 17:33:23 -04:00
Richard Moore
3e091a2938
Added Vyper-style gas ABI support. 2018-08-01 17:24:11 -04:00
Richard Moore
cb6d18035f
Added error code detection for sendTransaction. 2018-08-01 17:02:27 -04:00
Richard Moore
4b15229832
Calculate estimated gasLimit for JsonRpcProvider. 2018-08-01 15:47:02 -04:00
Richard Moore
cc6f658ef1
Added support for Web3 v1.0 providers. 2018-07-30 23:14:07 -04:00
Richard Moore
9b885296d0
Major re-factor of the library layout for TypeScript; still up for discussion. 2018-07-30 18:59:52 -04:00
Richard Moore
a966a60656
Changed constant name for consistency. 2018-07-27 03:46:38 -04:00
Richard Moore
d05da1e487
Added transactionHash to error for consistency. 2018-07-27 03:45:11 -04:00
Richard Moore
a1a765f6e4
Fixed types for Log Description. 2018-07-26 17:31:08 -04:00
Richard Moore
1d98928475
Updated dist files. 2018-07-26 17:02:32 -04:00
Richard Moore
73486d6f39
Added public and stateMutability for payable to ABI coder. 2018-07-26 16:58:31 -04:00
Richard Moore
640ed5dc33
Fixed recursive promise filling for contract calls. 2018-07-26 16:57:47 -04:00
Richard Moore
97b6d8a797
Updated dist files. 2018-07-25 21:20:21 -04:00
Richard Moore
00bb20546b
No longer using instanceof which conflicts with npm link. 2018-07-25 21:15:43 -04:00
Richard Moore
7cf8596906
Added bounds checks to the number coder and fixed bytes coder. 2018-07-25 19:32:27 -04:00
Richard Moore
5a0607d11b
Updated dist files. 2018-07-23 19:23:53 -04:00
Richard Moore
7014afaab6
Fixing out-of-order browserify imports again. 2018-07-23 05:37:07 -04:00
Richard Moore
3a5ec9b4ca
Updated dist files. 2018-07-23 02:59:01 -04:00
Richard Moore
bceefc7197
Better browserify for English wordlist. 2018-07-22 21:07:50 -04:00
Richard Moore
bfff3ea4cc
Simpler empty modules for shims. 2018-07-22 20:41:30 -04:00
Richard Moore
7d4caa05ca
Use class instance to detect BigNumber. 2018-07-22 20:06:36 -04:00
Richard Moore
004fd7d37d
Make formatUnits options optional. 2018-07-22 20:05:45 -04:00
Richard Moore
e3da92d1ee
Lazy load the elliptic curve; also fixed circular dependencies internal to the library that cause issues in browserify. 2018-07-22 20:05:14 -04:00
Richard Moore
0bc72c5ed4
Export computePublicKey in utils. 2018-07-22 19:59:27 -04:00
Richard Moore
d0cf0c8f43
Restructuring browser shims. 2018-07-22 18:25:36 -04:00
Richard Moore
2aa2a38e37
Added a (hacky) way to get TypeScript to support the Contract meta-class functions. 2018-07-18 16:32:16 -04:00
Richard Moore
d701995bc0
Correct wallet.createRandom to have optional options. 2018-07-18 16:30:42 -04:00
Richard Moore
b9aca357a9
Updated generated version file. 2018-07-17 16:09:35 -04:00
Richard Moore
26f5a558d6
Fixed some concerns of eslint. 2018-07-17 16:09:06 -04:00
Richard Moore
a062f75d38
Made Signatures more flexible for input. 2018-07-17 15:32:06 -04:00
Richard Moore
ce864fa1b2
Fixed browser shim for setImmediate. 2018-07-17 02:05:24 -04:00
Richard Moore
b61b84dfc8
Moved static Wallet calls to utils and refactors exposed types. 2018-07-17 01:44:04 -04:00
Richard Moore
e8c657ba70
Fixed type definitions using absolute path. 2018-07-16 03:59:25 -04:00
Richard Moore
d1ce9f4964
Refactored imports and exports to be both node-friendly and TypeScript-friendly. 2018-07-16 03:27:49 -04:00
Richard Moore
e4df325e22
Moved getNetwork to utils. 2018-07-16 00:48:41 -04:00
Richard Moore
3b843a1782
Moving away from default exports. 2018-07-16 00:39:29 -04:00
Richard Moore
614b2d0325
Removing default export from wordlists. 2018-07-16 00:32:26 -04:00
Richard Moore
b61643fecb
Fixed internal exports to use types. 2018-07-16 00:09:13 -04:00
Richard Moore
8d6fa3dc93
Added sanity checksums to all BIP39 wordlists on load. 2018-07-14 20:51:51 -04:00
Richard Moore
e6c8db88bd
Japanese sorting in browsers is different than in node; fixing wordlist and added sanity check. 2018-07-14 19:38:35 -04:00
Richard Moore
5f3ceec6f9
Refactored types for TypeScript and to remove circular dependencies. 2018-07-14 17:19:08 -04:00
Richard Moore
d6260ae11a
Fixing weird browserify bug with pacakge resolution order. 2018-07-12 20:11:32 -04:00
Richard Moore
0ecfe4bafd
Truly immutable BigNumber and hidden constructor. 2018-07-12 20:07:47 -04:00
Richard Moore
979e374270
Added new-style events (removed old-style) to contracts and added filters to contracts and interfaces. 2018-07-12 02:52:43 -04:00
Richard Moore
b7e143b4f3
Changed Web3Proivder url to empty string instead of unknown if it cannot be determined. 2018-07-12 02:50:44 -04:00
Richard Moore
272265f085
Added common constants to root library. 2018-07-12 02:49:48 -04:00
Richard Moore
27402fafe6
Refactored Provider events. 2018-07-12 02:49:09 -04:00
Richard Moore
ac4211d0c6
Added common constants to utils. 2018-07-12 02:44:45 -04:00
Richard Moore
ee0faba708
Fixed ABI coder for no-name indexed parameters in events. 2018-07-12 02:43:55 -04:00
Richard Moore
e5d5871b95
Better transaction serializing API. 2018-07-12 02:42:46 -04:00
Richard Moore
4514229f27
Added eslint for promises. (#189) 2018-07-03 16:44:05 -04:00
Richard Moore
7ac8cb63c8
Use block polling rather than exponential backoff when possible. Added transactionHash to errors on failed transactions. 2018-07-03 15:48:37 -04:00
Richard Moore
8e83ceaedc
Check for invalid strings in BigNumber constructor. (#219) 2018-07-03 14:58:24 -04:00
Richard Moore
b1d026b800
Added deployed to contract and abstracted polling into web. 2018-06-30 23:05:22 -04:00
Richard Moore
ebf42dc9e0
Fixed extra output in array data. (#220) 2018-06-30 22:40:20 -04:00
Richard Moore
6faa978767
Fixes for handling weird TestRPC behaviour. 2018-06-26 18:59:22 -04:00
Richard Moore
8a340c8ff3
Fixed sendTransaction for JsonRpcSigner. 2018-06-26 18:37:21 -04:00
Richard Moore
0b35f1959a
Fixed JsonRpcSigner for promises and made address optional again. 2018-06-26 17:49:54 -04:00
Richard Moore
8fe19de3ce
Added support for unsigned transactions. 2018-06-25 21:02:20 -04:00
Richard Moore
fcd57f9756
Added formatParamType and formatSignature. 2018-06-24 20:32:14 -04:00
Richard Moore
c348c60d5c
Skip null values (not just undefined) when resolving ENS names. 2018-06-24 18:56:45 -04:00
Richard Moore
1d2fe8993b
Populate from in estimateGas for determining gas limit. 2018-06-24 18:47:36 -04:00
Richard Moore
18aa885aef
Provider and contract wait return receipts and throw on error status. 2018-06-24 18:41:28 -04:00
Richard Moore
5c0475ce8c
Added version to TypeScript library output. 2018-06-24 05:31:24 -04:00
Richard Moore
380c17a0a5
Removed unecessary private variable from Chinese wordlist. 2018-06-24 05:28:16 -04:00
Richard Moore
bd4ca0d4d3
Fixed TypeScript definition file generation. 2018-06-24 04:03:21 -04:00
Richard Moore
7949444612
Added initial support for EIP838, revert codes (#188). 2018-06-23 01:33:51 -04:00
Richard Moore
ec40c67c50
Added no implicit any for TypeScript checking. 2018-06-22 20:30:50 -04:00
Richard Moore
1082105eea
Added more specific types to signatures. 2018-06-22 02:13:34 -04:00
Richard Moore
aa67537097
Added fallback operations to contract (#182). 2018-06-22 02:10:46 -04:00
Richard Moore
63e5ad1d95
Removed deprecated wallet operations (brainwallets and bare send). 2018-06-22 02:08:52 -04:00
Richard Moore
b2be7c807f
Set up setImmediate for browsers. 2018-06-22 02:07:57 -04:00
Richard Moore
edbf8e319c
Fixed resovleProperties not resolving properties. 2018-06-21 20:41:09 -04:00
Richard Moore
28cd3cace2
Moved TypeScript generation to match library layout for easier importing sub-components. 2018-06-21 20:24:30 -04:00
Richard Moore
2a111ab6ce
Added mnemonic language support for Chinese, Italian, Japanese and Korean. 2018-06-20 20:29:54 -04:00
Richard Moore
5b18a63ebc
Use node crypto in node environments. 2018-06-19 02:12:57 -04:00
Richard Moore
336df72e04
Refactor Provider. 2018-06-18 18:49:00 -04:00
Richard Moore
5da4917c27
Refactoring. 2018-06-18 05:42:41 -04:00
Richard Moore
c1b24e818c
Renamed convert to bytes. 2018-06-17 16:47:28 -04:00
Richard Moore
af893e79a4
Refectoring; split getAddress, expose transactions, hex operations. 2018-06-17 16:32:57 -04:00
Richard Moore
efbfed0d40
Refactor API. 2018-06-15 04:18:17 -04:00
Richard Moore
7391cf8d19
Added consolidated definition file. 2018-06-14 05:38:37 -04:00