Skip to content

Commit

Permalink
Add margin account keys to liquidation event (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipzeta authored Sep 7, 2023
1 parent fdc3903 commit 853ecc1
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Version changes are pinned to SDK releases.

## Unreleased

## [1.9.0] 2023-09-07

- Add margin account pubkeys to LiquidationEvent. ([#268](https://github.com/zetamarkets/sdk/pull/268))
- Allow for delegator to liquidate and force cancel. ([#267](https://github.com/zetamarkets/sdk/pull/267))
- Add asset and marginAccount to PlaceOrderEvent. ([#266](https://github.com/zetamarkets/sdk/pull/266))
- Add trigger admin to state account. ([#264](https://github.com/zetamarkets/sdk/pull/264))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zetamarkets/sdk",
"repository": "https://github.com/zetamarkets/sdk/",
"version": "1.8.2",
"version": "1.9.0",
"description": "Zeta SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions src/idl/zeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -9262,6 +9262,16 @@
"defined": "Asset"
},
"index": false
},
{
"name": "liquidateeMarginAccount",
"type": "publicKey",
"index": false
},
{
"name": "liquidatorMarginAccount",
"type": "publicKey",
"index": false
}
]
},
Expand Down
2 changes: 2 additions & 0 deletions src/program-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ export interface LiquidationEvent {
liquidatee: PublicKey;
liquidator: PublicKey;
asset: Object;
liquidateeMarginAccount: PublicKey;
liquidatorMarginAccount: PublicKey;
}

export interface OrderCompleteEvent {
Expand Down
20 changes: 20 additions & 0 deletions src/types/zeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9262,6 +9262,16 @@ export type Zeta = {
"defined": "Asset"
},
"index": false
},
{
"name": "liquidateeMarginAccount",
"type": "publicKey",
"index": false
},
{
"name": "liquidatorMarginAccount",
"type": "publicKey",
"index": false
}
]
},
Expand Down Expand Up @@ -19422,6 +19432,16 @@ export const IDL: Zeta = {
"defined": "Asset"
},
"index": false
},
{
"name": "liquidateeMarginAccount",
"type": "publicKey",
"index": false
},
{
"name": "liquidatorMarginAccount",
"type": "publicKey",
"index": false
}
]
},
Expand Down

0 comments on commit 853ecc1

Please sign in to comment.