@codex-data/sdk 1.0.40 → 2.0.0
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/README.md +190 -39
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -26
- package/dist/index.mjs +4 -0
- package/dist/sdk/Mutation.d.ts +3 -3
- package/dist/sdk/Mutation.js +2 -2
- package/dist/sdk/Mutation.mjs +13 -0
- package/dist/sdk/Query.d.ts +53 -54
- package/dist/sdk/Query.js +53 -54
- package/dist/sdk/Query.mjs +74 -0
- package/dist/sdk/Subscribe.d.ts +17 -18
- package/dist/sdk/Subscribe.js +84 -184
- package/dist/sdk/Subscribe.mjs +138 -0
- package/dist/sdk/generated/gql.d.ts +47 -43
- package/dist/sdk/generated/gql.js +22 -22
- package/dist/sdk/generated/gql.mjs +103 -0
- package/dist/sdk/generated/graphql.d.ts +213 -16
- package/dist/sdk/generated/graphql.js +33 -25
- package/dist/sdk/generated/graphql.mjs +1739 -0
- package/dist/sdk/generated/index.d.ts +0 -2
- package/dist/sdk/generated/index.js +0 -2
- package/dist/sdk/generated/index.mjs +1 -0
- package/dist/sdk/index.d.ts +0 -1
- package/dist/sdk/index.js +0 -1
- package/dist/sdk/index.mjs +150 -0
- package/dist/sdk/invariant.d.ts +0 -1
- package/dist/sdk/invariant.js +0 -1
- package/dist/sdk/invariant.mjs +26 -0
- package/package.json +55 -27
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/resources/graphql.d.ts +0 -9875
- package/dist/resources/graphql.d.ts.map +0 -1
- package/dist/resources/graphql.js +0 -1640
- package/dist/resources/graphql.js.map +0 -1
- package/dist/sdk/Mutation.d.ts.map +0 -1
- package/dist/sdk/Mutation.js.map +0 -1
- package/dist/sdk/Query.d.ts.map +0 -1
- package/dist/sdk/Query.js.map +0 -1
- package/dist/sdk/Subscribe.d.ts.map +0 -1
- package/dist/sdk/Subscribe.js.map +0 -1
- package/dist/sdk/generated/fragment-masking.d.ts +0 -20
- package/dist/sdk/generated/fragment-masking.d.ts.map +0 -1
- package/dist/sdk/generated/fragment-masking.js +0 -22
- package/dist/sdk/generated/fragment-masking.js.map +0 -1
- package/dist/sdk/generated/gql.d.ts.map +0 -1
- package/dist/sdk/generated/gql.js.map +0 -1
- package/dist/sdk/generated/graphql.d.ts.map +0 -1
- package/dist/sdk/generated/graphql.js.map +0 -1
- package/dist/sdk/generated/index.d.ts.map +0 -1
- package/dist/sdk/generated/index.js.map +0 -1
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js.map +0 -1
- package/dist/sdk/index.test.d.ts +0 -2
- package/dist/sdk/index.test.d.ts.map +0 -1
- package/dist/sdk/index.test.js +0 -321
- package/dist/sdk/index.test.js.map +0 -1
- package/dist/sdk/invariant.d.ts.map +0 -1
- package/dist/sdk/invariant.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,20 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
This package exists to help you develop on top of the Codex API (https://docs.codex.io).
|
|
4
4
|
|
|
5
|
-
It provides
|
|
5
|
+
It provides generated TypeScript types and convenient methods to access the GraphQL API with full type safety.
|
|
6
6
|
|
|
7
7
|
> [!NOTE]
|
|
8
8
|
> We've changed our name from Defined to Codex.
|
|
9
9
|
>
|
|
10
10
|
> You will see references to our previous company name, Defined, while we make the switch to Codex.
|
|
11
11
|
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- 🚀 **Fully Typed**: Generated TypeScript types for all GraphQL operations
|
|
15
|
+
- 📦 **Tree Shakeable**: ESM support with optimized bundle size
|
|
16
|
+
- 🔄 **Real-time**: WebSocket subscriptions support
|
|
17
|
+
- 🛠 **Developer Friendly**: Comprehensive examples and documentation
|
|
18
|
+
|
|
12
19
|
## Installation
|
|
13
20
|
|
|
14
|
-
|
|
|
15
|
-
| ----------------------------- |
|
|
16
|
-
| [npm](https://www.npmjs.com/) | `npm
|
|
17
|
-
| [yarn](https://yarnpkg.com/) | `yarn add @codex-data/sdk`
|
|
18
|
-
| [
|
|
21
|
+
| Package Manager | Command |
|
|
22
|
+
| ----------------------------- | ----------------------------- |
|
|
23
|
+
| [npm](https://www.npmjs.com/) | `npm install @codex-data/sdk` |
|
|
24
|
+
| [yarn](https://yarnpkg.com/) | `yarn add @codex-data/sdk` |
|
|
25
|
+
| [pnpm](https://pnpm.io/) | `pnpm add @codex-data/sdk` |
|
|
19
26
|
|
|
20
27
|
## Usage
|
|
21
28
|
|
|
@@ -41,70 +48,214 @@ sdk.queries
|
|
|
41
48
|
Use your own GraphQL selections
|
|
42
49
|
|
|
43
50
|
```typescript
|
|
44
|
-
import {
|
|
45
|
-
import { Codex } from "@codex-data/sdk/dist/sdk";
|
|
51
|
+
import { Codex } from "@codex-data/sdk";
|
|
46
52
|
|
|
47
53
|
const sdk = new Codex(process.env.CODEX_API_KEY || "");
|
|
48
54
|
|
|
55
|
+
// Using the raw GraphQL client
|
|
49
56
|
sdk
|
|
50
|
-
.send<{ getNetworks:
|
|
57
|
+
.send<{ getNetworks: Array<{ id: string; name: string }> }>(
|
|
51
58
|
`
|
|
52
59
|
query GetNetworks {
|
|
53
60
|
getNetworks { id name }
|
|
54
61
|
}
|
|
55
62
|
`,
|
|
56
|
-
{}
|
|
63
|
+
{},
|
|
57
64
|
)
|
|
58
65
|
.then((res) => {
|
|
59
66
|
console.log("Networks: ", res.getNetworks);
|
|
60
67
|
});
|
|
61
68
|
```
|
|
62
69
|
|
|
63
|
-
|
|
70
|
+
Subscribe to real-time data
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import { Codex } from "@codex-data/sdk";
|
|
64
74
|
|
|
65
|
-
|
|
75
|
+
const sdk = new Codex(process.env.CODEX_API_KEY || "");
|
|
66
76
|
|
|
67
|
-
|
|
77
|
+
// Subscribe to price updates
|
|
78
|
+
sdk.subscriptions.onPriceUpdated(
|
|
79
|
+
{
|
|
80
|
+
address: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
|
|
81
|
+
networkId: 56,
|
|
82
|
+
},
|
|
83
|
+
(result) => {
|
|
84
|
+
if (result.data) {
|
|
85
|
+
console.log("Price updated:", result.data.onPriceUpdated);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Development
|
|
92
|
+
|
|
93
|
+
### Prerequisites
|
|
94
|
+
|
|
95
|
+
- [Node.js](https://nodejs.org/) >= 17.5.0
|
|
96
|
+
- [pnpm](https://pnpm.io/) (recommended) or npm/yarn
|
|
97
|
+
- [`curl`](https://curl.se/) for fetching the GraphQL schema
|
|
98
|
+
|
|
99
|
+
### Building from Source
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Install dependencies
|
|
103
|
+
pnpm install
|
|
104
|
+
|
|
105
|
+
# Build the SDK
|
|
106
|
+
pnpm run build
|
|
107
|
+
```
|
|
68
108
|
|
|
69
|
-
|
|
109
|
+
### Running Examples
|
|
70
110
|
|
|
71
|
-
|
|
72
|
-
- `bun run build`
|
|
111
|
+
All examples require a Codex API key. Get your API key at [docs.codex.io](https://docs.codex.io).
|
|
73
112
|
|
|
74
|
-
|
|
113
|
+
#### Simple Example
|
|
75
114
|
|
|
76
|
-
|
|
115
|
+
Basic usage with inline GraphQL queries:
|
|
77
116
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
117
|
+
```bash
|
|
118
|
+
cd examples/simple
|
|
119
|
+
pnpm install
|
|
120
|
+
CODEX_API_KEY=your_api_key pnpm run dev
|
|
121
|
+
```
|
|
81
122
|
|
|
82
|
-
|
|
83
|
-
examples do not include all of the fields for every query.
|
|
123
|
+
#### Codegen Example
|
|
84
124
|
|
|
85
|
-
|
|
125
|
+
Shows how to use GraphQL Code Generator for fully typed queries:
|
|
86
126
|
|
|
87
|
-
|
|
127
|
+
```bash
|
|
128
|
+
cd examples/codegen
|
|
129
|
+
pnpm install
|
|
130
|
+
pnpm run codegen
|
|
131
|
+
CODEX_API_KEY=your_api_key pnpm run dev
|
|
132
|
+
```
|
|
88
133
|
|
|
89
|
-
|
|
90
|
-
- `bun i`
|
|
91
|
-
- `bun run codegen`
|
|
92
|
-
- `CODEX_API_KEY=xyz bun run src/index.ts`
|
|
134
|
+
#### Next.js Example
|
|
93
135
|
|
|
94
|
-
|
|
136
|
+
Full-stack example with a Next.js application:
|
|
95
137
|
|
|
96
|
-
|
|
138
|
+
```bash
|
|
139
|
+
cd examples/next
|
|
140
|
+
pnpm install
|
|
141
|
+
NEXT_PUBLIC_CODEX_API_KEY=your_api_key pnpm run dev
|
|
142
|
+
```
|
|
97
143
|
|
|
98
|
-
|
|
99
|
-
- `bun i`
|
|
100
|
-
- `NEXT_PUBLIC_CODEX_API_KEY=xyz bun run dev`
|
|
144
|
+
## Package Structure
|
|
101
145
|
|
|
102
|
-
|
|
146
|
+
The SDK is built with modern tooling and provides both CommonJS and ESM builds:
|
|
103
147
|
|
|
104
|
-
|
|
105
|
-
-
|
|
106
|
-
|
|
148
|
+
```
|
|
149
|
+
@codex-data/sdk/
|
|
150
|
+
├── dist/
|
|
151
|
+
│ ├── index.js # CommonJS entry point
|
|
152
|
+
│ ├── index.mjs # ESM entry point
|
|
153
|
+
│ ├── index.d.ts # TypeScript definitions
|
|
154
|
+
│ └── sdk/ # SDK implementation
|
|
155
|
+
├── README.md
|
|
156
|
+
└── package.json
|
|
157
|
+
```
|
|
107
158
|
|
|
108
159
|
## Contributing
|
|
109
160
|
|
|
110
|
-
|
|
161
|
+
We welcome contributions! Please feel free to submit a Pull Request.
|
|
162
|
+
|
|
163
|
+
### Development Scripts
|
|
164
|
+
|
|
165
|
+
- `pnpm run build` - Build the SDK for production
|
|
166
|
+
- `pnpm run test` - Run the test suite
|
|
167
|
+
- `pnpm run lint` - Lint the codebase
|
|
168
|
+
- `pnpm run clean` - Clean build artifacts
|
|
169
|
+
|
|
170
|
+
## Releasing
|
|
171
|
+
|
|
172
|
+
### Publishing Beta Versions
|
|
173
|
+
|
|
174
|
+
For testing releases before making them public:
|
|
175
|
+
|
|
176
|
+
1. Update the version in `package.json` to a beta version:
|
|
177
|
+
|
|
178
|
+
```json
|
|
179
|
+
"version": "2.0.0-beta.0"
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
2. Publish to the beta tag:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
pnpm run publish:beta
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
3. Test the beta version:
|
|
189
|
+
```bash
|
|
190
|
+
npm install @codex-data/sdk@beta
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Users installing without the `@beta` tag will continue to receive the latest stable version.
|
|
194
|
+
|
|
195
|
+
### Publishing Production Releases
|
|
196
|
+
|
|
197
|
+
1. Update the version in `package.json` to a production version:
|
|
198
|
+
|
|
199
|
+
```json
|
|
200
|
+
"version": "2.0.0"
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
2. Publish to the latest tag:
|
|
204
|
+
```bash
|
|
205
|
+
pnpm run publish:latest
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
> **Note:** The `prepublishOnly` script automatically runs the full build before publishing, ensuring the package is always built before release.
|
|
209
|
+
|
|
210
|
+
# Upgrading to 2.0.0+
|
|
211
|
+
|
|
212
|
+
There are a few breaking changes in 2.0.0 that you need to be aware of.
|
|
213
|
+
|
|
214
|
+
### Imports
|
|
215
|
+
|
|
216
|
+
**Before**
|
|
217
|
+
```
|
|
218
|
+
import { Codex } from "@codex-data/sdk";
|
|
219
|
+
import { TokenRankingAttribute, RankingDirection } from "@codex-data/sdk/dist/sdk/generated/graphql";
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**After**
|
|
223
|
+
```
|
|
224
|
+
import { Codex, TokenRankingAttribute, RankingDirection } from "@codex-data/sdk";
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
**Before**
|
|
228
|
+
```tsx
|
|
229
|
+
import { Codex, GraphQL } from "@codex-data/sdk";
|
|
230
|
+
|
|
231
|
+
const [quoteToken, setQuoteToken] = useState<GraphQL.QuoteToken>(GraphQL.QuoteToken.Token0);
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**After**
|
|
235
|
+
```tsx
|
|
236
|
+
import { Codex, QuoteToken } from "@codex-data/sdk";
|
|
237
|
+
|
|
238
|
+
const [quoteToken, setQuoteToken] = useState<QuoteToken>(QuoteToken.Token0);
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### `onLaunchpadTokenEventBatch`
|
|
242
|
+
|
|
243
|
+
**Before**
|
|
244
|
+
```tsx
|
|
245
|
+
const unsubscribeFn = codex.subscriptions.onLaunchpadTokenEventBatch(
|
|
246
|
+
{
|
|
247
|
+
networkId: networkId
|
|
248
|
+
}
|
|
249
|
+
)
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**After**
|
|
253
|
+
```tsx
|
|
254
|
+
const unsubscribeFn = codex.subscriptions.onLaunchpadTokenEventBatch(
|
|
255
|
+
{
|
|
256
|
+
input: {
|
|
257
|
+
networkId: networkId
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
export { Codex } from "./sdk";
|
|
2
|
+
export type { ApiConfig, CleanupFunction } from "./sdk";
|
|
3
|
+
export * from "./sdk/generated/graphql";
|
package/dist/index.js
CHANGED
|
@@ -10,33 +10,13 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
15
|
};
|
|
38
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
17
|
+
exports.Codex = void 0;
|
|
18
|
+
// Main SDK exports
|
|
19
|
+
var sdk_1 = require("./sdk");
|
|
20
|
+
Object.defineProperty(exports, "Codex", { enumerable: true, get: function () { return sdk_1.Codex; } });
|
|
21
|
+
// Export GraphQL types for use in applications
|
|
22
|
+
__exportStar(require("./sdk/generated/graphql"), exports);
|
package/dist/index.mjs
ADDED
package/dist/sdk/Mutation.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BackfillWalletAggregatesMutationVariables, CreateApiTokensMutationVariables, CreateWebhooksMutationVariables, DeleteApiTokenMutationVariables, DeleteWebhooksMutationVariables } from "./generated/graphql";
|
|
1
|
+
import { BackfillWalletAggregatesMutationVariables, CreateApiTokensMutationVariables, CreateWebhooksMutationVariables, DeleteApiTokenMutationVariables, DeleteWebhooksMutationVariables, RefreshBalancesMutationVariables } from "./generated/graphql";
|
|
2
2
|
import { Codex } from "./index";
|
|
3
3
|
export declare class Mutation {
|
|
4
4
|
private sdk;
|
|
5
5
|
constructor(sdk: Codex);
|
|
6
6
|
backfillWalletAggregates: (vars: BackfillWalletAggregatesMutationVariables) => Promise<import("./generated/graphql").BackfillWalletAggregatesMutation>;
|
|
7
7
|
createApiTokens: (vars: CreateApiTokensMutationVariables) => Promise<import("./generated/graphql").CreateApiTokensMutation>;
|
|
8
|
-
deleteApiToken: (vars: DeleteApiTokenMutationVariables) => Promise<import("./generated/graphql").DeleteApiTokenMutation>;
|
|
9
8
|
createWebhooks: (vars: CreateWebhooksMutationVariables) => Promise<import("./generated/graphql").CreateWebhooksMutation>;
|
|
9
|
+
deleteApiToken: (vars: DeleteApiTokenMutationVariables) => Promise<import("./generated/graphql").DeleteApiTokenMutation>;
|
|
10
10
|
deleteWebhooks: (vars: DeleteWebhooksMutationVariables) => Promise<import("./generated/graphql").DeleteWebhooksMutation>;
|
|
11
|
+
refreshBalances: (vars: RefreshBalancesMutationVariables) => Promise<import("./generated/graphql").RefreshBalancesMutation>;
|
|
11
12
|
}
|
|
12
|
-
//# sourceMappingURL=Mutation.d.ts.map
|
package/dist/sdk/Mutation.js
CHANGED
|
@@ -17,10 +17,10 @@ class Mutation {
|
|
|
17
17
|
this.sdk = sdk;
|
|
18
18
|
this.backfillWalletAggregates = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.BackfillWalletAggregatesDocument, vars); });
|
|
19
19
|
this.createApiTokens = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateApiTokensDocument, vars); });
|
|
20
|
-
this.deleteApiToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.DeleteApiTokenDocument, vars); });
|
|
21
20
|
this.createWebhooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.CreateWebhooksDocument, vars); });
|
|
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
|
+
this.refreshBalances = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.mutation(graphql_1.RefreshBalancesDocument, vars); });
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
exports.Mutation = Mutation;
|
|
26
|
-
//# sourceMappingURL=Mutation.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
|
|
2
|
+
import { BackfillWalletAggregatesDocument, CreateApiTokensDocument, CreateWebhooksDocument, DeleteApiTokenDocument, DeleteWebhooksDocument, RefreshBalancesDocument, } from "./generated/graphql";
|
|
3
|
+
export class Mutation {
|
|
4
|
+
constructor(sdk) {
|
|
5
|
+
this.sdk = sdk;
|
|
6
|
+
this.backfillWalletAggregates = async (vars) => this.sdk.mutation(BackfillWalletAggregatesDocument, vars);
|
|
7
|
+
this.createApiTokens = async (vars) => this.sdk.mutation(CreateApiTokensDocument, vars);
|
|
8
|
+
this.createWebhooks = async (vars) => this.sdk.mutation(CreateWebhooksDocument, vars);
|
|
9
|
+
this.deleteApiToken = async (vars) => this.sdk.mutation(DeleteApiTokenDocument, vars);
|
|
10
|
+
this.deleteWebhooks = async (vars) => this.sdk.mutation(DeleteWebhooksDocument, vars);
|
|
11
|
+
this.refreshBalances = async (vars) => this.sdk.mutation(RefreshBalancesDocument, vars);
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/sdk/Query.d.ts
CHANGED
|
@@ -3,72 +3,71 @@ import { Codex } from "./index";
|
|
|
3
3
|
export declare class Query {
|
|
4
4
|
private sdk;
|
|
5
5
|
constructor(sdk: Codex);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
primeHolders: (vars: PrimeHoldersQueryVariables) => Promise<import("./generated/graphql").PrimeHoldersQuery>;
|
|
6
|
+
apiToken: (vars: ApiTokenQueryVariables) => Promise<import("./generated/graphql").ApiTokenQuery>;
|
|
7
|
+
apiTokens: (vars: ApiTokensQueryVariables) => Promise<import("./generated/graphql").ApiTokensQuery>;
|
|
9
8
|
balances: (vars: BalancesQueryVariables) => Promise<import("./generated/graphql").BalancesQuery>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
blocks: (vars: BlocksQueryVariables) => Promise<import("./generated/graphql").BlocksQuery>;
|
|
10
|
+
chartUrls: (vars: ChartUrlsQueryVariables) => Promise<import("./generated/graphql").ChartUrlsQuery>;
|
|
11
|
+
detailedWalletStats: (vars: DetailedWalletStatsQueryVariables) => Promise<import("./generated/graphql").DetailedWalletStatsQuery>;
|
|
12
|
+
filterExchanges: (vars: FilterExchangesQueryVariables) => Promise<import("./generated/graphql").FilterExchangesQuery>;
|
|
13
|
+
filterNftCollections: (vars: FilterNftCollectionsQueryVariables) => Promise<import("./generated/graphql").FilterNftCollectionsQuery>;
|
|
14
|
+
filterNftParallelAssets: (vars: FilterNftParallelAssetsQueryVariables) => Promise<import("./generated/graphql").FilterNftParallelAssetsQuery>;
|
|
15
|
+
filterNftPoolCollections: (vars: FilterNftPoolCollectionsQueryVariables) => Promise<import("./generated/graphql").FilterNftPoolCollectionsQuery>;
|
|
17
16
|
filterNftPools: (vars: FilterNftPoolsQueryVariables) => Promise<import("./generated/graphql").FilterNftPoolsQuery>;
|
|
17
|
+
filterPairs: (vars: FilterPairsQueryVariables) => Promise<import("./generated/graphql").FilterPairsQuery>;
|
|
18
18
|
filterTokenWallets: (vars: FilterTokenWalletsQueryVariables) => Promise<import("./generated/graphql").FilterTokenWalletsQuery>;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
filterTokens: (vars: FilterTokensQueryVariables) => Promise<import("./generated/graphql").FilterTokensQuery>;
|
|
20
|
+
filterWallets: (vars: FilterWalletsQueryVariables) => Promise<import("./generated/graphql").FilterWalletsQuery>;
|
|
21
|
+
getBars: (vars: GetBarsQueryVariables) => Promise<import("./generated/graphql").GetBarsQuery>;
|
|
22
|
+
getCommunityNotes: (vars: GetCommunityNotesQueryVariables) => Promise<import("./generated/graphql").GetCommunityNotesQuery>;
|
|
23
|
+
getDetailedNftStats: (vars: GetDetailedNftStatsQueryVariables) => Promise<import("./generated/graphql").GetDetailedNftStatsQuery>;
|
|
24
|
+
getDetailedPairStats: (vars: GetDetailedPairStatsQueryVariables) => Promise<import("./generated/graphql").GetDetailedPairStatsQuery>;
|
|
25
|
+
getDetailedPairsStats: (vars: GetDetailedPairsStatsQueryVariables) => Promise<import("./generated/graphql").GetDetailedPairsStatsQuery>;
|
|
26
|
+
getEventLabels: (vars: GetEventLabelsQueryVariables) => Promise<import("./generated/graphql").GetEventLabelsQuery>;
|
|
27
|
+
getExchanges: (vars: GetExchangesQueryVariables) => Promise<import("./generated/graphql").GetExchangesQuery>;
|
|
28
|
+
getNetworkConfigs: (vars: GetNetworkConfigsQueryVariables) => Promise<import("./generated/graphql").GetNetworkConfigsQuery>;
|
|
29
|
+
getNetworkStats: (vars: GetNetworkStatsQueryVariables) => Promise<import("./generated/graphql").GetNetworkStatsQuery>;
|
|
30
|
+
getNetworkStatus: (vars: GetNetworkStatusQueryVariables) => Promise<import("./generated/graphql").GetNetworkStatusQuery>;
|
|
31
|
+
getNetworks: (vars: GetNetworksQueryVariables) => Promise<import("./generated/graphql").GetNetworksQuery>;
|
|
32
|
+
getNftAssets: (vars: GetNftAssetsQueryVariables) => Promise<import("./generated/graphql").GetNftAssetsQuery>;
|
|
33
|
+
getNftCollectionMetadata: (vars: GetNftCollectionMetadataQueryVariables) => Promise<import("./generated/graphql").GetNftCollectionMetadataQuery>;
|
|
34
|
+
getNftContracts: (vars: GetNftContractsQueryVariables) => Promise<import("./generated/graphql").GetNftContractsQuery>;
|
|
35
|
+
getNftEvents: (vars: GetNftEventsQueryVariables) => Promise<import("./generated/graphql").GetNftEventsQuery>;
|
|
36
|
+
getNftPool: (vars: GetNftPoolQueryVariables) => Promise<import("./generated/graphql").GetNftPoolQuery>;
|
|
37
|
+
getNftPoolCollection: (vars: GetNftPoolCollectionQueryVariables) => Promise<import("./generated/graphql").GetNftPoolCollectionQuery>;
|
|
38
|
+
getNftPoolCollectionsByExchange: (vars: GetNftPoolCollectionsByExchangeQueryVariables) => Promise<import("./generated/graphql").GetNftPoolCollectionsByExchangeQuery>;
|
|
39
|
+
getNftPoolEvents: (vars: GetNftPoolEventsQueryVariables) => Promise<import("./generated/graphql").GetNftPoolEventsQuery>;
|
|
40
|
+
getNftPoolStats: (vars: GetNftPoolStatsQueryVariables) => Promise<import("./generated/graphql").GetNftPoolStatsQuery>;
|
|
21
41
|
getNftPoolsByCollectionAndExchange: (vars: GetNftPoolsByCollectionAndExchangeQueryVariables) => Promise<import("./generated/graphql").GetNftPoolsByCollectionAndExchangeQuery>;
|
|
22
|
-
walletNftCollectionAssets: (vars: WalletNftCollectionAssetsQueryVariables) => Promise<import("./generated/graphql").WalletNftCollectionAssetsQuery>;
|
|
23
|
-
filterPairs: (vars: FilterPairsQueryVariables) => Promise<import("./generated/graphql").FilterPairsQuery>;
|
|
24
42
|
getNftPoolsByOwner: (vars: GetNftPoolsByOwnerQueryVariables) => Promise<import("./generated/graphql").GetNftPoolsByOwnerQuery>;
|
|
25
|
-
|
|
26
|
-
|
|
43
|
+
getParallelCardChanges: (vars: GetParallelCardChangesQueryVariables) => Promise<import("./generated/graphql").GetParallelCardChangesQuery>;
|
|
44
|
+
getPrimePoolAssets: (vars: GetPrimePoolAssetsQueryVariables) => Promise<import("./generated/graphql").GetPrimePoolAssetsQuery>;
|
|
45
|
+
getPrimePoolEvents: (vars: GetPrimePoolEventsQueryVariables) => Promise<import("./generated/graphql").GetPrimePoolEventsQuery>;
|
|
27
46
|
getPrimePools: (vars: GetPrimePoolsQueryVariables) => Promise<import("./generated/graphql").GetPrimePoolsQuery>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
47
|
+
getSymbol: (vars: GetSymbolQueryVariables) => Promise<import("./generated/graphql").GetSymbolQuery>;
|
|
48
|
+
getTokenBars: (vars: GetTokenBarsQueryVariables) => Promise<import("./generated/graphql").GetTokenBarsQuery>;
|
|
49
|
+
getTokenEvents: (vars: GetTokenEventsQueryVariables) => Promise<import("./generated/graphql").GetTokenEventsQuery>;
|
|
50
|
+
getTokenEventsForMaker: (vars: GetTokenEventsForMakerQueryVariables) => Promise<import("./generated/graphql").GetTokenEventsForMakerQuery>;
|
|
51
|
+
getTokenPrices: (vars: GetTokenPricesQueryVariables) => Promise<import("./generated/graphql").GetTokenPricesQuery>;
|
|
52
|
+
getWebhooks: (vars: GetWebhooksQueryVariables) => Promise<import("./generated/graphql").GetWebhooksQuery>;
|
|
53
|
+
holders: (vars: HoldersQueryVariables) => Promise<import("./generated/graphql").HoldersQuery>;
|
|
32
54
|
liquidityLocks: (vars: LiquidityLocksQueryVariables) => Promise<import("./generated/graphql").LiquidityLocksQuery>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
55
|
+
liquidityMetadata: (vars: LiquidityMetadataQueryVariables) => Promise<import("./generated/graphql").LiquidityMetadataQuery>;
|
|
56
|
+
liquidityMetadataByToken: (vars: LiquidityMetadataByTokenQueryVariables) => Promise<import("./generated/graphql").LiquidityMetadataByTokenQuery>;
|
|
57
|
+
listPairsForToken: (vars: ListPairsForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsForTokenQuery>;
|
|
58
|
+
listPairsWithMetadataForToken: (vars: ListPairsWithMetadataForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsWithMetadataForTokenQuery>;
|
|
36
59
|
nftHolders: (vars: NftHoldersQueryVariables) => Promise<import("./generated/graphql").NftHoldersQuery>;
|
|
37
|
-
getExchanges: (vars: GetExchangesQueryVariables) => Promise<import("./generated/graphql").GetExchangesQuery>;
|
|
38
|
-
blocks: (vars: BlocksQueryVariables) => Promise<import("./generated/graphql").BlocksQuery>;
|
|
39
|
-
token: (vars: TokenQueryVariables) => Promise<import("./generated/graphql").TokenQuery>;
|
|
40
|
-
apiTokens: (vars: ApiTokensQueryVariables) => Promise<import("./generated/graphql").ApiTokensQuery>;
|
|
41
|
-
getTokenPrices: (vars: GetTokenPricesQueryVariables) => Promise<import("./generated/graphql").GetTokenPricesQuery>;
|
|
42
60
|
pairMetadata: (vars: PairMetadataQueryVariables) => Promise<import("./generated/graphql").PairMetadataQuery>;
|
|
61
|
+
primeHolders: (vars: PrimeHoldersQueryVariables) => Promise<import("./generated/graphql").PrimeHoldersQuery>;
|
|
62
|
+
searchNfts: (vars: SearchNftsQueryVariables) => Promise<import("./generated/graphql").SearchNftsQuery>;
|
|
63
|
+
token: (vars: TokenQueryVariables) => Promise<import("./generated/graphql").TokenQuery>;
|
|
43
64
|
tokenLifecycleEvents: (vars: TokenLifecycleEventsQueryVariables) => Promise<import("./generated/graphql").TokenLifecycleEventsQuery>;
|
|
44
|
-
|
|
45
|
-
|
|
65
|
+
tokenSparklines: (vars: TokenSparklinesQueryVariables) => Promise<import("./generated/graphql").TokenSparklinesQuery>;
|
|
66
|
+
tokenTopTraders: (vars: TokenTopTradersQueryVariables) => Promise<import("./generated/graphql").TokenTopTradersQuery>;
|
|
46
67
|
tokens: (vars: TokensQueryVariables) => Promise<import("./generated/graphql").TokensQuery>;
|
|
47
|
-
liquidityMetadataByToken: (vars: LiquidityMetadataByTokenQueryVariables) => Promise<import("./generated/graphql").LiquidityMetadataByTokenQuery>;
|
|
48
|
-
getTokenBars: (vars: GetTokenBarsQueryVariables) => Promise<import("./generated/graphql").GetTokenBarsQuery>;
|
|
49
|
-
getNetworkConfigs: (vars: GetNetworkConfigsQueryVariables) => Promise<import("./generated/graphql").GetNetworkConfigsQuery>;
|
|
50
|
-
filterWallets: (vars: FilterWalletsQueryVariables) => Promise<import("./generated/graphql").FilterWalletsQuery>;
|
|
51
|
-
listPairsForToken: (vars: ListPairsForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsForTokenQuery>;
|
|
52
|
-
getTokenEventsForMaker: (vars: GetTokenEventsForMakerQueryVariables) => Promise<import("./generated/graphql").GetTokenEventsForMakerQuery>;
|
|
53
|
-
filterNftPoolCollections: (vars: FilterNftPoolCollectionsQueryVariables) => Promise<import("./generated/graphql").FilterNftPoolCollectionsQuery>;
|
|
54
|
-
searchNfts: (vars: SearchNftsQueryVariables) => Promise<import("./generated/graphql").SearchNftsQuery>;
|
|
55
|
-
getNftContracts: (vars: GetNftContractsQueryVariables) => Promise<import("./generated/graphql").GetNftContractsQuery>;
|
|
56
68
|
top10HoldersPercent: (vars: Top10HoldersPercentQueryVariables) => Promise<import("./generated/graphql").Top10HoldersPercentQuery>;
|
|
57
|
-
listPairsWithMetadataForToken: (vars: ListPairsWithMetadataForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsWithMetadataForTokenQuery>;
|
|
58
|
-
getDetailedNftStats: (vars: GetDetailedNftStatsQueryVariables) => Promise<import("./generated/graphql").GetDetailedNftStatsQuery>;
|
|
59
|
-
getPrimePoolEvents: (vars: GetPrimePoolEventsQueryVariables) => Promise<import("./generated/graphql").GetPrimePoolEventsQuery>;
|
|
60
|
-
getTokenEvents: (vars: GetTokenEventsQueryVariables) => Promise<import("./generated/graphql").GetTokenEventsQuery>;
|
|
61
|
-
getNftPoolCollection: (vars: GetNftPoolCollectionQueryVariables) => Promise<import("./generated/graphql").GetNftPoolCollectionQuery>;
|
|
62
|
-
getWebhooks: (vars: GetWebhooksQueryVariables) => Promise<import("./generated/graphql").GetWebhooksQuery>;
|
|
63
|
-
getNftAssets: (vars: GetNftAssetsQueryVariables) => Promise<import("./generated/graphql").GetNftAssetsQuery>;
|
|
64
|
-
getBars: (vars: GetBarsQueryVariables) => Promise<import("./generated/graphql").GetBarsQuery>;
|
|
65
|
-
getNftEvents: (vars: GetNftEventsQueryVariables) => Promise<import("./generated/graphql").GetNftEventsQuery>;
|
|
66
69
|
walletAggregateBackfillState: (vars: WalletAggregateBackfillStateQueryVariables) => Promise<import("./generated/graphql").WalletAggregateBackfillStateQuery>;
|
|
67
|
-
getNetworkStatus: (vars: GetNetworkStatusQueryVariables) => Promise<import("./generated/graphql").GetNetworkStatusQuery>;
|
|
68
|
-
chartUrls: (vars: ChartUrlsQueryVariables) => Promise<import("./generated/graphql").ChartUrlsQuery>;
|
|
69
70
|
walletChart: (vars: WalletChartQueryVariables) => Promise<import("./generated/graphql").WalletChartQuery>;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
getParallelCardChanges: (vars: GetParallelCardChangesQueryVariables) => Promise<import("./generated/graphql").GetParallelCardChangesQuery>;
|
|
71
|
+
walletNftCollectionAssets: (vars: WalletNftCollectionAssetsQueryVariables) => Promise<import("./generated/graphql").WalletNftCollectionAssetsQuery>;
|
|
72
|
+
walletNftCollections: (vars: WalletNftCollectionsQueryVariables) => Promise<import("./generated/graphql").WalletNftCollectionsQuery>;
|
|
73
73
|
}
|
|
74
|
-
//# sourceMappingURL=Query.d.ts.map
|