Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bonfida/dex-v4
/ functions
Functions
259 in github.com/Bonfida/dex-v4
⨍
Functions
259
◇
Types & classes
89
↓ 1 callers
Method
loadEventQueue
* * @param connection The solana connection object to the RPC node * @returns The deserialized event queue of the market
js/src/market.ts:695
↓ 1 callers
Method
load_user_account
( &self, user_account_data: &'a mut [u8], )
program/src/processor/new_order.rs:188
↓ 1 callers
Method
load_user_account
( &self, user_account_data: &'a mut [u8], )
program/src/processor/cancel_order.rs:97
↓ 1 callers
Method
load_user_account
( &self, user_account_data: &'a mut [u8], )
program/src/processor/settle.rs:93
↓ 1 callers
Method
makePlaceOrderTransaction
* Returns a TransactionInstruction to place an order * @param side The side of the order (cf Side enum) * @param limitPrice The limit price of t
js/src/market.ts:460
↓ 1 callers
Method
makeSettleFundsTransaction
* * @param owner Owner of the funds to settle * @param destinationBaseAccount The owner base token account * @param destinationQuoteAccount T
js/src/market.ts:652
↓ 1 callers
Method
maker_rate
(self)
program/src/state.rs:404
↓ 1 callers
Method
maker_rebate
(self, _quote_qty: u64)
program/src/state.rs:408
↓ 1 callers
Function
metadataTest
( connection: Connection, feePayer: Keypair, baseDecimals: number, quoteDecimals: number, minPrice:
js/tests/metadata.ts:18
↓ 1 callers
Method
read_order
(&self, order_index: usize)
program/src/state.rs:252
↓ 1 callers
Method
referral_rate
(self)
program/src/state.rs:422
↓ 1 callers
Function
safe_downcast
(n: u128)
program/src/utils.rs:57
↓ 1 callers
Function
selfTradeTest
( connection: Connection, feePayer: Keypair, baseDecimals: number, quoteDecimals: number, minPrice:
js/tests/self-trade.ts:20
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:25
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:115
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:246
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:317
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:408
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:461
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:564
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:625
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:724
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:847
↓ 1 callers
Method
serialize
()
js/src/raw_instructions.ts:923
↓ 1 callers
Function
serum_dex_new_order
( pgr_test_ctx: &mut ProgramTestContext, aob_dex_test_ctx: &AobDexTestContext, serum_test_ctx: &Se
program/tests/common/performance_test_utils.rs:461
↓ 1 callers
Function
settle
Extract available base and quote token assets from a user account
program/src/instruction_auto.rs:199
↓ 1 callers
Function
swap
( market: Market, side: Side, minOutputQuantity: number, inputQuantity: number, selfTradeBehaviour:
js/src/bindings.ts:401
↓ 1 callers
Function
sweep_fees
Extract accumulated fees from the market. This is an admin instruction
program/src/instruction_auto.rs:215
↓ 1 callers
Method
unscale_quote_amount
(&self, scaled_quote_amount: u64)
program/src/state.rs:121
↓ 1 callers
Function
update_royalties
( program_id: Pubkey, accounts: update_royalties::Accounts<Pubkey>, params: update_royalties::Para
program/src/instruction_auto.rs:239
Method
accumulatedRebates
* Returns the amount of accumulated fee rebates
js/src/openOrders.ts:144
Method
address
Return the market address
js/src/market.ts:200
Method
address
* Returns the address of the open order account
js/src/openOrders.ts:89
Method
addressForOwner
( market: PublicKey, owner: PublicKey, programId = DEX_ID )
js/src/openOrders.ts:231
Function
airdropPayer
( connection: Connection, key: PublicKey, loop = 5 )
js/tests/utils/validator.ts:96
Method
as_callback_id
(&self)
program/src/state.rs:446
Method
asksAddress
Returns the asks address (AOB program) of the market
js/src/market.ts:220
Method
baseCurrencyMultiplier
()
js/src/market.ts:288
Method
baseDecimals
Returns the number of decimals of the quote spl-token
js/src/market.ts:240
Method
baseMintAddress
Returns the mint address of the base token
js/src/market.ts:205
Method
baseTokenFree
* Returns the amount of free base tokens
js/src/openOrders.ts:110
Method
baseTokenTotal
* Returns the total amount of base tokens
js/src/openOrders.ts:117
Method
baseVault
Returns the base vault address of the market
js/src/market.ts:245
Method
baseVolume
Returns the inception base volume
js/src/market.ts:297
Method
bidsAddress
Returns the bids address (AOB program) of the market
js/src/market.ts:215
Method
cancelInBatch
( connection: Connection, orders: OrderInfo[], owner: Keypair )
js/src/market.ts:623
Method
cancelOrderByOrderId
* * @param connection The solana connection object to the RPC node * @param orderId The id of the order to cancel * @param owner The owner of
js/src/market.ts:595
Method
cancelOrderByOrderIndex
* * @param connection The solana connection object to the RPC node * @param orderIndex The index of the order in the open order account * @pa
js/src/market.ts:562
Function
cancel_order
Cancel an existing order and remove it from the orderbook.
program/src/instruction_auto.rs:183
Function
close_market
Close an existing market
program/src/instruction_auto.rs:231
Method
constructor
( marketState: MarketState, orderbookState: AaobMarketState, address: PublicKey, baseDecimals:
js/src/market.ts:114
Method
constructor
(market: Market, slabBids: Slab, slabAsks: Slab)
js/src/orderbook.ts:28
Method
constructor
()
js/src/raw_instructions.ts:22
Method
constructor
(obj: { clientOrderId: BN; limitPrice: BN; maxBaseQty: BN; maxQuoteQty: BN; matchLimit: BN
js/src/raw_instructions.ts:91
Method
constructor
(obj: { orderId: BN; orderIndex: BN; isClientId: number })
js/src/raw_instructions.ts:239
Method
constructor
()
js/src/raw_instructions.ts:314
Method
constructor
(obj: { market: Uint8Array; maxOrders: BN })
js/src/raw_instructions.ts:403
Method
constructor
()
js/src/raw_instructions.ts:458
Method
constructor
(obj: { maxIterations: BN; noOpErr: BN })
js/src/raw_instructions.ts:559
Method
constructor
()
js/src/raw_instructions.ts:622
Method
constructor
(obj: { baseQty: BN; quoteQty: BN; matchLimit: BN; side: number; hasDiscountTokenAccount:
js/src/raw_instructions.ts:709
Method
constructor
()
js/src/raw_instructions.ts:844
Method
constructor
(obj: { signerNonce: BN; minBaseOrderSize: BN; tickSize: BN; baseCurrencyMultiplier: BN; q
js/src/raw_instructions.ts:909
Method
constructor
(obj: { tag: BN; signerNonce: number; baseMint: Uint8Array; quoteMint: Uint8Array; baseVau
js/src/state.ts:75
Method
constructor
(obj: { id: BN; clientId: BN })
js/src/state.ts:132
Method
constructor
(obj: { tag: BN; market: Uint8Array; owner: Uint8Array; baseTokenFree: BN; baseTokenLocked
js/src/state.ts:189
Method
constructor
( address: PublicKey, market: PublicKey, owner: PublicKey, baseTokenFree: BN, baseTokenTot
js/src/openOrders.ts:64
Method
convert
(p: aaob.Price)
js/src/orderbook.ts:98
Function
deployProgram
( payerKeyFile: string, compile: boolean, compileFlag?: string, testBpf?: boolean )
js/tests/utils/validator.ts:45
Method
eventQueueAddress
Returns the event queue address of the market
js/src/market.ts:260
Method
exists
* Checks if an open order account exists for the owner on the given market * @param connection The solana connection object to the RPC node * @p
js/src/openOrders.ts:217
Method
findBaseTokenAccountsForOwner
* Fetch the associated token account of the owner for the base token of the market * @param owner The public key of the owner * @returns The pub
js/src/market.ts:367
Method
findFeeDiscountKeys
* This method returns the fee discount keys assuming (M)SRM tokens are held in associated token account. * @param connection The solana connection
js/src/market.ts:491
Method
findQuoteTokenAccountsForOwner
* Fetch the associated token account of the owner for the quote token of the market * @param owner The public key of the owner * @returns The pu
js/src/market.ts:380
Method
from_buffer
(buf: &'a mut [u8])
program/src/state.rs:232
Method
from_buffer_unchecked
(buf: &'a mut [u8])
program/src/state.rs:241
Method
from_srm_and_msrm_balances
( dex_state: &DexState, srm_held: u64, msrm_held: u64, )
program/src/state.rs:332
Method
from_u8
(tag: u8)
program/src/state.rs:354
Method
getClientOrderId
(orderId: BN)
js/src/state.ts:236
Function
getFeeRates
(feeTier: number)
js/src/fees.ts:45
Method
getInstruction
( programId: PublicKey, user: PublicKey, userOwner: PublicKey, targetLamportsAccount: PublicKe
js/src/raw_instructions.ts:28
Method
getInstruction
( programId: PublicKey, splTokenProgram: PublicKey, systemProgram: PublicKey, market: PublicKe
js/src/raw_instructions.ts:118
Method
getInstruction
( programId: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, bi
js/src/raw_instructions.ts:249
Method
getInstruction
( programId: PublicKey, splTokenProgram: PublicKey, market: PublicKey, baseVault: PublicKey,
js/src/raw_instructions.ts:320
Method
getInstruction
( programId: PublicKey, systemProgram: PublicKey, user: PublicKey, userOwner: PublicKey, f
js/src/raw_instructions.ts:411
Method
getInstruction
( programId: PublicKey, market: PublicKey, baseVault: PublicKey, quoteVault: PublicKey, or
js/src/raw_instructions.ts:464
Method
getInstruction
( programId: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, re
js/src/raw_instructions.ts:567
Method
getInstruction
( programId: PublicKey, market: PublicKey, marketSigner: PublicKey, quoteVault: PublicKey,
js/src/raw_instructions.ts:628
Method
getInstruction
( programId: PublicKey, market: PublicKey, eventQueue: PublicKey, orderbook: PublicKey, to
js/src/raw_instructions.ts:850
Method
getInstruction
( programId: PublicKey, market: PublicKey, orderbook: PublicKey, baseVault: PublicKey, quo
js/src/raw_instructions.ts:926
Method
getL2
( depth: number, asks: boolean, uiAmount = false )
js/src/orderbook.ts:93
Method
getOrderId
(clientOrderId: BN)
js/src/state.ts:232
Method
get_unchecked
(account_info: &'a AccountInfo<'b>)
program/src/state.rs:106
Function
get_verified_creators
(account: &AccountInfo)
program/src/utils.rs:81
Method
load
* * @param connection The solana connection object to the RPC node * @param marketAddress The address of the market * @returns Returns an ord
js/src/orderbook.ts:73
Method
load
* Loads the open orders account * @param connection The solana connection object to the RPC node * @param market The market address of the open
js/src/openOrders.ts:155
Method
loadFills
* * @param connection The solana connection object to the RPC node * @param limit Optional limit parameters to the number of fills fetched
js/src/market.ts:709
Method
loadOrdersForOwner
* * @param connection The solana connection object to the RPC node * @param owner The owner of the orders to fetch * @returns
js/src/market.ts:347
Function
main
()
cranker/src/main.rs:9
Method
makeCloseAccountTransaction
* * @returns Returns a TransactionInstruction object to close the OpenOrder account
js/src/openOrders.ts:206
← previous
next →
101–200 of 259, ranked by callers