@project-serum/serum
Advanced tools
Comparing version 0.6.11 to 0.7.0
@@ -8,3 +8,3 @@ "use strict"; | ||
const token_instructions_1 = require("./token-instructions"); | ||
exports.DEX_PROGRAM_ID = new web3_js_1.PublicKey('3v9kjrBLN7Awr9BGC2qmFnWLM1EgMAdNm2rXLQFUcQ2d'); | ||
exports.DEX_PROGRAM_ID = new web3_js_1.PublicKey('9JipvuvjcirpYf8mzYQtozXeYtQLWY67LaZCiANSMNgs'); | ||
exports.INSTRUCTION_LAYOUT = new layout_1.VersionedLayout(0, buffer_layout_1.union(buffer_layout_1.u32('instruction'))); | ||
@@ -69,3 +69,3 @@ exports.INSTRUCTION_LAYOUT.inner.addVariant(0, buffer_layout_1.struct([ | ||
keys: [ | ||
{ pubkey: market, isSigner: false, isWritable: false }, | ||
{ pubkey: market, isSigner: false, isWritable: true }, | ||
{ pubkey: openOrders, isSigner: false, isWritable: true }, | ||
@@ -72,0 +72,0 @@ { pubkey: requestQueue, isSigner: false, isWritable: true }, |
@@ -525,3 +525,3 @@ "use strict"; | ||
} | ||
const MINT_LAYOUT = buffer_layout_1.struct([buffer_layout_1.blob(36), buffer_layout_1.u8('decimals'), buffer_layout_1.blob(3)]); | ||
const MINT_LAYOUT = buffer_layout_1.struct([buffer_layout_1.blob(44), buffer_layout_1.u8('decimals'), buffer_layout_1.blob(37)]); | ||
async function getMintDecimals(connection, mint) { | ||
@@ -528,0 +528,0 @@ const { data } = throwIfNull(await connection.getAccountInfo(mint), 'mint not found'); |
{ | ||
"name": "@project-serum/serum", | ||
"version": "0.6.11", | ||
"version": "0.7.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
122403