@codex-data/sdk 1.0.1 → 1.0.3

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 (47) hide show
  1. package/README.md +6 -0
  2. package/dist/resources/generated_queries/BackfillWalletState.graphql +3 -0
  3. package/dist/resources/generated_queries/GetTokenEvents.graphql +2 -0
  4. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  5. package/dist/resources/generated_queries/Holders.graphql +1 -0
  6. package/dist/resources/generated_queries/PairMetadata.graphql +126 -0
  7. package/dist/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  8. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  9. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  10. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  11. package/dist/resources/graphql.d.ts +264 -2
  12. package/dist/resources/graphql.d.ts.map +1 -1
  13. package/dist/resources/graphql.js +14 -2
  14. package/dist/resources/graphql.js.map +1 -1
  15. package/dist/resources/graphql.schema.json +724 -228
  16. package/dist/resources/graphql.ts +268 -2
  17. package/dist/resources/schema.graphql +533 -6
  18. package/dist/sdk/Query.d.ts +3 -1
  19. package/dist/sdk/Query.d.ts.map +1 -1
  20. package/dist/sdk/Query.js +2 -0
  21. package/dist/sdk/Query.js.map +1 -1
  22. package/dist/sdk/Subscribe.js +3 -3
  23. package/dist/sdk/generated/gql.d.ts +28 -14
  24. package/dist/sdk/generated/gql.d.ts.map +1 -1
  25. package/dist/sdk/generated/gql.js +9 -7
  26. package/dist/sdk/generated/gql.js.map +1 -1
  27. package/dist/sdk/generated/graphql.d.ts +561 -2
  28. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  29. package/dist/sdk/generated/graphql.js +25 -11
  30. package/dist/sdk/generated/graphql.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/resources/generated_queries/BackfillWalletState.graphql +3 -0
  33. package/src/resources/generated_queries/GetTokenEvents.graphql +2 -0
  34. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
  35. package/src/resources/generated_queries/Holders.graphql +1 -0
  36. package/src/resources/generated_queries/PairMetadata.graphql +126 -0
  37. package/src/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
  38. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
  39. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
  40. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
  41. package/src/resources/graphql.schema.json +724 -228
  42. package/src/resources/graphql.ts +268 -2
  43. package/src/resources/schema.graphql +533 -6
  44. package/src/sdk/Query.ts +8 -0
  45. package/src/sdk/Subscribe.ts +3 -3
  46. package/src/sdk/generated/gql.ts +24 -14
  47. package/src/sdk/generated/graphql.ts +296 -16
package/README.md CHANGED
@@ -99,6 +99,12 @@ This shows how you could use it in a NextJS project.
99
99
  - `bun i`
100
100
  - `NEXT_PUBLIC_CODEX_API_KEY=xyz bun run dev`
101
101
 
102
+ ## Releasing a new version
103
+
104
+ - Increase version number to what you want in package.json on a branch.
105
+ - Merge that Pr to main
106
+ - Release it with the right version number.
107
+
102
108
  ## Contributing
103
109
 
104
110
  Prs open!
@@ -0,0 +1,3 @@
1
+ query BackfillWalletState {
2
+ backfillWalletState
3
+ }
@@ -85,9 +85,11 @@ query GetTokenEvents(
85
85
  networkId
86
86
  quoteToken
87
87
  timestamp
88
+ token0Address
88
89
  token0PoolValueUsd
89
90
  token0SwapValueUsd
90
91
  token0ValueBase
92
+ token1Address
91
93
  token1PoolValueUsd
92
94
  token1SwapValueUsd
93
95
  token1ValueBase
@@ -85,9 +85,11 @@ query GetTokenEventsForMaker(
85
85
  networkId
86
86
  quoteToken
87
87
  timestamp
88
+ token0Address
88
89
  token0PoolValueUsd
89
90
  token0SwapValueUsd
90
91
  token0ValueBase
92
+ token1Address
91
93
  token1PoolValueUsd
92
94
  token1SwapValueUsd
93
95
  token1ValueBase
@@ -10,5 +10,6 @@ query Holders($input: HoldersInput!) {
10
10
  walletId
11
11
  }
12
12
  status
13
+ top10HoldersPercent
13
14
  }
14
15
  }
@@ -8,6 +8,132 @@ query PairMetadata(
8
8
  quoteToken: $quoteToken
9
9
  statsType: $statsType
10
10
  ) {
11
+ enhancedToken0 {
12
+ address
13
+ cmcId
14
+ createBlockNumber
15
+ createTransactionHash
16
+ createdAt
17
+ creatorAddress
18
+ decimals
19
+ exchanges {
20
+ address
21
+ color
22
+ exchangeVersion
23
+ iconUrl
24
+ id
25
+ name
26
+ networkId
27
+ tradeUrl
28
+ }
29
+ freezable
30
+ id
31
+ info {
32
+ address
33
+ circulatingSupply
34
+ cmcId
35
+ description
36
+ id
37
+ imageBannerUrl
38
+ imageLargeUrl
39
+ imageSmallUrl
40
+ imageThumbUrl
41
+ isScam
42
+ name
43
+ networkId
44
+ symbol
45
+ totalSupply
46
+ }
47
+ isScam
48
+ mintable
49
+ name
50
+ networkId
51
+ socialLinks {
52
+ bitcointalk
53
+ blog
54
+ coingecko
55
+ coinmarketcap
56
+ discord
57
+ email
58
+ facebook
59
+ github
60
+ instagram
61
+ linkedin
62
+ reddit
63
+ slack
64
+ telegram
65
+ twitch
66
+ twitter
67
+ website
68
+ wechat
69
+ whitepaper
70
+ youtube
71
+ }
72
+ symbol
73
+ }
74
+ enhancedToken1 {
75
+ address
76
+ cmcId
77
+ createBlockNumber
78
+ createTransactionHash
79
+ createdAt
80
+ creatorAddress
81
+ decimals
82
+ exchanges {
83
+ address
84
+ color
85
+ exchangeVersion
86
+ iconUrl
87
+ id
88
+ name
89
+ networkId
90
+ tradeUrl
91
+ }
92
+ freezable
93
+ id
94
+ info {
95
+ address
96
+ circulatingSupply
97
+ cmcId
98
+ description
99
+ id
100
+ imageBannerUrl
101
+ imageLargeUrl
102
+ imageSmallUrl
103
+ imageThumbUrl
104
+ isScam
105
+ name
106
+ networkId
107
+ symbol
108
+ totalSupply
109
+ }
110
+ isScam
111
+ mintable
112
+ name
113
+ networkId
114
+ socialLinks {
115
+ bitcointalk
116
+ blog
117
+ coingecko
118
+ coinmarketcap
119
+ discord
120
+ email
121
+ facebook
122
+ github
123
+ instagram
124
+ linkedin
125
+ reddit
126
+ slack
127
+ telegram
128
+ twitch
129
+ twitter
130
+ website
131
+ wechat
132
+ whitepaper
133
+ youtube
134
+ }
135
+ symbol
136
+ }
11
137
  exchangeId
12
138
  fee
13
139
  highPrice1
@@ -0,0 +1,3 @@
1
+ query Top10HoldersPercent($tokenId: String!) {
2
+ top10HoldersPercent(tokenId: $tokenId)
3
+ }
@@ -79,9 +79,11 @@ subscription OnEventsCreated(
79
79
  networkId
80
80
  quoteToken
81
81
  timestamp
82
+ token0Address
82
83
  token0PoolValueUsd
83
84
  token0SwapValueUsd
84
85
  token0ValueBase
86
+ token1Address
85
87
  token1PoolValueUsd
86
88
  token1SwapValueUsd
87
89
  token1ValueBase
@@ -8,6 +8,132 @@ subscription OnPairMetadataUpdated(
8
8
  quoteToken: $quoteToken
9
9
  statsType: $statsType
10
10
  ) {
11
+ enhancedToken0 {
12
+ address
13
+ cmcId
14
+ createBlockNumber
15
+ createTransactionHash
16
+ createdAt
17
+ creatorAddress
18
+ decimals
19
+ exchanges {
20
+ address
21
+ color
22
+ exchangeVersion
23
+ iconUrl
24
+ id
25
+ name
26
+ networkId
27
+ tradeUrl
28
+ }
29
+ freezable
30
+ id
31
+ info {
32
+ address
33
+ circulatingSupply
34
+ cmcId
35
+ description
36
+ id
37
+ imageBannerUrl
38
+ imageLargeUrl
39
+ imageSmallUrl
40
+ imageThumbUrl
41
+ isScam
42
+ name
43
+ networkId
44
+ symbol
45
+ totalSupply
46
+ }
47
+ isScam
48
+ mintable
49
+ name
50
+ networkId
51
+ socialLinks {
52
+ bitcointalk
53
+ blog
54
+ coingecko
55
+ coinmarketcap
56
+ discord
57
+ email
58
+ facebook
59
+ github
60
+ instagram
61
+ linkedin
62
+ reddit
63
+ slack
64
+ telegram
65
+ twitch
66
+ twitter
67
+ website
68
+ wechat
69
+ whitepaper
70
+ youtube
71
+ }
72
+ symbol
73
+ }
74
+ enhancedToken1 {
75
+ address
76
+ cmcId
77
+ createBlockNumber
78
+ createTransactionHash
79
+ createdAt
80
+ creatorAddress
81
+ decimals
82
+ exchanges {
83
+ address
84
+ color
85
+ exchangeVersion
86
+ iconUrl
87
+ id
88
+ name
89
+ networkId
90
+ tradeUrl
91
+ }
92
+ freezable
93
+ id
94
+ info {
95
+ address
96
+ circulatingSupply
97
+ cmcId
98
+ description
99
+ id
100
+ imageBannerUrl
101
+ imageLargeUrl
102
+ imageSmallUrl
103
+ imageThumbUrl
104
+ isScam
105
+ name
106
+ networkId
107
+ symbol
108
+ totalSupply
109
+ }
110
+ isScam
111
+ mintable
112
+ name
113
+ networkId
114
+ socialLinks {
115
+ bitcointalk
116
+ blog
117
+ coingecko
118
+ coinmarketcap
119
+ discord
120
+ email
121
+ facebook
122
+ github
123
+ instagram
124
+ linkedin
125
+ reddit
126
+ slack
127
+ telegram
128
+ twitch
129
+ twitter
130
+ website
131
+ wechat
132
+ whitepaper
133
+ youtube
134
+ }
135
+ symbol
136
+ }
11
137
  exchangeId
12
138
  fee
13
139
  highPrice1
@@ -74,9 +74,11 @@ subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
74
74
  networkId
75
75
  quoteToken
76
76
  timestamp
77
+ token0Address
77
78
  token0PoolValueUsd
78
79
  token0SwapValueUsd
79
80
  token0ValueBase
81
+ token1Address
80
82
  token1PoolValueUsd
81
83
  token1SwapValueUsd
82
84
  token1ValueBase