@openbook-dex/openbook
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -15,17 +15,3 @@ "use strict"; | ||
const openOrdersStr = Buffer.from([ | ||
111, | ||
112, | ||
101, | ||
110, | ||
45, | ||
111, | ||
114, | ||
100, | ||
101, | ||
114, | ||
115, | ||
45, | ||
105, | ||
110, | ||
105, | ||
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115, 45, 105, 110, 105, | ||
116, | ||
@@ -39,13 +25,3 @@ ]); | ||
const openOrdersStr = Buffer.from([ | ||
111, | ||
112, | ||
101, | ||
110, | ||
45, | ||
111, | ||
114, | ||
100, | ||
101, | ||
114, | ||
115, | ||
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115, | ||
]); | ||
@@ -65,31 +41,7 @@ const [addr] = await web3_js_1.PublicKey.findProgramAddress([ | ||
const openOrdersSeed = Buffer.from([ | ||
111, | ||
112, | ||
101, | ||
110, | ||
45, | ||
111, | ||
114, | ||
100, | ||
101, | ||
114, | ||
115, | ||
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115, | ||
]); | ||
// b"open-orders-init" | ||
const openOrdersInitSeed = Buffer.from([ | ||
111, | ||
112, | ||
101, | ||
110, | ||
45, | ||
111, | ||
114, | ||
100, | ||
101, | ||
114, | ||
115, | ||
45, | ||
105, | ||
110, | ||
105, | ||
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115, 45, 105, 110, 105, | ||
116, | ||
@@ -96,0 +48,0 @@ ]); |
@@ -9,3 +9,3 @@ "use strict"; | ||
const markets_json_1 = __importDefault(require("./markets.json")); | ||
const mainnet_beta_json_1 = __importDefault(require("@project-serum/tokens/src/mainnet-beta.json")); | ||
const mainnet_beta_json_1 = __importDefault(require("@openbook-dex/tokens/src/mainnet-beta.json")); | ||
exports.PROGRAM_LAYOUT_VERSIONS = { | ||
@@ -12,0 +12,0 @@ '4ckmDgGdxQoPDLUkDT3vHgSAkzA3QRdNq5ywwY4sUSJn': 1, |
{ | ||
"name": "@openbook-dex/openbook", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Library for interacting with the openbook dex", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@project-serum/tokens": "file:../tokens", | ||
"@openbook-dex/tokens": "0.0.2", | ||
"@tsconfig/node12": "^1.0.7", | ||
@@ -31,0 +31,0 @@ "@types/bn.js": "^4.11.6", |
@@ -26,7 +26,7 @@ [![npm (scoped)](https://img.shields.io/npm/v/@project-serum/serum)](https://www.npmjs.com/package/@project-serum/serum) | ||
import { Account, Connection, PublicKey } from '@solana/web3.js'; | ||
import { Market } from '@project-serum/serum'; | ||
import { Market } from '@openbook-dex/openbook'; | ||
let connection = new Connection('https://testnet.solana.com'); | ||
let marketAddress = new PublicKey('...'); | ||
let programAddress = new PublicKey("..."); | ||
let programAddress = new PublicKey('...'); | ||
let market = await Market.load(connection, marketAddress, {}, programAddress); | ||
@@ -33,0 +33,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193557
3855