@cityofzion/blockchain-service 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -264,9 +264,13 @@ export type SwapServiceSwapResult = {
264
264
  id: string;
265
265
  };
266
266
  export type SwapServiceStatusResponse = {
267
- status: 'finished' | 'confirming' | 'exchanging' | 'failed';
268
- transactionHashes: string[];
267
+ status: 'finished' | 'confirming' | 'exchanging' | 'failed' | 'refunded';
268
+ txFrom?: string;
269
+ txTo?: string;
269
270
  };
271
+ export interface SwapServiceHelper {
272
+ getStatus(id: string): Promise<SwapServiceStatusResponse>;
273
+ }
270
274
  export interface SwapService<BSName extends string = string> {
271
275
  eventEmitter: TypedEmitter<SwapServiceEvents<BSName>>;
272
276
  setTokenToUse(token: SwapServiceToken<BSName> | null): Promise<void>;
@@ -276,5 +280,4 @@ export interface SwapService<BSName extends string = string> {
276
280
  setAddressToReceive(address: string | null): Promise<void>;
277
281
  swap(): Promise<SwapServiceSwapResult>;
278
282
  calculateFee(): Promise<string>;
279
- getStatus(): Promise<SwapServiceStatusResponse>;
280
283
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/blockchain-service",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",