@codex-data/sdk 1.0.0-rc1 → 1.0.0-rc3
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/CreateWebhooks.graphql +392 -0
- package/dist/resources/generated_queries/FilterPairs.graphql +8 -0
- package/dist/resources/generated_queries/FilterTokens.graphql +7 -0
- package/dist/resources/generated_queries/GetCommunityNotes.graphql +100 -0
- package/dist/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
- package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
- package/dist/resources/generated_queries/GetEventLabels.graphql +11 -0
- package/dist/resources/generated_queries/GetNftEvents.graphql +46 -0
- package/dist/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
- package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
- package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
- package/dist/resources/generated_queries/GetTokenInfo.graphql +1 -0
- package/dist/resources/generated_queries/GetTokensInfo.graphql +1 -0
- package/dist/resources/generated_queries/GetWebhooks.graphql +98 -0
- package/dist/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
- package/dist/resources/generated_queries/ListPairsForToken.graphql +2 -0
- package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
- package/dist/resources/generated_queries/ListTopTokens.graphql +1 -0
- package/dist/resources/generated_queries/Token.graphql +1 -0
- package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
- package/dist/resources/generated_queries/Tokens.graphql +1 -0
- package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
- package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
- package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
- package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
- package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
- package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
- package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
- package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
- package/dist/resources/graphql.d.ts +138 -13
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +8 -0
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +940 -122
- package/dist/resources/graphql.ts +148 -14
- package/dist/resources/mutations_override/CreateWebhooks.graphql +472 -0
- package/dist/resources/queries_override/GetEventLabels.graphql +35 -0
- package/dist/resources/queries_override/GetWebhooks.graphql +134 -0
- package/dist/resources/schema.graphql +185 -16
- package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
- package/dist/scripts/generateGraphql.d.ts +1 -0
- package/dist/scripts/generateGraphql.d.ts.map +1 -1
- package/dist/scripts/generateGraphql.js +48 -12
- package/dist/scripts/generateGraphql.js.map +1 -1
- package/dist/sdk/Mutation.d.ts +1 -1
- package/dist/sdk/Mutation.js +1 -1
- package/dist/sdk/Query.d.ts +55 -54
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +54 -53
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +12 -11
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +80 -55
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +76 -58
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +31 -29
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +2908 -90
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +41 -31
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/index.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_mutations/CreateWebhooks.graphql +392 -0
- package/src/resources/generated_queries/FilterPairs.graphql +8 -0
- package/src/resources/generated_queries/FilterTokens.graphql +7 -0
- package/src/resources/generated_queries/GetCommunityNotes.graphql +100 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
- package/src/resources/generated_queries/GetEventLabels.graphql +11 -0
- package/src/resources/generated_queries/GetNftEvents.graphql +46 -0
- package/src/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
- package/src/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
- package/src/resources/generated_queries/GetTokenInfo.graphql +1 -0
- package/src/resources/generated_queries/GetTokensInfo.graphql +1 -0
- package/src/resources/generated_queries/GetWebhooks.graphql +98 -0
- package/src/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +2 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
- package/src/resources/generated_queries/ListTopTokens.graphql +1 -0
- package/src/resources/generated_queries/Token.graphql +1 -0
- package/src/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
- package/src/resources/generated_queries/Tokens.graphql +1 -0
- package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
- package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
- package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
- package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
- package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
- package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
- package/src/resources/graphql.schema.json +940 -122
- package/src/resources/graphql.ts +148 -14
- package/src/resources/mutations_override/CreateWebhooks.graphql +472 -0
- package/src/resources/queries_override/GetEventLabels.graphql +35 -0
- package/src/resources/queries_override/GetWebhooks.graphql +134 -0
- package/src/resources/schema.graphql +185 -16
- package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
- package/src/scripts/generateGraphql.ts +87 -17
- package/src/sdk/Mutation.ts +2 -2
- package/src/sdk/Query.ts +117 -113
- package/src/sdk/Subscribe.ts +118 -85
- package/src/sdk/generated/gql.ts +68 -58
- package/src/sdk/generated/graphql.ts +226 -72
- package/src/sdk/index.ts +1 -0
|
@@ -18,6 +18,104 @@ query GetWebhooks(
|
|
|
18
18
|
bucketId
|
|
19
19
|
bucketSortkey
|
|
20
20
|
callbackUrl
|
|
21
|
+
conditions {
|
|
22
|
+
... on NftEventWebhookCondition {
|
|
23
|
+
contractAddress {
|
|
24
|
+
eq
|
|
25
|
+
}
|
|
26
|
+
eventType {
|
|
27
|
+
eq
|
|
28
|
+
}
|
|
29
|
+
exchangeAddress {
|
|
30
|
+
eq
|
|
31
|
+
}
|
|
32
|
+
fillSource {
|
|
33
|
+
oneOf
|
|
34
|
+
}
|
|
35
|
+
ignoreTransfers
|
|
36
|
+
individualBaseTokenPrice {
|
|
37
|
+
eq
|
|
38
|
+
gt
|
|
39
|
+
gte
|
|
40
|
+
lt
|
|
41
|
+
lte
|
|
42
|
+
}
|
|
43
|
+
maker {
|
|
44
|
+
eq
|
|
45
|
+
}
|
|
46
|
+
networkId {
|
|
47
|
+
oneOf
|
|
48
|
+
}
|
|
49
|
+
tokenAddress {
|
|
50
|
+
eq
|
|
51
|
+
}
|
|
52
|
+
tokenId {
|
|
53
|
+
eq
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
... on PriceEventWebhookCondition {
|
|
57
|
+
priceNetworkId: networkId {
|
|
58
|
+
eq
|
|
59
|
+
}
|
|
60
|
+
priceUsd {
|
|
61
|
+
eq
|
|
62
|
+
gt
|
|
63
|
+
gte
|
|
64
|
+
lt
|
|
65
|
+
lte
|
|
66
|
+
}
|
|
67
|
+
priceTokenAddress: tokenAddress {
|
|
68
|
+
eq
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
... on RawTransactionWebhookCondition {
|
|
72
|
+
from {
|
|
73
|
+
eq
|
|
74
|
+
}
|
|
75
|
+
ignoreNftEvents
|
|
76
|
+
ignoreTokenPairEvents
|
|
77
|
+
input {
|
|
78
|
+
contains
|
|
79
|
+
notContains
|
|
80
|
+
}
|
|
81
|
+
networkId {
|
|
82
|
+
oneOf
|
|
83
|
+
}
|
|
84
|
+
to {
|
|
85
|
+
eq
|
|
86
|
+
}
|
|
87
|
+
toOrFrom {
|
|
88
|
+
eq
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
... on TokenPairEventWebhookCondition {
|
|
92
|
+
eventType {
|
|
93
|
+
oneOf
|
|
94
|
+
}
|
|
95
|
+
exchangeAddress {
|
|
96
|
+
eq
|
|
97
|
+
}
|
|
98
|
+
maker {
|
|
99
|
+
eq
|
|
100
|
+
}
|
|
101
|
+
networkId {
|
|
102
|
+
oneOf
|
|
103
|
+
}
|
|
104
|
+
pairAddress {
|
|
105
|
+
eq
|
|
106
|
+
}
|
|
107
|
+
swapValue {
|
|
108
|
+
eq
|
|
109
|
+
gt
|
|
110
|
+
gte
|
|
111
|
+
lt
|
|
112
|
+
lte
|
|
113
|
+
}
|
|
114
|
+
tokenAddress {
|
|
115
|
+
eq
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
21
119
|
created
|
|
22
120
|
groupId
|
|
23
121
|
id
|
|
@@ -41,6 +41,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
|
|
|
41
41
|
cmcId
|
|
42
42
|
description
|
|
43
43
|
id
|
|
44
|
+
imageBannerUrl
|
|
44
45
|
imageLargeUrl
|
|
45
46
|
imageSmallUrl
|
|
46
47
|
imageThumbUrl
|
|
@@ -102,6 +103,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
|
|
|
102
103
|
cmcId
|
|
103
104
|
description
|
|
104
105
|
id
|
|
106
|
+
imageBannerUrl
|
|
105
107
|
imageLargeUrl
|
|
106
108
|
imageSmallUrl
|
|
107
109
|
imageThumbUrl
|
|
@@ -34,6 +34,7 @@ query ListPairsWithMetadataForToken(
|
|
|
34
34
|
cmcId
|
|
35
35
|
description
|
|
36
36
|
id
|
|
37
|
+
imageBannerUrl
|
|
37
38
|
imageLargeUrl
|
|
38
39
|
imageSmallUrl
|
|
39
40
|
imageThumbUrl
|
|
@@ -118,6 +119,7 @@ query ListPairsWithMetadataForToken(
|
|
|
118
119
|
cmcId
|
|
119
120
|
description
|
|
120
121
|
id
|
|
122
|
+
imageBannerUrl
|
|
121
123
|
imageLargeUrl
|
|
122
124
|
imageSmallUrl
|
|
123
125
|
imageThumbUrl
|
|
@@ -179,6 +181,7 @@ query ListPairsWithMetadataForToken(
|
|
|
179
181
|
cmcId
|
|
180
182
|
description
|
|
181
183
|
id
|
|
184
|
+
imageBannerUrl
|
|
182
185
|
imageLargeUrl
|
|
183
186
|
imageSmallUrl
|
|
184
187
|
imageThumbUrl
|
|
@@ -241,6 +244,7 @@ query ListPairsWithMetadataForToken(
|
|
|
241
244
|
cmcId
|
|
242
245
|
description
|
|
243
246
|
id
|
|
247
|
+
imageBannerUrl
|
|
244
248
|
imageLargeUrl
|
|
245
249
|
imageSmallUrl
|
|
246
250
|
imageThumbUrl
|
|
@@ -8,6 +8,18 @@ query TokenLifecycleEvents(
|
|
|
8
8
|
items {
|
|
9
9
|
blockHash
|
|
10
10
|
blockNumber
|
|
11
|
+
data {
|
|
12
|
+
... on TokenBurnEventData {
|
|
13
|
+
amount
|
|
14
|
+
circulatingSupply
|
|
15
|
+
totalSupply
|
|
16
|
+
}
|
|
17
|
+
... on TokenMintEventData {
|
|
18
|
+
amount
|
|
19
|
+
circulatingSupply
|
|
20
|
+
totalSupply
|
|
21
|
+
}
|
|
22
|
+
}
|
|
11
23
|
eventType
|
|
12
24
|
id
|
|
13
25
|
logIndex
|
|
@@ -378,6 +378,47 @@ subscription OnBarsUpdated(
|
|
|
378
378
|
volumeNativeToken
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
+
r30S {
|
|
382
|
+
t
|
|
383
|
+
token {
|
|
384
|
+
buyVolume
|
|
385
|
+
buyers
|
|
386
|
+
buys
|
|
387
|
+
c
|
|
388
|
+
h
|
|
389
|
+
l
|
|
390
|
+
liquidity
|
|
391
|
+
o
|
|
392
|
+
sellVolume
|
|
393
|
+
sellers
|
|
394
|
+
sells
|
|
395
|
+
t
|
|
396
|
+
traders
|
|
397
|
+
transactions
|
|
398
|
+
v
|
|
399
|
+
volume
|
|
400
|
+
volumeNativeToken
|
|
401
|
+
}
|
|
402
|
+
usd {
|
|
403
|
+
buyVolume
|
|
404
|
+
buyers
|
|
405
|
+
buys
|
|
406
|
+
c
|
|
407
|
+
h
|
|
408
|
+
l
|
|
409
|
+
liquidity
|
|
410
|
+
o
|
|
411
|
+
sellVolume
|
|
412
|
+
sellers
|
|
413
|
+
sells
|
|
414
|
+
t
|
|
415
|
+
traders
|
|
416
|
+
transactions
|
|
417
|
+
v
|
|
418
|
+
volume
|
|
419
|
+
volumeNativeToken
|
|
420
|
+
}
|
|
421
|
+
}
|
|
381
422
|
r60 {
|
|
382
423
|
t
|
|
383
424
|
token {
|
|
@@ -507,6 +548,7 @@ subscription OnBarsUpdated(
|
|
|
507
548
|
pairAddress
|
|
508
549
|
pairId
|
|
509
550
|
quoteToken
|
|
551
|
+
quoteTokenAddress
|
|
510
552
|
statsType
|
|
511
553
|
timestamp
|
|
512
554
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
subscription OnEventLabelCreated($id: String) {
|
|
2
2
|
onEventLabelCreated(id: $id) {
|
|
3
|
+
data {
|
|
4
|
+
... on FrontRunLabelData {
|
|
5
|
+
index
|
|
6
|
+
token0DrainedAmount
|
|
7
|
+
token1DrainedAmount
|
|
8
|
+
}
|
|
9
|
+
... on SandwichedLabelData {
|
|
10
|
+
token0DrainedAmountSandwich: token0DrainedAmount
|
|
11
|
+
token1DrainedAmountSandwich: token1DrainedAmount
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
id
|
|
4
15
|
label
|
|
5
16
|
logIndex
|
|
@@ -10,6 +10,55 @@ subscription OnEventsCreated(
|
|
|
10
10
|
baseTokenPrice
|
|
11
11
|
blockHash
|
|
12
12
|
blockNumber
|
|
13
|
+
data {
|
|
14
|
+
... on BurnEventData {
|
|
15
|
+
amount0
|
|
16
|
+
amount0Shifted
|
|
17
|
+
amount1
|
|
18
|
+
amount1Shifted
|
|
19
|
+
tickLower
|
|
20
|
+
tickUpper
|
|
21
|
+
type
|
|
22
|
+
}
|
|
23
|
+
... on MintEventData {
|
|
24
|
+
amount0
|
|
25
|
+
amount0Shifted
|
|
26
|
+
amount1
|
|
27
|
+
amount1Shifted
|
|
28
|
+
tickLower
|
|
29
|
+
tickUpper
|
|
30
|
+
type
|
|
31
|
+
}
|
|
32
|
+
... on PoolBalanceChangedEventData {
|
|
33
|
+
amount0
|
|
34
|
+
amount0Shifted
|
|
35
|
+
amount1
|
|
36
|
+
amount1Shifted
|
|
37
|
+
liquidity0
|
|
38
|
+
liquidity1
|
|
39
|
+
protocolFeeAmount0
|
|
40
|
+
protocolFeeAmount1
|
|
41
|
+
sender
|
|
42
|
+
token0
|
|
43
|
+
token1
|
|
44
|
+
type
|
|
45
|
+
}
|
|
46
|
+
... on SwapEventData {
|
|
47
|
+
amount0
|
|
48
|
+
amount0In
|
|
49
|
+
amount0Out
|
|
50
|
+
amount1
|
|
51
|
+
amount1In
|
|
52
|
+
amount1Out
|
|
53
|
+
amountNonLiquidityToken
|
|
54
|
+
priceBaseToken
|
|
55
|
+
priceBaseTokenTotal
|
|
56
|
+
priceUsd
|
|
57
|
+
priceUsdTotal
|
|
58
|
+
tick
|
|
59
|
+
type
|
|
60
|
+
}
|
|
61
|
+
}
|
|
13
62
|
eventDisplayType
|
|
14
63
|
eventType
|
|
15
64
|
id
|
|
@@ -27,6 +27,52 @@ subscription OnNftEventsCreated($address: String, $networkId: Int) {
|
|
|
27
27
|
totalPriceNetworkBaseToken
|
|
28
28
|
totalPriceUsd
|
|
29
29
|
totalTradePrice
|
|
30
|
+
tradeOffer {
|
|
31
|
+
... on NftEventNftTradeItem {
|
|
32
|
+
address
|
|
33
|
+
amount
|
|
34
|
+
recipient
|
|
35
|
+
tokenId
|
|
36
|
+
type
|
|
37
|
+
}
|
|
38
|
+
... on NftEventTokenTradeItem {
|
|
39
|
+
address
|
|
40
|
+
amount
|
|
41
|
+
individualPriceNetworkBaseToken
|
|
42
|
+
individualPriceUsd
|
|
43
|
+
individualTradePrice
|
|
44
|
+
isPrice
|
|
45
|
+
priceError
|
|
46
|
+
recipient
|
|
47
|
+
totalPriceNetworkBaseToken
|
|
48
|
+
totalPriceUsd
|
|
49
|
+
totalTradePrice
|
|
50
|
+
type
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
tradeReceived {
|
|
54
|
+
... on NftEventNftTradeItem {
|
|
55
|
+
address
|
|
56
|
+
amount
|
|
57
|
+
recipient
|
|
58
|
+
tokenId
|
|
59
|
+
type
|
|
60
|
+
}
|
|
61
|
+
... on NftEventTokenTradeItem {
|
|
62
|
+
address
|
|
63
|
+
amount
|
|
64
|
+
individualPriceNetworkBaseToken
|
|
65
|
+
individualPriceUsd
|
|
66
|
+
individualTradePrice
|
|
67
|
+
isPrice
|
|
68
|
+
priceError
|
|
69
|
+
recipient
|
|
70
|
+
totalPriceNetworkBaseToken
|
|
71
|
+
totalPriceUsd
|
|
72
|
+
totalTradePrice
|
|
73
|
+
type
|
|
74
|
+
}
|
|
75
|
+
}
|
|
30
76
|
transactionHash
|
|
31
77
|
transactionIndex
|
|
32
78
|
}
|