Add AssetBuyerManager to README
This commit is contained in:
@@ -12,16 +12,30 @@ yarn add @0xproject/asset-buyer
|
|||||||
|
|
||||||
**Import**
|
**Import**
|
||||||
|
|
||||||
|
For single-asset price estimation and purchase:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { AssetBuyer } from '@0xproject/asset-buyer';
|
import { AssetBuyer } from '@0xproject/asset-buyer';
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For multiple assets:
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { AssetBuyerManager } from '@0xproject/asset-buyer';
|
||||||
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var AssetBuyer = require('@0xproject/asset-buyer').AssetBuyer;
|
var AssetBuyer = require('@0xproject/asset-buyer').AssetBuyer;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
and
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
var AssetBuyerManager = require('@0xproject/asset-buyer').AssetBuyerManager;
|
||||||
|
```
|
||||||
|
|
||||||
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|||||||
Reference in New Issue
Block a user