1#![doc = include_str!("../README.md")]
2
3use anchor_lang::prelude::*;
4use anchor_spl::token::{Mint, Token, TokenAccount};
5use solana_program::pubkey;
6
7pub mod account;
8pub mod constants;
9pub mod context;
10pub mod dex;
11pub mod errors;
12pub mod id;
13pub mod utils;
14
15pub use crate::account::*;
16pub use crate::constants::*;
17pub use crate::context::*;
18pub use crate::dex::*;
19pub use crate::errors::*;
20pub use crate::id::*;
21pub use crate::utils::*;
22
23use bytemuck::{Pod, Zeroable};
24
25#[program]
26mod zeta_abi {
27 #![allow(dead_code)]
28 #![allow(unused_variables)]
29 #![allow(clippy::too_many_arguments)]
30
31 use super::*;
32
33 pub(crate) fn initialize_margin_account(ctx: Context<InitializeMarginAccount>) -> Result<()> {
34 Ok(())
35 }
36
37 pub(crate) fn initialize_open_orders(ctx: Context<InitializeOpenOrders>) -> Result<()> {
38 Ok(())
39 }
40
41 pub(crate) fn deposit(ctx: Context<Deposit>, amount: u64) -> Result<()> {
42 Ok(())
43 }
44
45 pub(crate) fn withdraw(ctx: Context<Withdraw>, amount: u64) -> Result<()> {
46 Ok(())
47 }
48
49 pub(crate) fn place_order_v4(
50 ctx: Context<PlaceOrder>,
51 price: u64,
52 size: u64,
53 side: Side,
54 order_type: OrderType,
55 client_order_id: Option<u64>,
56 tag: Option<String>, tif_offset: Option<u16>,
58 ) -> Result<()> {
59 Ok(())
60 }
61
62 pub(crate) fn place_perp_order_v2(
63 ctx: Context<PlacePerpOrder>,
64 price: u64,
65 size: u64,
66 side: Side,
67 order_type: OrderType,
68 client_order_id: Option<u64>,
69 tag: Option<String>, tif_offset: Option<u16>,
71 ) -> Result<()> {
72 Ok(())
73 }
74
75 pub(crate) fn cancel_order(
76 ctx: Context<CancelOrder>,
77 side: Side,
78 order_id: u128,
79 ) -> Result<()> {
80 Ok(())
81 }
82
83 pub(crate) fn cancel_order_no_error(
84 ctx: Context<CancelOrder>,
85 side: Side,
86 order_id: u128,
87 ) -> Result<()> {
88 Ok(())
89 }
90
91 pub(crate) fn cancel_all_market_orders(ctx: Context<CancelOrder>) -> Result<()> {
92 Ok(())
93 }
94
95 pub(crate) fn cancel_order_by_client_order_id(
96 ctx: Context<CancelOrder>,
97 client_order_id: u64,
98 ) -> Result<()> {
99 Ok(())
100 }
101
102 pub(crate) fn cancel_order_by_client_order_id_no_error(
103 ctx: Context<CancelOrder>,
104 client_order_id: u64,
105 ) -> Result<()> {
106 Ok(())
107 }
108
109 pub(crate) fn force_cancel_orders(ctx: Context<ForceCancelOrders>) -> Result<()> {
110 Ok(())
111 }
112
113 pub(crate) fn liquidate(ctx: Context<Liquidate>, size: u64) -> Result<()> {
114 Ok(())
115 }
116
117 pub(crate) fn close_open_orders(ctx: Context<CloseOpenOrders>, _map_nonce: u8) -> Result<()> {
118 Ok(())
119 }
120
121 pub(crate) fn close_margin_account(_ctx: Context<CloseMarginAccount>) -> Result<()> {
122 Ok(())
123 }
124}