@agether/sdk 2.15.0 → 2.15.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 +1 -8
- package/dist/index.d.mts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -7
- package/dist/index.mjs +0 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2555,13 +2555,6 @@ var init_AgetherClient = __esm({
|
|
|
2555
2555
|
}
|
|
2556
2556
|
return result;
|
|
2557
2557
|
}
|
|
2558
|
-
/**
|
|
2559
|
-
* Fund the Safe account with USDC from EOA.
|
|
2560
|
-
* @deprecated Use `fundAccountToken('USDC', amount)` instead.
|
|
2561
|
-
*/
|
|
2562
|
-
async fundAccount(usdcAmount) {
|
|
2563
|
-
return this.fundAccountToken("USDC", usdcAmount);
|
|
2564
|
-
}
|
|
2565
2558
|
// ════════════════════════════════════════════════════════
|
|
2566
2559
|
// Withdrawals (Safe → EOA via UserOps)
|
|
2567
2560
|
// ════════════════════════════════════════════════════════
|
|
@@ -3922,7 +3915,7 @@ async function cmdFund(amount) {
|
|
|
3922
3915
|
\u{1F4B5} Funding AgentAccount with $${amount} USDC...
|
|
3923
3916
|
`);
|
|
3924
3917
|
try {
|
|
3925
|
-
const result = await ac.
|
|
3918
|
+
const result = await ac.fundAccountToken("USDC", amount);
|
|
3926
3919
|
console.log(`\u2705 Funded $${amount} USDC`);
|
|
3927
3920
|
console.log(` TX: ${result.txHash}`);
|
|
3928
3921
|
} catch (e) {
|
package/dist/index.d.mts
CHANGED
|
@@ -250,11 +250,6 @@ declare class AgetherClient {
|
|
|
250
250
|
* tokens per chain (WETH, wstETH, cbETH).
|
|
251
251
|
*/
|
|
252
252
|
getBalances(): Promise<BalancesResult>;
|
|
253
|
-
/**
|
|
254
|
-
* Fund the Safe account with USDC from EOA.
|
|
255
|
-
* @deprecated Use `fundAccountToken('USDC', amount)` instead.
|
|
256
|
-
*/
|
|
257
|
-
fundAccount(usdcAmount: string): Promise<TransactionResult>;
|
|
258
253
|
/**
|
|
259
254
|
* Withdraw an ERC-20 token from Safe account to EOA.
|
|
260
255
|
* Executes a transfer via Safe UserOp.
|
package/dist/index.d.ts
CHANGED
|
@@ -250,11 +250,6 @@ declare class AgetherClient {
|
|
|
250
250
|
* tokens per chain (WETH, wstETH, cbETH).
|
|
251
251
|
*/
|
|
252
252
|
getBalances(): Promise<BalancesResult>;
|
|
253
|
-
/**
|
|
254
|
-
* Fund the Safe account with USDC from EOA.
|
|
255
|
-
* @deprecated Use `fundAccountToken('USDC', amount)` instead.
|
|
256
|
-
*/
|
|
257
|
-
fundAccount(usdcAmount: string): Promise<TransactionResult>;
|
|
258
253
|
/**
|
|
259
254
|
* Withdraw an ERC-20 token from Safe account to EOA.
|
|
260
255
|
* Executes a transfer via Safe UserOp.
|
package/dist/index.js
CHANGED
|
@@ -680,13 +680,6 @@ var AgetherClient = class _AgetherClient {
|
|
|
680
680
|
}
|
|
681
681
|
return result;
|
|
682
682
|
}
|
|
683
|
-
/**
|
|
684
|
-
* Fund the Safe account with USDC from EOA.
|
|
685
|
-
* @deprecated Use `fundAccountToken('USDC', amount)` instead.
|
|
686
|
-
*/
|
|
687
|
-
async fundAccount(usdcAmount) {
|
|
688
|
-
return this.fundAccountToken("USDC", usdcAmount);
|
|
689
|
-
}
|
|
690
683
|
// ════════════════════════════════════════════════════════
|
|
691
684
|
// Withdrawals (Safe → EOA via UserOps)
|
|
692
685
|
// ════════════════════════════════════════════════════════
|
package/dist/index.mjs
CHANGED
|
@@ -605,13 +605,6 @@ var AgetherClient = class _AgetherClient {
|
|
|
605
605
|
}
|
|
606
606
|
return result;
|
|
607
607
|
}
|
|
608
|
-
/**
|
|
609
|
-
* Fund the Safe account with USDC from EOA.
|
|
610
|
-
* @deprecated Use `fundAccountToken('USDC', amount)` instead.
|
|
611
|
-
*/
|
|
612
|
-
async fundAccount(usdcAmount) {
|
|
613
|
-
return this.fundAccountToken("USDC", usdcAmount);
|
|
614
|
-
}
|
|
615
608
|
// ════════════════════════════════════════════════════════
|
|
616
609
|
// Withdrawals (Safe → EOA via UserOps)
|
|
617
610
|
// ════════════════════════════════════════════════════════
|