@velociti/sdk 0.2.0 → 0.2.1

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/cli.js CHANGED
@@ -158,7 +158,7 @@ async function deploy(args) {
158
158
  const symbol = args.symbol;
159
159
  const description = args.description || '';
160
160
  const taxRate = parseFloat(args.tax) || 5;
161
- const network = args.network === 'devnet' ? 'devnet' : 'mainnet';
161
+ const network = args.network === 'mainnet' ? 'mainnet' : 'devnet';
162
162
  if (!name || !symbol) {
163
163
  error('Missing required arguments: --name and --symbol');
164
164
  process.exit(1);
@@ -204,7 +204,7 @@ async function listTokens(args) {
204
204
  error('No API key found. Run: velociti config --api-key YOUR_KEY');
205
205
  process.exit(1);
206
206
  }
207
- const network = args.network === 'devnet' ? 'devnet' : 'mainnet';
207
+ const network = args.network === 'mainnet' ? 'mainnet' : 'devnet';
208
208
  const client = new client_1.VelocitiClient({ apiKey, network });
209
209
  info('Fetching your tokens...');
210
210
  const result = await client.getMyTokens();
@@ -236,7 +236,7 @@ async function analytics(args) {
236
236
  error('Usage: velociti analytics <mintAddress>');
237
237
  process.exit(1);
238
238
  }
239
- const network = args.network === 'devnet' ? 'devnet' : 'mainnet';
239
+ const network = args.network === 'mainnet' ? 'mainnet' : 'devnet';
240
240
  const client = new client_1.VelocitiClient({ apiKey, network });
241
241
  info(`Fetching analytics for ${mintAddress}...`);
242
242
  const result = await client.getTokenAnalytics(mintAddress);
@@ -280,7 +280,7 @@ ${colors.bright}Commands:${colors.reset}
280
280
  --symbol "SYM" (required)
281
281
  --description "..." (optional)
282
282
  --tax 5 (optional, default: 5%)
283
- --network mainnet (optional, default: mainnet)
283
+ --network devnet (optional, default: devnet)
284
284
  --wallet path/to/key (optional)
285
285
 
286
286
  ${colors.cyan}tokens${colors.reset} List your deployed tokens
package/dist/client.js CHANGED
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.VelocitiClient = void 0;
8
8
  const DEFAULT_MAINNET_URL = 'https://velociti.fun/api/sdk';
9
- const DEFAULT_DEVNET_URL = 'https://devnet.velociti.fun/api/sdk';
9
+ const DEFAULT_DEVNET_URL = 'https://velociti.fun/api/sdk'; // Same URL, network param handled internally
10
10
  class VelocitiClient {
11
11
  constructor(config) {
12
12
  this.rateLimitInfo = null;
@@ -14,7 +14,7 @@ class VelocitiClient {
14
14
  throw new Error('API key is required. Get one at velociti.fun/developers');
15
15
  }
16
16
  this.apiKey = config.apiKey;
17
- this.network = config.network || 'mainnet';
17
+ this.network = config.network || 'devnet';
18
18
  this.baseUrl = config.baseUrl ||
19
19
  (this.network === 'mainnet' ? DEFAULT_MAINNET_URL : DEFAULT_DEVNET_URL);
20
20
  // Retry configuration
package/dist/react.js CHANGED
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.useVelocitiFees = exports.useVelocitiMyTokens = exports.useVelocitiAnalytics = exports.useVelocitiToken = exports.useVelocitiDeploy = void 0;
30
30
  const client_1 = require("./client");
31
31
  // React hook for token deployment
32
- function useVelocitiDeploy(apiKey, network = 'mainnet') {
32
+ function useVelocitiDeploy(apiKey, network = 'devnet') {
33
33
  let loading = false;
34
34
  let error = null;
35
35
  let result = null;
@@ -86,7 +86,7 @@ function useVelocitiDeploy(apiKey, network = 'mainnet') {
86
86
  }
87
87
  exports.useVelocitiDeploy = useVelocitiDeploy;
88
88
  // React hook for fetching token info
89
- function useVelocitiToken(apiKey, mintAddress, network = 'mainnet') {
89
+ function useVelocitiToken(apiKey, mintAddress, network = 'devnet') {
90
90
  let loading = false;
91
91
  let error = null;
92
92
  let token = null;
@@ -126,7 +126,7 @@ function useVelocitiToken(apiKey, mintAddress, network = 'mainnet') {
126
126
  }
127
127
  exports.useVelocitiToken = useVelocitiToken;
128
128
  // React hook for token analytics
129
- function useVelocitiAnalytics(apiKey, mintAddress, network = 'mainnet') {
129
+ function useVelocitiAnalytics(apiKey, mintAddress, network = 'devnet') {
130
130
  let loading = false;
131
131
  let error = null;
132
132
  let analytics = null;
@@ -162,7 +162,7 @@ function useVelocitiAnalytics(apiKey, mintAddress, network = 'mainnet') {
162
162
  }
163
163
  exports.useVelocitiAnalytics = useVelocitiAnalytics;
164
164
  // React hook for listing user's tokens
165
- function useVelocitiMyTokens(apiKey, network = 'mainnet') {
165
+ function useVelocitiMyTokens(apiKey, network = 'devnet') {
166
166
  let loading = false;
167
167
  let error = null;
168
168
  let tokens = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velociti/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Official SDK for deploying and managing tokens on VELOCITI - the Solana tax token launchpad",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",