@codex-data/sdk 2.3.43 → 2.4.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/dist/edge.d.ts +2 -0
- package/dist/edge.js +8 -0
- package/dist/edge.mjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/sdk/Mutation.d.ts +2 -1
- package/dist/sdk/Mutation.js +1 -0
- package/dist/sdk/Mutation.mjs +2 -1
- package/dist/sdk/Query.d.ts +4 -2
- package/dist/sdk/Query.js +3 -1
- package/dist/sdk/Query.mjs +4 -2
- package/dist/sdk/Subscribe.d.ts +32 -30
- package/dist/sdk/Subscribe.js +74 -69
- package/dist/sdk/Subscribe.mjs +74 -69
- package/dist/sdk/edge.d.ts +24 -0
- package/dist/sdk/edge.js +111 -0
- package/dist/sdk/edge.mjs +95 -0
- package/dist/sdk/edgeSubscription.d.ts +3 -0
- package/dist/sdk/edgeSubscription.js +76 -0
- package/dist/sdk/edgeSubscription.mjs +72 -0
- package/dist/sdk/generated/gql.d.ts +86 -66
- package/dist/sdk/generated/gql.js +37 -33
- package/dist/sdk/generated/gql.mjs +37 -33
- package/dist/sdk/generated/graphql.d.ts +5391 -61
- package/dist/sdk/generated/graphql.js +261 -40
- package/dist/sdk/generated/graphql.mjs +256 -35
- package/dist/sdk/index.d.ts +6 -1
- package/dist/sdk/index.js +36 -18
- package/dist/sdk/index.mjs +40 -20
- package/package.json +39 -24
- package/schema.graphql +2539 -1575
package/dist/edge.d.ts
ADDED
package/dist/edge.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withEdge = exports.DEFAULT_EDGE_URL = exports.createEdgeClient = exports.createClient = void 0;
|
|
4
|
+
var edge_1 = require("./sdk/edge");
|
|
5
|
+
Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return edge_1.createClient; } });
|
|
6
|
+
Object.defineProperty(exports, "createEdgeClient", { enumerable: true, get: function () { return edge_1.createEdgeClient; } });
|
|
7
|
+
Object.defineProperty(exports, "DEFAULT_EDGE_URL", { enumerable: true, get: function () { return edge_1.DEFAULT_EDGE_URL; } });
|
|
8
|
+
Object.defineProperty(exports, "withEdge", { enumerable: true, get: function () { return edge_1.withEdge; } });
|
package/dist/edge.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createClient, createEdgeClient, DEFAULT_EDGE_URL, withEdge, } from "./sdk/edge";
|
package/dist/index.d.ts
CHANGED
package/dist/sdk/Mutation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BackfillWalletAggregatesMutationVariables, CreateApiTokensMutationVariables, CreateWebhooksMutationVariables, DeleteApiTokenMutationVariables, DeleteWebhooksMutationVariables, RefreshBalancesMutationVariables } from "./generated/graphql";
|
|
1
|
+
import { BackfillWalletAggregatesMutationVariables, CreateApiTokensMutationVariables, CreateWebhooksMutationVariables, DeleteApiTokenMutationVariables, DeleteWebhooksMutationVariables, RefreshBalancesMutationVariables, SimulateTokenContractMutationVariables } from "./generated/graphql";
|
|
2
2
|
import { Codex } from "./index";
|
|
3
3
|
export declare class Mutation {
|
|
4
4
|
private sdk;
|
|
@@ -9,4 +9,5 @@ export declare class Mutation {
|
|
|
9
9
|
deleteApiToken: (vars: DeleteApiTokenMutationVariables) => Promise<import("./generated/graphql").DeleteApiTokenMutation>;
|
|
10
10
|
deleteWebhooks: (vars: DeleteWebhooksMutationVariables) => Promise<import("./generated/graphql").DeleteWebhooksMutation>;
|
|
11
11
|
refreshBalances: (vars: RefreshBalancesMutationVariables) => Promise<import("./generated/graphql").RefreshBalancesMutation>;
|
|
12
|
+
simulateTokenContract: (vars: SimulateTokenContractMutationVariables) => Promise<import("./generated/graphql").SimulateTokenContractMutation>;
|
|
12
13
|
}
|
package/dist/sdk/Mutation.js
CHANGED
|
@@ -21,6 +21,7 @@ class Mutation {
|
|
|
21
21
|
this.deleteApiToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteApiTokenDocument, vars); });
|
|
22
22
|
this.deleteWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteWebhooksDocument, vars); });
|
|
23
23
|
this.refreshBalances = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.RefreshBalancesDocument, vars); });
|
|
24
|
+
this.simulateTokenContract = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.SimulateTokenContractDocument, vars); });
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
exports.Mutation = Mutation;
|
package/dist/sdk/Mutation.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
|
|
2
|
-
import { BackfillWalletAggregatesDocument, CreateApiTokensDocument, CreateWebhooksDocument, DeleteApiTokenDocument, DeleteWebhooksDocument, RefreshBalancesDocument, } from "./generated/graphql";
|
|
2
|
+
import { BackfillWalletAggregatesDocument, CreateApiTokensDocument, CreateWebhooksDocument, DeleteApiTokenDocument, DeleteWebhooksDocument, RefreshBalancesDocument, SimulateTokenContractDocument, } from "./generated/graphql";
|
|
3
3
|
export class Mutation {
|
|
4
4
|
constructor(sdk) {
|
|
5
5
|
this.sdk = sdk;
|
|
@@ -9,5 +9,6 @@ export class Mutation {
|
|
|
9
9
|
this.deleteApiToken = async (vars) => this.sdk.mutation(DeleteApiTokenDocument, vars);
|
|
10
10
|
this.deleteWebhooks = async (vars) => this.sdk.mutation(DeleteWebhooksDocument, vars);
|
|
11
11
|
this.refreshBalances = async (vars) => this.sdk.mutation(RefreshBalancesDocument, vars);
|
|
12
|
+
this.simulateTokenContract = async (vars) => this.sdk.mutation(SimulateTokenContractDocument, vars);
|
|
12
13
|
}
|
|
13
14
|
}
|
package/dist/sdk/Query.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, CategoriesQueryVariables, CategoryQueryVariables, CategoryTokensQueryVariables, ChartUrlsQueryVariables, DetailedPredictionEventStatsQueryVariables, DetailedPredictionMarketStatsQueryVariables, DetailedPredictionTraderStatsQueryVariables, DetailedWalletStatsQueryVariables, EventScopedFilterPredictionMarketsQueryVariables, FilterExchangesQueryVariables, FilterLaunchpadsQueryVariables, FilterNetworksQueryVariables, FilterPairsQueryVariables, FilterPredictionEventsQueryVariables, FilterPredictionMarketsQueryVariables, FilterPredictionTraderMarketsQueryVariables, FilterPredictionTradersQueryVariables, FilterTokensQueryVariables, FilterTokenWalletsQueryVariables, FilterWalletsQueryVariables, GetBarsQueryVariables, GetCommunityNotesQueryVariables, GetDetailedPairsStatsQueryVariables, GetDetailedPairStatsQueryVariables, GetDetailedTokenStatsQueryVariables, GetEventLabelsQueryVariables, GetExchangesQueryVariables, GetNetworkConfigsQueryVariables, GetNetworksQueryVariables, GetNetworkStatsQueryVariables, GetNetworkStatusQueryVariables, GetSymbolQueryVariables, GetTokenBarsQueryVariables, GetTokenEventsForMakerQueryVariables, GetTokenEventsQueryVariables, GetTokenPricesQueryVariables, GetWebhooksQueryVariables, HoldersQueryVariables,
|
|
1
|
+
import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, CategoriesQueryVariables, CategoryQueryVariables, CategoryTokensQueryVariables, ChartUrlsQueryVariables, DetailedPredictionEventStatsQueryVariables, DetailedPredictionMarketStatsQueryVariables, DetailedPredictionTraderStatsQueryVariables, DetailedWalletStatsQueryVariables, EventScopedFilterPredictionMarketsQueryVariables, FilterExchangesQueryVariables, FilterLaunchpadsQueryVariables, FilterNetworksQueryVariables, FilterPairsQueryVariables, FilterPredictionEventsQueryVariables, FilterPredictionMarketsQueryVariables, FilterPredictionTraderMarketsQueryVariables, FilterPredictionTradersQueryVariables, FilterTokensQueryVariables, FilterTokenWalletsQueryVariables, FilterWalletsQueryVariables, GetBarsQueryVariables, GetCommunityNotesQueryVariables, GetDetailedPairsStatsQueryVariables, GetDetailedPairStatsQueryVariables, GetDetailedTokenStatsQueryVariables, GetEventLabelsQueryVariables, GetExchangesQueryVariables, GetNetworkConfigsQueryVariables, GetNetworksQueryVariables, GetNetworkStatsQueryVariables, GetNetworkStatusQueryVariables, GetSimulateTokenContractResultsQueryVariables, GetSymbolQueryVariables, GetTokenBarsQueryVariables, GetTokenEventsForMakerQueryVariables, GetTokenEventsQueryVariables, GetTokenPricesQueryVariables, GetWebhooksQueryVariables, HoldersQueryVariables, LiquidityLocksV2QueryVariables, LiquidityMetadataByTokenQueryVariables, LiquidityMetadataQueryVariables, ListPairsForTokenQueryVariables, ListPairsWithMetadataForTokenQueryVariables, PairMetadataQueryVariables, PredictionCategoriesQueryVariables, PredictionEventBarsQueryVariables, PredictionEventTopMarketsBarsQueryVariables, PredictionMarketBarsQueryVariables, PredictionMarketPriceQueryVariables, PredictionMarketsQueryVariables, PredictionOutcomeOrderBooksQueryVariables, PredictionTokenHoldersQueryVariables, PredictionTraderBarsQueryVariables, PredictionTraderHoldingsQueryVariables, PredictionTraderMarketsStatsQueryVariables, PredictionTradersQueryVariables, PredictionTradesQueryVariables, TokenQueryVariables, TokenSparklinesQueryVariables, TokensQueryVariables, TokenTopTradersQueryVariables, TokenWalletStatsQueryVariables, Top10HoldersPercentQueryVariables, WalletAggregateBackfillStateQueryVariables, WalletChartQueryVariables, WalletLabelTypesQueryVariables } from "./generated/graphql";
|
|
2
2
|
import { Codex } from "./index";
|
|
3
3
|
export declare class Query {
|
|
4
4
|
private sdk;
|
|
@@ -38,6 +38,7 @@ export declare class Query {
|
|
|
38
38
|
getNetworkStats: (vars: GetNetworkStatsQueryVariables) => Promise<import("./generated/graphql").GetNetworkStatsQuery>;
|
|
39
39
|
getNetworkStatus: (vars: GetNetworkStatusQueryVariables) => Promise<import("./generated/graphql").GetNetworkStatusQuery>;
|
|
40
40
|
getNetworks: (vars: GetNetworksQueryVariables) => Promise<import("./generated/graphql").GetNetworksQuery>;
|
|
41
|
+
getSimulateTokenContractResults: (vars: GetSimulateTokenContractResultsQueryVariables) => Promise<import("./generated/graphql").GetSimulateTokenContractResultsQuery>;
|
|
41
42
|
getSymbol: (vars: GetSymbolQueryVariables) => Promise<import("./generated/graphql").GetSymbolQuery>;
|
|
42
43
|
getTokenBars: (vars: GetTokenBarsQueryVariables) => Promise<import("./generated/graphql").GetTokenBarsQuery>;
|
|
43
44
|
getTokenEvents: (vars: GetTokenEventsQueryVariables) => Promise<import("./generated/graphql").GetTokenEventsQuery>;
|
|
@@ -45,7 +46,7 @@ export declare class Query {
|
|
|
45
46
|
getTokenPrices: (vars: GetTokenPricesQueryVariables) => Promise<import("./generated/graphql").GetTokenPricesQuery>;
|
|
46
47
|
getWebhooks: (vars: GetWebhooksQueryVariables) => Promise<import("./generated/graphql").GetWebhooksQuery>;
|
|
47
48
|
holders: (vars: HoldersQueryVariables) => Promise<import("./generated/graphql").HoldersQuery>;
|
|
48
|
-
|
|
49
|
+
liquidityLocksV2: (vars: LiquidityLocksV2QueryVariables) => Promise<import("./generated/graphql").LiquidityLocksV2Query>;
|
|
49
50
|
liquidityMetadata: (vars: LiquidityMetadataQueryVariables) => Promise<import("./generated/graphql").LiquidityMetadataQuery>;
|
|
50
51
|
liquidityMetadataByToken: (vars: LiquidityMetadataByTokenQueryVariables) => Promise<import("./generated/graphql").LiquidityMetadataByTokenQuery>;
|
|
51
52
|
listPairsForToken: (vars: ListPairsForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsForTokenQuery>;
|
|
@@ -67,6 +68,7 @@ export declare class Query {
|
|
|
67
68
|
token: (vars: TokenQueryVariables) => Promise<import("./generated/graphql").TokenQuery>;
|
|
68
69
|
tokenSparklines: (vars: TokenSparklinesQueryVariables) => Promise<import("./generated/graphql").TokenSparklinesQuery>;
|
|
69
70
|
tokenTopTraders: (vars: TokenTopTradersQueryVariables) => Promise<import("./generated/graphql").TokenTopTradersQuery>;
|
|
71
|
+
tokenWalletStats: (vars: TokenWalletStatsQueryVariables) => Promise<import("./generated/graphql").TokenWalletStatsQuery>;
|
|
70
72
|
tokens: (vars: TokensQueryVariables) => Promise<import("./generated/graphql").TokensQuery>;
|
|
71
73
|
top10HoldersPercent: (vars: Top10HoldersPercentQueryVariables) => Promise<import("./generated/graphql").Top10HoldersPercentQuery>;
|
|
72
74
|
walletAggregateBackfillState: (vars: WalletAggregateBackfillStateQueryVariables) => Promise<import("./generated/graphql").WalletAggregateBackfillStateQuery>;
|
package/dist/sdk/Query.js
CHANGED
|
@@ -50,6 +50,7 @@ class Query {
|
|
|
50
50
|
this.getNetworkStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetNetworkStatsDocument, vars); });
|
|
51
51
|
this.getNetworkStatus = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetNetworkStatusDocument, vars); });
|
|
52
52
|
this.getNetworks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetNetworksDocument, vars); });
|
|
53
|
+
this.getSimulateTokenContractResults = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetSimulateTokenContractResultsDocument, vars); });
|
|
53
54
|
this.getSymbol = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetSymbolDocument, vars); });
|
|
54
55
|
this.getTokenBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetTokenBarsDocument, vars); });
|
|
55
56
|
this.getTokenEvents = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetTokenEventsDocument, vars); });
|
|
@@ -57,7 +58,7 @@ class Query {
|
|
|
57
58
|
this.getTokenPrices = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetTokenPricesDocument, vars); });
|
|
58
59
|
this.getWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetWebhooksDocument, vars); });
|
|
59
60
|
this.holders = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.HoldersDocument, vars); });
|
|
60
|
-
this.
|
|
61
|
+
this.liquidityLocksV2 = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.LiquidityLocksV2Document, vars); });
|
|
61
62
|
this.liquidityMetadata = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.LiquidityMetadataDocument, vars); });
|
|
62
63
|
this.liquidityMetadataByToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.LiquidityMetadataByTokenDocument, vars); });
|
|
63
64
|
this.listPairsForToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ListPairsForTokenDocument, vars); });
|
|
@@ -79,6 +80,7 @@ class Query {
|
|
|
79
80
|
this.token = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenDocument, vars); });
|
|
80
81
|
this.tokenSparklines = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenSparklinesDocument, vars); });
|
|
81
82
|
this.tokenTopTraders = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenTopTradersDocument, vars); });
|
|
83
|
+
this.tokenWalletStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenWalletStatsDocument, vars); });
|
|
82
84
|
this.tokens = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokensDocument, vars); });
|
|
83
85
|
this.top10HoldersPercent = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.Top10HoldersPercentDocument, vars); });
|
|
84
86
|
this.walletAggregateBackfillState = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.WalletAggregateBackfillStateDocument, vars); });
|
package/dist/sdk/Query.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
|
|
2
|
-
import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, CategoriesDocument, CategoryDocument, CategoryTokensDocument, ChartUrlsDocument, DetailedPredictionEventStatsDocument, DetailedPredictionMarketStatsDocument, DetailedPredictionTraderStatsDocument, DetailedWalletStatsDocument, EventScopedFilterPredictionMarketsDocument, FilterExchangesDocument, FilterLaunchpadsDocument, FilterNetworksDocument, FilterPairsDocument, FilterPredictionEventsDocument, FilterPredictionMarketsDocument, FilterPredictionTraderMarketsDocument, FilterPredictionTradersDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetDetailedTokenStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument,
|
|
2
|
+
import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, CategoriesDocument, CategoryDocument, CategoryTokensDocument, ChartUrlsDocument, DetailedPredictionEventStatsDocument, DetailedPredictionMarketStatsDocument, DetailedPredictionTraderStatsDocument, DetailedWalletStatsDocument, EventScopedFilterPredictionMarketsDocument, FilterExchangesDocument, FilterLaunchpadsDocument, FilterNetworksDocument, FilterPairsDocument, FilterPredictionEventsDocument, FilterPredictionMarketsDocument, FilterPredictionTraderMarketsDocument, FilterPredictionTradersDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetDetailedTokenStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSimulateTokenContractResultsDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksV2Document, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, PairMetadataDocument, PredictionCategoriesDocument, PredictionEventBarsDocument, PredictionEventTopMarketsBarsDocument, PredictionMarketBarsDocument, PredictionMarketPriceDocument, PredictionMarketsDocument, PredictionOutcomeOrderBooksDocument, PredictionTokenHoldersDocument, PredictionTraderBarsDocument, PredictionTraderHoldingsDocument, PredictionTraderMarketsStatsDocument, PredictionTradersDocument, PredictionTradesDocument, TokenDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, TokenWalletStatsDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, WalletLabelTypesDocument, } from "./generated/graphql";
|
|
3
3
|
export class Query {
|
|
4
4
|
constructor(sdk) {
|
|
5
5
|
this.sdk = sdk;
|
|
@@ -38,6 +38,7 @@ export class Query {
|
|
|
38
38
|
this.getNetworkStats = async (vars) => this.sdk.query(GetNetworkStatsDocument, vars);
|
|
39
39
|
this.getNetworkStatus = async (vars) => this.sdk.query(GetNetworkStatusDocument, vars);
|
|
40
40
|
this.getNetworks = async (vars) => this.sdk.query(GetNetworksDocument, vars);
|
|
41
|
+
this.getSimulateTokenContractResults = async (vars) => this.sdk.query(GetSimulateTokenContractResultsDocument, vars);
|
|
41
42
|
this.getSymbol = async (vars) => this.sdk.query(GetSymbolDocument, vars);
|
|
42
43
|
this.getTokenBars = async (vars) => this.sdk.query(GetTokenBarsDocument, vars);
|
|
43
44
|
this.getTokenEvents = async (vars) => this.sdk.query(GetTokenEventsDocument, vars);
|
|
@@ -45,7 +46,7 @@ export class Query {
|
|
|
45
46
|
this.getTokenPrices = async (vars) => this.sdk.query(GetTokenPricesDocument, vars);
|
|
46
47
|
this.getWebhooks = async (vars) => this.sdk.query(GetWebhooksDocument, vars);
|
|
47
48
|
this.holders = async (vars) => this.sdk.query(HoldersDocument, vars);
|
|
48
|
-
this.
|
|
49
|
+
this.liquidityLocksV2 = async (vars) => this.sdk.query(LiquidityLocksV2Document, vars);
|
|
49
50
|
this.liquidityMetadata = async (vars) => this.sdk.query(LiquidityMetadataDocument, vars);
|
|
50
51
|
this.liquidityMetadataByToken = async (vars) => this.sdk.query(LiquidityMetadataByTokenDocument, vars);
|
|
51
52
|
this.listPairsForToken = async (vars) => this.sdk.query(ListPairsForTokenDocument, vars);
|
|
@@ -67,6 +68,7 @@ export class Query {
|
|
|
67
68
|
this.token = async (vars) => this.sdk.query(TokenDocument, vars);
|
|
68
69
|
this.tokenSparklines = async (vars) => this.sdk.query(TokenSparklinesDocument, vars);
|
|
69
70
|
this.tokenTopTraders = async (vars) => this.sdk.query(TokenTopTradersDocument, vars);
|
|
71
|
+
this.tokenWalletStats = async (vars) => this.sdk.query(TokenWalletStatsDocument, vars);
|
|
70
72
|
this.tokens = async (vars) => this.sdk.query(TokensDocument, vars);
|
|
71
73
|
this.top10HoldersPercent = async (vars) => this.sdk.query(Top10HoldersPercentDocument, vars);
|
|
72
74
|
this.walletAggregateBackfillState = async (vars) => this.sdk.query(WalletAggregateBackfillStateDocument, vars);
|
package/dist/sdk/Subscribe.d.ts
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import { ExecutionResult, Sink } from "graphql-ws";
|
|
2
|
-
import {
|
|
2
|
+
import type { SubscriptionOptions } from "./edge";
|
|
3
|
+
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedPredictionEventStatsUpdatedSubscription, OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, OnDetailedPredictionMarketStatsUpdatedSubscription, OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnFilterTokensUpdatedSubscription, OnFilterTokensUpdatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, OnPredictionEventBarsUpdatedSubscription, OnPredictionEventBarsUpdatedSubscriptionVariables, OnPredictionMarketBarsUpdatedSubscription, OnPredictionMarketBarsUpdatedSubscriptionVariables, OnPredictionTradesCreatedSubscription, OnPredictionTradesCreatedSubscriptionVariables, OnPricesUpdatedSubscription, OnPricesUpdatedSubscriptionVariables, OnPriceUpdatedSubscription, OnPriceUpdatedSubscriptionVariables, OnSimulateTokenContractSubscription, OnSimulateTokenContractSubscriptionVariables, OnTokenBarsUpdatedSubscription, OnTokenBarsUpdatedSubscriptionVariables, OnTokenEventsCreatedSubscription, OnTokenEventsCreatedSubscriptionVariables, OnTokenLifecycleEventsCreatedSubscription, OnTokenLifecycleEventsCreatedSubscriptionVariables, OnUnconfirmedBarsUpdatedSubscription, OnUnconfirmedBarsUpdatedSubscriptionVariables, OnUnconfirmedEventsCreatedByMakerSubscription, OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, OnUnconfirmedEventsCreatedSubscription, OnUnconfirmedEventsCreatedSubscriptionVariables } from "./generated/graphql";
|
|
3
4
|
import { Codex } from "./index";
|
|
4
5
|
export declare class Subscribe {
|
|
5
6
|
private sdk;
|
|
6
7
|
constructor(sdk: Codex);
|
|
7
|
-
onBalanceUpdated: (vars: OnBalanceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBalanceUpdatedSubscription
|
|
8
|
-
onBarsUpdated: (vars: OnBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBarsUpdatedSubscription
|
|
9
|
-
onDetailedPredictionEventStatsUpdated: (vars: OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedPredictionEventStatsUpdatedSubscription
|
|
10
|
-
onDetailedPredictionMarketStatsUpdated: (vars: OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedPredictionMarketStatsUpdatedSubscription
|
|
11
|
-
onDetailedStatsUpdated: (vars: OnDetailedStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription
|
|
12
|
-
onDetailedTokenStatsUpdated: (vars: OnDetailedTokenStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedTokenStatsUpdatedSubscription
|
|
13
|
-
onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription
|
|
14
|
-
onEventsCreated: (vars: OnEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedSubscription
|
|
15
|
-
onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription
|
|
16
|
-
onFilterTokensUpdated: (vars: OnFilterTokensUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnFilterTokensUpdatedSubscription
|
|
17
|
-
onHoldersUpdated: (vars: OnHoldersUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnHoldersUpdatedSubscription
|
|
18
|
-
onLatestTokens: (vars: OnLatestTokensSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestTokensSubscription
|
|
19
|
-
onLaunchpadTokenEvent: (vars: OnLaunchpadTokenEventSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventSubscription
|
|
20
|
-
onLaunchpadTokenEventBatch: (vars: OnLaunchpadTokenEventBatchSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventBatchSubscription
|
|
21
|
-
onNftAssetsCreated: (vars: OnNftAssetsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftAssetsCreatedSubscription
|
|
22
|
-
onNftEventsCreated: (vars: OnNftEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription
|
|
23
|
-
onNftPoolEventsCreated: (vars: OnNftPoolEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription
|
|
24
|
-
onPairMetadataUpdated: (vars: OnPairMetadataUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPairMetadataUpdatedSubscription
|
|
25
|
-
onPredictionEventBarsUpdated: (vars: OnPredictionEventBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionEventBarsUpdatedSubscription
|
|
26
|
-
onPredictionMarketBarsUpdated: (vars: OnPredictionMarketBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionMarketBarsUpdatedSubscription
|
|
27
|
-
onPredictionTradesCreated: (vars: OnPredictionTradesCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionTradesCreatedSubscription
|
|
28
|
-
onPriceUpdated: (vars: OnPriceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPriceUpdatedSubscription
|
|
29
|
-
onPricesUpdated: (vars: OnPricesUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPricesUpdatedSubscription
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
onBalanceUpdated: (vars: OnBalanceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBalanceUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
9
|
+
onBarsUpdated: (vars: OnBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBarsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
10
|
+
onDetailedPredictionEventStatsUpdated: (vars: OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedPredictionEventStatsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
11
|
+
onDetailedPredictionMarketStatsUpdated: (vars: OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedPredictionMarketStatsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
12
|
+
onDetailedStatsUpdated: (vars: OnDetailedStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
13
|
+
onDetailedTokenStatsUpdated: (vars: OnDetailedTokenStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedTokenStatsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
14
|
+
onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
15
|
+
onEventsCreated: (vars: OnEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
16
|
+
onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
17
|
+
onFilterTokensUpdated: (vars: OnFilterTokensUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnFilterTokensUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
18
|
+
onHoldersUpdated: (vars: OnHoldersUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnHoldersUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
19
|
+
onLatestTokens: (vars: OnLatestTokensSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestTokensSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
20
|
+
onLaunchpadTokenEvent: (vars: OnLaunchpadTokenEventSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
21
|
+
onLaunchpadTokenEventBatch: (vars: OnLaunchpadTokenEventBatchSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventBatchSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
22
|
+
onNftAssetsCreated: (vars: OnNftAssetsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftAssetsCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
23
|
+
onNftEventsCreated: (vars: OnNftEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
24
|
+
onNftPoolEventsCreated: (vars: OnNftPoolEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
25
|
+
onPairMetadataUpdated: (vars: OnPairMetadataUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPairMetadataUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
26
|
+
onPredictionEventBarsUpdated: (vars: OnPredictionEventBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionEventBarsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
27
|
+
onPredictionMarketBarsUpdated: (vars: OnPredictionMarketBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionMarketBarsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
28
|
+
onPredictionTradesCreated: (vars: OnPredictionTradesCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionTradesCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
29
|
+
onPriceUpdated: (vars: OnPriceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPriceUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
30
|
+
onPricesUpdated: (vars: OnPricesUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPricesUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
31
|
+
onSimulateTokenContract: (vars: OnSimulateTokenContractSubscriptionVariables, sink: Sink<ExecutionResult<OnSimulateTokenContractSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
32
|
+
onTokenBarsUpdated: (vars: OnTokenBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenBarsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
33
|
+
onTokenEventsCreated: (vars: OnTokenEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenEventsCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
34
|
+
onTokenLifecycleEventsCreated: (vars: OnTokenLifecycleEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenLifecycleEventsCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
35
|
+
onUnconfirmedBarsUpdated: (vars: OnUnconfirmedBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedBarsUpdatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
36
|
+
onUnconfirmedEventsCreated: (vars: OnUnconfirmedEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
37
|
+
onUnconfirmedEventsCreatedByMaker: (vars: OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedByMakerSubscription>>, options?: SubscriptionOptions) => import("./index").CleanupFunction;
|
|
36
38
|
}
|