@codex-data/sdk 1.0.8 → 1.0.9

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 (42) hide show
  1. package/dist/resources/graphql.d.ts +174 -5
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +8 -2
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/sdk/Query.d.ts +2 -2
  6. package/dist/sdk/Query.d.ts.map +1 -1
  7. package/dist/sdk/Query.js +1 -1
  8. package/dist/sdk/Query.js.map +1 -1
  9. package/dist/sdk/Subscribe.d.ts +3 -1
  10. package/dist/sdk/Subscribe.d.ts.map +1 -1
  11. package/dist/sdk/Subscribe.js +20 -6
  12. package/dist/sdk/Subscribe.js.map +1 -1
  13. package/dist/sdk/generated/gql.d.ts +47 -29
  14. package/dist/sdk/generated/gql.d.ts.map +1 -1
  15. package/dist/sdk/generated/gql.js +13 -11
  16. package/dist/sdk/generated/gql.js.map +1 -1
  17. package/dist/sdk/generated/graphql.d.ts +789 -71
  18. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  19. package/dist/sdk/generated/graphql.js +23 -15
  20. package/dist/sdk/generated/graphql.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/resources/generated_queries/Balances.graphql +78 -0
  23. package/src/resources/generated_queries/GetTokenEvents.graphql +1 -0
  24. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +1 -0
  25. package/src/resources/generated_queries/Holders.graphql +78 -0
  26. package/src/resources/generated_queries/LiquidityLocks.graphql +7 -1
  27. package/src/resources/generated_queries/LiquidityMetadataByToken.graphql +19 -0
  28. package/src/resources/generated_queries/PrimeHolders.graphql +78 -0
  29. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +78 -0
  30. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +3 -0
  31. package/src/resources/generated_subscriptions/OnEventsCreatedByMaker.graphql +92 -0
  32. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +78 -0
  33. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +1 -0
  34. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreatedByMaker.graphql +41 -0
  35. package/src/resources/graphql.schema.json +1206 -128
  36. package/src/resources/graphql.ts +192 -5
  37. package/src/resources/schema.graphql +247 -5
  38. package/src/sdk/Query.ts +5 -4
  39. package/src/sdk/Subscribe.ts +36 -6
  40. package/src/sdk/generated/gql.ts +34 -24
  41. package/src/sdk/generated/graphql.ts +242 -38
  42. package/src/resources/generated_queries/ListTopTokens.graphql +0 -55
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-data/sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "engines": {
5
5
  "node": ">=17.5.0"
6
6
  },
@@ -4,11 +4,89 @@ query Balances($input: BalancesInput!) {
4
4
  items {
5
5
  address
6
6
  balance
7
+ balanceUsd
7
8
  firstHeldTimestamp
8
9
  networkId
9
10
  shiftedBalance
11
+ token {
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
+ launchpad {
49
+ completed
50
+ completedAt
51
+ completedSlot
52
+ graduationPercent
53
+ launchpadName
54
+ launchpadProtocol
55
+ migrated
56
+ migratedAt
57
+ migratedPoolAddress
58
+ migratedSlot
59
+ poolAddress
60
+ }
61
+ mintable
62
+ name
63
+ networkId
64
+ socialLinks {
65
+ bitcointalk
66
+ blog
67
+ coingecko
68
+ coinmarketcap
69
+ discord
70
+ email
71
+ facebook
72
+ github
73
+ instagram
74
+ linkedin
75
+ reddit
76
+ slack
77
+ telegram
78
+ twitch
79
+ twitter
80
+ website
81
+ wechat
82
+ whitepaper
83
+ youtube
84
+ }
85
+ symbol
86
+ }
10
87
  tokenAddress
11
88
  tokenId
89
+ tokenPriceUsd
12
90
  walletId
13
91
  }
14
92
  }
@@ -96,6 +96,7 @@ query GetTokenEvents(
96
96
  transactionHash
97
97
  transactionIndex
98
98
  walletAge
99
+ walletLabels
99
100
  }
100
101
  }
101
102
  }
@@ -96,6 +96,7 @@ query GetTokenEventsForMaker(
96
96
  transactionHash
97
97
  transactionIndex
98
98
  walletAge
99
+ walletLabels
99
100
  }
100
101
  }
101
102
  }
@@ -5,11 +5,89 @@ query Holders($input: HoldersInput!) {
5
5
  items {
6
6
  address
7
7
  balance
8
+ balanceUsd
8
9
  firstHeldTimestamp
9
10
  networkId
10
11
  shiftedBalance
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
+ launchpadName
55
+ launchpadProtocol
56
+ migrated
57
+ migratedAt
58
+ migratedPoolAddress
59
+ migratedSlot
60
+ poolAddress
61
+ }
62
+ mintable
63
+ name
64
+ networkId
65
+ socialLinks {
66
+ bitcointalk
67
+ blog
68
+ coingecko
69
+ coinmarketcap
70
+ discord
71
+ email
72
+ facebook
73
+ github
74
+ instagram
75
+ linkedin
76
+ reddit
77
+ slack
78
+ telegram
79
+ twitch
80
+ twitter
81
+ website
82
+ wechat
83
+ whitepaper
84
+ youtube
85
+ }
86
+ symbol
87
+ }
11
88
  tokenAddress
12
89
  tokenId
90
+ tokenPriceUsd
13
91
  walletId
14
92
  }
15
93
  status
@@ -1,8 +1,14 @@
1
- query LiquidityLocks($cursor: String, $networkId: Int!, $pairAddress: String!) {
1
+ query LiquidityLocks(
2
+ $cursor: String
3
+ $networkId: Int!
4
+ $pairAddress: String
5
+ $tokenAddress: String
6
+ ) {
2
7
  liquidityLocks(
3
8
  cursor: $cursor
4
9
  networkId: $networkId
5
10
  pairAddress: $pairAddress
11
+ tokenAddress: $tokenAddress
6
12
  ) {
7
13
  cursor
8
14
  items {
@@ -0,0 +1,19 @@
1
+ query LiquidityMetadataByToken($networkId: Int!, $tokenAddress: String!) {
2
+ liquidityMetadataByToken(networkId: $networkId, tokenAddress: $tokenAddress) {
3
+ lockBreakdown {
4
+ amountLockedTokens
5
+ amountLockedTokensShifted
6
+ amountLockedUsd
7
+ lockProtocol
8
+ }
9
+ lockedLiquidityPercentage
10
+ lockedLiquidityUsd
11
+ lockedTokenLiquidity
12
+ lockedTokenLiquidityShifted
13
+ networkId
14
+ tokenAddress
15
+ totalLiquidityUsd
16
+ totalTokenLiquidity
17
+ totalTokenLiquidityShifted
18
+ }
19
+ }
@@ -5,11 +5,89 @@ query PrimeHolders($cursor: String) {
5
5
  items {
6
6
  address
7
7
  balance
8
+ balanceUsd
8
9
  firstHeldTimestamp
9
10
  networkId
10
11
  shiftedBalance
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
+ launchpadName
55
+ launchpadProtocol
56
+ migrated
57
+ migratedAt
58
+ migratedPoolAddress
59
+ migratedSlot
60
+ poolAddress
61
+ }
62
+ mintable
63
+ name
64
+ networkId
65
+ socialLinks {
66
+ bitcointalk
67
+ blog
68
+ coingecko
69
+ coinmarketcap
70
+ discord
71
+ email
72
+ facebook
73
+ github
74
+ instagram
75
+ linkedin
76
+ reddit
77
+ slack
78
+ telegram
79
+ twitch
80
+ twitter
81
+ website
82
+ wechat
83
+ whitepaper
84
+ youtube
85
+ }
86
+ symbol
87
+ }
11
88
  tokenAddress
12
89
  tokenId
90
+ tokenPriceUsd
13
91
  walletId
14
92
  }
15
93
  }
@@ -2,11 +2,89 @@ subscription OnBalanceUpdated($walletAddress: String!) {
2
2
  onBalanceUpdated(walletAddress: $walletAddress) {
3
3
  address
4
4
  balance
5
+ balanceUsd
5
6
  firstHeldTimestamp
6
7
  networkId
7
8
  shiftedBalance
9
+ token {
10
+ address
11
+ cmcId
12
+ createBlockNumber
13
+ createTransactionHash
14
+ createdAt
15
+ creatorAddress
16
+ decimals
17
+ exchanges {
18
+ address
19
+ color
20
+ exchangeVersion
21
+ iconUrl
22
+ id
23
+ name
24
+ networkId
25
+ tradeUrl
26
+ }
27
+ freezable
28
+ id
29
+ info {
30
+ address
31
+ circulatingSupply
32
+ cmcId
33
+ description
34
+ id
35
+ imageBannerUrl
36
+ imageLargeUrl
37
+ imageSmallUrl
38
+ imageThumbUrl
39
+ isScam
40
+ name
41
+ networkId
42
+ symbol
43
+ totalSupply
44
+ }
45
+ isScam
46
+ launchpad {
47
+ completed
48
+ completedAt
49
+ completedSlot
50
+ graduationPercent
51
+ launchpadName
52
+ launchpadProtocol
53
+ migrated
54
+ migratedAt
55
+ migratedPoolAddress
56
+ migratedSlot
57
+ poolAddress
58
+ }
59
+ mintable
60
+ name
61
+ networkId
62
+ socialLinks {
63
+ bitcointalk
64
+ blog
65
+ coingecko
66
+ coinmarketcap
67
+ discord
68
+ email
69
+ facebook
70
+ github
71
+ instagram
72
+ linkedin
73
+ reddit
74
+ slack
75
+ telegram
76
+ twitch
77
+ twitter
78
+ website
79
+ wechat
80
+ whitepaper
81
+ youtube
82
+ }
83
+ symbol
84
+ }
8
85
  tokenAddress
9
86
  tokenId
87
+ tokenPriceUsd
10
88
  walletId
11
89
  }
12
90
  }
@@ -1,12 +1,14 @@
1
1
  subscription OnEventsCreated(
2
2
  $address: String
3
3
  $id: String
4
+ $maker: String
4
5
  $networkId: Int
5
6
  $quoteToken: QuoteToken
6
7
  ) {
7
8
  onEventsCreated(
8
9
  address: $address
9
10
  id: $id
11
+ maker: $maker
10
12
  networkId: $networkId
11
13
  quoteToken: $quoteToken
12
14
  ) {
@@ -96,6 +98,7 @@ subscription OnEventsCreated(
96
98
  transactionHash
97
99
  transactionIndex
98
100
  walletAge
101
+ walletLabels
99
102
  }
100
103
  id
101
104
  networkId
@@ -0,0 +1,92 @@
1
+ subscription OnEventsCreatedByMaker($input: OnEventsCreatedByMakerInput!) {
2
+ onEventsCreatedByMaker(input: $input) {
3
+ events {
4
+ address
5
+ baseTokenPrice
6
+ blockHash
7
+ blockNumber
8
+ data {
9
+ ... on BurnEventData {
10
+ amount0
11
+ amount0Shifted
12
+ amount1
13
+ amount1Shifted
14
+ tickLower
15
+ tickUpper
16
+ type
17
+ }
18
+ ... on MintEventData {
19
+ amount0
20
+ amount0Shifted
21
+ amount1
22
+ amount1Shifted
23
+ tickLower
24
+ tickUpper
25
+ type
26
+ }
27
+ ... on PoolBalanceChangedEventData {
28
+ amount0
29
+ amount0Shifted
30
+ amount1
31
+ amount1Shifted
32
+ liquidity0
33
+ liquidity1
34
+ protocolFeeAmount0
35
+ protocolFeeAmount1
36
+ sender
37
+ token0
38
+ token1
39
+ type
40
+ }
41
+ ... on SwapEventData {
42
+ amount0
43
+ amount0In
44
+ amount0Out
45
+ amount1
46
+ amount1In
47
+ amount1Out
48
+ amountNonLiquidityToken
49
+ priceBaseToken
50
+ priceBaseTokenTotal
51
+ priceUsd
52
+ priceUsdTotal
53
+ tick
54
+ type
55
+ }
56
+ }
57
+ eventDisplayType
58
+ eventType
59
+ id
60
+ labels {
61
+ sandwich {
62
+ label
63
+ sandwichType
64
+ token0DrainedAmount
65
+ token1DrainedAmount
66
+ }
67
+ washtrade {
68
+ label
69
+ }
70
+ }
71
+ liquidityToken
72
+ logIndex
73
+ maker
74
+ networkId
75
+ quoteToken
76
+ timestamp
77
+ token0Address
78
+ token0PoolValueUsd
79
+ token0SwapValueUsd
80
+ token0ValueBase
81
+ token1Address
82
+ token1PoolValueUsd
83
+ token1SwapValueUsd
84
+ token1ValueBase
85
+ transactionHash
86
+ transactionIndex
87
+ walletAge
88
+ walletLabels
89
+ }
90
+ makerAddress
91
+ }
92
+ }
@@ -3,11 +3,89 @@ subscription OnHoldersUpdated($tokenId: String!) {
3
3
  balances {
4
4
  address
5
5
  balance
6
+ balanceUsd
6
7
  firstHeldTimestamp
7
8
  networkId
8
9
  shiftedBalance
10
+ token {
11
+ address
12
+ cmcId
13
+ createBlockNumber
14
+ createTransactionHash
15
+ createdAt
16
+ creatorAddress
17
+ decimals
18
+ exchanges {
19
+ address
20
+ color
21
+ exchangeVersion
22
+ iconUrl
23
+ id
24
+ name
25
+ networkId
26
+ tradeUrl
27
+ }
28
+ freezable
29
+ id
30
+ info {
31
+ address
32
+ circulatingSupply
33
+ cmcId
34
+ description
35
+ id
36
+ imageBannerUrl
37
+ imageLargeUrl
38
+ imageSmallUrl
39
+ imageThumbUrl
40
+ isScam
41
+ name
42
+ networkId
43
+ symbol
44
+ totalSupply
45
+ }
46
+ isScam
47
+ launchpad {
48
+ completed
49
+ completedAt
50
+ completedSlot
51
+ graduationPercent
52
+ launchpadName
53
+ launchpadProtocol
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
+ }
9
86
  tokenAddress
10
87
  tokenId
88
+ tokenPriceUsd
11
89
  walletId
12
90
  }
13
91
  holders
@@ -85,6 +85,7 @@ subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
85
85
  transactionHash
86
86
  transactionIndex
87
87
  walletAge
88
+ walletLabels
88
89
  }
89
90
  id
90
91
  }
@@ -0,0 +1,41 @@
1
+ subscription OnUnconfirmedEventsCreatedByMaker(
2
+ $input: OnUnconfirmedEventsCreatedByMakerInput!
3
+ ) {
4
+ onUnconfirmedEventsCreatedByMaker(input: $input) {
5
+ events {
6
+ address
7
+ blockHash
8
+ blockNumber
9
+ data {
10
+ ... on UnconfirmedLiquidityChangeEventData {
11
+ amount0
12
+ amount0Shifted
13
+ amount1
14
+ amount1Shifted
15
+ type
16
+ }
17
+ ... on UnconfirmedSwapEventData {
18
+ amountBaseToken
19
+ amountNonLiquidityToken
20
+ priceBaseToken
21
+ priceBaseTokenTotal
22
+ priceUsd
23
+ priceUsdTotal
24
+ type
25
+ }
26
+ }
27
+ eventDisplayType
28
+ eventType
29
+ id
30
+ logIndex
31
+ maker
32
+ networkId
33
+ quoteToken
34
+ supplementalIndex
35
+ timestamp
36
+ transactionHash
37
+ transactionIndex
38
+ }
39
+ makerAddress
40
+ }
41
+ }