@initia/interwovenkit-react 2.3.0 → 2.4.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/index.cjs +6 -2
- package/dist/index.d.ts +9 -10
- package/dist/index.js +6378 -5612
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -17,11 +17,7 @@ import { PropsWithChildren } from 'react';
|
|
|
17
17
|
import { SimulateResponse } from 'cosmjs-types/cosmos/tx/v1beta1/service';
|
|
18
18
|
import { StdFee } from '@cosmjs/stargate';
|
|
19
19
|
import { StdSignDoc } from '@cosmjs/amino';
|
|
20
|
-
import { useCreateWallet } from '@privy-io/react-auth';
|
|
21
|
-
import { useLoginWithSiwe } from '@privy-io/react-auth';
|
|
22
|
-
import { usePrivy } from '@privy-io/react-auth';
|
|
23
20
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
24
|
-
import { useWallets } from '@privy-io/react-auth';
|
|
25
21
|
import { Wallet } from '@rainbow-me/rainbowkit';
|
|
26
22
|
|
|
27
23
|
declare interface AssetOption {
|
|
@@ -29,6 +25,12 @@ declare interface AssetOption {
|
|
|
29
25
|
chainId: string;
|
|
30
26
|
}
|
|
31
27
|
|
|
28
|
+
declare interface AutoSignFeePolicy {
|
|
29
|
+
gasMultiplier?: number;
|
|
30
|
+
maxGasMultiplierFromSim?: number;
|
|
31
|
+
allowedFeeDenoms?: string[];
|
|
32
|
+
}
|
|
33
|
+
|
|
32
34
|
declare interface Config {
|
|
33
35
|
defaultChainId: string;
|
|
34
36
|
customChain?: Chain;
|
|
@@ -47,12 +49,7 @@ declare interface Config {
|
|
|
47
49
|
container?: HTMLElement;
|
|
48
50
|
disableAnalytics?: boolean;
|
|
49
51
|
enableAutoSign?: boolean | Record<string, string[]>;
|
|
50
|
-
|
|
51
|
-
privy: ReturnType<typeof usePrivy>;
|
|
52
|
-
createWallet: ReturnType<typeof useCreateWallet>["createWallet"];
|
|
53
|
-
wallets: ReturnType<typeof useWallets>["wallets"];
|
|
54
|
-
siwe: ReturnType<typeof useLoginWithSiwe>;
|
|
55
|
-
};
|
|
52
|
+
autoSignFeePolicy?: Record<string, AutoSignFeePolicy>;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
export declare const DEFAULT_GAS_ADJUSTMENT = 1.4;
|
|
@@ -161,6 +158,7 @@ declare interface TxParams {
|
|
|
161
158
|
memo?: string;
|
|
162
159
|
chainId?: string;
|
|
163
160
|
fee: StdFee;
|
|
161
|
+
preferredFeeDenom?: string;
|
|
164
162
|
}
|
|
165
163
|
|
|
166
164
|
declare interface TxRequest {
|
|
@@ -223,6 +221,7 @@ export declare function useInterwovenKit(): {
|
|
|
223
221
|
disable: (chainId?: string) => Promise<void>;
|
|
224
222
|
expiredAtByChain: Record<string, Date | null | undefined>;
|
|
225
223
|
isEnabledByChain: Record<string, boolean>;
|
|
224
|
+
granteeByChain: Record<string, string | undefined>;
|
|
226
225
|
};
|
|
227
226
|
};
|
|
228
227
|
|