@kimafinance/kima-transaction-widget 1.1.6 → 1.1.7

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.
@@ -6,6 +6,7 @@ interface Props extends DefaultProps {
6
6
  txId?: number;
7
7
  titleOption?: TitleOption;
8
8
  paymentTitleOption?: PaymentTitleOption;
9
+ compliantOption?: boolean;
9
10
  kimaBackendUrl: string;
10
11
  transactionOption?: TransactionOption;
11
12
  kimaNodeProviderQuery: string;
@@ -13,5 +14,5 @@ interface Props extends DefaultProps {
13
14
  closeHandler?: (e: any) => void;
14
15
  successHandler?: (e: any) => void;
15
16
  }
16
- export declare const KimaTransactionWidget: ({ mode, txId, theme, fontSize, titleOption, paymentTitleOption, transactionOption, kimaBackendUrl, kimaNodeProviderQuery, errorHandler, closeHandler, successHandler }: Props) => JSX.Element;
17
+ export declare const KimaTransactionWidget: ({ mode, txId, theme, fontSize, titleOption, paymentTitleOption, compliantOption, transactionOption, kimaBackendUrl, kimaNodeProviderQuery, errorHandler, closeHandler, successHandler }: Props) => JSX.Element;
17
18
  export {};
@@ -0,0 +1,17 @@
1
+ /// <reference lib="dom" />
2
+ export declare enum RiskScore {
3
+ LOW = "low",
4
+ MED = "med",
5
+ HIGH = "high"
6
+ }
7
+ export declare const RiskScore2String: {
8
+ [riskScore: string]: string;
9
+ };
10
+ export declare type RiskResult = {
11
+ address: string;
12
+ name: string;
13
+ classification: Array<string>;
14
+ risk_factors: Array<string>;
15
+ risk_score: RiskScore;
16
+ };
17
+ export declare const getRisk: (addresses: Array<string>, baseUrl?: string | undefined, apiKey?: string | undefined) => Promise<Array<RiskResult>>;