@project-serum/serum
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -8,3 +8,3 @@ "use strict"; | ||
const token_instructions_1 = require("./token-instructions"); | ||
exports.DEX_PROGRAM_ID = new web3_js_1.PublicKey('9o1FisE366msTQcEvXapyMorTLmvezrxSD8DnM5e5XKw'); | ||
exports.DEX_PROGRAM_ID = new web3_js_1.PublicKey('6CZL4vVQqVzms4ZQEFtH91nMiPEph2szTHaRMjyrDyWM'); | ||
exports.INSTRUCTION_LAYOUT = new layout_1.VersionedLayout(0, buffer_layout_1.union(buffer_layout_1.u32('instruction'))); | ||
@@ -11,0 +11,0 @@ exports.INSTRUCTION_LAYOUT.inner.addVariant(0, buffer_layout_1.struct([ |
@@ -16,2 +16,3 @@ "use strict"; | ||
exports.MARKET_STATE_LAYOUT = buffer_layout_1.struct([ | ||
buffer_layout_1.blob(5), | ||
layout_1.accountFlagsLayout('accountFlags'), | ||
@@ -36,2 +37,3 @@ layout_1.publicKeyLayout('ownAddress'), | ||
layout_1.u64('feeRateBps'), | ||
buffer_layout_1.blob(7), | ||
]); | ||
@@ -250,2 +252,3 @@ class Market { | ||
exports.OPEN_ORDERS_LAYOUT = buffer_layout_1.struct([ | ||
buffer_layout_1.blob(5), | ||
layout_1.accountFlagsLayout('accountFlags'), | ||
@@ -262,2 +265,3 @@ layout_1.publicKeyLayout('market'), | ||
buffer_layout_1.seq(layout_1.u128(), 128, 'orders'), | ||
buffer_layout_1.blob(7), | ||
]); | ||
@@ -326,4 +330,6 @@ class OpenOrders { | ||
exports.ORDERBOOK_LAYOUT = buffer_layout_1.struct([ | ||
buffer_layout_1.blob(5), | ||
layout_1.accountFlagsLayout('accountFlags'), | ||
slab_1.SLAB_LAYOUT.replicate('slab'), | ||
buffer_layout_1.blob(7), | ||
]); | ||
@@ -330,0 +336,0 @@ class Orderbook { |
@@ -7,2 +7,3 @@ "use strict"; | ||
const REQUEST_QUEUE_HEADER = buffer_layout_1.struct([ | ||
buffer_layout_1.blob(5), | ||
layout_1.accountFlagsLayout('accountFlags'), | ||
@@ -32,2 +33,3 @@ buffer_layout_1.u32('head'), | ||
const EVENT_QUEUE_HEADER = buffer_layout_1.struct([ | ||
buffer_layout_1.blob(5), | ||
layout_1.accountFlagsLayout('accountFlags'), | ||
@@ -34,0 +36,0 @@ buffer_layout_1.u32('head'), |
{ | ||
"name": "@project-serum/serum", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "Library for interacting with the serum dex", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
98138
1315