Skip to content

Commit

Permalink
Update 84532-andromeda (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
synthetixio-team authored Feb 2, 2025
1 parent c7d539a commit 7b0c703
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 157 deletions.
1 change: 1 addition & 0 deletions 84532-andromeda/IPerpsMarketProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ interface IPerpsMarketProxy {
event ItsGreater(uint128 accountId, uint128 cmpAccountId);
event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity, uint128 interestRate);
event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler);
function getOrderMode(uint128 accountId) external view returns (bytes16);
function setBookMode(uint128 accountId, bool useBook) external;
function settleBookOrders(uint128 marketId, IBookOrderModule.BookOrder[] memory orders) external returns (IBookOrderModule.BookOrderSettleStatus[] memory cancelledOrders);
error AcceptablePriceExceeded(uint256 fillPrice, uint256 acceptablePrice);
Expand Down
19 changes: 19 additions & 0 deletions 84532-andromeda/PerpsMarketProxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2931,6 +2931,25 @@
"name": "OrderSettled",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "accountId",
"type": "uint128"
}
],
"name": "getOrderMode",
"outputs": [
{
"internalType": "bytes16",
"name": "",
"type": "bytes16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
1 change: 1 addition & 0 deletions 84532-andromeda/PerpsMarketProxy.readable.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"event ItsGreater(uint128 accountId, uint128 cmpAccountId)",
"event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity, uint128 interestRate)",
"event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler)",
"function getOrderMode(uint128 accountId) view returns (bytes16)",
"function setBookMode(uint128 accountId, bool useBook)",
"function settleBookOrders(uint128 marketId, tuple(uint128 accountId, int128 sizeDelta, uint256 orderPrice, bytes signedPriceData, bytes32 trackingCode)[] orders) returns (tuple(uint8 status)[] cancelledOrders)",
"error AcceptablePriceExceeded(uint256 fillPrice, uint256 acceptablePrice)",
Expand Down
Loading

0 comments on commit 7b0c703

Please sign in to comment.