update prettierrc and run prettier
This commit is contained in:
parent
5df74d35d0
commit
7c16bb3df8
@ -76,6 +76,10 @@ lib
|
||||
/contracts/erc1155/build/
|
||||
/contracts/extensions/build/
|
||||
/contracts/exchange-forwarder/build/
|
||||
/packages/asset-swapper/generated-artifacts
|
||||
/packages/asset-swapper/generated-wrappers
|
||||
/packages/asset-swapper/test/generated-artifacts
|
||||
/packages/asset-swapper/test/generated-wrappers
|
||||
package.json
|
||||
packages/*/docs
|
||||
*.sol
|
||||
|
@ -2,5 +2,6 @@
|
||||
"printWidth": 120,
|
||||
"tabWidth": 4,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all"
|
||||
"trailingComma": "all",
|
||||
"bracketSpacing": true
|
||||
}
|
||||
|
14
README.md
14
README.md
@ -42,13 +42,13 @@ These packages are all under development. See [/contracts/README.md](/contracts/
|
||||
|
||||
#### 0x-specific packages
|
||||
|
||||
| Package | Version | Description |
|
||||
| -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||
| [`@0x/contract-addresses`](/packages/contract-addresses) | [](https://www.npmjs.com/package/@0x/contract-addresses) | A tiny utility library for getting known deployed contract addresses for a particular network. |
|
||||
| [`@0x/contract-wrappers`](/packages/contract-wrappers) | [](https://www.npmjs.com/package/@0x/contract-wrappers) | JS/TS wrappers for interacting with the 0x smart contracts |
|
||||
| [`@0x/order-utils`](/packages/order-utils) | [](https://www.npmjs.com/package/@0x/order-utils) | A set of utilities for generating, parsing, signing and validating 0x orders |
|
||||
| [`@0x/migrations`](/packages/migrations) | [](https://www.npmjs.com/package/@0x/migrations) | Migration tool for deploying 0x smart contracts on private testnets |
|
||||
| [`@0x/contract-artifacts`](/packages/contract-artifacts) | [](https://www.npmjs.com/package/@0x/contract-artifacts) | 0x smart contract compilation artifacts | |
|
||||
| Package | Version | Description |
|
||||
| -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
||||
| [`@0x/contract-addresses`](/packages/contract-addresses) | [](https://www.npmjs.com/package/@0x/contract-addresses) | A tiny utility library for getting known deployed contract addresses for a particular network. |
|
||||
| [`@0x/contract-wrappers`](/packages/contract-wrappers) | [](https://www.npmjs.com/package/@0x/contract-wrappers) | JS/TS wrappers for interacting with the 0x smart contracts |
|
||||
| [`@0x/order-utils`](/packages/order-utils) | [](https://www.npmjs.com/package/@0x/order-utils) | A set of utilities for generating, parsing, signing and validating 0x orders |
|
||||
| [`@0x/migrations`](/packages/migrations) | [](https://www.npmjs.com/package/@0x/migrations) | Migration tool for deploying 0x smart contracts on private testnets |
|
||||
| [`@0x/contract-artifacts`](/packages/contract-artifacts) | [](https://www.npmjs.com/package/@0x/contract-artifacts) | 0x smart contract compilation artifacts | |
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
import * as chai from 'chai';
|
||||
import {get} from 'lodash';
|
||||
import { get } from 'lodash';
|
||||
import 'mocha';
|
||||
|
||||
import * as artifacts from '../src/index';
|
||||
|
||||
import {FORBIDDEN_PROPERTIES, REQUIRED_PROPERTIES} from '../src/transform';
|
||||
import { FORBIDDEN_PROPERTIES, REQUIRED_PROPERTIES } from '../src/transform';
|
||||
|
||||
const expect = chai.expect;
|
||||
|
||||
@ -27,7 +27,7 @@ const CONTRACTS_WITH_PURE_FNS = [
|
||||
|
||||
describe('Contract Artifacts', () => {
|
||||
it('should not include forbidden attributes', () => {
|
||||
const forbiddenPropertiesByArtifact: {[name: string]: string[]} = {};
|
||||
const forbiddenPropertiesByArtifact: { [name: string]: string[] } = {};
|
||||
for (const [artifactName, artifact] of Object.entries(artifacts)) {
|
||||
for (const forbiddenProperty of FORBIDDEN_PROPERTIES) {
|
||||
const rejectedValue = get(artifact, forbiddenProperty);
|
||||
|
Loading…
x
Reference in New Issue
Block a user