graz 0.2.5 → 0.3.0-alpha.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/.gitkeep +0 -0
- package/dist/index.d.mts +46 -91
- package/dist/index.d.ts +46 -91
- package/dist/index.js +75 -81
- package/dist/index.mjs +6 -7
- package/package.json +22 -24
package/dist/.gitkeep
CHANGED
|
File without changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
/// <reference types="../types/global" />
|
|
2
|
-
import { OfflineDirectSigner, Coin } from '@cosmjs/proto-signing';
|
|
3
|
-
import { Keplr, ChainInfo, KeplrIntereactionOptions, Key as Key$1, OfflineAminoSigner, AppCurrency } from '@keplr-wallet/types';
|
|
2
|
+
import { DirectSignResponse, OfflineDirectSigner, Coin } from '@cosmjs/proto-signing';
|
|
3
|
+
import { Keplr, ChainInfo, KeplrSignOptions, KeplrIntereactionOptions, Key as Key$1, OfflineAminoSigner as OfflineAminoSigner$1, AppCurrency } from '@keplr-wallet/types';
|
|
4
|
+
import { OfflineAminoSigner } from '@cosmjs/amino';
|
|
4
5
|
import { SignClientTypes } from '@walletconnect/types';
|
|
5
6
|
import { WalletConnectModalConfig } from '@walletconnect/modal';
|
|
6
7
|
import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
|
|
7
8
|
import { SigningCosmWasmClient, InstantiateOptions, CosmWasmClient, InstantiateResult, ExecuteResult, SigningCosmWasmClientOptions } from '@cosmjs/cosmwasm-stargate';
|
|
8
9
|
import { SigningStargateClient, StdFee, DeliverTxResponse, QueryClient, StakingExtension, StargateClient, SigningStargateClientOptions } from '@cosmjs/stargate';
|
|
9
10
|
import { Height } from 'cosmjs-types/ibc/core/client/v1/client';
|
|
11
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
10
12
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
11
|
-
import * as _leapwallet_cosmos_social_login_capsule_provider from '@leapwallet/cosmos-social-login-capsule-provider';
|
|
12
|
-
import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
|
|
13
13
|
import { BondStatusString } from '@cosmjs/stargate/build/modules/staking/queries';
|
|
14
14
|
import { QueryValidatorsResponse } from 'cosmjs-types/cosmos/staking/v1beta1/query';
|
|
15
|
-
import { Tendermint34Client, Tendermint37Client } from '@cosmjs/tendermint-rpc';
|
|
16
15
|
import { ReactNode, FC } from 'react';
|
|
17
16
|
|
|
18
17
|
type Dictionary<T = string> = Record<string, T>;
|
|
@@ -32,16 +31,18 @@ declare enum WalletType {
|
|
|
32
31
|
METAMASK_SNAP_COSMOS = "metamask_snap_cosmos",
|
|
33
32
|
STATION = "station",
|
|
34
33
|
XDEFI = "xdefi",
|
|
35
|
-
CAPSULE = "capsule",
|
|
36
34
|
COSMIFRAME = "cosmiframe",
|
|
37
35
|
COMPASS = "compass",
|
|
38
36
|
INITIA = "initia",
|
|
39
37
|
OKX = "okx"
|
|
40
38
|
}
|
|
41
39
|
declare const WALLET_TYPES: WalletType[];
|
|
42
|
-
type Wallet = Pick<Keplr, "enable" | "
|
|
40
|
+
type Wallet = Pick<Keplr, "enable" | "getOfflineSignerOnlyAmino" | "signAmino"> & {
|
|
43
41
|
experimentalSuggestChain: (chainInfo: Omit<ChainInfo, "nodeProvider">) => Promise<void>;
|
|
44
42
|
signArbitrary?: Keplr["signArbitrary"];
|
|
43
|
+
signDirect: (...args: SignDirectParams) => Promise<DirectSignResponse>;
|
|
44
|
+
getOfflineSigner: (chainId: string, signOptions?: KeplrSignOptions) => OfflineAminoSigner & OfflineDirectSigner;
|
|
45
|
+
getOfflineSignerAuto: (chainId: string, signOptions?: KeplrSignOptions) => Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
|
45
46
|
subscription?: (reconnect: () => void) => () => void;
|
|
46
47
|
init?: () => Promise<unknown>;
|
|
47
48
|
disable?: (chainIds?: string | undefined) => Promise<void>;
|
|
@@ -52,7 +53,13 @@ type Wallet = Pick<Keplr, "enable" | "getOfflineSigner" | "getOfflineSignerAuto"
|
|
|
52
53
|
signEthereum?: Keplr["signEthereum"];
|
|
53
54
|
experimentalSignEIP712CosmosTx_v0?: Keplr["experimentalSignEIP712CosmosTx_v0"];
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
interface SignDoc {
|
|
57
|
+
bodyBytes?: Uint8Array | null;
|
|
58
|
+
authInfoBytes?: Uint8Array | null;
|
|
59
|
+
chainId?: string | null;
|
|
60
|
+
accountNumber: bigint | null;
|
|
61
|
+
}
|
|
62
|
+
type SignDirectParams = [chainId: string, signer: string, signDoc: SignDoc, signOptions?: KeplrSignOptions];
|
|
56
63
|
type SignAminoParams = Parameters<Wallet["signAmino"]>;
|
|
57
64
|
type KnownKeys = Record<string, Key>;
|
|
58
65
|
type Key = Omit<Key$1, "ethereumHexAddress">;
|
|
@@ -82,9 +89,9 @@ type ReconnectArgs = Maybe<{
|
|
|
82
89
|
}>;
|
|
83
90
|
declare const reconnect: (args?: ReconnectArgs) => Promise<ConnectResult | undefined>;
|
|
84
91
|
interface OfflineSigners {
|
|
85
|
-
offlineSigner: OfflineAminoSigner & OfflineDirectSigner;
|
|
86
|
-
offlineSignerAmino: OfflineAminoSigner;
|
|
87
|
-
offlineSignerAuto: OfflineAminoSigner | OfflineDirectSigner;
|
|
92
|
+
offlineSigner: OfflineAminoSigner$1 & OfflineDirectSigner;
|
|
93
|
+
offlineSignerAmino: OfflineAminoSigner$1;
|
|
94
|
+
offlineSignerAuto: OfflineAminoSigner$1 | OfflineDirectSigner;
|
|
88
95
|
}
|
|
89
96
|
declare const getOfflineSigners: (args?: {
|
|
90
97
|
walletType?: WalletType;
|
|
@@ -95,10 +102,10 @@ declare const clearRecentChain: () => void;
|
|
|
95
102
|
declare const getRecentChainIds: () => string[] | null;
|
|
96
103
|
declare const getRecentChains: () => ChainInfo[] | null;
|
|
97
104
|
declare const getChainInfo: ({ chainId }: {
|
|
98
|
-
chainId?: string
|
|
105
|
+
chainId?: string;
|
|
99
106
|
}) => ChainInfo | undefined;
|
|
100
107
|
declare const getChainInfos: ({ chainId }: {
|
|
101
|
-
chainId?: string[]
|
|
108
|
+
chainId?: string[];
|
|
102
109
|
}) => ChainInfo[] | undefined;
|
|
103
110
|
interface SuggestChainArgs {
|
|
104
111
|
chainInfo: ChainInfo;
|
|
@@ -124,14 +131,6 @@ interface WalletConnectStore {
|
|
|
124
131
|
options: SignClientTypes.Options | null;
|
|
125
132
|
walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
|
|
126
133
|
}
|
|
127
|
-
interface CapsuleConfig {
|
|
128
|
-
apiKey?: string;
|
|
129
|
-
env?: "DEV" | "SANDBOX" | "BETA" | "PROD";
|
|
130
|
-
}
|
|
131
|
-
interface CapsuleState {
|
|
132
|
-
showModal: boolean;
|
|
133
|
-
chainId?: string[];
|
|
134
|
-
}
|
|
135
134
|
interface IframeOptions {
|
|
136
135
|
/**
|
|
137
136
|
* Origins to allow wrapping this app in an iframe and connecting to this Graz
|
|
@@ -148,8 +147,6 @@ interface IframeOptions {
|
|
|
148
147
|
}
|
|
149
148
|
interface GrazInternalStore {
|
|
150
149
|
recentChainIds: string[] | null;
|
|
151
|
-
capsuleConfig: CapsuleConfig | null;
|
|
152
|
-
capsuleState: CapsuleState | null;
|
|
153
150
|
chains: ChainInfo[] | null;
|
|
154
151
|
chainsConfig: Record<string, ChainConfig> | null;
|
|
155
152
|
iframeOptions: IframeOptions | null;
|
|
@@ -171,7 +168,6 @@ interface ConfigureGrazArgs {
|
|
|
171
168
|
defaultWallet?: WalletType;
|
|
172
169
|
chains: ChainInfo[];
|
|
173
170
|
chainsConfig?: Record<string, ChainConfig>;
|
|
174
|
-
capsuleConfig?: CapsuleConfig;
|
|
175
171
|
onNotFound?: () => void;
|
|
176
172
|
onReconnectFailed?: () => void;
|
|
177
173
|
walletConnect?: GrazInternalStore["walletConnect"];
|
|
@@ -270,7 +266,6 @@ declare const clearSession: () => void;
|
|
|
270
266
|
*/
|
|
271
267
|
declare const getWallet: (type?: WalletType) => Wallet;
|
|
272
268
|
declare const getAvailableWallets: () => Record<WalletType, boolean>;
|
|
273
|
-
declare const isCapsule: (type: WalletType) => boolean;
|
|
274
269
|
declare const isLeapSnaps: (type: WalletType) => boolean;
|
|
275
270
|
declare const isLeapDappBrowser: () => boolean;
|
|
276
271
|
declare const isWalletConnect: (type: WalletType) => boolean;
|
|
@@ -469,7 +464,7 @@ interface UseAccountResult<TMulti extends MultiChainHookArgs> {
|
|
|
469
464
|
* });
|
|
470
465
|
* ```
|
|
471
466
|
*/
|
|
472
|
-
declare const useAccount: <TMulti extends MultiChainHookArgs>(args?:
|
|
467
|
+
declare const useAccount: <TMulti extends MultiChainHookArgs>(args?: UseAccountArgs & TMulti) => UseAccountResult<TMulti>;
|
|
473
468
|
/**
|
|
474
469
|
* graz query hook to retrieve list of balances from current account or given address.
|
|
475
470
|
*
|
|
@@ -488,9 +483,9 @@ declare const useAccount: <TMulti extends MultiChainHookArgs>(args?: (UseAccount
|
|
|
488
483
|
*
|
|
489
484
|
* ```
|
|
490
485
|
*/
|
|
491
|
-
declare const useBalances: <TMulti extends MultiChainHookArgs>(args?:
|
|
492
|
-
bech32Address?: string
|
|
493
|
-
} & TMulti & QueryConfig)
|
|
486
|
+
declare const useBalances: <TMulti extends MultiChainHookArgs>(args?: {
|
|
487
|
+
bech32Address?: string;
|
|
488
|
+
} & TMulti & QueryConfig) => UseMultiChainQueryResult<TMulti, Coin[]>;
|
|
494
489
|
/**
|
|
495
490
|
* graz query hook to retrieve specific asset balance from current account or given address.
|
|
496
491
|
*
|
|
@@ -612,7 +607,7 @@ declare const useDisconnect: ({ onError, onLoading, onSuccess }?: MutationEventA
|
|
|
612
607
|
*
|
|
613
608
|
* ```
|
|
614
609
|
*/
|
|
615
|
-
declare const useOfflineSigners: <TMulti extends MultiChainHookArgs>(args?: TMulti
|
|
610
|
+
declare const useOfflineSigners: <TMulti extends MultiChainHookArgs>(args?: TMulti) => UseMultiChainQueryResult<TMulti, OfflineSigners>;
|
|
616
611
|
/**
|
|
617
612
|
* graz query hook to retrieve list of staked balances from current account or given address.
|
|
618
613
|
*
|
|
@@ -633,17 +628,9 @@ declare const useOfflineSigners: <TMulti extends MultiChainHookArgs>(args?: TMul
|
|
|
633
628
|
* useBalanceStaked({ bech32Address: "cosmos1kpzxx2lxg05xxn8mfygrerhmkj0ypn8edmu2pu"});
|
|
634
629
|
* ```
|
|
635
630
|
*/
|
|
636
|
-
declare const useBalanceStaked: <TMulti extends MultiChainHookArgs>(args?:
|
|
637
|
-
bech32Address?: string
|
|
638
|
-
} & TMulti)
|
|
639
|
-
|
|
640
|
-
declare const useCapsule: () => {
|
|
641
|
-
setModalState: (state: boolean) => void;
|
|
642
|
-
modalState: boolean;
|
|
643
|
-
client: _leapwallet_cosmos_social_login_capsule_provider.CapsuleProvider | null;
|
|
644
|
-
onAfterLoginSuccessful: (() => Promise<void>) | undefined;
|
|
645
|
-
onLoginFailure: () => void;
|
|
646
|
-
};
|
|
631
|
+
declare const useBalanceStaked: <TMulti extends MultiChainHookArgs>(args?: {
|
|
632
|
+
bech32Address?: string;
|
|
633
|
+
} & TMulti) => UseMultiChainQueryResult<TMulti, Coin>;
|
|
647
634
|
|
|
648
635
|
/**
|
|
649
636
|
* graz hook to retrieve connected account's active chainIds
|
|
@@ -678,7 +665,7 @@ declare const useActiveChains: () => ChainInfo[] | undefined;
|
|
|
678
665
|
* ```
|
|
679
666
|
*/
|
|
680
667
|
declare const useChainInfo: ({ chainId }: {
|
|
681
|
-
chainId?: string
|
|
668
|
+
chainId?: string;
|
|
682
669
|
}) => ChainInfo | undefined;
|
|
683
670
|
/**
|
|
684
671
|
* graz hook to retrieve ChainInfo objects from GrazProvider with given chainId
|
|
@@ -692,7 +679,7 @@ declare const useChainInfo: ({ chainId }: {
|
|
|
692
679
|
* ```
|
|
693
680
|
*/
|
|
694
681
|
declare const useChainInfos: ({ chainId }: {
|
|
695
|
-
chainId?: string[]
|
|
682
|
+
chainId?: string[];
|
|
696
683
|
}) => ChainInfo[] | undefined;
|
|
697
684
|
/**
|
|
698
685
|
* graz hook to retrieve specific connected chains currency
|
|
@@ -725,7 +712,7 @@ declare const useActiveChainCurrency: ({ denom }: {
|
|
|
725
712
|
*/
|
|
726
713
|
declare const useQueryClientValidators: <T extends QueryClient & StakingExtension>(args: {
|
|
727
714
|
queryClient: T | undefined;
|
|
728
|
-
status?: BondStatusString
|
|
715
|
+
status?: BondStatusString;
|
|
729
716
|
}) => UseQueryResult<QueryValidatorsResponse>;
|
|
730
717
|
/**
|
|
731
718
|
* graz hook to retrieve last connected chainIds
|
|
@@ -785,8 +772,8 @@ declare const useSuggestChain: ({ onError, onLoading, onSuccess }?: UseSuggestCh
|
|
|
785
772
|
error: Error | null;
|
|
786
773
|
isLoading: boolean;
|
|
787
774
|
isSuccess: boolean;
|
|
788
|
-
suggest:
|
|
789
|
-
suggestAsync:
|
|
775
|
+
suggest: _tanstack_react_query.UseMutateFunction<ChainInfo, Error, SuggestChainArgs, unknown>;
|
|
776
|
+
suggestAsync: _tanstack_react_query.UseMutateAsyncFunction<ChainInfo, Error, SuggestChainArgs, unknown>;
|
|
790
777
|
status: "error" | "success" | "pending" | "idle";
|
|
791
778
|
};
|
|
792
779
|
type UseSuggestChainAndConnectArgs = MutationEventArgs<SuggestChainAndConnectArgs, ConnectResult>;
|
|
@@ -826,8 +813,8 @@ declare const useSuggestChainAndConnect: ({ onError, onLoading, onSuccess }?: Us
|
|
|
826
813
|
isSuccess: boolean;
|
|
827
814
|
isSupported: boolean;
|
|
828
815
|
status: "error" | "success" | "pending" | "idle";
|
|
829
|
-
suggestAndConnect:
|
|
830
|
-
suggestAndConnectAsync:
|
|
816
|
+
suggestAndConnect: _tanstack_react_query.UseMutateFunction<ConnectResult, Error, SuggestChainAndConnectArgs, unknown>;
|
|
817
|
+
suggestAndConnectAsync: _tanstack_react_query.UseMutateAsyncFunction<ConnectResult, Error, SuggestChainAndConnectArgs, unknown>;
|
|
831
818
|
};
|
|
832
819
|
|
|
833
820
|
/**
|
|
@@ -847,7 +834,7 @@ declare const useSuggestChainAndConnect: ({ onError, onLoading, onSuccess }?: Us
|
|
|
847
834
|
*
|
|
848
835
|
* ```
|
|
849
836
|
*/
|
|
850
|
-
declare const useStargateClient: <TMulti extends MultiChainHookArgs>(args?:
|
|
837
|
+
declare const useStargateClient: <TMulti extends MultiChainHookArgs>(args?: TMulti & QueryConfig) => UseMultiChainQueryResult<TMulti, StargateClient>;
|
|
851
838
|
/**
|
|
852
839
|
* graz query hook to retrieve a CosmWasmClient.
|
|
853
840
|
*
|
|
@@ -865,26 +852,7 @@ declare const useStargateClient: <TMulti extends MultiChainHookArgs>(args?: (TMu
|
|
|
865
852
|
*
|
|
866
853
|
* ```
|
|
867
854
|
*/
|
|
868
|
-
declare const useCosmWasmClient: <TMulti extends MultiChainHookArgs>(args?:
|
|
869
|
-
/**
|
|
870
|
-
* graz query hook to retrieve a TendermintClient.
|
|
871
|
-
*
|
|
872
|
-
* @example
|
|
873
|
-
* ```ts
|
|
874
|
-
* import { useTendermintClient } from "graz";
|
|
875
|
-
*
|
|
876
|
-
* //single chain
|
|
877
|
-
* const { data:client, isFetching, refetch, ... } = useTendermintClient({type: "tm37"});
|
|
878
|
-
* await client.getAccount("address")
|
|
879
|
-
*
|
|
880
|
-
* // multi chain
|
|
881
|
-
* const { data:clients, isFetching, refetch, ... } = useTendermintClient({type: "tm34", multiChain: true, chainId: ["cosmoshub-4", "sommelier-3"]});
|
|
882
|
-
* await clients["cosmoshub-4"].getAccount("address")
|
|
883
|
-
* ```
|
|
884
|
-
*/
|
|
885
|
-
declare const useTendermintClient: <T extends "tm34" | "tm37", TMulti extends MultiChainHookArgs>({ type, chainId, multiChain, enabled, }: {
|
|
886
|
-
type: T;
|
|
887
|
-
} & TMulti & QueryConfig) => UseMultiChainQueryResult<TMulti, T extends "tm34" ? Tendermint34Client : Tendermint37Client>;
|
|
855
|
+
declare const useCosmWasmClient: <TMulti extends MultiChainHookArgs>(args?: TMulti & QueryConfig) => UseMultiChainQueryResult<TMulti, CosmWasmClient>;
|
|
888
856
|
|
|
889
857
|
/**
|
|
890
858
|
* graz mutation hook to send tokens. Note: if `senderAddress` undefined, it will use current connected account address.
|
|
@@ -911,8 +879,8 @@ declare const useSendTokens: ({ onError, onLoading, onSuccess, }?: MutationEvent
|
|
|
911
879
|
error: Error | null;
|
|
912
880
|
isLoading: boolean;
|
|
913
881
|
isSuccess: boolean;
|
|
914
|
-
sendTokens:
|
|
915
|
-
sendTokensAsync:
|
|
882
|
+
sendTokens: _tanstack_react_query.UseMutateFunction<DeliverTxResponse, Error, SendTokensArgs, unknown>;
|
|
883
|
+
sendTokensAsync: _tanstack_react_query.UseMutateAsyncFunction<DeliverTxResponse, Error, SendTokensArgs, unknown>;
|
|
916
884
|
status: "error" | "success" | "pending" | "idle";
|
|
917
885
|
};
|
|
918
886
|
/**
|
|
@@ -939,8 +907,8 @@ declare const useSendIbcTokens: ({ onError, onLoading, onSuccess, }?: MutationEv
|
|
|
939
907
|
error: Error | null;
|
|
940
908
|
isLoading: boolean;
|
|
941
909
|
isSuccess: boolean;
|
|
942
|
-
sendIbcTokens:
|
|
943
|
-
sendIbcTokensAsync:
|
|
910
|
+
sendIbcTokens: _tanstack_react_query.UseMutateFunction<DeliverTxResponse, Error, SendIbcTokensArgs, unknown>;
|
|
911
|
+
sendIbcTokensAsync: _tanstack_react_query.UseMutateAsyncFunction<DeliverTxResponse, Error, SendIbcTokensArgs, unknown>;
|
|
944
912
|
status: "error" | "success" | "pending" | "idle";
|
|
945
913
|
};
|
|
946
914
|
type UseInstantiateContractArgs<Message extends Record<string, unknown>> = {
|
|
@@ -971,8 +939,8 @@ declare const useInstantiateContract: <Message extends Record<string, unknown>>(
|
|
|
971
939
|
error: Error | null;
|
|
972
940
|
isLoading: boolean;
|
|
973
941
|
isSuccess: boolean;
|
|
974
|
-
instantiateContract:
|
|
975
|
-
instantiateContractAsync:
|
|
942
|
+
instantiateContract: _tanstack_react_query.UseMutateFunction<InstantiateResult, Error, InstantiateContractMutationArgs<Message>, unknown>;
|
|
943
|
+
instantiateContractAsync: _tanstack_react_query.UseMutateAsyncFunction<InstantiateResult, Error, InstantiateContractMutationArgs<Message>, unknown>;
|
|
976
944
|
status: "error" | "success" | "pending" | "idle";
|
|
977
945
|
};
|
|
978
946
|
type UseExecuteContractArgs<Message extends Record<string, unknown>> = {
|
|
@@ -1012,8 +980,8 @@ declare const useExecuteContract: <Message extends Record<string, unknown>>({ co
|
|
|
1012
980
|
error: Error | null;
|
|
1013
981
|
isLoading: boolean;
|
|
1014
982
|
isSuccess: boolean;
|
|
1015
|
-
executeContract:
|
|
1016
|
-
executeContractAsync:
|
|
983
|
+
executeContract: _tanstack_react_query.UseMutateFunction<ExecuteResult, Error, ExecuteContractMutationArgs<Message>, unknown>;
|
|
984
|
+
executeContractAsync: _tanstack_react_query.UseMutateAsyncFunction<ExecuteResult, Error, ExecuteContractMutationArgs<Message>, unknown>;
|
|
1017
985
|
status: "error" | "success" | "pending" | "idle";
|
|
1018
986
|
};
|
|
1019
987
|
/**
|
|
@@ -1056,18 +1024,6 @@ declare function useStargateSigningClient(args?: BaseSigningClientArgs & Siginin
|
|
|
1056
1024
|
declare function useStargateSigningClient(args?: BaseSigningClientArgs & SiginingClientMultichainArgs<SigningStargateClientOptions>): UseQueryResult<Record<string, SigningStargateClient | null>>;
|
|
1057
1025
|
declare function useCosmWasmSigningClient(args?: BaseSigningClientArgs & SiginingClientSinglechainArgs<SigningCosmWasmClientOptions>): UseQueryResult<SigningCosmWasmClient | null>;
|
|
1058
1026
|
declare function useCosmWasmSigningClient(args?: BaseSigningClientArgs & SiginingClientMultichainArgs<SigningCosmWasmClientOptions>): UseQueryResult<Record<string, SigningCosmWasmClient | null>>;
|
|
1059
|
-
declare function useStargateTmSigningClient(args: {
|
|
1060
|
-
type: "tm34" | "tm37";
|
|
1061
|
-
} & BaseSigningClientArgs & SiginingClientSinglechainArgs<SigningStargateClientOptions>): UseQueryResult<SigningStargateClient | null>;
|
|
1062
|
-
declare function useStargateTmSigningClient(args: {
|
|
1063
|
-
type: "tm34" | "tm37";
|
|
1064
|
-
} & BaseSigningClientArgs & SiginingClientMultichainArgs<SigningStargateClientOptions>): UseQueryResult<Record<string, SigningStargateClient | null>>;
|
|
1065
|
-
declare function useCosmWasmTmSigningClient(args: {
|
|
1066
|
-
type: "tm34" | "tm37";
|
|
1067
|
-
} & BaseSigningClientArgs & SiginingClientSinglechainArgs<SigningCosmWasmClientOptions>): UseQueryResult<SigningCosmWasmClient | null>;
|
|
1068
|
-
declare function useCosmWasmTmSigningClient(args: {
|
|
1069
|
-
type: "tm34" | "tm37";
|
|
1070
|
-
} & BaseSigningClientArgs & SiginingClientMultichainArgs<SigningCosmWasmClientOptions>): UseQueryResult<Record<string, SigningCosmWasmClient | null>>;
|
|
1071
1027
|
|
|
1072
1028
|
/**
|
|
1073
1029
|
* graz hook to retrieve current active {@link WalletType}
|
|
@@ -1090,7 +1046,6 @@ declare const useActiveWalletType: () => {
|
|
|
1090
1046
|
isWalletConnect: boolean;
|
|
1091
1047
|
isMetamaskSnapLeap: boolean;
|
|
1092
1048
|
isStation: boolean;
|
|
1093
|
-
isCapsule: boolean;
|
|
1094
1049
|
isCosmiframe: boolean;
|
|
1095
1050
|
};
|
|
1096
1051
|
/**
|
|
@@ -1144,4 +1099,4 @@ declare const useGrazEvents: () => null;
|
|
|
1144
1099
|
*/
|
|
1145
1100
|
declare const GrazEvents: FC;
|
|
1146
1101
|
|
|
1147
|
-
export { ConfigureGrazArgs, ConnectArgs, ConnectResult, Dictionary, ExecuteContractArgs, ExecuteContractMutationArgs, GrazEvents, GrazProvider, GrazProviderProps, InstantiateContractArgs, InstantiateContractMutationArgs, Key, KnownKeys, Maybe, OfflineSigners, ReconnectArgs, SendIbcTokensArgs, SendTokensArgs, SignAminoParams, SignDirectParams, SuggestChainAndConnectArgs, SuggestChainArgs, UseAccountArgs, UseAccountResult, UseConnectChainArgs, UseExecuteContractArgs, UseInstantiateContractArgs, UseSuggestChainAndConnectArgs, UseSuggestChainArgs, WALLET_TYPES, Wallet, WalletType, checkWallet, clearRecentChain, clearSession, configureGraz, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getChainInfo, getChainInfos, getCosmostation, getKeplr, getLeap, getMetamaskSnapLeap, getOfflineSigners, getQueryRaw, getQuerySmart, getRecentChainIds, getRecentChains, getVectis, getWCCosmostation, getWCKeplr, getWCLeap, getWallet, getWalletConnect, instantiateContract,
|
|
1102
|
+
export { ConfigureGrazArgs, ConnectArgs, ConnectResult, Dictionary, ExecuteContractArgs, ExecuteContractMutationArgs, GrazEvents, GrazProvider, GrazProviderProps, InstantiateContractArgs, InstantiateContractMutationArgs, Key, KnownKeys, Maybe, OfflineSigners, ReconnectArgs, SendIbcTokensArgs, SendTokensArgs, SignAminoParams, SignDirectParams, SignDoc, SuggestChainAndConnectArgs, SuggestChainArgs, UseAccountArgs, UseAccountResult, UseConnectChainArgs, UseExecuteContractArgs, UseInstantiateContractArgs, UseSuggestChainAndConnectArgs, UseSuggestChainArgs, WALLET_TYPES, Wallet, WalletType, checkWallet, clearRecentChain, clearSession, configureGraz, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getChainInfo, getChainInfos, getCosmostation, getKeplr, getLeap, getMetamaskSnapLeap, getOfflineSigners, getQueryRaw, getQuerySmart, getRecentChainIds, getRecentChains, getVectis, getWCCosmostation, getWCKeplr, getWCLeap, getWallet, getWalletConnect, instantiateContract, isLeapDappBrowser, isLeapSnaps, isWalletConnect, reconnect, sendIbcTokens, sendTokens, suggestChain, suggestChainAndConnect, useAccount, useActiveChainCurrency, useActiveChainIds, useActiveChains, useActiveWalletType, 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 };
|