Withdrawal, requesting collateral to move from the L2 state to L1 Limit Order with Fees, declaring intent to sell a certain amount of a certain asset in exchange for a different asset at a certain ratio. One of the assets must be the collateral Conditional Transfer with Fees, requesting collateral to be transferred from one vault to another if some on-chain event was recorded. Transfer with Fees, requesting collateral to be transferred from one vault to another.
assetId
A
: order typeB
: positionId
from which the user wants to take funds.C
: nonce
for the transaction.D
: quantizedAmount
to be withdrawnE
: expirationTimestamp
, in hours since the Unix epoch. For example, for the order to expire 24 hours from the beginning of the current hour, set the timestamp toF
: padding of zerosassetId
to be sold
assetId
to be bought.
assetId
used to pay the fee.
A
: padding of zerosB
: quantizedAmount
to be sold.C
: quantizedAmount
to be boughtD
: quantizedAmount
to pay feesE
: nonce
for the transaction.A
: order typeB
: positionId
from which the user wants to take funds.C
: positionId
from which the user wants to take funds.D
: positionId
from which the user wants to take funds.E
: expirationTimestamp
, in hours since the Unix epoch. For example, for the order to expire 24 hours from the beginning of the current hour, set the timestamp toF
: padding of zerosassetId
to be sold
assetId
used to pay the fee.
receiver_starkKey
used to pay the fee.
A
: padding of zerosB
: senderpositionId
C
: receiver positionId
D
: fee positionId
E
: nonce
for the transaction.A
: order typeB
: quantizedAmount
to transferC
: quantizedAmount
to limit the max feeD
: expirationTimestamp
, in hours since the Unix epoch. For example, for the order to expire 24 hours from the beginning of the current hour, set the timestamp toE
: padding of zeroscondition
defined as Perdersen hash of the contract address and fact.