@zoralabs/coins-sdk 0.0.2-sdkalpha.3 → 0.0.2-sdkalpha.5

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +490 -18
  3. package/dist/actions/getOnchainCoinDetails.d.ts +3 -2
  4. package/dist/actions/getOnchainCoinDetails.d.ts.map +1 -1
  5. package/dist/api/api-key.d.ts +9 -0
  6. package/dist/api/api-key.d.ts.map +1 -0
  7. package/dist/api/explore.d.ts +347 -0
  8. package/dist/api/explore.d.ts.map +1 -0
  9. package/dist/api/index.d.ts +4 -0
  10. package/dist/api/index.d.ts.map +1 -0
  11. package/dist/api/queries.d.ts +345 -0
  12. package/dist/api/queries.d.ts.map +1 -0
  13. package/dist/client/sdk.gen.d.ts +239 -26
  14. package/dist/client/sdk.gen.d.ts.map +1 -1
  15. package/dist/client/types.gen.d.ts +349 -28
  16. package/dist/client/types.gen.d.ts.map +1 -1
  17. package/dist/index.cjs +107 -42
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.ts +6 -5
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +97 -45
  22. package/dist/index.js.map +1 -1
  23. package/dist/utils/genericPublicClient.d.ts +3 -0
  24. package/dist/utils/genericPublicClient.d.ts.map +1 -0
  25. package/dist/utils/validateClientNetwork.d.ts +1 -1
  26. package/dist/utils/validateClientNetwork.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/src/actions/getOnchainCoinDetails.ts +2 -2
  29. package/src/api/api-key.ts +15 -0
  30. package/src/api/explore.ts +55 -0
  31. package/src/api/index.ts +8 -0
  32. package/src/api/queries.ts +62 -0
  33. package/src/client/sdk.gen.ts +109 -32
  34. package/src/client/types.gen.ts +519 -178
  35. package/src/index.ts +19 -6
  36. package/src/utils/genericPublicClient.ts +5 -0
  37. package/src/utils/validateClientNetwork.ts +16 -12
  38. package/dist/client/explore.d.ts +0 -271
  39. package/dist/client/explore.d.ts.map +0 -1
  40. package/src/client/explore.ts +0 -55
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zoralabs/coins-sdk
2
2
 
3
+ ## 0.0.2-sdkalpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Release API changes
8
+
9
+ ## 0.0.2-sdkalpha.4
10
+
11
+ ### Patch Changes
12
+
13
+ - d8cbf6ea: Update coin sdk structure and offchain functions
14
+
3
15
  ## 0.0.2-sdkalpha.3
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -6,25 +6,41 @@ This SDK is based off of viem v2 and exposes both functions to get the viem call
6
6
 
7
7
  Devs can input their addresses in `platformReferrer` and `traderReferrer` fields to earn trade and create referral fees for their platform.
8
8
 
9
- This prerelease SDK has 3 core features: `createCoin`, `tradeCoin`, and `getCoinDetails`.
9
+ This prerelease SDK has two main categories of functionality: Onchain Actions and Queries.
10
10
 
11
- 1. `getCoinDetails`: Gets details for the given coin. This function retrieves the current state of a coin for a user, including balance, pool address, pool state, owners, and payout recipient.
11
+ All the SDK functions are accessible from the main export (for example: `import {createCoin, getCoin} from "@zoralabs/coins-sdk"`).
12
12
 
13
- **Key Parameters:**
14
- - `coin`: The coin contract address.
15
- - `user`: The user address to check balance for. (Optional)
16
- - `publicClient`: The viem public client instance.
13
+ ## Table of Contents
17
14
 
18
- **Return Value:**
19
- - `balance`: The user's balance of the coin.
20
- - `marketCap`: The market cap of the coin.
21
- - `liquidity`: The liquidity of the coin.
22
- - `pool`: Pool address.
23
- - `poolState`: Current state of the UniswapV3 pool.
24
- - `owners`: List of owners for the coin.
25
- - `payoutRecipient`: The payout recipient address.
15
+ ### Onchain Actions
16
+ - [createCoin](#1-createcoin-creates-a-new-coin-with-the-given-parameters-to-trade)
17
+ - [tradeCoin](#2-tradecoin-buys-or-sells-an-existing-coin)
18
+ - [updateCoinURI](#3-updatecoinuri-updates-the-uri-for-an-existing-coin)
19
+
20
+ ### Queries
21
+ - [On chain queries](#onchain-queries)
22
+ - [getOnchainCoinDetails](#1-getonchaincoindetails-gets-details-for-the-given-coin-from-the-blockchain)
23
+ - [API Queries](#3-api-queries)
24
+ - [API Key](#2-api-key)
25
+ - [Cursor Pagination](#cursor-pagination)
26
+ - Queries
27
+ - [getCoin](#getcoin-get-details-for-a-specific-coin)
28
+ - [getCoins](#getcoins-get-details-for-multiple-coins)
29
+ - [getCoinComments](#getcoincomments-get-comments-for-a-coin)
30
+ - [getProfile](#getprofile-get-profile-information)
31
+ - [getProfileOwned](#getprofileowned-get-coins-owned-by-a-profile)
32
+ - [getCoinsTopGainers](#getcoinstopgainers)
33
+ - [getCoinsTopVolume24h](#getcoinstopvolume24h)
34
+ - [getCoinsMostValuable](#getcoinsmostvaluable)
35
+ - [getCoinsNew](#getcoinsnew)
36
+ - [getCoinsLastTraded](#getcoinslasttraded)
37
+ - [getCoinsLastTradedUnique](#getcoinslasttradedunique)
38
+
39
+ ## Onchain Actions
26
40
 
27
- 2. `createCoin`: Creates a new coin with the given parameters to trade.
41
+ These are functions that interact directly with the blockchain and require transaction signing.
42
+
43
+ ### 1. `createCoin`: Creates a new coin with the given parameters to trade.
28
44
 
29
45
  **Key Parameters:**
30
46
  - `name`: The name of the new coin.
@@ -66,7 +82,7 @@ This prerelease SDK has 3 core features: `createCoin`, `tradeCoin`, and `getCoin
66
82
  // the receipt can be parsed from `getCoinCreateFromLogs(receipt.logs)`
67
83
  ```
68
84
 
69
- 3. `tradeCoin`: Buys or sells an existing coin.
85
+ ### 2. `tradeCoin`: Buys or sells an existing coin.
70
86
 
71
87
  **Key Parameters:**
72
88
  - `direction`: The trade direction, either 'buy' or 'sell'.
@@ -94,7 +110,7 @@ This prerelease SDK has 3 core features: `createCoin`, `tradeCoin`, and `getCoin
94
110
  ```
95
111
 
96
112
  **Lower Level Call Method with WAGMI:**
97
- Use the `tradeCoinCall` function to get the contract call parameters and then use WAGMI's `useContractWrite` hook. Also, use WAGMI's `useWaitForTransaction` hook to get the transaction receipt.
113
+ Use the `tradeCoinCall` function to get the contract call parameters and then use WAGMI's `useContractWrite` hook.
98
114
 
99
115
  ```typescript
100
116
  const tradeParams = {
@@ -107,6 +123,462 @@ This prerelease SDK has 3 core features: `createCoin`, `tradeCoin`, and `getCoin
107
123
  };
108
124
 
109
125
  const { config } = tradeCoinCall(tradeParams);
110
- const { write, data } = useContractWrite(config);
126
+ const { write } = useContractWrite(config);
127
+
128
+ write(); // Execute the contract write
111
129
  // the receipt can be parsed from `getTradeFromLogs(receipt.logs)`
112
130
  ```
131
+
132
+ ### 3. `updateCoinURI`: Updates the URI for an existing coin.
133
+
134
+ **Key Parameters:**
135
+ - `coin`: The coin contract address.
136
+ - `newURI`: The new URI for the coin metadata (must start with "ipfs://").
137
+
138
+ **Usage:**
139
+ ```typescript
140
+ const updateParams = {
141
+ coin: "0xCoinAddress",
142
+ newURI: "ipfs://new-metadata-uri",
143
+ };
144
+
145
+ const result = await updateCoinURI(updateParams, walletClient, publicClient);
146
+ console.log(result);
147
+ ```
148
+
149
+ **Lower Level Call Method with WAGMI:**
150
+ ```typescript
151
+ const updateParams = {
152
+ coin: "0xCoinAddress",
153
+ newURI: "ipfs://new-metadata-uri",
154
+ };
155
+
156
+ const { config } = updateCoinURICall(updateParams);
157
+ const { write } = useContractWrite(config);
158
+
159
+ write(); // Execute the contract write
160
+ ```
161
+
162
+ ## Onchain Queries
163
+
164
+ These are functions that read data from the blockchain or API without requiring transaction signing.
165
+
166
+ ### 1. `getOnchainCoinDetails`: Gets details for the given coin from the blockchain.
167
+
168
+ This query retrieves the most up-to-date coin information directly from the blockchain.
169
+ It is strongly recommended to use the other API queries to fetch this information if possible.
170
+
171
+ **Key Parameters:**
172
+ - `coin`: The coin contract address.
173
+ - `user`: The user address to check balance for. (Optional)
174
+ - `publicClient`: The viem public client instance.
175
+
176
+ **Return Value:**
177
+ - `balance`: The user's balance of the coin.
178
+ - `marketCap`: The market cap of the coin.
179
+ - `liquidity`: The liquidity of the coin.
180
+ - `pool`: Pool address.
181
+ - `poolState`: Current state of the UniswapV3 pool.
182
+ - `owners`: List of owners for the coin.
183
+ - `payoutRecipient`: The payout recipient address.
184
+
185
+ ### 2. API Queries
186
+
187
+ These functions interact with the Zora API to fetch additional data:
188
+
189
+ #### API Key
190
+
191
+ To get a higher rate limit and fully use the zora API, an API key is required.
192
+
193
+ To set the API key, you can use the `setApiKey` function which will apply your API key to all requests.
194
+
195
+ ```typescript
196
+ setApiKey("your-api-key");
197
+ ```
198
+
199
+ Please DM the Zora team to get the API key.
200
+
201
+ These queries allow non-api-key access for reasonable development usage.
202
+
203
+ #### Cursor Pagination
204
+
205
+ Many queries support cursor-based pagination using the `after` parameter. To paginate through results:
206
+
207
+ 1. Make your initial query without an `after` parameter
208
+ 2. From the response, get the `endCursor` from the `pageInfo` object
209
+ 3. Pass this `endCursor` as the `after` parameter in your next query
210
+
211
+ **Example:**
212
+ ```typescript
213
+ // First page
214
+ const firstPage = await getCoinsTopGainers({
215
+ count: 10
216
+ });
217
+
218
+ // Get the cursor for the next page
219
+ const nextCursor = firstPage.exploreList?.pageInfo?.endCursor;
220
+
221
+ // Fetch next page using the cursor
222
+ if (nextCursor) {
223
+ const nextPage = await getCoinsTopGainers({
224
+ count: 10,
225
+ after: nextCursor
226
+ });
227
+ }
228
+ ```
229
+
230
+ **Complete Pagination Example:**
231
+ ```typescript
232
+ async function fetchAllTopGainers() {
233
+ const allResults = [];
234
+ let hasNextPage = true;
235
+ let cursor: string | undefined;
236
+
237
+ while (hasNextPage) {
238
+ const response = await getCoinsTopGainers({
239
+ count: 10,
240
+ after: cursor
241
+ });
242
+
243
+ const { edges, pageInfo } = response.exploreList || {};
244
+
245
+ if (edges) {
246
+ allResults.push(...edges.map(edge => edge.node));
247
+ }
248
+
249
+ hasNextPage = pageInfo?.hasNextPage || false;
250
+ cursor = pageInfo?.endCursor;
251
+ }
252
+
253
+ return allResults;
254
+ }
255
+ ```
256
+
257
+ This pagination pattern works for all queries that return `pageInfo` with `endCursor` and `hasNextPage`, including:
258
+ - All explore queries
259
+ - `getCoinComments`
260
+ - `getProfileOwned`
261
+
262
+ ## All API Queries
263
+
264
+ #### `getCoin`: Get details for a specific coin
265
+ **Parameters:**
266
+ - `address`: The coin contract address
267
+ - `chain`: (Optional) The chain ID
268
+
269
+ **Returns:**
270
+ ```typescript
271
+ {
272
+ zora20Token?: {
273
+ id?: string;
274
+ name?: string;
275
+ description?: string;
276
+ address?: string;
277
+ symbol?: string;
278
+ totalSupply?: string;
279
+ totalVolume?: string;
280
+ volume24h?: string;
281
+ createdAt?: string;
282
+ creatorAddress?: string;
283
+ creatorEarnings?: Array<{
284
+ amount?: {
285
+ currency?: { address?: string };
286
+ amountRaw?: string;
287
+ amountDecimal?: number;
288
+ };
289
+ amountUsd?: string;
290
+ }>;
291
+ marketCap?: string;
292
+ marketCapDelta24h?: string;
293
+ chainId?: number;
294
+ creatorProfile?: string;
295
+ handle?: string;
296
+ avatar?: {
297
+ previewImage?: string;
298
+ blurhash?: string;
299
+ small?: string;
300
+ };
301
+ media?: {
302
+ mimeType?: string;
303
+ originalUri?: string;
304
+ format?: string;
305
+ previewImage?: string;
306
+ medium?: string;
307
+ blurhash?: string;
308
+ };
309
+ transfers?: { count?: number };
310
+ uniqueHolders?: number;
311
+ }
312
+ }
313
+ ```
314
+
315
+ #### `getCoins`: Get details for multiple coins
316
+ **Parameters:**
317
+ - `coins`: Array of coin objects with:
318
+ - `chainId`: (Optional) The chain ID
319
+ - `collectionAddress`: The coin contract address
320
+
321
+ **Returns:** Array of coin details in the same format as `getCoin`
322
+
323
+ #### `getCoinComments`: Get comments for a coin
324
+ **Parameters:**
325
+ - `address`: The coin contract address
326
+ - `chain`: (Optional) The chain ID
327
+ - `after`: (Optional) Pagination cursor
328
+ - `count`: (Optional) Number of comments to return
329
+
330
+ **Returns:**
331
+ ```typescript
332
+ {
333
+ zora20Token?: {
334
+ zoraComments?: {
335
+ pageInfo?: {
336
+ endCursor?: string;
337
+ hasNextPage?: boolean;
338
+ };
339
+ count?: number;
340
+ edges?: Array<{
341
+ node?: string;
342
+ txHash?: string;
343
+ comment?: string;
344
+ userAddress?: string;
345
+ timestamp?: number;
346
+ userProfile?: string;
347
+ id?: string;
348
+ handle?: string;
349
+ avatar?: {
350
+ previewImage?: string;
351
+ blurhash?: string;
352
+ small?: string;
353
+ };
354
+ replies?: {
355
+ count?: number;
356
+ edges?: Array<{
357
+ node?: {
358
+ txHash?: string;
359
+ comment?: string;
360
+ userAddress?: string;
361
+ timestamp?: number;
362
+ userProfile?: string;
363
+ id?: string;
364
+ handle?: string;
365
+ avatar?: {
366
+ previewImage?: string;
367
+ blurhash?: string;
368
+ small?: string;
369
+ };
370
+ };
371
+ }>;
372
+ };
373
+ }>;
374
+ };
375
+ }
376
+ }
377
+ ```
378
+
379
+ #### `getProfile`: Get profile information
380
+ **Parameters:**
381
+ - `identifier`: The profile identifier (username, handle, or address)
382
+
383
+ **Returns:**
384
+ ```typescript
385
+ {
386
+ profile?: string;
387
+ id?: string;
388
+ handle?: string;
389
+ avatar?: {
390
+ small?: string;
391
+ medium?: string;
392
+ blurhash?: string;
393
+ };
394
+ username?: string;
395
+ displayName?: string;
396
+ bio?: string;
397
+ website?: string;
398
+ publicWallet?: {
399
+ walletAddress?: string;
400
+ };
401
+ linkedWallets?: {
402
+ edges?: Array<{
403
+ node?: {
404
+ walletType?: "PRIVY" | "EXTERNAL" | "SMART_WALLET";
405
+ walletAddress?: string;
406
+ };
407
+ }>;
408
+ };
409
+ }
410
+ ```
411
+
412
+ #### `getProfileOwned`: Get coins owned by a profile
413
+ **Parameters:**
414
+ - `identifier`: The profile identifier (username, handle, or address)
415
+ - `count`: (Optional) Number of items to return
416
+ - `after`: (Optional) Pagination cursor
417
+ - `chainIds`: (Optional) Array of chain IDs to filter by
418
+
419
+ **Returns:**
420
+ ```typescript
421
+ {
422
+ profile?: string;
423
+ id?: string;
424
+ handle?: string;
425
+ avatar?: {
426
+ previewImage?: string;
427
+ blurhash?: string;
428
+ small?: string;
429
+ };
430
+ coinBalances?: {
431
+ count?: number;
432
+ edges?: Array<{
433
+ node?: {
434
+ balance?: string;
435
+ id?: string;
436
+ coin?: {
437
+ // Same coin details as getCoin
438
+ };
439
+ };
440
+ }>;
441
+ pageInfo?: {
442
+ hasNextPage?: boolean;
443
+ endCursor?: string;
444
+ };
445
+ };
446
+ }
447
+ ```
448
+
449
+ #### `getCoinsTopGainers`: Get top gaining coins
450
+ **Parameters:**
451
+ - `count`: (Optional) Number of items to return, type: `number`
452
+ - `after`: (Optional) Pagination cursor, type: `string`
453
+
454
+ **Request Type:**
455
+ ```typescript
456
+ type Options<T extends boolean = false> = {
457
+ query?: {
458
+ count?: number;
459
+ after?: string;
460
+ };
461
+ };
462
+ ```
463
+
464
+ **Return Type:**
465
+ ```typescript
466
+ {
467
+ exploreList?: {
468
+ edges?: Array<{
469
+ node?: {
470
+ id?: string;
471
+ name?: string;
472
+ description?: string;
473
+ address?: string;
474
+ symbol?: string;
475
+ totalSupply?: string;
476
+ totalVolume?: string;
477
+ volume24h?: string;
478
+ createdAt?: string;
479
+ creatorAddress?: string;
480
+ creatorEarnings?: Array<{...}>;
481
+ marketCap?: string;
482
+ marketCapDelta24h?: string;
483
+ chainId?: number;
484
+ creatorProfile?: string;
485
+ handle?: string;
486
+ avatar?: {...};
487
+ media?: {...};
488
+ transfers?: { count?: number };
489
+ uniqueHolders?: number;
490
+ };
491
+ cursor?: string;
492
+ }>;
493
+ pageInfo?: {
494
+ endCursor?: string;
495
+ hasNextPage?: boolean;
496
+ };
497
+ };
498
+ }
499
+ ```
500
+
501
+ #### `getCoinsTopVolume24h`: Get coins with highest 24h volume
502
+ **Parameters:**
503
+ - `count`: (Optional) Number of items to return, type: `number`
504
+ - `after`: (Optional) Pagination cursor, type: `string`
505
+
506
+ **Request Type:**
507
+ ```typescript
508
+ type Options<T extends boolean = false> = {
509
+ query?: {
510
+ count?: number;
511
+ after?: string;
512
+ };
513
+ };
514
+ ```
515
+
516
+ **Return Type:** Same as `getCoinsTopGainers`
517
+
518
+ #### `getCoinsMostValuable`: Get most valuable coins
519
+ **Parameters:**
520
+ - `count`: (Optional) Number of items to return, type: `number`
521
+ - `after`: (Optional) Pagination cursor, type: `string`
522
+
523
+ **Request Type:**
524
+ ```typescript
525
+ type Options<T extends boolean = false> = {
526
+ query?: {
527
+ count?: number;
528
+ after?: string;
529
+ };
530
+ };
531
+ ```
532
+
533
+ **Return Type:** Same as `getCoinsTopGainers`
534
+
535
+ #### `getCoinsNew`: Get newly created coins
536
+ **Parameters:**
537
+ - `count`: (Optional) Number of items to return, type: `number`
538
+ - `after`: (Optional) Pagination cursor, type: `string`
539
+
540
+ **Request Type:**
541
+ ```typescript
542
+ type Options<T extends boolean = false> = {
543
+ query?: {
544
+ count?: number;
545
+ after?: string;
546
+ };
547
+ };
548
+ ```
549
+
550
+ **Return Type:** Same as `getCoinsTopGainers`
551
+
552
+ #### `getCoinsLastTraded`: Get recently traded coins
553
+ **Parameters:**
554
+ - `count`: (Optional) Number of items to return, type: `number`
555
+ - `after`: (Optional) Pagination cursor, type: `string`
556
+
557
+ **Request Type:**
558
+ ```typescript
559
+ type Options<T extends boolean = false> = {
560
+ query?: {
561
+ count?: number;
562
+ after?: string;
563
+ };
564
+ };
565
+ ```
566
+
567
+ **Return Type:** Same as `getCoinsTopGainers`
568
+
569
+ #### `getCoinsLastTradedUnique`: Get recently traded unique coins
570
+ **Parameters:**
571
+ - `count`: (Optional) Number of items to return, type: `number`
572
+ - `after`: (Optional) Pagination cursor, type: `string`
573
+
574
+ **Request Type:**
575
+ ```typescript
576
+ type Options<T extends boolean = false> = {
577
+ query?: {
578
+ count?: number;
579
+ after?: string;
580
+ };
581
+ };
582
+ ```
583
+
584
+ **Return Type:** Same as `getCoinsTopGainers`
@@ -1,4 +1,5 @@
1
- import { Address, PublicClient } from "viem";
1
+ import { GenericPublicClient } from "src/utils/genericPublicClient";
2
+ import { Address } from "viem";
2
3
  type Slot0Result = {
3
4
  sqrtPriceX96: bigint;
4
5
  tick: number;
@@ -45,7 +46,7 @@ export type OnchainCoinDetails = {
45
46
  export declare function getOnchainCoinDetails({ coin, user, publicClient, }: {
46
47
  coin: Address;
47
48
  user?: Address;
48
- publicClient: PublicClient;
49
+ publicClient: GenericPublicClient;
49
50
  }): Promise<OnchainCoinDetails>;
50
51
  export {};
51
52
  //# sourceMappingURL=getOnchainCoinDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOnchainCoinDetails.d.ts","sourceRoot":"","sources":["../../src/actions/getOnchainCoinDetails.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,OAAO,EAIP,YAAY,EAEb,MAAM,MAAM,CAAC;AAEd,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,0BAA0B,EAAE,MAAM,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,IAAI,EACJ,IAAkB,EAClB,YAAY,GACb,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;CAC5B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAmH9B"}
1
+ {"version":3,"file":"getOnchainCoinDetails.d.ts","sourceRoot":"","sources":["../../src/actions/getOnchainCoinDetails.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EACL,OAAO,EAKR,MAAM,MAAM,CAAC;AAEd,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,0BAA0B,EAAE,MAAM,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,IAAI,EACJ,IAAkB,EAClB,YAAY,GACb,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,mBAAmB,CAAC;CACnC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAmH9B"}
@@ -0,0 +1,9 @@
1
+ export declare function setApiKey(key: string): void;
2
+ export declare function getApiKeyMeta(): {
3
+ headers?: undefined;
4
+ } | {
5
+ headers: {
6
+ "api-key": string;
7
+ };
8
+ };
9
+ //# sourceMappingURL=api-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/api/api-key.ts"],"names":[],"mappings":"AACA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,QAEpC;AAED,wBAAgB,aAAa;;;;;;EAS5B"}