@initia/interwovenkit-react 2.1.1 → 2.2.0

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.ts CHANGED
@@ -24,6 +24,11 @@ import { UseQueryResult } from '@tanstack/react-query';
24
24
  import { useWallets } from '@privy-io/react-auth';
25
25
  import { Wallet } from '@rainbow-me/rainbowkit';
26
26
 
27
+ declare interface AssetOption {
28
+ denom: string;
29
+ chainId: string;
30
+ }
31
+
27
32
  declare interface Config {
28
33
  defaultChainId: string;
29
34
  customChain?: Chain;
@@ -33,6 +38,11 @@ declare interface Config {
33
38
  routerApiUrl: string;
34
39
  glyphUrl: string;
35
40
  usernamesModuleAddress: string;
41
+ lockStakeModuleAddress: string;
42
+ minityUrl: string;
43
+ dexUrl: string;
44
+ vipUrl: string;
45
+ civitiaUrl: string;
36
46
  theme: "light" | "dark";
37
47
  container?: HTMLElement;
38
48
  disableAnalytics?: boolean;
@@ -111,6 +121,8 @@ declare class OfflineSigner implements OfflineAminoSigner {
111
121
 
112
122
  declare interface PortfolioAssetGroup extends PortfolioAssetGroupInfo {
113
123
  assets: Array<PortfolioAssetItem>;
124
+ totalValue: number;
125
+ totalAmount: number;
114
126
  }
115
127
 
116
128
  declare interface PortfolioAssetGroupInfo {
@@ -192,6 +204,18 @@ export declare function useInterwovenKit(): {
192
204
  openConnect: () => void;
193
205
  openWallet: () => void;
194
206
  openBridge: (defaultValues?: Partial<FormValues>) => void;
207
+ openDeposit: (params: {
208
+ denoms: string[];
209
+ chainId?: string;
210
+ srcOptions?: AssetOption[];
211
+ recipientAddress?: string;
212
+ }) => void;
213
+ openWithdraw: (params: {
214
+ denoms: string[];
215
+ chainId?: string;
216
+ dstOptions?: AssetOption[];
217
+ recipientAddress?: string;
218
+ }) => void;
195
219
  disconnect: () => void;
196
220
  autoSign: {
197
221
  isLoading: boolean;