zigap-utils 0.0.507 → 0.0.801

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.
@@ -9,7 +9,6 @@ declare class LoginService {
9
9
  }>;
10
10
  sendMessage(roomId: string, message: string): Promise<void>;
11
11
  checkVerified(roomId: string, verified: boolean): Promise<string>;
12
- completeMessage(): Promise<void>;
13
12
  qrLogin(roomId: string, message: string, nonce: string): Promise<ResponseLoginType>;
14
13
  }
15
14
  declare const _default: LoginService;
@@ -0,0 +1,14 @@
1
+ import { TransactionResultType } from './types';
2
+
3
+ declare class PaymentService {
4
+ private isTransactionResultType;
5
+ startPayment(roomId: string): Promise<{
6
+ isSuccess: boolean;
7
+ }>;
8
+ healthCheck(): Promise<boolean>;
9
+ checkResponse(roomId: string): Promise<void>;
10
+ getTransactionResult(): Promise<TransactionResultType>;
11
+ qrPayment(roomId: string): Promise<TransactionResultType>;
12
+ }
13
+ declare const _default: PaymentService;
14
+ export default _default;
@@ -21,3 +21,8 @@ export interface ResponseLoginType {
21
21
  signature: string;
22
22
  publicKey: string;
23
23
  }
24
+ export interface TransactionResultType {
25
+ txHash: string;
26
+ from: string;
27
+ status: string;
28
+ }
@@ -1,7 +1,9 @@
1
1
  import { QrType } from './types';
2
2
 
3
3
  declare class QrService {
4
- generateQrCode(type: string, dapp: string, url: string, network: string[], icon: string | undefined): QrType;
4
+ generateLoginQrCode(dapp: string, url: string, network: string[], icon: string | undefined): QrType;
5
+ generateProvideQrCode(dapp: string, url: string, network: string[], icon: string | undefined): QrType;
6
+ generatePaymentQrCode(dapp: string, network: string, address: string, amount: string, description: string | undefined, info: string | undefined): QrType;
5
7
  }
6
8
  export declare const Qr: QrService;
7
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigap-utils",
3
- "version": "0.0.507",
3
+ "version": "0.0.801",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",