Skip to content

Commit

Permalink
Add asset and marginAccount to PlaceOrderEvent (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipzeta authored Sep 6, 2023
1 parent a1e80c4 commit f3fecee
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version changes are pinned to SDK releases.

## Unreleased

- 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))

## [1.8.1] 2023-09-01
Expand Down
8 changes: 4 additions & 4 deletions 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.1",
"version": "1.8.2",
"description": "Zeta SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -19,16 +19,16 @@
"@solana/web3.js": "1.68.0",
"bs58": "^4.0.1",
"lodash": "^4.17.21",
"ts-node": "^10.7.0",
"typescript": "^4.4.2",
"cross-fetch": "^3.1.6",
"lodash.clonedeep": "^4.5.0"
},
"devDependencies": {
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.12",
"mocha": "^9.1.1",
"typedoc": "^0.22.10"
"typedoc": "^0.22.10",
"ts-node": "^10.7.0",
"typescript": "^4.4.2"
},
"resolutions": {
"@solana/buffer-layout": "4.0.0"
Expand Down
12 changes: 12 additions & 0 deletions src/idl/zeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -9159,6 +9159,18 @@
"name": "expiryTs",
"type": "u64",
"index": false
},
{
"name": "asset",
"type": {
"defined": "Asset"
},
"index": false
},
{
"name": "marginAccount",
"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 @@ -334,6 +334,8 @@ export interface PlaceOrderEvent {
oraclePrice: anchor.BN;
orderId: anchor.BN;
expiryTs: anchor.BN;
asset: any;
margin_account: PublicKey;
}

/**
Expand Down
24 changes: 24 additions & 0 deletions src/types/zeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9159,6 +9159,18 @@ export type Zeta = {
"name": "expiryTs",
"type": "u64",
"index": false
},
{
"name": "asset",
"type": {
"defined": "Asset"
},
"index": false
},
{
"name": "marginAccount",
"type": "publicKey",
"index": false
}
]
},
Expand Down Expand Up @@ -19273,6 +19285,18 @@ export const IDL: Zeta = {
"name": "expiryTs",
"type": "u64",
"index": false
},
{
"name": "asset",
"type": {
"defined": "Asset"
},
"index": false
},
{
"name": "marginAccount",
"type": "publicKey",
"index": false
}
]
},
Expand Down

0 comments on commit f3fecee

Please sign in to comment.