@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.
- package/dist/resources/generated_queries/Balances.graphql +3 -0
- package/dist/resources/generated_queries/GetNetworkStats.graphql +7 -0
- package/dist/resources/generated_queries/Holders.graphql +3 -0
- package/dist/resources/generated_queries/LiquidityLocks.graphql +1 -1
- package/dist/resources/generated_queries/PrimeHolders.graphql +3 -0
- package/dist/resources/generated_queries/TokenTopTraders.graphql +26 -0
- package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
- package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
- package/dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
- package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
- package/dist/resources/graphql.d.ts +245 -12
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +38 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +1800 -27
- package/dist/resources/graphql.ts +261 -12
- package/dist/resources/schema.graphql +311 -12
- package/dist/sdk/Mutation.d.ts +2 -2
- package/dist/sdk/Mutation.d.ts.map +1 -1
- package/dist/sdk/Mutation.js +2 -2
- package/dist/sdk/Mutation.js.map +1 -1
- package/dist/sdk/Query.d.ts +48 -48
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +47 -47
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +16 -14
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +93 -79
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +39 -25
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +11 -9
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +426 -62
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +51 -13
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +2 -2
- package/src/resources/generated_queries/Balances.graphql +3 -0
- package/src/resources/generated_queries/GetNetworkStats.graphql +7 -0
- package/src/resources/generated_queries/Holders.graphql +3 -0
- package/src/resources/generated_queries/LiquidityLocks.graphql +1 -1
- package/src/resources/generated_queries/PrimeHolders.graphql +3 -0
- package/src/resources/generated_queries/TokenTopTraders.graphql +26 -0
- package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
- package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
- package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
- package/src/resources/graphql.schema.json +1800 -27
- package/src/resources/graphql.ts +261 -12
- package/src/resources/schema.graphql +311 -12
- package/src/sdk/Mutation.ts +4 -4
- package/src/sdk/Query.ts +101 -101
- package/src/sdk/Subscribe.ts +151 -121
- package/src/sdk/generated/gql.ts +31 -21
- package/src/sdk/generated/graphql.ts +301 -36
- package/dist/resources/generated_queries/GetLatestTokens.graphql +0 -39
- package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -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
|
+
}
|
|
@@ -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(
|
|
7
|
+
onEventsCreated(
|
|
8
|
+
address: $address
|
|
9
|
+
id: $id
|
|
10
|
+
networkId: $networkId
|
|
11
|
+
quoteToken: $quoteToken
|
|
12
|
+
) {
|
|
7
13
|
address
|
|
8
14
|
events {
|
|
9
15
|
address
|
|
@@ -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(
|
|
6
|
+
onTokenBarsUpdated(
|
|
7
|
+
networkId: $networkId
|
|
8
|
+
statsType: $statsType
|
|
9
|
+
tokenId: $tokenId
|
|
10
|
+
) {
|
|
6
11
|
aggregates {
|
|
7
12
|
r1 {
|
|
8
13
|
t
|