@codex-data/sdk 2.3.17 → 2.3.20
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/sdk/Subscribe.js +2 -2
- package/dist/sdk/Subscribe.mjs +2 -2
- package/dist/sdk/generated/gql.d.ts +6 -6
- package/dist/sdk/generated/gql.js +3 -3
- package/dist/sdk/generated/gql.mjs +3 -3
- package/dist/sdk/generated/graphql.d.ts +11 -6
- package/dist/sdk/generated/graphql.js +3 -3
- package/dist/sdk/generated/graphql.mjs +3 -3
- package/package.json +5 -2
- package/schema.graphql +8 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codex-data/sdk",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.20",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=17.5.0"
|
|
6
6
|
},
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@graphql-codegen/introspection": "4.0.0",
|
|
53
53
|
"@graphql-codegen/typescript": "4.0.1",
|
|
54
54
|
"@graphql-eslint/eslint-plugin": "^3.20.1",
|
|
55
|
+
"@graphql-inspector/core": "^7.1.3",
|
|
55
56
|
"@graphql-tools/wrap": "^10.0.5",
|
|
56
57
|
"@types/jest": "^29.5.4",
|
|
57
58
|
"@types/lodash": "^4.17.7",
|
|
@@ -82,12 +83,14 @@
|
|
|
82
83
|
"scripts": {
|
|
83
84
|
"prebuild": "pnpm run clean && pnpm run generate:configs",
|
|
84
85
|
"clean": "rm -rf dist dist-esm",
|
|
85
|
-
"build": "pnpm run
|
|
86
|
+
"build": "pnpm run copy:schema && pnpm run generate:graphql && pnpm run build:sdk && pnpm run codegen && pnpm run lint ./src/sdk --fix && pnpm run build:types",
|
|
86
87
|
"build:types": "pnpm run build:cjs && pnpm run build:esm && pnpm run build:rename-esm",
|
|
87
88
|
"build:cjs": "tsc",
|
|
88
89
|
"build:esm": "tsc -p tsconfig.esm.json",
|
|
89
90
|
"build:rename-esm": "find dist-esm -name '*.js' -exec sh -c 'mv \"$1\" \"${1%.js}.mjs\"' _ {} \\; && cp -r dist-esm/* dist/ && rm -rf dist-esm",
|
|
90
91
|
"fetch:schema": "curl -s https://graph.codex.io/schema/latest.graphql --output src/resources/schema.graphql && cp src/resources/schema.graphql schema.graphql",
|
|
92
|
+
"copy:schema": "cp src/resources/schema.graphql schema.graphql",
|
|
93
|
+
"schema:diff": "tsx src/scripts/schemaDiff.ts",
|
|
91
94
|
"generate:configs": "tsx src/scripts/generateNetworkConfigs.ts",
|
|
92
95
|
"generate:graphql": "tsx src/scripts/generateGraphql.ts",
|
|
93
96
|
"build:sdk": "tsx src/scripts/buildSdk.ts",
|
package/schema.graphql
CHANGED
|
@@ -4863,6 +4863,8 @@ type Price {
|
|
|
4863
4863
|
priceUsd: Float!
|
|
4864
4864
|
"""The pool that emitted the swap generating this price"""
|
|
4865
4865
|
blockNumber: Int
|
|
4866
|
+
"""The token's cumulative route-backed liquidity in USD, summed across the token's pairs with valid routing liquidity. Null when this stat has not been computed for the token yet. Not available via subscription."""
|
|
4867
|
+
liquidityUsd: String
|
|
4866
4868
|
"""The percent price change in the past 24 hours. Decimal format. Not available via subscription."""
|
|
4867
4869
|
priceChange24: Float
|
|
4868
4870
|
"""The pool that emitted the swap generating this price"""
|
|
@@ -11086,7 +11088,7 @@ type Balance {
|
|
|
11086
11088
|
firstHeldTimestamp: Int
|
|
11087
11089
|
"""Metadata for the token."""
|
|
11088
11090
|
token: EnhancedToken
|
|
11089
|
-
"""The liquidity
|
|
11091
|
+
"""The token's route-backed liquidity in USD: the real liquidity supporting the token price, summed across the token's pairs with valid routing liquidity. Null when this stat has not been computed for the token yet."""
|
|
11090
11092
|
liquidityUsd: String
|
|
11091
11093
|
"""Unix timestamp (seconds) of the token's most recent trade/market event across all pools we track. Token-level (not specific to this wallet). Useful for filtering out dead/worthless tokens, e.g. no activity in months."""
|
|
11092
11094
|
tokenLastTradedTimestamp: Int
|
|
@@ -12415,7 +12417,7 @@ input TokenFilters {
|
|
|
12415
12417
|
creatorAddresses: [String!]
|
|
12416
12418
|
"""A list of launchpad protocols."""
|
|
12417
12419
|
launchpadProtocol: [String!]
|
|
12418
|
-
"""A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Flap, EasyA Kickstart."""
|
|
12420
|
+
"""A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, bow.fun, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Trench, Flap, NOXA Fun, pons, EasyA Kickstart."""
|
|
12419
12421
|
launchpadName: [String!]
|
|
12420
12422
|
"""Indicates if the launchpad is completed."""
|
|
12421
12423
|
launchpadCompleted: Boolean
|
|
@@ -13720,9 +13722,9 @@ input OnLaunchpadTokenEventInput {
|
|
|
13720
13722
|
protocol: LaunchpadTokenProtocol
|
|
13721
13723
|
"""A list of launchpad protocols."""
|
|
13722
13724
|
protocols: [LaunchpadTokenProtocol!]
|
|
13723
|
-
"""The name of the launchpad. One of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Flap, EasyA Kickstart."""
|
|
13725
|
+
"""The name of the launchpad. One of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, bow.fun, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Trench, Flap, NOXA Fun, pons, EasyA Kickstart."""
|
|
13724
13726
|
launchpadName: String
|
|
13725
|
-
"""A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Flap, EasyA Kickstart."""
|
|
13727
|
+
"""A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, bow.fun, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Trench, Flap, NOXA Fun, pons, EasyA Kickstart."""
|
|
13726
13728
|
launchpadNames: [String!]
|
|
13727
13729
|
"""The type of event."""
|
|
13728
13730
|
eventType: LaunchpadTokenEventType
|
|
@@ -13941,9 +13943,9 @@ input OnLaunchpadTokenEventBatchInput {
|
|
|
13941
13943
|
protocols: [LaunchpadTokenProtocol!]
|
|
13942
13944
|
"""The network ID that the token is deployed on."""
|
|
13943
13945
|
networkId: Int
|
|
13944
|
-
"""The name of the launchpad. One of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Flap, EasyA Kickstart."""
|
|
13946
|
+
"""The name of the launchpad. One of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, bow.fun, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Trench, Flap, NOXA Fun, pons, EasyA Kickstart."""
|
|
13945
13947
|
launchpadName: String
|
|
13946
|
-
"""A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Flap, EasyA Kickstart."""
|
|
13948
|
+
"""A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.fun, Nad.Fun, Baseapp, Baseapp Creator, Zora, Zora Creator, Four.meme, Four.meme Fair, Believe, Moonshot, Jupiter Studio, boop, Heaven, TokenMill V2, Virtuals, Clanker, Clanker V4, ArenaTrade, Moonit, LaunchLab, MeteoraDBC, Meteora Alpha Vault, Zora Solana, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, AMERICA.fun, Kumbaya, bow.fun, Printr, Bankr, Liquid, Noice, Flaunch, Coinbarrel, Blowfish, MeMoo, Metaplex, Scale, Eitherway, Livo, Trench, Flap, NOXA Fun, pons, EasyA Kickstart."""
|
|
13947
13949
|
launchpadNames: [String!]
|
|
13948
13950
|
"""The type of event."""
|
|
13949
13951
|
eventType: LaunchpadTokenEventType
|