@zoralabs/coins-sdk 0.0.2-sdkalpha.7 → 0.0.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/CHANGELOG.md +12 -0
- package/README.md +834 -410
- package/dist/actions/createCoin.d.ts +4 -3
- package/dist/actions/createCoin.d.ts.map +1 -1
- package/dist/actions/tradeCoin.d.ts +5 -4
- package/dist/actions/tradeCoin.d.ts.map +1 -1
- package/dist/actions/updateCoinURI.d.ts +4 -3
- package/dist/actions/updateCoinURI.d.ts.map +1 -1
- package/dist/actions/updatePayoutRecipient.d.ts +4 -3
- package/dist/actions/updatePayoutRecipient.d.ts.map +1 -1
- package/dist/api/explore.d.ts +15 -336
- package/dist/api/explore.d.ts.map +1 -1
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/queries.d.ts +100 -223
- package/dist/api/queries.d.ts.map +1 -1
- package/dist/api/query-types.d.ts +3 -0
- package/dist/api/query-types.d.ts.map +1 -0
- package/dist/index.cjs +160 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -20
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/actions/createCoin.ts +2 -2
- package/src/actions/tradeCoin.ts +3 -4
- package/src/actions/updateCoinURI.ts +2 -2
- package/src/actions/updatePayoutRecipient.ts +2 -2
- package/src/api/explore.ts +46 -28
- package/src/api/index.ts +2 -0
- package/src/api/queries.ts +55 -8
- package/src/api/query-types.ts +8 -0
- package/src/index.ts +4 -3
- package/dist/utils/retries.d.ts +0 -7
- package/dist/utils/retries.d.ts.map +0 -1
- package/src/utils/retries.ts +0 -49
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { zoraFactoryImplABI } from "@zoralabs/coins";
|
|
2
|
-
import { Address,
|
|
2
|
+
import { Address, TransactionReceipt, WalletClient, SimulateContractParameters, ContractEventArgsFromTopics } from "viem";
|
|
3
|
+
import { GenericPublicClient } from "src/utils/genericPublicClient";
|
|
3
4
|
export type CoinDeploymentLogArgs = ContractEventArgsFromTopics<typeof zoraFactoryImplABI, "CoinCreated">;
|
|
4
5
|
export type CreateCoinArgs = {
|
|
5
6
|
name: string;
|
|
@@ -18,11 +19,11 @@ export declare function createCoinCall({ name, symbol, uri, owners, payoutRecipi
|
|
|
18
19
|
* @returns The deployment information if found
|
|
19
20
|
*/
|
|
20
21
|
export declare function getCoinCreateFromLogs(receipt: TransactionReceipt): CoinDeploymentLogArgs | undefined;
|
|
21
|
-
export declare function createCoin(call: CreateCoinArgs, walletClient: WalletClient, publicClient:
|
|
22
|
+
export declare function createCoin(call: CreateCoinArgs, walletClient: WalletClient, publicClient: GenericPublicClient, options?: {
|
|
22
23
|
gasMultiplier?: number;
|
|
23
24
|
}): Promise<{
|
|
24
25
|
hash: `0x${string}`;
|
|
25
|
-
receipt:
|
|
26
|
+
receipt: any;
|
|
26
27
|
address: `0x${string}` | undefined;
|
|
27
28
|
deployment: {
|
|
28
29
|
caller: `0x${string}`;
|
|
@@ -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,
|
|
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,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,2BAA2B,EAE5B,MAAM,MAAM,CAAC;AAGd,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAC7D,OAAO,kBAAkB,EACzB,aAAa,CACd,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,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,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,MAAM,EACN,GAAG,EACH,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,mBAAmB,EACjC,OAAO,CAAC,EAAE;IACR,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;;;;;;;;;;;;;;;;GAuBF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { coinABI } from "@zoralabs/coins";
|
|
2
|
-
import { Address,
|
|
2
|
+
import { Address, TransactionReceipt, WalletClient, SimulateContractParameters, ContractEventArgsFromTopics } from "viem";
|
|
3
|
+
import { GenericPublicClient } from "src/utils/genericPublicClient";
|
|
3
4
|
export type SellEventArgs = ContractEventArgsFromTopics<typeof coinABI, "CoinSell">;
|
|
4
5
|
export type BuyEventArgs = ContractEventArgsFromTopics<typeof coinABI, "CoinBuy">;
|
|
5
6
|
export type TradeEventArgs = SellEventArgs | BuyEventArgs;
|
|
@@ -14,7 +15,7 @@ export type TradeEventArgs = SellEventArgs | BuyEventArgs;
|
|
|
14
15
|
export declare function simulateBuy({ target, requestedOrderSize, publicClient, }: {
|
|
15
16
|
target: Address;
|
|
16
17
|
requestedOrderSize: bigint;
|
|
17
|
-
publicClient:
|
|
18
|
+
publicClient: GenericPublicClient;
|
|
18
19
|
}): Promise<{
|
|
19
20
|
orderSize: bigint;
|
|
20
21
|
amountOut: bigint;
|
|
@@ -66,9 +67,9 @@ export declare function getTradeFromLogs(receipt: TransactionReceipt, direction:
|
|
|
66
67
|
* trade: TradeEventArgs | undefined
|
|
67
68
|
* }>} The transaction result with trade details
|
|
68
69
|
*/
|
|
69
|
-
export declare function tradeCoin(params: TradeParams, walletClient: WalletClient, publicClient:
|
|
70
|
+
export declare function tradeCoin(params: TradeParams, walletClient: WalletClient, publicClient: GenericPublicClient): Promise<{
|
|
70
71
|
hash: `0x${string}`;
|
|
71
|
-
receipt:
|
|
72
|
+
receipt: any;
|
|
72
73
|
trade: TradeEventArgs | undefined;
|
|
73
74
|
}>;
|
|
74
75
|
//# sourceMappingURL=tradeCoin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tradeCoin.d.ts","sourceRoot":"","sources":["../../src/actions/tradeCoin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EACL,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"tradeCoin.d.ts","sourceRoot":"","sources":["../../src/actions/tradeCoin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAG1B,2BAA2B,EAE5B,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,MAAM,MAAM,aAAa,GAAG,2BAA2B,CACrD,OAAO,OAAO,EACd,UAAU,CACX,CAA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,12 +1,13 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, SimulateContractParameters, WalletClient } from "viem";
|
|
2
|
+
import { GenericPublicClient } from "src/utils/genericPublicClient";
|
|
2
3
|
export type UpdateCoinURIArgs = {
|
|
3
4
|
coin: Address;
|
|
4
5
|
newURI: string;
|
|
5
6
|
};
|
|
6
7
|
export declare function updateCoinURICall({ newURI, coin, }: UpdateCoinURIArgs): SimulateContractParameters;
|
|
7
|
-
export declare function updateCoinURI(args: UpdateCoinURIArgs, walletClient: WalletClient, publicClient:
|
|
8
|
+
export declare function updateCoinURI(args: UpdateCoinURIArgs, walletClient: WalletClient, publicClient: GenericPublicClient): Promise<{
|
|
8
9
|
hash: `0x${string}`;
|
|
9
|
-
receipt:
|
|
10
|
+
receipt: any;
|
|
10
11
|
uriUpdated: ({
|
|
11
12
|
address: Address;
|
|
12
13
|
blockHash: `0x${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCoinURI.d.ts","sourceRoot":"","sources":["../../src/actions/updateCoinURI.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EAEP,
|
|
1
|
+
{"version":3,"file":"updateCoinURI.d.ts","sourceRoot":"","sources":["../../src/actions/updateCoinURI.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EAEP,0BAA0B,EAC1B,YAAY,EACb,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,IAAI,GACL,EAAE,iBAAiB,GAAG,0BAA0B,CAWhD;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,iBAAiB,EACvB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,mBAAmB;;;;;;;;;;;;;;;;;GAgBlC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, SimulateContractParameters, WalletClient } from "viem";
|
|
2
|
+
import { GenericPublicClient } from "src/utils/genericPublicClient";
|
|
2
3
|
export type UpdatePayoutRecipientArgs = {
|
|
3
4
|
coin: Address;
|
|
4
5
|
newPayoutRecipient: string;
|
|
5
6
|
};
|
|
6
7
|
export declare function updatePayoutRecipientCall({ newPayoutRecipient, coin, }: UpdatePayoutRecipientArgs): SimulateContractParameters;
|
|
7
|
-
export declare function updatePayoutRecipient(args: UpdatePayoutRecipientArgs, walletClient: WalletClient, publicClient:
|
|
8
|
+
export declare function updatePayoutRecipient(args: UpdatePayoutRecipientArgs, walletClient: WalletClient, publicClient: GenericPublicClient): Promise<{
|
|
8
9
|
hash: `0x${string}`;
|
|
9
|
-
receipt:
|
|
10
|
+
receipt: any;
|
|
10
11
|
payoutRecipientUpdated: ({
|
|
11
12
|
address: Address;
|
|
12
13
|
blockHash: `0x${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatePayoutRecipient.d.ts","sourceRoot":"","sources":["../../src/actions/updatePayoutRecipient.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EAEP,
|
|
1
|
+
{"version":3,"file":"updatePayoutRecipient.d.ts","sourceRoot":"","sources":["../../src/actions/updatePayoutRecipient.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EAEP,0BAA0B,EAC1B,YAAY,EACb,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,kBAAkB,EAClB,IAAI,GACL,EAAE,yBAAyB,GAAG,0BAA0B,CAOxD;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,yBAAyB,EAC/B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;GAgBlC"}
|
package/dist/api/explore.d.ts
CHANGED
|
@@ -1,347 +1,26 @@
|
|
|
1
|
-
import type { GetExploreData } from "../client/types.gen";
|
|
2
|
-
import {
|
|
1
|
+
import type { GetExploreData, GetExploreResponse } from "../client/types.gen";
|
|
2
|
+
import { RequestOptionsType } from "./query-types";
|
|
3
3
|
/**
|
|
4
4
|
* The inner type for the explore queries that omits listType.
|
|
5
5
|
* This is used to create the query object for the explore queries.
|
|
6
6
|
*/
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export type QueryRequestType = Omit<GetExploreData["query"], "listType">;
|
|
8
|
+
type ExploreResponse = {
|
|
9
|
+
data?: GetExploreResponse;
|
|
10
|
+
};
|
|
11
|
+
export type ListType = GetExploreData["query"]["listType"];
|
|
12
|
+
export type { ExploreResponse };
|
|
13
|
+
export type { GetExploreData };
|
|
10
14
|
/** Get top gaining coins */
|
|
11
|
-
export declare const getCoinsTopGainers:
|
|
12
|
-
exploreList?: {
|
|
13
|
-
edges?: Array<{
|
|
14
|
-
node?: {
|
|
15
|
-
id?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
address?: string;
|
|
19
|
-
symbol?: string;
|
|
20
|
-
totalSupply?: string;
|
|
21
|
-
totalVolume?: string;
|
|
22
|
-
volume24h?: string;
|
|
23
|
-
createdAt?: string;
|
|
24
|
-
creatorAddress?: string;
|
|
25
|
-
creatorEarnings?: Array<{
|
|
26
|
-
amount?: {
|
|
27
|
-
currency?: {
|
|
28
|
-
address?: string;
|
|
29
|
-
};
|
|
30
|
-
amountRaw?: string;
|
|
31
|
-
amountDecimal?: number;
|
|
32
|
-
};
|
|
33
|
-
amountUsd?: string;
|
|
34
|
-
}>;
|
|
35
|
-
marketCap?: string;
|
|
36
|
-
marketCapDelta24h?: string;
|
|
37
|
-
chainId?: number;
|
|
38
|
-
creatorProfile?: string;
|
|
39
|
-
handle?: string;
|
|
40
|
-
avatar?: {
|
|
41
|
-
previewImage?: string;
|
|
42
|
-
blurhash?: string;
|
|
43
|
-
small?: string;
|
|
44
|
-
};
|
|
45
|
-
media?: {
|
|
46
|
-
mimeType?: string;
|
|
47
|
-
originalUri?: string;
|
|
48
|
-
format?: string;
|
|
49
|
-
previewImage?: string;
|
|
50
|
-
medium?: string;
|
|
51
|
-
blurhash?: string;
|
|
52
|
-
};
|
|
53
|
-
transfers?: {
|
|
54
|
-
count?: number;
|
|
55
|
-
};
|
|
56
|
-
uniqueHolders?: number;
|
|
57
|
-
};
|
|
58
|
-
cursor?: string;
|
|
59
|
-
}>;
|
|
60
|
-
pageInfo?: {
|
|
61
|
-
endCursor?: string;
|
|
62
|
-
hasNextPage?: boolean;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}, unknown, T>;
|
|
15
|
+
export declare const getCoinsTopGainers: (query?: QueryRequestType, options?: RequestOptionsType<GetExploreData>) => Promise<ExploreResponse>;
|
|
66
16
|
/** Get coins with highest 24h volume */
|
|
67
|
-
export declare const getCoinsTopVolume24h:
|
|
68
|
-
exploreList?: {
|
|
69
|
-
edges?: Array<{
|
|
70
|
-
node?: {
|
|
71
|
-
id?: string;
|
|
72
|
-
name?: string;
|
|
73
|
-
description?: string;
|
|
74
|
-
address?: string;
|
|
75
|
-
symbol?: string;
|
|
76
|
-
totalSupply?: string;
|
|
77
|
-
totalVolume?: string;
|
|
78
|
-
volume24h?: string;
|
|
79
|
-
createdAt?: string;
|
|
80
|
-
creatorAddress?: string;
|
|
81
|
-
creatorEarnings?: Array<{
|
|
82
|
-
amount?: {
|
|
83
|
-
currency?: {
|
|
84
|
-
address?: string;
|
|
85
|
-
};
|
|
86
|
-
amountRaw?: string;
|
|
87
|
-
amountDecimal?: number;
|
|
88
|
-
};
|
|
89
|
-
amountUsd?: string;
|
|
90
|
-
}>;
|
|
91
|
-
marketCap?: string;
|
|
92
|
-
marketCapDelta24h?: string;
|
|
93
|
-
chainId?: number;
|
|
94
|
-
creatorProfile?: string;
|
|
95
|
-
handle?: string;
|
|
96
|
-
avatar?: {
|
|
97
|
-
previewImage?: string;
|
|
98
|
-
blurhash?: string;
|
|
99
|
-
small?: string;
|
|
100
|
-
};
|
|
101
|
-
media?: {
|
|
102
|
-
mimeType?: string;
|
|
103
|
-
originalUri?: string;
|
|
104
|
-
format?: string;
|
|
105
|
-
previewImage?: string;
|
|
106
|
-
medium?: string;
|
|
107
|
-
blurhash?: string;
|
|
108
|
-
};
|
|
109
|
-
transfers?: {
|
|
110
|
-
count?: number;
|
|
111
|
-
};
|
|
112
|
-
uniqueHolders?: number;
|
|
113
|
-
};
|
|
114
|
-
cursor?: string;
|
|
115
|
-
}>;
|
|
116
|
-
pageInfo?: {
|
|
117
|
-
endCursor?: string;
|
|
118
|
-
hasNextPage?: boolean;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
}, unknown, T>;
|
|
17
|
+
export declare const getCoinsTopVolume24h: (query?: QueryRequestType, options?: RequestOptionsType<GetExploreData>) => Promise<ExploreResponse>;
|
|
122
18
|
/** Get most valuable coins */
|
|
123
|
-
export declare const getCoinsMostValuable:
|
|
124
|
-
exploreList?: {
|
|
125
|
-
edges?: Array<{
|
|
126
|
-
node?: {
|
|
127
|
-
id?: string;
|
|
128
|
-
name?: string;
|
|
129
|
-
description?: string;
|
|
130
|
-
address?: string;
|
|
131
|
-
symbol?: string;
|
|
132
|
-
totalSupply?: string;
|
|
133
|
-
totalVolume?: string;
|
|
134
|
-
volume24h?: string;
|
|
135
|
-
createdAt?: string;
|
|
136
|
-
creatorAddress?: string;
|
|
137
|
-
creatorEarnings?: Array<{
|
|
138
|
-
amount?: {
|
|
139
|
-
currency?: {
|
|
140
|
-
address?: string;
|
|
141
|
-
};
|
|
142
|
-
amountRaw?: string;
|
|
143
|
-
amountDecimal?: number;
|
|
144
|
-
};
|
|
145
|
-
amountUsd?: string;
|
|
146
|
-
}>;
|
|
147
|
-
marketCap?: string;
|
|
148
|
-
marketCapDelta24h?: string;
|
|
149
|
-
chainId?: number;
|
|
150
|
-
creatorProfile?: string;
|
|
151
|
-
handle?: string;
|
|
152
|
-
avatar?: {
|
|
153
|
-
previewImage?: string;
|
|
154
|
-
blurhash?: string;
|
|
155
|
-
small?: string;
|
|
156
|
-
};
|
|
157
|
-
media?: {
|
|
158
|
-
mimeType?: string;
|
|
159
|
-
originalUri?: string;
|
|
160
|
-
format?: string;
|
|
161
|
-
previewImage?: string;
|
|
162
|
-
medium?: string;
|
|
163
|
-
blurhash?: string;
|
|
164
|
-
};
|
|
165
|
-
transfers?: {
|
|
166
|
-
count?: number;
|
|
167
|
-
};
|
|
168
|
-
uniqueHolders?: number;
|
|
169
|
-
};
|
|
170
|
-
cursor?: string;
|
|
171
|
-
}>;
|
|
172
|
-
pageInfo?: {
|
|
173
|
-
endCursor?: string;
|
|
174
|
-
hasNextPage?: boolean;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
}, unknown, T>;
|
|
19
|
+
export declare const getCoinsMostValuable: (query?: QueryRequestType, options?: RequestOptionsType<GetExploreData>) => Promise<ExploreResponse>;
|
|
178
20
|
/** Get newly created coins */
|
|
179
|
-
export declare const getCoinsNew:
|
|
180
|
-
exploreList?: {
|
|
181
|
-
edges?: Array<{
|
|
182
|
-
node?: {
|
|
183
|
-
id?: string;
|
|
184
|
-
name?: string;
|
|
185
|
-
description?: string;
|
|
186
|
-
address?: string;
|
|
187
|
-
symbol?: string;
|
|
188
|
-
totalSupply?: string;
|
|
189
|
-
totalVolume?: string;
|
|
190
|
-
volume24h?: string;
|
|
191
|
-
createdAt?: string;
|
|
192
|
-
creatorAddress?: string;
|
|
193
|
-
creatorEarnings?: Array<{
|
|
194
|
-
amount?: {
|
|
195
|
-
currency?: {
|
|
196
|
-
address?: string;
|
|
197
|
-
};
|
|
198
|
-
amountRaw?: string;
|
|
199
|
-
amountDecimal?: number;
|
|
200
|
-
};
|
|
201
|
-
amountUsd?: string;
|
|
202
|
-
}>;
|
|
203
|
-
marketCap?: string;
|
|
204
|
-
marketCapDelta24h?: string;
|
|
205
|
-
chainId?: number;
|
|
206
|
-
creatorProfile?: string;
|
|
207
|
-
handle?: string;
|
|
208
|
-
avatar?: {
|
|
209
|
-
previewImage?: string;
|
|
210
|
-
blurhash?: string;
|
|
211
|
-
small?: string;
|
|
212
|
-
};
|
|
213
|
-
media?: {
|
|
214
|
-
mimeType?: string;
|
|
215
|
-
originalUri?: string;
|
|
216
|
-
format?: string;
|
|
217
|
-
previewImage?: string;
|
|
218
|
-
medium?: string;
|
|
219
|
-
blurhash?: string;
|
|
220
|
-
};
|
|
221
|
-
transfers?: {
|
|
222
|
-
count?: number;
|
|
223
|
-
};
|
|
224
|
-
uniqueHolders?: number;
|
|
225
|
-
};
|
|
226
|
-
cursor?: string;
|
|
227
|
-
}>;
|
|
228
|
-
pageInfo?: {
|
|
229
|
-
endCursor?: string;
|
|
230
|
-
hasNextPage?: boolean;
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
}, unknown, T>;
|
|
21
|
+
export declare const getCoinsNew: (query?: QueryRequestType, options?: RequestOptionsType<GetExploreData>) => Promise<ExploreResponse>;
|
|
234
22
|
/** Get recently traded coins */
|
|
235
|
-
export declare const getCoinsLastTraded:
|
|
236
|
-
exploreList?: {
|
|
237
|
-
edges?: Array<{
|
|
238
|
-
node?: {
|
|
239
|
-
id?: string;
|
|
240
|
-
name?: string;
|
|
241
|
-
description?: string;
|
|
242
|
-
address?: string;
|
|
243
|
-
symbol?: string;
|
|
244
|
-
totalSupply?: string;
|
|
245
|
-
totalVolume?: string;
|
|
246
|
-
volume24h?: string;
|
|
247
|
-
createdAt?: string;
|
|
248
|
-
creatorAddress?: string;
|
|
249
|
-
creatorEarnings?: Array<{
|
|
250
|
-
amount?: {
|
|
251
|
-
currency?: {
|
|
252
|
-
address?: string;
|
|
253
|
-
};
|
|
254
|
-
amountRaw?: string;
|
|
255
|
-
amountDecimal?: number;
|
|
256
|
-
};
|
|
257
|
-
amountUsd?: string;
|
|
258
|
-
}>;
|
|
259
|
-
marketCap?: string;
|
|
260
|
-
marketCapDelta24h?: string;
|
|
261
|
-
chainId?: number;
|
|
262
|
-
creatorProfile?: string;
|
|
263
|
-
handle?: string;
|
|
264
|
-
avatar?: {
|
|
265
|
-
previewImage?: string;
|
|
266
|
-
blurhash?: string;
|
|
267
|
-
small?: string;
|
|
268
|
-
};
|
|
269
|
-
media?: {
|
|
270
|
-
mimeType?: string;
|
|
271
|
-
originalUri?: string;
|
|
272
|
-
format?: string;
|
|
273
|
-
previewImage?: string;
|
|
274
|
-
medium?: string;
|
|
275
|
-
blurhash?: string;
|
|
276
|
-
};
|
|
277
|
-
transfers?: {
|
|
278
|
-
count?: number;
|
|
279
|
-
};
|
|
280
|
-
uniqueHolders?: number;
|
|
281
|
-
};
|
|
282
|
-
cursor?: string;
|
|
283
|
-
}>;
|
|
284
|
-
pageInfo?: {
|
|
285
|
-
endCursor?: string;
|
|
286
|
-
hasNextPage?: boolean;
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
}, unknown, T>;
|
|
23
|
+
export declare const getCoinsLastTraded: (query?: QueryRequestType, options?: RequestOptionsType<GetExploreData>) => Promise<ExploreResponse>;
|
|
290
24
|
/** Get recently traded unique coins */
|
|
291
|
-
export declare const getCoinsLastTradedUnique:
|
|
292
|
-
exploreList?: {
|
|
293
|
-
edges?: Array<{
|
|
294
|
-
node?: {
|
|
295
|
-
id?: string;
|
|
296
|
-
name?: string;
|
|
297
|
-
description?: string;
|
|
298
|
-
address?: string;
|
|
299
|
-
symbol?: string;
|
|
300
|
-
totalSupply?: string;
|
|
301
|
-
totalVolume?: string;
|
|
302
|
-
volume24h?: string;
|
|
303
|
-
createdAt?: string;
|
|
304
|
-
creatorAddress?: string;
|
|
305
|
-
creatorEarnings?: Array<{
|
|
306
|
-
amount?: {
|
|
307
|
-
currency?: {
|
|
308
|
-
address?: string;
|
|
309
|
-
};
|
|
310
|
-
amountRaw?: string;
|
|
311
|
-
amountDecimal?: number;
|
|
312
|
-
};
|
|
313
|
-
amountUsd?: string;
|
|
314
|
-
}>;
|
|
315
|
-
marketCap?: string;
|
|
316
|
-
marketCapDelta24h?: string;
|
|
317
|
-
chainId?: number;
|
|
318
|
-
creatorProfile?: string;
|
|
319
|
-
handle?: string;
|
|
320
|
-
avatar?: {
|
|
321
|
-
previewImage?: string;
|
|
322
|
-
blurhash?: string;
|
|
323
|
-
small?: string;
|
|
324
|
-
};
|
|
325
|
-
media?: {
|
|
326
|
-
mimeType?: string;
|
|
327
|
-
originalUri?: string;
|
|
328
|
-
format?: string;
|
|
329
|
-
previewImage?: string;
|
|
330
|
-
medium?: string;
|
|
331
|
-
blurhash?: string;
|
|
332
|
-
};
|
|
333
|
-
transfers?: {
|
|
334
|
-
count?: number;
|
|
335
|
-
};
|
|
336
|
-
uniqueHolders?: number;
|
|
337
|
-
};
|
|
338
|
-
cursor?: string;
|
|
339
|
-
}>;
|
|
340
|
-
pageInfo?: {
|
|
341
|
-
endCursor?: string;
|
|
342
|
-
hasNextPage?: boolean;
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
}, unknown, T>;
|
|
346
|
-
export {};
|
|
25
|
+
export declare const getCoinsLastTradedUnique: (query?: QueryRequestType, options?: RequestOptionsType<GetExploreData>) => Promise<ExploreResponse>;
|
|
347
26
|
//# sourceMappingURL=explore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explore.d.ts","sourceRoot":"","sources":["../../src/api/explore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"explore.d.ts","sourceRoot":"","sources":["../../src/api/explore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,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GED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAE/B,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAI/B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
|