From 2a715c94427247d92f06deedde5ecc2f717dd644 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Thu, 1 Oct 2020 06:49:43 -0700 Subject: [PATCH] rename from OrderHistory to Order --- src/ocean/Assets.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ocean/Assets.ts b/src/ocean/Assets.ts index d2dfa53a..a0df988e 100644 --- a/src/ocean/Assets.ts +++ b/src/ocean/Assets.ts @@ -33,7 +33,7 @@ export enum OrderProgressStep { TransferDataToken } -export interface OrderHistory { +export interface Order { dtAddress: string amount: string timestamp: number @@ -603,8 +603,8 @@ export class Assets extends Instantiable { account: Account, serviceType?: string, fromBlock?: number - ): Promise { - const results: OrderHistory[] = [] + ): Promise { + const results: Order[] = [] const address = this.web3.utils.toChecksumAddress(account.getId()) const events = await this.web3.eth.getPastLogs({ topics: [ @@ -614,7 +614,7 @@ export class Assets extends Instantiable { }) for (let i = 0; i < events.length; i++) { const blockDetails = await this.web3.eth.getBlock(events[i].blockNumber) - const order: OrderHistory = { + const order: Order = { dtAddress: events[i].address, timestamp: parseInt(String(blockDetails.timestamp)), transactionHash: events[i].transactionHash,