Skip to main content

Module Exchange

Module Exchange 

Source
Expand description

Module containing a contract’s types and functions.

contract Exchange {
    function auctioneer() external view returns (address);
    function managers(address account) external view returns (address);
    function getAuctionParams(address account) external view returns (AuctionParams memory);
    event LiquidationStarted(address indexed account, int256 equity, uint256 marginNeeded);
    event LiquidationResolved(address indexed account, address indexed winner, uint256 bonus);
    event LiquidationStopped(address indexed account);
    event AuctioneerSet(address auctioneer);
}

Structs§

AuctioneerSet
Event with signature AuctioneerSet(address) and selector 0x4ee0985a129917c72eab0afe7ec6060bf6c6e0796bedc42de903d9dbbadfc51d.
ExchangeInstance
A Exchange instance.
LiquidationResolved
Event with signature LiquidationResolved(address,address,uint256) and selector 0x733cec2c0eb01327a5f5026744fcf9d4963b15b6575e34450bbf9d91881065bd.
LiquidationStarted
Event with signature LiquidationStarted(address,int256,uint256) and selector 0xbffaf8ce0486bf3b76de219512d0ee456ee1e0f28cf857d4c6c8dab67caebe1f.
LiquidationStopped
Event with signature LiquidationStopped(address) and selector 0x0624e275f06d004f84eb1d7d2f19df047ccf8a1519a400140f7103a24d2401a9.
auctioneerCall
Function with signature auctioneer() and selector 0x5ec2c7bf.
auctioneerReturn
Container type for the return parameters of the auctioneer() function.
getAuctionParamsCall
Function with signature getAuctionParams(address) and selector 0xe466075f.
getAuctionParamsReturn
Container type for the return parameters of the getAuctionParams(address) function.
managersCall
Function with signature managers(address) and selector 0xfdff9b4d.
managersReturn
Container type for the return parameters of the managers(address) function.

Enums§

ExchangeCalls
Container for all the Exchange function calls.
ExchangeEvents
Container for all the Exchange events.

Functions§

new
Creates a new wrapper around an on-chain Exchange contract instance.