@codex-data/sdk 0.5.7

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 (97) hide show
  1. package/README.md +104 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +32 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/resources/graphql.d.ts +7438 -0
  7. package/dist/resources/graphql.d.ts.map +1 -0
  8. package/dist/resources/graphql.js +1314 -0
  9. package/dist/resources/graphql.js.map +1 -0
  10. package/dist/resources/graphql.schema.json +50830 -0
  11. package/dist/resources/graphql.ts +7976 -0
  12. package/dist/resources/schema.graphql +10393 -0
  13. package/dist/sdk/Mutation.d.ts +14 -0
  14. package/dist/sdk/Mutation.d.ts.map +1 -0
  15. package/dist/sdk/Mutation.js +22 -0
  16. package/dist/sdk/Mutation.js.map +1 -0
  17. package/dist/sdk/Query.d.ts +22 -0
  18. package/dist/sdk/Query.d.ts.map +1 -0
  19. package/dist/sdk/Query.js +35 -0
  20. package/dist/sdk/Query.js.map +1 -0
  21. package/dist/sdk/Query.test.d.ts +2 -0
  22. package/dist/sdk/Query.test.d.ts.map +1 -0
  23. package/dist/sdk/Query.test.js +50 -0
  24. package/dist/sdk/Query.test.js.map +1 -0
  25. package/dist/sdk/Subscribe.d.ts +17 -0
  26. package/dist/sdk/Subscribe.d.ts.map +1 -0
  27. package/dist/sdk/Subscribe.js +28 -0
  28. package/dist/sdk/Subscribe.js.map +1 -0
  29. package/dist/sdk/generated/fragment-masking.d.ts +16 -0
  30. package/dist/sdk/generated/fragment-masking.d.ts.map +1 -0
  31. package/dist/sdk/generated/fragment-masking.js +23 -0
  32. package/dist/sdk/generated/fragment-masking.js.map +1 -0
  33. package/dist/sdk/generated/gql.d.ts +243 -0
  34. package/dist/sdk/generated/gql.d.ts.map +1 -0
  35. package/dist/sdk/generated/gql.js +70 -0
  36. package/dist/sdk/generated/gql.js.map +1 -0
  37. package/dist/sdk/generated/graphql.d.ts +11765 -0
  38. package/dist/sdk/generated/graphql.d.ts.map +1 -0
  39. package/dist/sdk/generated/graphql.js +1338 -0
  40. package/dist/sdk/generated/graphql.js.map +1 -0
  41. package/dist/sdk/generated/index.d.ts +3 -0
  42. package/dist/sdk/generated/index.d.ts.map +1 -0
  43. package/dist/sdk/generated/index.js +19 -0
  44. package/dist/sdk/generated/index.js.map +1 -0
  45. package/dist/sdk/index.d.ts +23 -0
  46. package/dist/sdk/index.d.ts.map +1 -0
  47. package/dist/sdk/index.js +76 -0
  48. package/dist/sdk/index.js.map +1 -0
  49. package/dist/sdk/index.test.d.ts +2 -0
  50. package/dist/sdk/index.test.d.ts.map +1 -0
  51. package/dist/sdk/index.test.js +78 -0
  52. package/dist/sdk/index.test.js.map +1 -0
  53. package/dist/sdk/invariant.d.ts +2 -0
  54. package/dist/sdk/invariant.d.ts.map +1 -0
  55. package/dist/sdk/invariant.js +31 -0
  56. package/dist/sdk/invariant.js.map +1 -0
  57. package/package.json +60 -0
  58. package/src/index.ts +2 -0
  59. package/src/resources/.keep +0 -0
  60. package/src/resources/graphql.schema.json +50830 -0
  61. package/src/resources/graphql.ts +7976 -0
  62. package/src/resources/schema.graphql +10393 -0
  63. package/src/sdk/Mutation.ts +15 -0
  64. package/src/sdk/Query.test.ts +40 -0
  65. package/src/sdk/Query.ts +65 -0
  66. package/src/sdk/Subscribe.ts +61 -0
  67. package/src/sdk/generated/fragment-masking.ts +66 -0
  68. package/src/sdk/generated/gql.ts +157 -0
  69. package/src/sdk/generated/graphql.ts +8215 -0
  70. package/src/sdk/generated/index.ts +2 -0
  71. package/src/sdk/graphql/CreateWebhooks.graphql +1145 -0
  72. package/src/sdk/graphql/DeleteWebhooks.graphql +5 -0
  73. package/src/sdk/graphql/FilterExchanges.graphql +23 -0
  74. package/src/sdk/graphql/FilterPairs.graphql +124 -0
  75. package/src/sdk/graphql/FilterTokens.graphql +129 -0
  76. package/src/sdk/graphql/GetBars.graphql +32 -0
  77. package/src/sdk/graphql/GetDetailedPairStats.graphql +941 -0
  78. package/src/sdk/graphql/GetNetworkStatus.graphql +7 -0
  79. package/src/sdk/graphql/GetNetworks.graphql +6 -0
  80. package/src/sdk/graphql/GetPairEvents.graphql +28 -0
  81. package/src/sdk/graphql/GetPrice.graphql +9 -0
  82. package/src/sdk/graphql/GetSparklines.graphql +10 -0
  83. package/src/sdk/graphql/GetSymbol.graphql +11 -0
  84. package/src/sdk/graphql/GetTokens.graphql +14 -0
  85. package/src/sdk/graphql/GetWebhooks.graphql +168 -0
  86. package/src/sdk/graphql/ListPairsForToken.graphql +105 -0
  87. package/src/sdk/graphql/ListTopTokens.graphql +48 -0
  88. package/src/sdk/graphql/OnBarsUpdated.graphql +183 -0
  89. package/src/sdk/graphql/OnDetailedStatsUpdated.graphql +324 -0
  90. package/src/sdk/graphql/OnEventsCreated.graphql +62 -0
  91. package/src/sdk/graphql/OnNftAssetsCreated.graphql +29 -0
  92. package/src/sdk/graphql/OnNftEventsCreated.graphql +83 -0
  93. package/src/sdk/graphql/OnPairMetadataUpdated.graphql +55 -0
  94. package/src/sdk/graphql/OnPriceUpdated.graphql +9 -0
  95. package/src/sdk/index.test.ts +78 -0
  96. package/src/sdk/index.ts +100 -0
  97. package/src/sdk/invariant.ts +34 -0
@@ -0,0 +1,5 @@
1
+ mutation DeleteWebhooks($input: DeleteWebhooksInput!) {
2
+ deleteWebhooks(input: $input) {
3
+ deletedIds
4
+ }
5
+ }
@@ -0,0 +1,23 @@
1
+ query FilterExchanges($filters: ExchangeFilters, $phrase: String, $rankings: [ExchangeRanking], $limit: Int, $offset: Int) {
2
+ filterExchanges(
3
+ filters: $filters
4
+ rankings: $rankings
5
+ limit: $limit
6
+ phrase: $phrase
7
+ offset: $offset
8
+ ) {
9
+ results {
10
+ exchange {
11
+ address
12
+ iconUrl
13
+ name
14
+ tradeUrl
15
+ }
16
+ dailyActiveUsers
17
+ monthlyActiveUsers
18
+ txnCount1
19
+ volumeNBT12
20
+ volumeUSD24
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,124 @@
1
+ query FilterPairs(
2
+ $filters: PairFilters
3
+ $phrase: String
4
+ $pairs: [String]
5
+ $rankings: [PairRanking]
6
+ $limit: Int
7
+ $offset: Int
8
+ $matchTokens: PairFilterMatchTokens
9
+ ) {
10
+ filterPairs(
11
+ filters: $filters
12
+ phrase: $phrase
13
+ pairs: $pairs
14
+ rankings: $rankings
15
+ limit: $limit
16
+ offset: $offset
17
+ matchTokens: $matchTokens
18
+ ) {
19
+ count
20
+ offset
21
+ results {
22
+ createdAt
23
+ lastTransaction
24
+ buyCount1
25
+ buyCount4
26
+ buyCount12
27
+ buyCount24
28
+ highPrice1
29
+ highPrice4
30
+ highPrice12
31
+ highPrice24
32
+ liquidity
33
+ liquidityToken
34
+ quoteToken
35
+ lowPrice1
36
+ lowPrice4
37
+ lowPrice12
38
+ lowPrice24
39
+ marketCap
40
+ price
41
+ priceScale
42
+ priceChange1
43
+ priceChange4
44
+ priceChange12
45
+ priceChange24
46
+ sellCount1
47
+ sellCount4
48
+ sellCount12
49
+ sellCount24
50
+ txnCount1
51
+ txnCount4
52
+ txnCount12
53
+ txnCount24
54
+ uniqueBuys1
55
+ uniqueBuys4
56
+ uniqueBuys12
57
+ uniqueBuys24
58
+ uniqueSells1
59
+ uniqueSells4
60
+ uniqueSells12
61
+ uniqueSells24
62
+ uniqueTransactions1
63
+ uniqueTransactions4
64
+ uniqueTransactions12
65
+ uniqueTransactions24
66
+ volumeUSD1
67
+ volumeUSD4
68
+ volumeUSD12
69
+ volumeUSD24
70
+ pair {
71
+ address
72
+ createdAt
73
+ exchangeHash
74
+ fee
75
+ id
76
+ networkId
77
+ pooled {
78
+ token0
79
+ token1
80
+ }
81
+ tickSpacing
82
+ token0
83
+ token1
84
+ }
85
+ token0 {
86
+ address
87
+ decimals
88
+ name
89
+ networkId
90
+ symbol
91
+ info {
92
+ imageThumbUrl
93
+ imageSmallUrl
94
+ imageLargeUrl
95
+ circulatingSupply
96
+ totalSupply
97
+ }
98
+ }
99
+ token1 {
100
+ address
101
+ decimals
102
+ name
103
+ networkId
104
+ symbol
105
+ info {
106
+ imageThumbUrl
107
+ imageSmallUrl
108
+ imageLargeUrl
109
+ circulatingSupply
110
+ totalSupply
111
+ }
112
+ }
113
+ exchange {
114
+ address
115
+ id
116
+ name
117
+ exchangeVersion
118
+ iconUrl
119
+ networkId
120
+ tradeUrl
121
+ }
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,129 @@
1
+ query FilterTokens(
2
+ $filters: TokenFilters
3
+ $phrase: String
4
+ $tokens: [String]
5
+ $rankings: [TokenRanking]
6
+ $limit: Int
7
+ $offset: Int
8
+ ) {
9
+ filterTokens(
10
+ filters: $filters
11
+ phrase: $phrase
12
+ tokens: $tokens
13
+ rankings: $rankings
14
+ limit: $limit
15
+ offset: $offset
16
+ ) {
17
+ count
18
+ page
19
+ results {
20
+ buyCount1
21
+ buyCount4
22
+ buyCount12
23
+ buyCount24
24
+ change1
25
+ change4
26
+ change12
27
+ change24
28
+ createdAt
29
+ exchanges {
30
+ address
31
+ color
32
+ exchangeVersion
33
+ iconUrl
34
+ id
35
+ name
36
+ networkId
37
+ tradeUrl
38
+ }
39
+ high1
40
+ high4
41
+ high12
42
+ high24
43
+ lastTransaction
44
+ liquidity
45
+ low1
46
+ low4
47
+ low12
48
+ low24
49
+ marketCap
50
+ priceUSD
51
+ quoteToken
52
+ sellCount1
53
+ sellCount4
54
+ sellCount12
55
+ sellCount24
56
+ txnCount1
57
+ txnCount4
58
+ txnCount12
59
+ txnCount24
60
+ uniqueBuys1
61
+ uniqueBuys4
62
+ uniqueBuys12
63
+ uniqueBuys24
64
+ uniqueSells1
65
+ uniqueSells4
66
+ uniqueSells12
67
+ uniqueSells24
68
+ uniqueTransactions1
69
+ uniqueTransactions4
70
+ uniqueTransactions12
71
+ uniqueTransactions24
72
+ volume1
73
+ volume4
74
+ volume12
75
+ volume24
76
+ pair {
77
+ address
78
+ exchangeHash
79
+ fee
80
+ id
81
+ networkId
82
+ tickSpacing
83
+ token0
84
+ token1
85
+ createdAt
86
+ pooled {
87
+ token0
88
+ token1
89
+ }
90
+ }
91
+ token {
92
+ address
93
+ decimals
94
+ name
95
+ networkId
96
+ symbol
97
+ isScam
98
+ socialLinks {
99
+ bitcointalk
100
+ blog
101
+ coingecko
102
+ coinmarketcap
103
+ discord
104
+ email
105
+ facebook
106
+ github
107
+ instagram
108
+ linkedin
109
+ reddit
110
+ slack
111
+ telegram
112
+ twitch
113
+ twitter
114
+ website
115
+ wechat
116
+ whitepaper
117
+ youtube
118
+ }
119
+ info {
120
+ imageThumbUrl
121
+ imageSmallUrl
122
+ imageLargeUrl
123
+ circulatingSupply
124
+ totalSupply
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,32 @@
1
+ query GetBars($symbol: String!, $from: Int!, $to: Int!, $resolution: String!, $currencyCode: String, $quoteToken: QuoteToken, $removeLeadingNullValues: Boolean, $removeEmptyBars: Boolean, $statsType: TokenPairStatisticsType) {
2
+ getBars(
3
+ symbol: $symbol
4
+ from: $from
5
+ to: $to
6
+ resolution: $resolution
7
+ currencyCode: $currencyCode
8
+ quoteToken: $quoteToken
9
+ removeLeadingNullValues: $removeLeadingNullValues
10
+ removeEmptyBars: $removeEmptyBars
11
+ statsType: $statsType
12
+ ) {
13
+ buyers
14
+ buys
15
+ buyVolume
16
+ c
17
+ h
18
+ l
19
+ liquidity
20
+ o
21
+ s
22
+ sellers
23
+ sells
24
+ sellVolume
25
+ t
26
+ traders
27
+ transactions
28
+ v
29
+ volume
30
+ volumeNativeToken
31
+ }
32
+ }