graz 0.4.2 → 0.5.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/cli.js +5 -5
- package/dist/index.d.mts +304 -80
- package/dist/index.d.ts +304 -80
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +38 -27
- package/types/global.d.ts +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';var
|
|
2
|
+
'use strict';var h=require('fs/promises'),F=require('path'),url=require('url'),cosmos=require('@keplr-wallet/cosmos'),V=require('arg'),cosmosDirectoryClient=require('cosmos-directory-client');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var h__namespace=/*#__PURE__*/_interopNamespace(h);var F__namespace=/*#__PURE__*/_interopNamespace(F);var V__default=/*#__PURE__*/_interopDefault(V);var z=()=>typeof document>"u"?new URL(`file:${__filename}`).href:document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"?document.currentScript.src:new URL("main.js",document.baseURI).href,A=z();async function R(t,o,{concurrency:i=Number.POSITIVE_INFINITY,stopOnError:d=true,signal:c}={}){return new Promise((l,e)=>{if(t[Symbol.iterator]===void 0&&t[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof t})`);if(typeof o!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(i)&&i>=1||i===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${i}\` (${typeof i})`);let r=[],m=[],_=new Map,I=false,n=false,N=false,s=0,P=0,G=t[Symbol.iterator]===void 0?t[Symbol.asyncIterator]():t[Symbol.iterator](),x=()=>{g(c.reason);},$=()=>{c?.removeEventListener("abort",x);},v=f=>{l(f),$();},g=f=>{I=true,n=true,e(f),$();};c&&(c.aborted&&g(c.reason),c.addEventListener("abort",x,{once:true}));let C=async()=>{if(n)return;let f=await G.next(),S=P;if(P++,f.done){if(N=true,s===0&&!n){if(!d&&m.length>0){g(new AggregateError(m));return}if(n=true,_.size===0){v(r);return}let p=[];for(let[u,O]of r.entries())_.get(u)!==j&&p.push(O);v(p);}return}s++,(async()=>{try{let p=await f.value;if(n)return;let u=await o(p,S);u===j&&_.set(S,u),r[S]=u,s--,await C();}catch(p){if(d)g(p);else {m.push(p),s--;try{await C();}catch(u){g(u);}}}})();};(async()=>{for(let f=0;f<i;f++){try{await C();}catch(S){g(S);break}if(N||I)break}})();})}var j=Symbol("skip");var q=F.dirname(url.fileURLToPath(A)),X=t=>/^\d+$/.test(t),w=t=>X(t[0])?`_${t}`:t,D=`Usage: graz [options]
|
|
3
3
|
|
|
4
4
|
Options:
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ Generate options:
|
|
|
14
14
|
--authz Generate only authz compatible chains
|
|
15
15
|
|
|
16
16
|
https://github.com/graz-sh/graz
|
|
17
|
-
`,
|
|
18
|
-
`),
|
|
19
|
-
`}).join(""),
|
|
20
|
-
`),
|
|
17
|
+
`,a=V__default.default({"--generate":Boolean,"-g":"--generate","--authz":Boolean,"--best":Boolean,"--mainnet":String,"--testnet":String,"-b":"--best","-M":"--mainnet","-T":"--testnet","--help":Boolean,"-h":"--help","--endpoint":String,"-e":"--endpoint"}),J=async()=>{if(a["--help"]){console.log(D);return}if(a["--generate"]){await K();return}console.log(D);},K=async()=>{console.log("\u23F3 Generating chain list..."),a["--authz"]&&console.log("\u270D\uFE0F Detected authz flag, generating only compatible chains..."),a["--best"]&&console.log("\u{1F481}\u200D\u2642\uFE0F Detected best flag, setting REST and RPC endpoints to best latency..."),(a["--mainnet"]||a["--testnet"])&&console.log("\u{1F419} Detected chain filtering flag, generating only given chain paths...");let t,o;if(a["--endpoint"]){console.log("\u{1F310} Fetching chain information from specified endpoint");try{let e=await fetch(a["--endpoint"]);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);let r=await e.json();t=M(r.mainnet,a["--mainnet"]),o=M(r.testnet,a["--testnet"]);}catch(e){console.error(`\u274C Failed to fetch chain information: ${e.message}`),process.exit(1);}}else [t,o]=await Promise.all([L(cosmosDirectoryClient.createClient(),{filter:a["--mainnet"]}),L(cosmosDirectoryClient.createTestnetClient(),{filter:a["--testnet"]})]);let[i,d]=await Promise.all([h__namespace.readFile(b("index.js.stub"),{encoding:"utf-8"}),h__namespace.readFile(b("index.mjs.stub"),{encoding:"utf-8"})]),c=i.replace("/* REPLACE_MAINNET_DEFS */",T(t)).replace("/* REPLACE_TESTNET_DEFS */",T(o,{testnet:true})).replace("/* REPLACE_MAINNET_CHAINS */",y(t)).replace("/* REPLACE_TESTNET_CHAINS */",y(o,{testnet:true})).replace("/* REPLACE_MAINNET_CHAINS_ARRAY */",E(t)).replace("/* REPLACE_TESTNET_CHAINS_ARRAY */",E(o,{testnet:true})).replace("/* REPLACE_MAINNET_EXPORTS */",E(t)).replace("/* REPLACE_TESTNET_EXPORTS */",E(o,{testnet:true})).replace(/"(.+)":/g,"$1:").trim(),l=d.replace("/* REPLACE_MAINNET_DEFS */",T(t,{mjs:true})).replace("/* REPLACE_TESTNET_DEFS */",T(o,{mjs:true,testnet:true})).replace("/* REPLACE_MAINNET_CHAINS */",y(t)).replace("/* REPLACE_TESTNET_CHAINS */",y(o,{testnet:true})).replace("/* REPLACE_MAINNET_CHAINS_ARRAY */",E(t)).replace("/* REPLACE_TESTNET_CHAINS_ARRAY */",E(o,{testnet:true})).replace(/"(.+)":/g,"$1:").trim();await Promise.all([h__namespace.writeFile(b("index.js"),c,{encoding:"utf-8"}),h__namespace.writeFile(b("index.mjs"),l.replace('"../dist"','"../dist/index.mjs"'),{encoding:"utf-8"}),h__namespace.writeFile(b("index.ts"),l,{encoding:"utf-8"})]),console.log('\u2728 Generate complete! You can import `mainnetChains` and `testnetChains` from "graz/chains".\n');},M=(t,o)=>{if(!o)return t;let i=new Set(o.split(","));return Object.fromEntries(Object.entries(t).filter(([d])=>i.has(d)))},b=(...t)=>F__namespace.resolve(q,"../chains",...t),y=(t,{testnet:o=false}={})=>Object.keys(t).map(i=>` ${w(i)}: ${w(i)},`).join(`
|
|
18
|
+
`),T=(t,{mjs:o=false,testnet:i=false}={})=>Object.entries(t).map(([d,c])=>{let l=`${w(d)}`,e=JSON.stringify(c,null,2);return `${o?"export ":""}const ${l} = defineChainInfo(${e});
|
|
19
|
+
`}).join(""),E=(t,{testnet:o=false}={})=>Object.keys(t).map(i=>` ${w(i)},`).join(`
|
|
20
|
+
`),L=async(t,{filter:o=""}={})=>{let i;if(o)i=o.split(",").map(e=>({path:e}));else try{i=(await t.fetchChains()).chains.map(({path:r})=>({path:r}));}catch(e){return console.error(`\u274C Failed to fetch chains list: ${e.message}`),{}}let c=(await R(i,async e=>{try{return (await t.fetchChain(e.path)).chain}catch(r){return console.error(`\u274C Failed to fetch chain "${e.path}": ${r.message}`),null}},{concurrency:4})).filter(e=>e!==null),l={};return c.forEach(e=>{try{if(a["--authz"]&&!e.params?.authz)return;let r=a["--best"]?e.best_apis:e.apis;if(!r||!r.rest?.[0]||!r.rpc?.[0])throw new Error(`\u26A0\uFE0F ${e.name} has no REST/RPC endpoints, skipping codegen...`);if(!e.assets)throw new Error(`\u26A0\uFE0F ${e.name} has no assets, skipping codegen...`);let m=e.assets[0],_={coinDenom:m.denom_units[m.denom_units.length-1].denom,coinMinimalDenom:m.denom_units[0].denom,coinDecimals:m.denom_units[m.denom_units.length-1].exponent,coinGeckoId:m.coingecko_id},I=e.fees?.fee_tokens.map(n=>n.low_gas_price&&n.average_gas_price&&n.high_gas_price?{coinDenom:e.assets?.find(s=>s.denom===n.denom)?.denom_units.at(-1)?.denom||n.denom,coinMinimalDenom:e.assets?.find(s=>s.denom===n.denom)?.denom_units[0]?.denom||n.denom,coinDecimals:Number(e.assets?.find(s=>s.denom===n.denom)?.decimals),coinGeckoId:e.assets?.find(s=>s.denom===n.denom)?.coingecko_id||void 0,gasPriceStep:{low:Number(n.low_gas_price),average:Number(n.average_gas_price),high:Number(n.high_gas_price)}}:{coinDenom:e.assets?.find(s=>s.denom===n.denom)?.denom_units.at(-1)?.denom||n.denom,coinMinimalDenom:e.assets?.find(s=>s.denom===n.denom)?.denom_units[0]?.denom||n.denom,coinDecimals:Number(e.assets?.find(s=>s.denom===n.denom)?.decimals),coinGeckoId:e.assets?.find(s=>s.denom===n.denom)?.coingecko_id||void 0});if(!I)throw new Error(`\u26A0\uFE0F ${e.name} has no fee currencies, skipping codegen...`);l[e.path]={chainId:e.chain_id,currencies:e.assets.map(n=>({coinDenom:n.denom_units[n.denom_units.length-1].denom,coinMinimalDenom:n.denom_units[0].denom,coinDecimals:n.denom_units[n.denom_units.length-1].exponent,coinGeckoId:n.coingecko_id})),rest:r.rest[0].address||"",rpc:r.rpc[0].address||"",bech32Config:cosmos.Bech32Address.defaultBech32Config(e.bech32_prefix),chainName:e.chain_name,feeCurrencies:I,stakeCurrency:_,bip44:{coinType:e.slip44??0}};}catch(r){console.error(r instanceof Error?r.message:String(r));}}),l};J();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,36 +1,30 @@
|
|
|
1
1
|
/// <reference types="../types/global" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { OfflineAminoSigner, StdSignature } from '@cosmjs/amino';
|
|
3
|
+
import { DirectSignResponse, OfflineDirectSigner, Coin, EncodeObject } from '@cosmjs/proto-signing';
|
|
4
|
+
import { Keplr, ChainInfo, KeplrSignOptions, KeplrIntereactionOptions, Key as Key$1, AppCurrency } from '@keplr-wallet/types';
|
|
5
5
|
import { WalletConnectModalConfig } from '@walletconnect/modal';
|
|
6
6
|
import { SignClientTypes } from '@walletconnect/types';
|
|
7
7
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
8
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
8
|
+
import { QueryClient, UseQueryResult } from '@tanstack/react-query';
|
|
9
9
|
import { ParaWeb } from '@getpara/web-sdk';
|
|
10
10
|
export { ParaWeb } from '@getpara/web-sdk';
|
|
11
|
-
import { ParaGrazConfig as ParaGrazConfig$1, ParaGrazConnector } from '@getpara/graz-connector';
|
|
12
11
|
import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
|
|
13
|
-
import { SigningCosmWasmClient, InstantiateOptions, CosmWasmClient,
|
|
14
|
-
import {
|
|
15
|
-
import { Height } from 'cosmjs-types/ibc/core/client/v1/client';
|
|
12
|
+
import { SigningCosmWasmClient, InstantiateOptions, CosmWasmClient, ExecuteResult, InstantiateResult, SigningCosmWasmClientOptions } from '@cosmjs/cosmwasm-stargate';
|
|
13
|
+
import { StdFee, SigningStargateClient, DeliverTxResponse, QueryClient as QueryClient$1, StakingExtension, StargateClient, SigningStargateClientOptions } from '@cosmjs/stargate';
|
|
16
14
|
import { BondStatusString } from '@cosmjs/stargate/build/modules/staking/queries';
|
|
17
|
-
import {
|
|
18
|
-
import { ReactNode, FC } from 'react';
|
|
15
|
+
import { FC, ReactNode } from 'react';
|
|
19
16
|
|
|
20
17
|
type Dictionary<T = string> = Record<string, T>;
|
|
21
18
|
type Maybe<T> = T | undefined;
|
|
22
19
|
|
|
23
20
|
declare enum WalletType {
|
|
24
21
|
KEPLR = "keplr",
|
|
25
|
-
LEAP = "leap",
|
|
26
22
|
VECTIS = "vectis",
|
|
27
23
|
COSMOSTATION = "cosmostation",
|
|
28
24
|
WALLETCONNECT = "walletconnect",
|
|
29
25
|
WC_KEPLR_MOBILE = "wc_keplr_mobile",
|
|
30
|
-
WC_LEAP_MOBILE = "wc_leap_mobile",
|
|
31
26
|
WC_COSMOSTATION_MOBILE = "wc_cosmostation_mobile",
|
|
32
27
|
WC_CLOT_MOBILE = "wc_clot_mobile",
|
|
33
|
-
METAMASK_SNAP_LEAP = "metamask_snap_leap",
|
|
34
28
|
METAMASK_SNAP_COSMOS = "metamask_snap_cosmos",
|
|
35
29
|
STATION = "station",
|
|
36
30
|
XDEFI = "xdefi",
|
|
@@ -42,11 +36,13 @@ declare enum WalletType {
|
|
|
42
36
|
CACTUSCOSMOS = "cactuscosmos"
|
|
43
37
|
}
|
|
44
38
|
declare const WALLET_TYPES: WalletType[];
|
|
45
|
-
type Wallet = Pick<Keplr, "enable" | "
|
|
39
|
+
type Wallet = Pick<Keplr, "enable" | "signAmino"> & {
|
|
46
40
|
experimentalSuggestChain: (chainInfo: Omit<ChainInfo, "nodeProvider">) => Promise<void>;
|
|
47
41
|
signArbitrary?: Keplr["signArbitrary"];
|
|
42
|
+
verifyArbitrary?: Keplr["verifyArbitrary"];
|
|
48
43
|
signDirect: (...args: SignDirectParams) => Promise<DirectSignResponse>;
|
|
49
44
|
getOfflineSigner: (chainId: string, signOptions?: KeplrSignOptions) => OfflineAminoSigner & OfflineDirectSigner;
|
|
45
|
+
getOfflineSignerOnlyAmino: (chainId: string, signOptions?: KeplrSignOptions) => OfflineAminoSigner;
|
|
50
46
|
getOfflineSignerAuto: (chainId: string, signOptions?: KeplrSignOptions) => Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
|
51
47
|
subscription?: (reconnect: () => void) => () => void;
|
|
52
48
|
init?: () => Promise<unknown>;
|
|
@@ -93,9 +89,9 @@ type ReconnectArgs = Maybe<{
|
|
|
93
89
|
}>;
|
|
94
90
|
declare const reconnect: (args?: ReconnectArgs) => Promise<ConnectResult | undefined>;
|
|
95
91
|
interface OfflineSigners {
|
|
96
|
-
offlineSigner: OfflineAminoSigner
|
|
97
|
-
offlineSignerAmino: OfflineAminoSigner
|
|
98
|
-
offlineSignerAuto: OfflineAminoSigner
|
|
92
|
+
offlineSigner: OfflineAminoSigner & OfflineDirectSigner;
|
|
93
|
+
offlineSignerAmino: OfflineAminoSigner;
|
|
94
|
+
offlineSignerAuto: OfflineAminoSigner | OfflineDirectSigner;
|
|
99
95
|
}
|
|
100
96
|
declare const getOfflineSigners: (args?: {
|
|
101
97
|
walletType?: WalletType;
|
|
@@ -243,9 +239,10 @@ interface ParaWallet {
|
|
|
243
239
|
}
|
|
244
240
|
/**
|
|
245
241
|
* Event callbacks for Para wallet connector lifecycle events
|
|
246
|
-
* Extracted from @getpara/graz-connector ParaGrazConfig
|
|
247
242
|
*/
|
|
248
|
-
|
|
243
|
+
interface ParaGrazConnectorEvents {
|
|
244
|
+
onEnabled?: (chainIds: string[], connector: ParaGrazConnector) => void;
|
|
245
|
+
}
|
|
249
246
|
/**
|
|
250
247
|
* Modal props for Para wallet UI
|
|
251
248
|
* Compatible with ParaModalProps from @getpara/react-sdk-lite
|
|
@@ -296,7 +293,19 @@ interface ParaGrazConfig {
|
|
|
296
293
|
* Should match the client used in your app's QueryClientProvider
|
|
297
294
|
* Only needed when using @getpara/graz-integration with modal support
|
|
298
295
|
*/
|
|
299
|
-
queryClient?:
|
|
296
|
+
queryClient?: QueryClient;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Para wallet connector interface
|
|
300
|
+
*
|
|
301
|
+
* Structural contract for the connector instance provided by
|
|
302
|
+
* @getpara/graz-integration. Defined here so graz's published types stay
|
|
303
|
+
* self-contained and do not pin a specific @getpara/graz-connector install.
|
|
304
|
+
*/
|
|
305
|
+
interface ParaGrazConnector extends Pick<Wallet, "enable" | "getKey" | "getOfflineSigner" | "getOfflineSignerOnlyAmino" | "getOfflineSignerAuto" | "signAmino" | "signDirect"> {
|
|
306
|
+
disconnect: () => Promise<void>;
|
|
307
|
+
getParaWebClient: () => ParaWeb;
|
|
308
|
+
signArbitrary: (chainId: string, signer: string, data: string | Uint8Array) => Promise<StdSignature>;
|
|
300
309
|
}
|
|
301
310
|
|
|
302
311
|
interface ChainConfig {
|
|
@@ -309,7 +318,7 @@ interface ChainConfig {
|
|
|
309
318
|
}
|
|
310
319
|
interface WalletConnectStore {
|
|
311
320
|
options: SignClientTypes.Options | null;
|
|
312
|
-
walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
|
|
321
|
+
walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl" | "mobileWallets" | "desktopWallets"> | null;
|
|
313
322
|
}
|
|
314
323
|
interface IframeOptions {
|
|
315
324
|
/**
|
|
@@ -381,6 +390,10 @@ interface ConfigureGrazArgs {
|
|
|
381
390
|
* Options to enable iframe wallet connection.
|
|
382
391
|
*/
|
|
383
392
|
iframeOptions?: IframeOptions;
|
|
393
|
+
/**
|
|
394
|
+
* Prefix persisted Graz storage keys, useful when multiple Graz apps share one origin.
|
|
395
|
+
*/
|
|
396
|
+
prefixStorageKey?: string;
|
|
384
397
|
pingInteval?: number;
|
|
385
398
|
/**
|
|
386
399
|
* Logger configuration
|
|
@@ -393,6 +406,36 @@ interface ConfigureGrazArgs {
|
|
|
393
406
|
}
|
|
394
407
|
declare const configureGraz: (args: ConfigureGrazArgs) => ConfigureGrazArgs;
|
|
395
408
|
|
|
409
|
+
interface Height {
|
|
410
|
+
revisionNumber: bigint;
|
|
411
|
+
revisionHeight: bigint;
|
|
412
|
+
}
|
|
413
|
+
interface SignArbitraryArgs {
|
|
414
|
+
walletType?: WalletType;
|
|
415
|
+
chainId: string;
|
|
416
|
+
signerAddress: string;
|
|
417
|
+
data: string | Uint8Array;
|
|
418
|
+
}
|
|
419
|
+
interface VerifyArbitraryArgs extends SignArbitraryArgs {
|
|
420
|
+
signature: StdSignature;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Sign arbitrary data using the active wallet's ADR-36-compatible signing API.
|
|
424
|
+
*/
|
|
425
|
+
declare const signArbitrary: ({ walletType, chainId, signerAddress, data, }: SignArbitraryArgs) => Promise<StdSignature>;
|
|
426
|
+
/**
|
|
427
|
+
* Verify arbitrary data using the active wallet's ADR-36-compatible verification API.
|
|
428
|
+
*/
|
|
429
|
+
declare const verifyArbitrary: ({ walletType, chainId, signerAddress, data, signature, }: VerifyArbitraryArgs) => Promise<boolean>;
|
|
430
|
+
interface SignAndBroadcastArgs {
|
|
431
|
+
signingClient?: SigningStargateClient;
|
|
432
|
+
senderAddress?: string;
|
|
433
|
+
messages: readonly EncodeObject[];
|
|
434
|
+
fee: number | StdFee | "auto";
|
|
435
|
+
memo?: string;
|
|
436
|
+
timeoutHeight?: bigint;
|
|
437
|
+
}
|
|
438
|
+
declare const signAndBroadcast: ({ signingClient, senderAddress, messages, fee, memo, timeoutHeight, }: SignAndBroadcastArgs) => Promise<DeliverTxResponse>;
|
|
396
439
|
interface SendTokensArgs {
|
|
397
440
|
signingClient?: SigningStargateClient | SigningCosmWasmClient;
|
|
398
441
|
senderAddress?: string;
|
|
@@ -471,8 +514,6 @@ declare const clearSession: () => void;
|
|
|
471
514
|
*/
|
|
472
515
|
declare const getWallet: (type?: WalletType) => Wallet;
|
|
473
516
|
declare const getAvailableWallets: () => Record<WalletType, boolean>;
|
|
474
|
-
declare const isLeapSnaps: (type: WalletType) => boolean;
|
|
475
|
-
declare const isLeapDappBrowser: () => boolean;
|
|
476
517
|
declare const isWalletConnect: (type: WalletType) => boolean;
|
|
477
518
|
declare const isPara: (type: WalletType) => type is WalletType.PARA;
|
|
478
519
|
|
|
@@ -593,38 +634,6 @@ declare const getCosmostation: () => Wallet;
|
|
|
593
634
|
*/
|
|
594
635
|
declare const getKeplr: () => Wallet;
|
|
595
636
|
|
|
596
|
-
/**
|
|
597
|
-
* Function to return Leap object (which is {@link Wallet}) and throws and error if it does not exist on `window`.
|
|
598
|
-
*
|
|
599
|
-
* @example
|
|
600
|
-
* ```ts
|
|
601
|
-
* try {
|
|
602
|
-
* const leap = getLeap();
|
|
603
|
-
* } catch (error: Error) {
|
|
604
|
-
* console.error(error.message);
|
|
605
|
-
* }
|
|
606
|
-
* ```
|
|
607
|
-
*
|
|
608
|
-
* @see https://docs.leapwallet.io/cosmos/for-dapps-connect-to-leap/add-leap-to-existing-keplr-integration
|
|
609
|
-
*/
|
|
610
|
-
declare const getLeap: () => Wallet;
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Function to return {@link Wallet} object and throws and error if it does not exist on `window`.
|
|
614
|
-
*
|
|
615
|
-
* @example
|
|
616
|
-
* ```ts
|
|
617
|
-
* try {
|
|
618
|
-
* const leapMetamaskSnap = getMetamaskSnapLeap();
|
|
619
|
-
* } catch (error: Error) {
|
|
620
|
-
* console.error(error.message);
|
|
621
|
-
* }
|
|
622
|
-
* ```
|
|
623
|
-
*
|
|
624
|
-
*
|
|
625
|
-
*/
|
|
626
|
-
declare const getMetamaskSnapLeap: () => Wallet;
|
|
627
|
-
|
|
628
637
|
/**
|
|
629
638
|
* Function to return okxwallet object (which is {@link Wallet}) and throws and error if it does not exist on `window`.
|
|
630
639
|
*
|
|
@@ -661,7 +670,7 @@ declare const getVectis: () => Wallet;
|
|
|
661
670
|
|
|
662
671
|
interface GetWalletConnectParams {
|
|
663
672
|
encoding: BufferEncoding;
|
|
664
|
-
walletType: WalletType.WC_KEPLR_MOBILE | WalletType.
|
|
673
|
+
walletType: WalletType.WC_KEPLR_MOBILE | WalletType.WC_COSMOSTATION_MOBILE | WalletType.WC_CLOT_MOBILE;
|
|
665
674
|
appUrl: {
|
|
666
675
|
mobile: {
|
|
667
676
|
ios: string;
|
|
@@ -677,8 +686,6 @@ declare const getWCCosmostation: () => Wallet;
|
|
|
677
686
|
|
|
678
687
|
declare const getWCKeplr: () => Wallet;
|
|
679
688
|
|
|
680
|
-
declare const getWCLeap: () => Wallet;
|
|
681
|
-
|
|
682
689
|
/**
|
|
683
690
|
* Helper function to define chain information records (key values).
|
|
684
691
|
*
|
|
@@ -790,6 +797,13 @@ interface UseAccountResult<TChainIds extends readonly string[] | undefined> {
|
|
|
790
797
|
status: string;
|
|
791
798
|
walletType?: WalletType;
|
|
792
799
|
}
|
|
800
|
+
type UseBalancesArgs = {
|
|
801
|
+
bech32Address: string | undefined;
|
|
802
|
+
chainId: string | undefined;
|
|
803
|
+
} & QueryConfig;
|
|
804
|
+
type UseBalanceArgs = UseBalancesArgs & {
|
|
805
|
+
denom: string | undefined;
|
|
806
|
+
};
|
|
793
807
|
/**
|
|
794
808
|
* graz query hook to retrieve account data with optional arguments to invoke
|
|
795
809
|
* given function on connect/disconnect.
|
|
@@ -847,10 +861,7 @@ declare function useAccount(args?: UseAccountArgs): UseAccountResult<undefined>;
|
|
|
847
861
|
* // Type: { data?: Coin[] }
|
|
848
862
|
* ```
|
|
849
863
|
*/
|
|
850
|
-
declare const useBalances: (args:
|
|
851
|
-
bech32Address: string;
|
|
852
|
-
chainId: string;
|
|
853
|
-
} & QueryConfig) => UseQueryResult<Coin[], unknown>;
|
|
864
|
+
declare const useBalances: (args: UseBalancesArgs) => UseQueryResult<Coin[], unknown>;
|
|
854
865
|
/**
|
|
855
866
|
* graz query hook to retrieve specific asset balance for a specific chain and address.
|
|
856
867
|
*
|
|
@@ -870,11 +881,7 @@ declare const useBalances: (args: {
|
|
|
870
881
|
* // Type: { data?: Coin | undefined }
|
|
871
882
|
* ```
|
|
872
883
|
*/
|
|
873
|
-
declare const useBalance: (args:
|
|
874
|
-
bech32Address: string;
|
|
875
|
-
chainId: string;
|
|
876
|
-
denom: string;
|
|
877
|
-
} & QueryConfig) => UseQueryResult<Coin | undefined, unknown>;
|
|
884
|
+
declare const useBalance: (args: UseBalanceArgs) => UseQueryResult<Coin | undefined, unknown>;
|
|
878
885
|
type UseConnectChainArgs = MutationEventArgs<ConnectArgs, ConnectResult>;
|
|
879
886
|
/**
|
|
880
887
|
* graz mutation hook to execute wallet connection with optional arguments to
|
|
@@ -1007,11 +1014,9 @@ declare function useOfflineSigners(args?: Record<string, never>): UseMultiChainQ
|
|
|
1007
1014
|
* // Type: { data?: Coin }
|
|
1008
1015
|
* ```
|
|
1009
1016
|
*/
|
|
1010
|
-
declare const useBalanceStaked: (args:
|
|
1011
|
-
bech32Address: string;
|
|
1012
|
-
chainId: string;
|
|
1013
|
-
} & QueryConfig) => UseQueryResult<Coin, unknown>;
|
|
1017
|
+
declare const useBalanceStaked: (args: UseBalancesArgs) => UseQueryResult<Coin | null, unknown>;
|
|
1014
1018
|
|
|
1019
|
+
type QueryValidatorsResponse = Awaited<ReturnType<StakingExtension["staking"]["validators"]>>;
|
|
1015
1020
|
/**
|
|
1016
1021
|
* graz hook to retrieve connected account's active chainIds
|
|
1017
1022
|
*
|
|
@@ -1077,8 +1082,8 @@ declare const useChainInfos: ({ chainId }?: {
|
|
|
1077
1082
|
* const { data: currency, ... } = useActiveChainCurrency({denom: "juno"});
|
|
1078
1083
|
* ```
|
|
1079
1084
|
*/
|
|
1080
|
-
declare const useActiveChainCurrency: ({ denom }: {
|
|
1081
|
-
denom: string;
|
|
1085
|
+
declare const useActiveChainCurrency: ({ denom, }: {
|
|
1086
|
+
denom: string | undefined;
|
|
1082
1087
|
}) => UseQueryResult<AppCurrency | undefined>;
|
|
1083
1088
|
/**
|
|
1084
1089
|
* graz hook to retrieve active chain validators with given query client and optional bond status
|
|
@@ -1095,7 +1100,7 @@ declare const useActiveChainCurrency: ({ denom }: {
|
|
|
1095
1100
|
* const { data: response, ... } = useActiveChainValidators(queryClient);
|
|
1096
1101
|
* ```
|
|
1097
1102
|
*/
|
|
1098
|
-
declare const useQueryClientValidators: <T extends QueryClient & StakingExtension>(args: {
|
|
1103
|
+
declare const useQueryClientValidators: <T extends QueryClient$1 & StakingExtension>(args: {
|
|
1099
1104
|
queryClient: T | undefined;
|
|
1100
1105
|
status?: BondStatusString;
|
|
1101
1106
|
}) => UseQueryResult<QueryValidatorsResponse>;
|
|
@@ -1323,6 +1328,228 @@ declare function useCosmWasmClient<const TChainIds extends readonly string[]>(ar
|
|
|
1323
1328
|
} & QueryConfig): UseMultiChainQueryResult<TChainIds, CosmWasmClient>;
|
|
1324
1329
|
declare function useCosmWasmClient(args?: QueryConfig): UseMultiChainQueryResult<undefined, CosmWasmClient>;
|
|
1325
1330
|
|
|
1331
|
+
/**
|
|
1332
|
+
* graz mutation hook to sign arbitrary data using the active wallet.
|
|
1333
|
+
*
|
|
1334
|
+
* @see {@link signArbitrary}
|
|
1335
|
+
*/
|
|
1336
|
+
declare const useSignArbitrary: ({ onError, onLoading, onSuccess, }?: MutationEventArgs<SignArbitraryArgs, StdSignature>) => {
|
|
1337
|
+
signArbitrary: _tanstack_react_query.UseMutateFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1338
|
+
signArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1339
|
+
data: undefined;
|
|
1340
|
+
variables: undefined;
|
|
1341
|
+
error: null;
|
|
1342
|
+
isError: false;
|
|
1343
|
+
isIdle: true;
|
|
1344
|
+
isPending: false;
|
|
1345
|
+
isSuccess: false;
|
|
1346
|
+
status: "idle";
|
|
1347
|
+
reset: () => void;
|
|
1348
|
+
context: unknown;
|
|
1349
|
+
failureCount: number;
|
|
1350
|
+
failureReason: Error | null;
|
|
1351
|
+
isPaused: boolean;
|
|
1352
|
+
submittedAt: number;
|
|
1353
|
+
} | {
|
|
1354
|
+
signArbitrary: _tanstack_react_query.UseMutateFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1355
|
+
signArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1356
|
+
data: undefined;
|
|
1357
|
+
variables: SignArbitraryArgs;
|
|
1358
|
+
error: null;
|
|
1359
|
+
isError: false;
|
|
1360
|
+
isIdle: false;
|
|
1361
|
+
isPending: true;
|
|
1362
|
+
isSuccess: false;
|
|
1363
|
+
status: "pending";
|
|
1364
|
+
reset: () => void;
|
|
1365
|
+
context: unknown;
|
|
1366
|
+
failureCount: number;
|
|
1367
|
+
failureReason: Error | null;
|
|
1368
|
+
isPaused: boolean;
|
|
1369
|
+
submittedAt: number;
|
|
1370
|
+
} | {
|
|
1371
|
+
signArbitrary: _tanstack_react_query.UseMutateFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1372
|
+
signArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1373
|
+
data: undefined;
|
|
1374
|
+
error: Error;
|
|
1375
|
+
variables: SignArbitraryArgs;
|
|
1376
|
+
isError: true;
|
|
1377
|
+
isIdle: false;
|
|
1378
|
+
isPending: false;
|
|
1379
|
+
isSuccess: false;
|
|
1380
|
+
status: "error";
|
|
1381
|
+
reset: () => void;
|
|
1382
|
+
context: unknown;
|
|
1383
|
+
failureCount: number;
|
|
1384
|
+
failureReason: Error | null;
|
|
1385
|
+
isPaused: boolean;
|
|
1386
|
+
submittedAt: number;
|
|
1387
|
+
} | {
|
|
1388
|
+
signArbitrary: _tanstack_react_query.UseMutateFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1389
|
+
signArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<StdSignature, Error, SignArbitraryArgs, unknown>;
|
|
1390
|
+
data: StdSignature;
|
|
1391
|
+
error: null;
|
|
1392
|
+
variables: SignArbitraryArgs;
|
|
1393
|
+
isError: false;
|
|
1394
|
+
isIdle: false;
|
|
1395
|
+
isPending: false;
|
|
1396
|
+
isSuccess: true;
|
|
1397
|
+
status: "success";
|
|
1398
|
+
reset: () => void;
|
|
1399
|
+
context: unknown;
|
|
1400
|
+
failureCount: number;
|
|
1401
|
+
failureReason: Error | null;
|
|
1402
|
+
isPaused: boolean;
|
|
1403
|
+
submittedAt: number;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* graz mutation hook to verify arbitrary data using the active wallet.
|
|
1407
|
+
*
|
|
1408
|
+
* @see {@link verifyArbitrary}
|
|
1409
|
+
*/
|
|
1410
|
+
declare const useVerifyArbitrary: ({ onError, onLoading, onSuccess, }?: MutationEventArgs<VerifyArbitraryArgs, boolean>) => {
|
|
1411
|
+
verifyArbitrary: _tanstack_react_query.UseMutateFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1412
|
+
verifyArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1413
|
+
data: undefined;
|
|
1414
|
+
variables: undefined;
|
|
1415
|
+
error: null;
|
|
1416
|
+
isError: false;
|
|
1417
|
+
isIdle: true;
|
|
1418
|
+
isPending: false;
|
|
1419
|
+
isSuccess: false;
|
|
1420
|
+
status: "idle";
|
|
1421
|
+
reset: () => void;
|
|
1422
|
+
context: unknown;
|
|
1423
|
+
failureCount: number;
|
|
1424
|
+
failureReason: Error | null;
|
|
1425
|
+
isPaused: boolean;
|
|
1426
|
+
submittedAt: number;
|
|
1427
|
+
} | {
|
|
1428
|
+
verifyArbitrary: _tanstack_react_query.UseMutateFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1429
|
+
verifyArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1430
|
+
data: undefined;
|
|
1431
|
+
variables: VerifyArbitraryArgs;
|
|
1432
|
+
error: null;
|
|
1433
|
+
isError: false;
|
|
1434
|
+
isIdle: false;
|
|
1435
|
+
isPending: true;
|
|
1436
|
+
isSuccess: false;
|
|
1437
|
+
status: "pending";
|
|
1438
|
+
reset: () => void;
|
|
1439
|
+
context: unknown;
|
|
1440
|
+
failureCount: number;
|
|
1441
|
+
failureReason: Error | null;
|
|
1442
|
+
isPaused: boolean;
|
|
1443
|
+
submittedAt: number;
|
|
1444
|
+
} | {
|
|
1445
|
+
verifyArbitrary: _tanstack_react_query.UseMutateFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1446
|
+
verifyArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1447
|
+
data: undefined;
|
|
1448
|
+
error: Error;
|
|
1449
|
+
variables: VerifyArbitraryArgs;
|
|
1450
|
+
isError: true;
|
|
1451
|
+
isIdle: false;
|
|
1452
|
+
isPending: false;
|
|
1453
|
+
isSuccess: false;
|
|
1454
|
+
status: "error";
|
|
1455
|
+
reset: () => void;
|
|
1456
|
+
context: unknown;
|
|
1457
|
+
failureCount: number;
|
|
1458
|
+
failureReason: Error | null;
|
|
1459
|
+
isPaused: boolean;
|
|
1460
|
+
submittedAt: number;
|
|
1461
|
+
} | {
|
|
1462
|
+
verifyArbitrary: _tanstack_react_query.UseMutateFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1463
|
+
verifyArbitraryAsync: _tanstack_react_query.UseMutateAsyncFunction<boolean, Error, VerifyArbitraryArgs, unknown>;
|
|
1464
|
+
data: boolean;
|
|
1465
|
+
error: null;
|
|
1466
|
+
variables: VerifyArbitraryArgs;
|
|
1467
|
+
isError: false;
|
|
1468
|
+
isIdle: false;
|
|
1469
|
+
isPending: false;
|
|
1470
|
+
isSuccess: true;
|
|
1471
|
+
status: "success";
|
|
1472
|
+
reset: () => void;
|
|
1473
|
+
context: unknown;
|
|
1474
|
+
failureCount: number;
|
|
1475
|
+
failureReason: Error | null;
|
|
1476
|
+
isPaused: boolean;
|
|
1477
|
+
submittedAt: number;
|
|
1478
|
+
};
|
|
1479
|
+
/**
|
|
1480
|
+
* graz mutation hook to sign and broadcast arbitrary encoded messages.
|
|
1481
|
+
*
|
|
1482
|
+
* @see {@link signAndBroadcast}
|
|
1483
|
+
*/
|
|
1484
|
+
declare const useSignAndBroadcast: ({ onError, onLoading, onSuccess, }?: MutationEventArgs<SignAndBroadcastArgs, DeliverTxResponse>) => {
|
|
1485
|
+
signAndBroadcast: _tanstack_react_query.UseMutateFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1486
|
+
signAndBroadcastAsync: _tanstack_react_query.UseMutateAsyncFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1487
|
+
data: undefined;
|
|
1488
|
+
variables: undefined;
|
|
1489
|
+
error: null;
|
|
1490
|
+
isError: false;
|
|
1491
|
+
isIdle: true;
|
|
1492
|
+
isPending: false;
|
|
1493
|
+
isSuccess: false;
|
|
1494
|
+
status: "idle";
|
|
1495
|
+
reset: () => void;
|
|
1496
|
+
context: unknown;
|
|
1497
|
+
failureCount: number;
|
|
1498
|
+
failureReason: Error | null;
|
|
1499
|
+
isPaused: boolean;
|
|
1500
|
+
submittedAt: number;
|
|
1501
|
+
} | {
|
|
1502
|
+
signAndBroadcast: _tanstack_react_query.UseMutateFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1503
|
+
signAndBroadcastAsync: _tanstack_react_query.UseMutateAsyncFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1504
|
+
data: undefined;
|
|
1505
|
+
variables: SignAndBroadcastArgs;
|
|
1506
|
+
error: null;
|
|
1507
|
+
isError: false;
|
|
1508
|
+
isIdle: false;
|
|
1509
|
+
isPending: true;
|
|
1510
|
+
isSuccess: false;
|
|
1511
|
+
status: "pending";
|
|
1512
|
+
reset: () => void;
|
|
1513
|
+
context: unknown;
|
|
1514
|
+
failureCount: number;
|
|
1515
|
+
failureReason: Error | null;
|
|
1516
|
+
isPaused: boolean;
|
|
1517
|
+
submittedAt: number;
|
|
1518
|
+
} | {
|
|
1519
|
+
signAndBroadcast: _tanstack_react_query.UseMutateFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1520
|
+
signAndBroadcastAsync: _tanstack_react_query.UseMutateAsyncFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1521
|
+
data: undefined;
|
|
1522
|
+
error: Error;
|
|
1523
|
+
variables: SignAndBroadcastArgs;
|
|
1524
|
+
isError: true;
|
|
1525
|
+
isIdle: false;
|
|
1526
|
+
isPending: false;
|
|
1527
|
+
isSuccess: false;
|
|
1528
|
+
status: "error";
|
|
1529
|
+
reset: () => void;
|
|
1530
|
+
context: unknown;
|
|
1531
|
+
failureCount: number;
|
|
1532
|
+
failureReason: Error | null;
|
|
1533
|
+
isPaused: boolean;
|
|
1534
|
+
submittedAt: number;
|
|
1535
|
+
} | {
|
|
1536
|
+
signAndBroadcast: _tanstack_react_query.UseMutateFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1537
|
+
signAndBroadcastAsync: _tanstack_react_query.UseMutateAsyncFunction<DeliverTxResponse, Error, SignAndBroadcastArgs, unknown>;
|
|
1538
|
+
data: DeliverTxResponse;
|
|
1539
|
+
error: null;
|
|
1540
|
+
variables: SignAndBroadcastArgs;
|
|
1541
|
+
isError: false;
|
|
1542
|
+
isIdle: false;
|
|
1543
|
+
isPending: false;
|
|
1544
|
+
isSuccess: true;
|
|
1545
|
+
status: "success";
|
|
1546
|
+
reset: () => void;
|
|
1547
|
+
context: unknown;
|
|
1548
|
+
failureCount: number;
|
|
1549
|
+
failureReason: Error | null;
|
|
1550
|
+
isPaused: boolean;
|
|
1551
|
+
submittedAt: number;
|
|
1552
|
+
};
|
|
1326
1553
|
/**
|
|
1327
1554
|
* graz mutation hook to send tokens.
|
|
1328
1555
|
*
|
|
@@ -1840,11 +2067,8 @@ declare const useActiveWalletType: () => {
|
|
|
1840
2067
|
isCosmostationMobile: boolean;
|
|
1841
2068
|
isKeplr: boolean;
|
|
1842
2069
|
isKeplrMobile: boolean;
|
|
1843
|
-
isLeap: boolean;
|
|
1844
|
-
isLeapMobile: boolean;
|
|
1845
2070
|
isVectis: boolean;
|
|
1846
2071
|
isWalletConnect: boolean;
|
|
1847
|
-
isMetamaskSnapLeap: boolean;
|
|
1848
2072
|
isStation: boolean;
|
|
1849
2073
|
isCosmiframe: boolean;
|
|
1850
2074
|
};
|
|
@@ -1875,7 +2099,7 @@ interface GrazProviderProps {
|
|
|
1875
2099
|
* // example next.js application in _app.tsx
|
|
1876
2100
|
* export default function CustomApp({ Component, pageProps }: AppProps) {
|
|
1877
2101
|
* return (
|
|
1878
|
-
* <QueryClientProvider
|
|
2102
|
+
* <QueryClientProvider client={queryClient}>
|
|
1879
2103
|
* <GrazProvider grazOptions={{
|
|
1880
2104
|
* chains: [cosmoshubChainInfo, osmosisChainInfo],
|
|
1881
2105
|
* logger: {
|
|
@@ -1896,7 +2120,7 @@ interface GrazProviderProps {
|
|
|
1896
2120
|
declare const GrazProvider: FC<GrazProviderProps>;
|
|
1897
2121
|
|
|
1898
2122
|
/**
|
|
1899
|
-
* Graz custom hook to track `keplr_keystorechange`, `
|
|
2123
|
+
* Graz custom hook to track `keplr_keystorechange`, `accountChanged` event and reconnect state
|
|
1900
2124
|
*
|
|
1901
2125
|
* **Note: only use this hook if not using graz's provider component.**
|
|
1902
2126
|
*/
|
|
@@ -1908,4 +2132,4 @@ declare const useGrazEvents: () => null;
|
|
|
1908
2132
|
*/
|
|
1909
2133
|
declare const GrazEvents: FC;
|
|
1910
2134
|
|
|
1911
|
-
export { type ActionChainId, type AddChainArgs, type CactusCosmosWallet, type ConfigureGrazArgs, type ConnectArgs, type ConnectResult, type Dictionary, type ErrorReporter, type ExecuteContractArgs, type ExecuteContractMutationArgs, GrazEvents, GrazProvider, type GrazProviderProps, type InstantiateContractArgs, type InstantiateContractMutationArgs, type Key, type KnownKeys, LOG_CATEGORIES, LOG_FUNCTIONS, LOG_HOOKS, LogCategory, LogLevel, type Logger, type LoggerOptions, type Maybe, type OfflineSigners, type ParaGrazConfig, 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, configureLogger, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getCactusCosmos, getChainInfo, getChainInfos, getCosmostation, getKeplr,
|
|
2135
|
+
export { type ActionChainId, type AddChainArgs, type CactusCosmosWallet, type ConfigureGrazArgs, type ConnectArgs, type ConnectResult, type Dictionary, type ErrorReporter, type ExecuteContractArgs, type ExecuteContractMutationArgs, GrazEvents, GrazProvider, type GrazProviderProps, type Height, type InstantiateContractArgs, type InstantiateContractMutationArgs, type Key, type KnownKeys, LOG_CATEGORIES, LOG_FUNCTIONS, LOG_HOOKS, LogCategory, LogLevel, type Logger, type LoggerOptions, type Maybe, type OfflineSigners, type ParaGrazConfig, type ParaGrazConnector, type ParaGrazConnectorEvents, type ParaModalProps, type ParaWallet, type ReconnectArgs, type SendIbcTokensArgs, type SendTokensArgs, type SignAminoParams, type SignAndBroadcastArgs, type SignArbitraryArgs, type SignDirectParams, type SignDoc, type SuggestChainAndConnectArgs, type SuggestChainArgs, type UseAccountArgs, type UseAccountResult, type UseAddChainArgs, type UseConnectChainArgs, type UseExecuteContractArgs, type UseInstantiateContractArgs, type UseSuggestChainAndConnectArgs, type UseSuggestChainArgs, type VerifyArbitraryArgs, WALLET_TYPES, type Wallet, WalletType, addChain, checkWallet, clearRecentChain, clearSession, configureGraz, configureLogger, connect, defineChainInfo, defineChains, disconnect, executeContract, getAvailableWallets, getCactusCosmos, getChainInfo, getChainInfos, getCosmostation, getKeplr, getLogger, getOfflineSigners, getOkx, getPara, getQueryRaw, getQuerySmart, getRecentChainIds, getRecentChains, getVectis, getWCCosmostation, getWCKeplr, getWallet, getWalletConnect, instantiateContract, isPara, isWalletConnect, reconnect, sendIbcTokens, sendTokens, signAndBroadcast, signArbitrary, 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, useSignAndBroadcast, useSignArbitrary, useStargateClient, useStargateSigningClient, useSuggestChain, useSuggestChainAndConnect, useVerifyArbitrary, verifyArbitrary };
|