@codex-data/sdk 1.0.4 → 1.0.6

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 (60) hide show
  1. package/dist/resources/generated_queries/Balances.graphql +3 -0
  2. package/dist/resources/generated_queries/GetNetworkStats.graphql +7 -0
  3. package/dist/resources/generated_queries/Holders.graphql +3 -0
  4. package/dist/resources/generated_queries/LiquidityLocks.graphql +1 -1
  5. package/dist/resources/generated_queries/PrimeHolders.graphql +3 -0
  6. package/dist/resources/generated_queries/TokenTopTraders.graphql +26 -0
  7. package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  8. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  9. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
  10. package/dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  11. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  12. package/dist/resources/graphql.d.ts +245 -12
  13. package/dist/resources/graphql.d.ts.map +1 -1
  14. package/dist/resources/graphql.js +38 -2
  15. package/dist/resources/graphql.js.map +1 -1
  16. package/dist/resources/graphql.schema.json +1800 -27
  17. package/dist/resources/graphql.ts +261 -12
  18. package/dist/resources/schema.graphql +311 -12
  19. package/dist/sdk/Mutation.d.ts +2 -2
  20. package/dist/sdk/Mutation.d.ts.map +1 -1
  21. package/dist/sdk/Mutation.js +2 -2
  22. package/dist/sdk/Mutation.js.map +1 -1
  23. package/dist/sdk/Query.d.ts +48 -48
  24. package/dist/sdk/Query.d.ts.map +1 -1
  25. package/dist/sdk/Query.js +47 -47
  26. package/dist/sdk/Query.js.map +1 -1
  27. package/dist/sdk/Subscribe.d.ts +16 -14
  28. package/dist/sdk/Subscribe.d.ts.map +1 -1
  29. package/dist/sdk/Subscribe.js +93 -79
  30. package/dist/sdk/Subscribe.js.map +1 -1
  31. package/dist/sdk/generated/gql.d.ts +39 -25
  32. package/dist/sdk/generated/gql.d.ts.map +1 -1
  33. package/dist/sdk/generated/gql.js +11 -9
  34. package/dist/sdk/generated/gql.js.map +1 -1
  35. package/dist/sdk/generated/graphql.d.ts +426 -62
  36. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  37. package/dist/sdk/generated/graphql.js +51 -13
  38. package/dist/sdk/generated/graphql.js.map +1 -1
  39. package/package.json +2 -2
  40. package/src/resources/generated_queries/Balances.graphql +3 -0
  41. package/src/resources/generated_queries/GetNetworkStats.graphql +7 -0
  42. package/src/resources/generated_queries/Holders.graphql +3 -0
  43. package/src/resources/generated_queries/LiquidityLocks.graphql +1 -1
  44. package/src/resources/generated_queries/PrimeHolders.graphql +3 -0
  45. package/src/resources/generated_queries/TokenTopTraders.graphql +26 -0
  46. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  47. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  48. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
  49. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  50. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  51. package/src/resources/graphql.schema.json +1800 -27
  52. package/src/resources/graphql.ts +261 -12
  53. package/src/resources/schema.graphql +311 -12
  54. package/src/sdk/Mutation.ts +4 -4
  55. package/src/sdk/Query.ts +101 -101
  56. package/src/sdk/Subscribe.ts +151 -121
  57. package/src/sdk/generated/gql.ts +31 -21
  58. package/src/sdk/generated/graphql.ts +301 -36
  59. package/dist/resources/generated_queries/GetLatestTokens.graphql +0 -39
  60. package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-data/sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "engines": {
5
5
  "node": ">=17.5.0"
6
6
  },
@@ -65,4 +65,4 @@
65
65
  "prettier": "^3.0.3",
66
66
  "ts-jest": "^29.1.1"
67
67
  }
68
- }
68
+ }
@@ -2,9 +2,12 @@ query Balances($input: BalancesInput!) {
2
2
  balances(input: $input) {
3
3
  cursor
4
4
  items {
5
+ address
5
6
  balance
6
7
  firstHeldTimestamp
8
+ networkId
7
9
  shiftedBalance
10
+ tokenAddress
8
11
  tokenId
9
12
  walletId
10
13
  }
@@ -3,11 +3,18 @@ query GetNetworkStats($exchangeAddress: String, $networkId: Int!) {
3
3
  liquidity
4
4
  transactions1
5
5
  transactions4
6
+ transactions5m
6
7
  transactions12
7
8
  transactions24
8
9
  volume1
9
10
  volume4
11
+ volume5m
10
12
  volume12
11
13
  volume24
14
+ volumeChange1
15
+ volumeChange4
16
+ volumeChange5m
17
+ volumeChange12
18
+ volumeChange24
12
19
  }
13
20
  }
@@ -3,9 +3,12 @@ query Holders($input: HoldersInput!) {
3
3
  count
4
4
  cursor
5
5
  items {
6
+ address
6
7
  balance
7
8
  firstHeldTimestamp
9
+ networkId
8
10
  shiftedBalance
11
+ tokenAddress
9
12
  tokenId
10
13
  walletId
11
14
  }
@@ -14,7 +14,7 @@ query LiquidityLocks($cursor: String, $networkId: Int!, $pairAddress: String!) {
14
14
  nftPositionManagerAddress
15
15
  nftTokenId
16
16
  }
17
- liquidityProtocol
17
+ liquidityProtocolV2
18
18
  lockProtocol
19
19
  lockerAddress
20
20
  networkId
@@ -3,9 +3,12 @@ query PrimeHolders($cursor: String) {
3
3
  count
4
4
  cursor
5
5
  items {
6
+ address
6
7
  balance
7
8
  firstHeldTimestamp
9
+ networkId
8
10
  shiftedBalance
11
+ tokenAddress
9
12
  tokenId
10
13
  walletId
11
14
  }
@@ -0,0 +1,26 @@
1
+ query TokenTopTraders($input: TokenTopTradersInput!) {
2
+ tokenTopTraders(input: $input) {
3
+ items {
4
+ amountBoughtUsd
5
+ amountSoldUsd
6
+ buys
7
+ firstTransactionAt
8
+ lastTransactionAt
9
+ networkId
10
+ realizedProfitPercentage
11
+ realizedProfitUsd
12
+ sells
13
+ singleTokenAcquisitionCostUsd
14
+ tokenAddress
15
+ tokenAmountBought
16
+ tokenAmountSold
17
+ tokenBalance
18
+ volumeUsd
19
+ walletAddress
20
+ }
21
+ networkId
22
+ offset
23
+ tokenAddress
24
+ tradingPeriod
25
+ }
26
+ }
@@ -0,0 +1,12 @@
1
+ subscription OnBalanceUpdated($walletAddress: String!) {
2
+ onBalanceUpdated(walletAddress: $walletAddress) {
3
+ address
4
+ balance
5
+ firstHeldTimestamp
6
+ networkId
7
+ shiftedBalance
8
+ tokenAddress
9
+ tokenId
10
+ walletId
11
+ }
12
+ }
@@ -1,9 +1,15 @@
1
1
  subscription OnEventsCreated(
2
2
  $address: String
3
3
  $id: String
4
+ $networkId: Int
4
5
  $quoteToken: QuoteToken
5
6
  ) {
6
- onEventsCreated(address: $address, id: $id, quoteToken: $quoteToken) {
7
+ onEventsCreated(
8
+ address: $address
9
+ id: $id
10
+ networkId: $networkId
11
+ quoteToken: $quoteToken
12
+ ) {
7
13
  address
8
14
  events {
9
15
  address
@@ -1,9 +1,12 @@
1
1
  subscription OnHoldersUpdated($tokenId: String!) {
2
2
  onHoldersUpdated(tokenId: $tokenId) {
3
3
  balances {
4
+ address
4
5
  balance
5
6
  firstHeldTimestamp
7
+ networkId
6
8
  shiftedBalance
9
+ tokenAddress
7
10
  tokenId
8
11
  walletId
9
12
  }
@@ -0,0 +1,89 @@
1
+ subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
2
+ onLaunchpadTokenEvent(input: $input) {
3
+ address
4
+ buyCount1
5
+ eventType
6
+ holders
7
+ marketCap
8
+ networkId
9
+ price
10
+ protocol
11
+ sellCount1
12
+ token {
13
+ address
14
+ cmcId
15
+ createBlockNumber
16
+ createTransactionHash
17
+ createdAt
18
+ creatorAddress
19
+ decimals
20
+ exchanges {
21
+ address
22
+ color
23
+ exchangeVersion
24
+ iconUrl
25
+ id
26
+ name
27
+ networkId
28
+ tradeUrl
29
+ }
30
+ freezable
31
+ id
32
+ info {
33
+ address
34
+ circulatingSupply
35
+ cmcId
36
+ description
37
+ id
38
+ imageBannerUrl
39
+ imageLargeUrl
40
+ imageSmallUrl
41
+ imageThumbUrl
42
+ isScam
43
+ name
44
+ networkId
45
+ symbol
46
+ totalSupply
47
+ }
48
+ isScam
49
+ launchpad {
50
+ completed
51
+ completedAt
52
+ completedSlot
53
+ graduationPercent
54
+ migrated
55
+ migratedAt
56
+ migratedPoolAddress
57
+ migratedSlot
58
+ poolAddress
59
+ }
60
+ mintable
61
+ name
62
+ networkId
63
+ socialLinks {
64
+ bitcointalk
65
+ blog
66
+ coingecko
67
+ coinmarketcap
68
+ discord
69
+ email
70
+ facebook
71
+ github
72
+ instagram
73
+ linkedin
74
+ reddit
75
+ slack
76
+ telegram
77
+ twitch
78
+ twitter
79
+ website
80
+ wechat
81
+ whitepaper
82
+ youtube
83
+ }
84
+ symbol
85
+ }
86
+ transactions1
87
+ volume1
88
+ }
89
+ }
@@ -1,8 +1,13 @@
1
1
  subscription OnTokenBarsUpdated(
2
+ $networkId: Int
2
3
  $statsType: TokenPairStatisticsType
3
4
  $tokenId: String
4
5
  ) {
5
- onTokenBarsUpdated(statsType: $statsType, tokenId: $tokenId) {
6
+ onTokenBarsUpdated(
7
+ networkId: $networkId
8
+ statsType: $statsType
9
+ tokenId: $tokenId
10
+ ) {
6
11
  aggregates {
7
12
  r1 {
8
13
  t