Skip to main content

Module calldata

Module calldata 

Source
Expand description

ABI encoding for Polymarket Conditional Token split, merge, and redeem calls.

Structs§

PositionCall
Encoded collateral-adapter call for a position operation.
mergePositionsCall
Function with signature mergePositions(address,bytes32,bytes32,uint256[],uint256) and selector 0x9e7212ad.
mergePositionsReturn
Container type for the return parameters of the mergePositions(address,bytes32,bytes32,uint256[],uint256) function.
redeemPositionsCall
Function with signature redeemPositions(address,bytes32,bytes32,uint256[]) and selector 0x01b7037c.
redeemPositionsReturn
Container type for the return parameters of the redeemPositions(address,bytes32,bytes32,uint256[]) function.
splitPositionCall
Function with signature splitPosition(address,bytes32,bytes32,uint256[],uint256) and selector 0x72ce4275.
splitPositionReturn
Container type for the return parameters of the splitPosition(address,bytes32,bytes32,uint256[],uint256) function.

Functions§

collateral_adapter
Returns the canonical collateral adapter for a standard or negative-risk market.
encode_merge_positions
Encodes a mergePositions call for amount pUSD of complete sets.
encode_redeem_positions
Encodes a redeemPositions call for both binary index sets.
encode_split_position
Encodes a splitPosition call for amount pUSD.