graz 0.4.0-alpha.1 → 0.4.0-alpha.3

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,16 +1,18 @@
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';
7
+ import * as _tanstack_react_query from '@tanstack/react-query';
8
+ import { UseQueryResult } from '@tanstack/react-query';
9
+ import { ParaWeb } from '@getpara/web-sdk';
10
+ export { ParaWeb } from '@getpara/web-sdk';
11
+ import { ParaGrazConfig as ParaGrazConfig$1 } from '@getpara/graz-connector';
8
12
  import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
9
13
  import { SigningCosmWasmClient, InstantiateOptions, CosmWasmClient, InstantiateResult, ExecuteResult, SigningCosmWasmClientOptions } from '@cosmjs/cosmwasm-stargate';
10
14
  import { SigningStargateClient, StdFee, DeliverTxResponse, QueryClient, StakingExtension, StargateClient, SigningStargateClientOptions } from '@cosmjs/stargate';
11
15
  import { Height } from 'cosmjs-types/ibc/core/client/v1/client';
12
- import * as _tanstack_react_query from '@tanstack/react-query';
13
- import { UseQueryResult } from '@tanstack/react-query';
14
16
  import { BondStatusString } from '@cosmjs/stargate/build/modules/staking/queries';
15
17
  import { QueryValidatorsResponse } from 'cosmjs-types/cosmos/staking/v1beta1/query';
16
18
  import { ReactNode, FC } from 'react';
@@ -125,6 +127,158 @@ interface SuggestChainAndConnectArgs {
125
127
  }
126
128
  declare const suggestChainAndConnect: (args: SuggestChainAndConnectArgs) => Promise<ConnectResult>;
127
129
 
130
+ /**
131
+ * Para wallet entity (compatible with Wallet from @getpara/core-sdk)
132
+ * Represents a wallet within the Para ecosystem (different from Graz Wallet)
133
+ */
134
+ interface ParaWallet {
135
+ createdAt?: string;
136
+ id: string;
137
+ name?: string;
138
+ signer: string;
139
+ address?: string;
140
+ addressSecondary?: string;
141
+ publicKey?: string;
142
+ type?: string;
143
+ isPregen?: boolean;
144
+ pregenIdentifier?: string;
145
+ pregenIdentifierType?: string;
146
+ userId?: string;
147
+ partnerId?: string;
148
+ lastUsedAt?: string;
149
+ lastUsedPartnerId?: string;
150
+ isExternal?: boolean;
151
+ isExternalWithParaAuth?: boolean;
152
+ externalProviderId?: string;
153
+ isExternalWithVerification?: boolean;
154
+ isExternalConnectionOnly?: boolean;
155
+ ensName?: string | null;
156
+ ensAvatar?: string | null;
157
+ }
158
+ /**
159
+ * Event callbacks for Para wallet connector lifecycle events
160
+ * Extracted from @getpara/graz-connector ParaGrazConfig
161
+ */
162
+ type ParaGrazConnectorEvents = NonNullable<ParaGrazConfig$1["events"]>;
163
+ /**
164
+ * Modal props for Para wallet UI
165
+ * Compatible with ParaModalProps from @getpara/react-sdk-lite
166
+ */
167
+ interface ParaModalProps {
168
+ /**
169
+ * Application name displayed in the Para modal
170
+ */
171
+ appName: string;
172
+ /**
173
+ * Optional additional props for modal customization
174
+ * See Para docs: https://docs.getpara.com/v2/react/guides/customization/modal
175
+ */
176
+ [key: string]: unknown;
177
+ }
178
+ /**
179
+ * Configuration for Para wallet connector
180
+ *
181
+ * Note: To use Para wallet functionality, install @getpara/react-sdk-lite package
182
+ * For modal support, you may also need @getpara/graz-integration
183
+ */
184
+ interface ParaGrazConfig {
185
+ /**
186
+ * Instance of ParaWeb SDK client
187
+ */
188
+ paraWeb: ParaWeb;
189
+ /**
190
+ * Optional event handlers for connector lifecycle
191
+ */
192
+ events?: ParaGrazConnectorEvents;
193
+ /**
194
+ * If true, skip showing the Para modal UI
195
+ * @default false
196
+ */
197
+ noModal?: boolean;
198
+ /**
199
+ * Optional connector class constructor to use instead of default
200
+ * Allows for custom Para connector implementations
201
+ */
202
+ connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
203
+ /**
204
+ * Props for customizing the Para modal appearance and behavior
205
+ * Only used when using @getpara/graz-integration with modal support
206
+ */
207
+ modalProps?: ParaModalProps;
208
+ /**
209
+ * React Query client instance
210
+ * Should match the client used in your app's QueryClientProvider
211
+ * Only needed when using @getpara/graz-integration with modal support
212
+ */
213
+ queryClient?: _tanstack_react_query.QueryClient;
214
+ }
215
+ /**
216
+ * Para wallet connector interface
217
+ * Implements the Graz Wallet interface with Para-specific methods
218
+ */
219
+ interface ParaGrazConnector extends Omit<Wallet, "experimentalSuggestChain"> {
220
+ /**
221
+ * Enable connection to one or more chains
222
+ * @param chainIds - Single chain ID or array of chain IDs
223
+ */
224
+ enable(chainIds: string | string[]): Promise<void>;
225
+ /**
226
+ * Disconnect from Para wallet
227
+ */
228
+ disconnect(): Promise<void>;
229
+ /**
230
+ * Get the Para Web SDK client instance
231
+ */
232
+ getParaWebClient(): ParaWeb;
233
+ /**
234
+ * Get the connector configuration
235
+ */
236
+ getConfig(): ParaGrazConfig;
237
+ /**
238
+ * Get account key for a specific chain
239
+ * @param chainId - The chain identifier
240
+ */
241
+ getKey(chainId: string): Promise<Key>;
242
+ /**
243
+ * Get offline signer that only supports Amino signing
244
+ * @param chainId - The chain identifier
245
+ */
246
+ getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
247
+ /**
248
+ * Get hybrid offline signer supporting both Amino and Direct signing
249
+ * @param chainId - The chain identifier
250
+ */
251
+ getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
252
+ /**
253
+ * Get offline signer, automatically choosing between Amino and Direct
254
+ * @param chainId - The chain identifier
255
+ */
256
+ getOfflineSignerAuto(chainId: string): Promise<OfflineAminoSigner | OfflineDirectSigner>;
257
+ /**
258
+ * Sign transaction using Amino format
259
+ * @param chainId - The chain identifier
260
+ * @param signer - The signer address
261
+ * @param signDoc - The Amino sign document
262
+ * @param signOptions - Optional signing options
263
+ */
264
+ signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
265
+ /**
266
+ * Sign transaction using Direct/Protobuf format
267
+ * @param chainId - The chain identifier
268
+ * @param signer - The signer address
269
+ * @param signDoc - The Direct sign document
270
+ * @param signOptions - Optional signing options
271
+ */
272
+ signDirect(chainId: string, signer: string, signDoc: SignDoc, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
273
+ /**
274
+ * Sign arbitrary data
275
+ * @param chainId - The chain identifier
276
+ * @param signer - The signer address
277
+ * @param data - Data to sign (string or bytes)
278
+ */
279
+ signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
280
+ }
281
+
128
282
  interface ChainConfig {
129
283
  path?: string;
130
284
  rpcHeaders?: Dictionary;
@@ -133,9 +287,6 @@ interface ChainConfig {
133
287
  denom: string;
134
288
  };
135
289
  }
136
- interface ParaGrazConfig extends ParaGrazConfig$1 {
137
- connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
138
- }
139
290
  interface WalletConnectStore {
140
291
  options: SignClientTypes.Options | null;
141
292
  walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
@@ -1630,4 +1781,4 @@ declare const useGrazEvents: () => null;
1630
1781
  */
1631
1782
  declare const GrazEvents: FC;
1632
1783
 
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 };
1784
+ 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 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,16 +1,18 @@
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';
7
+ import * as _tanstack_react_query from '@tanstack/react-query';
8
+ import { UseQueryResult } from '@tanstack/react-query';
9
+ import { ParaWeb } from '@getpara/web-sdk';
10
+ export { ParaWeb } from '@getpara/web-sdk';
11
+ import { ParaGrazConfig as ParaGrazConfig$1 } from '@getpara/graz-connector';
8
12
  import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
9
13
  import { SigningCosmWasmClient, InstantiateOptions, CosmWasmClient, InstantiateResult, ExecuteResult, SigningCosmWasmClientOptions } from '@cosmjs/cosmwasm-stargate';
10
14
  import { SigningStargateClient, StdFee, DeliverTxResponse, QueryClient, StakingExtension, StargateClient, SigningStargateClientOptions } from '@cosmjs/stargate';
11
15
  import { Height } from 'cosmjs-types/ibc/core/client/v1/client';
12
- import * as _tanstack_react_query from '@tanstack/react-query';
13
- import { UseQueryResult } from '@tanstack/react-query';
14
16
  import { BondStatusString } from '@cosmjs/stargate/build/modules/staking/queries';
15
17
  import { QueryValidatorsResponse } from 'cosmjs-types/cosmos/staking/v1beta1/query';
16
18
  import { ReactNode, FC } from 'react';
@@ -125,6 +127,158 @@ interface SuggestChainAndConnectArgs {
125
127
  }
126
128
  declare const suggestChainAndConnect: (args: SuggestChainAndConnectArgs) => Promise<ConnectResult>;
127
129
 
130
+ /**
131
+ * Para wallet entity (compatible with Wallet from @getpara/core-sdk)
132
+ * Represents a wallet within the Para ecosystem (different from Graz Wallet)
133
+ */
134
+ interface ParaWallet {
135
+ createdAt?: string;
136
+ id: string;
137
+ name?: string;
138
+ signer: string;
139
+ address?: string;
140
+ addressSecondary?: string;
141
+ publicKey?: string;
142
+ type?: string;
143
+ isPregen?: boolean;
144
+ pregenIdentifier?: string;
145
+ pregenIdentifierType?: string;
146
+ userId?: string;
147
+ partnerId?: string;
148
+ lastUsedAt?: string;
149
+ lastUsedPartnerId?: string;
150
+ isExternal?: boolean;
151
+ isExternalWithParaAuth?: boolean;
152
+ externalProviderId?: string;
153
+ isExternalWithVerification?: boolean;
154
+ isExternalConnectionOnly?: boolean;
155
+ ensName?: string | null;
156
+ ensAvatar?: string | null;
157
+ }
158
+ /**
159
+ * Event callbacks for Para wallet connector lifecycle events
160
+ * Extracted from @getpara/graz-connector ParaGrazConfig
161
+ */
162
+ type ParaGrazConnectorEvents = NonNullable<ParaGrazConfig$1["events"]>;
163
+ /**
164
+ * Modal props for Para wallet UI
165
+ * Compatible with ParaModalProps from @getpara/react-sdk-lite
166
+ */
167
+ interface ParaModalProps {
168
+ /**
169
+ * Application name displayed in the Para modal
170
+ */
171
+ appName: string;
172
+ /**
173
+ * Optional additional props for modal customization
174
+ * See Para docs: https://docs.getpara.com/v2/react/guides/customization/modal
175
+ */
176
+ [key: string]: unknown;
177
+ }
178
+ /**
179
+ * Configuration for Para wallet connector
180
+ *
181
+ * Note: To use Para wallet functionality, install @getpara/react-sdk-lite package
182
+ * For modal support, you may also need @getpara/graz-integration
183
+ */
184
+ interface ParaGrazConfig {
185
+ /**
186
+ * Instance of ParaWeb SDK client
187
+ */
188
+ paraWeb: ParaWeb;
189
+ /**
190
+ * Optional event handlers for connector lifecycle
191
+ */
192
+ events?: ParaGrazConnectorEvents;
193
+ /**
194
+ * If true, skip showing the Para modal UI
195
+ * @default false
196
+ */
197
+ noModal?: boolean;
198
+ /**
199
+ * Optional connector class constructor to use instead of default
200
+ * Allows for custom Para connector implementations
201
+ */
202
+ connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
203
+ /**
204
+ * Props for customizing the Para modal appearance and behavior
205
+ * Only used when using @getpara/graz-integration with modal support
206
+ */
207
+ modalProps?: ParaModalProps;
208
+ /**
209
+ * React Query client instance
210
+ * Should match the client used in your app's QueryClientProvider
211
+ * Only needed when using @getpara/graz-integration with modal support
212
+ */
213
+ queryClient?: _tanstack_react_query.QueryClient;
214
+ }
215
+ /**
216
+ * Para wallet connector interface
217
+ * Implements the Graz Wallet interface with Para-specific methods
218
+ */
219
+ interface ParaGrazConnector extends Omit<Wallet, "experimentalSuggestChain"> {
220
+ /**
221
+ * Enable connection to one or more chains
222
+ * @param chainIds - Single chain ID or array of chain IDs
223
+ */
224
+ enable(chainIds: string | string[]): Promise<void>;
225
+ /**
226
+ * Disconnect from Para wallet
227
+ */
228
+ disconnect(): Promise<void>;
229
+ /**
230
+ * Get the Para Web SDK client instance
231
+ */
232
+ getParaWebClient(): ParaWeb;
233
+ /**
234
+ * Get the connector configuration
235
+ */
236
+ getConfig(): ParaGrazConfig;
237
+ /**
238
+ * Get account key for a specific chain
239
+ * @param chainId - The chain identifier
240
+ */
241
+ getKey(chainId: string): Promise<Key>;
242
+ /**
243
+ * Get offline signer that only supports Amino signing
244
+ * @param chainId - The chain identifier
245
+ */
246
+ getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
247
+ /**
248
+ * Get hybrid offline signer supporting both Amino and Direct signing
249
+ * @param chainId - The chain identifier
250
+ */
251
+ getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
252
+ /**
253
+ * Get offline signer, automatically choosing between Amino and Direct
254
+ * @param chainId - The chain identifier
255
+ */
256
+ getOfflineSignerAuto(chainId: string): Promise<OfflineAminoSigner | OfflineDirectSigner>;
257
+ /**
258
+ * Sign transaction using Amino format
259
+ * @param chainId - The chain identifier
260
+ * @param signer - The signer address
261
+ * @param signDoc - The Amino sign document
262
+ * @param signOptions - Optional signing options
263
+ */
264
+ signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
265
+ /**
266
+ * Sign transaction using Direct/Protobuf format
267
+ * @param chainId - The chain identifier
268
+ * @param signer - The signer address
269
+ * @param signDoc - The Direct sign document
270
+ * @param signOptions - Optional signing options
271
+ */
272
+ signDirect(chainId: string, signer: string, signDoc: SignDoc, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
273
+ /**
274
+ * Sign arbitrary data
275
+ * @param chainId - The chain identifier
276
+ * @param signer - The signer address
277
+ * @param data - Data to sign (string or bytes)
278
+ */
279
+ signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
280
+ }
281
+
128
282
  interface ChainConfig {
129
283
  path?: string;
130
284
  rpcHeaders?: Dictionary;
@@ -133,9 +287,6 @@ interface ChainConfig {
133
287
  denom: string;
134
288
  };
135
289
  }
136
- interface ParaGrazConfig extends ParaGrazConfig$1 {
137
- connectorClass?: new (config: ParaGrazConfig, chains?: ChainInfo[] | null) => ParaGrazConnector;
138
- }
139
290
  interface WalletConnectStore {
140
291
  options: SignClientTypes.Options | null;
141
292
  walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
@@ -1630,4 +1781,4 @@ declare const useGrazEvents: () => null;
1630
1781
  */
1631
1782
  declare const GrazEvents: FC;
1632
1783
 
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 };
1784
+ 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 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.3",
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",
@@ -40,17 +40,7 @@
40
40
  "@cosmjs/cosmwasm-stargate": ">=0.32.4",
41
41
  "@cosmjs/proto-signing": ">=0.32.4",
42
42
  "@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
- }
43
+ "@cosmjs/encoding": ">=0.32.4"
54
44
  },
55
45
  "dependencies": {
56
46
  "@initia/initia-registry-types": "0.0.20",
@@ -69,6 +59,8 @@
69
59
  "zustand": "5.0.4"
70
60
  },
71
61
  "devDependencies": {
62
+ "@getpara/graz-connector": "2.0.0-alpha.51",
63
+ "@getpara/web-sdk": "2.0.0-alpha.51",
72
64
  "@types/node": "^18.17.15",
73
65
  "@types/react": "^18.2.21",
74
66
  "@vitest/ui": "^1.0.0",
@@ -76,9 +68,7 @@
76
68
  "jsdom": "^23.0.0",
77
69
  "react": "^18.2.0",
78
70
  "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"
71
+ "vitest": "^1.0.0"
82
72
  },
83
73
  "keywords": [
84
74
  "graz",