diff --git a/code/serum/get-books/get-books.en.ts b/code/serum/get-books/get-books.en.ts deleted file mode 100644 index 95b5bd278..000000000 --- a/code/serum/get-books/get-books.en.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Connection, PublicKey } from "@solana/web3.js"; -import { Market } from "@project-serum/serum"; - -(async () => { - let marketAddress = new PublicKey( - "9wFFyRfZBsuAha4YcuxcXLKwMxJR43S7fPfQLusDBzvT" - ); - let programAddress = new PublicKey( - "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin" - ); - let connection = new Connection("https://ssc-dao.genesysgo.net", "confirmed"); - - let market = await Market.load(connection, marketAddress, {}, programAddress); - - let bids = await market.loadBids(connection); - for (let [price, size] of bids.getL2(20)) { - console.log(price, size); - } - - let asks = await market.loadAsks(connection); - for (let [price, size] of asks.getL2(20)) { - console.log(price, size); - } -})(); diff --git a/code/serum/get-books/get-books.preview.en.ts b/code/serum/get-books/get-books.preview.en.ts deleted file mode 100644 index 78b47baed..000000000 --- a/code/serum/get-books/get-books.preview.en.ts +++ /dev/null @@ -1,9 +0,0 @@ -let bids = await market.loadBids(connection); -for (let [price, size] of bids.getL2(20)) { - console.log(price, size); -} - -let asks = await market.loadAsks(connection); -for (let [price, size] of asks.getL2(20)) { - console.log(price, size); -} diff --git a/code/serum/get-orders/get-orders.en.ts b/code/serum/get-orders/get-orders.en.ts deleted file mode 100644 index 1011b31e6..000000000 --- a/code/serum/get-orders/get-orders.en.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Connection, PublicKey } from "@solana/web3.js"; -import { Market } from "@project-serum/serum"; - -(async () => { - let trader = new PublicKey("CuieVDEDtLo7FypA9SbLM9saXFdb1dsshEkyErMqkRQq"); - let marketAddress = new PublicKey( - "9wFFyRfZBsuAha4YcuxcXLKwMxJR43S7fPfQLusDBzvT" - ); - let programAddress = new PublicKey( - "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin" - ); - let connection = new Connection("https://ssc-dao.genesysgo.net", "confirmed"); - - let market = await Market.load(connection, marketAddress, {}, programAddress); - - const orders = await market.loadOrdersForOwner(connection, trader); - for (let order of orders) { - console.log(order); - } -})(); diff --git a/code/serum/get-orders/get-orders.preview.en.ts b/code/serum/get-orders/get-orders.preview.en.ts deleted file mode 100644 index 415fc5127..000000000 --- a/code/serum/get-orders/get-orders.preview.en.ts +++ /dev/null @@ -1 +0,0 @@ -const orders = await market.loadOrdersForOwner(connection, traderPublicKey); diff --git a/code/serum/load-market/load-market.en.ts b/code/serum/load-market/load-market.en.ts deleted file mode 100644 index 1f9241e86..000000000 --- a/code/serum/load-market/load-market.en.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Connection, PublicKey } from "@solana/web3.js"; -import { Market } from "@project-serum/serum"; - -(async () => { - const marketAddress = new PublicKey( - "9wFFyRfZBsuAha4YcuxcXLKwMxJR43S7fPfQLusDBzvT" - ); - const programAddress = new PublicKey( - "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin" - ); - const connection = new Connection( - "https://ssc-dao.genesysgo.net", - "confirmed" - ); - - const market = await Market.load( - connection, - marketAddress, - {}, - programAddress - ); -})(); diff --git a/code/serum/load-market/load-market.preview.en.ts b/code/serum/load-market/load-market.preview.en.ts deleted file mode 100644 index cd9b1a723..000000000 --- a/code/serum/load-market/load-market.preview.en.ts +++ /dev/null @@ -1 +0,0 @@ -const market = await Market.load(connection, marketAddress, {}, programAddress); diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index ee2172ce4..74f4a4fdf 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -109,7 +109,6 @@ export default defineUserConfig({ text: "Integrations", children: [ "/integrations", - "/integrations/serum.md", "/integrations/pyth.md", "/integrations/switchboard.md", "/integrations/mango.md", @@ -340,7 +339,6 @@ export default defineUserConfig({ text: "Integrationen", children: [ "/de/integrations", - "/de/integrations/serum.md", "/de/integrations/pyth.md", "/de/integrations/switchboard.md", "/de/integrations/mango.md", @@ -414,7 +412,6 @@ export default defineUserConfig({ text: "Tích hợp", children: [ "/vi/integrations", - "/vi/integrations/serum.md", "/vi/integrations/pyth.md", "/vi/integrations/switchboard.md", "/vi/integrations/mango.md", @@ -488,7 +485,6 @@ export default defineUserConfig({ text: "การใช้งาน", children: [ "/th/integrations", - "/th/integrations/serum.md", "/th/integrations/pyth.md", "/th/integrations/switchboard.md", "/th/integrations/mango.md", @@ -580,7 +576,6 @@ export default defineUserConfig({ text: "Intégrations", children: [ "/fr/integrations", - "/fr/integrations/serum.md", "/fr/integrations/pyth.md", "/fr/integrations/switchboard.md", "/fr/integrations/mango.md", @@ -655,7 +650,6 @@ export default defineUserConfig({ text: "Integrasi", children: [ "/id/integrations", - "/id/integrations/serum.md", "/id/integrations/pyth.md", "/id/integrations/switchboard.md", "/id/integrations/mango.md", @@ -834,7 +828,6 @@ export default defineUserConfig({ text: "Integrations", children: [ "/integrations", - "/integrations/serum.md", "/integrations/pyth.md", "/integrations/switchboard.md", "/integrations/mango.md", @@ -908,7 +901,6 @@ export default defineUserConfig({ text: "インテグレーション", children: [ "/ja/integrations", - "/ja/integrations/serum.md", "/ja/integrations/pyth.md", "/ja/integrations/switchboard.md", "/ja/integrations/mango.md", @@ -983,7 +975,6 @@ export default defineUserConfig({ text: "Mga Integrasyon", children: [ "/fil/integrations/", - "/fil/integrations/serum.md", "/fil/integrations/pyth.md", "/fil/integrations/switchboard.md", "/fil/integrations/mango.md",