@openbook-dex/common
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -32,3 +32,3 @@ "use strict"; | ||
const spl_token_1 = require("@solana/spl-token"); | ||
const serum_1 = require("@project-serum/serum"); | ||
const openbook_1 = require("@openbook-dex/openbook"); | ||
__exportStar(require("./provider"), exports); | ||
@@ -59,5 +59,5 @@ exports.token = __importStar(require("./token")); | ||
lamports: await provider.connection.getMinimumBalanceForRentExemption(82), | ||
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
}), | ||
serum_1.TokenInstructions.initializeMint({ | ||
openbook_1.TokenInstructions.initializeMint({ | ||
mint, | ||
@@ -83,4 +83,4 @@ decimals: decimals !== null && decimals !== void 0 ? decimals : 0, | ||
lamports: await provider.connection.getMinimumBalanceForRentExemption(82), | ||
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
}), serum_1.TokenInstructions.initializeMint({ | ||
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
}), openbook_1.TokenInstructions.initializeMint({ | ||
mint: mint.publicKey, | ||
@@ -94,8 +94,8 @@ decimals: decimals !== null && decimals !== void 0 ? decimals : 0, | ||
lamports: await provider.connection.getMinimumBalanceForRentExemption(165), | ||
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
}), serum_1.TokenInstructions.initializeAccount({ | ||
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
}), openbook_1.TokenInstructions.initializeAccount({ | ||
account: vault.publicKey, | ||
mint: mint.publicKey, | ||
owner, | ||
}), serum_1.TokenInstructions.mintTo({ | ||
}), openbook_1.TokenInstructions.mintTo({ | ||
mint: mint.publicKey, | ||
@@ -128,5 +128,5 @@ destination: vault.publicKey, | ||
lamports, | ||
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID, | ||
}), | ||
serum_1.TokenInstructions.initializeAccount({ | ||
openbook_1.TokenInstructions.initializeAccount({ | ||
account: newAccountPubkey, | ||
@@ -133,0 +133,0 @@ mint, |
@@ -28,3 +28,3 @@ "use strict"; | ||
const web3_js_1 = require("@solana/web3.js"); | ||
const serum_1 = require("@project-serum/serum"); | ||
const openbook_1 = require("@openbook-dex/openbook"); | ||
const bs58 = __importStar(require("bs58")); | ||
@@ -36,3 +36,3 @@ const BufferLayout = __importStar(require("buffer-layout")); | ||
const resp = await connection._rpcRequest('getProgramAccounts', [ | ||
serum_1.TokenInstructions.TOKEN_PROGRAM_ID.toBase58(), | ||
openbook_1.TokenInstructions.TOKEN_PROGRAM_ID.toBase58(), | ||
{ | ||
@@ -39,0 +39,0 @@ commitment: connection.commitment, |
{ | ||
"name": "@openbook-dex/common", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Openbook common utilities", | ||
@@ -25,3 +25,3 @@ "main": "dist/lib/index.js", | ||
"dependencies": { | ||
"@project-serum/serum": "^0.13.21", | ||
"@openbook-dex/openbook": "0.0.2", | ||
"bn.js": "^5.1.2", | ||
@@ -28,0 +28,0 @@ "superstruct": "0.8.3" |
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
73475
+ Added@openbook-dex/openbook@0.0.2
+ Added@babel/runtime@7.26.7(transitive)
+ Added@openbook-dex/openbook@0.0.2(transitive)
- Removed@project-serum/serum@^0.13.21
- Removed@babel/runtime@7.26.9(transitive)
- Removed@project-serum/serum@0.13.65(transitive)