AlienFinanceLens
0xF090b119b10FE4aF048B3EAEB9c0d4821CaBcD30
Methods
getAllCurrentMarketsStatus
function getAllCurrentMarketsStatus(contract AlienFinance alien) external nonpayable returns (struct AlienFinanceLens.MarketStatus[])
Gets the current market status for all markets.
This function is not gas efficient and should not be called on chain.
Parameters
alien
contract AlienFinance
The Alien contract
Returns
_0
AlienFinanceLens.MarketStatus[]
The list of all market status
getAllMarketsMetadata
function getAllMarketsMetadata(contract AlienFinance alien) external view returns (struct AlienFinanceLens.MarketMetadata[])
Gets the market metadata for all markets.
Parameters
alien
contract AlienFinance
The Alien contract
Returns
_0
AlienFinanceLens.MarketMetadata[]
The list of all market metadata
getAllMarketsStatus
function getAllMarketsStatus(contract AlienFinance alien) external view returns (struct AlienFinanceLens.MarketStatus[])
Gets the market status for all markets.
Parameters
alien
contract AlienFinance
The Alien contract
Returns
_0
AlienFinanceLens.MarketStatus[]
The list of all market status
getCurrentMarketStatus
function getCurrentMarketStatus(contract AlienFinance alien, address market) external nonpayable returns (struct AlienFinanceLens.MarketStatus)
Gets the current market status for a given market.
This function is not gas efficient and should not be called on chain.
Parameters
alien
contract AlienFinance
The Alien contract
market
address
The market to get status for
Returns
_0
AlienFinanceLens.MarketStatus
The market status
getCurrentUserMarketStatus
function getCurrentUserMarketStatus(contract AlienFinance alien, address user, address market) external nonpayable returns (struct AlienFinanceLens.UserMarketStatus)
Gets the user's current market status for a given market.
This function is not gas efficient and should not be called on chain.
Parameters
alien
contract AlienFinance
The Alien contract
user
address
The user to get status for
market
address
The market to get status for
Returns
_0
AlienFinanceLens.UserMarketStatus
The user's market status
getMarketMetadata
function getMarketMetadata(contract AlienFinance alien, address market) external view returns (struct AlienFinanceLens.MarketMetadata)
Gets the market metadata for a given market.
Parameters
alien
contract AlienFinance
The Alien contract
market
address
The market to get metadata for
Returns
_0
AlienFinanceLens.MarketMetadata
The market metadata
getMarketStatus
function getMarketStatus(contract AlienFinance alien, address market) external view returns (struct AlienFinanceLens.MarketStatus)
Gets the market status for a given market.
Parameters
alien
contract AlienFinance
The Alien contract
market
address
The market to get status for
Returns
_0
AlienFinanceLens.MarketStatus
The market status
getUserAllCurrentMarketsStatus
function getUserAllCurrentMarketsStatus(contract AlienFinance alien, address user) external nonpayable returns (struct AlienFinanceLens.UserMarketStatus[])
Gets the user's current market status for all markets.
This function is not gas efficient and should not be called on chain.
Parameters
alien
contract AlienFinance
The Alien contract
user
address
The user to get status for
Returns
_0
AlienFinanceLens.UserMarketStatus[]
The list of all user's market status
getUserAllMarketsStatus
function getUserAllMarketsStatus(contract AlienFinance alien, address user) external view returns (struct AlienFinanceLens.UserMarketStatus[])
Gets the user's market status for all markets.
Parameters
alien
contract AlienFinance
The Alien contract
user
address
The user to get status for
Returns
_0
AlienFinanceLens.UserMarketStatus[]
The list of all user's market status
getUserMarketStatus
function getUserMarketStatus(contract AlienFinance alien, address user, address market) external view returns (struct AlienFinanceLens.UserMarketStatus)
Gets the user's market status for a given market.
Parameters
alien
contract AlienFinance
The Alien contract
user
address
The user to get status for
market
address
The market to get status for
Returns
_0
AlienFinanceLens.UserMarketStatus
The user's market status
Last updated