@zoralabs/coins-sdk 0.0.2-sdkalpha.1 → 0.0.2-sdkalpha.3
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/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/dist/actions/createCoin.d.ts.map +1 -1
- package/dist/actions/{getCoinDetails.d.ts → getOnchainCoinDetails.d.ts} +6 -6
- package/dist/actions/getOnchainCoinDetails.d.ts.map +1 -0
- package/dist/client/client.gen.d.ts +13 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/explore.d.ts +271 -0
- package/dist/client/explore.d.ts.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/sdk.gen.d.ts +153 -0
- package/dist/client/sdk.gen.d.ts.map +1 -0
- package/dist/client/types.gen.d.ts +219 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/index.cjs +120 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +128 -32
- package/dist/index.js.map +1 -1
- package/package.json +16 -14
- package/src/actions/createCoin.ts +5 -0
- package/src/actions/{getCoinDetails.ts → getOnchainCoinDetails.ts} +110 -75
- package/src/client/client.gen.ts +18 -0
- package/src/client/explore.ts +55 -0
- package/src/client/index.ts +3 -0
- package/src/client/sdk.gen.ts +40 -0
- package/src/client/types.gen.ts +229 -0
- package/src/index.ts +5 -1
- package/dist/actions/getCoinDetails.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Zora Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCoin.d.ts","sourceRoot":"","sources":["../../src/actions/createCoin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,2BAA2B,EAE5B,MAAM,MAAM,CAAC;AAId,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAC7D,OAAO,kBAAkB,EACzB,aAAa,CACd,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,OA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,MAAM,EACN,eAAe,EACf,kBAAuB,EACvB,SAAmB,EACnB,gBAA+D,GAChE,EAAE,cAAc,GAAG,0BAA0B,CAC5C,OAAO,kBAAkB,EACzB,QAAQ,CACT,CAuBA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,kBAAkB,GAC1B,qBAAqB,GAAG,SAAS,CAMnC;AAGD,wBAAsB,UAAU,CAC9B,IAAI,EAAE,cAAc,EACpB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY;;;;;;;;;;;;;;;;GAsB3B"}
|
|
@@ -16,7 +16,7 @@ type PricingResult = {
|
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Represents the current state of a coin
|
|
19
|
-
* @typedef {Object}
|
|
19
|
+
* @typedef {Object} OnchainCoinDetails
|
|
20
20
|
* @property {bigint} balance - The user's balance of the coin
|
|
21
21
|
* @property {PricingResult} marketCap - The market cap of the coin
|
|
22
22
|
* @property {PricingResult} liquidity - The liquidity of the coin
|
|
@@ -25,7 +25,7 @@ type PricingResult = {
|
|
|
25
25
|
* @property {Address[]} owners - List of owners for the coin
|
|
26
26
|
* @property {Address} payoutRecipient - The payout recipient address
|
|
27
27
|
*/
|
|
28
|
-
export type
|
|
28
|
+
export type OnchainCoinDetails = {
|
|
29
29
|
balance: bigint;
|
|
30
30
|
marketCap: PricingResult;
|
|
31
31
|
liquidity: PricingResult;
|
|
@@ -40,12 +40,12 @@ export type CoinDetails = {
|
|
|
40
40
|
* @param {Address} params.coin - The coin contract address
|
|
41
41
|
* @param {Address} params.user - The user address to check balance for
|
|
42
42
|
* @param {PublicClient} params.publicClient - The viem public client instance
|
|
43
|
-
* @returns {Promise<
|
|
43
|
+
* @returns {Promise<OnchainCoinDetails>} The coin's current state
|
|
44
44
|
*/
|
|
45
|
-
export declare function
|
|
45
|
+
export declare function getOnchainCoinDetails({ coin, user, publicClient, }: {
|
|
46
46
|
coin: Address;
|
|
47
47
|
user?: Address;
|
|
48
48
|
publicClient: PublicClient;
|
|
49
|
-
}): Promise<
|
|
49
|
+
}): Promise<OnchainCoinDetails>;
|
|
50
50
|
export {};
|
|
51
|
-
//# sourceMappingURL=
|
|
51
|
+
//# sourceMappingURL=getOnchainCoinDetails.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ClientOptions } from './types.gen';
|
|
2
|
+
import { type Config, type ClientOptions as DefaultClientOptions } from '@hey-api/client-fetch';
|
|
3
|
+
/**
|
|
4
|
+
* The `createClientConfig()` function will be called on client initialization
|
|
5
|
+
* and the returned object will become the client's initial configuration.
|
|
6
|
+
*
|
|
7
|
+
* You may want to initialize your client this way instead of calling
|
|
8
|
+
* `setConfig()`. This is useful for example if you're using Next.js
|
|
9
|
+
* to ensure your client always has the correct values.
|
|
10
|
+
*/
|
|
11
|
+
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
|
|
12
|
+
export declare const client: import("@hey-api/client-fetch").Client;
|
|
13
|
+
//# sourceMappingURL=client.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../src/client/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,IAAI,oBAAoB,EAA8B,MAAM,uBAAuB,CAAC;AAE5H;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,oBAAoB,GAAG,aAAa,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;AAE7K,eAAO,MAAM,MAAM,wCAEhB,CAAC"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import type { GetExploreData } from "./types.gen";
|
|
2
|
+
import { Options } from "@hey-api/client-fetch";
|
|
3
|
+
type QueryInnerType = {
|
|
4
|
+
query: Omit<GetExploreData["query"], "listType">;
|
|
5
|
+
} & Omit<GetExploreData, "query">;
|
|
6
|
+
export declare const getTopGainers: <ThrowOnError extends boolean = false>(options?: Options<QueryInnerType, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
7
|
+
exploreList?: {
|
|
8
|
+
edges?: Array<{
|
|
9
|
+
node?: {
|
|
10
|
+
id?: string;
|
|
11
|
+
address?: string;
|
|
12
|
+
chainId?: number;
|
|
13
|
+
creatorProfile?: string;
|
|
14
|
+
profileId?: string;
|
|
15
|
+
handle?: string;
|
|
16
|
+
avatar?: {
|
|
17
|
+
mimeType?: string;
|
|
18
|
+
downloadableUri?: string;
|
|
19
|
+
height?: number;
|
|
20
|
+
width?: number;
|
|
21
|
+
blurhash?: string;
|
|
22
|
+
};
|
|
23
|
+
name?: string;
|
|
24
|
+
symbol?: string;
|
|
25
|
+
volume24h?: string;
|
|
26
|
+
uniqueHolders?: number;
|
|
27
|
+
createdAt?: string;
|
|
28
|
+
zoraComments?: {
|
|
29
|
+
count?: number;
|
|
30
|
+
};
|
|
31
|
+
mediaContent?: string;
|
|
32
|
+
mimeType?: string;
|
|
33
|
+
originalUri?: string;
|
|
34
|
+
downloadableUri?: string;
|
|
35
|
+
previewImage?: string;
|
|
36
|
+
height?: number;
|
|
37
|
+
width?: number;
|
|
38
|
+
blurhash?: string;
|
|
39
|
+
marketCap?: string;
|
|
40
|
+
marketCapDelta24h?: string;
|
|
41
|
+
};
|
|
42
|
+
cursor?: string;
|
|
43
|
+
}>;
|
|
44
|
+
pageInfo?: {
|
|
45
|
+
endCursor?: string;
|
|
46
|
+
hasNextPage?: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, unknown, ThrowOnError>;
|
|
50
|
+
export declare const getTopVolume24h: <ThrowOnError extends boolean = false>(options?: Options<QueryInnerType, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
51
|
+
exploreList?: {
|
|
52
|
+
edges?: Array<{
|
|
53
|
+
node?: {
|
|
54
|
+
id?: string;
|
|
55
|
+
address?: string;
|
|
56
|
+
chainId?: number;
|
|
57
|
+
creatorProfile?: string;
|
|
58
|
+
profileId?: string;
|
|
59
|
+
handle?: string;
|
|
60
|
+
avatar?: {
|
|
61
|
+
mimeType?: string;
|
|
62
|
+
downloadableUri?: string;
|
|
63
|
+
height?: number;
|
|
64
|
+
width?: number;
|
|
65
|
+
blurhash?: string;
|
|
66
|
+
};
|
|
67
|
+
name?: string;
|
|
68
|
+
symbol?: string;
|
|
69
|
+
volume24h?: string;
|
|
70
|
+
uniqueHolders?: number;
|
|
71
|
+
createdAt?: string;
|
|
72
|
+
zoraComments?: {
|
|
73
|
+
count?: number;
|
|
74
|
+
};
|
|
75
|
+
mediaContent?: string;
|
|
76
|
+
mimeType?: string;
|
|
77
|
+
originalUri?: string;
|
|
78
|
+
downloadableUri?: string;
|
|
79
|
+
previewImage?: string;
|
|
80
|
+
height?: number;
|
|
81
|
+
width?: number;
|
|
82
|
+
blurhash?: string;
|
|
83
|
+
marketCap?: string;
|
|
84
|
+
marketCapDelta24h?: string;
|
|
85
|
+
};
|
|
86
|
+
cursor?: string;
|
|
87
|
+
}>;
|
|
88
|
+
pageInfo?: {
|
|
89
|
+
endCursor?: string;
|
|
90
|
+
hasNextPage?: boolean;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}, unknown, ThrowOnError>;
|
|
94
|
+
export declare const getMostValuable: <ThrowOnError extends boolean = false>(options?: Options<QueryInnerType, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
95
|
+
exploreList?: {
|
|
96
|
+
edges?: Array<{
|
|
97
|
+
node?: {
|
|
98
|
+
id?: string;
|
|
99
|
+
address?: string;
|
|
100
|
+
chainId?: number;
|
|
101
|
+
creatorProfile?: string;
|
|
102
|
+
profileId?: string;
|
|
103
|
+
handle?: string;
|
|
104
|
+
avatar?: {
|
|
105
|
+
mimeType?: string;
|
|
106
|
+
downloadableUri?: string;
|
|
107
|
+
height?: number;
|
|
108
|
+
width?: number;
|
|
109
|
+
blurhash?: string;
|
|
110
|
+
};
|
|
111
|
+
name?: string;
|
|
112
|
+
symbol?: string;
|
|
113
|
+
volume24h?: string;
|
|
114
|
+
uniqueHolders?: number;
|
|
115
|
+
createdAt?: string;
|
|
116
|
+
zoraComments?: {
|
|
117
|
+
count?: number;
|
|
118
|
+
};
|
|
119
|
+
mediaContent?: string;
|
|
120
|
+
mimeType?: string;
|
|
121
|
+
originalUri?: string;
|
|
122
|
+
downloadableUri?: string;
|
|
123
|
+
previewImage?: string;
|
|
124
|
+
height?: number;
|
|
125
|
+
width?: number;
|
|
126
|
+
blurhash?: string;
|
|
127
|
+
marketCap?: string;
|
|
128
|
+
marketCapDelta24h?: string;
|
|
129
|
+
};
|
|
130
|
+
cursor?: string;
|
|
131
|
+
}>;
|
|
132
|
+
pageInfo?: {
|
|
133
|
+
endCursor?: string;
|
|
134
|
+
hasNextPage?: boolean;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}, unknown, ThrowOnError>;
|
|
138
|
+
export declare const getNew: <ThrowOnError extends boolean = false>(options?: Options<QueryInnerType, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
139
|
+
exploreList?: {
|
|
140
|
+
edges?: Array<{
|
|
141
|
+
node?: {
|
|
142
|
+
id?: string;
|
|
143
|
+
address?: string;
|
|
144
|
+
chainId?: number;
|
|
145
|
+
creatorProfile?: string;
|
|
146
|
+
profileId?: string;
|
|
147
|
+
handle?: string;
|
|
148
|
+
avatar?: {
|
|
149
|
+
mimeType?: string;
|
|
150
|
+
downloadableUri?: string;
|
|
151
|
+
height?: number;
|
|
152
|
+
width?: number;
|
|
153
|
+
blurhash?: string;
|
|
154
|
+
};
|
|
155
|
+
name?: string;
|
|
156
|
+
symbol?: string;
|
|
157
|
+
volume24h?: string;
|
|
158
|
+
uniqueHolders?: number;
|
|
159
|
+
createdAt?: string;
|
|
160
|
+
zoraComments?: {
|
|
161
|
+
count?: number;
|
|
162
|
+
};
|
|
163
|
+
mediaContent?: string;
|
|
164
|
+
mimeType?: string;
|
|
165
|
+
originalUri?: string;
|
|
166
|
+
downloadableUri?: string;
|
|
167
|
+
previewImage?: string;
|
|
168
|
+
height?: number;
|
|
169
|
+
width?: number;
|
|
170
|
+
blurhash?: string;
|
|
171
|
+
marketCap?: string;
|
|
172
|
+
marketCapDelta24h?: string;
|
|
173
|
+
};
|
|
174
|
+
cursor?: string;
|
|
175
|
+
}>;
|
|
176
|
+
pageInfo?: {
|
|
177
|
+
endCursor?: string;
|
|
178
|
+
hasNextPage?: boolean;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
}, unknown, ThrowOnError>;
|
|
182
|
+
export declare const getLastTraded: <ThrowOnError extends boolean = false>(options?: Options<QueryInnerType, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
183
|
+
exploreList?: {
|
|
184
|
+
edges?: Array<{
|
|
185
|
+
node?: {
|
|
186
|
+
id?: string;
|
|
187
|
+
address?: string;
|
|
188
|
+
chainId?: number;
|
|
189
|
+
creatorProfile?: string;
|
|
190
|
+
profileId?: string;
|
|
191
|
+
handle?: string;
|
|
192
|
+
avatar?: {
|
|
193
|
+
mimeType?: string;
|
|
194
|
+
downloadableUri?: string;
|
|
195
|
+
height?: number;
|
|
196
|
+
width?: number;
|
|
197
|
+
blurhash?: string;
|
|
198
|
+
};
|
|
199
|
+
name?: string;
|
|
200
|
+
symbol?: string;
|
|
201
|
+
volume24h?: string;
|
|
202
|
+
uniqueHolders?: number;
|
|
203
|
+
createdAt?: string;
|
|
204
|
+
zoraComments?: {
|
|
205
|
+
count?: number;
|
|
206
|
+
};
|
|
207
|
+
mediaContent?: string;
|
|
208
|
+
mimeType?: string;
|
|
209
|
+
originalUri?: string;
|
|
210
|
+
downloadableUri?: string;
|
|
211
|
+
previewImage?: string;
|
|
212
|
+
height?: number;
|
|
213
|
+
width?: number;
|
|
214
|
+
blurhash?: string;
|
|
215
|
+
marketCap?: string;
|
|
216
|
+
marketCapDelta24h?: string;
|
|
217
|
+
};
|
|
218
|
+
cursor?: string;
|
|
219
|
+
}>;
|
|
220
|
+
pageInfo?: {
|
|
221
|
+
endCursor?: string;
|
|
222
|
+
hasNextPage?: boolean;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
}, unknown, ThrowOnError>;
|
|
226
|
+
export declare const getLastTradedUnique: <ThrowOnError extends boolean = false>(options?: Options<QueryInnerType, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
227
|
+
exploreList?: {
|
|
228
|
+
edges?: Array<{
|
|
229
|
+
node?: {
|
|
230
|
+
id?: string;
|
|
231
|
+
address?: string;
|
|
232
|
+
chainId?: number;
|
|
233
|
+
creatorProfile?: string;
|
|
234
|
+
profileId?: string;
|
|
235
|
+
handle?: string;
|
|
236
|
+
avatar?: {
|
|
237
|
+
mimeType?: string;
|
|
238
|
+
downloadableUri?: string;
|
|
239
|
+
height?: number;
|
|
240
|
+
width?: number;
|
|
241
|
+
blurhash?: string;
|
|
242
|
+
};
|
|
243
|
+
name?: string;
|
|
244
|
+
symbol?: string;
|
|
245
|
+
volume24h?: string;
|
|
246
|
+
uniqueHolders?: number;
|
|
247
|
+
createdAt?: string;
|
|
248
|
+
zoraComments?: {
|
|
249
|
+
count?: number;
|
|
250
|
+
};
|
|
251
|
+
mediaContent?: string;
|
|
252
|
+
mimeType?: string;
|
|
253
|
+
originalUri?: string;
|
|
254
|
+
downloadableUri?: string;
|
|
255
|
+
previewImage?: string;
|
|
256
|
+
height?: number;
|
|
257
|
+
width?: number;
|
|
258
|
+
blurhash?: string;
|
|
259
|
+
marketCap?: string;
|
|
260
|
+
marketCapDelta24h?: string;
|
|
261
|
+
};
|
|
262
|
+
cursor?: string;
|
|
263
|
+
}>;
|
|
264
|
+
pageInfo?: {
|
|
265
|
+
endCursor?: string;
|
|
266
|
+
hasNextPage?: boolean;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
}, unknown, ThrowOnError>;
|
|
270
|
+
export {};
|
|
271
|
+
//# sourceMappingURL=explore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore.d.ts","sourceRoot":"","sources":["../../src/client/explore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAElC,eAAO,MAAM,aAAa,GAAI,YAAY,SAAS,OAAO,oBAC9C,OAAO,CAAC,cAAc,EAAE,YAAY,CAAC;;aA8Cq9G,CAAC;gBAA8B,CAAC;kBAAuI,CAAC;uBAAqC,CAAC;uBAAqC,CAAC;8BAA4C,CAAC;yBAAuC,CAAC;sBAAoC,CAAC;sBAAoC,CAAC;4BAAoC,CAAC;mCAAiD,CAAC;0BAAwC,CAAC;yBAAuC,CAAC;4BAA0C,CAAC;;oBAAyD,CAAC;sBAAoC,CAAC;yBAAuC,CAAC;6BAA2C,CAAC;yBAAuC,CAAC;4BAA0C,CAAC;yBAAiC,CAAC;;4BAAiE,CAAC;wBAAsC,CAAC;2BAAyC,CAAC;+BAA6C,CAAC;4BAA0C,CAAC;sBAAoC,CAAC;qBAAmC,CAAC;wBAAsC,CAAC;yBAAuC,CAAC;iCAA+C,CAAC;;kBAAmD,CAAC;;gBAA+H,CAAC;qBAA0I,CAAC;uBAAgJ,CAAC;;;yBAzCpxK,CAAC;AAEL,eAAO,MAAM,eAAe,GAAI,YAAY,SAAS,OAAO,oBAChD,OAAO,CAAC,cAAc,EAAE,YAAY,CAAC;;aAsCq9G,CAAC;gBAA8B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AAY,CAAC;;aAMq9G,CAAC;gBAA8B,CAAC;kBAAuI,CAAC;uBAAqC,CAAC;uBAAqC,CAAC;8BAA4C,CAAC;yBAAuC,CAAC;sBAAoC,CAAC;sBAAoC,CAAC;4BAAoC,CAAC;mCAAiD,CAAC;0BAAwC,CAAC;yBAAuC,CAAC;4BAA0C,CAAC;;oBAAyD,CAAC;sBAAoC,CAAC;yBAAuC,CAAC;6BAA2C,CAAC;yBAAuC,CAAC;4BAA0C,CAAC;yBAAiC,CAAC;;4BAAiE,CAAC;wBAAsC,CAAC;2BAAyC,CAAC;+BAA6C,CAAC;4BAA0C,CAAC;sBAAoC,CAAC;qBAAmC,CAAC;wBAAsC,CAAC;yBAAuC,CAAC;iCAA+C,CAAC;;kBAAmD,CAAC;;gBAA+H,CAAC;qBAA0I,CAAC;uBAAgJ,CAAC;;;yBADpxK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
2
|
+
import type { GetCoinDetailsData, GetCoinCommentsData, GetExploreData } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
export declare const getCoinDetails: <ThrowOnError extends boolean = false>(options: Options<GetCoinDetailsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
17
|
+
zora20Token?: {
|
|
18
|
+
id?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
address?: string;
|
|
22
|
+
symbol?: string;
|
|
23
|
+
totalSupply?: string;
|
|
24
|
+
totalVolume?: string;
|
|
25
|
+
volume24h?: string;
|
|
26
|
+
createdAt?: string;
|
|
27
|
+
creatorAddress?: string;
|
|
28
|
+
creatorEarnings?: Array<{
|
|
29
|
+
amount?: {
|
|
30
|
+
currency?: {
|
|
31
|
+
address?: string;
|
|
32
|
+
};
|
|
33
|
+
amountRaw?: string;
|
|
34
|
+
amountDecimal?: number;
|
|
35
|
+
};
|
|
36
|
+
amountUsd?: string;
|
|
37
|
+
}>;
|
|
38
|
+
marketCap?: string;
|
|
39
|
+
marketCapDelta24h?: string;
|
|
40
|
+
chainId?: number;
|
|
41
|
+
chainName?: "EthereumMainnet" | "EthereumRopsten" | "EthereumRinkeby" | "EthereumGoerli" | "EthereumSepolia" | "OptimismMainnet" | "OptimismGoerli" | "ZoraGoerli" | "ZoraSepolia" | "ZoraMainnet" | "BaseMainnet" | "BaseGoerli" | "BaseSepolia" | "BaseAnvil" | "PGNMainnet" | "ArbitrumMainnet" | "BlastMainnet";
|
|
42
|
+
creatorProfile?: string;
|
|
43
|
+
handle?: string;
|
|
44
|
+
avatar?: {
|
|
45
|
+
small?: string;
|
|
46
|
+
medium?: string;
|
|
47
|
+
blurhash?: string;
|
|
48
|
+
};
|
|
49
|
+
bio?: string;
|
|
50
|
+
media?: {
|
|
51
|
+
mimeType?: string;
|
|
52
|
+
originalUri?: string;
|
|
53
|
+
format?: string;
|
|
54
|
+
previewImage?: string;
|
|
55
|
+
medium?: string;
|
|
56
|
+
blurhash?: string;
|
|
57
|
+
};
|
|
58
|
+
transfers?: {
|
|
59
|
+
count?: number;
|
|
60
|
+
};
|
|
61
|
+
uniqueHolders?: number;
|
|
62
|
+
};
|
|
63
|
+
}, unknown, ThrowOnError>;
|
|
64
|
+
export declare const getCoinComments: <ThrowOnError extends boolean = false>(options: Options<GetCoinCommentsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
65
|
+
zora20Token?: {
|
|
66
|
+
zoraComments?: {
|
|
67
|
+
pageInfo?: {
|
|
68
|
+
endCursor?: string;
|
|
69
|
+
hasNextPage?: boolean;
|
|
70
|
+
};
|
|
71
|
+
count?: number;
|
|
72
|
+
edges?: Array<{
|
|
73
|
+
node?: string;
|
|
74
|
+
txHash?: string;
|
|
75
|
+
comment?: string;
|
|
76
|
+
userAddress?: string;
|
|
77
|
+
timestamp?: number;
|
|
78
|
+
userProfile?: string;
|
|
79
|
+
id?: string;
|
|
80
|
+
handle?: string;
|
|
81
|
+
avatar?: {
|
|
82
|
+
previewImage?: string;
|
|
83
|
+
blurhash?: string;
|
|
84
|
+
small?: string;
|
|
85
|
+
};
|
|
86
|
+
replies?: {
|
|
87
|
+
count?: number;
|
|
88
|
+
edges?: Array<{
|
|
89
|
+
node?: {
|
|
90
|
+
txHash?: string;
|
|
91
|
+
comment?: string;
|
|
92
|
+
userAddress?: string;
|
|
93
|
+
timestamp?: number;
|
|
94
|
+
userProfile?: string;
|
|
95
|
+
id?: string;
|
|
96
|
+
handle?: string;
|
|
97
|
+
avatar?: {
|
|
98
|
+
previewImage?: string;
|
|
99
|
+
blurhash?: string;
|
|
100
|
+
small?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}>;
|
|
104
|
+
};
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}, unknown, ThrowOnError>;
|
|
109
|
+
export declare const getExplore: <ThrowOnError extends boolean = false>(options: Options<GetExploreData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
110
|
+
exploreList?: {
|
|
111
|
+
edges?: Array<{
|
|
112
|
+
node?: {
|
|
113
|
+
id?: string;
|
|
114
|
+
address?: string;
|
|
115
|
+
chainId?: number;
|
|
116
|
+
creatorProfile?: string;
|
|
117
|
+
profileId?: string;
|
|
118
|
+
handle?: string;
|
|
119
|
+
avatar?: {
|
|
120
|
+
mimeType?: string;
|
|
121
|
+
downloadableUri?: string;
|
|
122
|
+
height?: number;
|
|
123
|
+
width?: number;
|
|
124
|
+
blurhash?: string;
|
|
125
|
+
};
|
|
126
|
+
name?: string;
|
|
127
|
+
symbol?: string;
|
|
128
|
+
volume24h?: string;
|
|
129
|
+
uniqueHolders?: number;
|
|
130
|
+
createdAt?: string;
|
|
131
|
+
zoraComments?: {
|
|
132
|
+
count?: number;
|
|
133
|
+
};
|
|
134
|
+
mediaContent?: string;
|
|
135
|
+
mimeType?: string;
|
|
136
|
+
originalUri?: string;
|
|
137
|
+
downloadableUri?: string;
|
|
138
|
+
previewImage?: string;
|
|
139
|
+
height?: number;
|
|
140
|
+
width?: number;
|
|
141
|
+
blurhash?: string;
|
|
142
|
+
marketCap?: string;
|
|
143
|
+
marketCapDelta24h?: string;
|
|
144
|
+
};
|
|
145
|
+
cursor?: string;
|
|
146
|
+
}>;
|
|
147
|
+
pageInfo?: {
|
|
148
|
+
endCursor?: string;
|
|
149
|
+
hasNextPage?: boolean;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}, unknown, ThrowOnError>;
|
|
153
|
+
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../src/client/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAE,kBAAkB,EAA0B,mBAAmB,EAA2B,cAAc,EAAsB,MAAM,aAAa,CAAC;AAGhK,MAAM,MAAM,OAAO,CAAC,KAAK,SA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