View Facet
Changes:
Added Utility View Functions
getPositionsFilteredByPartyB()
getPositionsFilteredByPartyB()
Description: Fetches positions where Party B is involved, filtered by Party B.
Parameters:
partyB
- Address of Party B (the solver/hedger).start
- Starting index.size
- Number of positions to retrieve.
Returns: An array of Quote
structs representing positions for Party B.
getOpenPositionsFilteredByPartyB()
getOpenPositionsFilteredByPartyB()
Description: Fetches open positions where Party B is involved, filtered by Party B.
Parameters:
partyB
- Address of Party B (the solver/hedger).start
- Starting index.size
- Number of open positions to retrieve.
Returns: An array of Quote
structs representing open positions for Party B.
getActivePositionsFilteredByPartyB()
getActivePositionsFilteredByPartyB()
Description: Fetches active positions where Party B is involved, filtered by Party B.
Parameters:
partyB
- Address of Party B (the solver/hedger).start
- Starting index.size
- Number of active positions to retrieve.
Returns: An array of Quote
structs representing active positions for Party B.
getQuotesWithBitmap()
getQuotesWithBitmap()
Description: Fetches quotes using a bitmap filter.
Parameters:
bitmap
- ABitmap
struct used to filter the quotes.Bitmap
struct:size
- Size of the bitmap.elements
- Array ofBitmapElement
structs.
BitmapElement
struct:offset
- Offset of the bitmap element.bitmap
- The bitmap value.
gasNeededForReturn
- The amount of gas needed for the function to return the quotes.
Returns: An array of Quote
structs representing the filtered quotes.
Updated ForceClose View Functions
getDeallocateDebounceTime()
getDeallocateDebounceTime()
Explanation: Returns the current deallocate debounce time.
forceCloseCooldowns()
forceCloseCooldowns()
Explanation: Returns the first and second cooldown periods for force closing.
deallocateCooldown()
deallocateCooldown()
Explanation: Returns the current deallocate cooldown period.
getBridgeTransaction()
getBridgeTransaction()
Explanation: Returns the details of a bridge transaction specified by transactionId
.
getNextBridgeTransactionId()
getNextBridgeTransactionId()
Explanation: Returns the ID for the next bridge transaction.
getQuoteCloseId()
getQuoteCloseId()
Explanation: Returns the close ID associated with a specified quote ID.
Changed Function Signatures
pauseState
pauseState
Before:
After:
Explanation: Added internalTransferPaused
to the return values to indicate if internal transfers are paused.
Last updated