@initia/interwovenkit-react 2.0.0-rc.4 → 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/README.md +106 -171
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -21
- package/dist/index.js +2912 -3160
- package/dist/styles.css +1 -1
- package/dist/styles.js +1 -1
- package/package.json +105 -103
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,13 +32,6 @@ 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;
|
|
@@ -122,11 +106,6 @@ declare class OfflineSigner implements OfflineAminoSigner {
|
|
|
122
106
|
signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
|
|
123
107
|
}
|
|
124
108
|
|
|
125
|
-
declare interface Params {
|
|
126
|
-
restUrl: string;
|
|
127
|
-
moduleAddress: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
109
|
export declare const TESTNET: Config;
|
|
131
110
|
|
|
132
111
|
declare interface TxRequest {
|
|
@@ -163,6 +142,7 @@ export declare function useInterwovenKit(): {
|
|
|
163
142
|
hexAddress: string;
|
|
164
143
|
username: string | null | undefined;
|
|
165
144
|
offlineSigner: OfflineSigner;
|
|
145
|
+
isOpen: boolean;
|
|
166
146
|
openConnect: () => void;
|
|
167
147
|
openWallet: () => void;
|
|
168
148
|
openBridge: (defaultValues?: Partial<FormValues>) => void;
|