diff --git a/src/types/actions.ts b/src/types/actions.ts index 4f93e82..9f250ae 100644 --- a/src/types/actions.ts +++ b/src/types/actions.ts @@ -726,102 +726,6 @@ export type PermitTransferFromAction = { }; }; -/** - * Borrow tokens with position ID support. - */ -export type BorrowWithPositionIdAction = { - /** Protocol to borrow from */ - protocol: string; - /** Action type */ - action: "borrowwithpositionid"; - /** Action arguments */ - args: { - /** Collateral token address(es) */ - collateral: Address | Address[]; - /** Token to borrow */ - tokenOut: Address; - /** Amount to borrow in wei (with full decimals) */ - amountOut: ActionOutputReference; - /** Address of the lending pool contract */ - primaryAddress: Address; - /** Position ID for the borrow position */ - positionId: string; - }; -}; - -/** - * Single deposit with position ID support. - */ -export type SingleDepositWithPositionIdAction = { - /** Protocol to deposit to */ - protocol: string; - /** Action type */ - action: "singledepositwithpositionid"; - /** Action arguments */ - args: { - /** Input token address */ - tokenIn: Address; - /** Output token address (optional) */ - tokenOut?: Address; - /** Amount to deposit */ - amountIn: ActionOutputReference; - /** Primary contract address */ - primaryAddress: Address; - /** Position ID for the deposit */ - positionId: string; - /** Optional receiver address */ - receiver?: Address; - }; -}; - -/** - * Single redeem with position ID support. - */ -export type SingleRedeemWithPositionIdAction = { - /** Protocol to redeem from */ - protocol: string; - /** Action type */ - action: "singleredeemwithpositionid"; - /** Action arguments */ - args: { - /** Input token address (optional) */ - tokenIn?: Address; - /** Output token address */ - tokenOut: Address; - /** Amount to redeem */ - amountIn: ActionOutputReference; - /** Primary contract address */ - primaryAddress: Address; - /** Position ID for the redeem */ - positionId: string; - /** Optional receiver address */ - receiver?: Address; - }; -}; - -/** - * Repay with position ID support. - */ -export type RepayWithPositionIdAction = { - /** Protocol to repay to */ - protocol: string; - /** Action type */ - action: "repaywithpositionid"; - /** Action arguments */ - args: { - /** Token to repay with */ - tokenIn: Address; - /** Amount to repay in wei (with full decimals) */ - amountIn: ActionOutputReference; - /** Address of the lending pool contract */ - primaryAddress: Address; - /** Position ID for the repay */ - positionId: string; - /** The address of the user whose debt is being repaid */ - onBehalfOf?: Address; - }; -}; - /** * Union type of all possible bundle actions. */ @@ -835,9 +739,7 @@ export type BundleAction = | RedeemAction | ApproveAction | BorrowAction - | BorrowWithPositionIdAction | SingleDepositAction - | SingleDepositWithPositionIdAction | MultiDepositAction | TokenizedSingleDepositAction | TokenizedMultiDepositAction @@ -845,13 +747,11 @@ export type BundleAction = | HarvestAction | PermitTransferFromAction | SingleRedeemAction - | SingleRedeemWithPositionIdAction | MultiRedeemAction | TokenizedSingleRedeemAction | TokenizedMultiRedeemAction | RedeemCLMMAction | RepayAction - | RepayWithPositionIdAction | SwapAction | TransferFromAction | CallAction