Kyu 72433ea5b7
fix: Revert changelog commits from previous failed publish (#710)
* Revert "Publish"

This reverts commit f919e8ef02907f6d74ab01a995b362b0967efc69.

* Revert "Updated CHANGELOGS & MD docs"

This reverts commit dbcc7dd6f4cff6715d2c4308759c9551e0931a61.

* Bump contracts-erc20 and contracts-utils versions
2023-04-17 10:59:00 -07:00
..
2023-04-07 16:33:59 -06:00
2023-04-07 16:33:59 -06:00
2023-04-04 17:43:33 +03:00
2020-12-10 19:42:00 -08:00
2023-01-30 18:59:52 +00:00

ZeroEx (ExchangeProxy)

This package contains contracts for the ZeroEx extensible contract architecture.

NOTE: This repo is undergoing a tooling change. If adding a contract, you will need to add it to compiler.json. You can generate the entire list by running the following: find . -type f -name "*.sol" | grep -v foundry | grep -v "contracts/dep" | grep -v "node_modules"

Installation

Install

npm install @0x/contracts-zero-ex --save

Contributing

We strongly recommend that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.

For proposals regarding the 0x protocol's smart contract architecture, message format, or additional functionality, go to the 0x Improvement Proposals (ZEIPs) repository and follow the contribution guidelines provided therein.

Please read our contribution guidelines before getting started.

Install Dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x/contracts-zero-ex yarn build

Or continuously rebuild on change:

PKG=@0x/contracts-zero-ex yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Run Integration Tests

you will need to create a .env that the root of /contracts/zero-ex containing rpc's for all 7 chains the tests will be run on

ARBITRUM_RPC_URL=https://arb-mainnet........
AVALANCHE_RPC_URL=https://avalanche-mainnet......
BSC_RPC_URL=https://bsc-mainnet......
FANTOM_RPC_URL=https://fantom-mainnet......
MAINNET_RPC_URL=https://eth-mainnet......
OPTIMISM_RPC_URL=https://opt-mainnet......
POLYGON_RPC_URL=https://polygon-mainnet......
git submodule update --init --recursive
foundryup
yarn test:integration