Skip to content

Commit 48d51fd

Browse files
authored
README, Latest Launchpads (#55)
* Readme info for changes. Bump version. new launchpads * casing on repo url
1 parent 5b4e655 commit 48d51fd

File tree

3 files changed

+62
-7
lines changed

3 files changed

+62
-7
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,56 @@ Users installing without the `@beta` tag will continue to receive the latest sta
206206
```
207207

208208
> **Note:** The `prepublishOnly` script automatically runs the full build before publishing, ensuring the package is always built before release.
209+
210+
# Upgrading to 2.0.0+
211+
212+
There are a few breaking changes in 2.0.0 that you need to be aware of.
213+
214+
### Imports
215+
216+
**Before**
217+
```
218+
import { Codex } from "@codex-data/sdk";
219+
import { TokenRankingAttribute, RankingDirection } from "@codex-data/sdk/dist/sdk/generated/graphql";
220+
```
221+
222+
**After**
223+
```
224+
import { Codex, TokenRankingAttribute, RankingDirection } from "@codex-data/sdk";
225+
```
226+
227+
**Before**
228+
```tsx
229+
import { Codex, GraphQL } from "@codex-data/sdk";
230+
231+
const [quoteToken, setQuoteToken] = useState<GraphQL.QuoteToken>(GraphQL.QuoteToken.Token0);
232+
```
233+
234+
**After**
235+
```tsx
236+
import { Codex, QuoteToken } from "@codex-data/sdk";
237+
238+
const [quoteToken, setQuoteToken] = useState<QuoteToken>(QuoteToken.Token0);
239+
```
240+
241+
### `onLaunchpadTokenEventBatch`
242+
243+
**Before**
244+
```tsx
245+
const unsubscribeFn = codex.subscriptions.onLaunchpadTokenEventBatch(
246+
{
247+
networkId: networkId
248+
}
249+
)
250+
```
251+
252+
**After**
253+
```tsx
254+
const unsubscribeFn = codex.subscriptions.onLaunchpadTokenEventBatch(
255+
{
256+
input: {
257+
networkId: networkId
258+
}
259+
}
260+
)
261+
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codex-data/sdk",
3-
"version": "1.1.0-beta.1",
3+
"version": "2.0.0",
44
"engines": {
55
"node": ">=17.5.0"
66
},
@@ -50,7 +50,7 @@
5050
"blockchain",
5151
"api"
5252
],
53-
"repository": "github:codex-data/sdk",
53+
"repository": "github:Codex-Data/sdk",
5454
"author": "Codex",
5555
"license": "MIT",
5656
"homepage": "https://docs.codex.io",

src/sdk/generated/graphql.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,8 @@ export enum LaunchpadTokenProtocol {
20542054
MeteoraDbc = 'MeteoraDBC',
20552055
/** Protocol name for Moonit (formerly Moonshot). */
20562056
Moonit = 'Moonit',
2057+
/** Protocol name for NadFun. */
2058+
NadFun = 'NadFun',
20572059
/** Protocol name for Printr (EVM only - Printr tokens on Solana should be queried with launchpadName as Printr uses MeteoraDBC on Solana). */
20582060
Printr = 'Printr',
20592061
/** Protocol name for Pump.fun. */
@@ -5198,9 +5200,9 @@ export type OnEventsCreatedByMakerInput = {
51985200
export type OnLaunchpadTokenEventBatchInput = {
51995201
/** The type of event. */
52005202
eventType?: InputMaybe<LaunchpadTokenEventType>;
5201-
/** The name of the launchpad. One of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
5203+
/** 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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
52025204
launchpadName?: InputMaybe<Scalars['String']['input']>;
5203-
/** A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
5205+
/** 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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
52045206
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
52055207
/** The network ID that the token is deployed on. */
52065208
networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -5216,9 +5218,9 @@ export type OnLaunchpadTokenEventInput = {
52165218
address?: InputMaybe<Scalars['String']['input']>;
52175219
/** The type of event. */
52185220
eventType?: InputMaybe<LaunchpadTokenEventType>;
5219-
/** The name of the launchpad. One of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
5221+
/** 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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
52205222
launchpadName?: InputMaybe<Scalars['String']['input']>;
5221-
/** A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
5223+
/** 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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
52225224
launchpadNames?: InputMaybe<Array<Scalars['String']['input']>>;
52235225
/** The network ID that the token is deployed on. */
52245226
networkId?: InputMaybe<Scalars['Int']['input']>;
@@ -8470,7 +8472,7 @@ export type TokenFilters = {
84708472
launchpadMigrated?: InputMaybe<Scalars['Boolean']['input']>;
84718473
/** The timestamp when the launchpad was migrated */
84728474
launchpadMigratedAt?: InputMaybe<NumberFilter>;
8473-
/** A list of launchpad names. Any of the following: Pump.fun, Pump Mayhem, Bonk, BONAD.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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
8475+
/** 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, Vertigo, Cooking.City, time.fun, BAGS, Circus, Dealr, OhFuckFun, PrintFun, Trend, shout.fun, xApple, Sendshot, DubDub, cults, OpenGameProtocol, Printr. */
84748476
launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
84758477
/** A list of launchpad protocols. */
84768478
launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;

0 commit comments

Comments
 (0)