Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 0 additions & 100 deletions src/types/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Quantity>;
/** 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<Quantity>;
/** 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<Quantity>;
/** 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<Quantity>;
/** 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.
*/
Expand All @@ -835,23 +739,19 @@ export type BundleAction =
| RedeemAction
| ApproveAction
| BorrowAction
| BorrowWithPositionIdAction
| SingleDepositAction
| SingleDepositWithPositionIdAction
| MultiDepositAction
| TokenizedSingleDepositAction
| TokenizedMultiDepositAction
| MultiOutSingleDepositAction
| HarvestAction
| PermitTransferFromAction
| SingleRedeemAction
| SingleRedeemWithPositionIdAction
| MultiRedeemAction
| TokenizedSingleRedeemAction
| TokenizedMultiRedeemAction
| RedeemCLMMAction
| RepayAction
| RepayWithPositionIdAction
| SwapAction
| TransferFromAction
| CallAction
Expand Down