From 2fc0096cf643c971c120871f96e3b17a44a282e8 Mon Sep 17 00:00:00 2001 From: Henry Harder Date: Wed, 9 Oct 2019 14:55:29 -0700 Subject: [PATCH] v0.5.1 --- docs/classes/dealerclient.md | 66 ++++++++++++------------ docs/globals.md | 8 +-- docs/interfaces/dealerfilltransaction.md | 12 ++--- docs/interfaces/dealeroptions.md | 6 +-- docs/interfaces/dealerresponse.md | 16 +++--- docs/interfaces/quoteresponse.md | 18 +++---- docs/interfaces/swapresponse.md | 20 +++---- package.json | 4 +- 8 files changed, 75 insertions(+), 75 deletions(-) diff --git a/docs/classes/dealerclient.md b/docs/classes/dealerclient.md index 7d41060..f9464ba 100644 --- a/docs/classes/dealerclient.md +++ b/docs/classes/dealerclient.md @@ -54,7 +54,7 @@ A simple client for the Zaidan dealer server. \+ **new DealerClient**(`dealerUri`: string, `options`: [DealerOptions](../interfaces/dealeroptions.md)): *[DealerClient](dealerclient.md)* -*Defined in [DealerClient.ts:85](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L85)* +*Defined in [DealerClient.ts:85](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L85)* Instantiate a new DealerClient. Prior to use, `client.init()` should be called, which triggers a prompt for the user to allow MetaMask to @@ -66,10 +66,10 @@ setting of attempting to load a web3 provider through the browser. **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`dealerUri` | string | the base RPC API path for the dealer server | -`options` | [DealerOptions](../interfaces/dealeroptions.md) | - | +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`dealerUri` | string | - | the base RPC API path for the dealer server | +`options` | [DealerOptions](../interfaces/dealeroptions.md) | {} | - | **Returns:** *[DealerClient](dealerclient.md)* @@ -79,7 +79,7 @@ Name | Type | Description | • **GAS_PRICE**: *BigNumber* -*Defined in [DealerClient.ts:79](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L79)* +*Defined in [DealerClient.ts:79](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L79)* Default gas price to use for allowance transactions (in wei). @@ -89,7 +89,7 @@ ___ • **coinbase**: *string* -*Defined in [DealerClient.ts:67](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L67)* +*Defined in [DealerClient.ts:67](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L67)* Stores the current user's coinbase address. @@ -99,7 +99,7 @@ ___ • **contractWrappers**: *ContractWrappers* -*Defined in [DealerClient.ts:70](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L70)* +*Defined in [DealerClient.ts:70](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L70)* Initialized contract wrappers for interacting with the 0x system. @@ -109,7 +109,7 @@ ___ • **initialized**: *boolean* -*Defined in [DealerClient.ts:73](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L73)* +*Defined in [DealerClient.ts:73](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L73)* Set to 'true' after a successful .init(), must be called before use. @@ -119,7 +119,7 @@ ___ • **isBrowser**: *boolean* -*Defined in [DealerClient.ts:76](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L76)* +*Defined in [DealerClient.ts:76](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L76)* Set to 'true' if browser environment is detected. @@ -129,7 +129,7 @@ ___ • **networkId**: *number* -*Defined in [DealerClient.ts:64](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L64)* +*Defined in [DealerClient.ts:64](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L64)* Stores the configured Ethereum network ID. @@ -139,7 +139,7 @@ ___ • **pairs**: *string[]* -*Defined in [DealerClient.ts:47](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L47)* +*Defined in [DealerClient.ts:47](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L47)* An array of the currently supported pairs (as expected by `getQuote`). @@ -149,7 +149,7 @@ ___ • **provider**: *Provider | SupportedProvider | MetamaskSubprovider* -*Defined in [DealerClient.ts:61](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L61)* +*Defined in [DealerClient.ts:61](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L61)* Provider instance used to interact with Ethereum. @@ -159,7 +159,7 @@ ___ • **tokens**: *object* -*Defined in [DealerClient.ts:52](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L52)* +*Defined in [DealerClient.ts:52](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L52)* Maps tokenTicker => address for looking up common tokens. @@ -173,7 +173,7 @@ ___ • **txPriority**: *[GasPriority](../globals.md#gaspriority)* -*Defined in [DealerClient.ts:85](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L85)* +*Defined in [DealerClient.ts:85](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L85)* Transaction priority (according to ethgasstation.info API), defaults to fast. @@ -184,7 +184,7 @@ ___ • **web3**: *Web3* -*Defined in [DealerClient.ts:55](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L55)* +*Defined in [DealerClient.ts:55](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L55)* Main Web3 instance for interacting with Ethereum. @@ -194,7 +194,7 @@ ___ • **web3Wrapper**: *Web3Wrapper* -*Defined in [DealerClient.ts:58](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L58)* +*Defined in [DealerClient.ts:58](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L58)* Provides additional convenience methods for interacting with web3. @@ -204,7 +204,7 @@ ___ ▪ **COMPATIBLE_VERSION**: *string* = "2.0" -*Defined in [DealerClient.ts:30](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L30)* +*Defined in [DealerClient.ts:30](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L30)* The dealer API version this client is compatible with. @@ -214,7 +214,7 @@ ___ ▪ **MAX_ALLOWANCE**: *BigNumber* = new BigNumber(2).exponentiatedBy(256).minus(1) -*Defined in [DealerClient.ts:27](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L27)* +*Defined in [DealerClient.ts:27](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L27)* 2^256 - 1 represents an effectively "unlimited" allowance @@ -224,7 +224,7 @@ ___ ▸ **fromWei**(`weiAmount`: string): *string* -*Defined in [DealerClient.ts:445](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L445)* +*Defined in [DealerClient.ts:445](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L445)* Convert a number of tokens, denominated in the smallest unit - "wei" - to "full" units, called "ether". One ether = 1*10^18 wei. @@ -254,7 +254,7 @@ ___ ▸ **getBalance**(`tokenTicker`: string): *Promise‹string›* -*Defined in [DealerClient.ts:395](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L395)* +*Defined in [DealerClient.ts:395](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L395)* Return the user's balance (in wei) of a specified supported token. Only supported tickers will work (see `client.tokens`). @@ -284,7 +284,7 @@ ___ ▸ **getEtherscanLink**(`txId`: string): *string* -*Defined in [DealerClient.ts:479](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L479)* +*Defined in [DealerClient.ts:479](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L479)* Returns the URL of the Etherscan status page for the specified TX ID. @@ -306,7 +306,7 @@ ___ ▸ **getQuote**(`size`: number, `symbol`: string, `side`: string, `takerAddress`: string): *Promise‹[QuoteResponse](../interfaces/quoteresponse.md)›* -*Defined in [DealerClient.ts:202](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L202)* +*Defined in [DealerClient.ts:202](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L202)* Request a price quote a signed order from the dealer server. The response includes price and fee information, as well as signed 0x order message for @@ -350,7 +350,7 @@ ___ ▸ **getSwapQuote**(`size`: number, `clientAsset`: string, `dealerAsset`: string, `takerAddress`: string): *Promise‹[SwapResponse](../interfaces/swapresponse.md)›* -*Defined in [DealerClient.ts:245](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L245)* +*Defined in [DealerClient.ts:245](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L245)* An alternative interface for fetching a price quote using the concept of an asset "swap" as opposed to a conventional base/quote bid/ask interface. @@ -393,7 +393,7 @@ ___ ▸ **handleTrade**(`order`: SignedOrder, `quoteId`: string, `takerAddress`: string): *Promise‹string›* -*Defined in [DealerClient.ts:292](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L292)* +*Defined in [DealerClient.ts:292](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L292)* Sign a 0x `fillOrder` transaction message, and submit it back to the server for settlement. Signs a fill transaction for the entire specified @@ -436,7 +436,7 @@ ___ ▸ **hasAllowance**(`tokenTicker`: string): *Promise‹boolean›* -*Defined in [DealerClient.ts:337](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L337)* +*Defined in [DealerClient.ts:337](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L337)* Check if the user has set an allowance for the specified token. If the method returns `false`, allowance can be set with `client.setAllowance`. @@ -469,7 +469,7 @@ ___ ▸ **init**(): *Promise‹void›* -*Defined in [DealerClient.ts:130](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L130)* +*Defined in [DealerClient.ts:130](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L130)* Initialize a DealerClient instance. A call to `client.init()` will trigger a MetaMask pop-up prompting the user to sign in, or allow the site access. @@ -486,7 +486,7 @@ ___ ▸ **isAuthorized**(`takerAddress`: string): *Promise‹boolean›* -*Defined in [DealerClient.ts:167](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L167)* +*Defined in [DealerClient.ts:167](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L167)* Check if a taker's address will be allowed to trade with the dealer based on the dealer's configured whitelist/blacklist. @@ -507,7 +507,7 @@ ___ ▸ **makeBigNumber**(`n`: number | string): *BigNumber* -*Defined in [DealerClient.ts:424](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L424)* +*Defined in [DealerClient.ts:424](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L424)* Turn a `string` or primitive `number` into a `BigNumber` for math reasons. @@ -533,7 +533,7 @@ ___ ▸ **setAllowance**(`tokenTicker`: string): *Promise‹TransactionReceiptWithDecodedLogs›* -*Defined in [DealerClient.ts:371](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L371)* +*Defined in [DealerClient.ts:371](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L371)* Set an unlimited proxy allowance for the 0x ERC20 Proxy contract for the specified token ticker. @@ -568,7 +568,7 @@ ___ ▸ **supportedTickers**(): *string[]* -*Defined in [DealerClient.ts:502](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L502)* +*Defined in [DealerClient.ts:502](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L502)* Return an array containing the list of supported token tickers. @@ -587,7 +587,7 @@ ___ ▸ **toWei**(`etherAmount`: string): *string* -*Defined in [DealerClient.ts:466](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L466)* +*Defined in [DealerClient.ts:466](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L466)* Convert a number of tokens (full units, called "ether") to "wei", the smallest denomination of most ERC-20 tokens with 18 decimals. @@ -617,7 +617,7 @@ ___ ▸ **waitForTransactionSuccessOrThrow**(`txId`: string): *Promise‹void›* -*Defined in [DealerClient.ts:407](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/DealerClient.ts#L407)* +*Defined in [DealerClient.ts:407](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/DealerClient.ts#L407)* Wait for a specific Ethereum transaction to be successfully mined. diff --git a/docs/globals.md b/docs/globals.md index 4837efc..7cd5a01 100644 --- a/docs/globals.md +++ b/docs/globals.md @@ -32,7 +32,7 @@ Ƭ **GasPriority**: *"safeLow" | "standard" | "fast" | "fastest"* -*Defined in [types.ts:91](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L91)* +*Defined in [types.ts:91](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L91)* Gas price priority (as used in ETH Gas Station API). @@ -42,7 +42,7 @@ Gas price priority (as used in ETH Gas Station API). ▸ **convertZeroExTransactionToDealerFill**(`fillTx`: SignedZeroExTransaction, `quoteId`: string): *[DealerFillTransaction](interfaces/dealerfilltransaction.md)* -*Defined in [utils.ts:55](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/utils.ts#L55)* +*Defined in [utils.ts:55](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/utils.ts#L55)* Create a dealer POST /order request body from a signed 0x fill transaction and the quote ID corresponding to the signed transaction data. @@ -64,7 +64,7 @@ ___ ▸ **createAndSignZeroExTransaction**(`provider`: SupportedProvider, `signerAddress`: string, `verifyingContractAddress`: string, `order`: SignedOrder, `takerAmount`: BigNumber): *Promise‹SignedZeroExTransaction›* -*Defined in [utils.ts:27](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/utils.ts#L27)* +*Defined in [utils.ts:27](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/utils.ts#L27)* Given a signed 0x order, signer address, and taker asset amount, prepare and sign a 0x fill transaction to be submitted to the verifying exchange contract @@ -93,7 +93,7 @@ ___ ▸ **getGasPrice**(`priority`: [GasPriority](globals.md#gaspriority)): *Promise‹BigNumber›* -*Defined in [utils.ts:67](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/utils.ts#L67)* +*Defined in [utils.ts:67](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/utils.ts#L67)* Fetch a gas price from Etherchain.org for a given priority (tx conf speed). diff --git a/docs/interfaces/dealerfilltransaction.md b/docs/interfaces/dealerfilltransaction.md index 154b536..89da2bf 100644 --- a/docs/interfaces/dealerfilltransaction.md +++ b/docs/interfaces/dealerfilltransaction.md @@ -25,7 +25,7 @@ Request body for dealer POST /order (submit fill) endpoint. • **address**: *string* -*Defined in [types.ts:82](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L82)* +*Defined in [types.ts:82](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L82)* The taker address (and signer). @@ -35,7 +35,7 @@ ___ • **data**: *string* -*Defined in [types.ts:73](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L73)* +*Defined in [types.ts:73](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L73)* Raw hex-encoded fill transaction data. @@ -45,7 +45,7 @@ ___ • **hash**: *string* -*Defined in [types.ts:76](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L76)* +*Defined in [types.ts:76](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L76)* 0x transaction hash (hash of data, etc.). @@ -55,7 +55,7 @@ ___ • **quoteId**: *string* -*Defined in [types.ts:85](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L85)* +*Defined in [types.ts:85](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L85)* Required UUID from initial quote (must match signed order). @@ -65,7 +65,7 @@ ___ • **salt**: *string* -*Defined in [types.ts:70](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L70)* +*Defined in [types.ts:70](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L70)* Salt used in signature generation. @@ -75,6 +75,6 @@ ___ • **sig**: *string* -*Defined in [types.ts:79](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L79)* +*Defined in [types.ts:79](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L79)* Signature generated by signer (`address`) from signing fill transaction. diff --git a/docs/interfaces/dealeroptions.md b/docs/interfaces/dealeroptions.md index c22ab2b..c73d40c 100644 --- a/docs/interfaces/dealeroptions.md +++ b/docs/interfaces/dealeroptions.md @@ -22,7 +22,7 @@ Configuration options for the dealer client. • **providerUrl**? : *string* -*Defined in [types.ts:11](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L11)* +*Defined in [types.ts:11](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L11)* Ethereum JSONRPC provider url (server-side only) @@ -32,7 +32,7 @@ ___ • **takerAddress**? : *string* -*Defined in [types.ts:8](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L8)* +*Defined in [types.ts:8](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L8)* Address to use to sign and fill orders. @@ -42,6 +42,6 @@ ___ • **txPriority**? : *[GasPriority](../globals.md#gaspriority)* -*Defined in [types.ts:14](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L14)* +*Defined in [types.ts:14](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L14)* Optional gas price selector (fast, safeLow, etc.) diff --git a/docs/interfaces/dealerresponse.md b/docs/interfaces/dealerresponse.md index fbe4e59..c525a04 100644 --- a/docs/interfaces/dealerresponse.md +++ b/docs/interfaces/dealerresponse.md @@ -31,7 +31,7 @@ The base dealer response, fields present for all quotes (swap/bid/ask). • **expiration**: *number* -*Defined in [types.ts:25](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L25)* +*Defined in [types.ts:25](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L25)* The UNIX timestamp at which this offer expires. @@ -41,7 +41,7 @@ ___ • **fee**: *number* -*Defined in [types.ts:40](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L40)* +*Defined in [types.ts:40](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L40)* The required fee from the dealer server. @@ -51,7 +51,7 @@ ___ • **id**: *string* -*Defined in [types.ts:31](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L31)* +*Defined in [types.ts:31](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L31)* The unique request ID that refers to this offer. @@ -61,7 +61,7 @@ ___ • **order**: *SignedOrder* -*Defined in [types.ts:43](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L43)* +*Defined in [types.ts:43](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L43)* The signed maker order from the dealer server. @@ -71,7 +71,7 @@ ___ • **pair**: *string* -*Defined in [types.ts:28](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L28)* +*Defined in [types.ts:28](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L28)* The market symbol the quote is for @@ -81,7 +81,7 @@ ___ • **price**: *number* -*Defined in [types.ts:34](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L34)* +*Defined in [types.ts:34](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L34)* The price and order data for the quote. @@ -91,7 +91,7 @@ ___ • **size**: *number* -*Defined in [types.ts:37](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L37)* +*Defined in [types.ts:37](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L37)* The taker size, specified in the initial request. @@ -101,6 +101,6 @@ ___ • **takerAddress**: *string* -*Defined in [types.ts:22](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L22)* +*Defined in [types.ts:22](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L22)* The taker address which must fill the order (no other taker will be accepted). diff --git a/docs/interfaces/quoteresponse.md b/docs/interfaces/quoteresponse.md index 296a831..fa97222 100644 --- a/docs/interfaces/quoteresponse.md +++ b/docs/interfaces/quoteresponse.md @@ -32,7 +32,7 @@ The dealer's response for a currency pair quote (bid/ask on X/Y pair). *Inherited from [DealerResponse](dealerresponse.md).[expiration](dealerresponse.md#expiration)* -*Defined in [types.ts:25](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L25)* +*Defined in [types.ts:25](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L25)* The UNIX timestamp at which this offer expires. @@ -44,7 +44,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[fee](dealerresponse.md#fee)* -*Defined in [types.ts:40](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L40)* +*Defined in [types.ts:40](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L40)* The required fee from the dealer server. @@ -56,7 +56,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[id](dealerresponse.md#id)* -*Defined in [types.ts:31](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L31)* +*Defined in [types.ts:31](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L31)* The unique request ID that refers to this offer. @@ -68,7 +68,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[order](dealerresponse.md#order)* -*Defined in [types.ts:43](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L43)* +*Defined in [types.ts:43](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L43)* The signed maker order from the dealer server. @@ -80,7 +80,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[pair](dealerresponse.md#pair)* -*Defined in [types.ts:28](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L28)* +*Defined in [types.ts:28](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L28)* The market symbol the quote is for @@ -92,7 +92,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[price](dealerresponse.md#price)* -*Defined in [types.ts:34](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L34)* +*Defined in [types.ts:34](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L34)* The price and order data for the quote. @@ -102,7 +102,7 @@ ___ • **side**: *string* -*Defined in [types.ts:62](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L62)* +*Defined in [types.ts:62](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L62)* The side of the quote (bid or ask). @@ -114,7 +114,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[size](dealerresponse.md#size)* -*Defined in [types.ts:37](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L37)* +*Defined in [types.ts:37](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L37)* The taker size, specified in the initial request. @@ -126,6 +126,6 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[takerAddress](dealerresponse.md#takeraddress)* -*Defined in [types.ts:22](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L22)* +*Defined in [types.ts:22](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L22)* The taker address which must fill the order (no other taker will be accepted). diff --git a/docs/interfaces/swapresponse.md b/docs/interfaces/swapresponse.md index 602d5ef..b5e5e3c 100644 --- a/docs/interfaces/swapresponse.md +++ b/docs/interfaces/swapresponse.md @@ -31,7 +31,7 @@ The dealer's response for a swap quote (swap `n` of `Y` for equivalent amount of • **clientAsset**: *string* -*Defined in [types.ts:54](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L54)* +*Defined in [types.ts:54](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L54)* The asset (ticker) the client will send to the dealer. @@ -41,7 +41,7 @@ ___ • **dealerAsset**: *string* -*Defined in [types.ts:51](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L51)* +*Defined in [types.ts:51](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L51)* The asset (ticker) the dealer will send to the client. @@ -53,7 +53,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[expiration](dealerresponse.md#expiration)* -*Defined in [types.ts:25](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L25)* +*Defined in [types.ts:25](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L25)* The UNIX timestamp at which this offer expires. @@ -65,7 +65,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[fee](dealerresponse.md#fee)* -*Defined in [types.ts:40](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L40)* +*Defined in [types.ts:40](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L40)* The required fee from the dealer server. @@ -77,7 +77,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[id](dealerresponse.md#id)* -*Defined in [types.ts:31](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L31)* +*Defined in [types.ts:31](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L31)* The unique request ID that refers to this offer. @@ -89,7 +89,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[order](dealerresponse.md#order)* -*Defined in [types.ts:43](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L43)* +*Defined in [types.ts:43](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L43)* The signed maker order from the dealer server. @@ -101,7 +101,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[pair](dealerresponse.md#pair)* -*Defined in [types.ts:28](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L28)* +*Defined in [types.ts:28](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L28)* The market symbol the quote is for @@ -113,7 +113,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[price](dealerresponse.md#price)* -*Defined in [types.ts:34](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L34)* +*Defined in [types.ts:34](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L34)* The price and order data for the quote. @@ -125,7 +125,7 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[size](dealerresponse.md#size)* -*Defined in [types.ts:37](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L37)* +*Defined in [types.ts:37](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L37)* The taker size, specified in the initial request. @@ -137,6 +137,6 @@ ___ *Inherited from [DealerResponse](dealerresponse.md).[takerAddress](dealerresponse.md#takeraddress)* -*Defined in [types.ts:22](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/1331089/src/types.ts#L22)* +*Defined in [types.ts:22](https://github.com/ParadigmFoundation/zaidan-dealer-client/blob/e3bfe31/src/types.ts#L22)* The taker address which must fill the order (no other taker will be accepted). diff --git a/package.json b/package.json index 00a94a6..7baee77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zaidan-dealer-client", - "version": "0.5.0", + "version": "0.5.1", "main": "dist/index.js", "repository": "https://github.com/ParadigmFoundation/zaidan-dealer-client", "license": "MIT", @@ -72,4 +72,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file