Lawrence Forman
c546787994
@0x/contract-addresses
: Redeploy DFB on kovan.
...
`@0x/contracts-utils`: Reorganize `DeploymentConstants` addresses.
2020-07-10 01:29:28 -04:00
Xianny
7127f541c3
UniswapV2Bridge ( #2590 )
...
* implement UniswapV2 Bridge
* More tests for UniswapV2Bridge
* cleanup and remove ERC20BridgeSampler changes
* enable multihop; address review comments
* solidity 0.6.9 doesnt allow devdoc for public storage vars
* codestyle improvements
2020-06-05 11:56:52 -07:00
xianny
b8d51fc4e8
rename contract to UniswapV2Router01
...
https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/UniswapV2Router01.sol
2020-06-03 12:08:08 -07:00
Lawrence Forman
429f2bb8dd
@0x/contracts-utils
: Add UniswapV2 to DeploymentConstants
.
2020-06-03 13:57:59 -04:00
Lawrence Forman
2fce332ed7
ZeroEx: TransformERC20, TokenSpender ( #2545 )
...
* `@0x/contracts-utils`: Convert more 0.6 contracts
* `@0x/contracts-erc20`: Add solidity 0.6 contracts.
* `@0x/utils`: Add new `ZeroExRevertErrors` revert types
* `@0x/contracts-zero-ex`: Introduce the `TransformERC20` feature.
* `@0x/subproviders`: Update ganache-core.
`@0x/web3-wrapper`: Update ganache-core.
* `@0x/contracts-zero-ex`: Make `TokenSpender`'s puppet contract a distinct contract type and rename `getTokenSpenderPuppet()` to `getAllowanceTarget()`
* `@0x/zero-ex`: Rebase and use "slot" instead of "offset" language in storage buckets.
* `@0x/web3-wrapper`: Add `getAccountNonceAsync()` to `Web3Wrapper`
* `@0x/contracts-zero-ex`: Revamp TransformERC20.
* `@0x/contracts-zero-ex`: Remove `payable` from `IERC20Transformer.transform()` and disable hex capitalization linter rule because of prettier conflicts.
* `@0x/contracts-zero-ex`: Use `immutable` owner in `Puppet` instead of `Ownable`.
* `@x/utils`: Address review feedback.
* `@0x/contracts-zero-ex`: Address review feedback.
* `@0x/contracts-utils`: Address review feedback.
* `@0x/contracts-zero-ex`: Return deployment nonce in `transform()`.
* `@0x/contracts-zero-ex`: Finish returning deployment nonce in `transform()`.
* `@0x/contracts-zero-ex`: Fix doc-gen bug.
* `@0x/contracts-zero-ex`: Address review comments.
* `@0x/utils`: Add `NegativeTransformERC20OutputERror`
* `@0x/contracts-zero-ex`: Revert if the taker's output amount decreases.
Co-authored-by: Lawrence Forman <me@merklejerk.com>
2020-05-20 22:47:21 -04:00
Lawrence Forman
feb672c3cd
@0x/contracts-utils
: Make IOwnableV06
conform to IOwnable
.
2020-04-28 12:16:11 -04:00
Lawrence Forman
4212a08337
@0x/contracts-utils
: Add solidity 0.6 contracts
2020-04-21 22:29:46 -04:00
Jacob Evans
277dbacf68
Set GSTCollector address and deploy Curve ( #2530 )
...
* Set GSTCollector address and deploy Curve
* CHANGELOGs
2020-03-26 18:26:16 +10:00
Jacob Evans
568e9be07e
Gas Tokens in Bridges ( #2523 )
...
* Gas Tokens in Bridges
* Added freesGasTokensFromCollector.
To handle the case where GST2 is being traded and the balanceOf checks become confusing
* Update CHANGELOGs
2020-03-26 11:58:28 +10:00
Lawrence Forman
c47825a820
@0x/contract-addresses
: Redeploy bridges.
2020-03-05 18:39:48 -05:00
Lawrence Forman
5e0758917b
@0x/contracts-utils
: Update DevUtils
address in DeploymentConstants
.
2020-02-24 12:42:01 -05:00
Lawrence Forman
3da03da32a
@0x/contracts-utils
: Add D18
library.
2020-02-19 16:19:09 -05:00
Lawrence Forman
865a253eb5
@0x/contracts-utils
: Roll back additions to LibFractions
.
...
`@0x/contracts-dev-utils`: Add `D18` library for working with base-10, 18-digit decimals.
`@0x/contracts-dev-utils`: Use `D18` library instead of `LibFractions` in `LibDydxBalance`.
2020-02-19 15:45:27 -05:00
Lawrence Forman
9b3781abf1
Cherry pick dydx validation from #2456
2020-02-19 15:45:27 -05:00
Lawrence Forman
646b6dafb2
@0x/contract-addresses
Redeploy Eth2DaiBridge
and ERC20BridgeSampler
.
2020-02-07 01:56:59 -05:00
Lawrence Forman
8d10f33a3f
@0x/contracts-utils
: Update Eth2Dai address.
2020-02-07 01:56:59 -05:00
Lawrence Forman
cb69921202
ERC20BridgeSampler: Unlock full sampling on Kovan ( #2459 )
...
* `@0x/contracts-utils`: Update kovan addresses in `DeploymentConstants`
* `@0x/contracts-erc20-bridge-sampler`: Make source IDs static on all networks, not inherited from `DeploymentConstants`.
* `@0x/contract-addresses`: Update `ERC20BridgeSampler` addresses on mainnet and kovan.
Co-authored-by: Lawrence Forman <me@merklejerk.com>
2020-01-31 11:27:28 -05:00
Amir Bandeali
fa99b75d1f
Redeploy Forwarder and all bridges
2020-01-06 22:12:05 -08:00
Lawrence Forman
b7b457b076
Generate (complete) solidity docs ( #2391 )
...
* `@0x/sol-doc`: New doc generator.
* `@0x/sol-compiler`: Be more tolerant of AST-only compilation targets.
* `@0x/contracts-exchange`: Add more devdoc comments.
`@0x/contracts-exchange-libs`: Add more devdoc comments.
* `@0x/sol-doc`: Update package script.
* `@0x/sol-doc`: Remove unused files and update package scripts to be easier to configure.
* Add more devdocs to contracts.
* `@0x/sol-doc`: Remove doc artifacts.
* `@0x/sol-doc`: Add `.gitignore` and `.npmignore`.
* `@0x/contracts-exchange`: Fix compilation errors.
* Fix more broken contracts.
* `@0x/contracts-erc20-bridge-sampler`: Fix failing tests.
* `@0x/contracts-asset-proxy`: Remove accidentally introduced hackathion file (lol).
* `@0x/sol-doc`: Prevent some inherited contracts from being included in docs unintentionally.
* `@0x/sol-doc`: Rename test file.
* `@0x/contracts-exchange`: Update `orderEpoch` devdoc.
* `@0x/sol-doc`: Tweak event and function docs.
* Update CODEOWNERS.
* `@0x/sol-doc` Tweak function md generation.
* `@0x/sol-doc`: add `transformDocs()` tests.
* `@0x/sol-doc`: add `extract_docs` tests.
* `@0x/sol-doc` Fix linter errors.
* `@0x/contracts-erc20-bridge-sampler`: Fix broken `ERC20BridgeSampler.sol` compile.
* `@0x/sol-doc` Fix mismatched `dev-utils` dep version.
* `@0x/sol-doc`: Add `gen_md` tests.
* `@0x/sol-doc`: Remove `fs.promises` calls.
* `@0x/sol-doc`: Fix linter errors.
* `@0x/sol-doc`: Export all relevant types and functions.
Co-authored-by: Lawrence Forman <me@merklejerk.com>
2020-01-03 22:59:18 -05:00
Lawrence Forman
d55eea2239
ERC20BridgeSampler: Gas limits ( #2405 )
...
* `@0x/contracts-erc20-bridge-sampler`: Add gas limits to external quote calls.
`@0x/contract-addresses`: Point `erc20BridgeSampler` to new version.
* `@0x/contracts-utils`: Add kovan addresses to `DeploymentConstants`.
`@0x/contract-addresses`: Add kovan `ERC20BridgeSampler` address.
* `@0x/contracts-erc20-bridge-sampler`: Fix changelog.
* `@0x/contracts-erc20-bridge-contracts`: Fix invalid CHANGELOG json (I hope).
2019-12-20 00:08:39 -05:00
Greg Hysen
bec1f23616
Fixed merge conflicts
2019-12-13 11:06:16 -08:00
Greg Hysen
56cbb69401
DyDx bridge implementation using contract as maker with signature validation.
2019-12-13 10:56:54 -08:00
Lawrence Forman
70870ffcd2
Swallow reverts in ERC20BridgeSampler ( #2395 )
...
* `@0x/erc20-bridge-sampler`: Do not query empty/unsigned orders. Swallow revets on DEX quotes.
* `@0x/contracts-utils`: Add `DEV_UTILS_ADDRESS` and `KYBER_ETH_ADDRESS` to `DeploymentConstants`.
* `@0x/contracts-erc20-bridge-sampler`: Address review comments.
2019-12-13 10:53:25 -08:00
Amir Bandeali
a7c435adc4
Add mainnet deployment addresses for Dai, Chai, and ERC20BridgeProxy
2019-12-01 15:40:29 -08:00
Alex Towle
1fd92b6cbd
Added unit tests for onlyAuthorized
2019-11-25 14:02:53 -06:00
Lawrence Forman
460d5f2517
@0x/contracts-utils
: Add DeploymentConstants
.
2019-11-20 05:50:15 -05:00
Alex Towle
41d99e77c7
@0x:contracts-utils
Removed SafeMath and the use of the contract throughout contracts/
2019-10-15 14:31:48 -07:00
Alex Towle
1cf8ae5909
@0x:contracts-utils
Removed several functions from LibBytes
2019-10-14 11:54:02 -07:00
Alex Towle
65f2626544
@0x:contracts-utils
Updated the OwnershipTransferred
event to be closer to OpenZeppelin's event
2019-10-10 10:58:58 -07:00
Alex Towle
dc0a78434d
@0x:contracts-utils
Updated files
2019-10-08 19:27:39 -07:00
Alex Towle
d1b0384aef
@0x:contracts-utils
Added an event for ownership transfers
2019-10-08 19:22:27 -07:00
mzhu25
ee508f70bc
Merge pull request #2228 from 0xProject/fix/3.0/refundFinalBalanceNoReentry
...
refundFinalBalanceNoReentry
2019-10-06 13:39:04 -07:00
Michael Zhu
0e7387550c
Update contracts
2019-10-06 12:44:58 -07:00
Michael Zhu
3948f8b66b
Replace nonReentrant + refundFinalBalance with refundFinalBalanceNoReentry
2019-10-01 15:39:50 -07:00
Alex Towle
b178d025b5
@0x:contracts-staking
Added unit tests for MixinExchangeManager
2019-09-25 15:32:02 -07:00
Amir Bandeali
57f5b12e24
Cleanup rich reverts
2019-09-24 18:13:37 -07:00
Amir Bandeali
b359738037
Update EIP712 domain separator schema
2019-09-23 15:59:30 -07:00
Lawrence Forman
9dd8c61a2f
@0x/contract-staking
: Address review nits.
...
`@0x/contracts-utils`: Use `safeDiv()` in `LibFractions.normalize()`.
2019-09-23 11:55:02 -04:00
Lawrence Forman
3ad7728a0e
@0x/contracts-staking
: Remove IStructs.CumulativeRewardInfo
, etc.
...
`@0x/contracts-staking`: Convert all rewards to WETH.
`@0x/contracts-staking`: Style changes.
`@0x/contracts-staking`: Address misc. review comments.
`@0x/contracts-staking`: Make `LibFractions` scaling a separate step.
2019-09-22 12:17:05 -04:00
Lawrence Forman
ac7f6aef9e
@0x/contracts-staking
: It compiles!
2019-09-22 12:11:47 -04:00
Lawrence Forman
527ec28915
@0x/contracts-utils
: Add auto-scaling and zero-value optimizations to LibFractions
.
2019-09-22 12:10:41 -04:00
Lawrence Forman
0196ce18f3
@0x/contracts-staking
: Last call before embarking of V3 of staking integration.
2019-09-22 12:10:41 -04:00
Lawrence Forman
7ef3c12722
@0x/contracts-staking
: Well, it almost worked.
2019-09-22 12:10:41 -04:00
Lawrence Forman
06b4d241af
@0x/contracts-staking
: Working on MBF v2
2019-09-22 12:07:11 -04:00
Amir Bandeali
45c7653850
Initialize Authorizable instead of Ownable in constructors, fix tests that use onlyOwner modifier
2019-09-20 17:16:35 -07:00
Amir Bandeali
e1c57cf0af
Refactor Authorizable to use internal methods
2019-09-20 16:55:30 -07:00
Greg Hysen
12f0797ace
Reference counting for rewards, plus unit tests for cumulative rewards.
2019-09-14 00:04:52 -07:00
James Towle
c21bce9641
Merge pull request #2130 from 0xProject/feature/staking/protocol-fees
...
Feature/staking/protocol fees
2019-09-09 15:13:33 -07:00
Alex Towle
2fdd4e9760
@0x:contracts-staking
Addressed some review comments
2019-09-09 10:25:19 -07:00
Amir Bandeali
35bf179b70
Clear compiler warnings
2019-09-07 22:20:47 -07:00