Skip to content

Commit eeb5f72

Browse files
authored
Override GQL document build for filterTokenWallets (#42)
* Remove broken discord workflow for now * Override filter token wallets to get teh tokenBalanceLiveUsd and tokenBalanceLive attrs * Bump * lint
1 parent 7b5da9f commit eeb5f72

File tree

5 files changed

+150
-14
lines changed

5 files changed

+150
-14
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,3 @@ jobs:
2323
- run: npm publish --access public
2424
env:
2525
NPM_TOKEN: ${{secrets.CODEX_SDK_NPM_TOKEN}}
26-
27-
- name: Notify Discord
28-
uses: SethCohen/github-releases-to-discord@v1
29-
with:
30-
webhook_url: ${{secrets.DISCORD_WEBHOOK_URL}}
31-
color: "2105893"
32-
avatar_url: "https://avatars.githubusercontent.com/u/175457154?s=200&v=4"
33-
content: "🚀 New SDK release is now available!"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codex-data/sdk",
3-
"version": "1.0.31",
3+
"version": "1.0.32",
44
"engines": {
55
"node": ">=17.5.0"
66
},
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
query FilterTokenWallets($input: FilterTokenWalletsInput!) {
2+
filterTokenWallets(input: $input) {
3+
count
4+
offset
5+
results {
6+
address
7+
amountBoughtUsd1d
8+
amountBoughtUsd1w
9+
amountBoughtUsd1y
10+
amountBoughtUsd30d
11+
amountSoldUsd1d
12+
amountSoldUsd1w
13+
amountSoldUsd1y
14+
amountSoldUsd30d
15+
amountSoldUsdAll1d
16+
amountSoldUsdAll1w
17+
amountSoldUsdAll1y
18+
amountSoldUsdAll30d
19+
backfillState
20+
botScore
21+
buys1d
22+
buys1w
23+
buys1y
24+
buys30d
25+
firstTransactionAt
26+
labels
27+
lastTransactionAt
28+
networkId
29+
purchasedTokenBalance
30+
realizedProfitPercentage1d
31+
realizedProfitPercentage1w
32+
realizedProfitPercentage1y
33+
realizedProfitPercentage30d
34+
realizedProfitUsd1d
35+
realizedProfitUsd1w
36+
realizedProfitUsd1y
37+
realizedProfitUsd30d
38+
scammerScore
39+
sells1d
40+
sells1w
41+
sells1y
42+
sells30d
43+
sellsAll1d
44+
sellsAll1w
45+
sellsAll1y
46+
sellsAll30d
47+
token {
48+
address
49+
cmcId
50+
createBlockNumber
51+
createTransactionHash
52+
createdAt
53+
creatorAddress
54+
decimals
55+
exchanges {
56+
address
57+
color
58+
exchangeVersion
59+
iconUrl
60+
id
61+
name
62+
networkId
63+
tradeUrl
64+
}
65+
freezable
66+
id
67+
info {
68+
address
69+
circulatingSupply
70+
cmcId
71+
description
72+
id
73+
imageBannerUrl
74+
imageLargeUrl
75+
imageSmallUrl
76+
imageThumbHash
77+
imageThumbUrl
78+
isScam
79+
name
80+
networkId
81+
symbol
82+
totalSupply
83+
}
84+
isScam
85+
launchpad {
86+
completed
87+
completedAt
88+
completedSlot
89+
graduationPercent
90+
launchpadIconUrl
91+
launchpadName
92+
launchpadProtocol
93+
migrated
94+
migratedAt
95+
migratedPoolAddress
96+
migratedSlot
97+
poolAddress
98+
}
99+
mintable
100+
name
101+
networkId
102+
socialLinks {
103+
bitcointalk
104+
blog
105+
coingecko
106+
coinmarketcap
107+
discord
108+
email
109+
facebook
110+
github
111+
instagram
112+
linkedin
113+
reddit
114+
slack
115+
telegram
116+
twitch
117+
twitter
118+
website
119+
wechat
120+
whitepaper
121+
youtube
122+
}
123+
symbol
124+
}
125+
tokenAcquisitionCostUsd
126+
tokenAddress
127+
tokenAmountBought1d
128+
tokenAmountBought1w
129+
tokenAmountBought1y
130+
tokenAmountBought30d
131+
tokenAmountSold1d
132+
tokenAmountSold1w
133+
tokenAmountSold1y
134+
tokenAmountSold30d
135+
tokenAmountSoldAll1d
136+
tokenAmountSoldAll1w
137+
tokenAmountSoldAll1y
138+
tokenAmountSoldAll30d
139+
tokenBalance
140+
tokenBalanceLive
141+
tokenBalanceLiveUsd
142+
}
143+
}
144+
}

0 commit comments

Comments
 (0)