graz 0.0.41 → 0.0.42-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/constant.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-V3YUCPIG.mjs";export{a as RECONNECT_SESSION_KEY};
1
+ import{c as a}from"./chunk-HBC2VYPF.mjs";export{a as RECONNECT_SESSION_KEY};
package/dist/cosmjs.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  export * from '@cosmjs/cosmwasm-stargate';
2
2
  export * from '@cosmjs/proto-signing';
3
3
  export * from '@cosmjs/stargate';
4
+ import '@keplr-wallet/cosmos';
5
+ import '@keplr-wallet/types';
6
+ import '@cosmjs/tendermint-rpc';
package/dist/index.d.ts CHANGED
@@ -98,64 +98,6 @@ declare const defineChain: <T extends GrazChain>(chain: T) => T;
98
98
  * ```
99
99
  */
100
100
  declare const defineChainInfo: <T extends ChainInfoWithPath | ChainInfo>(chain: T) => T;
101
- /**
102
- * Provided mainnet chains
103
- *
104
- * @example
105
- * ```ts
106
- * import { connect, mainnetChains } from "graz";
107
- * connect(mainnetChains.cosmos);
108
- * ```
109
- *
110
- * Try graz cli to generate ChainInfo from https://cosmos.directory/
111
- * @see https://graz.strange.love/docs/generate-chain-info
112
- *
113
- * @see {@link testnetChains}
114
- */
115
- declare const mainnetChains: {
116
- axelar: ChainInfo;
117
- cosmoshub: ChainInfo;
118
- juno: ChainInfo;
119
- osmosis: ChainInfo;
120
- sommelier: ChainInfo;
121
- };
122
- /**
123
- * Arary version on {@link mainnetChains}
124
- *
125
- * Try graz cli to generate ChainInfo from https://cosmos.directory/
126
- * @see https://graz.strange.love/docs/generate-chain-info
127
- *
128
- * @see {@link mainnetChains}
129
- */
130
- declare const mainnetChainsArray: ChainInfo[];
131
- /**
132
- * Provided testnet chains
133
- *
134
- * @example
135
- * ```ts
136
- * import { connect, testnetChains } from "graz";
137
- * connect(testnetChains.osmosis);
138
- * ```
139
- *
140
- * Try graz cli to generate ChainInfo from https://cosmos.directory/
141
- * @see https://graz.strange.love/docs/generate-chain-info
142
- *
143
- * @see {@link mainnetChains}
144
- */
145
- declare const testnetChains: {
146
- crescent: ChainInfo;
147
- juno: ChainInfo;
148
- osmosis: ChainInfo;
149
- };
150
- /**
151
- * Arary version on {@link testnetChains}
152
- *
153
- * Try graz cli to generate ChainInfo from https://cosmos.directory/
154
- * @see https://graz.strange.love/docs/generate-chain-info
155
- *
156
- * @see {@link testnetChains}
157
- */
158
- declare const testnetChainsArray: ChainInfo[];
159
101
 
160
102
  declare enum WalletType {
161
103
  KEPLR = "keplr",
@@ -986,4 +928,588 @@ declare const useGrazEvents: () => null;
986
928
  */
987
929
  declare const GrazEvents: FC;
988
930
 
989
- export { AccountData, ChainInfoWithPath, ConfigureGrazArgs, ConnectArgs, ConnectResult, Connector, CreateClientArgs, CreateQueryClient, CreateSigningClientArgs, Dictionary, ExecuteContractArgs, ExecuteContractMutationArgs, GrazAdapter, GrazChain, GrazEvents, GrazProvider, GrazProviderProps, InstantiateContractArgs, InstantiateContractMutationArgs, Maybe, ReconnectArgs, SendIbcTokensArgs, SendTokensArgs, SuggestChainAndConnectArgs, UseAccountArgs, UseConnectChainArgs, UseExecuteContractArgs, UseInstantiateContractArgs, UseQueryClient, UseSuggestChainAndConnectArgs, UseSuggestChainArgs, WALLET_TYPES, WalletType, checkWallet, clearRecentChain, configureGraz, connect, createClients, createQueryClient, createSigningClients, defineChain, defineChainInfo, defineChains, disconnect, executeContract, getActiveChainCurrency, getAvailableWallets, getBalanceStaked, getBalances, getCosmostation, getKeplr, getLeap, getQueryRaw, getQuerySmart, getRecentChain, getWallet, instantiateContract, mainnetChains, mainnetChainsArray, reconnect, sendIbcTokens, sendTokens, suggestChain, suggestChainAndConnect, testnetChains, testnetChainsArray, useAccount, useActiveChain, useActiveChainCurrency, useActiveChainValidators, useBalance, useBalanceStaked, useBalances, useCheckWallet, useClients, useConnect, useDisconnect, useExecuteContract, useGrazEvents, useInstantiateContract, useOfflineSigners, useQueryClient, useQueryRaw, useQuerySmart, useRecentChain, useSendIbcTokens, useSendTokens, useSigners, useSigningClients, useSuggestChain, useSuggestChainAndConnect };
931
+ /**
932
+ * Asset lists are a similar mechanism to allow frontends and other UIs to fetch metadata
933
+ * associated with Cosmos SDK denoms, especially for assets sent over IBC.
934
+ */
935
+ interface AssetList {
936
+ $schema?: string;
937
+ assets: Asset[];
938
+ chain_name: string;
939
+ }
940
+ interface Asset {
941
+ /**
942
+ * [OPTIONAL] The address of the asset. Only required for type_asset : cw20, snip20
943
+ */
944
+ address?: string;
945
+ /**
946
+ * The base unit of the asset. Must be in denom_units.
947
+ */
948
+ base: string;
949
+ /**
950
+ * [OPTIONAL] The coingecko id to fetch asset data from coingecko v3 api. See
951
+ * https://api.coingecko.com/api/v3/coins/list
952
+ */
953
+ coingecko_id?: string;
954
+ denom_units: DenomUnit[];
955
+ /**
956
+ * [OPTIONAL] A short description of the asset
957
+ */
958
+ description?: string;
959
+ /**
960
+ * The human friendly unit of the asset. Must be in denom_units.
961
+ */
962
+ display: string;
963
+ /**
964
+ * [OPTIONAL] IBC Channel between src and dst between chain
965
+ */
966
+ ibc?: Ibc;
967
+ images?: AssetImage[];
968
+ keywords?: string[];
969
+ logo_URIs?: AssetLogoURIs;
970
+ /**
971
+ * The project name of the asset. For example Bitcoin.
972
+ */
973
+ name: string;
974
+ /**
975
+ * The symbol of an asset. For example BTC.
976
+ */
977
+ symbol: string;
978
+ /**
979
+ * The origin of the asset, starting with the index, and capturing all transitions in form
980
+ * and location.
981
+ */
982
+ traces?: Trace[];
983
+ /**
984
+ * [OPTIONAL] The potential options for type of asset. By default, assumes sdk.coin
985
+ */
986
+ type_asset?: TypeAsset;
987
+ }
988
+ interface DenomUnit {
989
+ aliases?: string[];
990
+ denom: string;
991
+ exponent: number;
992
+ }
993
+ /**
994
+ * [OPTIONAL] IBC Channel between src and dst between chain
995
+ */
996
+ interface Ibc {
997
+ dst_channel: string;
998
+ source_channel: string;
999
+ source_denom: string;
1000
+ }
1001
+ interface AssetImage {
1002
+ png?: string;
1003
+ svg?: string;
1004
+ theme?: Theme;
1005
+ }
1006
+ interface Theme {
1007
+ primary_color_hex?: string;
1008
+ }
1009
+ interface AssetLogoURIs {
1010
+ png?: string;
1011
+ svg?: string;
1012
+ }
1013
+ interface Trace {
1014
+ chain?: TraceChain;
1015
+ counterparty: Counterparty;
1016
+ /**
1017
+ * The entity offering the service. E.g., 'Gravity Bridge' [Network] or 'Tether' [Company].
1018
+ */
1019
+ provider?: string;
1020
+ type: TraceType;
1021
+ }
1022
+ interface TraceChain {
1023
+ /**
1024
+ * The chain's IBC transfer channel(, e.g., 'channel-1').
1025
+ */
1026
+ channel_id?: string;
1027
+ /**
1028
+ * The contract address where the transition takes place, where applicable. E.g., The
1029
+ * Ethereum contract that locks up the asset while it's minted on another chain.
1030
+ */
1031
+ contract?: string;
1032
+ /**
1033
+ * The port/channel/denom input string that generates the 'ibc/...' denom.
1034
+ */
1035
+ path?: string;
1036
+ /**
1037
+ * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for
1038
+ * outgoing cw20 transfers.
1039
+ */
1040
+ port?: string;
1041
+ }
1042
+ interface Counterparty {
1043
+ /**
1044
+ * The base unit of the asset on its source platform. E.g., when describing ATOM from Cosmos
1045
+ * Hub, specify 'uatom', NOT 'atom' nor 'ATOM'; base units are unique per platform.
1046
+ */
1047
+ base_denom: string;
1048
+ /**
1049
+ * The name of the counterparty chain. (must match exactly the chain name used in the Chain
1050
+ * Registry)
1051
+ *
1052
+ * The chain or platform from which the asset originates. E.g., 'cosmoshub', 'ethereum',
1053
+ * 'forex', or 'nasdaq'
1054
+ */
1055
+ chain_name: string;
1056
+ /**
1057
+ * The counterparty IBC transfer channel(, e.g., 'channel-1').
1058
+ */
1059
+ channel_id?: string;
1060
+ /**
1061
+ * The contract address where the transition takes place, where applicable. E.g., The
1062
+ * Ethereum contract that locks up the asset while it's minted on another chain.
1063
+ */
1064
+ contract?: string;
1065
+ /**
1066
+ * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for
1067
+ * outgoing cw20 transfers.
1068
+ */
1069
+ port?: string;
1070
+ }
1071
+ declare enum TraceType {
1072
+ Bridge = "bridge",
1073
+ Ibc = "ibc",
1074
+ IbcCw20 = "ibc-cw20",
1075
+ LiquidStake = "liquid-stake",
1076
+ Synthetic = "synthetic",
1077
+ Wrapped = "wrapped"
1078
+ }
1079
+ /**
1080
+ * [OPTIONAL] The potential options for type of asset. By default, assumes sdk.coin
1081
+ */
1082
+ declare enum TypeAsset {
1083
+ Cw20 = "cw20",
1084
+ Erc20 = "erc20",
1085
+ Ics20 = "ics20",
1086
+ SDKCoin = "sdk.coin",
1087
+ Snip20 = "snip20",
1088
+ Snip25 = "snip25"
1089
+ }
1090
+ /**
1091
+ * Cosmos Chain.json is a metadata file that contains information about a cosmos sdk based
1092
+ * chain.
1093
+ */
1094
+ interface Chain {
1095
+ $schema?: string;
1096
+ alternative_slip44s?: number[];
1097
+ apis?: Apis;
1098
+ /**
1099
+ * Used to override the bech32_prefix for specific uses.
1100
+ */
1101
+ bech32_config?: Bech32Config;
1102
+ /**
1103
+ * The default prefix for the human-readable part of addresses that identifies the coin
1104
+ * type. Must be registered with SLIP-0173. E.g., 'cosmos'
1105
+ */
1106
+ bech32_prefix: string;
1107
+ chain_id: string;
1108
+ chain_name: string;
1109
+ codebase?: Codebase;
1110
+ daemon_name?: string;
1111
+ explorers?: Explorer[];
1112
+ extra_codecs?: ExtraCodec[];
1113
+ fees?: Fees;
1114
+ images?: ChainImage[];
1115
+ key_algos?: KeyAlgo[];
1116
+ keywords?: string[];
1117
+ logo_URIs?: ChainLogoURIs;
1118
+ network_type?: NetworkType;
1119
+ node_home?: string;
1120
+ peers?: Peers;
1121
+ pretty_name?: string;
1122
+ slip44?: number;
1123
+ staking?: Staking;
1124
+ status?: Status;
1125
+ update_link?: string;
1126
+ website?: string;
1127
+ }
1128
+ interface Apis {
1129
+ "evm-http-jsonrpc"?: Api[];
1130
+ grpc?: Api[];
1131
+ "grpc-web"?: Api[];
1132
+ rest?: Api[];
1133
+ rpc?: Api[];
1134
+ wss?: Api[];
1135
+ }
1136
+ interface Api {
1137
+ address: string;
1138
+ archive?: boolean;
1139
+ provider?: string;
1140
+ }
1141
+ /**
1142
+ * Used to override the bech32_prefix for specific uses.
1143
+ */
1144
+ interface Bech32Config {
1145
+ /**
1146
+ * e.g., 'cosmos'
1147
+ */
1148
+ bech32PrefixAccAddr?: string;
1149
+ /**
1150
+ * e.g., 'cosmospub'
1151
+ */
1152
+ bech32PrefixAccPub?: string;
1153
+ /**
1154
+ * e.g., 'cosmosvalcons'
1155
+ */
1156
+ bech32PrefixConsAddr?: string;
1157
+ /**
1158
+ * e.g., 'cosmosvalconspub'
1159
+ */
1160
+ bech32PrefixConsPub?: string;
1161
+ /**
1162
+ * e.g., 'cosmosvaloper'
1163
+ */
1164
+ bech32PrefixValAddr?: string;
1165
+ /**
1166
+ * e.g., 'cosmosvaloperpub'
1167
+ */
1168
+ bech32PrefixValPub?: string;
1169
+ }
1170
+ interface Codebase {
1171
+ binaries?: CodebaseBinaries;
1172
+ compatible_versions?: string[];
1173
+ consensus?: CodebaseConsensus;
1174
+ cosmos_sdk_version?: string;
1175
+ cosmwasm_enabled?: boolean;
1176
+ /**
1177
+ * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm
1178
+ */
1179
+ cosmwasm_path?: string;
1180
+ cosmwasm_version?: string;
1181
+ genesis?: Genesis;
1182
+ git_repo?: string;
1183
+ ibc_go_version?: string;
1184
+ /**
1185
+ * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the
1186
+ * network.
1187
+ */
1188
+ ics_enabled?: ICSEnabled[];
1189
+ recommended_version?: string;
1190
+ versions?: Version[];
1191
+ }
1192
+ interface CodebaseBinaries {
1193
+ "darwin/amd64"?: string;
1194
+ "darwin/arm64"?: string;
1195
+ "linux/amd64"?: string;
1196
+ "linux/arm64"?: string;
1197
+ "windows/amd64"?: string;
1198
+ }
1199
+ interface CodebaseConsensus {
1200
+ type: ConsensusType;
1201
+ version?: string;
1202
+ }
1203
+ declare enum ConsensusType {
1204
+ Cometbft = "cometbft",
1205
+ Tendermint = "tendermint"
1206
+ }
1207
+ interface Genesis {
1208
+ genesis_url: string;
1209
+ name?: string;
1210
+ }
1211
+ /**
1212
+ * IBC app or ICS standard.
1213
+ */
1214
+ declare enum ICSEnabled {
1215
+ Ics201 = "ics20-1",
1216
+ Ics271 = "ics27-1",
1217
+ Mauth = "mauth"
1218
+ }
1219
+ interface Version {
1220
+ binaries?: VersionBinaries;
1221
+ compatible_versions?: string[];
1222
+ consensus?: VersionConsensus;
1223
+ cosmos_sdk_version?: string;
1224
+ cosmwasm_enabled?: boolean;
1225
+ /**
1226
+ * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm
1227
+ */
1228
+ cosmwasm_path?: string;
1229
+ cosmwasm_version?: string;
1230
+ /**
1231
+ * Block Height
1232
+ */
1233
+ height?: number;
1234
+ ibc_go_version?: string;
1235
+ /**
1236
+ * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the
1237
+ * network.
1238
+ */
1239
+ ics_enabled?: ICSEnabled[];
1240
+ /**
1241
+ * Official Upgrade Name
1242
+ */
1243
+ name: string;
1244
+ /**
1245
+ * [Optional] Name of the following version
1246
+ */
1247
+ next_version_name?: string;
1248
+ /**
1249
+ * Proposal that will officially signal community acceptance of the upgrade.
1250
+ */
1251
+ proposal?: number;
1252
+ recommended_version?: string;
1253
+ /**
1254
+ * Git Upgrade Tag
1255
+ */
1256
+ tag?: string;
1257
+ }
1258
+ interface VersionBinaries {
1259
+ "darwin/amd64"?: string;
1260
+ "darwin/arm64"?: string;
1261
+ "linux/amd64"?: string;
1262
+ "linux/arm64"?: string;
1263
+ "windows/amd64"?: string;
1264
+ }
1265
+ interface VersionConsensus {
1266
+ type: ConsensusType;
1267
+ version?: string;
1268
+ }
1269
+ interface Explorer {
1270
+ account_page?: string;
1271
+ kind?: string;
1272
+ tx_page?: string;
1273
+ url?: string;
1274
+ }
1275
+ declare enum ExtraCodec {
1276
+ Ethermint = "ethermint",
1277
+ Injective = "injective"
1278
+ }
1279
+ interface Fees {
1280
+ fee_tokens: FeeToken[];
1281
+ }
1282
+ interface FeeToken {
1283
+ average_gas_price?: number;
1284
+ denom: string;
1285
+ fixed_min_gas_price?: number;
1286
+ gas_costs?: GasCosts;
1287
+ high_gas_price?: number;
1288
+ low_gas_price?: number;
1289
+ }
1290
+ interface GasCosts {
1291
+ cosmos_send?: number;
1292
+ ibc_transfer?: number;
1293
+ }
1294
+ interface ChainImage {
1295
+ png?: string;
1296
+ svg?: string;
1297
+ theme?: Theme;
1298
+ }
1299
+ declare enum KeyAlgo {
1300
+ Ed25519 = "ed25519",
1301
+ Ethsecp256K1 = "ethsecp256k1",
1302
+ Secp256K1 = "secp256k1",
1303
+ Sr25519 = "sr25519"
1304
+ }
1305
+ interface ChainLogoURIs {
1306
+ png?: string;
1307
+ svg?: string;
1308
+ }
1309
+ declare enum NetworkType {
1310
+ Devnet = "devnet",
1311
+ Mainnet = "mainnet",
1312
+ Testnet = "testnet"
1313
+ }
1314
+ interface Peers {
1315
+ persistent_peers?: PersistentPeer[];
1316
+ seeds?: PersistentPeer[];
1317
+ }
1318
+ interface PersistentPeer {
1319
+ address: string;
1320
+ id: string;
1321
+ provider?: string;
1322
+ }
1323
+ interface Staking {
1324
+ lock_duration?: LockDuration;
1325
+ staking_tokens: StakingToken[];
1326
+ }
1327
+ interface LockDuration {
1328
+ /**
1329
+ * The number of blocks for which the staked tokens are locked.
1330
+ */
1331
+ blocks?: number;
1332
+ /**
1333
+ * The approximate time for which the staked tokens are locked.
1334
+ */
1335
+ time?: string;
1336
+ }
1337
+ interface StakingToken {
1338
+ denom: string;
1339
+ }
1340
+ declare enum Status {
1341
+ Killed = "killed",
1342
+ Live = "live",
1343
+ Upcoming = "upcoming"
1344
+ }
1345
+ interface IbcDataSchema {
1346
+ $schema?: string;
1347
+ chain_1: IbcDataSchemaChain;
1348
+ chain_2: IbcDataSchemaChain;
1349
+ channels: Channel[];
1350
+ }
1351
+ /**
1352
+ * Top level IBC data pertaining to the chain. `chain_1` and `chain_2` should be in
1353
+ * alphabetical order.
1354
+ */
1355
+ interface IbcDataSchemaChain {
1356
+ chain_name: string;
1357
+ /**
1358
+ * The client ID on the corresponding chain representing the other chain's light client.
1359
+ */
1360
+ client_id: string;
1361
+ /**
1362
+ * The connection ID on the corresponding chain representing a connection to the other chain.
1363
+ */
1364
+ connection_id: string;
1365
+ }
1366
+ interface Channel {
1367
+ chain_1: ChannelChain;
1368
+ chain_2: ChannelChain;
1369
+ /**
1370
+ * Human readable description of the channel.
1371
+ */
1372
+ description?: string;
1373
+ /**
1374
+ * Determines if packets from a sending module must be 'ordered' or 'unordered'.
1375
+ */
1376
+ ordering: Ordering;
1377
+ /**
1378
+ * Human readable key:value pairs that help describe and distinguish channels.
1379
+ */
1380
+ tags?: Tags;
1381
+ /**
1382
+ * IBC Version
1383
+ */
1384
+ version: string;
1385
+ }
1386
+ interface ChannelChain {
1387
+ /**
1388
+ * The channel ID on the corresponding chain's connection representing a channel on the
1389
+ * other chain.
1390
+ */
1391
+ channel_id: string;
1392
+ /**
1393
+ * The IBC port ID which a relevant module binds to on the corresponding chain.
1394
+ */
1395
+ port_id: string;
1396
+ }
1397
+ /**
1398
+ * Determines if packets from a sending module must be 'ordered' or 'unordered'.
1399
+ */
1400
+ declare enum Ordering {
1401
+ Ordered = "ordered",
1402
+ Unordered = "unordered"
1403
+ }
1404
+ /**
1405
+ * Human readable key:value pairs that help describe and distinguish channels.
1406
+ */
1407
+ interface Tags {
1408
+ dex?: string;
1409
+ preferred?: boolean;
1410
+ /**
1411
+ * String that helps describe non-dex use cases ex: interchain accounts(ICA).
1412
+ */
1413
+ properties?: string;
1414
+ status?: Status;
1415
+ [property: string]: any;
1416
+ }
1417
+ interface MemoKeysSchema {
1418
+ $schema?: string;
1419
+ memo_keys: MemoKey[];
1420
+ }
1421
+ interface MemoKey {
1422
+ description: string;
1423
+ git_repo: string;
1424
+ key: string;
1425
+ memo: Record<string, any>;
1426
+ [property: string]: any;
1427
+ }
1428
+
1429
+ /**
1430
+ * Helper function to define chain.
1431
+ *
1432
+ * This function does not do anything special else than providing type safety
1433
+ * when defining chain information.
1434
+ *
1435
+ * @example
1436
+ * ```ts
1437
+ * import { defineAsset } from "graz";
1438
+ *
1439
+ * const atom = defineAsset({
1440
+ * base: "uatom",
1441
+ * display: "atom",
1442
+ * symbol: "ATOM",
1443
+ * ...
1444
+ * });
1445
+ * ```
1446
+ */
1447
+ declare const defineAsset: <T extends Asset>(asset: T) => T;
1448
+ /**
1449
+ * Helper function to define chains asset list.
1450
+ *
1451
+ * This function does not do anything special else than providing type safety
1452
+ * when defining chain information.
1453
+ *
1454
+ * @example
1455
+ * ```ts
1456
+ * import { defineAssetList } from "graz";
1457
+ *
1458
+ * const assetlist = defineAssetList({
1459
+ * chain_name: "cosmoshub",
1460
+ * assets: [...]
1461
+ * });
1462
+ * ```
1463
+ */
1464
+ declare const defineAssetList: <T extends AssetList>(assetlist: T) => T;
1465
+ /**
1466
+ * Helper function to define chain with registry compliant type.
1467
+ *
1468
+ * This function does not do anything special else than providing type safety
1469
+ * when defining chain information.
1470
+ *
1471
+ * @example
1472
+ * ```ts
1473
+ * import { defineRegistryChain } from "graz";
1474
+ *
1475
+ * const cosmoshub = defineRegistryChain({
1476
+ * chain_name: "cosmoshub",
1477
+ * chain_id: "cosmoshub-4",
1478
+ * ...
1479
+ * });
1480
+ * ```
1481
+ */
1482
+ declare const defineRegistryChain: <T extends Chain>(chain: T) => T;
1483
+
1484
+ /**
1485
+ * Function to convert chain object from registry to Keplr's {@link ChainInfo} object.
1486
+ *
1487
+ * Note that every chain generated in `graz/chains` already has {@link ChainInfo}.
1488
+ * (e.g. `import chainInfo from "graz/chains/cosmoshub"`).
1489
+ *
1490
+ * @example
1491
+ * ```ts
1492
+ * import { registryToChainInfo } from "graz";
1493
+ *
1494
+ * import chain from "graz/chains/cosmoshub/chain";
1495
+ * import assetlist from "graz/chains/cosmoshub/assetlist";
1496
+ *
1497
+ * const chainInfo = registryToChainInfo({ chain, assetlist });
1498
+ * const chainInfoFromAsset = registryToChainInfo({ chain, assets: assetlist.assets });
1499
+ * ```
1500
+ *
1501
+ */
1502
+ declare const registryToChainInfo: (args: RegistryToChainInfoArgs) => ChainInfo;
1503
+ type MapEndpointGetters<T extends string> = Record<`get${Capitalize<T>}Endpoint`, (chain: Chain) => string>;
1504
+ type RegistryToChainInfoArgs = Partial<MapEndpointGetters<"rpc" | "rest">> & ({
1505
+ chain: Chain;
1506
+ assetlists: AssetList[];
1507
+ } | {
1508
+ chain: Chain;
1509
+ assetlist: AssetList;
1510
+ } | {
1511
+ chain: Chain;
1512
+ assets: Asset[];
1513
+ });
1514
+
1515
+ export { AccountData, Api, Apis, Asset, AssetImage, AssetList, AssetLogoURIs, Bech32Config, Chain, ChainImage, ChainInfoWithPath, ChainLogoURIs, Channel, ChannelChain, Codebase, CodebaseBinaries, CodebaseConsensus, ConfigureGrazArgs, ConnectArgs, ConnectResult, Connector, ConsensusType, Counterparty, CreateClientArgs, CreateQueryClient, CreateSigningClientArgs, DenomUnit, Dictionary, ExecuteContractArgs, ExecuteContractMutationArgs, Explorer, ExtraCodec, FeeToken, Fees, GasCosts, Genesis, GrazAdapter, GrazChain, GrazEvents, GrazProvider, GrazProviderProps, ICSEnabled, Ibc, IbcDataSchema, IbcDataSchemaChain, InstantiateContractArgs, InstantiateContractMutationArgs, KeyAlgo, LockDuration, Maybe, MemoKey, MemoKeysSchema, NetworkType, Ordering, Peers, PersistentPeer, ReconnectArgs, SendIbcTokensArgs, SendTokensArgs, Staking, StakingToken, Status, SuggestChainAndConnectArgs, Tags, Theme, Trace, TraceChain, TraceType, TypeAsset, UseAccountArgs, UseConnectChainArgs, UseExecuteContractArgs, UseInstantiateContractArgs, UseQueryClient, UseSuggestChainAndConnectArgs, UseSuggestChainArgs, Version, VersionBinaries, VersionConsensus, WALLET_TYPES, WalletType, checkWallet, clearRecentChain, configureGraz, connect, createClients, createQueryClient, createSigningClients, defineAsset, defineAssetList, defineChain, defineChainInfo, defineChains, defineRegistryChain, disconnect, executeContract, getActiveChainCurrency, getAvailableWallets, getBalanceStaked, getBalances, getCosmostation, getKeplr, getLeap, getQueryRaw, getQuerySmart, getRecentChain, getWallet, instantiateContract, reconnect, registryToChainInfo, sendIbcTokens, sendTokens, suggestChain, suggestChainAndConnect, useAccount, useActiveChain, useActiveChainCurrency, useActiveChainValidators, useBalance, useBalanceStaked, useBalances, useCheckWallet, useClients, useConnect, useDisconnect, useExecuteContract, useGrazEvents, useInstantiateContract, useOfflineSigners, useQueryClient, useQueryRaw, useQuerySmart, useRecentChain, useSendIbcTokens, useSendTokens, useSigners, useSigningClients, useSuggestChain, useSuggestChainAndConnect };