Compare commits
1 Commits
developmen
...
jlin27-pro
Author | SHA1 | Date | |
---|---|---|---|
|
631a4ca00e |
61
.github/workflows/ci.yml
vendored
61
.github/workflows/ci.yml
vendored
@ -83,30 +83,28 @@ jobs:
|
|||||||
-p @0x/order-utils \
|
-p @0x/order-utils \
|
||||||
-m --serial -c test:ci
|
-m --serial -c test:ci
|
||||||
|
|
||||||
# NOTE: disabled as ZRXToken.sol did not compile with the latest forge.
|
|
||||||
# TODO: re-enable once the issue is resolved.
|
|
||||||
- name: Run Forge build for erc20
|
- name: Run Forge build for erc20
|
||||||
working-directory: contracts/erc20
|
working-directory: contracts/erc20
|
||||||
run: |
|
run: |
|
||||||
forge --version
|
forge --version
|
||||||
forge build --sizes --skip ZRXToken
|
forge build --sizes
|
||||||
|
|
||||||
# - name: Run Forge tests for erc20
|
- name: Run Forge tests for erc20
|
||||||
# working-directory: contracts/erc20
|
working-directory: contracts/erc20
|
||||||
# run: |
|
run: |
|
||||||
# forge test -vvv --gas-report
|
forge test -vvv --gas-report
|
||||||
|
|
||||||
# - name: Run Forge coverage for erc20
|
- name: Run Forge coverage for erc20
|
||||||
# working-directory: contracts/erc20
|
working-directory: contracts/erc20
|
||||||
# run: |
|
run: |
|
||||||
# forge coverage --report summary --report lcov
|
forge coverage --report summary --report lcov
|
||||||
|
|
||||||
# - name: Upload the coverage report to Coveralls
|
- name: Upload the coverage report to Coveralls
|
||||||
# uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
# with:
|
with:
|
||||||
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# base-path: ./contracts/erc20/
|
base-path: ./contracts/erc20/
|
||||||
# path-to-lcov: ./contracts/erc20/lcov.info
|
path-to-lcov: ./contracts/erc20/lcov.info
|
||||||
|
|
||||||
- name: Run Forge build for zero-ex
|
- name: Run Forge build for zero-ex
|
||||||
working-directory: contracts/zero-ex
|
working-directory: contracts/zero-ex
|
||||||
@ -144,20 +142,19 @@ jobs:
|
|||||||
forge --version
|
forge --version
|
||||||
forge build --sizes
|
forge build --sizes
|
||||||
|
|
||||||
# TODO: re-enable once the issue is resolved.
|
- name: Run Forge tests on governance contracts
|
||||||
# - name: Run Forge tests on governance contracts
|
working-directory: ./contracts/governance
|
||||||
# working-directory: ./contracts/governance
|
run: |
|
||||||
# run: |
|
forge test -vvv --gas-report
|
||||||
# forge test -vvv --gas-report
|
|
||||||
|
|
||||||
# - name: Run Forge coverage on governance contracts
|
- name: Run Forge coverage on governance contracts
|
||||||
# working-directory: ./contracts/governance
|
working-directory: ./contracts/governance
|
||||||
# run: |
|
run: |
|
||||||
# forge coverage --report lcov
|
forge coverage --report lcov
|
||||||
|
|
||||||
# - name: Upload the coverage report to Coveralls
|
- name: Upload the coverage report to Coveralls
|
||||||
# uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
# with:
|
with:
|
||||||
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# base-path: ./contracts/governance/
|
base-path: ./contracts/governance/
|
||||||
# path-to-lcov: ./contracts/governance/lcov.info
|
path-to-lcov: ./contracts/governance/lcov.info
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"timestamp": 1700094997,
|
|
||||||
"version": "4.0.14",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Dependencies updated"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"timestamp": 1693346928,
|
"timestamp": 1693346928,
|
||||||
"version": "4.0.13",
|
"version": "4.0.13",
|
||||||
|
@ -5,10 +5,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v4.0.14 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Dependencies updated
|
|
||||||
|
|
||||||
## v4.0.13 - _August 29, 2023_
|
## v4.0.13 - _August 29, 2023_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/contracts-erc20",
|
"name": "@0x/contracts-erc20",
|
||||||
"version": "4.0.14",
|
"version": "4.0.13",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/0xProject/protocol",
|
"homepage": "https://github.com/0xProject/protocol",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/contracts-utils": "^4.8.52",
|
"@0x/contracts-utils": "^4.8.51",
|
||||||
"@0x/ts-doc-gen": "^0.0.28",
|
"@0x/ts-doc-gen": "^0.0.28",
|
||||||
"typedoc": "~0.16.11"
|
"typedoc": "~0.16.11"
|
||||||
},
|
},
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"timestamp": 1700094997,
|
|
||||||
"version": "5.4.60",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Dependencies updated"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"timestamp": 1693346928,
|
"timestamp": 1693346928,
|
||||||
"version": "5.4.59",
|
"version": "5.4.59",
|
||||||
|
@ -5,10 +5,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v5.4.60 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Dependencies updated
|
|
||||||
|
|
||||||
## v5.4.59 - _August 29, 2023_
|
## v5.4.59 - _August 29, 2023_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/contracts-test-utils",
|
"name": "@0x/contracts-test-utils",
|
||||||
"version": "5.4.60",
|
"version": "5.4.59",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -41,7 +41,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0x/assert": "^3.0.36",
|
"@0x/assert": "^3.0.36",
|
||||||
"@0x/base-contract": "^7.0.0",
|
"@0x/base-contract": "^7.0.0",
|
||||||
"@0x/contract-addresses": "^8.13.0",
|
"@0x/contract-addresses": "^8.12.0",
|
||||||
"@0x/dev-utils": "^5.0.2",
|
"@0x/dev-utils": "^5.0.2",
|
||||||
"@0x/json-schemas": "^6.4.4",
|
"@0x/json-schemas": "^6.4.4",
|
||||||
"@0x/order-utils": "^10.4.28",
|
"@0x/order-utils": "^10.4.28",
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"timestamp": 1700094997,
|
|
||||||
"version": "1.4.54",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Dependencies updated"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"timestamp": 1693346928,
|
"timestamp": 1693346928,
|
||||||
"version": "1.4.53",
|
"version": "1.4.53",
|
||||||
|
@ -5,10 +5,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v1.4.54 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Dependencies updated
|
|
||||||
|
|
||||||
## v1.4.53 - _August 29, 2023_
|
## v1.4.53 - _August 29, 2023_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/contracts-treasury",
|
"name": "@0x/contracts-treasury",
|
||||||
"version": "1.4.54",
|
"version": "1.4.53",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -46,12 +46,12 @@
|
|||||||
"homepage": "https://github.com/0xProject/protocol/tree/main/contracts/treasury",
|
"homepage": "https://github.com/0xProject/protocol/tree/main/contracts/treasury",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/abi-gen": "^5.8.5",
|
"@0x/abi-gen": "^5.8.5",
|
||||||
"@0x/contract-addresses": "^8.13.0",
|
"@0x/contract-addresses": "^8.12.0",
|
||||||
"@0x/contracts-asset-proxy": "^3.7.19",
|
"@0x/contracts-asset-proxy": "^3.7.19",
|
||||||
"@0x/contracts-erc20": "3.3.57",
|
"@0x/contracts-erc20": "3.3.57",
|
||||||
"@0x/contracts-gen": "^2.0.50",
|
"@0x/contracts-gen": "^2.0.50",
|
||||||
"@0x/contracts-staking": "^2.0.45",
|
"@0x/contracts-staking": "^2.0.45",
|
||||||
"@0x/contracts-test-utils": "^5.4.60",
|
"@0x/contracts-test-utils": "^5.4.59",
|
||||||
"@0x/sol-compiler": "^4.8.2",
|
"@0x/sol-compiler": "^4.8.2",
|
||||||
"@0x/ts-doc-gen": "^0.0.28",
|
"@0x/ts-doc-gen": "^0.0.28",
|
||||||
"@types/isomorphic-fetch": "^0.0.35",
|
"@types/isomorphic-fetch": "^0.0.35",
|
||||||
@ -73,7 +73,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0x/base-contract": "^7.0.0",
|
"@0x/base-contract": "^7.0.0",
|
||||||
"@0x/protocol-utils": "^11.24.2",
|
"@0x/protocol-utils": "^11.24.1",
|
||||||
"@0x/subproviders": "^8.0.1",
|
"@0x/subproviders": "^8.0.1",
|
||||||
"@0x/types": "^3.3.7",
|
"@0x/types": "^3.3.7",
|
||||||
"@0x/typescript-typings": "^5.3.1",
|
"@0x/typescript-typings": "^5.3.1",
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"timestamp": 1700094997,
|
|
||||||
"version": "4.8.52",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Dependencies updated"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"timestamp": 1693346928,
|
"timestamp": 1693346928,
|
||||||
"version": "4.8.51",
|
"version": "4.8.51",
|
||||||
|
@ -5,10 +5,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v4.8.52 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Dependencies updated
|
|
||||||
|
|
||||||
## v4.8.51 - _August 29, 2023_
|
## v4.8.51 - _August 29, 2023_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/contracts-utils",
|
"name": "@0x/contracts-utils",
|
||||||
"version": "4.8.52",
|
"version": "4.8.51",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -45,7 +45,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/abi-gen": "^5.8.5",
|
"@0x/abi-gen": "^5.8.5",
|
||||||
"@0x/contracts-gen": "^2.0.50",
|
"@0x/contracts-gen": "^2.0.50",
|
||||||
"@0x/contracts-test-utils": "^5.4.60",
|
"@0x/contracts-test-utils": "^5.4.59",
|
||||||
"@0x/dev-utils": "^5.0.2",
|
"@0x/dev-utils": "^5.0.2",
|
||||||
"@0x/order-utils": "^10.4.28",
|
"@0x/order-utils": "^10.4.28",
|
||||||
"@0x/sol-compiler": "^4.8.2",
|
"@0x/sol-compiler": "^4.8.2",
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"version": "0.49.0",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Allowlist Sepolia in AbstractBridgeAdapter"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"timestamp": 1700094997
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"version": "0.48.0",
|
"version": "0.48.0",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
@ -5,10 +5,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v0.49.0 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Allowlist Sepolia in AbstractBridgeAdapter
|
|
||||||
|
|
||||||
## v0.48.0 - _August 29, 2023_
|
## v0.48.0 - _August 29, 2023_
|
||||||
|
|
||||||
* Add VelodromeV2 support on Base
|
* Add VelodromeV2 support on Base
|
||||||
|
@ -23,14 +23,12 @@ abstract contract AbstractBridgeAdapter is IBridgeAdapter {
|
|||||||
assembly {
|
assembly {
|
||||||
chainId := chainid()
|
chainId := chainid()
|
||||||
}
|
}
|
||||||
// Skip chain id validation on Ganache (1337), Anvil (31337), Goerli (5), Mumbai (80001), Base Goerli (84531),
|
// Skip chain id validation on Ganache (1337), Anvil (31337), Goerli (5), Mumbai (80001), Base Goerli (84531)
|
||||||
// Sepolia (11155111)
|
|
||||||
bool skipValidation = (chainId == 1337 ||
|
bool skipValidation = (chainId == 1337 ||
|
||||||
chainId == 31337 ||
|
chainId == 31337 ||
|
||||||
chainId == 5 ||
|
chainId == 5 ||
|
||||||
chainId == 80001 ||
|
chainId == 80001 ||
|
||||||
chainId == 84531 ||
|
chainId == 84531);
|
||||||
chainId == 11155111);
|
|
||||||
|
|
||||||
if (chainId != expectedChainId && !skipValidation) {
|
if (chainId != expectedChainId && !skipValidation) {
|
||||||
revert(string(abi.encodePacked(expectedChainName, "BridgeAdapter.constructor: wrong chain ID")));
|
revert(string(abi.encodePacked(expectedChainName, "BridgeAdapter.constructor: wrong chain ID")));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/contracts-zero-ex",
|
"name": "@0x/contracts-zero-ex",
|
||||||
"version": "0.49.0",
|
"version": "0.48.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -51,10 +51,10 @@
|
|||||||
"homepage": "https://github.com/0xProject/protocol/tree/main/contracts/zero-ex",
|
"homepage": "https://github.com/0xProject/protocol/tree/main/contracts/zero-ex",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/abi-gen": "^5.8.5",
|
"@0x/abi-gen": "^5.8.5",
|
||||||
"@0x/contract-addresses": "^8.13.0",
|
"@0x/contract-addresses": "^8.12.0",
|
||||||
"@0x/contracts-erc20": "^3.3.57",
|
"@0x/contracts-erc20": "^3.3.57",
|
||||||
"@0x/contracts-gen": "^2.0.50",
|
"@0x/contracts-gen": "^2.0.50",
|
||||||
"@0x/contracts-test-utils": "^5.4.60",
|
"@0x/contracts-test-utils": "^5.4.59",
|
||||||
"@0x/dev-utils": "^5.0.2",
|
"@0x/dev-utils": "^5.0.2",
|
||||||
"@0x/order-utils": "^10.4.28",
|
"@0x/order-utils": "^10.4.28",
|
||||||
"@0x/sol-compiler": "^4.8.2",
|
"@0x/sol-compiler": "^4.8.2",
|
||||||
@ -80,7 +80,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0x/base-contract": "^7.0.0",
|
"@0x/base-contract": "^7.0.0",
|
||||||
"@0x/protocol-utils": "^11.24.2",
|
"@0x/protocol-utils": "^11.24.1",
|
||||||
"@0x/subproviders": "^8.0.1",
|
"@0x/subproviders": "^8.0.1",
|
||||||
"@0x/types": "^3.3.7",
|
"@0x/types": "^3.3.7",
|
||||||
"@0x/typescript-typings": "^5.3.1",
|
"@0x/typescript-typings": "^5.3.1",
|
||||||
|
@ -66,8 +66,3 @@ Note: Some addresses have changed across various networks
|
|||||||
Avalanche, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://snowtrace.io/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
Avalanche, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://snowtrace.io/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
||||||
Fantom, `0xdef189deaef76e379df891899eb5a00a94cbc250 <https://ftmscan.com/address/0xdef189deaef76e379df891899eb5a00a94cbc250>`__
|
Fantom, `0xdef189deaef76e379df891899eb5a00a94cbc250 <https://ftmscan.com/address/0xdef189deaef76e379df891899eb5a00a94cbc250>`__
|
||||||
Celo, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://explorer.celo.org/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
Celo, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://explorer.celo.org/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
||||||
Arbitrum, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://arbiscan.io/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
|
||||||
Base, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://basescan.org/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
|
||||||
zkEVM, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://zkevm.polygonscan.com/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
|
||||||
Sepolia, `0xdef1c0ded9bec7f1a1670819833240f027b25eff <https://sepolia.etherscan.io/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff>`__
|
|
||||||
Mumbai, `0xf471d32cb40837bf24529fcf17418fc1a4807626 <https://mumbai.polygonscan.com/address/0xf471d32cb40837bf24529fcf17418fc1a4807626>`__
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"opRetro": {
|
|
||||||
"projectId": "0x0fad18f37ecec4f4f4ca18e60c353eb11462363e8aa14562b5d96af54108d106"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"version": "8.13.0",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Add Sepolia addresses"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"timestamp": 1700094997
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"version": "8.12.0",
|
"version": "8.12.0",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
@ -6,9 +6,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v8.13.0 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Add Sepolia addresses
|
|
||||||
## v8.12.0 - _August 29, 2023_
|
## v8.12.0 - _August 29, 2023_
|
||||||
|
|
||||||
* Add VelodromeV2 support on Base
|
* Add VelodromeV2 support on Base
|
||||||
|
@ -274,28 +274,5 @@
|
|||||||
"fillQuoteTransformer": "0x2c46d57bb5af87a13a51dd5b62ba7d3bc7e12e9c",
|
"fillQuoteTransformer": "0x2c46d57bb5af87a13a51dd5b62ba7d3bc7e12e9c",
|
||||||
"positiveSlippageFeeTransformer": "0xf98a130d3b4029c70e6d93098cb82a003421341e"
|
"positiveSlippageFeeTransformer": "0xf98a130d3b4029c70e6d93098cb82a003421341e"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"11155111": {
|
|
||||||
"zrxToken": "0x0000000000000000000000000000000000000000",
|
|
||||||
"etherToken": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
||||||
"zeroExGovernor": "0x5c1f7772ce24d942b85e9b6576f7b5ef70686f5a",
|
|
||||||
"zrxVault": "0x0000000000000000000000000000000000000000",
|
|
||||||
"staking": "0x0000000000000000000000000000000000000000",
|
|
||||||
"stakingProxy": "0x0000000000000000000000000000000000000000",
|
|
||||||
"erc20BridgeProxy": "0x0000000000000000000000000000000000000000",
|
|
||||||
"erc20BridgeSampler": "0x0000000000000000000000000000000000000000",
|
|
||||||
"exchangeProxyGovernor": "0x5c1f7772ce24d942b85e9b6576f7b5ef70686f5a",
|
|
||||||
"exchangeProxy": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
|
|
||||||
"exchangeProxyTransformerDeployer": "0x58bca53ebba1aaf25f0edcd8dad6421872fe20b2",
|
|
||||||
"exchangeProxyFlashWallet": "0xdb6f1920a889355780af7570773609bd8cb1f498",
|
|
||||||
"exchangeProxyLiquidityProviderSandbox": "0x0000000000000000000000000000000000000000",
|
|
||||||
"zrxTreasury": "0x0000000000000000000000000000000000000000",
|
|
||||||
"transformers": {
|
|
||||||
"wethTransformer": "0xf98a130d3b4029c70e6d93098cb82a003421341e",
|
|
||||||
"payTakerTransformer": "0x44e0f3975e95387f3866dd7cab1f51050394a3d1",
|
|
||||||
"affiliateFeeTransformer": "0x5cc22a0e06ea11097c612a962e63674b90e96099",
|
|
||||||
"fillQuoteTransformer": "0x63186ea36e78ecbf0128e448362f1b81e9bf7412",
|
|
||||||
"positiveSlippageFeeTransformer": "0x9e52d8b32d835206d09810c310593bcc77264066"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/contract-addresses",
|
"name": "@0x/contract-addresses",
|
||||||
"version": "8.13.0",
|
"version": "8.12.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
|
@ -1,16 +1,20 @@
|
|||||||
import addresses from '../addresses.json';
|
import addresses from '../addresses.json';
|
||||||
|
|
||||||
export interface ContractAddresses {
|
export interface ContractAddresses {
|
||||||
erc20BridgeProxy: string;
|
zrxToken: string;
|
||||||
erc20BridgeSampler: string;
|
|
||||||
etherToken: string;
|
etherToken: string;
|
||||||
exchangeProxy: string;
|
zeroExGovernor: string;
|
||||||
exchangeProxyFlashWallet: string;
|
zrxVault: string;
|
||||||
exchangeProxyGovernor: string;
|
|
||||||
exchangeProxyLiquidityProviderSandbox: string;
|
|
||||||
exchangeProxyTransformerDeployer: string;
|
|
||||||
staking: string;
|
staking: string;
|
||||||
stakingProxy: string;
|
stakingProxy: string;
|
||||||
|
erc20BridgeProxy: string;
|
||||||
|
erc20BridgeSampler: string;
|
||||||
|
exchangeProxyGovernor: string;
|
||||||
|
exchangeProxy: string;
|
||||||
|
exchangeProxyTransformerDeployer: string;
|
||||||
|
exchangeProxyFlashWallet: string;
|
||||||
|
exchangeProxyLiquidityProviderSandbox: string;
|
||||||
|
zrxTreasury: string;
|
||||||
transformers: {
|
transformers: {
|
||||||
wethTransformer: string;
|
wethTransformer: string;
|
||||||
payTakerTransformer: string;
|
payTakerTransformer: string;
|
||||||
@ -18,33 +22,21 @@ export interface ContractAddresses {
|
|||||||
affiliateFeeTransformer: string;
|
affiliateFeeTransformer: string;
|
||||||
positiveSlippageFeeTransformer: string;
|
positiveSlippageFeeTransformer: string;
|
||||||
};
|
};
|
||||||
zeroExGovernor: string;
|
|
||||||
zrxToken: string;
|
|
||||||
zrxTreasury: string;
|
|
||||||
zrxVault: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ChainId {
|
export enum ChainId {
|
||||||
Mainnet = 1,
|
Mainnet = 1,
|
||||||
Goerli = 5,
|
Goerli = 5,
|
||||||
Optimism = 10,
|
Ganache = 1337,
|
||||||
BSC = 56,
|
BSC = 56,
|
||||||
Polygon = 137,
|
Polygon = 137,
|
||||||
Fantom = 250,
|
|
||||||
Ganache = 1337,
|
|
||||||
Base = 8453,
|
|
||||||
Arbitrum = 42161,
|
|
||||||
Avalanche = 43114,
|
|
||||||
Celo = 42220,
|
|
||||||
PolygonMumbai = 80001,
|
PolygonMumbai = 80001,
|
||||||
Sepolia = 11155111
|
Avalanche = 43114,
|
||||||
}
|
Fantom = 250,
|
||||||
|
Celo = 42220,
|
||||||
/**
|
Optimism = 10,
|
||||||
* Narrow a JavaScript number to a Chain ID.
|
Arbitrum = 42161,
|
||||||
*/
|
Base = 8453,
|
||||||
export function isChainId(chainId: number): chainId is ChainId {
|
|
||||||
return Object.values(ChainId).includes(chainId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2,7 +2,7 @@ import * as chai from 'chai';
|
|||||||
import { bufferToHex, rlphash } from 'ethereumjs-util';
|
import { bufferToHex, rlphash } from 'ethereumjs-util';
|
||||||
import 'mocha';
|
import 'mocha';
|
||||||
|
|
||||||
import { ChainId, getContractAddressesForChainOrThrow, isChainId } from '../src';
|
import { ChainId, getContractAddressesForChainOrThrow } from '../src';
|
||||||
|
|
||||||
const expect = chai.expect;
|
const expect = chai.expect;
|
||||||
|
|
||||||
@ -68,12 +68,3 @@ describe('addresses.json sanity test', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("isChainId", () => {
|
|
||||||
it("should return true for existing chain ids", () => {
|
|
||||||
expect(isChainId(1)).to.be.true;
|
|
||||||
});
|
|
||||||
it("should return false for non-existing chain ids", () => {
|
|
||||||
expect(isChainId(666)).to.be.false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"timestamp": 1700094997,
|
|
||||||
"version": "13.23.8",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Dependencies updated"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"timestamp": 1693346928,
|
"timestamp": 1693346928,
|
||||||
"version": "13.23.7",
|
"version": "13.23.7",
|
||||||
|
@ -6,9 +6,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v13.23.8 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Dependencies updated
|
|
||||||
## v13.23.7 - _August 29, 2023_
|
## v13.23.7 - _August 29, 2023_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/contract-wrappers",
|
"name": "@0x/contract-wrappers",
|
||||||
"version": "13.23.8",
|
"version": "13.23.7",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -59,7 +59,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0x/assert": "^3.0.36",
|
"@0x/assert": "^3.0.36",
|
||||||
"@0x/base-contract": "^7.0.0",
|
"@0x/base-contract": "^7.0.0",
|
||||||
"@0x/contract-addresses": "^8.13.0",
|
"@0x/contract-addresses": "^8.12.0",
|
||||||
"@0x/json-schemas": "^6.4.4",
|
"@0x/json-schemas": "^6.4.4",
|
||||||
"@0x/types": "^3.3.7",
|
"@0x/types": "^3.3.7",
|
||||||
"@0x/utils": "^7.0.0",
|
"@0x/utils": "^7.0.0",
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"timestamp": 1700094997,
|
|
||||||
"version": "11.24.2",
|
|
||||||
"changes": [
|
|
||||||
{
|
|
||||||
"note": "Dependencies updated"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"timestamp": 1693346928,
|
"timestamp": 1693346928,
|
||||||
"version": "11.24.1",
|
"version": "11.24.1",
|
||||||
|
@ -6,9 +6,6 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
## v11.24.2 - _November 16, 2023_
|
|
||||||
|
|
||||||
* Dependencies updated
|
|
||||||
## v11.24.1 - _August 29, 2023_
|
## v11.24.1 - _August 29, 2023_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
- Signatures
|
- Signatures
|
||||||
- EIP712 hashing
|
- EIP712 hashing
|
||||||
|
|
||||||
### Read the [Documentation](https://0x.org/docs/protocol/protocol-utils).
|
### Read the [Documentation](https://docs.0xprotocol.org/en/latest/basics/orders.html).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0x/protocol-utils",
|
"name": "@0x/protocol-utils",
|
||||||
"version": "11.24.2",
|
"version": "11.24.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -62,8 +62,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0x/assert": "^3.0.36",
|
"@0x/assert": "^3.0.36",
|
||||||
"@0x/contract-addresses": "^8.13.0",
|
"@0x/contract-addresses": "^8.12.0",
|
||||||
"@0x/contract-wrappers": "^13.23.8",
|
"@0x/contract-wrappers": "^13.23.7",
|
||||||
"@0x/json-schemas": "^6.4.4",
|
"@0x/json-schemas": "^6.4.4",
|
||||||
"@0x/subproviders": "^8.0.1",
|
"@0x/subproviders": "^8.0.1",
|
||||||
"@0x/utils": "^7.0.0",
|
"@0x/utils": "^7.0.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user