aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-10-18 21:46:33 +0800
committerGitHub <noreply@github.com>2018-10-18 21:46:33 +0800
commit4b95e3d6848832a06fde54b29d41d99b2a52f6ec (patch)
tree88801e5747f905b31060ebe3af7cc42a11878c34 /packages/utils
parent9e8bca69a8a1d3570e30a28f150c0bec3848a760 (diff)
parent392d3394438fdadf4e3b4201c493e3a2921d8380 (diff)
downloaddexon-sol-tools-4b95e3d6848832a06fde54b29d41d99b2a52f6ec.tar
dexon-sol-tools-4b95e3d6848832a06fde54b29d41d99b2a52f6ec.tar.gz
dexon-sol-tools-4b95e3d6848832a06fde54b29d41d99b2a52f6ec.tar.bz2
dexon-sol-tools-4b95e3d6848832a06fde54b29d41d99b2a52f6ec.tar.lz
dexon-sol-tools-4b95e3d6848832a06fde54b29d41d99b2a52f6ec.tar.xz
dexon-sol-tools-4b95e3d6848832a06fde54b29d41d99b2a52f6ec.tar.zst
dexon-sol-tools-4b95e3d6848832a06fde54b29d41d99b2a52f6ec.zip
Merge pull request #1156 from 0xProject/feature/0x/npm-domain
Move package org from 0xproject to 0x
Diffstat (limited to 'packages/utils')
-rw-r--r--packages/utils/README.md12
-rw-r--r--packages/utils/package.json8
-rw-r--r--packages/utils/src/abi_decoder.ts2
-rw-r--r--packages/utils/src/sign_typed_data_utils.ts2
-rw-r--r--packages/utils/tslint.json2
5 files changed, 13 insertions, 13 deletions
diff --git a/packages/utils/README.md b/packages/utils/README.md
index c9a2f5846..0b15f00c5 100644
--- a/packages/utils/README.md
+++ b/packages/utils/README.md
@@ -1,25 +1,25 @@
-## @0xproject/utils
+## @0x/utils
Utils to be shared across 0x projects and packages
## Installation
```bash
-yarn add @0xproject/utils
+yarn add @0x/utils
```
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
```json
"compilerOptions": {
- "typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
+ "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}
```
## Usage
```javascript
-import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0xproject/utils';
+import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0x/utils';
```
## Troubleshooting
@@ -62,13 +62,13 @@ yarn install
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
```bash
-PKG=@0xproject/utils yarn build
+PKG=@0x/utils yarn build
```
Or continuously rebuild on change:
```bash
-PKG=@0xproject/utils yarn watch
+PKG=@0x/utils yarn watch
```
### Clean
diff --git a/packages/utils/package.json b/packages/utils/package.json
index f365cf97f..43844e535 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,5 +1,5 @@
{
- "name": "@0xproject/utils",
+ "name": "@0x/utils",
"version": "2.0.2",
"engines": {
"node": ">=6.12"
@@ -28,7 +28,7 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/utils/README.md",
"devDependencies": {
- "@0xproject/tslint-config": "^1.0.8",
+ "@0x/tslint-config": "^1.0.8",
"@types/detect-node": "2.0.0",
"@types/lodash": "4.14.104",
"@types/mocha": "^2.2.42",
@@ -41,8 +41,8 @@
"typescript": "3.0.1"
},
"dependencies": {
- "@0xproject/types": "^1.1.4",
- "@0xproject/typescript-typings": "^3.0.2",
+ "@0x/types": "^1.1.4",
+ "@0x/typescript-typings": "^3.0.2",
"@types/node": "*",
"abortcontroller-polyfill": "^1.1.9",
"bignumber.js": "~4.1.0",
diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts
index c0b2c7950..2da46db35 100644
--- a/packages/utils/src/abi_decoder.ts
+++ b/packages/utils/src/abi_decoder.ts
@@ -9,7 +9,7 @@ import {
RawLog,
SolidityTypes,
} from 'ethereum-types';
-import { ethers } from 'ethers';
+import * as ethers from 'ethers';
import * as _ from 'lodash';
import { addressUtils } from './address_utils';
diff --git a/packages/utils/src/sign_typed_data_utils.ts b/packages/utils/src/sign_typed_data_utils.ts
index cd5bcb42f..6963b9084 100644
--- a/packages/utils/src/sign_typed_data_utils.ts
+++ b/packages/utils/src/sign_typed_data_utils.ts
@@ -2,7 +2,7 @@ import * as ethUtil from 'ethereumjs-util';
import * as ethers from 'ethers';
import * as _ from 'lodash';
-import { EIP712Object, EIP712ObjectValue, EIP712TypedData, EIP712Types } from '@0xproject/types';
+import { EIP712Object, EIP712ObjectValue, EIP712TypedData, EIP712Types } from '@0x/types';
export const signTypedDataUtils = {
/**
diff --git a/packages/utils/tslint.json b/packages/utils/tslint.json
index ffaefe83a..dd9053357 100644
--- a/packages/utils/tslint.json
+++ b/packages/utils/tslint.json
@@ -1,3 +1,3 @@
{
- "extends": ["@0xproject/tslint-config"]
+ "extends": ["@0x/tslint-config"]
}