Skip to content

Commit f53168f

Browse files
authored
removing withPositionId (#10)
1 parent 85527a0 commit f53168f

File tree

1 file changed

+0
-100
lines changed

1 file changed

+0
-100
lines changed

src/types/actions.ts

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -726,102 +726,6 @@ export type PermitTransferFromAction = {
726726
};
727727
};
728728

729-
/**
730-
* Borrow tokens with position ID support.
731-
*/
732-
export type BorrowWithPositionIdAction = {
733-
/** Protocol to borrow from */
734-
protocol: string;
735-
/** Action type */
736-
action: "borrowwithpositionid";
737-
/** Action arguments */
738-
args: {
739-
/** Collateral token address(es) */
740-
collateral: Address | Address[];
741-
/** Token to borrow */
742-
tokenOut: Address;
743-
/** Amount to borrow in wei (with full decimals) */
744-
amountOut: ActionOutputReference<Quantity>;
745-
/** Address of the lending pool contract */
746-
primaryAddress: Address;
747-
/** Position ID for the borrow position */
748-
positionId: string;
749-
};
750-
};
751-
752-
/**
753-
* Single deposit with position ID support.
754-
*/
755-
export type SingleDepositWithPositionIdAction = {
756-
/** Protocol to deposit to */
757-
protocol: string;
758-
/** Action type */
759-
action: "singledepositwithpositionid";
760-
/** Action arguments */
761-
args: {
762-
/** Input token address */
763-
tokenIn: Address;
764-
/** Output token address (optional) */
765-
tokenOut?: Address;
766-
/** Amount to deposit */
767-
amountIn: ActionOutputReference<Quantity>;
768-
/** Primary contract address */
769-
primaryAddress: Address;
770-
/** Position ID for the deposit */
771-
positionId: string;
772-
/** Optional receiver address */
773-
receiver?: Address;
774-
};
775-
};
776-
777-
/**
778-
* Single redeem with position ID support.
779-
*/
780-
export type SingleRedeemWithPositionIdAction = {
781-
/** Protocol to redeem from */
782-
protocol: string;
783-
/** Action type */
784-
action: "singleredeemwithpositionid";
785-
/** Action arguments */
786-
args: {
787-
/** Input token address (optional) */
788-
tokenIn?: Address;
789-
/** Output token address */
790-
tokenOut: Address;
791-
/** Amount to redeem */
792-
amountIn: ActionOutputReference<Quantity>;
793-
/** Primary contract address */
794-
primaryAddress: Address;
795-
/** Position ID for the redeem */
796-
positionId: string;
797-
/** Optional receiver address */
798-
receiver?: Address;
799-
};
800-
};
801-
802-
/**
803-
* Repay with position ID support.
804-
*/
805-
export type RepayWithPositionIdAction = {
806-
/** Protocol to repay to */
807-
protocol: string;
808-
/** Action type */
809-
action: "repaywithpositionid";
810-
/** Action arguments */
811-
args: {
812-
/** Token to repay with */
813-
tokenIn: Address;
814-
/** Amount to repay in wei (with full decimals) */
815-
amountIn: ActionOutputReference<Quantity>;
816-
/** Address of the lending pool contract */
817-
primaryAddress: Address;
818-
/** Position ID for the repay */
819-
positionId: string;
820-
/** The address of the user whose debt is being repaid */
821-
onBehalfOf?: Address;
822-
};
823-
};
824-
825729
/**
826730
* Union type of all possible bundle actions.
827731
*/
@@ -835,23 +739,19 @@ export type BundleAction =
835739
| RedeemAction
836740
| ApproveAction
837741
| BorrowAction
838-
| BorrowWithPositionIdAction
839742
| SingleDepositAction
840-
| SingleDepositWithPositionIdAction
841743
| MultiDepositAction
842744
| TokenizedSingleDepositAction
843745
| TokenizedMultiDepositAction
844746
| MultiOutSingleDepositAction
845747
| HarvestAction
846748
| PermitTransferFromAction
847749
| SingleRedeemAction
848-
| SingleRedeemWithPositionIdAction
849750
| MultiRedeemAction
850751
| TokenizedSingleRedeemAction
851752
| TokenizedMultiRedeemAction
852753
| RedeemCLMMAction
853754
| RepayAction
854-
| RepayWithPositionIdAction
855755
| SwapAction
856756
| TransferFromAction
857757
| CallAction

0 commit comments

Comments
 (0)