Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i replaced serum with openbook #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/account-maps/deriving-pda/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as borsh from "@project-serum/borsh";
import * as borsh from "@project-OpenBook/borsh";
import { PublicKey } from "@solana/web3.js";

export const BLOG_ACCOUNT_DATA_LAYOUT = borsh.struct([
Expand Down
2 changes: 1 addition & 1 deletion code/account-maps/trivial/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
TransactionInstruction,
} from "@solana/web3.js";

import * as borsh from "@project-serum/borsh";
import * as borsh from "@project-OpenBook/borsh";

const MY_PROGRAM_ID = new PublicKey(
"FwcG3yKuAkCfX68q9GPykNWDaaPjdZFaR1Tgr8qSxaEa"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const anchor = require("@project-serum/anchor");
const anchor = require("@project-OpenBook/anchor");

const { SystemProgram } = anchor.web3;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BN } from "@project-serum/anchor";
import { BN } from "@project-OpenBook/anchor";
import {
Keypair,
Connection,
Expand Down
2 changes: 1 addition & 1 deletion code/jupiter/installationapi/main.en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Connection, Keypair, Transaction } from "@solana/web3.js";
import fetch from "cross-fetch";
import { Wallet } from "@project-serum/anchor";
import { Wallet } from "@project-OpenBook/anchor";
import bs58 from "bs58";

const connection = new Connection("https://ssc-dao.genesysgo.net");
2 changes: 1 addition & 1 deletion code/jupiter/providerSetup/main.en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const App = ({ children }) => {
],
[network]
);
const endpoint = "https://solana-api.projectserum.com";
const endpoint = "https://solana-api.projectOpenBook.com";

return (
<ConnectionProvider endpoint={endpoint}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# solana program dump -u <source cluster> <address of account to fetch> <destination file name/path>
solana program dump -u m 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin serum_dex_v3.so
solana program dump -u m 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin OpenBook_dex_v3.so
Original file line number Diff line number Diff line change
@@ -1 +1 @@
solana program dump -u m 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin serum_dex_v3.so
solana program dump -u m 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin OpenBook_dex_v3.so
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# solana-test-validator --bpf-program <address to load the program to> <path to program file> --reset
solana-test-validator --bpf-program 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin serum_dex_v3.so --reset
solana-test-validator --bpf-program 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin OpenBook_dex_v3.so --reset
Original file line number Diff line number Diff line change
@@ -1 +1 @@
solana-test-validator --bpf-program 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin serum_dex_v3.so --reset
solana-test-validator --bpf-program 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin OpenBook_dex_v3.so --reset
4 changes: 2 additions & 2 deletions code/mango/load-asks/load-asks.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Connection, PublicKey } from "@solana/web3.js";
import { Market } from "@project-serum/serum";
import { Market } from "@project-OpenBook/OpenBook";
import {
IDS,
MangoClient,
Expand All @@ -24,7 +24,7 @@ import {
connection,
marketConfig.publicKey,
{},
groupConfig.serumProgramId
groupConfig.OpenBookProgramId
);
const asks = await market.loadBids(connection);
})();
4 changes: 2 additions & 2 deletions code/mango/load-bids/load-bids.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Connection, PublicKey } from "@solana/web3.js";
import { Market } from "@project-serum/serum";
import { Market } from "@project-OpenBook/OpenBook";
import {
IDS,
Config,
Expand All @@ -23,7 +23,7 @@ import {
connection,
marketConfig.publicKey,
{},
groupConfig.serumProgramId
groupConfig.OpenBookProgramId
);
const bids = market.loadBids(connection);
})();
4 changes: 2 additions & 2 deletions code/mango/place-spot-order/place-spot-order.en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useWallet } from "@solana/wallet-adapter-react";
import { Connection, PublicKey } from "@solana/web3.js";
import { Market } from "@project-serum/serum";
import { Market } from "@project-OpenBook/OpenBook";
import {
IDS,
MangoClient,
Expand Down Expand Up @@ -40,7 +40,7 @@ import {
connection,
marketConfig.publicKey,
{},
groupConfig.serumProgramId
groupConfig.OpenBookProgramId
);
await client.placeSpotOrder(
mangoGroup,
Expand Down
2 changes: 1 addition & 1 deletion code/serum/get-books/get-books.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Connection, PublicKey } from "@solana/web3.js";
import { Market } from "@project-serum/serum";
import { Market } from "@project-OpenBook/OpenBook";

(async () => {
let marketAddress = new PublicKey(
Expand Down
2 changes: 1 addition & 1 deletion code/serum/get-orders/get-orders.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Connection, PublicKey } from "@solana/web3.js";
import { Market } from "@project-serum/serum";
import { Market } from "@project-OpenBook/OpenBook";

(async () => {
let trader = new PublicKey("CuieVDEDtLo7FypA9SbLM9saXFdb1dsshEkyErMqkRQq");
Expand Down
2 changes: 1 addition & 1 deletion code/serum/load-market/load-market.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Connection, PublicKey } from "@solana/web3.js";
import { Market } from "@project-serum/serum";
import { Market } from "@project-OpenBook/OpenBook";

(async () => {
const marketAddress = new PublicKey(
Expand Down
2 changes: 1 addition & 1 deletion code/strata/fully-managed/buy-token.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SplTokenBonding } from "@strata-foundation/spl-token-bonding";
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";

(async () => {
const provider = anchor.getProvider();
Expand Down
2 changes: 1 addition & 1 deletion code/strata/fully-managed/create-token.en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
SplTokenBonding,
ExponentialCurveConfig,
} from "@strata-foundation/spl-token-bonding";
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";
import { NATIVE_MINT } from "@solana/spl-token";

(async () => {
Expand Down
2 changes: 1 addition & 1 deletion code/strata/fully-managed/sell-token.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SplTokenBonding } from "@strata-foundation/spl-token-bonding";
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";

(async () => {
const provider = anchor.getProvider();
Expand Down
2 changes: 1 addition & 1 deletion code/strata/lbc/create.en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MarketplaceSdk } from "@strata-foundation/marketplace-sdk";
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";

(async () => {
const provider = anchor.getProvider();
Expand Down
2 changes: 1 addition & 1 deletion code/switchboard/client/create.client.en.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";
import { Keypair } from "@solana/web3.js";
import {
AggregatorAccount,
Expand Down
2 changes: 1 addition & 1 deletion code/switchboard/client/create.oracle.client.en.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";
import { Keypair } from "@solana/web3.js";
import {
loadSwitchboardProgram,
Expand Down
2 changes: 1 addition & 1 deletion code/switchboard/client/create.vrf.client.en.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";
import { Keypair } from "@solana/web3.js";
import {
loadSwitchboardProgram,
Expand Down
2 changes: 1 addition & 1 deletion code/switchboard/client/read.vrf.client.en.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";
import { Keypair } from "@solana/web3.js";
import {
loadSwitchboardProgram,
Expand Down
2 changes: 1 addition & 1 deletion code/switchboard/client/request.vrf.client.en.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as anchor from "@project-serum/anchor";
import * as anchor from "@project-OpenBook/anchor";
import { Keypair } from "@solana/web3.js";
import {
loadSwitchboardProgram,
Expand Down
18 changes: 9 additions & 9 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "Integrations",
children: [
"/integrations",
"/integrations/serum.md",
"/integrations/OpenBook.md",
"/integrations/pyth.md",
"/integrations/switchboard.md",
"/integrations/mango.md",
Expand Down Expand Up @@ -340,7 +340,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "Integrationen",
children: [
"/de/integrations",
"/de/integrations/serum.md",
"/de/integrations/OpenBook.md",
"/de/integrations/pyth.md",
"/de/integrations/switchboard.md",
"/de/integrations/mango.md",
Expand Down Expand Up @@ -414,7 +414,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "Tích hợp",
children: [
"/vi/integrations",
"/vi/integrations/serum.md",
"/vi/integrations/OpenBook.md",
"/vi/integrations/pyth.md",
"/vi/integrations/switchboard.md",
"/vi/integrations/mango.md",
Expand Down Expand Up @@ -488,7 +488,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "การใช้งาน",
children: [
"/th/integrations",
"/th/integrations/serum.md",
"/th/integrations/OpenBook.md",
"/th/integrations/pyth.md",
"/th/integrations/switchboard.md",
"/th/integrations/mango.md",
Expand Down Expand Up @@ -580,7 +580,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "Intégrations",
children: [
"/fr/integrations",
"/fr/integrations/serum.md",
"/fr/integrations/OpenBook.md",
"/fr/integrations/pyth.md",
"/fr/integrations/switchboard.md",
"/fr/integrations/mango.md",
Expand Down Expand Up @@ -655,7 +655,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "Integrasi",
children: [
"/id/integrations",
"/id/integrations/serum.md",
"/id/integrations/OpenBook.md",
"/id/integrations/pyth.md",
"/id/integrations/switchboard.md",
"/id/integrations/mango.md",
Expand Down Expand Up @@ -834,7 +834,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "Integrations",
children: [
"/integrations",
"/integrations/serum.md",
"/integrations/OpenBook.md",
"/integrations/pyth.md",
"/integrations/switchboard.md",
"/integrations/mango.md",
Expand Down Expand Up @@ -908,7 +908,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "インテグレーション",
children: [
"/ja/integrations",
"/ja/integrations/serum.md",
"/ja/integrations/OpenBook.md",
"/ja/integrations/pyth.md",
"/ja/integrations/switchboard.md",
"/ja/integrations/mango.md",
Expand Down Expand Up @@ -983,7 +983,7 @@ export default defineUserConfig<DefaultThemeOptions>({
text: "Mga Integrasyon",
children: [
"/fil/integrations/",
"/fil/integrations/serum.md",
"/fil/integrations/OpenBook.md",
"/fil/integrations/pyth.md",
"/fil/integrations/switchboard.md",
"/fil/integrations/mango.md",
Expand Down
Loading