Commit Graph

116 Commits

Author SHA1 Message Date
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
7aebe53e5b Change Buffer constructor to safer operations (#265). 2018-09-04 10:20:31 -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
2b9d8d6d6a Silence warning for external keyword in human-readable ABI. 2018-08-27 13:27:03 +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
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
3635a9bb40 Fixed custom network chain ID check. 2018-08-13 16:50:47 +01:00
Richard Moore
fcee62a3d9 Fixed parseSignature with empty parameter lists. 2018-08-04 19:34:30 -04:00
Richard Moore
421b2c857b Fixing TypeScript compiler using host paths for resolving constants. 2018-08-02 21:34:10 -04:00
Richard Moore
5c8703fb30 Restructuring for TypeScript. 2018-08-02 20:30:44 -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
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
a1a765f6e4 Fixed types for Log Description. 2018-07-26 17:31:08 -04:00
Richard Moore
73486d6f39 Added public and stateMutability for payable to ABI coder. 2018-07-26 16:58:31 -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
7014afaab6 Fixing out-of-order browserify imports again. 2018-07-23 05:37:07 -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
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
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
b61643fecb Fixed internal exports to use types. 2018-07-16 00:09:13 -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
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
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