Expand description
ABI encoding for Polymarket CTF and Protocol V2 position operations.
Structs§
- Position
Call - Encoded contract call for a position operation.
- approve
Call - Function with signature
approve(address,uint256)and selector0x095ea7b3. - approve
Return - Container type for the return parameters of the
approve(address,uint256)function. - merge
Call - Function with signature
merge(bytes31,uint256)and selector0x5b63685e. - merge
Positions Call - Function with signature
mergePositions(address,bytes32,bytes32,uint256[],uint256)and selector0x9e7212ad. - merge
Positions Return - Container type for the return parameters of the
mergePositions(address,bytes32,bytes32,uint256[],uint256)function. - merge
Return - Container type for the return parameters of the
merge(bytes31,uint256)function. - redeem
Call - Function with signature
redeem(bytes31,uint256,uint256)and selector0xd217a3cc. - redeem
Positions Call - Function with signature
redeemPositions(address,bytes32,bytes32,uint256[])and selector0x01b7037c. - redeem
Positions Return - Container type for the return parameters of the
redeemPositions(address,bytes32,bytes32,uint256[])function. - redeem
Return - Container type for the return parameters of the
redeem(bytes31,uint256,uint256)function. - setApproval
ForAll Call - Function with signature
setApprovalForAll(address,bool)and selector0xa22cb465. - setApproval
ForAll Return - Container type for the return parameters of the
setApprovalForAll(address,bool)function. - split
Call - Function with signature
split(bytes31,uint256)and selector0x82d3b9f1. - split
Position Call - Function with signature
splitPosition(address,bytes32,bytes32,uint256[],uint256)and selector0x72ce4275. - split
Position Return - Container type for the return parameters of the
splitPosition(address,bytes32,bytes32,uint256[],uint256)function. - split
Return - 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
mergePositionscall foramountpUSD of complete sets. - encode_
merge_ positions_ v2 - Encodes a V2 Router merge that consumes
amountshares of each outcome. - encode_
redeem_ position_ v2 - Encodes a V2 Router redemption of
amountshares of outcome0or1. - encode_
redeem_ positions - Encodes a
redeemPositionscall for both binary index sets. - encode_
split_ position - Encodes a
splitPositioncall foramountpUSD. - encode_
split_ position_ v2 - Encodes a V2 Router split for an exact six-decimal pUSD amount.