@initia/interwovenkit-react 2.0.0-rc.3 → 2.0.0-rc.5

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
@@ -20,15 +20,6 @@ import { UseQueryResult } from '@tanstack/react-query';
20
20
  import { Wallet } from '@rainbow-me/rainbowkit';
21
21
  import { z } from 'zod';
22
22
 
23
- export declare const AddressUtils: {
24
- toBytes(address: string, byteLength?: number): Uint8Array<ArrayBufferLike>;
25
- toBech32(address: string, prefix?: string): string;
26
- toHex(address: string): string;
27
- toPrefixedHex(address: string): string;
28
- validate(address: string, prefix?: string): boolean;
29
- equals(address1: string, address2: string): boolean;
30
- };
31
-
32
23
  declare interface Config {
33
24
  defaultChainId: string;
34
25
  customChain?: Chain;
@@ -41,31 +32,10 @@ declare interface Config {
41
32
  container?: HTMLElement;
42
33
  }
43
34
 
44
- export declare function createUsernameClient({ restUrl, moduleAddress }: Params): {
45
- restUrl: string;
46
- getUsername: (address: string) => Promise<string | null>;
47
- getAddress: (username: string) => Promise<string | null>;
48
- validateUsername: (username: string) => boolean;
49
- };
50
-
51
35
  export declare const DEFAULT_GAS_ADJUSTMENT = 1.4;
52
36
 
53
37
  export declare const DEFAULT_GAS_PRICE_MULTIPLIER = 1.03;
54
38
 
55
- export declare function formatAmount(value?: BigNumber.Value, options?: FormatAmountOptions): string;
56
-
57
- export declare interface FormatAmountOptions extends FormatNumberOptions {
58
- decimals?: number;
59
- }
60
-
61
- export declare function formatNumber(value: BigNumber.Value, options?: FormatNumberOptions): string;
62
-
63
- export declare interface FormatNumberOptions {
64
- dp?: number;
65
- }
66
-
67
- export declare function formatPercent(value?: BigNumber.Value, fixed?: number): string;
68
-
69
39
  declare type FormValues = z.infer<typeof FormValuesSchema>;
70
40
 
71
41
  declare const FormValuesSchema: z.ZodObject<{
@@ -136,19 +106,8 @@ declare class OfflineSigner implements OfflineAminoSigner {
136
106
  signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
137
107
  }
138
108
 
139
- declare interface Params {
140
- restUrl: string;
141
- moduleAddress: string;
142
- }
143
-
144
109
  export declare const TESTNET: Config;
145
110
 
146
- export declare function toAmount(value?: BigNumber.Value, decimals?: number): string;
147
-
148
- export declare function toQuantity(value?: BigNumber.Value, decimals?: number): string;
149
-
150
- export declare function truncate(text?: string, [h, t]?: [number, number]): string;
151
-
152
111
  declare interface TxRequest {
153
112
  messages: EncodeObject[];
154
113
  memo?: string;
@@ -183,6 +142,7 @@ export declare function useInterwovenKit(): {
183
142
  hexAddress: string;
184
143
  username: string | null | undefined;
185
144
  offlineSigner: OfflineSigner;
145
+ isOpen: boolean;
186
146
  openConnect: () => void;
187
147
  openWallet: () => void;
188
148
  openBridge: (defaultValues?: Partial<FormValues>) => void;