@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.
Files changed (113) hide show
  1. package/dist/resources/generated_mutations/CreateWebhooks.graphql +392 -0
  2. package/dist/resources/generated_queries/FilterPairs.graphql +8 -0
  3. package/dist/resources/generated_queries/FilterTokens.graphql +7 -0
  4. package/dist/resources/generated_queries/GetCommunityNotes.graphql +100 -0
  5. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
  6. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
  7. package/dist/resources/generated_queries/GetEventLabels.graphql +11 -0
  8. package/dist/resources/generated_queries/GetNftEvents.graphql +46 -0
  9. package/dist/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
  10. package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
  11. package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
  12. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
  13. package/dist/resources/generated_queries/GetTokenInfo.graphql +1 -0
  14. package/dist/resources/generated_queries/GetTokensInfo.graphql +1 -0
  15. package/dist/resources/generated_queries/GetWebhooks.graphql +98 -0
  16. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
  17. package/dist/resources/generated_queries/ListPairsForToken.graphql +2 -0
  18. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
  19. package/dist/resources/generated_queries/ListTopTokens.graphql +1 -0
  20. package/dist/resources/generated_queries/Token.graphql +1 -0
  21. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  22. package/dist/resources/generated_queries/Tokens.graphql +1 -0
  23. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  24. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  25. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  26. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  27. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  28. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  29. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  30. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  31. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  32. package/dist/resources/graphql.d.ts +138 -13
  33. package/dist/resources/graphql.d.ts.map +1 -1
  34. package/dist/resources/graphql.js +8 -0
  35. package/dist/resources/graphql.js.map +1 -1
  36. package/dist/resources/graphql.schema.json +940 -122
  37. package/dist/resources/graphql.ts +148 -14
  38. package/dist/resources/mutations_override/CreateWebhooks.graphql +472 -0
  39. package/dist/resources/queries_override/GetEventLabels.graphql +35 -0
  40. package/dist/resources/queries_override/GetWebhooks.graphql +134 -0
  41. package/dist/resources/schema.graphql +185 -16
  42. package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  43. package/dist/scripts/generateGraphql.d.ts +1 -0
  44. package/dist/scripts/generateGraphql.d.ts.map +1 -1
  45. package/dist/scripts/generateGraphql.js +48 -12
  46. package/dist/scripts/generateGraphql.js.map +1 -1
  47. package/dist/sdk/Mutation.d.ts +1 -1
  48. package/dist/sdk/Mutation.js +1 -1
  49. package/dist/sdk/Query.d.ts +55 -54
  50. package/dist/sdk/Query.d.ts.map +1 -1
  51. package/dist/sdk/Query.js +54 -53
  52. package/dist/sdk/Query.js.map +1 -1
  53. package/dist/sdk/Subscribe.d.ts +12 -11
  54. package/dist/sdk/Subscribe.d.ts.map +1 -1
  55. package/dist/sdk/Subscribe.js +80 -55
  56. package/dist/sdk/Subscribe.js.map +1 -1
  57. package/dist/sdk/generated/gql.d.ts +76 -58
  58. package/dist/sdk/generated/gql.d.ts.map +1 -1
  59. package/dist/sdk/generated/gql.js +31 -29
  60. package/dist/sdk/generated/gql.js.map +1 -1
  61. package/dist/sdk/generated/graphql.d.ts +2908 -90
  62. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  63. package/dist/sdk/generated/graphql.js +41 -31
  64. package/dist/sdk/generated/graphql.js.map +1 -1
  65. package/dist/sdk/index.d.ts.map +1 -1
  66. package/dist/sdk/index.js +1 -0
  67. package/dist/sdk/index.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/resources/generated_mutations/CreateWebhooks.graphql +392 -0
  70. package/src/resources/generated_queries/FilterPairs.graphql +8 -0
  71. package/src/resources/generated_queries/FilterTokens.graphql +7 -0
  72. package/src/resources/generated_queries/GetCommunityNotes.graphql +100 -0
  73. package/src/resources/generated_queries/GetDetailedPairStats.graphql +2 -0
  74. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +2 -0
  75. package/src/resources/generated_queries/GetEventLabels.graphql +11 -0
  76. package/src/resources/generated_queries/GetNftEvents.graphql +46 -0
  77. package/src/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
  78. package/src/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
  79. package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
  80. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +98 -0
  81. package/src/resources/generated_queries/GetTokenInfo.graphql +1 -0
  82. package/src/resources/generated_queries/GetTokensInfo.graphql +1 -0
  83. package/src/resources/generated_queries/GetWebhooks.graphql +98 -0
  84. package/src/resources/generated_queries/ListFavoriteTokens.graphql +1 -0
  85. package/src/resources/generated_queries/ListPairsForToken.graphql +2 -0
  86. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +4 -0
  87. package/src/resources/generated_queries/ListTopTokens.graphql +1 -0
  88. package/src/resources/generated_queries/Token.graphql +1 -0
  89. package/src/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  90. package/src/resources/generated_queries/Tokens.graphql +1 -0
  91. package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  92. package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  93. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  94. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  95. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  96. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  97. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  98. package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  99. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  100. package/src/resources/graphql.schema.json +940 -122
  101. package/src/resources/graphql.ts +148 -14
  102. package/src/resources/mutations_override/CreateWebhooks.graphql +472 -0
  103. package/src/resources/queries_override/GetEventLabels.graphql +35 -0
  104. package/src/resources/queries_override/GetWebhooks.graphql +134 -0
  105. package/src/resources/schema.graphql +185 -16
  106. package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  107. package/src/scripts/generateGraphql.ts +87 -17
  108. package/src/sdk/Mutation.ts +2 -2
  109. package/src/sdk/Query.ts +117 -113
  110. package/src/sdk/Subscribe.ts +118 -85
  111. package/src/sdk/generated/gql.ts +68 -58
  112. package/src/sdk/generated/graphql.ts +226 -72
  113. 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
@@ -22,6 +22,7 @@ query ListFavoriteTokens(
22
22
  tradeUrl
23
23
  }
24
24
  id
25
+ imageBannerUrl
25
26
  imageLargeUrl
26
27
  imageSmallUrl
27
28
  imageThumbUrl
@@ -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
@@ -18,6 +18,7 @@ query ListTopTokens($limit: Int, $networkFilter: [Int!], $resolution: String) {
18
18
  tradeUrl
19
19
  }
20
20
  id
21
+ imageBannerUrl
21
22
  imageLargeUrl
22
23
  imageSmallUrl
23
24
  imageThumbUrl
@@ -24,6 +24,7 @@ query Token($input: TokenInput!) {
24
24
  cmcId
25
25
  description
26
26
  id
27
+ imageBannerUrl
27
28
  imageLargeUrl
28
29
  imageSmallUrl
29
30
  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
@@ -24,6 +24,7 @@ query Tokens($ids: [TokenInput!]) {
24
24
  cmcId
25
25
  description
26
26
  id
27
+ imageBannerUrl
27
28
  imageLargeUrl
28
29
  imageSmallUrl
29
30
  imageThumbUrl
@@ -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
  }