diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-18 19:01:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-18 19:01:01 +0800 |
commit | 56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7 (patch) | |
tree | d4c4c14d6b3bfe97fbddf757c7e73e11661b7529 /packages/website | |
parent | 28863f9a6f8a28ddbfe588b9e4d03b1e31da6961 (diff) | |
download | dexon-sol-tools-56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7.tar dexon-sol-tools-56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7.tar.gz dexon-sol-tools-56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7.tar.bz2 dexon-sol-tools-56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7.tar.lz dexon-sol-tools-56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7.tar.xz dexon-sol-tools-56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7.tar.zst dexon-sol-tools-56cb2470cce2fed776f3cabacd6d31fa0ccdbbd7.zip |
chore: fix up asset-buyer doc and add to Dev Home
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/containers/asset_buyer_documentation.ts | 4 | ||||
-rw-r--r-- | packages/website/ts/pages/documentation/docs_home.tsx | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/packages/website/ts/containers/asset_buyer_documentation.ts b/packages/website/ts/containers/asset_buyer_documentation.ts index f794625de..13a597ea3 100644 --- a/packages/website/ts/containers/asset_buyer_documentation.ts +++ b/packages/website/ts/containers/asset_buyer_documentation.ts @@ -5,7 +5,7 @@ import { Dispatch } from 'redux'; import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page'; import { Dispatcher } from 'ts/redux/dispatcher'; import { State } from 'ts/redux/reducer'; -import { DocPackages } from 'ts/types'; +import { DocPackages, ScreenWidths } from 'ts/types'; import { Translate } from 'ts/utils/translate'; /* tslint:disable:no-var-requires */ @@ -47,6 +47,7 @@ interface ConnectedState { availableDocVersions: string[]; docsInfo: DocsInfo; translate: Translate; + screenWidth: ScreenWidths; } interface ConnectedDispatch { @@ -58,6 +59,7 @@ const mapStateToProps = (state: State, _ownProps: DocPageProps): ConnectedState availableDocVersions: state.availableDocVersions, translate: state.translate, docsInfo, + screenWidth: state.screenWidth, }); const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ diff --git a/packages/website/ts/pages/documentation/docs_home.tsx b/packages/website/ts/pages/documentation/docs_home.tsx index b02959610..f0af78fc1 100644 --- a/packages/website/ts/pages/documentation/docs_home.tsx +++ b/packages/website/ts/pages/documentation/docs_home.tsx @@ -113,6 +113,14 @@ const CATEGORY_TO_PACKAGES: ObjectMap<Package[]> = { shouldOpenInNewTab: true, }, }, + { + description: + 'Convenience package for buying assets represented on the Ethereum blockchain using 0x. In its simplest form, the package helps in the usage of the [0x forwarder contract](https://github.com/0xProject/0x-protocol-specification/blob/master/v2/forwarder-specification.md), which allows users to execute [Wrapped Ether](https://weth.io/) based 0x orders without having to set allowances, wrap Ether or own ZRX, meaning they can buy tokens with Ether alone. Given some liquidity (0x signed orders), it helps estimate the Ether cost of buying a certain asset (giving a range) and then buying that asset.', + link: { + title: '@0xproject/asset-buyer', + to: WebsitePaths.AssetBuyer, + }, + }, ], [Categories.Ethereum]: [ { |