@kimafinance/kima-transaction-widget 1.2.50-beta.1 → 1.2.52-beta.1
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/components/KimaTransactionWidget.d.ts +3 -14
- package/dist/components/modals/index.d.ts +0 -2
- package/dist/hooks/useAllowance.d.ts +4 -2
- package/dist/index.d.ts +9 -3
- package/dist/index.js +423 -380
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +397 -331
- package/dist/index.modern.js.map +1 -1
- package/dist/interface.d.ts +5 -0
- package/dist/store/optionSlice.d.ts +123 -2
- package/dist/store/selectors.d.ts +1 -0
- package/dist/tronweb.d.ts +2 -1
- package/dist/utils/config.d.ts +0 -9
- package/dist/utils/constants.d.ts +24 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TransactionOption, ThemeOptions, ModeOptions, TitleOption, PaymentTitleOption, DAppOptions } from '../interface';
|
|
2
|
+
import { TransactionOption, ThemeOptions, ModeOptions, TitleOption, PaymentTitleOption, DAppOptions, NetworkOptions } from '../interface';
|
|
3
3
|
import '../index.css';
|
|
4
4
|
import { Web3Provider } from '@ethersproject/providers';
|
|
5
5
|
interface Props {
|
|
@@ -20,23 +20,12 @@ interface Props {
|
|
|
20
20
|
kimaBackendUrl: string;
|
|
21
21
|
kimaNodeProviderQuery: string;
|
|
22
22
|
kimaExplorer?: string;
|
|
23
|
+
networkOption?: NetworkOptions;
|
|
23
24
|
errorHandler?: (e: any) => void;
|
|
24
25
|
closeHandler?: (e: any) => void;
|
|
25
26
|
successHandler?: (e: any) => void;
|
|
26
27
|
switchChainHandler?: (chainId: number) => void;
|
|
27
28
|
keplrHandler?: (e: any) => void;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
* Returns the average of two numbers.
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* This method is part of the {@link core-library#Statistics | Statistics subsystem}.
|
|
34
|
-
*
|
|
35
|
-
* @param x - The first input number
|
|
36
|
-
* @param y - The second input number
|
|
37
|
-
* @returns The arithmetic mean of `x` and `y`
|
|
38
|
-
*
|
|
39
|
-
* @beta
|
|
40
|
-
*/
|
|
41
|
-
export declare const KimaTransactionWidget: ({ mode, txId, autoSwitchChain, defaultToken, provider, dAppOption, theme, titleOption, paymentTitleOption, useFIAT, helpURL, compliantOption, transactionOption, kimaBackendUrl, kimaNodeProviderQuery, kimaExplorer, feeURL, errorHandler, closeHandler, successHandler, switchChainHandler, keplrHandler }: Props) => React.JSX.Element;
|
|
30
|
+
export declare const KimaTransactionWidget: ({ mode, txId, autoSwitchChain, defaultToken, networkOption, provider, dAppOption, theme, titleOption, paymentTitleOption, useFIAT, helpURL, compliantOption, transactionOption, kimaBackendUrl, kimaNodeProviderQuery, kimaExplorer, feeURL, errorHandler, closeHandler, successHandler, switchChainHandler, keplrHandler }: Props) => React.JSX.Element;
|
|
42
31
|
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { default as HelpPopup } from './HelpPopup';
|
|
2
|
-
export { default as HashPopup } from './HashPopup';
|
|
3
1
|
export { default as SolanaWalletConnectModal } from './SolanaWalletConnectModal';
|
|
4
2
|
export { default as TronWalletConnectModal } from './TronWalletConnectModal';
|
|
5
3
|
export { default as BankPopup } from './BankPopup';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export default function useAllowance({ setApproving }: {
|
|
1
|
+
export default function useAllowance({ setApproving, setCancellingApprove }: {
|
|
2
2
|
setApproving: any;
|
|
3
|
+
setCancellingApprove: any;
|
|
3
4
|
}): {
|
|
4
5
|
isApproved: boolean;
|
|
5
6
|
poolAddress: string;
|
|
6
|
-
approve: () => Promise<void>;
|
|
7
|
+
approve: (isCancel?: boolean) => Promise<void>;
|
|
8
|
+
allowance: number;
|
|
7
9
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { NetworkOptions } from './interface';
|
|
3
|
+
export { FontSizeOptions, ColorModeOptions, ThemeOptions, SupportNetworks, CurrencyOptions, ModeOptions, DAppOptions, NetworkOptions, CHAIN_STRING_TO_NAME, CHAIN_NAMES_TO_STRING } from './interface';
|
|
3
4
|
export { KimaTransactionWidget } from './components/KimaTransactionWidget';
|
|
4
|
-
|
|
5
|
+
interface Props {
|
|
6
|
+
walletConnectProjectId?: string;
|
|
7
|
+
networkOption?: NetworkOptions;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const KimaProvider: ({ walletConnectProjectId, networkOption, children }: Props) => React.JSX.Element;
|