snackmoney-testing
Version:
A CLI tool for sending USDC payments on Twitter and Farcaster using x402.
52 lines (46 loc) • 1.37 kB
TypeScript
type BatchPayOptions = {
identity: string;
receivers: string;
};
type ConfirmRewardOptions = {
orderId: string;
};
type CreateRewardOptions = {
budget: string;
platform: string;
contentId: string;
};
type PayOptions = {
identity: string;
username: string;
amount: string;
};
/**
* batchPayAction
*
* @description Sends batch USDC payments to multiple users on Twitter or Farcaster.
* @param cmd - Command line options including identity and receivers JSON string.
*/
declare function batchPay(cmd: BatchPayOptions): Promise<void>;
/**
* ConfirmRewardAction
*
* @description - Confirms and executes a reward distribution order.
* @param cmd - Command line options including orderId.
*/
declare function confirmReward(cmd: ConfirmRewardOptions): Promise<void>;
/**
* createRewardAction
*
* @description - Creates a reward distribution order on Twitter or Farcaster.
* @param cmd - Command line options including budget, platform, and contentId.
*/
declare function createReward(cmd: CreateRewardOptions): Promise<void>;
/**
* payAction
*
* @description - Sends a single USDC payment to a user on Twitter or Farcaster.
* @param cmd - Command line options including identity, username, and amount.
*/
declare function pay(cmd: PayOptions): Promise<void>;
export { batchPay, confirmReward, createReward, pay };