Skip to content

Commit ad3d53f

Browse files
authored
bump and gen (#37)
* bump and gen * lint
1 parent 243531d commit ad3d53f

File tree

3 files changed

+105
-9
lines changed

3 files changed

+105
-9
lines changed

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.27",
3+
"version": "1.0.28",
44
"engines": {
55
"node": ">=17.5.0"
66
},

src/resources/networkConfigs.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2819,6 +2819,39 @@
28192819
"baseTokenName": "Wrapped SOL",
28202820
"baseTokenDecimals": 9
28212821
},
2822+
{
2823+
"__typename": "EvmNetworkConfig",
2824+
"id": "5031",
2825+
"networkType": "EVM",
2826+
"networkId": 5031,
2827+
"name": "Somnia",
2828+
"enabled": false,
2829+
"newTokensEnabled": true,
2830+
"mainnet": true,
2831+
"wrappedBaseTokenSymbol": "WSOMI",
2832+
"baseTokenSymbol": "SOMI",
2833+
"baseTokenAddress": "0x046ede9564a72571df6f5e44d0405360c0f4dcab",
2834+
"defaultPairAddress": "0xe5467be8b8db6b074904134e8c1a581f5565e2c3",
2835+
"defaultPairQuoteToken": "token0",
2836+
"stableCoinAddresses": [
2837+
"0x28bec7e30e6faee657a03e19bf1128aad7632a00",
2838+
"0x67b302e35aef5eee8c32d934f5856869ef428330",
2839+
"0x3243f9acb8c3bc6945131db91c5f678faf9093f1",
2840+
"0x43cce55ffb83c2bfd2454964a6dfae20bd01adb9",
2841+
"0x0827c58e2a44e94ab97a6a9fab1b8364328c1a4b"
2842+
],
2843+
"networkIconUrl": "https://icons.defined.fi/networks/somnia.png",
2844+
"color": "#9c3381",
2845+
"networkShortName": "somnia",
2846+
"networkName": "Somnia",
2847+
"explorer": {
2848+
"name": "Somnia Explorer",
2849+
"url": "https://explorer.somnia.network/",
2850+
"checksummed": false,
2851+
"icon": "https://icons.defined.fi/networks/somnia.png"
2852+
},
2853+
"baseTokenName": "SOMI"
2854+
},
28222855
{
28232856
"__typename": "EvmNetworkConfig",
28242857
"id": "50312",

src/resources/schema.graphql

Lines changed: 71 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,27 @@ type Query {
459459
inputs: [GetPriceInput]
460460
): [Price]
461461
"""Returns bar chart data to track price changes over time."""
462+
getTokenBars(
463+
"""The ID of the pair or token (`pairAddress:networkId` or `tokenAddress:networkId`). If a token contract address is provided, the token's top pair is used. For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1` returns WETH's top pair on Ethereum."""
464+
symbol: String!
465+
"""The unix timestamp for the start of the requested range."""
466+
from: Int!
467+
"""The unix timestamp for the end of the requested range."""
468+
to: Int!
469+
"""The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`. Resolutions lower than 1 minute are only updated for the last 24 hours due to the volume of data produced."""
470+
resolution: String!
471+
"""The currency to use for the response. Can be `USD` or `TOKEN`. Default is `USD`. Use `currencyCode: TOKEN` for native token pricing."""
472+
currencyCode: QuoteCurrency
473+
"""Whether to remove leading null values from the response. Default is `false`. To fetch a token's entire history, set resolution to `1D`, `from` value to `0` and `removeLeadingNullValues` to `true`."""
474+
removeLeadingNullValues: Boolean
475+
"""Whether to remove empty bars from the response. This is useful for eliminating gaps in low-activity tokens. Default is `false`."""
476+
removeEmptyBars: Boolean
477+
"""The token of interest within the token's top pair. Can be `token0` or `token1`. If omitted, the base token is inferred automatically. You can invert the pair by quoting the other token."""
478+
statsType: TokenPairStatisticsType
479+
"""Guarantees number of bars returned is at most this number. Use `countback: 1500` with `from: 0` for maximum results."""
480+
countback: Int
481+
): TokenBarsResponse
482+
"""Returns bar chart data to track price changes over time."""
462483
getBars(
463484
"""The ID of the pair or token (`pairAddress:networkId` or `tokenAddress:networkId`). If a token contract address is provided, the token's top pair is used. For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1` returns WETH's top pair on Ethereum."""
464485
symbol: String!
@@ -2753,6 +2774,8 @@ enum LaunchpadTokenProtocol {
27532774
HeavenAMM
27542775
"""Protocol name for TokenMill V2."""
27552776
TokenMillV2
2777+
"""Protocol name for Clanker V4."""
2778+
ClankerV4
27562779
}
27572780

27582781
scalar link__Import
@@ -5702,9 +5725,9 @@ input OnLaunchpadTokenEventBatchInput {
57025725
protocols: [LaunchpadTokenProtocol!]
57035726
"""The network ID that the token is deployed on."""
57045727
networkId: Int
5705-
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
5728+
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
57065729
launchpadName: String
5707-
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
5730+
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
57085731
launchpadNames: [String!]
57095732
"""The type of event."""
57105733
eventType: LaunchpadTokenEventType
@@ -5716,9 +5739,9 @@ input OnLaunchpadTokenEventInput {
57165739
protocol: LaunchpadTokenProtocol
57175740
"""A list of launchpad protocols."""
57185741
protocols: [LaunchpadTokenProtocol!]
5719-
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
5742+
"""The name of the launchpad. One of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
57205743
launchpadName: String
5721-
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
5744+
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
57225745
launchpadNames: [String!]
57235746
"""The type of event."""
57245747
eventType: LaunchpadTokenEventType
@@ -5737,11 +5760,11 @@ input OnPricesUpdatedInput {
57375760
"""Response returned by `onBarsUpdated`."""
57385761
type OnTokenBarsUpdatedResponse {
57395762
"""The contract address for the pair."""
5740-
pairAddress: String!
5763+
pairAddress: String @deprecated(reason: "pairs are no longer used for pricing")
57415764
"""The network ID the pair is deployed on."""
57425765
networkId: Int!
57435766
"""The ID for the pair (`pairAddress`:`networkId`)."""
5744-
pairId: String!
5767+
pairId: String @deprecated(reason: "pairs are no longer used for pricing")
57455768
"""The unix timestamp for the new bar."""
57465769
timestamp: Int!
57475770
"""The type of statistics used. Can be `Filtered` or `Unfiltered`."""
@@ -5751,7 +5774,7 @@ type OnTokenBarsUpdatedResponse {
57515774
"""Price data broken down by resolution."""
57525775
aggregates: ResolutionBarData!
57535776
"""The quote token within the pair."""
5754-
quoteToken: QuoteToken
5777+
quoteToken: QuoteToken @deprecated(reason: "pairs are no longer used for pricing")
57555778
"""The address of the token being quoted"""
57565779
tokenAddress: String!
57575780
"""The address of the token being quoted"""
@@ -7669,6 +7692,46 @@ enum SymbolType {
76697692
POOL
76707693
}
76717694

7695+
"""Bar chart data to track price changes over time."""
7696+
type TokenBarsResponse {
7697+
"""The opening price."""
7698+
o: [Float]!
7699+
"""The high price."""
7700+
h: [Float]!
7701+
"""The low price."""
7702+
l: [Float]!
7703+
"""The closing price."""
7704+
c: [Float]!
7705+
"""The timestamp for the bar."""
7706+
t: [Int!]!
7707+
"""The status code for the batch: `ok` for successful data retrieval and `no_data` for empty responses signaling the end of server data."""
7708+
s: String!
7709+
"""The volume with higher precision."""
7710+
volume: [String]
7711+
"""The volume in the native token for the network"""
7712+
volumeNativeToken: [String]
7713+
"""The number of unique buyers"""
7714+
buyers: [Int]!
7715+
"""The number of buys"""
7716+
buys: [Int]!
7717+
"""The buy volume in USD"""
7718+
buyVolume: [String]!
7719+
"""The number of unique sellers"""
7720+
sellers: [Int]!
7721+
"""The number of sells"""
7722+
sells: [Int]!
7723+
"""The sell volume in USD"""
7724+
sellVolume: [String]!
7725+
"""Liquidity in USD"""
7726+
liquidity: [String]!
7727+
"""The number of traders"""
7728+
traders: [Int]!
7729+
"""The number of transactions"""
7730+
transactions: [Int]!
7731+
"""The token that is being returned"""
7732+
token: EnhancedToken!
7733+
}
7734+
76727735
"""Token burn event data."""
76737736
type TokenBurnEventData {
76747737
"""The amount of tokens burned."""
@@ -8031,7 +8094,7 @@ input TokenFilters {
80318094
creatorAddress: String
80328095
"""A list of launchpad protocols."""
80338096
launchpadProtocol: [String!]
8034-
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
8097+
"""A list of launchpad names. Any of the following: Pump.fun, Bonk, Baseapp, Zora, Zora Creator, Four.meme, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults."""
80358098
launchpadName: [String!]
80368099
"""Indicates if the launchpad is completed."""
80378100
launchpadCompleted: Boolean

0 commit comments

Comments
 (0)