@velociti/sdk 0.1.0 → 0.2.0
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/CHANGELOG.md +63 -0
- package/dist/cli.d.ts +11 -0
- package/dist/cli.js +342 -0
- package/dist/client.d.ts +54 -36
- package/dist/client.js +162 -76
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/react.d.ts +65 -0
- package/dist/react.js +235 -0
- package/dist/types.d.ts +73 -0
- package/package.json +23 -4
- package/docs/getting-started.md +0 -73
- package/examples/deploy-token.ts +0 -75
- package/src/client.ts +0 -260
- package/src/index.ts +0 -23
- package/src/types.ts +0 -126
- package/tsconfig.json +0 -34
package/src/types.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* VELOCITI SDK Types
|
|
3
|
-
* TypeScript type definitions for the SDK
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/** SDK Configuration */
|
|
7
|
-
export interface VelocitiConfig {
|
|
8
|
-
/** Your API key from velociti.fun/developers */
|
|
9
|
-
apiKey: string;
|
|
10
|
-
/** Network to use: 'mainnet' or 'devnet' */
|
|
11
|
-
network?: 'mainnet' | 'devnet';
|
|
12
|
-
/** Custom API base URL (optional) */
|
|
13
|
-
baseUrl?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** Token deployment configuration */
|
|
17
|
-
export interface DeployTokenParams {
|
|
18
|
-
/** Token name (max 32 characters) */
|
|
19
|
-
name: string;
|
|
20
|
-
/** Token symbol (max 10 characters) */
|
|
21
|
-
symbol: string;
|
|
22
|
-
/** Token description */
|
|
23
|
-
description?: string;
|
|
24
|
-
/** Image URL (IPFS, Arweave, or HTTPS) */
|
|
25
|
-
image?: string;
|
|
26
|
-
/** Transfer tax rate (0-10%) */
|
|
27
|
-
taxRate?: number;
|
|
28
|
-
/** Payer wallet address (required - will sign and pay fees) */
|
|
29
|
-
payerAddress: string;
|
|
30
|
-
/** Social links */
|
|
31
|
-
socials?: {
|
|
32
|
-
twitter?: string;
|
|
33
|
-
telegram?: string;
|
|
34
|
-
website?: string;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** Prepared transaction ready for signing */
|
|
39
|
-
export interface PreparedTransaction {
|
|
40
|
-
/** Base64 encoded serialized transaction */
|
|
41
|
-
transaction: string;
|
|
42
|
-
/** Estimated SOL fee for the transaction */
|
|
43
|
-
estimatedFee: number;
|
|
44
|
-
/** Token mint address that will be created */
|
|
45
|
-
mintAddress: string;
|
|
46
|
-
/** Message to display to user */
|
|
47
|
-
message: string;
|
|
48
|
-
/** Blockhash used (expires after ~60 seconds) */
|
|
49
|
-
blockhash: string;
|
|
50
|
-
/** Last valid block height */
|
|
51
|
-
lastValidBlockHeight: number;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** Token information returned from API */
|
|
55
|
-
export interface TokenInfo {
|
|
56
|
-
/** Token mint address */
|
|
57
|
-
mintAddress: string;
|
|
58
|
-
/** Token name */
|
|
59
|
-
name: string;
|
|
60
|
-
/** Token symbol */
|
|
61
|
-
symbol: string;
|
|
62
|
-
/** Token description */
|
|
63
|
-
description?: string;
|
|
64
|
-
/** Token image URL */
|
|
65
|
-
imageUrl?: string;
|
|
66
|
-
/** Current price in SOL */
|
|
67
|
-
priceInSol: number;
|
|
68
|
-
/** Current price in USD */
|
|
69
|
-
priceInUsd: number;
|
|
70
|
-
/** Market cap in USD */
|
|
71
|
-
marketCapUsd: number;
|
|
72
|
-
/** Graduation progress (0-100) */
|
|
73
|
-
progress: number;
|
|
74
|
-
/** Whether token has graduated to Raydium */
|
|
75
|
-
isGraduated: boolean;
|
|
76
|
-
/** Transfer tax rate */
|
|
77
|
-
taxRate: number;
|
|
78
|
-
/** Creator wallet address */
|
|
79
|
-
creator: string;
|
|
80
|
-
/** Bonding curve PDA */
|
|
81
|
-
bondingCurvePda: string;
|
|
82
|
-
/** Total supply */
|
|
83
|
-
totalSupply: string;
|
|
84
|
-
/** Created at timestamp */
|
|
85
|
-
createdAt: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** Fee claiming result */
|
|
89
|
-
export interface ClaimFeesResult {
|
|
90
|
-
/** Transaction signature */
|
|
91
|
-
signature: string;
|
|
92
|
-
/** Amount claimed in tokens */
|
|
93
|
-
amountClaimed: string;
|
|
94
|
-
/** SOL value of claimed fees */
|
|
95
|
-
valueInSol: number;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** Submit signed transaction result */
|
|
99
|
-
export interface SubmitResult {
|
|
100
|
-
/** Whether submission was successful */
|
|
101
|
-
success: boolean;
|
|
102
|
-
/** Transaction signature */
|
|
103
|
-
signature?: string;
|
|
104
|
-
/** Token info if deployment confirmed */
|
|
105
|
-
token?: TokenInfo;
|
|
106
|
-
/** Error message if failed */
|
|
107
|
-
error?: string;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** API response wrapper */
|
|
111
|
-
export interface ApiResponse<T> {
|
|
112
|
-
success: boolean;
|
|
113
|
-
data?: T;
|
|
114
|
-
error?: string;
|
|
115
|
-
message?: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** Rate limit information */
|
|
119
|
-
export interface RateLimitInfo {
|
|
120
|
-
/** Remaining requests in current window */
|
|
121
|
-
remaining: number;
|
|
122
|
-
/** Total limit for current tier */
|
|
123
|
-
limit: number;
|
|
124
|
-
/** Reset timestamp (Unix ms) */
|
|
125
|
-
reset: number;
|
|
126
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2020",
|
|
7
|
-
"DOM"
|
|
8
|
-
],
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"noImplicitAny": true,
|
|
12
|
-
"strictNullChecks": true,
|
|
13
|
-
"noImplicitThis": true,
|
|
14
|
-
"alwaysStrict": true,
|
|
15
|
-
"noUnusedLocals": false,
|
|
16
|
-
"noUnusedParameters": false,
|
|
17
|
-
"noImplicitReturns": true,
|
|
18
|
-
"noFallthroughCasesInSwitch": false,
|
|
19
|
-
"moduleResolution": "node",
|
|
20
|
-
"esModuleInterop": true,
|
|
21
|
-
"outDir": "./dist",
|
|
22
|
-
"rootDir": "./src",
|
|
23
|
-
"skipLibCheck": true,
|
|
24
|
-
"forceConsistentCasingInFileNames": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"src/**/*"
|
|
28
|
-
],
|
|
29
|
-
"exclude": [
|
|
30
|
-
"node_modules",
|
|
31
|
-
"dist",
|
|
32
|
-
"examples"
|
|
33
|
-
]
|
|
34
|
-
}
|