Rename core package to protocol
This commit is contained in:
parent
cb53cd05e6
commit
2c58b8a886
@ -45,7 +45,7 @@ jobs:
|
|||||||
- run: yarn wsrun test:circleci @0x/contracts-libs
|
- run: yarn wsrun test:circleci @0x/contracts-libs
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-tokens
|
- run: yarn wsrun test:circleci @0x/contracts-tokens
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-extensions
|
- run: yarn wsrun test:circleci @0x/contracts-extensions
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-core
|
- run: yarn wsrun test:circleci @0x/contracts-protocol
|
||||||
test-contracts-geth:
|
test-contracts-geth:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
@ -62,7 +62,7 @@ jobs:
|
|||||||
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-libs
|
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-libs
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-tokens
|
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-tokens
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-extensions
|
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-extensions
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-core
|
- run: TEST_PROVIDER=geth yarn wsrun test @0x/contracts-protocol
|
||||||
test-publish:
|
test-publish:
|
||||||
resource_class: medium+
|
resource_class: medium+
|
||||||
docker:
|
docker:
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -86,7 +86,7 @@ packages/react-docs/example/public/bundle*
|
|||||||
packages/testnet-faucets/server/
|
packages/testnet-faucets/server/
|
||||||
|
|
||||||
# generated contract artifacts/
|
# generated contract artifacts/
|
||||||
contracts/core/generated-artifacts/
|
contracts/protocol/generated-artifacts/
|
||||||
contracts/multisig/generated-artifacts/
|
contracts/multisig/generated-artifacts/
|
||||||
contracts/utils/generated-artifacts/
|
contracts/utils/generated-artifacts/
|
||||||
contracts/libs/generated-artifacts/
|
contracts/libs/generated-artifacts/
|
||||||
@ -99,7 +99,7 @@ packages/metacoin/artifacts/
|
|||||||
|
|
||||||
# generated contract wrappers
|
# generated contract wrappers
|
||||||
packages/abi-gen-wrappers/wrappers
|
packages/abi-gen-wrappers/wrappers
|
||||||
contracts/core/generated-wrappers/
|
contracts/protocol/generated-wrappers/
|
||||||
contracts/multisig/generated-wrappers/
|
contracts/multisig/generated-wrappers/
|
||||||
contracts/utils/generated-wrappers/
|
contracts/utils/generated-wrappers/
|
||||||
contracts/libs/generated-wrappers/
|
contracts/libs/generated-wrappers/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
lib
|
lib
|
||||||
.nyc_output
|
.nyc_output
|
||||||
/contracts/core/generated-wrappers
|
/contracts/protocol/generated-wrappers
|
||||||
/contracts/core/generated-artifacts
|
/contracts/protocol/generated-artifacts
|
||||||
/contracts/multisig/generated-wrappers
|
/contracts/multisig/generated-wrappers
|
||||||
/contracts/multisig/generated-artifacts
|
/contracts/multisig/generated-artifacts
|
||||||
/contracts/utils/generated-wrappers
|
/contracts/utils/generated-wrappers
|
||||||
@ -14,6 +14,8 @@ lib
|
|||||||
/contracts/tokens/generated-artifacts
|
/contracts/tokens/generated-artifacts
|
||||||
/contracts/examples/generated-wrappers
|
/contracts/examples/generated-wrappers
|
||||||
/contracts/examples/generated-artifacts
|
/contracts/examples/generated-artifacts
|
||||||
|
/contracts/extensions/generated-wrappers
|
||||||
|
/contracts/extensions/generated-artifacts
|
||||||
/packages/abi-gen-wrappers/src/generated-wrappers
|
/packages/abi-gen-wrappers/src/generated-wrappers
|
||||||
/packages/contract-artifacts/artifacts
|
/packages/contract-artifacts/artifacts
|
||||||
/python-packages/order_utils/src/zero_ex/contract_artifacts/artifacts
|
/python-packages/order_utils/src/zero_ex/contract_artifacts/artifacts
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/core/README.md",
|
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/examples/README.md",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/contracts-test-utils": "^1.0.0",
|
"@0x/contracts-test-utils": "^1.0.0",
|
||||||
"@0x/abi-gen": "^1.0.17",
|
"@0x/abi-gen": "^1.0.17",
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/core/README.md",
|
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/contracts-test-utils": "^1.0.0",
|
"@0x/contracts-test-utils": "^1.0.0",
|
||||||
"@0x/abi-gen": "^1.0.17",
|
"@0x/abi-gen": "^1.0.17",
|
||||||
@ -75,7 +75,7 @@
|
|||||||
"@0x/base-contract": "^3.0.8",
|
"@0x/base-contract": "^3.0.8",
|
||||||
"@0x/order-utils": "^3.0.4",
|
"@0x/order-utils": "^3.0.4",
|
||||||
"@0x/contracts-utils": "^1.0.0",
|
"@0x/contracts-utils": "^1.0.0",
|
||||||
"@0x/contracts-core": "^2.1.56",
|
"@0x/contracts-protocol": "^2.1.56",
|
||||||
"@0x/contracts-tokens": "^1.0.0",
|
"@0x/contracts-tokens": "^1.0.0",
|
||||||
"@0x/contracts-libs": "^1.0.0",
|
"@0x/contracts-libs": "^1.0.0",
|
||||||
"@0x/contracts-interfaces": "^1.0.0",
|
"@0x/contracts-interfaces": "^1.0.0",
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
artifacts as coreArtifacts,
|
artifacts as protocolArtifacts,
|
||||||
ERC20Wrapper,
|
ERC20Wrapper,
|
||||||
ERC721Wrapper,
|
ERC721Wrapper,
|
||||||
ExchangeContract,
|
ExchangeContract,
|
||||||
ExchangeWrapper,
|
ExchangeWrapper,
|
||||||
} from '@0x/contracts-core';
|
} from '@0x/contracts-protocol';
|
||||||
import {
|
import {
|
||||||
chaiSetup,
|
chaiSetup,
|
||||||
constants,
|
constants,
|
||||||
@ -109,7 +109,7 @@ describe(ContractName.DutchAuction, () => {
|
|||||||
|
|
||||||
const zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxToken.address);
|
const zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxToken.address);
|
||||||
const exchangeInstance = await ExchangeContract.deployFrom0xArtifactAsync(
|
const exchangeInstance = await ExchangeContract.deployFrom0xArtifactAsync(
|
||||||
coreArtifacts.Exchange,
|
protocolArtifacts.Exchange,
|
||||||
provider,
|
provider,
|
||||||
txDefaults,
|
txDefaults,
|
||||||
zrxAssetData,
|
zrxAssetData,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
artifacts as coreArtifacts,
|
artifacts as protocolArtifacts,
|
||||||
ERC20Wrapper,
|
ERC20Wrapper,
|
||||||
ERC721Wrapper,
|
ERC721Wrapper,
|
||||||
ExchangeContract,
|
ExchangeContract,
|
||||||
ExchangeWrapper,
|
ExchangeWrapper,
|
||||||
} from '@0x/contracts-core';
|
} from '@0x/contracts-protocol';
|
||||||
import {
|
import {
|
||||||
chaiSetup,
|
chaiSetup,
|
||||||
constants,
|
constants,
|
||||||
@ -108,7 +108,7 @@ describe(ContractName.Forwarder, () => {
|
|||||||
wethAssetData = assetDataUtils.encodeERC20AssetData(wethContract.address);
|
wethAssetData = assetDataUtils.encodeERC20AssetData(wethContract.address);
|
||||||
zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxToken.address);
|
zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxToken.address);
|
||||||
const exchangeInstance = await ExchangeContract.deployFrom0xArtifactAsync(
|
const exchangeInstance = await ExchangeContract.deployFrom0xArtifactAsync(
|
||||||
coreArtifacts.Exchange,
|
protocolArtifacts.Exchange,
|
||||||
provider,
|
provider,
|
||||||
txDefaults,
|
txDefaults,
|
||||||
zrxAssetData,
|
zrxAssetData,
|
||||||
@ -179,7 +179,7 @@ describe(ContractName.Forwarder, () => {
|
|||||||
describe('constructor', () => {
|
describe('constructor', () => {
|
||||||
it('should revert if assetProxy is unregistered', async () => {
|
it('should revert if assetProxy is unregistered', async () => {
|
||||||
const exchangeInstance = await ExchangeContract.deployFrom0xArtifactAsync(
|
const exchangeInstance = await ExchangeContract.deployFrom0xArtifactAsync(
|
||||||
coreArtifacts.Exchange,
|
protocolArtifacts.Exchange,
|
||||||
provider,
|
provider,
|
||||||
txDefaults,
|
txDefaults,
|
||||||
zrxAssetData,
|
zrxAssetData,
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import {
|
import {
|
||||||
artifacts as coreArtifacts,
|
artifacts as protocolArtifacts,
|
||||||
ERC20ProxyContract,
|
ERC20ProxyContract,
|
||||||
ERC20Wrapper,
|
ERC20Wrapper,
|
||||||
ERC721ProxyContract,
|
ERC721ProxyContract,
|
||||||
ERC721Wrapper,
|
ERC721Wrapper,
|
||||||
ExchangeContract,
|
ExchangeContract,
|
||||||
ExchangeWrapper,
|
ExchangeWrapper,
|
||||||
} from '@0x/contracts-core';
|
} from '@0x/contracts-protocol';
|
||||||
import {
|
import {
|
||||||
chaiSetup,
|
chaiSetup,
|
||||||
constants,
|
constants,
|
||||||
@ -81,7 +81,7 @@ describe('OrderValidator', () => {
|
|||||||
|
|
||||||
const zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxToken.address);
|
const zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxToken.address);
|
||||||
exchange = await ExchangeContract.deployFrom0xArtifactAsync(
|
exchange = await ExchangeContract.deployFrom0xArtifactAsync(
|
||||||
coreArtifacts.Exchange,
|
protocolArtifacts.Exchange,
|
||||||
provider,
|
provider,
|
||||||
txDefaults,
|
txDefaults,
|
||||||
zrxAssetData,
|
zrxAssetData,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { artifacts as coreArtifacts } from '@0x/contracts-core';
|
import { artifacts as protocolArtifacts } from '@0x/contracts-protocol';
|
||||||
import { constants, formatters, LogDecoder, MarketSellOrders } from '@0x/contracts-test-utils';
|
import { constants, formatters, LogDecoder, MarketSellOrders } from '@0x/contracts-test-utils';
|
||||||
import { artifacts as tokensArtifacts } from '@0x/contracts-tokens';
|
import { artifacts as tokensArtifacts } from '@0x/contracts-tokens';
|
||||||
import { SignedOrder } from '@0x/types';
|
import { SignedOrder } from '@0x/types';
|
||||||
@ -60,7 +60,11 @@ export class ForwarderWrapper {
|
|||||||
constructor(contractInstance: ForwarderContract, provider: Provider) {
|
constructor(contractInstance: ForwarderContract, provider: Provider) {
|
||||||
this._forwarderContract = contractInstance;
|
this._forwarderContract = contractInstance;
|
||||||
this._web3Wrapper = new Web3Wrapper(provider);
|
this._web3Wrapper = new Web3Wrapper(provider);
|
||||||
this._logDecoder = new LogDecoder(this._web3Wrapper, { ...artifacts, ...tokensArtifacts, ...coreArtifacts });
|
this._logDecoder = new LogDecoder(this._web3Wrapper, {
|
||||||
|
...artifacts,
|
||||||
|
...tokensArtifacts,
|
||||||
|
...protocolArtifacts,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
public async marketSellOrdersWithEthAsync(
|
public async marketSellOrdersWithEthAsync(
|
||||||
orders: SignedOrder[],
|
orders: SignedOrder[],
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/core/README.md",
|
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/multisig/README.md",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/contracts-test-utils": "^1.0.0",
|
"@0x/contracts-test-utils": "^1.0.0",
|
||||||
"@0x/abi-gen": "^1.0.17",
|
"@0x/abi-gen": "^1.0.17",
|
||||||
|
@ -42,13 +42,13 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0x/contracts-core yarn build
|
PKG=@0x/contracts-protocol yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Or continuously rebuild on change:
|
Or continuously rebuild on change:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0x/contracts-core yarn watch
|
PKG=@0x/contracts-protocol yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "@0x/contracts-core",
|
"name": "@0x/contracts-protocol",
|
||||||
"version": "2.1.56",
|
"version": "2.1.56",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
@ -43,7 +43,7 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/core/README.md",
|
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/protocol/README.md",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x/contracts-test-utils": "^1.0.0",
|
"@0x/contracts-test-utils": "^1.0.0",
|
||||||
"@0x/abi-gen": "^1.0.17",
|
"@0x/abi-gen": "^1.0.17",
|
Loading…
x
Reference in New Issue
Block a user