This repository has been archived by the owner on Jan 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
IPartyBEvents.sol
60 lines (55 loc) · 1.8 KB
/
IPartyBEvents.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// SPDX-License-Identifier: SYMM-Core-Business-Source-License-1.1
// This contract is licensed under the SYMM Core Business Source License 1.1
// Copyright (c) 2023 Symmetry Labs AG
// For more information, see https://docs.symm.io/legal-disclaimer/license
pragma solidity >=0.8.18;
import "../../storages/QuoteStorage.sol";
interface IPartyBEvents {
event LockQuote(address partyB, uint256 quoteId, QuoteStatus quoteStatus);
event AllocatePartyB(address partyB, address partyA, uint256 amount);
event UnlockQuote(address partyB, uint256 quoteId, QuoteStatus quoteStatus);
event AcceptCancelRequest(uint256 quoteId, QuoteStatus quoteStatus);
event OpenPosition(
uint256 quoteId,
address partyA,
address partyB,
uint256 filledAmount,
uint256 openedPrice,
QuoteStatus quoteStatus
);
event FillCloseRequest(
uint256 quoteId,
address partyA,
address partyB,
uint256 filledAmount,
uint256 closedPrice,
QuoteStatus quoteStatus
);
event SendQuote(
address partyA,
uint256 quoteId,
address[] partyBsWhiteList,
uint256 symbolId,
PositionType positionType,
OrderType orderType,
uint256 price,
uint256 marketPrice,
uint256 quantity,
uint256 cva,
uint256 mm,
uint256 lf,
uint256 maxInterestRate,
uint256 deadline,
QuoteStatus quoteStatus
);
event ExpireQuote(QuoteStatus quoteStatus, uint256 quoteId);
event AcceptCancelCloseRequest(uint256 quoteId, QuoteStatus quoteStatus);
event EmergencyClosePosition(
uint256 quoteId,
address partyA,
address partyB,
uint256 filledAmount,
uint256 closedPrice,
QuoteStatus quoteStatus
);
}