0xc5d563a36ae78145c45a50134d48a1215220f80a
Solidity v0.8.15+commit.e14f2714
管理与风险
谁能修改规则?
Detected pausable controls from the verified ABI.
当前控制
- Paused
- false
架构
Polymarket 合约角色
Polymarket Neg-Risk Exchange
Matches orders for multi-outcome Polymarket markets. Filled orders use neg-risk outcome tokens, then resolution flows through the Neg-Risk Adapter before final CTF-style settlement.
Shares the same trading ABI as the CTF Exchange; the difference is the market path.
| 市场类型 | Multi-outcome / mutually exclusive markets |
|---|---|
| 代币路径 | Neg-risk outcome tokens |
| 结算路径 | Neg-Risk Adapter + UMA Adapter |
| 对比 | Polymarket CTF Exchange |
概览
读取函数
Block #89,919,597 · just nowRead the uint256 value for a given admin address from the exchange's admins mapping.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The uint256 stored for that address in admins (e.g., privilege flags or expiry), as defined by the contract.✨ AI |
Returns the EIP-712 domain separator used to sign off-chain order data.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 domain separator used for order signatures and typed data hashing.✨ AI |
Return the address of the collateral token used by this Neg-Risk exchange.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the ERC20 collateral token that the exchange accepts for trades.✨ AI |
Gets the complement of a tokenId
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | uint256 | - The token |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
Return the UMA condition id for the given neg-risk token id.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | uint256 | Neg-risk token id encoding market and outcome used to derive the condition id.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 condition id for the market outcome associated with the provided token id.✨ AI |
Return the address of the CTF adapter used by this Neg-Risk Exchange.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | CTF adapter contract address used for final CTF-style settlement of filled orders.✨ AI |
Returns the maximum fee rate for an order
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
Gets the status of an order
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets. Returns the fill/cancel state used to decide whether a Polymarket order can still trade.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| orderHash | bytes32 | - The hash of the order |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | tuple |
Gets the Polymarket Proxy factory implementation address
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Gets the Polymarket proxy wallet address for an address
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _addr | address | - The address that owns the proxy wallet |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Gets the Proxy factory address
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Gets the Polymarket Gnosis Safe address for an address
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _addr | address | - The address that owns the proxy wallet |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Gets the Safe factory address
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Gets the Safe factory implementation address
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Computes the hash for an order
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| order | tuple | - The order to be hashed |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 |
Checks whether an address is an admin of the Neg-Risk Exchange.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| usr | address | Address to check for admin privileges.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the address has admin privileges, false otherwise.✨ AI |
Checks whether the specified address is an authorized operator of this Neg-Risk Exchange.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| usr | address | Address to check for operator authorization.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the address is an authorized operator for this exchange; otherwise false.✨ AI |
Check whether the specified nonce for a user is valid (unused) for order authorization.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| usr | address | Address of the user whose nonce is being checked.✨ AI |
| nonce | uint256 | Nonce value to validate against the user's used nonces.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the nonce is valid (unused) for the user; false if it has been consumed or is invalid.✨ AI |
Returns the current nonce for an address used when constructing signed orders.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The uint256 nonce associated with the address, used for signature replay protection.✨ AI |
Return the operator record for a given address.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Uint256 encoding operator metadata (permissions bitmask or expiry); zero means not an operator.✨ AI |
Return status for a given order: whether it is filled or cancelled and how much remains.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| isFilledOrCancelled | bool | isFilledOrCancelled: true if the order is fully filled or canceled, false otherwise.✨ AI |
| remaining | uint256 | remaining: remaining unfilled amount of the order (uint256, in order token units).✨ AI |
Returns the parent collection identifier that links this exchange to its CTF-style parent market.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 parent collection id used to associate this exchange with the parent CTF collection.✨ AI |
Reports whether the Neg-Risk Exchange is paused.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the exchange is paused, false if it is active.✨ AI |
Returns the address of the proxy factory used by this exchange.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the proxy factory contract that deploys or manages exchange proxies.✨ AI |
Get a registry entry by index, returning the complement value and the conditionId for settlement.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| complement | uint256 | complement: uint256 complement value used by the Neg-Risk mapping.✨ AI |
| conditionId | bytes32 | conditionId: bytes32 UMA condition identifier used by adapters for final settlement.✨ AI |
Return the address of the Safe factory used by this exchange.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the Safe factory that deploys and manages safes used by the exchange.✨ AI |
Check whether the exchange supports a given ERC-165 interface identifier.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | ERC-165 interface identifier (bytes4) to check.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the provided interface id, false otherwise.✨ AI |
Validates the complement of a tokenId
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | uint256 | - The tokenId |
| complement | uint256 | - The complement to be validated |
order - The order to be validated
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets. Checks whether an order is structurally fillable before execution, including signature and exchange constraints.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| order | tuple |
Validates the signature of an order
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| orderHash | bytes32 | - The hash of the order |
| order | tuple | - The order |
Validates that a tokenId is registered
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| tokenId | uint256 | - The tokenId |
写入函数
Adds a new admin Can only be called by a current admin
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| admin_ | address | - The new admin |
Adds a new operator Can only be called by a current admin
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| operator_ | address | - The new operator |
order - The order to be cancelled
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets. Prevents a signed order from being filled later; useful when a trader withdraws liquidity from a Polymarket market.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| order | tuple |
orders - The set of orders to be cancelled
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets. Batch version of order cancellation for multiple signed Polymarket orders.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| orders | tuple[] |
Fills an order
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| order | tuple | - The order to be filled |
| fillAmount | uint256 | - The amount to be filled, always in terms of the maker amount |
Fills a set of orders
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| orders | tuple[] | - The order to be filled |
| fillAmounts | uint256[] | - The amounts to be filled, always in terms of the maker amount |
Increment the caller's trading nonce to invalidate previously signed orders and prevent replay.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
Matches a taker order against a list of maker orders
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets. Core exchange entry point: matches signed Polymarket orders and moves collateral/outcome tokens for the active market path.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| takerOrder | tuple | - The active order to be matched |
| makerOrders | tuple[] | - The array of maker orders to be matched against the active order |
| takerFillAmount | uint256 | - The amount to fill on the taker order, always in terms of the maker amount |
| makerFillAmounts | uint256[] | - The array of amounts to fill on the maker orders, always in terms of the maker amount |
Handle incoming ERC-1155 batch transfers of neg-risk outcome tokens to the exchange.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256[] | |
| — | uint256[] | |
| — | bytes |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes4 | `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed |
Handle an incoming ERC-1155 transfer used to settle a filled order in the Neg-Risk exchange flow.✨ AI
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256 | |
| — | uint256 | |
| — | bytes |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes4 | `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed |
Pause trading on the Exchange
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
Registers a tokenId, its complement and its conditionId for trading on the Exchange
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | uint256 | - The tokenId being registered |
| complement | uint256 | - The complement of the tokenId |
| conditionId | bytes32 | - The CTF conditionId |
Removes an existing Admin Can only be called by a current admin
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| admin | address | - The admin to be removed |
Removes an existing operator Can only be called by a current admin
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| operator | address | - The operator to be removed |
Removes the admin role for the caller Can only be called by an existing admin
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
Removes the operator role for the caller Can only be called by an exiting operator
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
Sets a new Proxy Wallet factory for the Exchange
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newProxyFactory | address | - The new Proxy Wallet factory |
Sets a new safe factory for the Exchange
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newSafeFactory | address | - The new Safe wallet factory |
Unpause trading on the Exchange
Polymarket 上下文 On the Neg-Risk Exchange, this applies to multi-outcome markets.
事件
Emitted when a fee is charged
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| receiver | address | ✓ | |
| tokenId | uint256 | ||
| amount | uint256 |
Emitted when a new admin is added
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newAdminAddress | address | ✓ | |
| admin | address | ✓ |
Emitted when a new operator is added
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newOperatorAddress | address | ✓ | |
| admin | address | ✓ |
Emitted when an order is cancelled
Polymarket 上下文 A signed Polymarket order was invalidated before fill.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| orderHash | bytes32 | ✓ |
Emitted when an order is filled
Polymarket 上下文 Primary exchange activity signal: a Polymarket order was matched on-chain.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| orderHash | bytes32 | ✓ | |
| maker | address | ✓ | |
| taker | address | ✓ | |
| makerAssetId | uint256 | ||
| takerAssetId | uint256 | ||
| makerAmountFilled | uint256 | ||
| takerAmountFilled | uint256 | ||
| fee | uint256 |
Emitted when a set of orders is matched
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| takerOrderHash | bytes32 | ✓ | |
| takerOrderMaker | address | ✓ | |
| makerAssetId | uint256 | ||
| takerAssetId | uint256 | ||
| makerAmountFilled | uint256 | ||
| takerAmountFilled | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldProxyFactory | address | ✓ | |
| newProxyFactory | address | ✓ |
Emitted when an admin is removed
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| removedAdmin | address | ✓ | |
| admin | address | ✓ |
Emitted when an operator is removed
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| removedOperator | address | ✓ | |
| admin | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldSafeFactory | address | ✓ | |
| newSafeFactory | address | ✓ |
Emitted when a token is registered
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| token0 | uint256 | ✓ | |
| token1 | uint256 | ✓ | |
| conditionId | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| pauser | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| pauser | address | ✓ |