@codex-data/sdk 0.5.8 → 0.6.1

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.
@@ -1,4 +1,4 @@
1
- query PairEvents($query: EventsQueryInput!) {
1
+ query PairEvents($cursor: String, $limit: Int, $direction: RankingDirection, $query: EventsQueryInput!) {
2
2
  pairEvents: getTokenEvents(query: $query) {
3
3
  cursor
4
4
  items {
@@ -23,6 +23,44 @@ query PairEvents($query: EventsQueryInput!) {
23
23
  transactionHash
24
24
  transactionIndex
25
25
  logIndex
26
+ data {
27
+ __typename
28
+ ... on BurnEventData {
29
+ amount0
30
+ amount1
31
+ amount0Shifted
32
+ amount1Shifted
33
+ type
34
+ }
35
+ ... on MintEventData {
36
+ amount0
37
+ amount1
38
+ amount0Shifted
39
+ amount1Shifted
40
+ type
41
+ }
42
+ ... on PoolBalanceChangedEventData {
43
+ amount0
44
+ amount1
45
+ amount0Shifted
46
+ amount1Shifted
47
+ type
48
+ }
49
+ ... on SwapEventData {
50
+ amount0In
51
+ amount0Out
52
+ amount1In
53
+ amount1Out
54
+ amount0
55
+ amount1
56
+ amountNonLiquidityToken
57
+ priceUsd
58
+ priceUsdTotal
59
+ priceBaseToken
60
+ priceBaseTokenTotal
61
+ type
62
+ }
63
+ }
26
64
  }
27
65
  }
28
- }
66
+ }
@@ -34,54 +34,6 @@ query GetWebhooks(
34
34
  eq
35
35
  }
36
36
  }
37
- ... on DecodedLogWebhookCondition {
38
- decodingId {
39
- eq
40
- }
41
- eventName {
42
- eq
43
- }
44
- address {
45
- eq
46
- }
47
- event
48
- }
49
- ... on DecodedCallWebhookCondition {
50
- decodingId {
51
- eq
52
- }
53
- methodName {
54
- eq
55
- }
56
- address {
57
- eq
58
- }
59
- from {
60
- eq
61
- }
62
- to {
63
- eq
64
- }
65
- methodId {
66
- eq
67
- }
68
- output
69
- inputJSON: input
70
- }
71
- ... on RawCallTraceWebhookCondition {
72
- traceType {
73
- eq
74
- }
75
- result {
76
- code {
77
- contains
78
- notContains
79
- }
80
- }
81
- networkId {
82
- oneOf
83
- }
84
- }
85
37
  ... on TokenPairEventWebhookCondition {
86
38
  tokenAddress {
87
39
  eq
@@ -8,176 +8,61 @@ subscription OnBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
8
8
  quoteToken
9
9
  aggregates {
10
10
  r1 {
11
- t
12
- usd {
13
- t
14
- o
15
- h
16
- l
17
- c
18
- volume
19
- }
20
- token {
21
- t
22
- o
23
- h
24
- l
25
- c
26
- volume
27
- }
11
+ ...currencyFields
28
12
  }
29
13
  r5 {
30
- t
31
- usd {
32
- t
33
- o
34
- h
35
- l
36
- c
37
- volume
38
- }
39
- token {
40
- t
41
- o
42
- h
43
- l
44
- c
45
- volume
46
- }
14
+ ...currencyFields
47
15
  }
48
16
  r15 {
49
- t
50
- usd {
51
- t
52
- o
53
- h
54
- l
55
- c
56
- volume
57
- }
58
- token {
59
- t
60
- o
61
- h
62
- l
63
- c
64
- volume
65
- }
17
+ ...currencyFields
66
18
  }
67
19
  r30 {
68
- t
69
- usd {
70
- t
71
- o
72
- h
73
- l
74
- c
75
- volume
76
- }
77
- token {
78
- t
79
- o
80
- h
81
- l
82
- c
83
- volume
84
- }
20
+ ...currencyFields
85
21
  }
86
22
  r60 {
87
- t
88
- usd {
89
- t
90
- o
91
- h
92
- l
93
- c
94
- volume
95
- }
96
- token {
97
- t
98
- o
99
- h
100
- l
101
- c
102
- volume
103
- }
23
+ ...currencyFields
104
24
  }
105
25
  r240 {
106
- t
107
- usd {
108
- t
109
- o
110
- h
111
- l
112
- c
113
- volume
114
- }
115
- token {
116
- t
117
- o
118
- h
119
- l
120
- c
121
- volume
122
- }
26
+ ...currencyFields
123
27
  }
124
28
  r720 {
125
- t
126
- usd {
127
- t
128
- o
129
- h
130
- l
131
- c
132
- volume
133
- }
134
- token {
135
- t
136
- o
137
- h
138
- l
139
- c
140
- volume
141
- }
29
+ ...currencyFields
142
30
  }
143
31
  r1D {
144
- t
145
- usd {
146
- t
147
- o
148
- h
149
- l
150
- c
151
- volume
152
- }
153
- token {
154
- t
155
- o
156
- h
157
- l
158
- c
159
- volume
160
- }
32
+ ...currencyFields
161
33
  }
162
34
  r7D {
163
- t
164
- usd {
165
- t
166
- o
167
- h
168
- l
169
- c
170
- volume
171
- }
172
- token {
173
- t
174
- o
175
- h
176
- l
177
- c
178
- volume
179
- }
35
+ ...currencyFields
180
36
  }
181
37
  }
182
38
  }
39
+ }
40
+
41
+ fragment barDataFields on IndividualBarData {
42
+ buyers
43
+ buys
44
+ buyVolume
45
+ c
46
+ h
47
+ l
48
+ liquidity
49
+ o
50
+ sellers
51
+ sells
52
+ sellVolume
53
+ t
54
+ traders
55
+ transactions
56
+ volume
57
+ volumeNativeToken
58
+ }
59
+
60
+ fragment currencyFields on CurrencyBarData {
61
+ t
62
+ token {
63
+ ...barDataFields
64
+ }
65
+ usd {
66
+ ...barDataFields
67
+ }
183
68
  }