IPerpsV2MarketState¶
Description¶
Source: contracts/interfaces/IPerpsV2MarketState.sol
Views¶
baseAsset
¶
Details
Signature
baseAsset() view returns (bytes32)
Visibility
external
State Mutability
view
delayedOrders
¶
Details
Signature
delayedOrders(address) view returns (struct IPerpsV2MarketBaseTypes.DelayedOrder)
Visibility
external
State Mutability
view
entryDebtCorrection
¶
Details
Signature
entryDebtCorrection() view returns (int128)
Visibility
external
State Mutability
view
fundingLastRecomputed
¶
Details
Signature
fundingLastRecomputed() view returns (uint32)
Visibility
external
State Mutability
view
fundingRateLastRecomputed
¶
Details
Signature
fundingRateLastRecomputed() view returns (int128)
Visibility
external
State Mutability
view
fundingSequence
¶
Details
Signature
fundingSequence(uint256) view returns (int128)
Visibility
external
State Mutability
view
fundingSequenceLength
¶
Details
Signature
fundingSequenceLength() view returns (uint256)
Visibility
external
State Mutability
view
getDelayedOrderAddressesLength
¶
Details
Signature
getDelayedOrderAddressesLength() view returns (uint256)
Visibility
external
State Mutability
view
getDelayedOrderAddressesPage
¶
Details
Signature
getDelayedOrderAddressesPage(uint256, uint256) view returns (address[])
Visibility
external
State Mutability
view
getFlaggedAddressesLength
¶
Details
Signature
getFlaggedAddressesLength() view returns (uint256)
Visibility
external
State Mutability
view
getFlaggedAddressesPage
¶
Details
Signature
getFlaggedAddressesPage(uint256, uint256) view returns (address[])
Visibility
external
State Mutability
view
getPositionAddressesLength
¶
Details
Signature
getPositionAddressesLength() view returns (uint256)
Visibility
external
State Mutability
view
getPositionAddressesPage
¶
Details
Signature
getPositionAddressesPage(uint256, uint256) view returns (address[])
Visibility
external
State Mutability
view
isFlagged
¶
Details
Signature
isFlagged(address) view returns (bool)
Visibility
external
State Mutability
view
marketKey
¶
Details
Signature
marketKey() view returns (bytes32)
Visibility
external
State Mutability
view
marketSize
¶
Details
Signature
marketSize() view returns (uint128)
Visibility
external
State Mutability
view
marketSkew
¶
Details
Signature
marketSkew() view returns (int128)
Visibility
external
State Mutability
view
nextPositionId
¶
Details
Signature
nextPositionId() view returns (uint64)
Visibility
external
State Mutability
view
positionFlagger
¶
Details
Signature
positionFlagger(address) view returns (address)
Visibility
external
State Mutability
view
positions
¶
Details
Signature
positions(address) view returns (struct IPerpsV2MarketBaseTypes.Position)
Visibility
external
State Mutability
view
External Functions¶
deleteDelayedOrder
¶
Details
Signature
deleteDelayedOrder(address)
Visibility
external
State Mutability
``
deletePosition
¶
Details
Signature
deletePosition(address)
Visibility
external
State Mutability
``
flag
¶
Details
Signature
flag(address account, address flagger)
Visibility
external
State Mutability
``
pushFundingSequence
¶
Details
Signature
pushFundingSequence(int128)
Visibility
external
State Mutability
``
setBaseAsset
¶
Details
Signature
setBaseAsset(bytes32)
Visibility
external
State Mutability
``
setEntryDebtCorrection
¶
Details
Signature
setEntryDebtCorrection(int128)
Visibility
external
State Mutability
``
setFundingLastRecomputed
¶
Details
Signature
setFundingLastRecomputed(uint32)
Visibility
external
State Mutability
``
setFundingRateLastRecomputed
¶
Details
Signature
setFundingRateLastRecomputed(int128 _fundingRateLastRecomputed)
Visibility
external
State Mutability
``
setMarketKey
¶
Details
Signature
setMarketKey(bytes32)
Visibility
external
State Mutability
``
setMarketSize
¶
Details
Signature
setMarketSize(uint128)
Visibility
external
State Mutability
``
setMarketSkew
¶
Details
Signature
setMarketSkew(int128)
Visibility
external
State Mutability
``
setNextPositionId
¶
Details
Signature
setNextPositionId(uint64)
Visibility
external
State Mutability
``
unflag
¶
Details
Signature
unflag(address)
Visibility
external
State Mutability
``
updateDelayedOrder
¶
Details
Signature
updateDelayedOrder(address account, bool isOffchain, int128 sizeDelta, uint128 desiredFillPrice, uint128 targetRoundId, uint128 commitDeposit, uint128 keeperDeposit, uint256 executableAtTime, uint256 intentionTime, bytes32 trackingCode)
Visibility
external
State Mutability
``
updatePosition
¶
Details
Signature
updatePosition(address account, uint64 id, uint64 lastFundingIndex, uint128 margin, uint128 lastPrice, int128 size)
Visibility
external
State Mutability
``