Skip to main content

Module calldata

Module calldata 

Source
Expand description

ABI encoding for Polymarket CTF and Protocol V2 position operations.

Structs§

PositionCall
Encoded contract call for a position operation.
approveCall
Function with signature approve(address,uint256) and selector 0x095ea7b3.
approveReturn
Container type for the return parameters of the approve(address,uint256) function.
mergeCall
Function with signature merge(bytes31,uint256) and selector 0x5b63685e.
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.
mergeReturn
Container type for the return parameters of the merge(bytes31,uint256) function.
redeemCall
Function with signature redeem(bytes31,uint256,uint256) and selector 0xd217a3cc.
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.
redeemReturn
Container type for the return parameters of the redeem(bytes31,uint256,uint256) function.
setApprovalForAllCall
Function with signature setApprovalForAll(address,bool) and selector 0xa22cb465.
setApprovalForAllReturn
Container type for the return parameters of the setApprovalForAll(address,bool) function.
splitCall
Function with signature split(bytes31,uint256) and selector 0x82d3b9f1.
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.
splitReturn
Container type for the return parameters of the split(bytes31,uint256) function.

Functions§

collateral_adapter
Returns the canonical collateral adapter for a standard or negative-risk market.
encode_approval
Encodes one approval for submission by the asset holder.
encode_merge_positions
Encodes a mergePositions call for amount pUSD of complete sets.
encode_merge_positions_v2
Encodes a V2 Router merge that consumes amount shares of each outcome.
encode_redeem_position_v2
Encodes a V2 Router redemption of amount shares of outcome 0 or 1.
encode_redeem_positions
Encodes a redeemPositions call for both binary index sets.
encode_split_position
Encodes a splitPosition call for amount pUSD.
encode_split_position_v2
Encodes a V2 Router split for an exact six-decimal pUSD amount.