Skip to content

Commit 0fdb1d2

Browse files
committed
Remove references to CLOB from tests
1 parent 6902941 commit 0fdb1d2

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

tests/autocratV0.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import {
99
import {
1010
OpenBookV2Client,
1111
IDL,
12-
BooksideSpace,
13-
EventHeapSpace,
1412
PlaceOrderArgs,
1513
Side,
1614
OrderType,
@@ -32,15 +30,12 @@ import { expectError } from "./utils/utils";
3230

3331
import { AutocratV0 } from "../target/types/autocrat_v0";
3432
import { ConditionalVault } from "../target/types/conditional_vault";
35-
import { Clob } from "../target/types/clob";
3633
import { OpenbookTwap } from "./fixtures/openbook_twap";
3734

3835
const OpenbookTwapIDL: OpenbookTwap = require("./fixtures/openbook_twap.json");
3936

4037
const AutocratIDL: AutocratV0 = require("../target/idl/autocrat_v0.json");
4138
const ConditionalVaultIDL: ConditionalVault = require("../target/idl/conditional_vault.json");
42-
const ClobIDL: Clob = require("../target/idl/clob.json");
43-
//const OpenBookTWAP
4439

4540
export type PublicKey = anchor.web3.PublicKey;
4641
export type Signer = anchor.web3.Signer;
@@ -102,9 +97,6 @@ describe("autocrat_v0", async function () {
10297
META,
10398
USDC,
10499
vaultProgram,
105-
clobProgram,
106-
clobAdmin,
107-
clobGlobalState,
108100
openbook,
109101
openbookTwap;
110102

@@ -146,25 +138,8 @@ describe("autocrat_v0", async function () {
146138
provider
147139
);
148140

149-
clobProgram = new Program<Clob>(ClobIDL, CLOB_PROGRAM_ID, provider);
150-
151141
payer = autocrat.provider.wallet.payer;
152142

153-
[clobGlobalState] = anchor.web3.PublicKey.findProgramAddressSync(
154-
[anchor.utils.bytes.utf8.encode("WWCACOTMICMIBMHAFTTWYGHMB")],
155-
clobProgram.programId
156-
);
157-
clobAdmin = anchor.web3.Keypair.generate();
158-
159-
await clobProgram.methods
160-
.initializeGlobalState(clobAdmin.publicKey)
161-
.accounts({
162-
globalState: clobGlobalState,
163-
payer: payer.publicKey,
164-
systemProgram: anchor.web3.SystemProgram.programId,
165-
})
166-
.rpc();
167-
168143
USDC = await createMint(
169144
banksClient,
170145
payer,
@@ -249,7 +224,6 @@ describe("autocrat_v0", async function () {
249224
instruction,
250225
vaultProgram,
251226
dao,
252-
clobProgram,
253227
context,
254228
payer,
255229
openbook,
@@ -318,7 +292,6 @@ describe("autocrat_v0", async function () {
318292
instruction,
319293
vaultProgram,
320294
dao,
321-
clobProgram,
322295
context,
323296
payer,
324297
openbook,
@@ -1301,7 +1274,6 @@ async function initializeProposal(
13011274
ix: ProposalInstruction,
13021275
vaultProgram: Program<ConditionalVault>,
13031276
dao: PublicKey,
1304-
clobProgram: Program<Clob>,
13051277
context: ProgramTestContext,
13061278
payer: Keypair,
13071279
openbook: OpenBookV2Client,

0 commit comments

Comments
 (0)