aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-03 23:15:14 +0800
committerFabio Berger <me@fabioberger.com>2018-08-03 23:15:14 +0800
commitd85ce6ac758a9a726c298b972a7c557e01f2ab2f (patch)
tree4db9ec59a4809ca1fbe140afd71fd0ff6766e95d /packages/0x.js/src
parent0d3d9dad846d01e84be3b52d48bfabd9e1853b66 (diff)
downloaddexon-sol-tools-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar
dexon-sol-tools-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar.gz
dexon-sol-tools-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar.bz2
dexon-sol-tools-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar.lz
dexon-sol-tools-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar.xz
dexon-sol-tools-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar.zst
dexon-sol-tools-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.zip
Make signature_util into an object literal so related functions are rendered together in the docs
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/0x.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts
index 2a2b82f63..9c01ebd9e 100644
--- a/packages/0x.js/src/0x.ts
+++ b/packages/0x.js/src/0x.ts
@@ -11,9 +11,8 @@ import {
} from '@0xproject/contract-wrappers';
import {
assetDataUtils,
- ecSignOrderHashAsync,
generatePseudoRandomSalt,
- isValidSignatureAsync,
+ signatureUtils,
MessagePrefixOpts,
orderHashUtils,
} from '@0xproject/order-utils';
@@ -198,7 +197,7 @@ export class ZeroEx {
* @return Whether the signature is valid for the supplied signerAddress and data.
*/
public async isValidSignatureAsync(data: string, signature: string, signerAddress: string): Promise<boolean> {
- const isValid = await isValidSignatureAsync(
+ const isValid = await signatureUtils.isValidSignatureAsync(
this._contractWrappers.getProvider(),
data,
signature,
@@ -238,7 +237,7 @@ export class ZeroEx {
* @param orderHash Hex encoded orderHash to sign.
* @param signerAddress The hex encoded Ethereum address you wish to sign it with. This address
* must be available via the Provider supplied to 0x.js.
- * @param MessagePrefixOpts Options regarding the desired prefix and whether to add it before calling `eth_sign`
+ * @param messagePrefixOpts Options regarding the desired prefix and whether to add it before calling `eth_sign`
* @return An object containing the Elliptic curve signature parameters generated by signing the orderHash.
*/
public async ecSignOrderHashAsync(
@@ -246,7 +245,7 @@ export class ZeroEx {
signerAddress: string,
messagePrefixOpts: MessagePrefixOpts,
): Promise<ECSignature> {
- const signature = await ecSignOrderHashAsync(
+ const signature = await signatureUtils.ecSignOrderHashAsync(
this._contractWrappers.getProvider(),
orderHash,
signerAddress,