@codex-data/sdk 0.6.2 → 1.0.0-rc2
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/generated_mutations/CreateApiTokens.graphql +9 -0
- package/dist/resources/generated_mutations/CreateWebhooks.graphql +80 -0
- package/dist/resources/generated_mutations/DeleteApiToken.graphql +3 -0
- package/{src/sdk/graphql → dist/resources/generated_mutations}/DeleteWebhooks.graphql +1 -1
- package/dist/resources/generated_queries/ApiToken.graphql +9 -0
- package/dist/resources/generated_queries/ApiTokens.graphql +9 -0
- package/dist/resources/generated_queries/Balances.graphql +12 -0
- package/dist/resources/generated_queries/ChartUrls.graphql +7 -0
- package/dist/resources/generated_queries/FilterExchanges.graphql +43 -0
- package/dist/resources/generated_queries/FilterNftCollections.graphql +569 -0
- package/dist/resources/generated_queries/FilterNftParallelAssets.graphql +60 -0
- package/dist/resources/generated_queries/FilterNftPoolCollections.graphql +71 -0
- package/dist/resources/generated_queries/FilterNftPools.graphql +124 -0
- package/dist/resources/generated_queries/FilterPairs.graphql +343 -0
- package/dist/resources/generated_queries/FilterTokens.graphql +282 -0
- package/{src/sdk/graphql → dist/resources/generated_queries}/GetBars.graphql +21 -9
- package/dist/resources/generated_queries/GetCommunityNotes.graphql +20 -0
- package/dist/resources/generated_queries/GetDetailedNftStats.graphql +831 -0
- package/{src/sdk/graphql → dist/resources/generated_queries}/GetDetailedPairStats.graphql +372 -373
- package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +924 -0
- package/dist/resources/generated_queries/GetEventLabels.graphql +24 -0
- package/dist/resources/generated_queries/GetExchanges.graphql +12 -0
- package/dist/resources/generated_queries/GetLatestPairs.graphql +57 -0
- package/dist/resources/generated_queries/GetLatestTokens.graphql +39 -0
- package/dist/resources/generated_queries/GetNetworkStats.graphql +13 -0
- package/{src/sdk/graphql → dist/resources/generated_queries}/GetNetworkStatus.graphql +2 -1
- package/{src/sdk/graphql → dist/resources/generated_queries}/GetNetworks.graphql +1 -0
- package/dist/resources/generated_queries/GetNftAssets.graphql +59 -0
- package/dist/resources/generated_queries/GetNftCollectionMetadata.graphql +75 -0
- package/dist/resources/generated_queries/GetNftContracts.graphql +39 -0
- package/dist/resources/generated_queries/GetNftEvents.graphql +54 -0
- package/dist/resources/generated_queries/GetNftPool.graphql +74 -0
- package/dist/resources/generated_queries/GetNftPoolCollection.graphql +33 -0
- package/dist/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +38 -0
- package/dist/resources/generated_queries/GetNftPoolEvents.graphql +41 -0
- package/dist/resources/generated_queries/GetNftPoolStats.graphql +40 -0
- package/dist/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +89 -0
- package/dist/resources/generated_queries/GetNftPoolsByOwner.graphql +89 -0
- package/dist/resources/generated_queries/GetParallelAssets.graphql +50 -0
- package/dist/resources/generated_queries/GetParallelCardChanges.graphql +57 -0
- package/dist/resources/generated_queries/GetPrimePoolAssets.graphql +32 -0
- package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +38 -0
- package/dist/resources/generated_queries/GetPrimePools.graphql +62 -0
- package/dist/resources/generated_queries/GetSimulateTokenContractResults.graphql +128 -0
- package/{src/sdk/graphql → dist/resources/generated_queries}/GetSymbol.graphql +7 -7
- package/dist/resources/generated_queries/GetTokenCount.graphql +3 -0
- package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
- package/dist/resources/generated_queries/GetTokenInfo.graphql +18 -0
- package/dist/resources/generated_queries/GetTokenPrices.graphql +9 -0
- package/dist/resources/generated_queries/GetTokensInfo.graphql +18 -0
- package/dist/resources/generated_queries/GetUniV3Ticks.graphql +22 -0
- package/dist/resources/generated_queries/GetWebhooks.graphql +36 -0
- package/dist/resources/generated_queries/Holders.graphql +14 -0
- package/dist/resources/generated_queries/LiquidityLocks.graphql +26 -0
- package/dist/resources/generated_queries/LiquidityMetadata.graphql +17 -0
- package/dist/resources/generated_queries/ListFavoriteTokens.graphql +59 -0
- package/{src/sdk/graphql → dist/resources/generated_queries}/ListPairsForToken.graphql +79 -41
- package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +286 -0
- package/{src/sdk/graphql → dist/resources/generated_queries}/ListTopTokens.graphql +23 -16
- package/dist/resources/generated_queries/NftHolders.graphql +12 -0
- package/{src/sdk/graphql/OnPairMetadataUpdated.graphql → dist/resources/generated_queries/PairMetadata.graphql} +21 -3
- package/dist/resources/generated_queries/PrimeBalance.graphql +12 -0
- package/dist/resources/generated_queries/PrimeHolders.graphql +13 -0
- package/dist/resources/generated_queries/SearchNfts.graphql +35 -0
- package/dist/resources/generated_queries/Token.graphql +63 -0
- package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +22 -0
- package/{src/sdk/graphql/GetSparklines.graphql → dist/resources/generated_queries/TokenSparklines.graphql} +2 -2
- package/dist/resources/generated_queries/Tokens.graphql +63 -0
- package/dist/resources/generated_queries/WalletNftCollectionAssets.graphql +11 -0
- package/dist/resources/generated_queries/WalletNftCollections.graphql +10 -0
- package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +513 -0
- package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnDetailedStatsUpdated.graphql +119 -111
- package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +46 -0
- package/dist/resources/generated_subscriptions/OnLatestPairUpdated.graphql +42 -0
- package/dist/resources/generated_subscriptions/OnLatestTokens.graphql +37 -0
- package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnNftAssetsCreated.graphql +30 -17
- package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +36 -0
- package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +37 -0
- package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +73 -0
- package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnPriceUpdated.graphql +1 -1
- package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +9 -0
- package/dist/resources/generated_subscriptions/OnSimulateTokenContract.graphql +121 -0
- package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +39 -0
- package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +18 -0
- package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +32 -0
- package/dist/resources/graphql.d.ts +175 -1
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +1901 -2
- package/dist/resources/graphql.ts +199 -1
- package/dist/resources/schema.graphql +230 -1
- package/dist/scripts/buildSdk.d.ts +2 -0
- package/dist/scripts/buildSdk.d.ts.map +1 -0
- package/dist/scripts/buildSdk.js +135 -0
- package/dist/scripts/buildSdk.js.map +1 -0
- package/dist/scripts/generateGraphql.d.ts +30 -0
- package/dist/scripts/generateGraphql.d.ts.map +1 -0
- package/dist/scripts/generateGraphql.js +179 -0
- package/dist/scripts/generateGraphql.js.map +1 -0
- package/dist/sdk/Mutation.d.ts +5 -8
- package/dist/sdk/Mutation.d.ts.map +1 -1
- package/dist/sdk/Mutation.js +3 -0
- package/dist/sdk/Mutation.js.map +1 -1
- package/dist/sdk/Query.d.ts +65 -13
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +65 -12
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +18 -11
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +112 -9
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +646 -66
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +85 -22
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +8422 -2087
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +88 -25
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +12 -4
- package/src/resources/generated_mutations/CreateApiTokens.graphql +9 -0
- package/src/resources/generated_mutations/CreateWebhooks.graphql +80 -0
- package/src/resources/generated_mutations/DeleteApiToken.graphql +3 -0
- package/src/resources/generated_mutations/DeleteWebhooks.graphql +5 -0
- package/src/resources/generated_queries/ApiToken.graphql +9 -0
- package/src/resources/generated_queries/ApiTokens.graphql +9 -0
- package/src/resources/generated_queries/Balances.graphql +12 -0
- package/src/resources/generated_queries/ChartUrls.graphql +7 -0
- package/src/resources/generated_queries/FilterExchanges.graphql +43 -0
- package/src/resources/generated_queries/FilterNftCollections.graphql +569 -0
- package/src/resources/generated_queries/FilterNftParallelAssets.graphql +60 -0
- package/src/resources/generated_queries/FilterNftPoolCollections.graphql +71 -0
- package/src/resources/generated_queries/FilterNftPools.graphql +124 -0
- package/src/resources/generated_queries/FilterPairs.graphql +343 -0
- package/src/resources/generated_queries/FilterTokens.graphql +282 -0
- package/src/resources/generated_queries/GetBars.graphql +44 -0
- package/src/resources/generated_queries/GetCommunityNotes.graphql +20 -0
- package/src/resources/generated_queries/GetDetailedNftStats.graphql +831 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +940 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +924 -0
- package/src/resources/generated_queries/GetEventLabels.graphql +24 -0
- package/src/resources/generated_queries/GetExchanges.graphql +12 -0
- package/src/resources/generated_queries/GetLatestPairs.graphql +57 -0
- package/src/resources/generated_queries/GetLatestTokens.graphql +39 -0
- package/src/resources/generated_queries/GetNetworkStats.graphql +13 -0
- package/src/resources/generated_queries/GetNetworkStatus.graphql +8 -0
- package/src/resources/generated_queries/GetNetworks.graphql +7 -0
- package/src/resources/generated_queries/GetNftAssets.graphql +59 -0
- package/src/resources/generated_queries/GetNftCollectionMetadata.graphql +75 -0
- package/src/resources/generated_queries/GetNftContracts.graphql +39 -0
- package/src/resources/generated_queries/GetNftEvents.graphql +54 -0
- package/src/resources/generated_queries/GetNftPool.graphql +74 -0
- package/src/resources/generated_queries/GetNftPoolCollection.graphql +33 -0
- package/src/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +38 -0
- package/src/resources/generated_queries/GetNftPoolEvents.graphql +41 -0
- package/src/resources/generated_queries/GetNftPoolStats.graphql +40 -0
- package/src/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +89 -0
- package/src/resources/generated_queries/GetNftPoolsByOwner.graphql +89 -0
- package/src/resources/generated_queries/GetParallelAssets.graphql +50 -0
- package/src/resources/generated_queries/GetParallelCardChanges.graphql +57 -0
- package/src/resources/generated_queries/GetPrimePoolAssets.graphql +32 -0
- package/src/resources/generated_queries/GetPrimePoolEvents.graphql +38 -0
- package/src/resources/generated_queries/GetPrimePools.graphql +62 -0
- package/src/resources/generated_queries/GetSimulateTokenContractResults.graphql +128 -0
- package/src/resources/generated_queries/GetSymbol.graphql +11 -0
- package/src/resources/generated_queries/GetTokenCount.graphql +3 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
- package/src/resources/generated_queries/GetTokenInfo.graphql +18 -0
- package/src/resources/generated_queries/GetTokenPrices.graphql +9 -0
- package/src/resources/generated_queries/GetTokensInfo.graphql +18 -0
- package/src/resources/generated_queries/GetUniV3Ticks.graphql +22 -0
- package/src/resources/generated_queries/GetWebhooks.graphql +36 -0
- package/src/resources/generated_queries/Holders.graphql +14 -0
- package/src/resources/generated_queries/LiquidityLocks.graphql +26 -0
- package/src/resources/generated_queries/LiquidityMetadata.graphql +17 -0
- package/src/resources/generated_queries/ListFavoriteTokens.graphql +59 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +143 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +286 -0
- package/src/resources/generated_queries/ListTopTokens.graphql +55 -0
- package/src/resources/generated_queries/NftHolders.graphql +12 -0
- package/src/resources/generated_queries/PairMetadata.graphql +73 -0
- package/src/resources/generated_queries/PrimeBalance.graphql +12 -0
- package/src/resources/generated_queries/PrimeHolders.graphql +13 -0
- package/src/resources/generated_queries/SearchNfts.graphql +35 -0
- package/src/resources/generated_queries/Token.graphql +63 -0
- package/src/resources/generated_queries/TokenLifecycleEvents.graphql +22 -0
- package/src/resources/generated_queries/TokenSparklines.graphql +10 -0
- package/src/resources/generated_queries/Tokens.graphql +63 -0
- package/src/resources/generated_queries/WalletNftCollectionAssets.graphql +11 -0
- package/src/resources/generated_queries/WalletNftCollections.graphql +10 -0
- package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +513 -0
- package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +332 -0
- package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +46 -0
- package/src/resources/generated_subscriptions/OnLatestPairUpdated.graphql +42 -0
- package/src/resources/generated_subscriptions/OnLatestTokens.graphql +37 -0
- package/src/resources/generated_subscriptions/OnNftAssetsCreated.graphql +42 -0
- package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +36 -0
- package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +37 -0
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +73 -0
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +9 -0
- package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +9 -0
- package/src/resources/generated_subscriptions/OnSimulateTokenContract.graphql +121 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +39 -0
- package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +18 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +32 -0
- package/src/resources/graphql.schema.json +1901 -2
- package/src/resources/graphql.ts +199 -1
- package/src/resources/schema.graphql +230 -1
- package/src/scripts/buildSdk.ts +173 -0
- package/src/scripts/generateGraphql.ts +236 -0
- package/src/sdk/Mutation.ts +13 -4
- package/src/sdk/Query.ts +254 -35
- package/src/sdk/Subscribe.ts +231 -42
- package/src/sdk/generated/gql.ts +359 -44
- package/src/sdk/generated/graphql.ts +928 -129
- package/dist/sdk/Query.test.d.ts +0 -2
- package/dist/sdk/Query.test.d.ts.map +0 -1
- package/dist/sdk/Query.test.js +0 -50
- package/dist/sdk/Query.test.js.map +0 -1
- package/src/sdk/Query.test.ts +0 -40
- package/src/sdk/graphql/CreateWebhooks.graphql +0 -464
- package/src/sdk/graphql/FilterExchanges.graphql +0 -23
- package/src/sdk/graphql/FilterPairs.graphql +0 -126
- package/src/sdk/graphql/FilterTokens.graphql +0 -131
- package/src/sdk/graphql/GetPrice.graphql +0 -9
- package/src/sdk/graphql/GetTokens.graphql +0 -14
- package/src/sdk/graphql/GetWebhooks.graphql +0 -120
- package/src/sdk/graphql/OnBarsUpdated.graphql +0 -68
- package/src/sdk/graphql/OnEventsCreated.graphql +0 -62
- package/src/sdk/graphql/OnNftEventsCreated.graphql +0 -83
package/src/resources/graphql.ts
CHANGED
|
@@ -68,6 +68,26 @@ export type AddTokenLifecycleEventsOutput = {
|
|
|
68
68
|
id: Scalars['String']['output'];
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
export type AddTrackedWalletEventsOutput = {
|
|
72
|
+
__typename?: 'AddTrackedWalletEventsOutput';
|
|
73
|
+
userId: Scalars['String']['output'];
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** Response returned by `onUnconfirmedEventsCreated`. */
|
|
77
|
+
export type AddUnconfirmedEventsOutput = {
|
|
78
|
+
__typename?: 'AddUnconfirmedEventsOutput';
|
|
79
|
+
/** The contract address of the pair. */
|
|
80
|
+
address: Scalars['String']['output'];
|
|
81
|
+
/** A list of transactions for the token. */
|
|
82
|
+
events: Array<Maybe<UnconfirmedEvent>>;
|
|
83
|
+
/** The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
|
|
84
|
+
id: Scalars['String']['output'];
|
|
85
|
+
/** The network ID that the token is deployed on. */
|
|
86
|
+
networkId: Scalars['Int']['output'];
|
|
87
|
+
/** The token of interest within the pair. Can be `token0` or `token1`. */
|
|
88
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
89
|
+
};
|
|
90
|
+
|
|
71
91
|
export enum AlertRecurrence {
|
|
72
92
|
Indefinite = 'INDEFINITE',
|
|
73
93
|
Once = 'ONCE'
|
|
@@ -1138,9 +1158,11 @@ export type FrontRunLabelData = {
|
|
|
1138
1158
|
|
|
1139
1159
|
export type GasEstimate = {
|
|
1140
1160
|
__typename?: 'GasEstimate';
|
|
1141
|
-
approveTxHash?: Maybe<Scalars['String']['output']>;
|
|
1142
1161
|
error?: Maybe<Scalars['String']['output']>;
|
|
1162
|
+
errorReason?: Maybe<Scalars['String']['output']>;
|
|
1143
1163
|
gasLimitEstimate?: Maybe<Scalars['String']['output']>;
|
|
1164
|
+
gasPrice?: Maybe<Scalars['String']['output']>;
|
|
1165
|
+
totalFee?: Maybe<Scalars['String']['output']>;
|
|
1144
1166
|
};
|
|
1145
1167
|
|
|
1146
1168
|
export type GasFee = {
|
|
@@ -1189,10 +1211,25 @@ export type GetGasEstimateInput = {
|
|
|
1189
1211
|
networkId: Scalars['Int']['input'];
|
|
1190
1212
|
outputTokenAddress: Scalars['String']['input'];
|
|
1191
1213
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1214
|
+
sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1192
1215
|
userId?: InputMaybe<Scalars['Int']['input']>;
|
|
1193
1216
|
walletId?: InputMaybe<Scalars['Int']['input']>;
|
|
1194
1217
|
};
|
|
1195
1218
|
|
|
1219
|
+
/** Response returned by `getNetworkStats`. */
|
|
1220
|
+
export type GetNetworkStatsResponse = {
|
|
1221
|
+
__typename?: 'GetNetworkStatsResponse';
|
|
1222
|
+
liquidity: Scalars['Float']['output'];
|
|
1223
|
+
transactions1: Scalars['Int']['output'];
|
|
1224
|
+
transactions4: Scalars['Int']['output'];
|
|
1225
|
+
transactions12: Scalars['Int']['output'];
|
|
1226
|
+
transactions24: Scalars['Int']['output'];
|
|
1227
|
+
volume1: Scalars['Float']['output'];
|
|
1228
|
+
volume4: Scalars['Float']['output'];
|
|
1229
|
+
volume12: Scalars['Float']['output'];
|
|
1230
|
+
volume24: Scalars['Float']['output'];
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1196
1233
|
/** Response returned by `getNftPoolCollectionsByExchange`. */
|
|
1197
1234
|
export type GetNftPoolCollectionsResponse = {
|
|
1198
1235
|
__typename?: 'GetNftPoolCollectionsResponse';
|
|
@@ -1626,6 +1663,24 @@ export type LockedLiquidityData = {
|
|
|
1626
1663
|
lockBreakdown: Array<Maybe<LockBreakdown>>;
|
|
1627
1664
|
};
|
|
1628
1665
|
|
|
1666
|
+
/** Response returned by `getTokenEventsForMaker`. */
|
|
1667
|
+
export type MakerEventConnection = {
|
|
1668
|
+
__typename?: 'MakerEventConnection';
|
|
1669
|
+
/** A cursor for use in pagination. */
|
|
1670
|
+
cursor?: Maybe<Scalars['String']['output']>;
|
|
1671
|
+
/** A list of transactions for a token's top pair. */
|
|
1672
|
+
items?: Maybe<Array<Maybe<Event>>>;
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
export type MakerEventsQueryInput = {
|
|
1676
|
+
/** The specific wallet address to filter by. */
|
|
1677
|
+
maker: Scalars['String']['input'];
|
|
1678
|
+
/** The network ID to filter by. */
|
|
1679
|
+
networkId: Scalars['Int']['input'];
|
|
1680
|
+
/** The token of interest. Can be `token0` or `token1`. */
|
|
1681
|
+
quoteToken?: InputMaybe<QuoteToken>;
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1629
1684
|
/** The status for a network supported on Defined. */
|
|
1630
1685
|
export type MetadataResponse = {
|
|
1631
1686
|
__typename?: 'MetadataResponse';
|
|
@@ -1639,6 +1694,18 @@ export type MetadataResponse = {
|
|
|
1639
1694
|
networkName: Scalars['String']['output'];
|
|
1640
1695
|
};
|
|
1641
1696
|
|
|
1697
|
+
export type MigrateTrackedWalletsInput = {
|
|
1698
|
+
fromUserId: Scalars['String']['input'];
|
|
1699
|
+
toUserId: Scalars['String']['input'];
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1702
|
+
export type MigrateTrackedWalletsOutput = {
|
|
1703
|
+
__typename?: 'MigrateTrackedWalletsOutput';
|
|
1704
|
+
fromUserId: Scalars['String']['output'];
|
|
1705
|
+
status: Scalars['String']['output'];
|
|
1706
|
+
toUserId: Scalars['String']['output'];
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1642
1709
|
/** Event data for a token mint event. */
|
|
1643
1710
|
export type MintEventData = {
|
|
1644
1711
|
__typename?: 'MintEventData';
|
|
@@ -4288,6 +4355,11 @@ export type OnBarsUpdatedResponse = {
|
|
|
4288
4355
|
timestamp: Scalars['Int']['output'];
|
|
4289
4356
|
};
|
|
4290
4357
|
|
|
4358
|
+
export type OnPricesUpdatedInput = {
|
|
4359
|
+
address: Scalars['String']['input'];
|
|
4360
|
+
networkId: Scalars['Int']['input'];
|
|
4361
|
+
};
|
|
4362
|
+
|
|
4291
4363
|
export type OnTokenEventsCreatedInput = {
|
|
4292
4364
|
networkId: Scalars['Int']['input'];
|
|
4293
4365
|
tokenAddress: Scalars['String']['input'];
|
|
@@ -5637,6 +5709,8 @@ export type Query = {
|
|
|
5637
5709
|
/** Returns new tokens listed over the last three days. */
|
|
5638
5710
|
getLatestPairs?: Maybe<LatestPairConnection>;
|
|
5639
5711
|
getLatestTokens?: Maybe<LatestTokenConnection>;
|
|
5712
|
+
/** Returns metadata for a given network. */
|
|
5713
|
+
getNetworkStats?: Maybe<GetNetworkStatsResponse>;
|
|
5640
5714
|
/** Returns the status of a list of networks supported on Defined. */
|
|
5641
5715
|
getNetworkStatus?: Maybe<Array<MetadataResponse>>;
|
|
5642
5716
|
/** Returns a list of all networks supported on Defined. */
|
|
@@ -5680,6 +5754,7 @@ export type Query = {
|
|
|
5680
5754
|
getTokenCount: Scalars['String']['output'];
|
|
5681
5755
|
/** Returns transactions for a pair. */
|
|
5682
5756
|
getTokenEvents?: Maybe<EventConnection>;
|
|
5757
|
+
getTokenEventsForMaker?: Maybe<MakerEventConnection>;
|
|
5683
5758
|
/** Returns metadata for a given token. */
|
|
5684
5759
|
getTokenInfo?: Maybe<TokenInfo>;
|
|
5685
5760
|
/** Returns real-time or historical prices for a list of tokens, fetched in batches. */
|
|
@@ -5808,6 +5883,7 @@ export type QueryFilterPairsArgs = {
|
|
|
5808
5883
|
|
|
5809
5884
|
|
|
5810
5885
|
export type QueryFilterTokensArgs = {
|
|
5886
|
+
excludeTokens?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
5811
5887
|
filters?: InputMaybe<TokenFilters>;
|
|
5812
5888
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
5813
5889
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5902,6 +5978,12 @@ export type QueryGetLatestTokensArgs = {
|
|
|
5902
5978
|
};
|
|
5903
5979
|
|
|
5904
5980
|
|
|
5981
|
+
export type QueryGetNetworkStatsArgs = {
|
|
5982
|
+
exchangeAddress?: InputMaybe<Scalars['String']['input']>;
|
|
5983
|
+
networkId: Scalars['Int']['input'];
|
|
5984
|
+
};
|
|
5985
|
+
|
|
5986
|
+
|
|
5905
5987
|
export type QueryGetNetworkStatusArgs = {
|
|
5906
5988
|
networkIds: Array<Scalars['Int']['input']>;
|
|
5907
5989
|
};
|
|
@@ -5971,6 +6053,7 @@ export type QueryGetNftPoolEventsArgs = {
|
|
|
5971
6053
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
5972
6054
|
networkId: Scalars['Int']['input'];
|
|
5973
6055
|
poolAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6056
|
+
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
5974
6057
|
};
|
|
5975
6058
|
|
|
5976
6059
|
|
|
@@ -6070,6 +6153,14 @@ export type QueryGetTokenEventsArgs = {
|
|
|
6070
6153
|
};
|
|
6071
6154
|
|
|
6072
6155
|
|
|
6156
|
+
export type QueryGetTokenEventsForMakerArgs = {
|
|
6157
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
6158
|
+
direction?: InputMaybe<RankingDirection>;
|
|
6159
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
6160
|
+
query: MakerEventsQueryInput;
|
|
6161
|
+
};
|
|
6162
|
+
|
|
6163
|
+
|
|
6073
6164
|
export type QueryGetTokenInfoArgs = {
|
|
6074
6165
|
address: Scalars['String']['input'];
|
|
6075
6166
|
networkId: Scalars['Int']['input'];
|
|
@@ -6310,6 +6401,34 @@ export type RawTransactionWebhookConditionInput = {
|
|
|
6310
6401
|
toOrFrom?: InputMaybe<StringEqualsConditionInput>;
|
|
6311
6402
|
};
|
|
6312
6403
|
|
|
6404
|
+
export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
|
|
6405
|
+
|
|
6406
|
+
export type ReferralsEventPayoutData = {
|
|
6407
|
+
__typename?: 'ReferralsEventPayoutData';
|
|
6408
|
+
payouts: Array<ReferralsPayoutData>;
|
|
6409
|
+
};
|
|
6410
|
+
|
|
6411
|
+
export type ReferralsEventRewardData = {
|
|
6412
|
+
__typename?: 'ReferralsEventRewardData';
|
|
6413
|
+
inputTokenAddress: Scalars['String']['output'];
|
|
6414
|
+
networkId: Scalars['Int']['output'];
|
|
6415
|
+
outputTokenAddress: Scalars['String']['output'];
|
|
6416
|
+
payoutPercent: Scalars['Float']['output'];
|
|
6417
|
+
referralUserId: Scalars['String']['output'];
|
|
6418
|
+
rewardTokenAddress?: Maybe<Scalars['String']['output']>;
|
|
6419
|
+
rewardTokenAmount?: Maybe<Scalars['String']['output']>;
|
|
6420
|
+
transactionFee: Scalars['String']['output'];
|
|
6421
|
+
transactionId: Scalars['String']['output'];
|
|
6422
|
+
transactionTokenAddress: Scalars['String']['output'];
|
|
6423
|
+
transactionTokenAmount: Scalars['String']['output'];
|
|
6424
|
+
};
|
|
6425
|
+
|
|
6426
|
+
export type ReferralsPayoutData = {
|
|
6427
|
+
__typename?: 'ReferralsPayoutData';
|
|
6428
|
+
tokenAddressNetworkIdPaid: Scalars['String']['output'];
|
|
6429
|
+
tokenAmountPaid: Scalars['String']['output'];
|
|
6430
|
+
};
|
|
6431
|
+
|
|
6313
6432
|
/** Price data for each supported resolution. */
|
|
6314
6433
|
export type ResolutionBarData = {
|
|
6315
6434
|
__typename?: 'ResolutionBarData';
|
|
@@ -6710,11 +6829,15 @@ export type Subscription = {
|
|
|
6710
6829
|
onPairMetadataUpdated?: Maybe<PairMetadata>;
|
|
6711
6830
|
/** Live-streamed price updates for a token. */
|
|
6712
6831
|
onPriceUpdated?: Maybe<Price>;
|
|
6832
|
+
/** Live-streamed price updates for multiple tokens. */
|
|
6833
|
+
onPricesUpdated: Price;
|
|
6713
6834
|
onSimulateTokenContract: SimulateTokenContractResult;
|
|
6714
6835
|
/** Live streamed events for a given token across all it's pools */
|
|
6715
6836
|
onTokenEventsCreated: AddTokenEventsOutput;
|
|
6716
6837
|
/** Live-streamed token lifecycle events (mints and burns) */
|
|
6717
6838
|
onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
|
|
6839
|
+
/** Live-streamed unconfirmed transactions for a token. (Solana only) */
|
|
6840
|
+
onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
|
|
6718
6841
|
};
|
|
6719
6842
|
|
|
6720
6843
|
|
|
@@ -6791,6 +6914,11 @@ export type SubscriptionOnPriceUpdatedArgs = {
|
|
|
6791
6914
|
};
|
|
6792
6915
|
|
|
6793
6916
|
|
|
6917
|
+
export type SubscriptionOnPricesUpdatedArgs = {
|
|
6918
|
+
input: Array<OnPricesUpdatedInput>;
|
|
6919
|
+
};
|
|
6920
|
+
|
|
6921
|
+
|
|
6794
6922
|
export type SubscriptionOnSimulateTokenContractArgs = {
|
|
6795
6923
|
contractAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6796
6924
|
networkId: Scalars['Int']['input'];
|
|
@@ -6808,6 +6936,13 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
|
|
|
6808
6936
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
6809
6937
|
};
|
|
6810
6938
|
|
|
6939
|
+
|
|
6940
|
+
export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
6941
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
6942
|
+
id?: InputMaybe<Scalars['String']['input']>;
|
|
6943
|
+
quoteToken?: InputMaybe<QuoteToken>;
|
|
6944
|
+
};
|
|
6945
|
+
|
|
6811
6946
|
/** Event data for a token swap event. */
|
|
6812
6947
|
export type SwapEventData = {
|
|
6813
6948
|
__typename?: 'SwapEventData';
|
|
@@ -7250,6 +7385,8 @@ export type TokenInfo = {
|
|
|
7250
7385
|
description?: Maybe<Scalars['String']['output']>;
|
|
7251
7386
|
/** Uniquely identifies the token. */
|
|
7252
7387
|
id: Scalars['String']['output'];
|
|
7388
|
+
/** The token banner URL. */
|
|
7389
|
+
imageBannerUrl?: Maybe<Scalars['String']['output']>;
|
|
7253
7390
|
/** The large token logo URL. */
|
|
7254
7391
|
imageLargeUrl?: Maybe<Scalars['String']['output']>;
|
|
7255
7392
|
/** The small token logo URL. */
|
|
@@ -7497,6 +7634,8 @@ export type TokenWithMetadata = {
|
|
|
7497
7634
|
exchanges: Array<Exchange>;
|
|
7498
7635
|
/** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
|
|
7499
7636
|
id: Scalars['String']['output'];
|
|
7637
|
+
/** The token banner URL. */
|
|
7638
|
+
imageBannerUrl?: Maybe<Scalars['String']['output']>;
|
|
7500
7639
|
/** The token logo URL. */
|
|
7501
7640
|
imageLargeUrl?: Maybe<Scalars['String']['output']>;
|
|
7502
7641
|
/** The token logo URL. */
|
|
@@ -7563,6 +7702,65 @@ export type TokenWithMetadata = {
|
|
|
7563
7702
|
volume: Scalars['String']['output'];
|
|
7564
7703
|
};
|
|
7565
7704
|
|
|
7705
|
+
/** An unconfirmed token transaction. */
|
|
7706
|
+
export type UnconfirmedEvent = {
|
|
7707
|
+
__typename?: 'UnconfirmedEvent';
|
|
7708
|
+
/** The contract address of the token's top pair. */
|
|
7709
|
+
address: Scalars['String']['output'];
|
|
7710
|
+
/** The hash of the block where the transaction occurred. */
|
|
7711
|
+
blockHash: Scalars['String']['output'];
|
|
7712
|
+
/** The block number for the transaction. */
|
|
7713
|
+
blockNumber: Scalars['Int']['output'];
|
|
7714
|
+
/** The event-specific data for the transaction. */
|
|
7715
|
+
data?: Maybe<UnconfirmedEventData>;
|
|
7716
|
+
/** A more specific breakdown of `eventType`. Splits `Swap` into `Buy` or `Sell`. */
|
|
7717
|
+
eventDisplayType?: Maybe<EventDisplayType>;
|
|
7718
|
+
/** The type of transaction event. Can be `Burn`, `Mint`, `Swap`, `Sync`, `Collect`, or `CollectProtocol`. */
|
|
7719
|
+
eventType: EventType;
|
|
7720
|
+
/** The ID of the event (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
|
|
7721
|
+
id: Scalars['String']['output'];
|
|
7722
|
+
/** The index of the log in the block. */
|
|
7723
|
+
logIndex: Scalars['Int']['output'];
|
|
7724
|
+
/** The wallet address that performed the transaction. */
|
|
7725
|
+
maker?: Maybe<Scalars['String']['output']>;
|
|
7726
|
+
/** The network ID that the token is deployed on. */
|
|
7727
|
+
networkId: Scalars['Int']['output'];
|
|
7728
|
+
/** The token of interest within the token's top pair. Can be `token0` or `token1`. */
|
|
7729
|
+
quoteToken?: Maybe<QuoteToken>;
|
|
7730
|
+
/** A optional unique identifier of where the event is within the transaction. */
|
|
7731
|
+
supplementalIndex?: Maybe<Scalars['Int']['output']>;
|
|
7732
|
+
/** The unix timestamp for when the transaction occurred. */
|
|
7733
|
+
timestamp: Scalars['Int']['output'];
|
|
7734
|
+
/** The unique hash for the transaction. */
|
|
7735
|
+
transactionHash: Scalars['String']['output'];
|
|
7736
|
+
/** The index of the transaction within the block. */
|
|
7737
|
+
transactionIndex: Scalars['Int']['output'];
|
|
7738
|
+
};
|
|
7739
|
+
|
|
7740
|
+
export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
|
|
7741
|
+
|
|
7742
|
+
export type UnconfirmedLiquidityChangeEventData = {
|
|
7743
|
+
__typename?: 'UnconfirmedLiquidityChangeEventData';
|
|
7744
|
+
/** The amount of `token0` added or removed from the pair. */
|
|
7745
|
+
amount0?: Maybe<Scalars['String']['output']>;
|
|
7746
|
+
/** The amount of `token0` added or removed from the pair, adjusted by the number of decimals in the token. For example, if `amount0` is in WEI, `amount0Shifted` will be in ETH. */
|
|
7747
|
+
amount0Shifted?: Maybe<Scalars['String']['output']>;
|
|
7748
|
+
/** The amount of `token1` added or removed from the pair. */
|
|
7749
|
+
amount1?: Maybe<Scalars['String']['output']>;
|
|
7750
|
+
/** The amount of `token1` added or removed from the pair, adjusted by the number of decimals in the token. For example, USDC `amount1Shifted` will be by 6 decimals. */
|
|
7751
|
+
amount1Shifted?: Maybe<Scalars['String']['output']>;
|
|
7752
|
+
/** The type of token event, `Mint` or 'Burn'. */
|
|
7753
|
+
type: EventType;
|
|
7754
|
+
};
|
|
7755
|
+
|
|
7756
|
+
export type UnconfirmedSwapEventData = {
|
|
7757
|
+
__typename?: 'UnconfirmedSwapEventData';
|
|
7758
|
+
/** The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap. */
|
|
7759
|
+
amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
|
|
7760
|
+
/** The type of token event, `Swap`. */
|
|
7761
|
+
type: EventType;
|
|
7762
|
+
};
|
|
7763
|
+
|
|
7566
7764
|
export type UniV3Tick = {
|
|
7567
7765
|
__typename?: 'UniV3Tick';
|
|
7568
7766
|
liquidityNet?: Maybe<Scalars['String']['output']>;
|
|
@@ -68,6 +68,30 @@ type AddTokenLifecycleEventsOutput {
|
|
|
68
68
|
events: [TokenLifecycleEvent!]!
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
type AddTrackedWalletEventsOutput {
|
|
72
|
+
userId: String!
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
"""Response returned by `onUnconfirmedEventsCreated`."""
|
|
76
|
+
type AddUnconfirmedEventsOutput {
|
|
77
|
+
"""The contract address of the pair."""
|
|
78
|
+
address: String!
|
|
79
|
+
|
|
80
|
+
"""The network ID that the token is deployed on."""
|
|
81
|
+
networkId: Int!
|
|
82
|
+
|
|
83
|
+
"""
|
|
84
|
+
The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`.
|
|
85
|
+
"""
|
|
86
|
+
id: String!
|
|
87
|
+
|
|
88
|
+
"""The token of interest within the pair. Can be `token0` or `token1`."""
|
|
89
|
+
quoteToken: QuoteToken
|
|
90
|
+
|
|
91
|
+
"""A list of transactions for the token."""
|
|
92
|
+
events: [UnconfirmedEvent]!
|
|
93
|
+
}
|
|
94
|
+
|
|
71
95
|
enum AlertRecurrence {
|
|
72
96
|
INDEFINITE
|
|
73
97
|
ONCE
|
|
@@ -1386,8 +1410,10 @@ type FrontRunLabelData {
|
|
|
1386
1410
|
|
|
1387
1411
|
type GasEstimate {
|
|
1388
1412
|
gasLimitEstimate: String
|
|
1413
|
+
gasPrice: String
|
|
1389
1414
|
error: String
|
|
1390
|
-
|
|
1415
|
+
errorReason: String
|
|
1416
|
+
totalFee: String
|
|
1391
1417
|
}
|
|
1392
1418
|
|
|
1393
1419
|
type GasFee {
|
|
@@ -1446,6 +1472,20 @@ input GetGasEstimateInput {
|
|
|
1446
1472
|
userId: Int
|
|
1447
1473
|
walletId: Int
|
|
1448
1474
|
customGas: String
|
|
1475
|
+
sendWithPrivateRpc: Boolean
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
"""Response returned by `getNetworkStats`."""
|
|
1479
|
+
type GetNetworkStatsResponse {
|
|
1480
|
+
volume24: Float!
|
|
1481
|
+
volume12: Float!
|
|
1482
|
+
volume4: Float!
|
|
1483
|
+
volume1: Float!
|
|
1484
|
+
liquidity: Float!
|
|
1485
|
+
transactions24: Int!
|
|
1486
|
+
transactions12: Int!
|
|
1487
|
+
transactions4: Int!
|
|
1488
|
+
transactions1: Int!
|
|
1449
1489
|
}
|
|
1450
1490
|
|
|
1451
1491
|
"""Response returned by `getNftPoolCollectionsByExchange`."""
|
|
@@ -2020,6 +2060,26 @@ type LockedLiquidityData {
|
|
|
2020
2060
|
lockBreakdown: [LockBreakdown]!
|
|
2021
2061
|
}
|
|
2022
2062
|
|
|
2063
|
+
"""Response returned by `getTokenEventsForMaker`."""
|
|
2064
|
+
type MakerEventConnection {
|
|
2065
|
+
"""A list of transactions for a token's top pair."""
|
|
2066
|
+
items: [Event]
|
|
2067
|
+
|
|
2068
|
+
"""A cursor for use in pagination."""
|
|
2069
|
+
cursor: String
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
input MakerEventsQueryInput {
|
|
2073
|
+
"""The specific wallet address to filter by."""
|
|
2074
|
+
maker: String!
|
|
2075
|
+
|
|
2076
|
+
"""The network ID to filter by."""
|
|
2077
|
+
networkId: Int!
|
|
2078
|
+
|
|
2079
|
+
"""The token of interest. Can be `token0` or `token1`."""
|
|
2080
|
+
quoteToken: QuoteToken
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2023
2083
|
"""The status for a network supported on Defined."""
|
|
2024
2084
|
type MetadataResponse {
|
|
2025
2085
|
"""The last processed block on the network."""
|
|
@@ -2035,6 +2095,17 @@ type MetadataResponse {
|
|
|
2035
2095
|
networkName: String!
|
|
2036
2096
|
}
|
|
2037
2097
|
|
|
2098
|
+
input MigrateTrackedWalletsInput {
|
|
2099
|
+
fromUserId: String!
|
|
2100
|
+
toUserId: String!
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
type MigrateTrackedWalletsOutput {
|
|
2104
|
+
fromUserId: String!
|
|
2105
|
+
toUserId: String!
|
|
2106
|
+
status: String!
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2038
2109
|
"""Event data for a token mint event."""
|
|
2039
2110
|
type MintEventData {
|
|
2040
2111
|
"""The amount of `token0` added to the pair."""
|
|
@@ -5606,6 +5677,11 @@ input OneOfNumberConditionInput {
|
|
|
5606
5677
|
oneOf: [Int!]!
|
|
5607
5678
|
}
|
|
5608
5679
|
|
|
5680
|
+
input OnPricesUpdatedInput {
|
|
5681
|
+
address: String!
|
|
5682
|
+
networkId: Int!
|
|
5683
|
+
}
|
|
5684
|
+
|
|
5609
5685
|
input OnTokenEventsCreatedInput {
|
|
5610
5686
|
tokenAddress: String!
|
|
5611
5687
|
networkId: Int!
|
|
@@ -7358,6 +7434,9 @@ type Query {
|
|
|
7358
7434
|
"""The event types to filter by."""
|
|
7359
7435
|
eventTypes: [NftPoolEventType!]
|
|
7360
7436
|
|
|
7437
|
+
"""The time range to filter by."""
|
|
7438
|
+
timestamp: EventQueryTimestampInput
|
|
7439
|
+
|
|
7361
7440
|
"""The cursor to use for pagination."""
|
|
7362
7441
|
cursor: String
|
|
7363
7442
|
|
|
@@ -7793,6 +7872,9 @@ type Query {
|
|
|
7793
7872
|
"""
|
|
7794
7873
|
tokens: [String]
|
|
7795
7874
|
|
|
7875
|
+
"""A list of token IDs to exclude from results (`address:networkId`)"""
|
|
7876
|
+
excludeTokens: [String]
|
|
7877
|
+
|
|
7796
7878
|
"""A list of ranking attributes to apply."""
|
|
7797
7879
|
rankings: [TokenRanking]
|
|
7798
7880
|
|
|
@@ -7982,6 +8064,15 @@ type Query {
|
|
|
7982
8064
|
currencyCode: String
|
|
7983
8065
|
): SymbolResponse
|
|
7984
8066
|
|
|
8067
|
+
"""Returns metadata for a given network."""
|
|
8068
|
+
getNetworkStats(
|
|
8069
|
+
"""The network Id to filter by."""
|
|
8070
|
+
networkId: Int!
|
|
8071
|
+
|
|
8072
|
+
"""The exchange address to filter by (optional)."""
|
|
8073
|
+
exchangeAddress: String
|
|
8074
|
+
): GetNetworkStatsResponse
|
|
8075
|
+
|
|
7985
8076
|
"""Returns transactions for a pair."""
|
|
7986
8077
|
getTokenEvents(
|
|
7987
8078
|
"""The maximum number of transactions to return."""
|
|
@@ -7998,6 +8089,7 @@ type Query {
|
|
|
7998
8089
|
"""
|
|
7999
8090
|
direction: RankingDirection
|
|
8000
8091
|
): EventConnection
|
|
8092
|
+
getTokenEventsForMaker(limit: Int, query: MakerEventsQueryInput!, cursor: String, direction: RankingDirection): MakerEventConnection
|
|
8001
8093
|
|
|
8002
8094
|
"""
|
|
8003
8095
|
Returns real-time or historical prices for a list of tokens, fetched in batches.
|
|
@@ -8358,6 +8450,31 @@ input RawTransactionWebhookConditionInput {
|
|
|
8358
8450
|
ignoreNftEvents: Boolean
|
|
8359
8451
|
}
|
|
8360
8452
|
|
|
8453
|
+
union ReferralEventData = ReferralsEventRewardData | ReferralsEventPayoutData
|
|
8454
|
+
|
|
8455
|
+
type ReferralsEventPayoutData {
|
|
8456
|
+
payouts: [ReferralsPayoutData!]!
|
|
8457
|
+
}
|
|
8458
|
+
|
|
8459
|
+
type ReferralsEventRewardData {
|
|
8460
|
+
networkId: Int!
|
|
8461
|
+
inputTokenAddress: String!
|
|
8462
|
+
outputTokenAddress: String!
|
|
8463
|
+
transactionId: String!
|
|
8464
|
+
transactionTokenAmount: String!
|
|
8465
|
+
transactionTokenAddress: String!
|
|
8466
|
+
transactionFee: String!
|
|
8467
|
+
referralUserId: String!
|
|
8468
|
+
payoutPercent: Float!
|
|
8469
|
+
rewardTokenAmount: String
|
|
8470
|
+
rewardTokenAddress: String
|
|
8471
|
+
}
|
|
8472
|
+
|
|
8473
|
+
type ReferralsPayoutData {
|
|
8474
|
+
tokenAmountPaid: String!
|
|
8475
|
+
tokenAddressNetworkIdPaid: String!
|
|
8476
|
+
}
|
|
8477
|
+
|
|
8361
8478
|
"""Price data for each supported resolution."""
|
|
8362
8479
|
type ResolutionBarData {
|
|
8363
8480
|
"""1 second resolution."""
|
|
@@ -8849,6 +8966,18 @@ type Subscription {
|
|
|
8849
8966
|
quoteToken: QuoteToken
|
|
8850
8967
|
): AddEventsOutput
|
|
8851
8968
|
|
|
8969
|
+
"""Live-streamed unconfirmed transactions for a token. (Solana only)"""
|
|
8970
|
+
onUnconfirmedEventsCreated(
|
|
8971
|
+
"""The pair contract address."""
|
|
8972
|
+
address: String
|
|
8973
|
+
|
|
8974
|
+
"""The ID of the pair (`address`:`networkId`)."""
|
|
8975
|
+
id: String
|
|
8976
|
+
|
|
8977
|
+
"""The token of interest within the pair. Can be `token0` or `token1`."""
|
|
8978
|
+
quoteToken: QuoteToken
|
|
8979
|
+
): AddUnconfirmedEventsOutput
|
|
8980
|
+
|
|
8852
8981
|
"""Live-streamed price updates for a token."""
|
|
8853
8982
|
onPriceUpdated(
|
|
8854
8983
|
"""The token contract address."""
|
|
@@ -8858,6 +8987,9 @@ type Subscription {
|
|
|
8858
8987
|
networkId: Int
|
|
8859
8988
|
): Price
|
|
8860
8989
|
|
|
8990
|
+
"""Live-streamed price updates for multiple tokens."""
|
|
8991
|
+
onPricesUpdated(input: [OnPricesUpdatedInput!]!): Price!
|
|
8992
|
+
|
|
8861
8993
|
"""Live-streamed stat updates for a given token within a pair."""
|
|
8862
8994
|
onPairMetadataUpdated(
|
|
8863
8995
|
"""The ID of the pair (`address`:`networkId`)."""
|
|
@@ -9625,6 +9757,9 @@ type TokenInfo {
|
|
|
9625
9757
|
"""The large token logo URL."""
|
|
9626
9758
|
imageLargeUrl: String
|
|
9627
9759
|
|
|
9760
|
+
"""The token banner URL."""
|
|
9761
|
+
imageBannerUrl: String
|
|
9762
|
+
|
|
9628
9763
|
"""A description of the token."""
|
|
9629
9764
|
description: String
|
|
9630
9765
|
}
|
|
@@ -9978,6 +10113,9 @@ type TokenWithMetadata {
|
|
|
9978
10113
|
"""The token logo URL."""
|
|
9979
10114
|
imageLargeUrl: String
|
|
9980
10115
|
|
|
10116
|
+
"""The token banner URL."""
|
|
10117
|
+
imageBannerUrl: String
|
|
10118
|
+
|
|
9981
10119
|
"""The unix timestamp for the creation of the token's first pair."""
|
|
9982
10120
|
createdAt: Int
|
|
9983
10121
|
|
|
@@ -9985,6 +10123,97 @@ type TokenWithMetadata {
|
|
|
9985
10123
|
lastTransaction: Int
|
|
9986
10124
|
}
|
|
9987
10125
|
|
|
10126
|
+
"""An unconfirmed token transaction."""
|
|
10127
|
+
type UnconfirmedEvent {
|
|
10128
|
+
"""The contract address of the token's top pair."""
|
|
10129
|
+
address: String!
|
|
10130
|
+
|
|
10131
|
+
"""The hash of the block where the transaction occurred."""
|
|
10132
|
+
blockHash: String!
|
|
10133
|
+
|
|
10134
|
+
"""The block number for the transaction."""
|
|
10135
|
+
blockNumber: Int!
|
|
10136
|
+
|
|
10137
|
+
"""
|
|
10138
|
+
The type of transaction event. Can be `Burn`, `Mint`, `Swap`, `Sync`, `Collect`, or `CollectProtocol`.
|
|
10139
|
+
"""
|
|
10140
|
+
eventType: EventType!
|
|
10141
|
+
|
|
10142
|
+
"""
|
|
10143
|
+
The ID of the event (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`.
|
|
10144
|
+
"""
|
|
10145
|
+
id: String!
|
|
10146
|
+
|
|
10147
|
+
"""The index of the log in the block."""
|
|
10148
|
+
logIndex: Int!
|
|
10149
|
+
|
|
10150
|
+
"""The wallet address that performed the transaction."""
|
|
10151
|
+
maker: String
|
|
10152
|
+
|
|
10153
|
+
"""The network ID that the token is deployed on."""
|
|
10154
|
+
networkId: Int!
|
|
10155
|
+
|
|
10156
|
+
"""
|
|
10157
|
+
The token of interest within the token's top pair. Can be `token0` or `token1`.
|
|
10158
|
+
"""
|
|
10159
|
+
quoteToken: QuoteToken
|
|
10160
|
+
|
|
10161
|
+
"""The unix timestamp for when the transaction occurred."""
|
|
10162
|
+
timestamp: Int!
|
|
10163
|
+
|
|
10164
|
+
"""The unique hash for the transaction."""
|
|
10165
|
+
transactionHash: String!
|
|
10166
|
+
|
|
10167
|
+
"""The index of the transaction within the block."""
|
|
10168
|
+
transactionIndex: Int!
|
|
10169
|
+
|
|
10170
|
+
"""
|
|
10171
|
+
A optional unique identifier of where the event is within the transaction.
|
|
10172
|
+
"""
|
|
10173
|
+
supplementalIndex: Int
|
|
10174
|
+
|
|
10175
|
+
"""
|
|
10176
|
+
A more specific breakdown of `eventType`. Splits `Swap` into `Buy` or `Sell`.
|
|
10177
|
+
"""
|
|
10178
|
+
eventDisplayType: EventDisplayType
|
|
10179
|
+
|
|
10180
|
+
"""The event-specific data for the transaction."""
|
|
10181
|
+
data: UnconfirmedEventData
|
|
10182
|
+
}
|
|
10183
|
+
|
|
10184
|
+
union UnconfirmedEventData = UnconfirmedSwapEventData | UnconfirmedLiquidityChangeEventData
|
|
10185
|
+
|
|
10186
|
+
type UnconfirmedLiquidityChangeEventData {
|
|
10187
|
+
"""The amount of `token0` added or removed from the pair."""
|
|
10188
|
+
amount0: String
|
|
10189
|
+
|
|
10190
|
+
"""The amount of `token1` added or removed from the pair."""
|
|
10191
|
+
amount1: String
|
|
10192
|
+
|
|
10193
|
+
"""
|
|
10194
|
+
The amount of `token0` added or removed from the pair, adjusted by the number of decimals in the token. For example, if `amount0` is in WEI, `amount0Shifted` will be in ETH.
|
|
10195
|
+
"""
|
|
10196
|
+
amount0Shifted: String
|
|
10197
|
+
|
|
10198
|
+
"""
|
|
10199
|
+
The amount of `token1` added or removed from the pair, adjusted by the number of decimals in the token. For example, USDC `amount1Shifted` will be by 6 decimals.
|
|
10200
|
+
"""
|
|
10201
|
+
amount1Shifted: String
|
|
10202
|
+
|
|
10203
|
+
"""The type of token event, `Mint` or 'Burn'."""
|
|
10204
|
+
type: EventType!
|
|
10205
|
+
}
|
|
10206
|
+
|
|
10207
|
+
type UnconfirmedSwapEventData {
|
|
10208
|
+
"""
|
|
10209
|
+
The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap.
|
|
10210
|
+
"""
|
|
10211
|
+
amountNonLiquidityToken: String
|
|
10212
|
+
|
|
10213
|
+
"""The type of token event, `Swap`."""
|
|
10214
|
+
type: EventType!
|
|
10215
|
+
}
|
|
10216
|
+
|
|
9988
10217
|
type UniV3Tick {
|
|
9989
10218
|
tick: Int
|
|
9990
10219
|
liquidityNet: String
|