@solana-launchpad/sdk 1.0.9 → 1.0.11

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.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Types for metadata creation
3
+ */
4
+ export interface ImageMetadataInput {
5
+ file: Blob | File;
6
+ }
7
+ export interface TokenMetadataInput {
8
+ name: string;
9
+ symbol: string;
10
+ description: string;
11
+ createdOn: string;
12
+ platformId: string;
13
+ website?: string;
14
+ twitter?: string;
15
+ telegram?: string;
16
+ image: string;
17
+ }
18
+ /**
19
+ * Upload image to IPFS storage and return the IPFS URL
20
+ * @param create - Image metadata input containing the file
21
+ * @returns IPFS URL of the uploaded image
22
+ */
23
+ export declare const createImageMetadata: (create: ImageMetadataInput) => Promise<string | undefined>;
24
+ /**
25
+ * Upload token metadata to IPFS storage and return the IPFS URL
26
+ * @param create - Token metadata input
27
+ * @returns IPFS URL of the uploaded metadata
28
+ */
29
+ export declare const createBonkTokenMetadata: (create: TokenMetadataInput) => Promise<string | undefined>;
30
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAU,QAAQ,kBAAkB,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAgBhG,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAU,QAAQ,kBAAkB,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CA2BpG,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-launchpad/sdk",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "PumpFun SDK for Solana - Independent npm module for pump.fun token operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,6 +19,8 @@
19
19
  "keywords": [
20
20
  "solana",
21
21
  "pump.fun",
22
+ "bonkfun",
23
+ "bonkdotfun",
22
24
  "defi",
23
25
  "tokens",
24
26
  "bonding-curve",
@@ -36,9 +38,10 @@
36
38
  "dependencies": {
37
39
  "@coral-xyz/anchor": "^0.30.1",
38
40
  "@coral-xyz/borsh": "^0.30.1",
39
- "@hash-validator/v2": "^1.22.5",
41
+ "@raydium-io/raydium-sdk-v2": "0.2.20-alpha",
40
42
  "@solana/spl-token": "^0.4.0",
41
43
  "@solana/web3.js": "^1.89.1",
44
+ "@validate-sdk/v2": "^1.22.11",
42
45
  "bn.js": "^5.2.1",
43
46
  "bs58": "^6.0.0",
44
47
  "js-sha256": "^0.11.0",