Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #1

Merged
merged 399 commits into from Mar 3, 2019
Merged

update #1

Changes from 1 commit
Commits
Show all changes
399 commits
Select commit Hold shift + click to select a range
614b2d0
Removing default export from wordlists.
ricmoo Jul 16, 2018
3b843a1
Moving away from default exports.
ricmoo Jul 16, 2018
e4df325
Moved getNetwork to utils.
ricmoo Jul 16, 2018
0f9d0ef
Updated dist files.
ricmoo Jul 16, 2018
d1ce9f4
Refactored imports and exports to be both node-friendly and TypeScrip…
ricmoo Jul 16, 2018
1759666
Use brwoser hmac directly from browser pbkdf2.
ricmoo Jul 16, 2018
1ce4f75
Increase wallet testcases timeout for decrypting and encrypting.
ricmoo Jul 16, 2018
e8c657b
Fixed type definitions using absolute path.
ricmoo Jul 16, 2018
922de67
Updated dist files.
ricmoo Jul 16, 2018
b61b84d
Moved static Wallet calls to utils and refactors exposed types.
ricmoo Jul 17, 2018
d19df0d
Updated dist files.
ricmoo Jul 17, 2018
7e1e760
Remove editor swap file.
ricmoo Jul 17, 2018
ce864fa
Fixed browser shim for setImmediate.
ricmoo Jul 17, 2018
28927a6
Updated dist files.
ricmoo Jul 17, 2018
a67e3d1
Updated demo wallet send for v4 API.
ricmoo Jul 17, 2018
a062f75
Made Signatures more flexible for input.
ricmoo Jul 17, 2018
b712c88
Updated dist files.
ricmoo Jul 17, 2018
960919d
Version bump (pre-release: beta.0).
ricmoo Jul 17, 2018
26f5a55
Fixed some concerns of eslint.
ricmoo Jul 17, 2018
b9aca35
Updated generated version file.
ricmoo Jul 17, 2018
8c7c592
Updated dist files.
ricmoo Jul 17, 2018
c4084fe
Trying to fix Travis CI for node8; failing to load a devDependency in…
ricmoo Jul 17, 2018
d701995
Correct wallet.createRandom to have optional options.
ricmoo Jul 18, 2018
2aa2a38
Added a (hacky) way to get TypeScript to support the Contract meta-cl…
ricmoo Jul 18, 2018
fd40f66
Removing node8, which fails to load Web3 dependencies.
ricmoo Jul 18, 2018
81903e9
Updated dist files.
ricmoo Jul 18, 2018
4d4fe60
Version bump (pre-release: beta.1)
ricmoo Jul 18, 2018
d0cf0c8
Restructuring browser shims.
ricmoo Jul 22, 2018
0bc72c5
Export computePublicKey in utils.
ricmoo Jul 22, 2018
e3da92d
Lazy load the elliptic curve; also fixed circular dependencies intern…
ricmoo Jul 23, 2018
004fd7d
Make formatUnits options optional.
ricmoo Jul 23, 2018
7d4caa0
Use class instance to detect BigNumber.
ricmoo Jul 23, 2018
bfff3ea
Simpler empty modules for shims.
ricmoo Jul 23, 2018
bceefc7
Better browserify for English wordlist.
ricmoo Jul 23, 2018
3169cf2
Generalized gulpfile and split browserify from tsc.
ricmoo Jul 23, 2018
3a5ec9b
Updated dist files.
ricmoo Jul 23, 2018
62987ac
Updated test suite utils.
ricmoo Jul 23, 2018
7014afa
Fixing out-of-order browserify imports again.
ricmoo Jul 23, 2018
543ca19
Updated dist files.
ricmoo Jul 23, 2018
4db19a1
Type in console.log for tests.
ricmoo Jul 23, 2018
ae8d75f
Use ethers.wordlists for testing instead of re-import.
ricmoo Jul 23, 2018
26207e7
Added non-unified types to resolve npm link issues.
ricmoo Jul 23, 2018
5a0607d
Updated dist files.
ricmoo Jul 23, 2018
7cf8596
Added bounds checks to the number coder and fixed bytes coder.
ricmoo Jul 25, 2018
00bb205
No longer using instanceof which conflicts with npm link.
ricmoo Jul 26, 2018
97b6d8a
Updated dist files.
ricmoo Jul 26, 2018
dda957c
Removing junk files.
ricmoo Jul 26, 2018
640ed5d
Fixed recursive promise filling for contract calls.
ricmoo Jul 26, 2018
73486d6
Added public and stateMutability for payable to ABI coder.
ricmoo Jul 26, 2018
1d98928
Updated dist files.
ricmoo Jul 26, 2018
a1a765f
Fixed types for Log Description.
ricmoo Jul 26, 2018
d2b6570
Updated dist files.
ricmoo Jul 26, 2018
29f3d2d
Fixed long fixed-length bytes from overflowing encoded ABI. (#237)
ricmoo Jul 26, 2018
294d0fd
Added longer timeout for basic authentication test.
ricmoo Jul 26, 2018
d05da1e
Added transactionHash to error for consistency.
ricmoo Jul 27, 2018
a966a60
Changed constant name for consistency.
ricmoo Jul 27, 2018
c6c5ba0
Updated dist files.
ricmoo Jul 27, 2018
9b88529
Major re-factor of the library layout for TypeScript; still up for di…
ricmoo Jul 30, 2018
cc6f658
Added support for Web3 v1.0 providers.
ricmoo Jul 31, 2018
22f0074
Updated dist files.
ricmoo Jul 31, 2018
f0dfa50
Adding node 8 back into tests.
ricmoo Jul 31, 2018
4b15229
Calculate estimated gasLimit for JsonRpcProvider.
ricmoo Aug 1, 2018
cb6d180
Added error code detection for sendTransaction.
ricmoo Aug 1, 2018
3e091a2
Added Vyper-style gas ABI support.
ricmoo Aug 1, 2018
b73a964
Moved type to enum for hmac SupportedAlgorithms.
ricmoo Aug 1, 2018
558ef2c
Updated ethers exported structure.
ricmoo Aug 1, 2018
957ccd2
Updated dist files and tests.
ricmoo Aug 1, 2018
3cd0e8b
New custom Mocha reporter so Travis CI output is browser friendly.
ricmoo Aug 2, 2018
c755551
Using the Vyper-style gas limits sans the base cost.
ricmoo Aug 2, 2018
3198bc2
Updated dist files.
ricmoo Aug 2, 2018
30a84d8
Fixing long-output-delay issue on Travis CI.
ricmoo Aug 2, 2018
5c8703f
Restructuring for TypeScript.
ricmoo Aug 3, 2018
bacf42a
Updated dist files.
ricmoo Aug 3, 2018
421b2c8
Fixing TypeScript compiler using host paths for resolving constants.
ricmoo Aug 3, 2018
1c45840
Updated dist files.
ricmoo Aug 3, 2018
694c0b3
Added test case to check build for TypeScript host-path mayhem.
ricmoo Aug 3, 2018
f63c844
Added support for getting JsonRpcSigner by index and fixed gas limit …
ricmoo Aug 3, 2018
4f63b82
Updated dist files.
ricmoo Aug 3, 2018
7f1fbfc
Make wallet.encrypt options optional.
ricmoo Aug 4, 2018
fcee62a
Fixed parseSignature with empty parameter lists.
ricmoo Aug 4, 2018
e3b04bb
Updated dist files.
ricmoo Aug 4, 2018
b44a808
Removed dead dist files.
ricmoo Aug 5, 2018
a80a8a8
Fixed miscalculating estimated fees for payable functions.
ricmoo Aug 5, 2018
9e0bfa7
Updated dist files.
ricmoo Aug 5, 2018
3635a9b
Fixed custom network chain ID check.
ricmoo Aug 13, 2018
f9723c4
Re-use shallowCopy.
ricmoo Aug 13, 2018
2c1022c
Removed timeout from wait so we can use confirmations in the future i…
ricmoo Aug 13, 2018
46a55a1
Removing old dead code.
ricmoo Aug 13, 2018
e4d5786
Fixed isType for null values.
ricmoo Aug 13, 2018
f4c3073
Removed BigNumber and AbiCoder objects from utils and exposed them at…
ricmoo Aug 13, 2018
2b88efe
Updated dist files.
ricmoo Aug 13, 2018
0358e8a
Fixed typo in units for finney (#259).
ricmoo Aug 21, 2018
388b658
Invalid utf-8 strings now fail by default.
ricmoo Aug 21, 2018
e092746
Removed jsonCopy and added deepCopy instead (#261).
ricmoo Aug 21, 2018
810e9e7
Updated dist files.
ricmoo Aug 21, 2018
ce837e3
Fixed test DRNG.
ricmoo Aug 21, 2018
102a4e8
Added tests for utf-8 errors.
ricmoo Aug 21, 2018
2d35e5e
Fixed test cases for finney units.
ricmoo Aug 21, 2018
2b9d8d6
Silence warning for external keyword in human-readable ABI.
ricmoo Aug 27, 2018
280dc56
Removing address from JsonRpcSigner and cache address (#263).
ricmoo Aug 27, 2018
afae5cd
Block calling contract methods until it deployed, if it is pending de…
ricmoo Aug 27, 2018
ea5a56f
Updated dist files.
ricmoo Aug 27, 2018
962f750
Skip dist checks for node 6 to fix Travis CI.
ricmoo Aug 27, 2018
5efd0c1
Backport fix for EIP-848 status codes from v4; only an error is gener…
ricmoo Aug 27, 2018
ae4cd90
Updated dist files.
ricmoo Aug 27, 2018
284ffdf
Updated provider testcase for updated address.
ricmoo Aug 27, 2018
b5408bc
Updated readme with beta cdn link.
ricmoo Aug 27, 2018
32a070d
Added support for fetching block transactions with blocks.
ricmoo Sep 4, 2018
7aebe53
Change Buffer constructor to safer operations (#265).
ricmoo Sep 4, 2018
6018bf6
Make AbstractSigner provider readonly.
ricmoo Sep 4, 2018
e0cefb0
Added VoidSigner for read-only access as a specific address.
ricmoo Sep 4, 2018
9dcf6f3
Added headers and timeout to fetchJson (#224 #257).
ricmoo Sep 6, 2018
13e50ec
Exposed more secp256k1 primitives (#233 #271).
ricmoo Sep 6, 2018
eef07e5
Updated dist files.
ricmoo Sep 6, 2018
b9829f2
Remove beta dist file.
ricmoo Sep 6, 2018
f02f4bc
Enabled ropsten test cases for Etherscan (it is back up).
ricmoo Sep 20, 2018
9d04f2c
Prevent odd-length values from being passed in as bytesXX (#281).
ricmoo Sep 20, 2018
829a56c
Updated dist files.
ricmoo Sep 20, 2018
892f30a
Check HTTP status before parsing body in fetchJson (#280).
ricmoo Sep 20, 2018
25337d4
Fix typo in error message (#272).
ricmoo Sep 20, 2018
8b2e572
Do not override nonce if forced to 0 (#282).
ricmoo Sep 20, 2018
65fa0b7
Updated dist files.
ricmoo Sep 20, 2018
1576102
Added constructor support for Human-Readable ABI.
ricmoo Sep 21, 2018
9c87e56
Added Ethereum Classic Testnet to networks.
ricmoo Sep 21, 2018
05e30f4
Major overhaul of file layout and import/export structure to better s…
ricmoo Sep 24, 2018
f4dd5d1
Updated dist files.
ricmoo Sep 24, 2018
57439af
Removed options from unit conversion and added separate otto-safe com…
ricmoo Sep 26, 2018
543e12c
Changing contract deployment to ContractFactory.
ricmoo Sep 26, 2018
e582bd7
Updated unit test cases.
ricmoo Sep 26, 2018
f4e247f
Fixed trailing-zero issue after commify fix.
ricmoo Sep 26, 2018
7b5ce86
Updated dist files.
ricmoo Sep 26, 2018
cb68403
Fixed test case for phantomjs; non-ES3 token.
ricmoo Sep 26, 2018
8c6eb55
Updated wordlists with new library layout for Wordlist.
ricmoo Sep 27, 2018
c8a75ab
Updated README.
ricmoo Sep 27, 2018
1ca203c
Remove unused dist files.
ricmoo Sep 27, 2018
5f6bc40
Added failure count to test case reporter.
ricmoo Sep 27, 2018
ef5d19e
More logical interface for hexDataSlice (mimic slice).
ricmoo Sep 27, 2018
2ad1105
Updated dist files.
ricmoo Sep 27, 2018
d387630
Merge branch 'master' into typescript
ricmoo Sep 27, 2018
061b0ea
Version bump (major).
ricmoo Sep 27, 2018
15cd0d8
Fixed twitter link in README.
ricmoo Sep 28, 2018
5e86e02
Fixed wildcard events and made nested events more robust (#289).
ricmoo Oct 1, 2018
c9c5b4d
Added chainId as supported override for contract transactions.
ricmoo Oct 1, 2018
5a0ebf8
Updated dist files.
ricmoo Oct 1, 2018
d936b4c
Fixed scrypt for long passwords (#223).
ricmoo Oct 3, 2018
281bd06
Added support for JSON serialized BigNumbers in the constructor (#288).
ricmoo Oct 3, 2018
c34a1f7
Added French and Spanish BIP-39 wordlists (#191).
ricmoo Oct 3, 2018
b9c07b5
Added French and Spanish wordlist dist files.
ricmoo Oct 4, 2018
f6d946c
Updated dist files.
ricmoo Oct 4, 2018
0dafd83
Increased timeout for querying npm registry.
ricmoo Oct 4, 2018
aeac2cd
Added French and Spanish includes to phantomjs test page.
ricmoo Oct 4, 2018
cb5f9f5
Fixed French and Spanish for browsers without Uint8Array.forEach.
ricmoo Oct 4, 2018
99fed75
Added version to errors.
ricmoo Oct 4, 2018
cc5b157
Updated dist files.
ricmoo Oct 4, 2018
731f189
Fixed nested errors for providers that were masking true error (#292).
ricmoo Oct 4, 2018
9797b36
Added confirmations to TransactionResponse (#156, #238).
ricmoo Oct 4, 2018
908c2c1
Fixed confirmations tests and bootstrap fast blockNumber.
ricmoo Oct 4, 2018
24335d0
Fix for geth-etc (official geth is fine), which returns Receipts befo…
ricmoo Oct 4, 2018
f5c7ccb
Added ability to wait for a specific number of confirmations (#229).
ricmoo Oct 4, 2018
2481581
Added automatic event parsing for contract transaction receipts from …
ricmoo Oct 4, 2018
3736a15
Updated dist files.
ricmoo Oct 5, 2018
b2db10e
Mark progressCallback as optional (#293).
ricmoo Oct 7, 2018
71f781d
Added French and Spanish to test-hdnode.
ricmoo Oct 7, 2018
e39e2ed
Added address to HDNode (#196).
ricmoo Oct 7, 2018
9b118af
Updated dist files.
ricmoo Oct 7, 2018
84344ac
Check all transaction parameters are valid; protect against typos (#2…
ricmoo Oct 11, 2018
493273d
Added optional blockTag to call; note that this may not behave as exp…
ricmoo Oct 11, 2018
6996dd8
Updated dist files.
ricmoo Oct 11, 2018
6ac2d92
Fixed filtering with null non-indexed parameters (#305).
ricmoo Oct 13, 2018
5020897
Updated dist files.
ricmoo Oct 13, 2018
e39cd84
Fixed test cases for phantomjs (must use ES3 syntax).
ricmoo Oct 13, 2018
023a20f
Fixed and refactored populating transaction values for signers (#306).
ricmoo Oct 14, 2018
f682861
Fixed utils.poll from mutating passed variables.
ricmoo Oct 14, 2018
d54609a
Fixed lingering polling timer when no events left to process in a pro…
ricmoo Oct 14, 2018
fa68385
Updated dist files.
ricmoo Oct 14, 2018
4852e83
Fix for Kovan filters without an address (#339).
ricmoo Nov 8, 2018
3a19f43
Added "debug" event for providers; do not depend on the format as it …
ricmoo Nov 8, 2018
28a52cd
Fix for when blockTag is specified as a null equivalent value in cont…
ricmoo Nov 8, 2018
be0488a
Updated dist files.
ricmoo Nov 8, 2018
7bfaf29
Added shims for React-Native support.
ricmoo Nov 8, 2018
fad902b
Better error message when normalize is missing.
ricmoo Nov 9, 2018
478aaf9
Force unorm shim when String.prototype.normalize is broken (#338).
ricmoo Nov 9, 2018
09b698b
Updated dist files.
ricmoo Nov 9, 2018
93152ef
Do not replay block events when the provider event block is reset (#3…
ricmoo Nov 12, 2018
88f2f51
Fix spacing in checkArgument errors (#318).
ricmoo Nov 12, 2018
24757f1
Updated dist files.
ricmoo Nov 12, 2018
048c571
Fixed 0 confirmation waiting (#346).
ricmoo Nov 13, 2018
09208fa
Updated dist files.
ricmoo Nov 13, 2018
bffc557
Added default provider support for Ethereum classic (#351).
ricmoo Nov 20, 2018
98143a8
Updated dist files.
ricmoo Nov 20, 2018
31d3ee8
Throw exception instead of returning null for getDefaultProvider (#351).
ricmoo Nov 21, 2018
e6c943d
Updated dist files.
ricmoo Nov 21, 2018
ef8b9c3
Support for platforms where UTF-8 is only half broken.
ricmoo Nov 27, 2018
bb6bc4c
Check for partially-working normalize support.
ricmoo Nov 27, 2018
6830484
Updated dist files.
ricmoo Nov 27, 2018
3f76f60
Fixed contract proxied tx.wait receipt properties (#355).
ricmoo Nov 27, 2018
db383a3
Updated dist files.
ricmoo Nov 27, 2018
bc457bb
Allow any whitespace characters in human-readable ABI (#360).
ricmoo Dec 4, 2018
9565c28
More relaxed transaction parsing (#357).
ricmoo Dec 4, 2018
2d854bd
Do not fill in implicit values for JSON-RPC based signers (#335).
ricmoo Dec 4, 2018
a863037
Updated dist files.
ricmoo Dec 4, 2018
16fdf6b
Added gas estimation back into JsonRpcSigner (#365).
ricmoo Dec 5, 2018
f56fc57
Squashed unhandled promise exception for Providers that are never use…
ricmoo Dec 5, 2018
4f6748e
Include request body in web errors.
ricmoo Dec 5, 2018
6ca1d77
Fixed function name in parsed transactions (#370).
ricmoo Dec 8, 2018
fefdd51
Updated dist files.
ricmoo Dec 8, 2018
66440b8
Better error messages for namehash (#364).
ricmoo Dec 10, 2018
51fb472
Add abs method to BigNumber (#375).
ricmoo Dec 12, 2018
152d672
Add isHexString to exported utils (#367).
ricmoo Dec 12, 2018
918b66b
Fixed typo in error strings (#376).
ricmoo Dec 12, 2018
bcba17a
Allow nonce to be a BigNumber (#228).
ricmoo Dec 12, 2018
26eb6cc
Updated dist files.
ricmoo Dec 12, 2018
4bc62a1
Make it easier for sub-classes of Wallet to manage nonces.
ricmoo Dec 14, 2018
99a2166
Allow unchecked transactions which will remain unwrapped for the Json…
ricmoo Dec 14, 2018
c88cb5e
Updated dist files.
ricmoo Dec 14, 2018
f3ec27b
Added customizable log levels to quiet warnings (#379).
ricmoo Dec 27, 2018
c2ce59f
Updated dist files.
ricmoo Dec 27, 2018
6d08968
Fixed contract removeAllListeners which did not clean up the event lo…
ricmoo Jan 15, 2019
4425536
Updated dist files.
ricmoo Jan 15, 2019
e5bee7e
Fixed path for x-ethers metadata and wallet (#).
ricmoo Jan 17, 2019
eac0805
Updated dist files.
ricmoo Jan 17, 2019
5f01321
Fixed long-response bug in IpcProvider (#384).
ricmoo Jan 21, 2019
f2dd977
Added v3 INFURA end-points to InfuraProvider (#286).
ricmoo Jan 23, 2019
700dd34
Added to and from for Transaction Receipts (#398).
ricmoo Jan 23, 2019
9f201c3
Updated dist files.
ricmoo Jan 23, 2019
b5f720a
Ganache does not include from in receipts (#400).
ricmoo Jan 24, 2019
774b2d5
Updated dist files.
ricmoo Jan 24, 2019
908258f
Fixed duplicate events from triggering (#404).
ricmoo Jan 26, 2019
36172f7
Updated dist files.
ricmoo Jan 26, 2019
18ee2c5
Support for xpub and xpriv derivation and generating extended keys; n…
ricmoo Feb 1, 2019
3a3764b
Added xpub and xpriv test cases for HD nodes (#405).
ricmoo Feb 2, 2019
af3aed4
Added xpub and xpriv deserialization (#405).
ricmoo Feb 2, 2019
11fffd1
Updated dist files.
ricmoo Feb 2, 2019
429af2c
Fixed test-hdnode for phantomjs; does not support let keyword.
ricmoo Feb 2, 2019
14484e5
Fixed missing TypeArray slice on constrained environments.
ricmoo Feb 4, 2019
527de7b
Updated dist files.
ricmoo Feb 4, 2019
9785eed
Added goerli testnet support (#421).
ricmoo Feb 8, 2019
41c2c8a
Fixed out-of-safe-range hexlify values to throw an exception (#420).
ricmoo Feb 8, 2019
60b75c1
Initial support for EIP-234; filter by blockHash (#412).
ricmoo Feb 9, 2019
a2306f7
Fixed utils test case for phantomjs.
ricmoo Feb 9, 2019
86e8159
Updated dist files.
ricmoo Feb 9, 2019
8fab48a
Updated balance address for Goerli test cases.
ricmoo Feb 12, 2019
0ed983a
Fixed support for calling self-destructed contracts (#411).
ricmoo Feb 12, 2019
c6d7b31
Updated dist files.
ricmoo Feb 12, 2019
e4a2f8a
Updated BIP39 list in readme.
ricmoo Feb 12, 2019
72edcd0
Fixed waitForTransaction and removeListener (#410).
ricmoo Feb 12, 2019
94b0abc
Updated dist files.
ricmoo Feb 12, 2019
c15a898
Fix waitForTransaction delay (#424).
ricmoo Feb 15, 2019
f318fd9
Added fastRetry to polling for JsonRpcSigner to improve polling for s…
ricmoo Feb 15, 2019
0564817
Updated dist files.
ricmoo Feb 15, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+9 −3
Diff settings

Always

Just for now

Updated dist files.

  • Loading branch information...
ricmoo committed Jul 17, 2018
commit b712c88088dfab036c65ffcaf4dfa1e49d266630
Copy path View file
@@ -148,7 +148,7 @@ declare module 'ethers/utils/types' {
export interface Signature {
r: string;
s: string;
recoveryParam: number;
recoveryParam?: number;
v?: number;
}
export type Network = {
Copy path View file
@@ -13386,6 +13386,9 @@ function splitSignature(signature) {
var v = 0;
var r = '0x', s = '0x';
if (isSignature(signature)) {
if (signature.v == null && signature.recoveryParam == null) {
errors.throwError('at least on of recoveryParam or v must be specified', errors.INVALID_ARGUMENT, { argument: 'signature', value: signature });
}
r = hexZeroPad(signature.r, 32);
s = hexZeroPad(signature.s, 32);
v = signature.v;
Copy path View file

Large diffs are not rendered by default.

Oops, something went wrong.
Copy path View file

Large diffs are not rendered by default.

Oops, something went wrong.
Copy path View file
@@ -216,6 +216,9 @@ function splitSignature(signature) {
var v = 0;
var r = '0x', s = '0x';
if (isSignature(signature)) {
if (signature.v == null && signature.recoveryParam == null) {
errors.throwError('at least on of recoveryParam or v must be specified', errors.INVALID_ARGUMENT, { argument: 'signature', value: signature });
}
r = hexZeroPad(signature.r, 32);
s = hexZeroPad(signature.s, 32);
v = signature.v;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.