Skip to content

IPerpsV2MarketState

Description

Source: contracts/interfaces/IPerpsV2MarketState.sol

Views

baseAsset

Source

Details

Signature

baseAsset() view returns (bytes32)

Visibility

external

State Mutability

view

delayedOrders

Source

Details

Signature

delayedOrders(address) view returns (struct IPerpsV2MarketBaseTypes.DelayedOrder)

Visibility

external

State Mutability

view

entryDebtCorrection

Source

Details

Signature

entryDebtCorrection() view returns (int128)

Visibility

external

State Mutability

view

fundingLastRecomputed

Source

Details

Signature

fundingLastRecomputed() view returns (uint32)

Visibility

external

State Mutability

view

fundingRateLastRecomputed

Source

Details

Signature

fundingRateLastRecomputed() view returns (int128)

Visibility

external

State Mutability

view

fundingSequence

Source

Details

Signature

fundingSequence(uint256) view returns (int128)

Visibility

external

State Mutability

view

fundingSequenceLength

Source

Details

Signature

fundingSequenceLength() view returns (uint256)

Visibility

external

State Mutability

view

getDelayedOrderAddressesLength

Source

Details

Signature

getDelayedOrderAddressesLength() view returns (uint256)

Visibility

external

State Mutability

view

getDelayedOrderAddressesPage

Source

Details

Signature

getDelayedOrderAddressesPage(uint256, uint256) view returns (address[])

Visibility

external

State Mutability

view

getFlaggedAddressesLength

Source

Details

Signature

getFlaggedAddressesLength() view returns (uint256)

Visibility

external

State Mutability

view

getFlaggedAddressesPage

Source

Details

Signature

getFlaggedAddressesPage(uint256, uint256) view returns (address[])

Visibility

external

State Mutability

view

getPositionAddressesLength

Source

Details

Signature

getPositionAddressesLength() view returns (uint256)

Visibility

external

State Mutability

view

getPositionAddressesPage

Source

Details

Signature

getPositionAddressesPage(uint256, uint256) view returns (address[])

Visibility

external

State Mutability

view

isFlagged

Source

Details

Signature

isFlagged(address) view returns (bool)

Visibility

external

State Mutability

view

marketKey

Source

Details

Signature

marketKey() view returns (bytes32)

Visibility

external

State Mutability

view

marketSize

Source

Details

Signature

marketSize() view returns (uint128)

Visibility

external

State Mutability

view

marketSkew

Source

Details

Signature

marketSkew() view returns (int128)

Visibility

external

State Mutability

view

nextPositionId

Source

Details

Signature

nextPositionId() view returns (uint64)

Visibility

external

State Mutability

view

positionFlagger

Source

Details

Signature

positionFlagger(address) view returns (address)

Visibility

external

State Mutability

view

positions

Source

Details

Signature

positions(address) view returns (struct IPerpsV2MarketBaseTypes.Position)

Visibility

external

State Mutability

view

External Functions

deleteDelayedOrder

Source

Details

Signature

deleteDelayedOrder(address)

Visibility

external

State Mutability

``

deletePosition

Source

Details

Signature

deletePosition(address)

Visibility

external

State Mutability

``

flag

Source

Details

Signature

flag(address account, address flagger)

Visibility

external

State Mutability

``

pushFundingSequence

Source

Details

Signature

pushFundingSequence(int128)

Visibility

external

State Mutability

``

setBaseAsset

Source

Details

Signature

setBaseAsset(bytes32)

Visibility

external

State Mutability

``

setEntryDebtCorrection

Source

Details

Signature

setEntryDebtCorrection(int128)

Visibility

external

State Mutability

``

setFundingLastRecomputed

Source

Details

Signature

setFundingLastRecomputed(uint32)

Visibility

external

State Mutability

``

setFundingRateLastRecomputed

Source

Details

Signature

setFundingRateLastRecomputed(int128 _fundingRateLastRecomputed)

Visibility

external

State Mutability

``

setMarketKey

Source

Details

Signature

setMarketKey(bytes32)

Visibility

external

State Mutability

``

setMarketSize

Source

Details

Signature

setMarketSize(uint128)

Visibility

external

State Mutability

``

setMarketSkew

Source

Details

Signature

setMarketSkew(int128)

Visibility

external

State Mutability

``

setNextPositionId

Source

Details

Signature

setNextPositionId(uint64)

Visibility

external

State Mutability

``

unflag

Source

Details

Signature

unflag(address)

Visibility

external

State Mutability

``

updateDelayedOrder

Source

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

Source

Details

Signature

updatePosition(address account, uint64 id, uint64 lastFundingIndex, uint128 margin, uint128 lastPrice, int128 size)

Visibility

external

State Mutability

``