aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-16 08:10:44 +0800
committerJacob Evans <jacob@dekz.net>2017-11-16 08:10:44 +0800
commit0bcf7e56c2806d42ed43bf5377386501f582951a (patch)
tree7fac75683a4298d12d93c6d0f8bdf54892bf5c6b /packages/0x.js/src
parentee8042b4584793aba35c969b74274f60d76c95df (diff)
downloaddexon-sol-tools-0bcf7e56c2806d42ed43bf5377386501f582951a.tar
dexon-sol-tools-0bcf7e56c2806d42ed43bf5377386501f582951a.tar.gz
dexon-sol-tools-0bcf7e56c2806d42ed43bf5377386501f582951a.tar.bz2
dexon-sol-tools-0bcf7e56c2806d42ed43bf5377386501f582951a.tar.lz
dexon-sol-tools-0bcf7e56c2806d42ed43bf5377386501f582951a.tar.xz
dexon-sol-tools-0bcf7e56c2806d42ed43bf5377386501f582951a.tar.zst
dexon-sol-tools-0bcf7e56c2806d42ed43bf5377386501f582951a.zip
Change to Async suffix convention
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/order_watcher/order_state_watcher.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/src/order_watcher/order_state_watcher.ts b/packages/0x.js/src/order_watcher/order_state_watcher.ts
index 9f756dbc3..71dfeaedc 100644
--- a/packages/0x.js/src/order_watcher/order_state_watcher.ts
+++ b/packages/0x.js/src/order_watcher/order_state_watcher.ts
@@ -78,18 +78,18 @@ export class OrderStateWatcher {
* signature is verified.
* @param signedOrder The order you wish to start watching.
*/
- public async addOrder(signedOrder: SignedOrder): Promise<void> {
+ public async addOrderAsync(signedOrder: SignedOrder): Promise<void> {
assert.doesConformToSchema('signedOrder', signedOrder, schemas.signedOrderSchema);
const orderHash = ZeroEx.getOrderHashHex(signedOrder);
assert.isValidSignature(orderHash, signedOrder.ecSignature, signedOrder.maker);
this._orderByOrderHash[orderHash] = signedOrder;
- await this.addToDependentOrderHashes(signedOrder, orderHash);
+ await this.addToDependentOrderHashesAsync(signedOrder, orderHash);
}
/**
* Removes an order from the orderStateWatcher
* @param orderHash The orderHash of the order you wish to stop watching.
*/
- public async removeOrder(orderHash: string): Promise<void> {
+ public async removeOrderAsync(orderHash: string): Promise<void> {
assert.doesConformToSchema('orderHash', orderHash, schemas.orderHashSchema);
const signedOrder = this._orderByOrderHash[orderHash];
if (_.isUndefined(signedOrder)) {
@@ -213,7 +213,7 @@ export class OrderStateWatcher {
await this._callbackIfExistsAsync(orderState);
}
}
- private async addToDependentOrderHashes(signedOrder: SignedOrder, orderHash: string): Promise<void> {
+ private async addToDependentOrderHashesAsync(signedOrder: SignedOrder, orderHash: string): Promise<void> {
if (_.isUndefined(this._dependentOrderHashes[signedOrder.maker])) {
this._dependentOrderHashes[signedOrder.maker] = {};
}