55 Commits

Author SHA1 Message Date
Olaf Tomalka
a53e6db537 Fix web3 typing defaultAccount not allowing undefined
The default value for the defaultAccount property is undefined,
this happens in real-life scenarios, and so the type should
explicitly warn users about it
2018-01-15 16:02:42 +01:00
Leonid Logvinov
571b3c4da8
Add types for getData on a web3 contract 2018-01-11 14:25:49 +01:00
Leonid Logvinov
78fd942faa
Return to old way of including web3 types 2018-01-10 11:24:37 +01:00
Leonid Logvinov
c2d6e78b2a
Manually apply #14 2018-01-10 11:24:37 +01:00
Olaf Tomalka
7233a11ba0
Added stateMutability to ABIs
In the newest version of Solidity, additional property was added,
called state mutability, specyfing what kind of access does the
function have to memory and storage.
Additionally, constructor mutability is limited to payable/non-payable
as it HAS to modify the storage to actually deploy the contract
2018-01-10 11:24:37 +01:00
Olaf Tomalka
9889c8f9e0
Fix ContractInstance new() not parsing properly
new is a keyword in typescript and so if a function is called new(),
tsc and for example Visual Studio Code don't regonize types for this
function. The fix is to write this function in quotes
2018-01-10 11:24:37 +01:00
Olaf Tomalka
7e2e392ecc
Made the callback in filter.stopWatching optional 2018-01-10 11:24:37 +01:00
Amir Bandeali
6912a67eba
Add new to contract interface 2018-01-10 11:24:37 +01:00
Amir Bandeali
6abc83de83
fix typo 2018-01-10 11:24:37 +01:00
Leonid Logvinov
a88be1af44
Make transactionIndex nullable 2018-01-10 11:24:36 +01:00
Leonid Logvinov
6eb5411029
Improve log events types 2018-01-10 11:24:36 +01:00
Leonid Logvinov
fdf213ef72
Constraint status type 2018-01-10 11:24:36 +01:00
Leonid Logvinov
bcc902a889
Add status to a transaction receipt 2018-01-10 11:24:36 +01:00
Sergey Ukustov
24ff2ec30c
Add async web3.personal.sign 2018-01-10 11:24:36 +01:00
Sergey Ukustov
4e0c67e2a1
Fix indentation 2018-01-10 11:24:36 +01:00
Leonid Logvinov
dd5d1c00e5
Make all parameters of FilterObject optional 2018-01-10 11:24:36 +01:00
Leonid Logvinov
005d8184aa
Add LogTopic type 2018-01-10 11:24:36 +01:00
Leonid Logvinov
ae37f8d9b6
Define sendAsync on HttpProvider 2018-01-10 11:24:36 +01:00
Leonid Logvinov
0c8cf12650
Add AbiType 2018-01-10 11:24:35 +01:00
Leonid Logvinov
162f1d94dc
Add ContractInstance type 2018-01-10 11:24:35 +01:00
Leonid Logvinov
be20e04c7b
Extend Abi types 2018-01-10 11:24:35 +01:00
Leonid Logvinov
6210333628
Add return type for sendAsync 2018-01-10 11:24:35 +01:00
Leonid Logvinov
9acb745956
Add sendAsync types in provider 2018-01-10 11:24:35 +01:00
Leonid Logvinov
a9afc0f3f0
Add Web3.isChecksumAddress 2018-01-10 11:24:35 +01:00
libertylocked
c04cbb480a
Add auth options to HttpProvider 2018-01-10 11:24:35 +01:00
Leonid Logvinov
817a6d1828
Fix linter errors 2018-01-10 11:24:35 +01:00
Leonid Logvinov
80291930f0
Make error types consistent 2018-01-10 11:24:34 +01:00
Leonid Logvinov
cf8678b979
Introduce BlockWithoutTransactionData and BlockWithTransactionData 2018-01-10 11:24:34 +01:00
Leonid Logvinov
67722c0fb8
Add LogEntry type 2018-01-10 11:24:34 +01:00
Leonid Logvinov
0b6e246c04
Add web3.personal.sign 2018-01-10 11:24:34 +01:00
Leonid Logvinov
3992295678
Add a lot of types 2018-01-10 11:24:34 +01:00
Sergey Ukustov
da404b9acc
Extract API interfaces: web3.version, web3.eth, web3.personal 2018-01-10 11:24:34 +01:00
Sergey Ukustov
da8db153be
Optional provider parameter in Web3 constructor 2018-01-10 11:24:34 +01:00
Fabio Berger
2cdb0de1c3
Add missing semi-colon 2018-01-10 11:24:34 +01:00
Fabio Berger
66bd798e80
Add missing semi-colons 2018-01-10 11:24:34 +01:00
libertylocked
cf37dfb257
Add web3.eth.blockNumber 2018-01-10 11:24:34 +01:00
Sergey Ukustov
217f84204e
Add web3.sha3 method declaration 2018-01-10 11:24:34 +01:00
Fabio Berger
14e94a5376
Use single instead of double quotes by convention 2018-01-10 11:24:34 +01:00
Fabio Berger
08508afdb2
Remove spaces between union types to remain stylistically consistent 2018-01-10 11:24:33 +01:00
Sergey Ukustov
4220f25e01
Constructor definition does not include name or constant modifier 2018-01-10 11:24:33 +01:00
Sergey Ukustov
4ff5afecc8
Revamp AbiDefinition 2018-01-10 11:24:33 +01:00
Sergey Ukustov
2eabb439d9
filter.stopWatching accepts callback 2018-01-10 11:24:33 +01:00
Sergey Ukustov
2bc9d5d490
filter.watch callback param accepts arguments 2018-01-10 11:24:33 +01:00
Leonid Logvinov
1a38893b52
Fix version typings 2018-01-10 11:24:33 +01:00
Leonid Logvinov
a3c9d0ace5
Add at function to Contract class 2018-01-10 11:24:33 +01:00
Leonid Logvinov
ef76c4c62b
Make currentProvider a variable, not a function 2018-01-10 11:24:33 +01:00
Fabio Berger
d6754685cc
remove default import 2018-01-10 11:24:33 +01:00
Fabio Berger
5c4a1dcbd5
Move interface definitions into the web3 namespace 2018-01-10 11:24:32 +01:00
Fabio Berger
15b5fcbaf9
Export all interfaces and export the web3 constructor as the default export 2018-01-10 11:24:32 +01:00
Fabio Berger
0af2ba1b7d
Move Provider type outside of namespace 2018-01-10 11:24:32 +01:00