@codex-data/sdk 1.0.36 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resources/graphql.d.ts +69 -14
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +5 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/sdk/Subscribe.js +5 -5
- package/dist/sdk/generated/gql.d.ts +24 -24
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +12 -12
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +95 -14
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +17 -14
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +2 -3
- package/dist/scripts/buildSdk.d.ts +0 -2
- package/dist/scripts/buildSdk.d.ts.map +0 -1
- package/dist/scripts/buildSdk.js +0 -135
- package/dist/scripts/buildSdk.js.map +0 -1
- package/dist/scripts/generateGraphql.d.ts +0 -31
- package/dist/scripts/generateGraphql.d.ts.map +0 -1
- package/dist/scripts/generateGraphql.js +0 -224
- package/dist/scripts/generateGraphql.js.map +0 -1
- package/dist/scripts/generateNetworkConfigs.d.ts +0 -2
- package/dist/scripts/generateNetworkConfigs.d.ts.map +0 -1
- package/dist/scripts/generateNetworkConfigs.js +0 -243
- package/dist/scripts/generateNetworkConfigs.js.map +0 -1
- package/src/index.ts +0 -2
- package/src/resources/.keep +0 -0
- package/src/resources/generated_mutations/BackfillWalletAggregates.graphql +0 -6
- package/src/resources/generated_mutations/CreateApiTokens.graphql +0 -9
- package/src/resources/generated_mutations/CreateWebhooks.graphql +0 -472
- package/src/resources/generated_mutations/DeleteApiToken.graphql +0 -3
- package/src/resources/generated_mutations/DeleteWebhooks.graphql +0 -5
- package/src/resources/generated_queries/ApiToken.graphql +0 -9
- package/src/resources/generated_queries/ApiTokens.graphql +0 -9
- package/src/resources/generated_queries/Balances.graphql +0 -97
- package/src/resources/generated_queries/Blocks.graphql +0 -7
- package/src/resources/generated_queries/ChartUrls.graphql +0 -7
- package/src/resources/generated_queries/DetailedWalletStats.graphql +0 -197
- package/src/resources/generated_queries/FilterExchanges.graphql +0 -43
- package/src/resources/generated_queries/FilterNftCollections.graphql +0 -569
- package/src/resources/generated_queries/FilterNftParallelAssets.graphql +0 -60
- package/src/resources/generated_queries/FilterNftPoolCollections.graphql +0 -71
- package/src/resources/generated_queries/FilterNftPools.graphql +0 -124
- package/src/resources/generated_queries/FilterPairs.graphql +0 -447
- package/src/resources/generated_queries/FilterTokenWallets.graphql +0 -144
- package/src/resources/generated_queries/FilterTokens.graphql +0 -570
- package/src/resources/generated_queries/FilterWallets.graphql +0 -57
- package/src/resources/generated_queries/GetBars.graphql +0 -232
- package/src/resources/generated_queries/GetCommunityNotes.graphql +0 -140
- package/src/resources/generated_queries/GetDetailedNftStats.graphql +0 -831
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +0 -990
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +0 -974
- package/src/resources/generated_queries/GetEventLabels.graphql +0 -35
- package/src/resources/generated_queries/GetExchanges.graphql +0 -12
- package/src/resources/generated_queries/GetNetworkConfigs.graphql +0 -129
- package/src/resources/generated_queries/GetNetworkStats.graphql +0 -20
- package/src/resources/generated_queries/GetNetworkStatus.graphql +0 -8
- package/src/resources/generated_queries/GetNetworks.graphql +0 -7
- package/src/resources/generated_queries/GetNftAssets.graphql +0 -59
- package/src/resources/generated_queries/GetNftCollectionMetadata.graphql +0 -75
- package/src/resources/generated_queries/GetNftContracts.graphql +0 -39
- package/src/resources/generated_queries/GetNftEvents.graphql +0 -100
- package/src/resources/generated_queries/GetNftPool.graphql +0 -74
- package/src/resources/generated_queries/GetNftPoolCollection.graphql +0 -33
- package/src/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +0 -38
- package/src/resources/generated_queries/GetNftPoolEvents.graphql +0 -416
- package/src/resources/generated_queries/GetNftPoolStats.graphql +0 -40
- package/src/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +0 -89
- package/src/resources/generated_queries/GetNftPoolsByOwner.graphql +0 -89
- package/src/resources/generated_queries/GetParallelCardChanges.graphql +0 -57
- package/src/resources/generated_queries/GetPrimePoolAssets.graphql +0 -32
- package/src/resources/generated_queries/GetPrimePoolEvents.graphql +0 -156
- package/src/resources/generated_queries/GetPrimePools.graphql +0 -62
- package/src/resources/generated_queries/GetSymbol.graphql +0 -11
- package/src/resources/generated_queries/GetTokenBars.graphql +0 -121
- package/src/resources/generated_queries/GetTokenEvents.graphql +0 -102
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +0 -102
- package/src/resources/generated_queries/GetTokenPrices.graphql +0 -8
- package/src/resources/generated_queries/GetWebhooks.graphql +0 -134
- package/src/resources/generated_queries/Holders.graphql +0 -100
- package/src/resources/generated_queries/LiquidityLocks.graphql +0 -32
- package/src/resources/generated_queries/LiquidityMetadata.graphql +0 -17
- package/src/resources/generated_queries/LiquidityMetadataByToken.graphql +0 -19
- package/src/resources/generated_queries/ListPairsForToken.graphql +0 -193
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +0 -374
- package/src/resources/generated_queries/NftHolders.graphql +0 -12
- package/src/resources/generated_queries/PairMetadata.graphql +0 -234
- package/src/resources/generated_queries/PrimeHolders.graphql +0 -98
- package/src/resources/generated_queries/SearchNfts.graphql +0 -35
- package/src/resources/generated_queries/Token.graphql +0 -82
- package/src/resources/generated_queries/TokenLifecycleEvents.graphql +0 -34
- package/src/resources/generated_queries/TokenSparklines.graphql +0 -11
- package/src/resources/generated_queries/TokenTopTraders.graphql +0 -26
- package/src/resources/generated_queries/Tokens.graphql +0 -82
- package/src/resources/generated_queries/Top10HoldersPercent.graphql +0 -3
- package/src/resources/generated_queries/WalletAggregateBackfillState.graphql +0 -6
- package/src/resources/generated_queries/WalletChart.graphql +0 -20
- package/src/resources/generated_queries/WalletNftCollectionAssets.graphql +0 -11
- package/src/resources/generated_queries/WalletNftCollections.graphql +0 -10
- package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +0 -94
- package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +0 -547
- package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +0 -325
- package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +0 -22
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +0 -105
- package/src/resources/generated_subscriptions/OnEventsCreatedByMaker.graphql +0 -92
- package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +0 -100
- package/src/resources/generated_subscriptions/OnLatestPairUpdated.graphql +0 -42
- package/src/resources/generated_subscriptions/OnLatestTokens.graphql +0 -37
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +0 -97
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEventBatch.graphql +0 -96
- package/src/resources/generated_subscriptions/OnNftAssetsCreated.graphql +0 -42
- package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +0 -82
- package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +0 -412
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +0 -226
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +0 -16
- package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +0 -8
- package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +0 -545
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +0 -92
- package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +0 -30
- package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +0 -115
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +0 -50
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreatedByMaker.graphql +0 -41
- package/src/resources/graphql.schema.json +0 -63375
- package/src/resources/graphql.ts +0 -10422
- package/src/resources/mutations_override/CreateWebhooks.graphql +0 -472
- package/src/resources/networkConfigs.json +0 -3726
- package/src/resources/queries_override/FilterTokenWallets.graphql +0 -144
- package/src/resources/queries_override/GetEventLabels.graphql +0 -35
- package/src/resources/queries_override/GetNetworkConfigs.graphql +0 -129
- package/src/resources/queries_override/GetWebhooks.graphql +0 -134
- package/src/resources/schema.graphql +0 -9916
- package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +0 -22
- package/src/resources/subscriptions_override/OnLaunchpadTokenEventBatch.graphql +0 -96
- package/src/scripts/buildSdk.ts +0 -173
- package/src/scripts/generateGraphql.ts +0 -305
- package/src/scripts/generateNetworkConfigs.ts +0 -241
- package/src/sdk/Mutation.ts +0 -29
- package/src/sdk/Query.ts +0 -285
- package/src/sdk/Subscribe.ts +0 -465
- package/src/sdk/generated/fragment-masking.ts +0 -87
- package/src/sdk/generated/gql.ts +0 -610
- package/src/sdk/generated/graphql.ts +0 -11361
- package/src/sdk/generated/index.ts +0 -2
- package/src/sdk/graphql/GetPairEvents.graphql +0 -71
- package/src/sdk/index.test.ts +0 -454
- package/src/sdk/index.ts +0 -239
- package/src/sdk/invariant.ts +0 -34
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
|
2
|
-
|
|
3
|
-
import * as fs from "fs";
|
|
4
|
-
import { gql } from "graphql-tag";
|
|
5
|
-
import * as path from "path";
|
|
6
|
-
|
|
7
|
-
import { Codex } from "../sdk";
|
|
8
|
-
|
|
9
|
-
const apiKey = process.env.CODEX_API_KEY;
|
|
10
|
-
|
|
11
|
-
if (!apiKey) throw new Error("CODEX_API_KEY env variable not found");
|
|
12
|
-
|
|
13
|
-
const sdk = new Codex(apiKey);
|
|
14
|
-
|
|
15
|
-
const getNetworkConfigsQuery = gql`
|
|
16
|
-
query networkConfigs {
|
|
17
|
-
getNetworkConfigs {
|
|
18
|
-
... on EvmNetworkConfig {
|
|
19
|
-
__typename
|
|
20
|
-
id
|
|
21
|
-
networkType
|
|
22
|
-
networkId
|
|
23
|
-
name
|
|
24
|
-
enabled
|
|
25
|
-
newTokensEnabled
|
|
26
|
-
mainnet
|
|
27
|
-
wrappedBaseTokenSymbol
|
|
28
|
-
baseTokenSymbol
|
|
29
|
-
baseTokenAddress
|
|
30
|
-
defaultPairAddress
|
|
31
|
-
defaultPairQuoteToken
|
|
32
|
-
stableCoinAddresses
|
|
33
|
-
networkIconUrl
|
|
34
|
-
color
|
|
35
|
-
networkShortName
|
|
36
|
-
networkName
|
|
37
|
-
explorer {
|
|
38
|
-
name
|
|
39
|
-
url
|
|
40
|
-
checksummed
|
|
41
|
-
icon
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
... on SolanaNetworkConfig {
|
|
45
|
-
__typename
|
|
46
|
-
# --- Common fields
|
|
47
|
-
id
|
|
48
|
-
networkType
|
|
49
|
-
networkId
|
|
50
|
-
name
|
|
51
|
-
enabled
|
|
52
|
-
newTokensEnabled
|
|
53
|
-
mainnet
|
|
54
|
-
wrappedBaseTokenSymbol
|
|
55
|
-
baseTokenSymbol
|
|
56
|
-
baseTokenAddress
|
|
57
|
-
defaultPairAddress
|
|
58
|
-
defaultPairQuoteToken
|
|
59
|
-
stableCoinAddresses
|
|
60
|
-
networkIconUrl
|
|
61
|
-
color
|
|
62
|
-
networkShortName
|
|
63
|
-
networkName
|
|
64
|
-
explorer {
|
|
65
|
-
name
|
|
66
|
-
url
|
|
67
|
-
checksummed
|
|
68
|
-
icon
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
... on SuiNetworkConfig {
|
|
72
|
-
__typename
|
|
73
|
-
# --- Common fields
|
|
74
|
-
id
|
|
75
|
-
networkType
|
|
76
|
-
networkId
|
|
77
|
-
name
|
|
78
|
-
enabled
|
|
79
|
-
newTokensEnabled
|
|
80
|
-
mainnet
|
|
81
|
-
wrappedBaseTokenSymbol
|
|
82
|
-
baseTokenSymbol
|
|
83
|
-
baseTokenAddress
|
|
84
|
-
defaultPairAddress
|
|
85
|
-
defaultPairQuoteToken
|
|
86
|
-
stableCoinAddresses
|
|
87
|
-
networkIconUrl
|
|
88
|
-
color
|
|
89
|
-
networkShortName
|
|
90
|
-
networkName
|
|
91
|
-
explorer {
|
|
92
|
-
name
|
|
93
|
-
url
|
|
94
|
-
checksummed
|
|
95
|
-
icon
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
... on AptosNetworkConfig {
|
|
99
|
-
__typename
|
|
100
|
-
# --- Common fields
|
|
101
|
-
id
|
|
102
|
-
networkType
|
|
103
|
-
networkId
|
|
104
|
-
name
|
|
105
|
-
enabled
|
|
106
|
-
newTokensEnabled
|
|
107
|
-
mainnet
|
|
108
|
-
wrappedBaseTokenSymbol
|
|
109
|
-
baseTokenSymbol
|
|
110
|
-
baseTokenAddress
|
|
111
|
-
defaultPairAddress
|
|
112
|
-
defaultPairQuoteToken
|
|
113
|
-
stableCoinAddresses
|
|
114
|
-
networkIconUrl
|
|
115
|
-
color
|
|
116
|
-
networkShortName
|
|
117
|
-
networkName
|
|
118
|
-
explorer {
|
|
119
|
-
name
|
|
120
|
-
url
|
|
121
|
-
checksummed
|
|
122
|
-
icon
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
... on StarknetNetworkConfig {
|
|
126
|
-
__typename
|
|
127
|
-
# --- Common fields
|
|
128
|
-
id
|
|
129
|
-
networkType
|
|
130
|
-
networkId
|
|
131
|
-
name
|
|
132
|
-
enabled
|
|
133
|
-
newTokensEnabled
|
|
134
|
-
mainnet
|
|
135
|
-
wrappedBaseTokenSymbol
|
|
136
|
-
baseTokenSymbol
|
|
137
|
-
baseTokenAddress
|
|
138
|
-
defaultPairAddress
|
|
139
|
-
defaultPairQuoteToken
|
|
140
|
-
stableCoinAddresses
|
|
141
|
-
networkIconUrl
|
|
142
|
-
color
|
|
143
|
-
networkShortName
|
|
144
|
-
networkName
|
|
145
|
-
explorer {
|
|
146
|
-
name
|
|
147
|
-
url
|
|
148
|
-
checksummed
|
|
149
|
-
icon
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
`;
|
|
155
|
-
|
|
156
|
-
const getTokensQuery = gql`
|
|
157
|
-
query getTokens($tokens: [String!]!) {
|
|
158
|
-
filterTokens(tokens: $tokens) {
|
|
159
|
-
results {
|
|
160
|
-
token {
|
|
161
|
-
name
|
|
162
|
-
id
|
|
163
|
-
decimals
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
`;
|
|
169
|
-
|
|
170
|
-
async function main() {
|
|
171
|
-
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
|
|
172
|
-
const data = await sdk.query<{ getNetworkConfigs: any }, {}>(
|
|
173
|
-
getNetworkConfigsQuery,
|
|
174
|
-
);
|
|
175
|
-
const networkConfigs = data.getNetworkConfigs;
|
|
176
|
-
|
|
177
|
-
// Get all base token addresses with their network IDs
|
|
178
|
-
const tokenIds: string[] = networkConfigs.map(
|
|
179
|
-
(config: { baseTokenAddress: string; networkId: number }) =>
|
|
180
|
-
`${config.baseTokenAddress}:${config.networkId}`,
|
|
181
|
-
);
|
|
182
|
-
|
|
183
|
-
// Fetch base token names
|
|
184
|
-
const tokenData = await sdk.query<
|
|
185
|
-
{
|
|
186
|
-
filterTokens: {
|
|
187
|
-
results: {
|
|
188
|
-
token: { id: string; name: string; decimals: number };
|
|
189
|
-
}[];
|
|
190
|
-
};
|
|
191
|
-
},
|
|
192
|
-
{ tokens: string[] }
|
|
193
|
-
>(getTokensQuery, {
|
|
194
|
-
tokens: tokenIds,
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
// Create a map of address:networkId -> name
|
|
198
|
-
const tokenNameMap = new Map(
|
|
199
|
-
tokenData.filterTokens.results
|
|
200
|
-
.filter((result) => result !== null)
|
|
201
|
-
.map((result) => [result.token.id, result.token.name]),
|
|
202
|
-
);
|
|
203
|
-
// Create a map of address:networkId -> decimals
|
|
204
|
-
const tokenDecimalsMap = new Map(
|
|
205
|
-
tokenData.filterTokens.results
|
|
206
|
-
.filter((result) => result !== null)
|
|
207
|
-
.map((result) => [result.token.id, result.token.decimals]),
|
|
208
|
-
);
|
|
209
|
-
|
|
210
|
-
// Add baseTokenName to each network config
|
|
211
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
212
|
-
const enrichedConfigs = networkConfigs
|
|
213
|
-
.map((config: any) => ({
|
|
214
|
-
...config,
|
|
215
|
-
baseTokenName:
|
|
216
|
-
tokenNameMap.get(`${config.baseTokenAddress}:${config.networkId}`) ||
|
|
217
|
-
config.baseTokenSymbol,
|
|
218
|
-
baseTokenDecimals:
|
|
219
|
-
tokenDecimalsMap.get(
|
|
220
|
-
`${config.baseTokenAddress}:${config.networkId}`,
|
|
221
|
-
) || config.baseTokenDecimals,
|
|
222
|
-
}))
|
|
223
|
-
.sort((a: { name: string }, b: { name: string }) =>
|
|
224
|
-
a.name.localeCompare(b.name),
|
|
225
|
-
);
|
|
226
|
-
console.log(
|
|
227
|
-
`Fetched ${networkConfigs.length} network configs, writing them to generated files`,
|
|
228
|
-
);
|
|
229
|
-
|
|
230
|
-
const filePath = path.resolve(__dirname, "../resources/networkConfigs.json");
|
|
231
|
-
|
|
232
|
-
// Ensure the directory exists
|
|
233
|
-
const dirPath = path.dirname(filePath);
|
|
234
|
-
if (!fs.existsSync(dirPath)) {
|
|
235
|
-
fs.mkdirSync(dirPath, { recursive: true });
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
fs.writeFileSync(filePath, JSON.stringify(enrichedConfigs, null, 2));
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
main().catch(console.error);
|
package/src/sdk/Mutation.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
|
|
2
|
-
import {
|
|
3
|
-
BackfillWalletAggregatesDocument,
|
|
4
|
-
BackfillWalletAggregatesMutationVariables,
|
|
5
|
-
CreateApiTokensDocument,
|
|
6
|
-
CreateApiTokensMutationVariables,
|
|
7
|
-
CreateWebhooksDocument,
|
|
8
|
-
CreateWebhooksMutationVariables,
|
|
9
|
-
DeleteApiTokenDocument,
|
|
10
|
-
DeleteApiTokenMutationVariables,
|
|
11
|
-
DeleteWebhooksDocument,
|
|
12
|
-
DeleteWebhooksMutationVariables,
|
|
13
|
-
} from "./generated/graphql";
|
|
14
|
-
import { Codex } from "./index";
|
|
15
|
-
|
|
16
|
-
export class Mutation {
|
|
17
|
-
constructor(private sdk: Codex) {}
|
|
18
|
-
backfillWalletAggregates = async (
|
|
19
|
-
vars: BackfillWalletAggregatesMutationVariables,
|
|
20
|
-
) => this.sdk.mutation(BackfillWalletAggregatesDocument, vars);
|
|
21
|
-
createApiTokens = async (vars: CreateApiTokensMutationVariables) =>
|
|
22
|
-
this.sdk.mutation(CreateApiTokensDocument, vars);
|
|
23
|
-
deleteApiToken = async (vars: DeleteApiTokenMutationVariables) =>
|
|
24
|
-
this.sdk.mutation(DeleteApiTokenDocument, vars);
|
|
25
|
-
createWebhooks = async (vars: CreateWebhooksMutationVariables) =>
|
|
26
|
-
this.sdk.mutation(CreateWebhooksDocument, vars);
|
|
27
|
-
deleteWebhooks = async (vars: DeleteWebhooksMutationVariables) =>
|
|
28
|
-
this.sdk.mutation(DeleteWebhooksDocument, vars);
|
|
29
|
-
}
|
package/src/sdk/Query.ts
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
|
|
2
|
-
import {
|
|
3
|
-
ApiTokenDocument,
|
|
4
|
-
ApiTokenQueryVariables,
|
|
5
|
-
ApiTokensDocument,
|
|
6
|
-
ApiTokensQueryVariables,
|
|
7
|
-
BalancesDocument,
|
|
8
|
-
BalancesQueryVariables,
|
|
9
|
-
BlocksDocument,
|
|
10
|
-
BlocksQueryVariables,
|
|
11
|
-
ChartUrlsDocument,
|
|
12
|
-
ChartUrlsQueryVariables,
|
|
13
|
-
DetailedWalletStatsDocument,
|
|
14
|
-
DetailedWalletStatsQueryVariables,
|
|
15
|
-
FilterExchangesDocument,
|
|
16
|
-
FilterExchangesQueryVariables,
|
|
17
|
-
FilterNftCollectionsDocument,
|
|
18
|
-
FilterNftCollectionsQueryVariables,
|
|
19
|
-
FilterNftParallelAssetsDocument,
|
|
20
|
-
FilterNftParallelAssetsQueryVariables,
|
|
21
|
-
FilterNftPoolCollectionsDocument,
|
|
22
|
-
FilterNftPoolCollectionsQueryVariables,
|
|
23
|
-
FilterNftPoolsDocument,
|
|
24
|
-
FilterNftPoolsQueryVariables,
|
|
25
|
-
FilterPairsDocument,
|
|
26
|
-
FilterPairsQueryVariables,
|
|
27
|
-
FilterTokensDocument,
|
|
28
|
-
FilterTokensQueryVariables,
|
|
29
|
-
FilterTokenWalletsDocument,
|
|
30
|
-
FilterTokenWalletsQueryVariables,
|
|
31
|
-
FilterWalletsDocument,
|
|
32
|
-
FilterWalletsQueryVariables,
|
|
33
|
-
GetBarsDocument,
|
|
34
|
-
GetBarsQueryVariables,
|
|
35
|
-
GetCommunityNotesDocument,
|
|
36
|
-
GetCommunityNotesQueryVariables,
|
|
37
|
-
GetDetailedNftStatsDocument,
|
|
38
|
-
GetDetailedNftStatsQueryVariables,
|
|
39
|
-
GetDetailedPairsStatsDocument,
|
|
40
|
-
GetDetailedPairsStatsQueryVariables,
|
|
41
|
-
GetDetailedPairStatsDocument,
|
|
42
|
-
GetDetailedPairStatsQueryVariables,
|
|
43
|
-
GetEventLabelsDocument,
|
|
44
|
-
GetEventLabelsQueryVariables,
|
|
45
|
-
GetExchangesDocument,
|
|
46
|
-
GetExchangesQueryVariables,
|
|
47
|
-
GetNetworkConfigsDocument,
|
|
48
|
-
GetNetworkConfigsQueryVariables,
|
|
49
|
-
GetNetworksDocument,
|
|
50
|
-
GetNetworksQueryVariables,
|
|
51
|
-
GetNetworkStatsDocument,
|
|
52
|
-
GetNetworkStatsQueryVariables,
|
|
53
|
-
GetNetworkStatusDocument,
|
|
54
|
-
GetNetworkStatusQueryVariables,
|
|
55
|
-
GetNftAssetsDocument,
|
|
56
|
-
GetNftAssetsQueryVariables,
|
|
57
|
-
GetNftCollectionMetadataDocument,
|
|
58
|
-
GetNftCollectionMetadataQueryVariables,
|
|
59
|
-
GetNftContractsDocument,
|
|
60
|
-
GetNftContractsQueryVariables,
|
|
61
|
-
GetNftEventsDocument,
|
|
62
|
-
GetNftEventsQueryVariables,
|
|
63
|
-
GetNftPoolCollectionDocument,
|
|
64
|
-
GetNftPoolCollectionQueryVariables,
|
|
65
|
-
GetNftPoolCollectionsByExchangeDocument,
|
|
66
|
-
GetNftPoolCollectionsByExchangeQueryVariables,
|
|
67
|
-
GetNftPoolDocument,
|
|
68
|
-
GetNftPoolEventsDocument,
|
|
69
|
-
GetNftPoolEventsQueryVariables,
|
|
70
|
-
GetNftPoolQueryVariables,
|
|
71
|
-
GetNftPoolsByCollectionAndExchangeDocument,
|
|
72
|
-
GetNftPoolsByCollectionAndExchangeQueryVariables,
|
|
73
|
-
GetNftPoolsByOwnerDocument,
|
|
74
|
-
GetNftPoolsByOwnerQueryVariables,
|
|
75
|
-
GetNftPoolStatsDocument,
|
|
76
|
-
GetNftPoolStatsQueryVariables,
|
|
77
|
-
GetParallelCardChangesDocument,
|
|
78
|
-
GetParallelCardChangesQueryVariables,
|
|
79
|
-
GetPrimePoolAssetsDocument,
|
|
80
|
-
GetPrimePoolAssetsQueryVariables,
|
|
81
|
-
GetPrimePoolEventsDocument,
|
|
82
|
-
GetPrimePoolEventsQueryVariables,
|
|
83
|
-
GetPrimePoolsDocument,
|
|
84
|
-
GetPrimePoolsQueryVariables,
|
|
85
|
-
GetSymbolDocument,
|
|
86
|
-
GetSymbolQueryVariables,
|
|
87
|
-
GetTokenBarsDocument,
|
|
88
|
-
GetTokenBarsQueryVariables,
|
|
89
|
-
GetTokenEventsDocument,
|
|
90
|
-
GetTokenEventsForMakerDocument,
|
|
91
|
-
GetTokenEventsForMakerQueryVariables,
|
|
92
|
-
GetTokenEventsQueryVariables,
|
|
93
|
-
GetTokenPricesDocument,
|
|
94
|
-
GetTokenPricesQueryVariables,
|
|
95
|
-
GetWebhooksDocument,
|
|
96
|
-
GetWebhooksQueryVariables,
|
|
97
|
-
HoldersDocument,
|
|
98
|
-
HoldersQueryVariables,
|
|
99
|
-
LiquidityLocksDocument,
|
|
100
|
-
LiquidityLocksQueryVariables,
|
|
101
|
-
LiquidityMetadataByTokenDocument,
|
|
102
|
-
LiquidityMetadataByTokenQueryVariables,
|
|
103
|
-
LiquidityMetadataDocument,
|
|
104
|
-
LiquidityMetadataQueryVariables,
|
|
105
|
-
ListPairsForTokenDocument,
|
|
106
|
-
ListPairsForTokenQueryVariables,
|
|
107
|
-
ListPairsWithMetadataForTokenDocument,
|
|
108
|
-
ListPairsWithMetadataForTokenQueryVariables,
|
|
109
|
-
NftHoldersDocument,
|
|
110
|
-
NftHoldersQueryVariables,
|
|
111
|
-
PairMetadataDocument,
|
|
112
|
-
PairMetadataQueryVariables,
|
|
113
|
-
PrimeHoldersDocument,
|
|
114
|
-
PrimeHoldersQueryVariables,
|
|
115
|
-
SearchNftsDocument,
|
|
116
|
-
SearchNftsQueryVariables,
|
|
117
|
-
TokenDocument,
|
|
118
|
-
TokenLifecycleEventsDocument,
|
|
119
|
-
TokenLifecycleEventsQueryVariables,
|
|
120
|
-
TokenQueryVariables,
|
|
121
|
-
TokensDocument,
|
|
122
|
-
TokenSparklinesDocument,
|
|
123
|
-
TokenSparklinesQueryVariables,
|
|
124
|
-
TokensQueryVariables,
|
|
125
|
-
TokenTopTradersDocument,
|
|
126
|
-
TokenTopTradersQueryVariables,
|
|
127
|
-
Top10HoldersPercentDocument,
|
|
128
|
-
Top10HoldersPercentQueryVariables,
|
|
129
|
-
WalletAggregateBackfillStateDocument,
|
|
130
|
-
WalletAggregateBackfillStateQueryVariables,
|
|
131
|
-
WalletChartDocument,
|
|
132
|
-
WalletChartQueryVariables,
|
|
133
|
-
WalletNftCollectionAssetsDocument,
|
|
134
|
-
WalletNftCollectionAssetsQueryVariables,
|
|
135
|
-
WalletNftCollectionsDocument,
|
|
136
|
-
WalletNftCollectionsQueryVariables,
|
|
137
|
-
} from "./generated/graphql";
|
|
138
|
-
import { Codex } from "./index";
|
|
139
|
-
|
|
140
|
-
export class Query {
|
|
141
|
-
constructor(private sdk: Codex) {}
|
|
142
|
-
getDetailedPairsStats = async (vars: GetDetailedPairsStatsQueryVariables) =>
|
|
143
|
-
this.sdk.query(GetDetailedPairsStatsDocument, vars);
|
|
144
|
-
tokenTopTraders = async (vars: TokenTopTradersQueryVariables) =>
|
|
145
|
-
this.sdk.query(TokenTopTradersDocument, vars);
|
|
146
|
-
primeHolders = async (vars: PrimeHoldersQueryVariables) =>
|
|
147
|
-
this.sdk.query(PrimeHoldersDocument, vars);
|
|
148
|
-
balances = async (vars: BalancesQueryVariables) =>
|
|
149
|
-
this.sdk.query(BalancesDocument, vars);
|
|
150
|
-
getNftPool = async (vars: GetNftPoolQueryVariables) =>
|
|
151
|
-
this.sdk.query(GetNftPoolDocument, vars);
|
|
152
|
-
getNftCollectionMetadata = async (
|
|
153
|
-
vars: GetNftCollectionMetadataQueryVariables,
|
|
154
|
-
) => this.sdk.query(GetNftCollectionMetadataDocument, vars);
|
|
155
|
-
getNetworks = async (vars: GetNetworksQueryVariables) =>
|
|
156
|
-
this.sdk.query(GetNetworksDocument, vars);
|
|
157
|
-
getNetworkStats = async (vars: GetNetworkStatsQueryVariables) =>
|
|
158
|
-
this.sdk.query(GetNetworkStatsDocument, vars);
|
|
159
|
-
getEventLabels = async (vars: GetEventLabelsQueryVariables) =>
|
|
160
|
-
this.sdk.query(GetEventLabelsDocument, vars);
|
|
161
|
-
filterTokens = async (vars: FilterTokensQueryVariables) =>
|
|
162
|
-
this.sdk.query(FilterTokensDocument, vars);
|
|
163
|
-
getNftPoolEvents = async (vars: GetNftPoolEventsQueryVariables) =>
|
|
164
|
-
this.sdk.query(GetNftPoolEventsDocument, vars);
|
|
165
|
-
filterNftPools = async (vars: FilterNftPoolsQueryVariables) =>
|
|
166
|
-
this.sdk.query(FilterNftPoolsDocument, vars);
|
|
167
|
-
filterTokenWallets = async (vars: FilterTokenWalletsQueryVariables) =>
|
|
168
|
-
this.sdk.query(FilterTokenWalletsDocument, vars);
|
|
169
|
-
walletNftCollections = async (vars: WalletNftCollectionsQueryVariables) =>
|
|
170
|
-
this.sdk.query(WalletNftCollectionsDocument, vars);
|
|
171
|
-
filterNftCollections = async (vars: FilterNftCollectionsQueryVariables) =>
|
|
172
|
-
this.sdk.query(FilterNftCollectionsDocument, vars);
|
|
173
|
-
getNftPoolsByCollectionAndExchange = async (
|
|
174
|
-
vars: GetNftPoolsByCollectionAndExchangeQueryVariables,
|
|
175
|
-
) => this.sdk.query(GetNftPoolsByCollectionAndExchangeDocument, vars);
|
|
176
|
-
walletNftCollectionAssets = async (
|
|
177
|
-
vars: WalletNftCollectionAssetsQueryVariables,
|
|
178
|
-
) => this.sdk.query(WalletNftCollectionAssetsDocument, vars);
|
|
179
|
-
filterPairs = async (vars: FilterPairsQueryVariables) =>
|
|
180
|
-
this.sdk.query(FilterPairsDocument, vars);
|
|
181
|
-
getNftPoolsByOwner = async (vars: GetNftPoolsByOwnerQueryVariables) =>
|
|
182
|
-
this.sdk.query(GetNftPoolsByOwnerDocument, vars);
|
|
183
|
-
tokenSparklines = async (vars: TokenSparklinesQueryVariables) =>
|
|
184
|
-
this.sdk.query(TokenSparklinesDocument, vars);
|
|
185
|
-
getSymbol = async (vars: GetSymbolQueryVariables) =>
|
|
186
|
-
this.sdk.query(GetSymbolDocument, vars);
|
|
187
|
-
getPrimePools = async (vars: GetPrimePoolsQueryVariables) =>
|
|
188
|
-
this.sdk.query(GetPrimePoolsDocument, vars);
|
|
189
|
-
getNftPoolCollectionsByExchange = async (
|
|
190
|
-
vars: GetNftPoolCollectionsByExchangeQueryVariables,
|
|
191
|
-
) => this.sdk.query(GetNftPoolCollectionsByExchangeDocument, vars);
|
|
192
|
-
detailedWalletStats = async (vars: DetailedWalletStatsQueryVariables) =>
|
|
193
|
-
this.sdk.query(DetailedWalletStatsDocument, vars);
|
|
194
|
-
getDetailedPairStats = async (vars: GetDetailedPairStatsQueryVariables) =>
|
|
195
|
-
this.sdk.query(GetDetailedPairStatsDocument, vars);
|
|
196
|
-
getCommunityNotes = async (vars: GetCommunityNotesQueryVariables) =>
|
|
197
|
-
this.sdk.query(GetCommunityNotesDocument, vars);
|
|
198
|
-
liquidityLocks = async (vars: LiquidityLocksQueryVariables) =>
|
|
199
|
-
this.sdk.query(LiquidityLocksDocument, vars);
|
|
200
|
-
filterNftParallelAssets = async (
|
|
201
|
-
vars: FilterNftParallelAssetsQueryVariables,
|
|
202
|
-
) => this.sdk.query(FilterNftParallelAssetsDocument, vars);
|
|
203
|
-
filterExchanges = async (vars: FilterExchangesQueryVariables) =>
|
|
204
|
-
this.sdk.query(FilterExchangesDocument, vars);
|
|
205
|
-
getNftPoolStats = async (vars: GetNftPoolStatsQueryVariables) =>
|
|
206
|
-
this.sdk.query(GetNftPoolStatsDocument, vars);
|
|
207
|
-
nftHolders = async (vars: NftHoldersQueryVariables) =>
|
|
208
|
-
this.sdk.query(NftHoldersDocument, vars);
|
|
209
|
-
getExchanges = async (vars: GetExchangesQueryVariables) =>
|
|
210
|
-
this.sdk.query(GetExchangesDocument, vars);
|
|
211
|
-
blocks = async (vars: BlocksQueryVariables) =>
|
|
212
|
-
this.sdk.query(BlocksDocument, vars);
|
|
213
|
-
token = async (vars: TokenQueryVariables) =>
|
|
214
|
-
this.sdk.query(TokenDocument, vars);
|
|
215
|
-
apiTokens = async (vars: ApiTokensQueryVariables) =>
|
|
216
|
-
this.sdk.query(ApiTokensDocument, vars);
|
|
217
|
-
getTokenPrices = async (vars: GetTokenPricesQueryVariables) =>
|
|
218
|
-
this.sdk.query(GetTokenPricesDocument, vars);
|
|
219
|
-
pairMetadata = async (vars: PairMetadataQueryVariables) =>
|
|
220
|
-
this.sdk.query(PairMetadataDocument, vars);
|
|
221
|
-
tokenLifecycleEvents = async (vars: TokenLifecycleEventsQueryVariables) =>
|
|
222
|
-
this.sdk.query(TokenLifecycleEventsDocument, vars);
|
|
223
|
-
apiToken = async (vars: ApiTokenQueryVariables) =>
|
|
224
|
-
this.sdk.query(ApiTokenDocument, vars);
|
|
225
|
-
getPrimePoolAssets = async (vars: GetPrimePoolAssetsQueryVariables) =>
|
|
226
|
-
this.sdk.query(GetPrimePoolAssetsDocument, vars);
|
|
227
|
-
tokens = async (vars: TokensQueryVariables) =>
|
|
228
|
-
this.sdk.query(TokensDocument, vars);
|
|
229
|
-
liquidityMetadataByToken = async (
|
|
230
|
-
vars: LiquidityMetadataByTokenQueryVariables,
|
|
231
|
-
) => this.sdk.query(LiquidityMetadataByTokenDocument, vars);
|
|
232
|
-
getTokenBars = async (vars: GetTokenBarsQueryVariables) =>
|
|
233
|
-
this.sdk.query(GetTokenBarsDocument, vars);
|
|
234
|
-
getNetworkConfigs = async (vars: GetNetworkConfigsQueryVariables) =>
|
|
235
|
-
this.sdk.query(GetNetworkConfigsDocument, vars);
|
|
236
|
-
filterWallets = async (vars: FilterWalletsQueryVariables) =>
|
|
237
|
-
this.sdk.query(FilterWalletsDocument, vars);
|
|
238
|
-
listPairsForToken = async (vars: ListPairsForTokenQueryVariables) =>
|
|
239
|
-
this.sdk.query(ListPairsForTokenDocument, vars);
|
|
240
|
-
getTokenEventsForMaker = async (vars: GetTokenEventsForMakerQueryVariables) =>
|
|
241
|
-
this.sdk.query(GetTokenEventsForMakerDocument, vars);
|
|
242
|
-
filterNftPoolCollections = async (
|
|
243
|
-
vars: FilterNftPoolCollectionsQueryVariables,
|
|
244
|
-
) => this.sdk.query(FilterNftPoolCollectionsDocument, vars);
|
|
245
|
-
searchNfts = async (vars: SearchNftsQueryVariables) =>
|
|
246
|
-
this.sdk.query(SearchNftsDocument, vars);
|
|
247
|
-
getNftContracts = async (vars: GetNftContractsQueryVariables) =>
|
|
248
|
-
this.sdk.query(GetNftContractsDocument, vars);
|
|
249
|
-
top10HoldersPercent = async (vars: Top10HoldersPercentQueryVariables) =>
|
|
250
|
-
this.sdk.query(Top10HoldersPercentDocument, vars);
|
|
251
|
-
listPairsWithMetadataForToken = async (
|
|
252
|
-
vars: ListPairsWithMetadataForTokenQueryVariables,
|
|
253
|
-
) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
|
|
254
|
-
getDetailedNftStats = async (vars: GetDetailedNftStatsQueryVariables) =>
|
|
255
|
-
this.sdk.query(GetDetailedNftStatsDocument, vars);
|
|
256
|
-
getPrimePoolEvents = async (vars: GetPrimePoolEventsQueryVariables) =>
|
|
257
|
-
this.sdk.query(GetPrimePoolEventsDocument, vars);
|
|
258
|
-
getTokenEvents = async (vars: GetTokenEventsQueryVariables) =>
|
|
259
|
-
this.sdk.query(GetTokenEventsDocument, vars);
|
|
260
|
-
getNftPoolCollection = async (vars: GetNftPoolCollectionQueryVariables) =>
|
|
261
|
-
this.sdk.query(GetNftPoolCollectionDocument, vars);
|
|
262
|
-
getWebhooks = async (vars: GetWebhooksQueryVariables) =>
|
|
263
|
-
this.sdk.query(GetWebhooksDocument, vars);
|
|
264
|
-
getNftAssets = async (vars: GetNftAssetsQueryVariables) =>
|
|
265
|
-
this.sdk.query(GetNftAssetsDocument, vars);
|
|
266
|
-
getBars = async (vars: GetBarsQueryVariables) =>
|
|
267
|
-
this.sdk.query(GetBarsDocument, vars);
|
|
268
|
-
getNftEvents = async (vars: GetNftEventsQueryVariables) =>
|
|
269
|
-
this.sdk.query(GetNftEventsDocument, vars);
|
|
270
|
-
walletAggregateBackfillState = async (
|
|
271
|
-
vars: WalletAggregateBackfillStateQueryVariables,
|
|
272
|
-
) => this.sdk.query(WalletAggregateBackfillStateDocument, vars);
|
|
273
|
-
getNetworkStatus = async (vars: GetNetworkStatusQueryVariables) =>
|
|
274
|
-
this.sdk.query(GetNetworkStatusDocument, vars);
|
|
275
|
-
chartUrls = async (vars: ChartUrlsQueryVariables) =>
|
|
276
|
-
this.sdk.query(ChartUrlsDocument, vars);
|
|
277
|
-
walletChart = async (vars: WalletChartQueryVariables) =>
|
|
278
|
-
this.sdk.query(WalletChartDocument, vars);
|
|
279
|
-
liquidityMetadata = async (vars: LiquidityMetadataQueryVariables) =>
|
|
280
|
-
this.sdk.query(LiquidityMetadataDocument, vars);
|
|
281
|
-
holders = async (vars: HoldersQueryVariables) =>
|
|
282
|
-
this.sdk.query(HoldersDocument, vars);
|
|
283
|
-
getParallelCardChanges = async (vars: GetParallelCardChangesQueryVariables) =>
|
|
284
|
-
this.sdk.query(GetParallelCardChangesDocument, vars);
|
|
285
|
-
}
|