@zoralabs/coins-sdk 0.5.2 → 0.7.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/actions/createCoin.d.ts +92 -7
  3. package/dist/actions/createCoin.d.ts.map +1 -1
  4. package/dist/actions/tradeCoin.d.ts +27 -2
  5. package/dist/actions/tradeCoin.d.ts.map +1 -1
  6. package/dist/actions/updateCoinURI.d.ts +35 -1
  7. package/dist/actions/updateCoinURI.d.ts.map +1 -1
  8. package/dist/actions/updatePayoutRecipient.d.ts +41 -1
  9. package/dist/actions/updatePayoutRecipient.d.ts.map +1 -1
  10. package/dist/api/api-raw.d.ts +1 -0
  11. package/dist/api/api-raw.d.ts.map +1 -1
  12. package/dist/api/index.d.ts +2 -0
  13. package/dist/api/index.d.ts.map +1 -1
  14. package/dist/api/queries.d.ts +9 -1
  15. package/dist/api/queries.d.ts.map +1 -1
  16. package/dist/api/social.d.ts +8 -0
  17. package/dist/api/social.d.ts.map +1 -0
  18. package/dist/client/sdk.gen.d.ts +144 -1
  19. package/dist/client/sdk.gen.d.ts.map +1 -1
  20. package/dist/client/types.gen.d.ts +411 -1
  21. package/dist/client/types.gen.d.ts.map +1 -1
  22. package/dist/index.cjs +724 -250
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.ts +11 -5
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +701 -227
  27. package/dist/index.js.map +1 -1
  28. package/dist/metadata/validateMetadataURIContent.d.ts.map +1 -1
  29. package/dist/utils/calls.d.ts +61 -0
  30. package/dist/utils/calls.d.ts.map +1 -0
  31. package/dist/utils/userOperation.d.ts +44 -0
  32. package/dist/utils/userOperation.d.ts.map +1 -0
  33. package/package.json +1 -1
  34. package/src/actions/createCoin.ts +314 -60
  35. package/src/actions/tradeCoin.ts +237 -72
  36. package/src/actions/updateCoinURI.ts +84 -6
  37. package/src/actions/updatePayoutRecipient.ts +92 -5
  38. package/src/api/api-raw.test.ts +61 -0
  39. package/src/api/api-raw.ts +9 -0
  40. package/src/api/index.ts +4 -0
  41. package/src/api/queries.ts +36 -0
  42. package/src/api/social.ts +23 -0
  43. package/src/client/sdk.gen.ts +48 -0
  44. package/src/client/types.gen.ts +421 -1
  45. package/src/index.ts +45 -3
  46. package/src/metadata/validateMetadataURIContent.ts +17 -2
  47. package/src/utils/calls.ts +129 -0
  48. package/src/utils/userOperation.test.ts +84 -0
  49. package/src/utils/userOperation.ts +124 -0
@@ -8,6 +8,15 @@ export const apiGet = (path: string, data?: Record<string, unknown>) =>
8
8
  export const apiPost = (path: string, data?: Record<string, unknown>) =>
9
9
  client.post({ url: path, body: data, ...getApiKeyMeta() });
10
10
 
11
+ export const apiUrl = (path: string) => {
12
+ const baseUrl = client.getConfig().baseUrl ?? "";
13
+ // normalize the join boundary so we never end up with double slashes
14
+ // (or a missing slash) between the base URL and the path
15
+ const normalizedBase = baseUrl.replace(/\/+$/, "");
16
+ const normalizedPath = path.replace(/^\/+/, "");
17
+ return `${normalizedBase}/${normalizedPath}`;
18
+ };
19
+
11
20
  export const setApiBaseUrl = (baseUrl: string) => {
12
21
  client.setConfig(createConfig({ baseUrl }));
13
22
  };
package/src/api/index.ts CHANGED
@@ -10,6 +10,10 @@ export type * from "./queries";
10
10
  export * from "./create";
11
11
  export type * from "./create";
12
12
 
13
+ // Export all of the social queries
14
+ export * from "./social";
15
+ export type * from "./social";
16
+
13
17
  // Only export the set function for external use.
14
18
  // All other exports are for internal use.
15
19
  export { setApiKey } from "./api-key";
@@ -4,6 +4,8 @@ import {
4
4
  GetCoinData,
5
5
  GetCoinHoldersData,
6
6
  GetCoinHoldersResponse,
7
+ GetCoinPriceHistoryData,
8
+ GetCoinPriceHistoryResponse,
7
9
  GetCoinResponse,
8
10
  GetCoinsData,
9
11
  GetCoinsResponse,
@@ -29,12 +31,15 @@ import {
29
31
  GetCreatorCoinPoolConfigResponse,
30
32
  GetCreatorLivestreamCommentsData,
31
33
  GetCreatorLivestreamCommentsResponse,
34
+ GetWalletTradeActivityData,
35
+ GetWalletTradeActivityResponse,
32
36
  } from "../client/types.gen";
33
37
  import {
34
38
  getCoin as getCoinSDK,
35
39
  getCoins as getCoinsSDK,
36
40
  getCoinComments as getCoinCommentsSDK,
37
41
  getCoinHolders as getCoinHoldersSDK,
42
+ getCoinPriceHistory as getCoinPriceHistorySDK,
38
43
  getCoinSwaps as getCoinSwapsSDK,
39
44
  getProfile as getProfileSDK,
40
45
  getProfileBalances as getProfileBalancesSDK,
@@ -46,6 +51,7 @@ import {
46
51
  getContentCoinPoolConfig as getContentCoinPoolConfigSDK,
47
52
  getCreatorCoinPoolConfig as getCreatorCoinPoolConfigSDK,
48
53
  getCreatorLivestreamComments as getCreatorLivestreamCommentsSDK,
54
+ getWalletTradeActivity as getWalletTradeActivitySDK,
49
55
  } from "../client/sdk.gen";
50
56
  import { getApiKeyMeta } from "./api-key";
51
57
  import { RequestOptionsType } from "./query-types";
@@ -102,6 +108,21 @@ export const getCoinHolders = async (
102
108
  });
103
109
  };
104
110
 
111
+ type GetCoinPriceHistoryQuery = GetCoinPriceHistoryData["query"];
112
+ export type { GetCoinPriceHistoryQuery, GetCoinPriceHistoryData };
113
+ export type { GetCoinPriceHistoryResponse } from "../client/types.gen";
114
+
115
+ export const getCoinPriceHistory = async (
116
+ query: GetCoinPriceHistoryQuery,
117
+ options?: RequestOptionsType<GetCoinPriceHistoryData>,
118
+ ): Promise<RequestResult<GetCoinPriceHistoryResponse>> => {
119
+ return await getCoinPriceHistorySDK({
120
+ query,
121
+ ...getApiKeyMeta(),
122
+ ...options,
123
+ });
124
+ };
125
+
105
126
  type GetCoinSwapsQuery = GetCoinSwapsData["query"];
106
127
  export type { GetCoinSwapsQuery, GetCoinSwapsData };
107
128
  export type { GetCoinSwapsResponse } from "../client/types.gen";
@@ -285,3 +306,18 @@ export const getCreatorLivestreamComments = async (
285
306
  ...options,
286
307
  });
287
308
  };
309
+
310
+ type GetWalletTradeActivityQuery = GetWalletTradeActivityData["query"];
311
+ export type { GetWalletTradeActivityQuery, GetWalletTradeActivityData };
312
+ export type { GetWalletTradeActivityResponse } from "../client/types.gen";
313
+
314
+ export const getWalletTradeActivity = async (
315
+ query: GetWalletTradeActivityQuery,
316
+ options?: RequestOptionsType<GetWalletTradeActivityData>,
317
+ ): Promise<RequestResult<GetWalletTradeActivityResponse>> => {
318
+ return await getWalletTradeActivitySDK({
319
+ query,
320
+ ...getApiKeyMeta(),
321
+ ...options,
322
+ });
323
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ GetProfileBySocialHandleData,
3
+ GetProfileBySocialHandleResponse,
4
+ } from "../client/types.gen";
5
+ import { getProfileBySocialHandle as getProfileBySocialHandleSDK } from "../client/sdk.gen";
6
+ import { getApiKeyMeta } from "./api-key";
7
+ import { RequestOptionsType } from "./query-types";
8
+ import { RequestResult } from "@hey-api/client-fetch";
9
+
10
+ type GetProfileBySocialHandleQuery = GetProfileBySocialHandleData["query"];
11
+ export type { GetProfileBySocialHandleQuery, GetProfileBySocialHandleData };
12
+ export type { GetProfileBySocialHandleResponse } from "../client/types.gen";
13
+
14
+ export const getProfileBySocialHandle = async (
15
+ query: GetProfileBySocialHandleQuery,
16
+ options?: RequestOptionsType<GetProfileBySocialHandleData>,
17
+ ): Promise<RequestResult<GetProfileBySocialHandleResponse>> => {
18
+ return await getProfileBySocialHandleSDK({
19
+ ...options,
20
+ query,
21
+ ...getApiKeyMeta(),
22
+ });
23
+ };
@@ -40,6 +40,8 @@ import type {
40
40
  GetProfileResponse,
41
41
  GetProfileBalancesData,
42
42
  GetProfileBalancesResponse,
43
+ GetProfileBySocialHandleData,
44
+ GetProfileBySocialHandleResponse,
43
45
  GetProfileCoinsData,
44
46
  GetProfileCoinsResponse,
45
47
  GetProfileSocialData,
@@ -54,6 +56,8 @@ import type {
54
56
  GetTrendCoinResponse,
55
57
  GetTrendsByNameData,
56
58
  GetTrendsByNameResponse,
59
+ GetWalletTradeActivityData,
60
+ GetWalletTradeActivityResponse,
57
61
  PostQuoteData,
58
62
  PostQuoteResponse,
59
63
  PostQuoteError,
@@ -460,6 +464,28 @@ export const getProfileBalances = <ThrowOnError extends boolean = false>(
460
464
  });
461
465
  };
462
466
 
467
+ /**
468
+ * zoraSDK_profileBySocialHandle query
469
+ */
470
+ export const getProfileBySocialHandle = <ThrowOnError extends boolean = false>(
471
+ options: Options<GetProfileBySocialHandleData, ThrowOnError>,
472
+ ) => {
473
+ return (options.client ?? _heyApiClient).get<
474
+ GetProfileBySocialHandleResponse,
475
+ unknown,
476
+ ThrowOnError
477
+ >({
478
+ security: [
479
+ {
480
+ name: "api-key",
481
+ type: "apiKey",
482
+ },
483
+ ],
484
+ url: "/profileBySocialHandle",
485
+ ...options,
486
+ });
487
+ };
488
+
463
489
  /**
464
490
  * zoraSDK_profileCoins query
465
491
  */
@@ -614,6 +640,28 @@ export const getTrendsByName = <ThrowOnError extends boolean = false>(
614
640
  });
615
641
  };
616
642
 
643
+ /**
644
+ * zoraSDK_walletTradeActivity query
645
+ */
646
+ export const getWalletTradeActivity = <ThrowOnError extends boolean = false>(
647
+ options: Options<GetWalletTradeActivityData, ThrowOnError>,
648
+ ) => {
649
+ return (options.client ?? _heyApiClient).get<
650
+ GetWalletTradeActivityResponse,
651
+ unknown,
652
+ ThrowOnError
653
+ >({
654
+ security: [
655
+ {
656
+ name: "api-key",
657
+ type: "apiKey",
658
+ },
659
+ ],
660
+ url: "/walletTradeActivity",
661
+ ...options,
662
+ });
663
+ };
664
+
617
665
  export const postQuote = <ThrowOnError extends boolean = false>(
618
666
  options?: Options<PostQuoteData, ThrowOnError>,
619
667
  ) => {
@@ -899,6 +899,9 @@ export type GetCoinsResponses = {
899
899
  * Successful operation
900
900
  */
901
901
  200: {
902
+ /**
903
+ * Batch-resolve Zora ERC-20 coins. Returns nulls for unknown IDs. Preserves input order.
904
+ */
902
905
  zora20Tokens: Array<{
903
906
  /**
904
907
  * The Globally Unique ID of this object
@@ -1389,7 +1392,7 @@ export type SetCreateUploadJwtResponses = {
1389
1392
  */
1390
1393
  200: {
1391
1394
  /**
1392
- * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1395
+ * Generate a signed JWT for media uploads, authenticated via API key.
1393
1396
  */
1394
1397
  createUploadJwtFromApiKey: string;
1395
1398
  };
@@ -2822,6 +2825,165 @@ export type GetProfileBalancesResponses = {
2822
2825
  export type GetProfileBalancesResponse =
2823
2826
  GetProfileBalancesResponses[keyof GetProfileBalancesResponses];
2824
2827
 
2828
+ export type GetProfileBySocialHandleData = {
2829
+ body?: never;
2830
+ path?: never;
2831
+ query: {
2832
+ platform: "TWITTER" | "TIKTOK" | "FARCASTER" | "INSTAGRAM";
2833
+ handle: string;
2834
+ };
2835
+ url: "/profileBySocialHandle";
2836
+ };
2837
+
2838
+ export type GetProfileBySocialHandleErrors = {
2839
+ /**
2840
+ * Bad request
2841
+ */
2842
+ 400: unknown;
2843
+ /**
2844
+ * Internal server error
2845
+ */
2846
+ 500: unknown;
2847
+ };
2848
+
2849
+ export type GetProfileBySocialHandleResponses = {
2850
+ /**
2851
+ * Successful operation
2852
+ */
2853
+ 200: {
2854
+ profileBySocialHandle?: {
2855
+ /**
2856
+ * The Globally Unique ID of this object
2857
+ */
2858
+ id: string;
2859
+ /**
2860
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
2861
+ */
2862
+ handle: string;
2863
+ /**
2864
+ * The `Boolean` scalar type represents `true` or `false`.
2865
+ */
2866
+ platformBlocked: boolean;
2867
+ avatar?: {
2868
+ previewImage: {
2869
+ /**
2870
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2871
+ */
2872
+ blurhash?: string;
2873
+ /**
2874
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2875
+ */
2876
+ medium: string;
2877
+ /**
2878
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2879
+ */
2880
+ small: string;
2881
+ };
2882
+ };
2883
+ socialAccounts: {
2884
+ instagram?: {
2885
+ /**
2886
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2887
+ */
2888
+ username?: string;
2889
+ /**
2890
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2891
+ */
2892
+ displayName?: string;
2893
+ /**
2894
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2895
+ */
2896
+ followerCount?: number;
2897
+ /**
2898
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2899
+ */
2900
+ id?: string;
2901
+ };
2902
+ tiktok?: {
2903
+ /**
2904
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2905
+ */
2906
+ username?: string;
2907
+ /**
2908
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2909
+ */
2910
+ displayName?: string;
2911
+ /**
2912
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2913
+ */
2914
+ followerCount?: number;
2915
+ /**
2916
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2917
+ */
2918
+ id?: string;
2919
+ };
2920
+ twitter?: {
2921
+ /**
2922
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2923
+ */
2924
+ username?: string;
2925
+ /**
2926
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2927
+ */
2928
+ displayName?: string;
2929
+ /**
2930
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2931
+ */
2932
+ followerCount?: number;
2933
+ /**
2934
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2935
+ */
2936
+ id?: string;
2937
+ };
2938
+ farcaster?: {
2939
+ /**
2940
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2941
+ */
2942
+ username?: string;
2943
+ /**
2944
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2945
+ */
2946
+ displayName?: string;
2947
+ /**
2948
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2949
+ */
2950
+ followerCount?: number;
2951
+ /**
2952
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2953
+ */
2954
+ id?: string;
2955
+ };
2956
+ };
2957
+ creatorCoin?: {
2958
+ /**
2959
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2960
+ */
2961
+ symbol: string;
2962
+ /**
2963
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2964
+ */
2965
+ marketCap: string;
2966
+ /**
2967
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2968
+ */
2969
+ marketCapDelta24h: string;
2970
+ multichainAddress: string;
2971
+ };
2972
+ /**
2973
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2974
+ */
2975
+ username: string;
2976
+ /**
2977
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2978
+ */
2979
+ displayName?: string;
2980
+ };
2981
+ };
2982
+ };
2983
+
2984
+ export type GetProfileBySocialHandleResponse =
2985
+ GetProfileBySocialHandleResponses[keyof GetProfileBySocialHandleResponses];
2986
+
2825
2987
  export type GetProfileCoinsData = {
2826
2988
  body?: never;
2827
2989
  path?: never;
@@ -4406,6 +4568,264 @@ export type GetTrendsByNameResponses = {
4406
4568
  export type GetTrendsByNameResponse =
4407
4569
  GetTrendsByNameResponses[keyof GetTrendsByNameResponses];
4408
4570
 
4571
+ export type GetWalletTradeActivityData = {
4572
+ body?: never;
4573
+ path?: never;
4574
+ query: {
4575
+ identifier: string;
4576
+ after?: string;
4577
+ first?: number;
4578
+ };
4579
+ url: "/walletTradeActivity";
4580
+ };
4581
+
4582
+ export type GetWalletTradeActivityErrors = {
4583
+ /**
4584
+ * Bad request
4585
+ */
4586
+ 400: unknown;
4587
+ /**
4588
+ * Internal server error
4589
+ */
4590
+ 500: unknown;
4591
+ };
4592
+
4593
+ export type GetWalletTradeActivityResponses = {
4594
+ /**
4595
+ * Successful operation
4596
+ */
4597
+ 200: {
4598
+ walletAddressTradeActivity: {
4599
+ /**
4600
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
4601
+ */
4602
+ count: number;
4603
+ edges: Array<{
4604
+ node: {
4605
+ /**
4606
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4607
+ */
4608
+ transactionHash: string;
4609
+ /**
4610
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
4611
+ */
4612
+ transactionLogIndex?: number;
4613
+ /**
4614
+ * Date with time (isoformat)
4615
+ */
4616
+ blockTimestamp: string;
4617
+ /**
4618
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4619
+ */
4620
+ coinAmount: string;
4621
+ coin?: {
4622
+ /**
4623
+ * The `Boolean` scalar type represents `true` or `false`.
4624
+ */
4625
+ platformBlocked: boolean;
4626
+ address: string;
4627
+ coinType: "CREATOR" | "CONTENT" | "TREND";
4628
+ /**
4629
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4630
+ */
4631
+ name: string;
4632
+ /**
4633
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4634
+ */
4635
+ symbol: string;
4636
+ /**
4637
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4638
+ */
4639
+ description: string;
4640
+ /**
4641
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4642
+ */
4643
+ tokenUri?: string;
4644
+ mediaContent?: {
4645
+ previewImage?: {
4646
+ /**
4647
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4648
+ */
4649
+ small: string;
4650
+ /**
4651
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4652
+ */
4653
+ blurhash?: string;
4654
+ /**
4655
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4656
+ */
4657
+ medium: string;
4658
+ };
4659
+ };
4660
+ creatorAddress?: string;
4661
+ creatorProfile?: {
4662
+ /**
4663
+ * The Globally Unique ID of this object
4664
+ */
4665
+ id: string;
4666
+ /**
4667
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
4668
+ */
4669
+ handle: string;
4670
+ /**
4671
+ * The `Boolean` scalar type represents `true` or `false`.
4672
+ */
4673
+ platformBlocked: boolean;
4674
+ avatar?: {
4675
+ previewImage: {
4676
+ /**
4677
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4678
+ */
4679
+ blurhash?: string;
4680
+ /**
4681
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4682
+ */
4683
+ medium: string;
4684
+ /**
4685
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4686
+ */
4687
+ small: string;
4688
+ };
4689
+ };
4690
+ };
4691
+ uniswapPoolAddress: string;
4692
+ /**
4693
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4694
+ */
4695
+ totalSupply: string;
4696
+ };
4697
+ /**
4698
+ * The Globally Unique ID of this object
4699
+ */
4700
+ id: string;
4701
+ swapActivityType?: "BUY" | "SELL";
4702
+ currencyAmountWithPrice: {
4703
+ /**
4704
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4705
+ */
4706
+ amountUsd?: string;
4707
+ /**
4708
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4709
+ */
4710
+ priceUsdc?: string;
4711
+ /**
4712
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4713
+ */
4714
+ priceDelta24h?: string;
4715
+ currencyAmount: {
4716
+ /**
4717
+ * Ethereum address of the currency
4718
+ */
4719
+ currencyAddress: string;
4720
+ /**
4721
+ * Amount of the currency, in float format accounting for currency decimals
4722
+ */
4723
+ amountDecimal: number;
4724
+ /**
4725
+ * Raw amount of the currency, in wei. Not formatted with decimals
4726
+ */
4727
+ amountRaw: string;
4728
+ };
4729
+ };
4730
+ senderProfile?: {
4731
+ /**
4732
+ * The Globally Unique ID of this object
4733
+ */
4734
+ id: string;
4735
+ /**
4736
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
4737
+ */
4738
+ handle: string;
4739
+ /**
4740
+ * The `Boolean` scalar type represents `true` or `false`.
4741
+ */
4742
+ platformBlocked: boolean;
4743
+ avatar?: {
4744
+ previewImage: {
4745
+ /**
4746
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4747
+ */
4748
+ blurhash?: string;
4749
+ /**
4750
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4751
+ */
4752
+ medium: string;
4753
+ /**
4754
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4755
+ */
4756
+ small: string;
4757
+ };
4758
+ };
4759
+ };
4760
+ /**
4761
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4762
+ */
4763
+ orderId: string;
4764
+ /**
4765
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4766
+ */
4767
+ initialBuyAmount?: string;
4768
+ /**
4769
+ * The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
4770
+ */
4771
+ initialBuyAmountUsd?: number;
4772
+ /**
4773
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
4774
+ */
4775
+ multiplier: number;
4776
+ makerProfile?: {
4777
+ /**
4778
+ * The Globally Unique ID of this object
4779
+ */
4780
+ id: string;
4781
+ /**
4782
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
4783
+ */
4784
+ handle: string;
4785
+ /**
4786
+ * The `Boolean` scalar type represents `true` or `false`.
4787
+ */
4788
+ platformBlocked: boolean;
4789
+ avatar?: {
4790
+ previewImage: {
4791
+ /**
4792
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4793
+ */
4794
+ blurhash?: string;
4795
+ /**
4796
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4797
+ */
4798
+ medium: string;
4799
+ /**
4800
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4801
+ */
4802
+ small: string;
4803
+ };
4804
+ };
4805
+ };
4806
+ };
4807
+ /**
4808
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4809
+ */
4810
+ cursor: string;
4811
+ }>;
4812
+ pageInfo: {
4813
+ /**
4814
+ * When paginating forwards, the cursor to continue.
4815
+ */
4816
+ endCursor?: string;
4817
+ /**
4818
+ * When paginating forwards, are there more items?
4819
+ */
4820
+ hasNextPage: boolean;
4821
+ };
4822
+ };
4823
+ };
4824
+ };
4825
+
4826
+ export type GetWalletTradeActivityResponse =
4827
+ GetWalletTradeActivityResponses[keyof GetWalletTradeActivityResponses];
4828
+
4409
4829
  export type PostQuoteData = {
4410
4830
  body?: {
4411
4831
  referrer?: string;