graz 0.4.0-alpha.1 → 0.4.0-alpha.2

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.mts CHANGED
@@ -1,8 +1,7 @@
1
1
  /// <reference types="../types/global" />
2
2
  import { DirectSignResponse, OfflineDirectSigner, Coin } from '@cosmjs/proto-signing';
3
3
  import { Key as Key$1, Keplr, ChainInfo, KeplrSignOptions, KeplrIntereactionOptions, OfflineAminoSigner as OfflineAminoSigner$1, AppCurrency } from '@keplr-wallet/types';
4
- import { OfflineAminoSigner } from '@cosmjs/amino';
5
- import { ParaGrazConfig as ParaGrazConfig$1, ParaGrazConnector } from '@getpara/graz-connector';
4
+ import { OfflineAminoSigner, StdSignDoc, AminoSignResponse, StdSignature } from '@cosmjs/amino';
6
5
  import { WalletConnectModalConfig } from '@walletconnect/modal';
7
6
  import { SignClientTypes } from '@walletconnect/types';
8
7
  import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
@@ -125,6 +124,180 @@ interface SuggestChainAndConnectArgs {
125
124
  }
126
125
  declare const suggestChainAndConnect: (args: SuggestChainAndConnectArgs) => Promise<ConnectResult>;
127
126
 
127
+ /**
128
+ * Para Web SDK client type (compatible with ParaWeb from @getpara/web-sdk)
129
+ * This represents the main Para class for web interactions
130
+ *
131
+ * Note: Users must install @getpara/graz-integration to use Para wallet functionality
132
+ *
133
+ * Note: This interface only defines the minimum required properties.
134
+ * The actual Para class may have additional methods and properties.
135
+ */
136
+ interface ParaWeb {
137
+ isReady: boolean;
138
+ isFarcasterMiniApp: boolean;
139
+ ready(): Promise<void>;
140
+ isPasskeySupported(): Promise<boolean>;
141
+ logout(): Promise<void>;
142
+ }
143
+ /**
144
+ * Para wallet entity (compatible with Wallet from @getpara/core-sdk)
145
+ * Represents a wallet within the Para ecosystem (different from Graz Wallet)
146
+ */
147
+ interface ParaWallet {
148
+ createdAt?: string;
149
+ id: string;
150
+ name?: string;
151
+ signer: string;
152
+ address?: string;
153
+ addressSecondary?: string;
154
+ publicKey?: string;
155
+ type?: string;
156
+ isPregen?: boolean;
157
+ pregenIdentifier?: string;
158
+ pregenIdentifierType?: string;
159
+ userId?: string;
160
+ partnerId?: string;
161
+ lastUsedAt?: string;
162
+ lastUsedPartnerId?: string;
163
+ isExternal?: boolean;
164
+ isExternalWithParaAuth?: boolean;
165
+ externalProviderId?: string;
166
+ isExternalWithVerification?: boolean;
167
+ isExternalConnectionOnly?: boolean;
168
+ ensName?: string | null;
169
+ ensAvatar?: string | null;
170
+ }
171
+ /**
172
+ * Event callbacks for Para wallet connector lifecycle events
173
+ */
174
+ interface ParaGrazConnectorEvents {
175
+ /**
176
+ * Called when chains are successfully enabled in the Para connector
177
+ * @param chainIds - Array of enabled chain IDs
178
+ * @param connector - The initialized Para connector instance
179
+ */
180
+ onEnabled?: (chainIds: string[], connector: any) => void;
181
+ }
182
+ /**
183
+ * Modal props for Para wallet UI
184
+ * Compatible with ParaModalProps from @getpara/react-sdk-lite
185
+ */
186
+ interface ParaModalProps {
187
+ /**
188
+ * Application name displayed in the Para modal
189
+ */
190
+ appName: string;
191
+ /**
192
+ * Optional additional props for modal customization
193
+ * See Para docs: https://docs.getpara.com/v2/react/guides/customization/modal
194
+ */
195
+ [key: string]: unknown;
196
+ }
197
+ /**
198
+ * Configuration for Para wallet connector
199
+ *
200
+ * Note: To use Para wallet functionality, install @getpara/react-sdk-lite package
201
+ * For modal support, you may also need @getpara/graz-integration
202
+ */
203
+ interface ParaGrazConfig {
204
+ /**
205
+ * Instance of ParaWeb SDK client
206
+ */
207
+ paraWeb: ParaWeb;
208
+ /**
209
+ * Optional event handlers for connector lifecycle
210
+ */
211
+ events?: ParaGrazConnectorEvents;
212
+ /**
213
+ * If true, skip showing the Para modal UI
214
+ * @default false
215
+ */
216
+ noModal?: boolean;
217
+ /**
218
+ * Optional connector class constructor to use instead of default
219
+ * Allows for custom Para connector implementations
220
+ */
221
+ connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
222
+ /**
223
+ * Props for customizing the Para modal appearance and behavior
224
+ * Only used when using @getpara/graz-integration with modal support
225
+ */
226
+ modalProps?: ParaModalProps;
227
+ /**
228
+ * React Query client instance
229
+ * Should match the client used in your app's QueryClientProvider
230
+ * Only needed when using @getpara/graz-integration with modal support
231
+ */
232
+ queryClient?: unknown;
233
+ }
234
+ /**
235
+ * Para wallet connector interface
236
+ * Implements the Graz Wallet interface with Para-specific methods
237
+ */
238
+ interface ParaGrazConnector extends Omit<Wallet, "experimentalSuggestChain"> {
239
+ /**
240
+ * Enable connection to one or more chains
241
+ * @param chainIds - Single chain ID or array of chain IDs
242
+ */
243
+ enable(chainIds: string | string[]): Promise<void>;
244
+ /**
245
+ * Disconnect from Para wallet
246
+ */
247
+ disconnect(): Promise<void>;
248
+ /**
249
+ * Get the Para Web SDK client instance
250
+ */
251
+ getParaWebClient(): ParaWeb;
252
+ /**
253
+ * Get the connector configuration
254
+ */
255
+ getConfig(): ParaGrazConfig;
256
+ /**
257
+ * Get account key for a specific chain
258
+ * @param chainId - The chain identifier
259
+ */
260
+ getKey(chainId: string): Promise<Key>;
261
+ /**
262
+ * Get offline signer that only supports Amino signing
263
+ * @param chainId - The chain identifier
264
+ */
265
+ getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
266
+ /**
267
+ * Get hybrid offline signer supporting both Amino and Direct signing
268
+ * @param chainId - The chain identifier
269
+ */
270
+ getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
271
+ /**
272
+ * Get offline signer, automatically choosing between Amino and Direct
273
+ * @param chainId - The chain identifier
274
+ */
275
+ getOfflineSignerAuto(chainId: string): Promise<OfflineAminoSigner | OfflineDirectSigner>;
276
+ /**
277
+ * Sign transaction using Amino format
278
+ * @param chainId - The chain identifier
279
+ * @param signer - The signer address
280
+ * @param signDoc - The Amino sign document
281
+ * @param signOptions - Optional signing options
282
+ */
283
+ signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
284
+ /**
285
+ * Sign transaction using Direct/Protobuf format
286
+ * @param chainId - The chain identifier
287
+ * @param signer - The signer address
288
+ * @param signDoc - The Direct sign document
289
+ * @param signOptions - Optional signing options
290
+ */
291
+ signDirect(chainId: string, signer: string, signDoc: SignDoc, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
292
+ /**
293
+ * Sign arbitrary data
294
+ * @param chainId - The chain identifier
295
+ * @param signer - The signer address
296
+ * @param data - Data to sign (string or bytes)
297
+ */
298
+ signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
299
+ }
300
+
128
301
  interface ChainConfig {
129
302
  path?: string;
130
303
  rpcHeaders?: Dictionary;
@@ -133,9 +306,6 @@ interface ChainConfig {
133
306
  denom: string;
134
307
  };
135
308
  }
136
- interface ParaGrazConfig extends ParaGrazConfig$1 {
137
- connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
138
- }
139
309
  interface WalletConnectStore {
140
310
  options: SignClientTypes.Options | null;
141
311
  walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
@@ -1630,4 +1800,4 @@ declare const useGrazEvents: () => null;
1630
1800
  */
1631
1801
  declare const GrazEvents: FC;
1632
1802
 
1633
- export { type ActionChainId, type AddChainArgs, type CactusCosmosWallet, type ConfigureGrazArgs, type ConnectArgs, type ConnectResult, type Dictionary, type ExecuteContractArgs, type ExecuteContractMutationArgs, GrazEvents, GrazProvider, type GrazProviderProps, type InstantiateContractArgs, type InstantiateContractMutationArgs, type Key, type KnownKeys, type Maybe, type OfflineSigners, type ReconnectArgs, type SendIbcTokensArgs, type SendTokensArgs, type SignAminoParams, type SignDirectParams, type SignDoc, type SuggestChainAndConnectArgs, type SuggestChainArgs, type UseAccountArgs, type UseAccountResult, type UseAddChainArgs, type UseConnectChainArgs, type UseExecuteContractArgs, type UseInstantiateContractArgs, type UseSuggestChainAndConnectArgs, type UseSuggestChainArgs, WALLET_TYPES, type Wallet, WalletType, addChain, checkWallet, clearRecentChain, clearSession, configureGraz, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getCactusCosmos, getChainInfo, getChainInfos, getCosmostation, getKeplr, getLeap, getMetamaskSnapLeap, getOfflineSigners, getOkx, getPara, getQueryRaw, getQuerySmart, getRecentChainIds, getRecentChains, getVectis, getWCCosmostation, getWCKeplr, getWCLeap, getWallet, getWalletConnect, instantiateContract, isLeapDappBrowser, isLeapSnaps, isPara, isWalletConnect, reconnect, sendIbcTokens, sendTokens, suggestChain, suggestChainAndConnect, useAccount, useActiveChainCurrency, useActiveChainIds, useActiveChains, useActiveWalletType, useAddChain, useBalance, useBalanceStaked, useBalances, useChainInfo, useChainInfos, useCheckWallet, useConnect, useCosmWasmClient, useCosmWasmSigningClient, useDisconnect, useExecuteContract, useGrazEvents, useInstantiateContract, useOfflineSigners, useQueryClientValidators, useQueryRaw, useQuerySmart, useRecentChainIds, useRecentChains, useSendIbcTokens, useSendTokens, useStargateClient, useStargateSigningClient, useSuggestChain, useSuggestChainAndConnect };
1803
+ export { type ActionChainId, type AddChainArgs, type CactusCosmosWallet, type ConfigureGrazArgs, type ConnectArgs, type ConnectResult, type Dictionary, type ExecuteContractArgs, type ExecuteContractMutationArgs, GrazEvents, GrazProvider, type GrazProviderProps, type InstantiateContractArgs, type InstantiateContractMutationArgs, type Key, type KnownKeys, type Maybe, type OfflineSigners, type ParaGrazConfig, type ParaGrazConnector, type ParaGrazConnectorEvents, type ParaModalProps, type ParaWallet, type ParaWeb, type ReconnectArgs, type SendIbcTokensArgs, type SendTokensArgs, type SignAminoParams, type SignDirectParams, type SignDoc, type SuggestChainAndConnectArgs, type SuggestChainArgs, type UseAccountArgs, type UseAccountResult, type UseAddChainArgs, type UseConnectChainArgs, type UseExecuteContractArgs, type UseInstantiateContractArgs, type UseSuggestChainAndConnectArgs, type UseSuggestChainArgs, WALLET_TYPES, type Wallet, WalletType, addChain, checkWallet, clearRecentChain, clearSession, configureGraz, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getCactusCosmos, getChainInfo, getChainInfos, getCosmostation, getKeplr, getLeap, getMetamaskSnapLeap, getOfflineSigners, getOkx, getPara, getQueryRaw, getQuerySmart, getRecentChainIds, getRecentChains, getVectis, getWCCosmostation, getWCKeplr, getWCLeap, getWallet, getWalletConnect, instantiateContract, isLeapDappBrowser, isLeapSnaps, isPara, isWalletConnect, reconnect, sendIbcTokens, sendTokens, suggestChain, suggestChainAndConnect, useAccount, useActiveChainCurrency, useActiveChainIds, useActiveChains, useActiveWalletType, useAddChain, useBalance, useBalanceStaked, useBalances, useChainInfo, useChainInfos, useCheckWallet, useConnect, useCosmWasmClient, useCosmWasmSigningClient, useDisconnect, useExecuteContract, useGrazEvents, useInstantiateContract, useOfflineSigners, useQueryClientValidators, useQueryRaw, useQuerySmart, useRecentChainIds, useRecentChains, useSendIbcTokens, useSendTokens, useStargateClient, useStargateSigningClient, useSuggestChain, useSuggestChainAndConnect };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  /// <reference types="../types/global" />
2
2
  import { DirectSignResponse, OfflineDirectSigner, Coin } from '@cosmjs/proto-signing';
3
3
  import { Key as Key$1, Keplr, ChainInfo, KeplrSignOptions, KeplrIntereactionOptions, OfflineAminoSigner as OfflineAminoSigner$1, AppCurrency } from '@keplr-wallet/types';
4
- import { OfflineAminoSigner } from '@cosmjs/amino';
5
- import { ParaGrazConfig as ParaGrazConfig$1, ParaGrazConnector } from '@getpara/graz-connector';
4
+ import { OfflineAminoSigner, StdSignDoc, AminoSignResponse, StdSignature } from '@cosmjs/amino';
6
5
  import { WalletConnectModalConfig } from '@walletconnect/modal';
7
6
  import { SignClientTypes } from '@walletconnect/types';
8
7
  import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
@@ -125,6 +124,180 @@ interface SuggestChainAndConnectArgs {
125
124
  }
126
125
  declare const suggestChainAndConnect: (args: SuggestChainAndConnectArgs) => Promise<ConnectResult>;
127
126
 
127
+ /**
128
+ * Para Web SDK client type (compatible with ParaWeb from @getpara/web-sdk)
129
+ * This represents the main Para class for web interactions
130
+ *
131
+ * Note: Users must install @getpara/graz-integration to use Para wallet functionality
132
+ *
133
+ * Note: This interface only defines the minimum required properties.
134
+ * The actual Para class may have additional methods and properties.
135
+ */
136
+ interface ParaWeb {
137
+ isReady: boolean;
138
+ isFarcasterMiniApp: boolean;
139
+ ready(): Promise<void>;
140
+ isPasskeySupported(): Promise<boolean>;
141
+ logout(): Promise<void>;
142
+ }
143
+ /**
144
+ * Para wallet entity (compatible with Wallet from @getpara/core-sdk)
145
+ * Represents a wallet within the Para ecosystem (different from Graz Wallet)
146
+ */
147
+ interface ParaWallet {
148
+ createdAt?: string;
149
+ id: string;
150
+ name?: string;
151
+ signer: string;
152
+ address?: string;
153
+ addressSecondary?: string;
154
+ publicKey?: string;
155
+ type?: string;
156
+ isPregen?: boolean;
157
+ pregenIdentifier?: string;
158
+ pregenIdentifierType?: string;
159
+ userId?: string;
160
+ partnerId?: string;
161
+ lastUsedAt?: string;
162
+ lastUsedPartnerId?: string;
163
+ isExternal?: boolean;
164
+ isExternalWithParaAuth?: boolean;
165
+ externalProviderId?: string;
166
+ isExternalWithVerification?: boolean;
167
+ isExternalConnectionOnly?: boolean;
168
+ ensName?: string | null;
169
+ ensAvatar?: string | null;
170
+ }
171
+ /**
172
+ * Event callbacks for Para wallet connector lifecycle events
173
+ */
174
+ interface ParaGrazConnectorEvents {
175
+ /**
176
+ * Called when chains are successfully enabled in the Para connector
177
+ * @param chainIds - Array of enabled chain IDs
178
+ * @param connector - The initialized Para connector instance
179
+ */
180
+ onEnabled?: (chainIds: string[], connector: any) => void;
181
+ }
182
+ /**
183
+ * Modal props for Para wallet UI
184
+ * Compatible with ParaModalProps from @getpara/react-sdk-lite
185
+ */
186
+ interface ParaModalProps {
187
+ /**
188
+ * Application name displayed in the Para modal
189
+ */
190
+ appName: string;
191
+ /**
192
+ * Optional additional props for modal customization
193
+ * See Para docs: https://docs.getpara.com/v2/react/guides/customization/modal
194
+ */
195
+ [key: string]: unknown;
196
+ }
197
+ /**
198
+ * Configuration for Para wallet connector
199
+ *
200
+ * Note: To use Para wallet functionality, install @getpara/react-sdk-lite package
201
+ * For modal support, you may also need @getpara/graz-integration
202
+ */
203
+ interface ParaGrazConfig {
204
+ /**
205
+ * Instance of ParaWeb SDK client
206
+ */
207
+ paraWeb: ParaWeb;
208
+ /**
209
+ * Optional event handlers for connector lifecycle
210
+ */
211
+ events?: ParaGrazConnectorEvents;
212
+ /**
213
+ * If true, skip showing the Para modal UI
214
+ * @default false
215
+ */
216
+ noModal?: boolean;
217
+ /**
218
+ * Optional connector class constructor to use instead of default
219
+ * Allows for custom Para connector implementations
220
+ */
221
+ connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
222
+ /**
223
+ * Props for customizing the Para modal appearance and behavior
224
+ * Only used when using @getpara/graz-integration with modal support
225
+ */
226
+ modalProps?: ParaModalProps;
227
+ /**
228
+ * React Query client instance
229
+ * Should match the client used in your app's QueryClientProvider
230
+ * Only needed when using @getpara/graz-integration with modal support
231
+ */
232
+ queryClient?: unknown;
233
+ }
234
+ /**
235
+ * Para wallet connector interface
236
+ * Implements the Graz Wallet interface with Para-specific methods
237
+ */
238
+ interface ParaGrazConnector extends Omit<Wallet, "experimentalSuggestChain"> {
239
+ /**
240
+ * Enable connection to one or more chains
241
+ * @param chainIds - Single chain ID or array of chain IDs
242
+ */
243
+ enable(chainIds: string | string[]): Promise<void>;
244
+ /**
245
+ * Disconnect from Para wallet
246
+ */
247
+ disconnect(): Promise<void>;
248
+ /**
249
+ * Get the Para Web SDK client instance
250
+ */
251
+ getParaWebClient(): ParaWeb;
252
+ /**
253
+ * Get the connector configuration
254
+ */
255
+ getConfig(): ParaGrazConfig;
256
+ /**
257
+ * Get account key for a specific chain
258
+ * @param chainId - The chain identifier
259
+ */
260
+ getKey(chainId: string): Promise<Key>;
261
+ /**
262
+ * Get offline signer that only supports Amino signing
263
+ * @param chainId - The chain identifier
264
+ */
265
+ getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
266
+ /**
267
+ * Get hybrid offline signer supporting both Amino and Direct signing
268
+ * @param chainId - The chain identifier
269
+ */
270
+ getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
271
+ /**
272
+ * Get offline signer, automatically choosing between Amino and Direct
273
+ * @param chainId - The chain identifier
274
+ */
275
+ getOfflineSignerAuto(chainId: string): Promise<OfflineAminoSigner | OfflineDirectSigner>;
276
+ /**
277
+ * Sign transaction using Amino format
278
+ * @param chainId - The chain identifier
279
+ * @param signer - The signer address
280
+ * @param signDoc - The Amino sign document
281
+ * @param signOptions - Optional signing options
282
+ */
283
+ signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
284
+ /**
285
+ * Sign transaction using Direct/Protobuf format
286
+ * @param chainId - The chain identifier
287
+ * @param signer - The signer address
288
+ * @param signDoc - The Direct sign document
289
+ * @param signOptions - Optional signing options
290
+ */
291
+ signDirect(chainId: string, signer: string, signDoc: SignDoc, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
292
+ /**
293
+ * Sign arbitrary data
294
+ * @param chainId - The chain identifier
295
+ * @param signer - The signer address
296
+ * @param data - Data to sign (string or bytes)
297
+ */
298
+ signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
299
+ }
300
+
128
301
  interface ChainConfig {
129
302
  path?: string;
130
303
  rpcHeaders?: Dictionary;
@@ -133,9 +306,6 @@ interface ChainConfig {
133
306
  denom: string;
134
307
  };
135
308
  }
136
- interface ParaGrazConfig extends ParaGrazConfig$1 {
137
- connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
138
- }
139
309
  interface WalletConnectStore {
140
310
  options: SignClientTypes.Options | null;
141
311
  walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
@@ -1630,4 +1800,4 @@ declare const useGrazEvents: () => null;
1630
1800
  */
1631
1801
  declare const GrazEvents: FC;
1632
1802
 
1633
- export { type ActionChainId, type AddChainArgs, type CactusCosmosWallet, type ConfigureGrazArgs, type ConnectArgs, type ConnectResult, type Dictionary, type ExecuteContractArgs, type ExecuteContractMutationArgs, GrazEvents, GrazProvider, type GrazProviderProps, type InstantiateContractArgs, type InstantiateContractMutationArgs, type Key, type KnownKeys, type Maybe, type OfflineSigners, type ReconnectArgs, type SendIbcTokensArgs, type SendTokensArgs, type SignAminoParams, type SignDirectParams, type SignDoc, type SuggestChainAndConnectArgs, type SuggestChainArgs, type UseAccountArgs, type UseAccountResult, type UseAddChainArgs, type UseConnectChainArgs, type UseExecuteContractArgs, type UseInstantiateContractArgs, type UseSuggestChainAndConnectArgs, type UseSuggestChainArgs, WALLET_TYPES, type Wallet, WalletType, addChain, checkWallet, clearRecentChain, clearSession, configureGraz, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getCactusCosmos, getChainInfo, getChainInfos, getCosmostation, getKeplr, getLeap, getMetamaskSnapLeap, getOfflineSigners, getOkx, getPara, getQueryRaw, getQuerySmart, getRecentChainIds, getRecentChains, getVectis, getWCCosmostation, getWCKeplr, getWCLeap, getWallet, getWalletConnect, instantiateContract, isLeapDappBrowser, isLeapSnaps, isPara, isWalletConnect, reconnect, sendIbcTokens, sendTokens, suggestChain, suggestChainAndConnect, useAccount, useActiveChainCurrency, useActiveChainIds, useActiveChains, useActiveWalletType, useAddChain, useBalance, useBalanceStaked, useBalances, useChainInfo, useChainInfos, useCheckWallet, useConnect, useCosmWasmClient, useCosmWasmSigningClient, useDisconnect, useExecuteContract, useGrazEvents, useInstantiateContract, useOfflineSigners, useQueryClientValidators, useQueryRaw, useQuerySmart, useRecentChainIds, useRecentChains, useSendIbcTokens, useSendTokens, useStargateClient, useStargateSigningClient, useSuggestChain, useSuggestChainAndConnect };
1803
+ export { type ActionChainId, type AddChainArgs, type CactusCosmosWallet, type ConfigureGrazArgs, type ConnectArgs, type ConnectResult, type Dictionary, type ExecuteContractArgs, type ExecuteContractMutationArgs, GrazEvents, GrazProvider, type GrazProviderProps, type InstantiateContractArgs, type InstantiateContractMutationArgs, type Key, type KnownKeys, type Maybe, type OfflineSigners, type ParaGrazConfig, type ParaGrazConnector, type ParaGrazConnectorEvents, type ParaModalProps, type ParaWallet, type ParaWeb, type ReconnectArgs, type SendIbcTokensArgs, type SendTokensArgs, type SignAminoParams, type SignDirectParams, type SignDoc, type SuggestChainAndConnectArgs, type SuggestChainArgs, type UseAccountArgs, type UseAccountResult, type UseAddChainArgs, type UseConnectChainArgs, type UseExecuteContractArgs, type UseInstantiateContractArgs, type UseSuggestChainAndConnectArgs, type UseSuggestChainArgs, WALLET_TYPES, type Wallet, WalletType, addChain, checkWallet, clearRecentChain, clearSession, configureGraz, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getCactusCosmos, getChainInfo, getChainInfos, getCosmostation, getKeplr, getLeap, getMetamaskSnapLeap, getOfflineSigners, getOkx, getPara, getQueryRaw, getQuerySmart, getRecentChainIds, getRecentChains, getVectis, getWCCosmostation, getWCKeplr, getWCLeap, getWallet, getWalletConnect, instantiateContract, isLeapDappBrowser, isLeapSnaps, isPara, isWalletConnect, reconnect, sendIbcTokens, sendTokens, suggestChain, suggestChainAndConnect, useAccount, useActiveChainCurrency, useActiveChainIds, useActiveChains, useActiveWalletType, useAddChain, useBalance, useBalanceStaked, useBalances, useChainInfo, useChainInfos, useCheckWallet, useConnect, useCosmWasmClient, useCosmWasmSigningClient, useDisconnect, useExecuteContract, useGrazEvents, useInstantiateContract, useOfflineSigners, useQueryClientValidators, useQueryRaw, useQuerySmart, useRecentChainIds, useRecentChains, useSendIbcTokens, useSendTokens, useStargateClient, useStargateSigningClient, useSuggestChain, useSuggestChainAndConnect };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "graz",
3
3
  "description": "React hooks for Cosmos",
4
- "version": "0.4.0-alpha.1",
4
+ "version": "0.4.0-alpha.2",
5
5
  "author": "Nur Fikri <kikiding.space@gmail.com>",
6
6
  "repository": "https://github.com/graz-sh/graz.git",
7
7
  "homepage": "https://github.com/graz-sh/graz",
@@ -33,6 +33,19 @@
33
33
  "env.d.ts"
34
34
  ],
35
35
  "sideEffects": false,
36
+ "scripts": {
37
+ "build": "tsup",
38
+ "clean": "rm -rf dist/*",
39
+ "cli": "node dist/cli.js",
40
+ "dev": "tsup --watch",
41
+ "lint": "eslint --fix \"src/**/*.{ts,tsx}\"",
42
+ "prepublishOnly": "pnpm build",
43
+ "test": "vitest run",
44
+ "test:cli": "vitest run src/__tests__/cli.test.ts",
45
+ "test:watch": "vitest",
46
+ "test:ui": "vitest --ui",
47
+ "type-check": "tsc --noEmit"
48
+ },
36
49
  "peerDependencies": {
37
50
  "@tanstack/react-query": ">=5.0.0",
38
51
  "react": ">=17",
@@ -40,17 +53,7 @@
40
53
  "@cosmjs/cosmwasm-stargate": ">=0.32.4",
41
54
  "@cosmjs/proto-signing": ">=0.32.4",
42
55
  "@cosmjs/stargate": ">=0.32.4",
43
- "@cosmjs/encoding": ">=0.32.4",
44
- "@getpara/graz-connector": ">=2.0.0-alpha.51 <2.0.0-beta",
45
- "@getpara/graz-integration": ">=2.0.0-alpha.51 <2.0.0-beta"
46
- },
47
- "peerDependenciesMeta": {
48
- "@getpara/graz-connector": {
49
- "optional": true
50
- },
51
- "@getpara/graz-integration": {
52
- "optional": true
53
- }
56
+ "@cosmjs/encoding": ">=0.32.4"
54
57
  },
55
58
  "dependencies": {
56
59
  "@initia/initia-registry-types": "0.0.20",
@@ -76,9 +79,7 @@
76
79
  "jsdom": "^23.0.0",
77
80
  "react": "^18.2.0",
78
81
  "typescript": "^5.4.0",
79
- "vitest": "^1.0.0",
80
- "@getpara/graz-connector": ">=2.0.0-alpha.51 <2.0.0-beta",
81
- "@getpara/graz-integration": ">=2.0.0-alpha.51 <2.0.0-beta"
82
+ "vitest": "^1.0.0"
82
83
  },
83
84
  "keywords": [
84
85
  "graz",
@@ -88,17 +89,5 @@
88
89
  "graz-sh",
89
90
  "use-keplr"
90
91
  ],
91
- "license": "MIT",
92
- "scripts": {
93
- "build": "tsup",
94
- "clean": "rm -rf dist/*",
95
- "cli": "node dist/cli.js",
96
- "dev": "tsup --watch",
97
- "lint": "eslint --fix \"src/**/*.{ts,tsx}\"",
98
- "test": "vitest run",
99
- "test:cli": "vitest run src/__tests__/cli.test.ts",
100
- "test:watch": "vitest",
101
- "test:ui": "vitest --ui",
102
- "type-check": "tsc --noEmit"
103
- }
104
- }
92
+ "license": "MIT"
93
+ }