@uniswap/smart-wallet-sdk
Version:
⚒️ An SDK for building applications with smart wallets on Uniswap
33 lines (32 loc) • 816 B
TypeScript
export interface BatchedCall {
calls: Call[];
revertOnFailure: boolean;
}
/**
* ERC 5792 style Call interface
*/
export interface Call {
/** The address of the contract to call */
to: `0x${string}`;
/** The encoded calldata for the call */
data: `0x${string}`;
/** The amount of ETH to send with the call */
value: bigint;
/** The chain ID for the call (for client-side use) */
chainId?: number | string;
}
/**
* Parameters for method execution
*/
export interface MethodParameters {
/** Encoded calldata to be sent to the user's delegated account */
calldata: `0x${string}`;
/** The amount of ETH to send with the transaction */
value: bigint;
}
/**
* Options for the execute method
*/
export interface ExecuteOptions {
revertOnFailure?: boolean;
}