Skip to content

Commit a30f677

Browse files
napoleondclaude
andcommitted
feat: Rename deposit to fund, add credit card payment option
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 943f211 commit a30f677

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

packages/atxp/src/commands/deposit.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,23 @@ export async function depositCommand(): Promise<void> {
5050
const data = await response.json();
5151

5252
if (data.sources && Array.isArray(data.sources) && data.sources.length > 0) {
53-
console.log(chalk.bold('Deposit Addresses:'));
53+
console.log(chalk.bold('Fund via USDC:'));
5454
for (const source of data.sources) {
5555
const chain = source.chain.charAt(0).toUpperCase() + source.chain.slice(1);
5656
console.log(` ${chalk.cyan(chain)}: ${source.address}`);
5757
}
58+
console.log();
59+
console.log(chalk.bold('Fund via credit card or other payment methods:'));
60+
console.log(` ${chalk.underline('https://accounts.atxp.ai/fund')}`);
5861
} else {
5962
console.log(chalk.yellow('No deposit addresses found for this account.'));
63+
console.log();
64+
console.log(chalk.bold('Fund via credit card or other payment methods:'));
65+
console.log(` ${chalk.underline('https://accounts.atxp.ai/fund')}`);
6066
}
6167
} catch (error) {
6268
const errorMessage = error instanceof Error ? error.message : String(error);
63-
console.error(chalk.red(`Error fetching deposit address: ${errorMessage}`));
69+
console.error(chalk.red(`Error fetching funding info: ${errorMessage}`));
6470
process.exit(1);
6571
}
6672
}

packages/atxp/src/help.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function showHelp(): void {
2525
console.log(' ' + chalk.cyan('x') + ' ' + chalk.yellow('<query>') + ' ' + 'Search X/Twitter');
2626
console.log(' ' + chalk.cyan('email') + ' ' + chalk.yellow('<command>') + ' ' + 'Send and receive emails');
2727
console.log(' ' + chalk.cyan('balance') + ' ' + 'Check your ATXP account balance');
28-
console.log(' ' + chalk.cyan('deposit') + ' ' + 'Show your deposit addresses');
28+
console.log(' ' + chalk.cyan('fund') + ' ' + 'Show how to fund your account');
2929
console.log(' ' + chalk.cyan('agent') + ' ' + chalk.yellow('<command>') + ' ' + 'Create and manage agent accounts');
3030
console.log();
3131

@@ -82,7 +82,7 @@ export function showHelp(): void {
8282
console.log(' npx atxp email read <messageId> # Read a specific message');
8383
console.log(' npx atxp email send --to user@example.com --subject "Hi" --body "Hello!"');
8484
console.log(' npx atxp balance # Check account balance');
85-
console.log(' npx atxp deposit # Show deposit addresses');
85+
console.log(' npx atxp fund # Show how to fund your account');
8686
console.log(' npx atxp dev demo # Run the demo');
8787
console.log(' npx atxp dev create my-app # Create a new project');
8888
console.log();

packages/atxp/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ async function main() {
313313
await balanceCommand();
314314
break;
315315

316+
case 'fund':
316317
case 'deposit':
317318
await depositCommand();
318319
break;

skills/atxp/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ source ~/.atxp/config
3131
| `npx atxp email read <messageId>` | Read a specific message (FREE) |
3232
| `npx atxp email send <options>` | Send an email ($0.01/email) |
3333
| `npx atxp balance` | Check your ATXP account balance (FREE) |
34-
| `npx atxp deposit` | Show your deposit addresses (FREE) |
34+
| `npx atxp fund` | Show how to fund your account (FREE) |
3535

3636
## Balance
3737

@@ -40,11 +40,11 @@ Check your ATXP account balance:
4040
npx atxp balance
4141
```
4242

43-
## Deposit Address
43+
## Fund Your Account
4444

45-
Show your deposit addresses (one per chain, typically Base and Solana). Send USDC to any of these addresses to top up your ATXP account balance.
45+
Fund your ATXP account via USDC deposit addresses (one per chain, typically Base and Solana) or with credit card and other standard payment methods at https://accounts.atxp.ai/fund.
4646
```bash
47-
npx atxp deposit
47+
npx atxp fund
4848
```
4949

5050
## Email

0 commit comments

Comments
 (0)