From 14c1d81438d89f539fce3da2b791d05a7253a1b3 Mon Sep 17 00:00:00 2001 From: Dario Anongba Varela Date: Mon, 20 Jun 2022 16:27:14 +0200 Subject: [PATCH] chore: Export types (#245) --- package-lock.json | 2 +- package.json | 2 +- src/kafka/types/{ILog.ts => IEventLog.ts} | 2 +- src/kafka/types/IReceipt.ts | 4 ++-- src/kafka/types/index.ts | 4 ++++ 5 files changed, 9 insertions(+), 5 deletions(-) rename src/kafka/types/{ILog.ts => IEventLog.ts} (90%) diff --git a/package-lock.json b/package-lock.json index c5937834..2b0a9419 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pegasys-orchestrate", - "version": "6.1.1", + "version": "6.1.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3010e8cd..fb6b3d2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pegasys-orchestrate", - "version": "6.1.1", + "version": "6.1.3", "description": "The PegaSys Orchestrate library provides convenient access to the Codefi Orchestrate API from applications written in server-side JavaScript", "main": "lib/index.js", "files": [ diff --git a/src/kafka/types/ILog.ts b/src/kafka/types/IEventLog.ts similarity index 90% rename from src/kafka/types/ILog.ts rename to src/kafka/types/IEventLog.ts index 76e1814c..4b0efbc0 100644 --- a/src/kafka/types/ILog.ts +++ b/src/kafka/types/IEventLog.ts @@ -1,6 +1,6 @@ import { IContextLabels } from './IContextLabels' -export interface ILog { +export interface IEventLog { address?: string topics?: string[] data?: string diff --git a/src/kafka/types/IReceipt.ts b/src/kafka/types/IReceipt.ts index cf478f1a..9a69388c 100644 --- a/src/kafka/types/IReceipt.ts +++ b/src/kafka/types/IReceipt.ts @@ -1,4 +1,4 @@ -import { ILog } from './ILog' +import { IEventLog } from './IEventLog' export interface IReceipt { txHash?: string @@ -9,7 +9,7 @@ export interface IReceipt { postState?: string status?: boolean bloom?: string - logs?: ILog[] + logs?: IEventLog[] gasUsed?: number cumulativeGasUsed?: number effectiveGasPrice?: string diff --git a/src/kafka/types/index.ts b/src/kafka/types/index.ts index 373a34f6..25625bc6 100644 --- a/src/kafka/types/index.ts +++ b/src/kafka/types/index.ts @@ -1,3 +1,7 @@ export * from './EventType' export * from './IResponse' export * from './IResponseValue' +export * from './IReceipt' +export * from './IEventLog' +export * from './ITransactionContext' +export * from './IContextLabels'