@kimafinance/kima-transaction-widget 1.3.12 → 1.3.14

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.
package/dist/index.d.cts CHANGED
@@ -4,6 +4,7 @@ import { Connection, Transaction, VersionedTransaction, PublicKey } from '@solan
4
4
  import { TronWeb } from 'tronweb';
5
5
  import { SignedTransaction } from '@tronweb3/tronwallet-abstract-adapter';
6
6
  import { BrowserProvider, JsonRpcSigner } from 'ethers';
7
+ import { LogLevelDesc } from 'loglevel';
7
8
 
8
9
  declare enum ChainName {
9
10
  ETHEREUM = "ETH",
@@ -35,7 +36,9 @@ declare enum TransactionStatus {
35
36
  FAILEDTOPAY = "FailedToPay",
36
37
  FAILEDTOPULL = "FailedToPull",
37
38
  UNAVAILABLE = "UnAvailable",
38
- KEYSIGNED = "KeySigned"
39
+ REFUNDSTART = "RefundStart",
40
+ REFUNDFAILED = "RefundFailed",
41
+ REFUNDCOMPLETED = "RefundCompleted"
39
42
  }
40
43
 
41
44
  declare enum NetworkOptions {
@@ -98,6 +101,7 @@ interface TransactionData {
98
101
  targetChain: string;
99
102
  tssPullHash: string;
100
103
  tssReleaseHash: string;
104
+ tssRefundHash: string;
101
105
  sourceSymbol: string;
102
106
  targetSymbol: string;
103
107
  amount: number | string;
@@ -142,13 +146,14 @@ interface KimaProviderProps {
142
146
  externalProvider?: ExternalProvider;
143
147
  kimaBackendUrl: string;
144
148
  children: ReactNode;
149
+ logLevel?: LogLevelDesc;
145
150
  errorHandler?: (e: any) => void;
146
151
  closeHandler?: (e: any) => void;
147
152
  successHandler?: (e: any) => void;
148
153
  keplrHandler?: (e: any) => void;
149
154
  switchChainHandler?: (e: any) => void;
150
155
  }
151
- declare const KimaProvider: ({ walletConnectProjectId, children, externalProvider, kimaBackendUrl, keplrHandler, successHandler, closeHandler, errorHandler, switchChainHandler }: KimaProviderProps) => react.JSX.Element;
156
+ declare const KimaProvider: ({ walletConnectProjectId, children, externalProvider, kimaBackendUrl, logLevel, keplrHandler, successHandler, closeHandler, errorHandler, switchChainHandler }: KimaProviderProps) => react.JSX.Element;
152
157
 
153
158
  interface Props {
154
159
  theme: ThemeOptions;
@@ -163,6 +168,6 @@ interface Props {
163
168
  excludedSourceNetworks?: Array<ChainName>;
164
169
  excludedTargetNetworks?: Array<ChainName>;
165
170
  }
166
- declare const KimaTransactionWidget: ({ mode, txId, dAppOption, theme, titleOption, paymentTitleOption, helpURL, compliantOption, transactionOption, excludedSourceNetworks, excludedTargetNetworks }: Props) => react__default.JSX.Element;
171
+ declare const KimaTransactionWidget: ({ mode, txId, dAppOption, theme, titleOption, paymentTitleOption, helpURL, compliantOption, transactionOption, excludedSourceNetworks, excludedTargetNetworks }: Props) => react__default.JSX.Element | null;
167
172
 
168
173
  export { CHAIN_NAMES_TO_STRING, CHAIN_STRING_TO_NAME, ColorModeOptions, type CompliantOption, CurrencyOptions, DAppOptions, type ExternalProvider, KimaProvider, KimaTransactionWidget, ModeOptions, type NetworkFee, NetworkOptions, type Option, type PaymentTitleOption, type ServiceFee, type SolProvider, ChainName as SupportNetworks, type ThemeOptions, type TitleOption, type TransactionData, type TransactionOption, type TronProvider, type Web3ModalAccountInfo };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { Connection, Transaction, VersionedTransaction, PublicKey } from '@solan
4
4
  import { TronWeb } from 'tronweb';
5
5
  import { SignedTransaction } from '@tronweb3/tronwallet-abstract-adapter';
6
6
  import { BrowserProvider, JsonRpcSigner } from 'ethers';
7
+ import { LogLevelDesc } from 'loglevel';
7
8
 
8
9
  declare enum ChainName {
9
10
  ETHEREUM = "ETH",
@@ -35,7 +36,9 @@ declare enum TransactionStatus {
35
36
  FAILEDTOPAY = "FailedToPay",
36
37
  FAILEDTOPULL = "FailedToPull",
37
38
  UNAVAILABLE = "UnAvailable",
38
- KEYSIGNED = "KeySigned"
39
+ REFUNDSTART = "RefundStart",
40
+ REFUNDFAILED = "RefundFailed",
41
+ REFUNDCOMPLETED = "RefundCompleted"
39
42
  }
40
43
 
41
44
  declare enum NetworkOptions {
@@ -98,6 +101,7 @@ interface TransactionData {
98
101
  targetChain: string;
99
102
  tssPullHash: string;
100
103
  tssReleaseHash: string;
104
+ tssRefundHash: string;
101
105
  sourceSymbol: string;
102
106
  targetSymbol: string;
103
107
  amount: number | string;
@@ -142,13 +146,14 @@ interface KimaProviderProps {
142
146
  externalProvider?: ExternalProvider;
143
147
  kimaBackendUrl: string;
144
148
  children: ReactNode;
149
+ logLevel?: LogLevelDesc;
145
150
  errorHandler?: (e: any) => void;
146
151
  closeHandler?: (e: any) => void;
147
152
  successHandler?: (e: any) => void;
148
153
  keplrHandler?: (e: any) => void;
149
154
  switchChainHandler?: (e: any) => void;
150
155
  }
151
- declare const KimaProvider: ({ walletConnectProjectId, children, externalProvider, kimaBackendUrl, keplrHandler, successHandler, closeHandler, errorHandler, switchChainHandler }: KimaProviderProps) => react.JSX.Element;
156
+ declare const KimaProvider: ({ walletConnectProjectId, children, externalProvider, kimaBackendUrl, logLevel, keplrHandler, successHandler, closeHandler, errorHandler, switchChainHandler }: KimaProviderProps) => react.JSX.Element;
152
157
 
153
158
  interface Props {
154
159
  theme: ThemeOptions;
@@ -163,6 +168,6 @@ interface Props {
163
168
  excludedSourceNetworks?: Array<ChainName>;
164
169
  excludedTargetNetworks?: Array<ChainName>;
165
170
  }
166
- declare const KimaTransactionWidget: ({ mode, txId, dAppOption, theme, titleOption, paymentTitleOption, helpURL, compliantOption, transactionOption, excludedSourceNetworks, excludedTargetNetworks }: Props) => react__default.JSX.Element;
171
+ declare const KimaTransactionWidget: ({ mode, txId, dAppOption, theme, titleOption, paymentTitleOption, helpURL, compliantOption, transactionOption, excludedSourceNetworks, excludedTargetNetworks }: Props) => react__default.JSX.Element | null;
167
172
 
168
173
  export { CHAIN_NAMES_TO_STRING, CHAIN_STRING_TO_NAME, ColorModeOptions, type CompliantOption, CurrencyOptions, DAppOptions, type ExternalProvider, KimaProvider, KimaTransactionWidget, ModeOptions, type NetworkFee, NetworkOptions, type Option, type PaymentTitleOption, type ServiceFee, type SolProvider, ChainName as SupportNetworks, type ThemeOptions, type TitleOption, type TransactionData, type TransactionOption, type TronProvider, type Web3ModalAccountInfo };