SARPSignaller
Inherits: IEvents
SARPSignaller is a on-chain system with a bond that allows a user to formally request conclusion of a market with SARP. This is done so as an alternative to an off-chain system based on the conclusion of a market.
State Variables
tickets
mapping(uint256 => Ticket) public tickets;
ticketCount
uint256 private ticketCount;
feeCollection
uint256 public feeCollection;
SARP
address immutable SARP;
Functions
constructor
constructor(address _sarp);
request
Request a conclusion to a market using SARP, transferring the bond payment from the user to escrow here for redemption.
function request(address _trading, address _recipient) external;
conclude
Conclude a market if the outcome was not an indeterminate state by refunding the spender. In the calldata, it logs the receipt of the justification for its decision.
function conclude(uint256 _ticket, bytes32 _note) external;
Parameters
Name | Type | Description |
---|---|---|
_ticket | uint256 | that is relevant to this. |
_note | bytes32 |
Structs
Ticket
struct Ticket {
address addr;
}