PerpsV2MarketStateLegacyR1¶
Description¶
Source: contracts/PerpsV2MarketStateLegacyR1.sol
Variables¶
baseAsset
¶
Type: bytes32
delayedOrders
¶
Type: mapping(address => struct IPerpsV2MarketBaseTypesLegacyR1.DelayedOrder)
fundingLastRecomputed
¶
Type: uint32
fundingRateLastRecomputed
¶
Type: int128
fundingSequence
¶
Type: int128[]
marketKey
¶
Type: bytes32
marketSize
¶
Type: uint128
marketSkew
¶
Type: int128
positions
¶
Type: mapping(address => struct IPerpsV2MarketBaseTypesLegacyR1.Position)
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address[] _associatedContracts, bytes32 _baseAsset, bytes32 _marketKey)
Visibility
public
State Mutability
``
Views¶
entryDebtCorrection
¶
Details
Signature
entryDebtCorrection() 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
Modifiers
getDelayedOrderAddressesPage
¶
Details
Signature
getDelayedOrderAddressesPage(uint256 index, uint256 pageSize) view returns (address[])
Visibility
external
State Mutability
view
Modifiers
getPositionAddressesLength
¶
Details
Signature
getPositionAddressesLength() view returns (uint256)
Visibility
external
State Mutability
view
Modifiers
getPositionAddressesPage
¶
Details
Signature
getPositionAddressesPage(uint256 index, uint256 pageSize) view returns (address[])
Visibility
external
State Mutability
view
Modifiers
nextPositionId
¶
Details
Signature
nextPositionId() view returns (uint64)
Visibility
external
State Mutability
view
Restricted Functions¶
deleteDelayedOrder
¶
Details
Signature
deleteDelayedOrder(address account)
Visibility
external
State Mutability
``
Modifiers
deletePosition
¶
Details
Signature
deletePosition(address account)
Visibility
external
State Mutability
``
Modifiers
getDelayedOrderAddressesLength
¶
Details
Signature
getDelayedOrderAddressesLength() view returns (uint256)
Visibility
external
State Mutability
view
Modifiers
getDelayedOrderAddressesPage
¶
Details
Signature
getDelayedOrderAddressesPage(uint256 index, uint256 pageSize) view returns (address[])
Visibility
external
State Mutability
view
Modifiers
getPositionAddressesLength
¶
Details
Signature
getPositionAddressesLength() view returns (uint256)
Visibility
external
State Mutability
view
Modifiers
getPositionAddressesPage
¶
Details
Signature
getPositionAddressesPage(uint256 index, uint256 pageSize) view returns (address[])
Visibility
external
State Mutability
view
Modifiers
pushFundingSequence
¶
Details
Signature
pushFundingSequence(int128 _fundingSequence)
Visibility
external
State Mutability
``
Modifiers
setBaseAsset
¶
Details
Signature
setBaseAsset(bytes32 _baseAsset)
Visibility
external
State Mutability
``
Requires
Modifiers
setEntryDebtCorrection
¶
Details
Signature
setEntryDebtCorrection(int128 entryDebtCorrection)
Visibility
external
State Mutability
``
Modifiers
setFundingLastRecomputed
¶
Details
Signature
setFundingLastRecomputed(uint32 lastRecomputed)
Visibility
external
State Mutability
``
Modifiers
setFundingRateLastRecomputed
¶
Details
Signature
setFundingRateLastRecomputed(int128 _fundingRateLastRecomputed)
Visibility
external
State Mutability
``
Modifiers
setMarketKey
¶
Details
Signature
setMarketKey(bytes32 _marketKey)
Visibility
external
State Mutability
``
Requires
Modifiers
setMarketSize
¶
Details
Signature
setMarketSize(uint128 _marketSize)
Visibility
external
State Mutability
``
Modifiers
setMarketSkew
¶
Details
Signature
setMarketSkew(int128 _marketSkew)
Visibility
external
State Mutability
``
Modifiers
setNextPositionId
¶
Details
Signature
setNextPositionId(uint64 nextPositionId)
Visibility
external
State Mutability
``
Modifiers
updateDelayedOrder
¶
Details
Signature
updateDelayedOrder(address account, bool isOffchain, int128 sizeDelta, uint128 priceImpactDelta, uint128 targetRoundId, uint128 commitDeposit, uint128 keeperDeposit, uint256 executableAtTime, uint256 intentionTime, bytes32 trackingCode)
Visibility
external
State Mutability
``
Modifiers
updatePosition
¶
Details
Signature
updatePosition(address account, uint64 id, uint64 lastFundingIndex, uint128 margin, uint128 lastPrice, int128 size)
Visibility
external
State Mutability
``
Modifiers