Commit Graph

17203 Commits

Author SHA1 Message Date
Duncan Townsend
ac563f5164 Zero out missing UniswapV2 on Polygon 2023-04-10 12:08:56 -04:00
Patrick Dowell
ca7393641f Deploy script for MTX V2 and multiplex 2023-04-10 03:55:09 -07:00
Patrick Dowell
6e926af41c Making executeMetaTransactionV2 nonpayable and addressing a few other minor issues 2023-03-21 14:42:45 -07:00
Patrick Dowell
172822044b Fixing multiHopSellOtcOrder when params.useSelfBalance is true 2023-02-24 10:45:49 -08:00
abls
a0485ca3e0 fix _computeHopTarget for otc subcalls 2023-02-24 05:14:03 -08:00
Patrick Dowell
f32e834e11 add multiHopBatchSellOtc to MultiplexFeature, fix _computeHopTarget for MultiplexSubcall.OTC [#667] 2023-02-23 23:27:35 -08:00
Patrick Dowell
b5c18c2a9e Removing ZERO_ADDRESS 2023-02-23 17:54:00 -08:00
Patrick Dowell
217348f31b cleaning up and adding batchExecuteMetaTransaction tests 2023-02-23 17:47:56 -08:00
Patrick Dowell
65a2024285 minor test fix 2023-02-23 17:12:57 -08:00
abls
b942551e33 prettier 2023-02-23 16:50:30 -08:00
abls
4c837110f2 add some tests for multiplex metatransactions 2023-02-23 16:39:07 -08:00
Patrick Dowell
88c96659a1 Fixing multiplex test failure 2023-02-23 13:26:20 -08:00
Patrick Dowell
152accf9c1 Complex rebase of test code based on changes in #655 2023-02-23 02:38:37 -08:00
Patrick Dowell
0f5d832daf Addressing suggestions from PR reviewers 2023-02-23 02:07:25 -08:00
Patrick Dowell
13dd95688d Fixing issues with EIP 712 signature, adding test case against MetaMask, and fixing lint issues 2023-02-23 02:07:25 -08:00
Patrick Dowell
15f79feb81 More linting 2023-02-23 02:07:25 -08:00
Patrick Dowell
3b55a88fc5 Ran prettier to clean up 2023-02-23 02:07:25 -08:00
Patrick Dowell
cdb94d1780 add multiplexBatchSellTokenForToken, multiplexMultiHopSellTokenForToken, multiplex TokenForEth functions to metatransactions, add msgSender field to multiplex params 2023-02-23 02:07:25 -08:00
Patrick Dowell
865c1f05db MetaTransactionV2 creation and forge tests 2023-02-23 02:07:25 -08:00
Patrick Dowell
2bbf3956f3 MetaTransactionData changes 2023-02-23 02:07:25 -08:00
Patrick Dowell
5cf4cbe4b5 MetaTransactionV2 creation and forge tests 2023-02-23 02:07:25 -08:00
Patrick Dowell
f402c96053 MetaTransactionData changes 2023-02-23 02:06:19 -08:00
Andy
38665ffc86 Migrate the multiplex tests to foundry (#655)
* add some tests for multiplex using foundry

* remove try/catch from multiplex foundry tests

* refactor multiplex forge tests

* fix broken import, remove dead code

---------

Co-authored-by: Patrick Dowell <patrick.dowell@gmail.com>
2023-02-22 19:16:48 -05:00
Kevin Liao
459fb3ee28 update changelog (#666) 2023-02-21 11:17:50 -05:00
Kevin Liao
dc8ff32d51 feat: Add Kyber Elastic mixin to Ethereum/Polygon/Arbitrum/Avalanche Bridge Adapters [LIT-753] (#661)
* add kyber elastic to ethereum and polygon

* add to arbitrum and avalanche

* added kyber quoter/router dummy addresses

* move kyberelastic test to a different file, fix some bugs with addresses, blocknumber

* lint
2023-02-21 10:31:05 -05:00
Elena
9f30823d70 Migrate erc20-contracts to foundry (#664)
* Strip erc20 package of legacy nonsense and add foundry basics

* Make foundry build

* Remove obsoleted test/UntransferrableDummyERC20Token.sol contract

* Remove obsoleted ERC20 lib variant contracts

* Remove obsoleted DummyMultipleReturnERC20Token and DummyNoReturnERC20Token contracts

* Move test contract to dedicated folder
and remove obsoleted TypeScript contract wrappers

* Remove src/interfaces/IEtherToken.sol only used in
v3 staking which is being obsoleted [skip ci]

* Add foundry test for token

* Migrate ZRX token tests to foundry

* Fix paths to erc20 contracts

* Remove obsoleted references

* Pin erc20-contracts package on treasury

* Ignore foundry imports in link checker

* Run only forge tests for erc20 contracts

* Remove DummyERC20Token and its dependencies

* Merge IERC20TokenV06 and IERC20TokenV08
into range pragma to cover solidity 0.6.5 to 0.8.x

* Merge IEtherTokenV06 and IEtherTokenV08
into range pragma to cover solidity 0.6.5 to 0.8.x

* Migrate weth9 tests to foundry

* Upload code coverage for erc20 package

* Update changelog

* Fix review comments

Co-authored-by: duncancmt <1207590+duncancmt@users.noreply.github.com>

---------

Co-authored-by: duncancmt <1207590+duncancmt@users.noreply.github.com>
2023-02-19 20:04:24 +02:00
Elena
f2f835591e Code coverage improvements (#656)
* Add check for coverage threshold

* Rename WrapEth foundry test file to .t.sol
2023-02-08 09:04:17 +02:00
Jacob Evans
8c35931041 fix: Coverage with forked ENV vars (#659)
* fix: Coverage with forked ENV vars

* set foundry env vars at the job level
2023-02-07 13:03:28 +02:00
Jacob Evans
a8539aa66e empty 2023-02-07 18:28:46 +10:00
Elena
4d7df00d5a Fix path to foundry base test (#657) 2023-02-07 10:17:27 +02:00
Jacob Evans
80193215e3 feat: Migrate PositiveSlippage tests [LIT-804] (#650)
* feat: PositiveSlippageTransformer tests

* Remove old tests

* Affilite fee tests

* Create mintable erc20 token for v06

* Update MintableERC20TokenV06 name
2023-02-07 08:22:02 +10:00
Elena
c4b1f043c6 Remove obsoleted code from 0x/contracts-utils (#643)
* Remove TestAuthorizable

* Remove contracts/utils Authorizable and IAuthorizable

* Remove contracts/utils D18 contract

* Remove contracts/utils LibAddress contracts

* Remove contracts/utils LogDecoding contracts

* Remove contracts/utils Refundable contracts

* Remove contracts/utils LibAuthorizableRichErrors contracts

* Remove contracts/utils EIP712 contracts

* Remove contracts/utils TestRefundableReceiver contracts

* Remove contracts/utils EIP1271 contracts

* Remove contracts/utils ReentrancyGuardV06 contracts

* Remove contracts/utils LibMath contracts

* Remove contracts/utils LibFractions contracts

* Remove contracts/utils LibMathRichErrors contracts

* Remove DeploymentConstants as per PR review
https://github.com/0xProject/protocol/pull/643#pullrequestreview-1264963784
2023-02-06 19:35:39 +02:00
Github Actions
a472125c65 Publish
- @0x/contracts-erc20@3.3.57
 - @0x/contracts-test-utils@5.4.47
 - @0x/contracts-treasury@1.4.40
 - @0x/contracts-utils@4.8.38
 - @0x/contracts-zero-ex@0.38.6
 - @0x/contract-addresses@8.0.3
 - @0x/contract-wrappers@13.22.16
 - @0x/protocol-utils@11.17.6
@0x/contract-addresses@8.0.3 @0x/contract-wrappers@13.22.16 @0x/contracts-erc20@3.3.57 @0x/contracts-test-utils@5.4.47 @0x/contracts-treasury@1.4.40 @0x/contracts-utils@4.8.38 @0x/contracts-zero-ex@0.38.6 @0x/protocol-utils@11.17.6 protocol@a472125
2023-02-01 00:22:23 +00:00
Github Actions
8666121bd9 Updated CHANGELOGS & MD docs 2023-02-01 00:22:20 +00:00
Elyas
8cf1c8bbd2 chore: Add woofi to Arbitrum & Optimism bridge adapters [LIT-774] (#653)
* update arb bridge adapter

* update optimism bridge adapter

* make fixes

* fix lint

* update arbitrum fqt address

* changelog

* fix changelog
2023-01-31 18:02:02 -05:00
Github Actions
d2abe9ad97 Publish
- @0x/contracts-erc20@3.3.56
 - @0x/contracts-test-utils@5.4.46
 - @0x/contracts-treasury@1.4.39
 - @0x/contracts-utils@4.8.37
 - @0x/contracts-zero-ex@0.38.5
 - @0x/contract-addresses@8.0.2
 - @0x/contract-wrappers@13.22.15
 - @0x/protocol-utils@11.17.5
@0x/contract-addresses@8.0.2 @0x/contract-wrappers@13.22.15 @0x/contracts-erc20@3.3.56 @0x/contracts-test-utils@5.4.46 @0x/contracts-treasury@1.4.39 @0x/contracts-utils@4.8.37 @0x/contracts-zero-ex@0.38.5 @0x/protocol-utils@11.17.5 protocol@d2abe9a
2023-01-30 18:59:56 +00:00
Github Actions
f8b65bd429 Updated CHANGELOGS & MD docs 2023-01-30 18:59:52 +00:00
Noah Khamliche
3a7a5d22a2 Feat: 🛠️ fix protocol release action (#652)
* 🔧 fix  and clean up foundry tests

* fix foundry tests import paths
2023-01-30 12:45:40 -05:00
Noah Khamliche
f87f5a40c0 Feat/Add Foundry Testing Environment s[TKR-525] (#555)
* added initial foundry transformERC20 tests

* added foundry tests into CircleCI flow

* add verbosity for failing tests in CI

* revert wrong CI commands

* feat: Foundry, added some more deployments (#558)

* Added some more deployments

* Rename WETH9 to WETH9V06

* Set to 0.6.x

* fix typo

* remove commit with bad prettier changes

* working bridge Fills through weth transformer

* remove unused reference

* clean up tests

* added working otc fill through transformERC20 in FQT

* resolve file imports, add samplers, arbitrumBridgeAdatper, and new FQT version

* add extra 'v' for debugging verbosity

* add extra 'v' for debugging verbosity in circleci config

* remove old traces

* refactor rpc's out of foundry.toml and into .env for CI compatibility

* remove verbosity from CI command as its now defined in foundry.toml

* setup rpc's

* ignore foundry artifacts in prettier

* change naming in prettierignore

* move /samplers to the tests subdirectory, modify remappings to reflext change

* one more try 🤞

* change CI steps

* remove yarn from CI step

* get to the right directory

* update foundry before tests

* fix tip() deprecation and use deal()

* use deal() instead of vm.deal()

* try to get foundry to have the right directory structure by updating it

* I HATE THIS

* remove foundryup

* Fix prettier issues

* Remove obsoleted import

* Use forge native commands to
install deps and test and add the --root option

* Try using forge with working-directory flag in CI

* Use nightly foundry docker image

* Update rpc endpoints config in foundry

* move tests into /forked and /local

* rename tests

* add foundry profiles to CI

* try to fix CI

* 🔧 add foundry local and forked tests to workflow

* prettier and lint

* revert deps update

* remove all samplers and add uniswapV2 sampler to ForkUtils

* address jacobs comments

* cleanup and comment

* prettier and lint

* bump contracts-zero-ex version

* set func-name-mixedcase to off in solhint for elenas new changes

* max line length to warn

* add --fix for check-md

* Update ci.yml

* fix some nitpcks and leftover code

* fix inconsistent naming

* fix bridge adapter reverts and foundry cache

* migrate foundry integration tests to /tests

* refactor contract-addresses to use the contract-addresses package style nested json

* fix solhint

* fix contract linting errors

* dont check broken links in libraries

* move forge order in gh action for testing

* add env instead of vars

* try again

* fix github actions ordering

* update licence and address comments

* remove verbosity from foundry.toml

* fix contract lint

* move back to emitting an event until samplers can be integrated as some chains dont have uniswap as a source

* add uniswap v3 sampling code for future use

* remove uniswap v3 code as its not used

* fix lint

Co-authored-by: Noah Khamliche <0xnoah@Noahs-MacBook-Pro-2.local>
Co-authored-by: Jacob Evans <jacob@dekz.net>
Co-authored-by: elenadimitrova <elena@arenabg.com>
2023-01-26 20:11:16 -05:00
Noah Khamliche
5571d1698d update contract-addresses with new bridge adapters with Woofi enabled (#649) 2023-01-26 18:38:45 -05:00
Noah Khamliche
6f7a7a7291 fix compiler to read in arbitrum bridge adapter (#648) 2023-01-26 17:45:45 -05:00
Elyas
b613de1547 add WooFi V2 Mixin (#644) 2023-01-23 20:48:27 -05:00
Github Actions
6fd269db34 Publish
- @0x/contracts-erc20@3.3.55
 - @0x/contracts-test-utils@5.4.45
 - @0x/contracts-treasury@1.4.38
 - @0x/contracts-utils@4.8.36
 - @0x/contracts-zero-ex@0.38.4
 - @0x/contract-addresses@8.0.1
 - @0x/contract-artifacts@3.18.3
 - @0x/contract-wrappers@13.22.14
 - @0x/protocol-utils@11.17.4
@0x/contract-addresses@8.0.1 @0x/contract-artifacts@3.18.3 @0x/contract-wrappers@13.22.14 @0x/contracts-erc20@3.3.55 @0x/contracts-test-utils@5.4.45 @0x/contracts-treasury@1.4.38 @0x/contracts-utils@4.8.36 @0x/contracts-zero-ex@0.38.4 @0x/protocol-utils@11.17.4 protocol@6fd269d
2023-01-23 23:46:11 +00:00
Github Actions
033db23929 Updated CHANGELOGS & MD docs 2023-01-23 23:46:08 +00:00
Savarn Dontamsetti (Sav)
891d173705 chore: adding V08 contracts [LIT-783] (#646)
* Adding V08 contracts

* Removing LibSafeMathV08

* Apply suggestions from code review

Co-authored-by: duncancmt <1207590+duncancmt@users.noreply.github.com>
2023-01-23 18:00:43 -05:00
Elena
091a10676c Run linter and formatter on staged files (#620)
* Add lint-staged package

* Add husky and configure it to run lint staged

* Fix the yarn lock file
2023-01-19 09:38:56 +02:00
Elena
0ae6f3e64f Remove manual step for code coverage (#642)
as this is no longer necessary since updating the coveralls upload action in https://github.com/0xProject/protocol/pull/640
2023-01-18 08:26:04 +02:00
wonge97
8197fee50a Update timelock days (#628)
* Update timelock days

* Fix spelling

Co-authored-by: Eric Wong <ewong@Erics-MBP.fios-router.home>
Co-authored-by: elenadimitrova <elena@arenabg.com>
2023-01-17 11:39:33 +02:00
Jacob Evans
ee48d4006b chore: Update rollback script (#580) 2023-01-17 10:54:37 +02:00
Elena
d2be56c30f Code coverage fixes (#640)
* Update coveralls link to point to protocol repo coverage

* Remove obsoleted ignores in .gitignore

* Run forge coverage in CI and upload results to coveralls

* Remove unused wrapper

* Remove legacy coverage setup

* Remove lcov-result-merger

* Add base-path setting to coverallsapp in CI
2023-01-17 10:53:43 +02:00