MCPcopy Create free account

hub / github.com/Bonfida/dex-v4 / functions

Functions259 in github.com/Bonfida/dex-v4

↓ 1 callersMethodloadEventQueue
* * @param connection The solana connection object to the RPC node * @returns The deserialized event queue of the market
js/src/market.ts:695
↓ 1 callersMethodload_user_account
( &self, user_account_data: &'a mut [u8], )
program/src/processor/new_order.rs:188
↓ 1 callersMethodload_user_account
( &self, user_account_data: &'a mut [u8], )
program/src/processor/cancel_order.rs:97
↓ 1 callersMethodload_user_account
( &self, user_account_data: &'a mut [u8], )
program/src/processor/settle.rs:93
↓ 1 callersMethodmakePlaceOrderTransaction
* 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 callersMethodmakeSettleFundsTransaction
* * @param owner Owner of the funds to settle * @param destinationBaseAccount The owner base token account * @param destinationQuoteAccount T
js/src/market.ts:652
↓ 1 callersMethodmaker_rate
(self)
program/src/state.rs:404
↓ 1 callersMethodmaker_rebate
(self, _quote_qty: u64)
program/src/state.rs:408
↓ 1 callersFunctionmetadataTest
( connection: Connection, feePayer: Keypair, baseDecimals: number, quoteDecimals: number, minPrice:
js/tests/metadata.ts:18
↓ 1 callersMethodread_order
(&self, order_index: usize)
program/src/state.rs:252
↓ 1 callersMethodreferral_rate
(self)
program/src/state.rs:422
↓ 1 callersFunctionsafe_downcast
(n: u128)
program/src/utils.rs:57
↓ 1 callersFunctionselfTradeTest
( connection: Connection, feePayer: Keypair, baseDecimals: number, quoteDecimals: number, minPrice:
js/tests/self-trade.ts:20
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:25
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:115
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:246
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:317
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:408
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:461
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:564
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:625
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:724
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:847
↓ 1 callersMethodserialize
()
js/src/raw_instructions.ts:923
↓ 1 callersFunctionserum_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 callersFunctionsettle
Extract available base and quote token assets from a user account
program/src/instruction_auto.rs:199
↓ 1 callersFunctionswap
( market: Market, side: Side, minOutputQuantity: number, inputQuantity: number, selfTradeBehaviour:
js/src/bindings.ts:401
↓ 1 callersFunctionsweep_fees
Extract accumulated fees from the market. This is an admin instruction
program/src/instruction_auto.rs:215
↓ 1 callersMethodunscale_quote_amount
(&self, scaled_quote_amount: u64)
program/src/state.rs:121
↓ 1 callersFunctionupdate_royalties
( program_id: Pubkey, accounts: update_royalties::Accounts<Pubkey>, params: update_royalties::Para
program/src/instruction_auto.rs:239
MethodaccumulatedRebates
* Returns the amount of accumulated fee rebates
js/src/openOrders.ts:144
Methodaddress
Return the market address
js/src/market.ts:200
Methodaddress
* Returns the address of the open order account
js/src/openOrders.ts:89
MethodaddressForOwner
( market: PublicKey, owner: PublicKey, programId = DEX_ID )
js/src/openOrders.ts:231
FunctionairdropPayer
( connection: Connection, key: PublicKey, loop = 5 )
js/tests/utils/validator.ts:96
Methodas_callback_id
(&self)
program/src/state.rs:446
MethodasksAddress
Returns the asks address (AOB program) of the market
js/src/market.ts:220
MethodbaseCurrencyMultiplier
()
js/src/market.ts:288
MethodbaseDecimals
Returns the number of decimals of the quote spl-token
js/src/market.ts:240
MethodbaseMintAddress
Returns the mint address of the base token
js/src/market.ts:205
MethodbaseTokenFree
* Returns the amount of free base tokens
js/src/openOrders.ts:110
MethodbaseTokenTotal
* Returns the total amount of base tokens
js/src/openOrders.ts:117
MethodbaseVault
Returns the base vault address of the market
js/src/market.ts:245
MethodbaseVolume
Returns the inception base volume
js/src/market.ts:297
MethodbidsAddress
Returns the bids address (AOB program) of the market
js/src/market.ts:215
MethodcancelInBatch
( connection: Connection, orders: OrderInfo[], owner: Keypair )
js/src/market.ts:623
MethodcancelOrderByOrderId
* * @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
MethodcancelOrderByOrderIndex
* * @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
Functioncancel_order
Cancel an existing order and remove it from the orderbook.
program/src/instruction_auto.rs:183
Functionclose_market
Close an existing market
program/src/instruction_auto.rs:231
Methodconstructor
( marketState: MarketState, orderbookState: AaobMarketState, address: PublicKey, baseDecimals:
js/src/market.ts:114
Methodconstructor
(market: Market, slabBids: Slab, slabAsks: Slab)
js/src/orderbook.ts:28
Methodconstructor
()
js/src/raw_instructions.ts:22
Methodconstructor
(obj: { clientOrderId: BN; limitPrice: BN; maxBaseQty: BN; maxQuoteQty: BN; matchLimit: BN
js/src/raw_instructions.ts:91
Methodconstructor
(obj: { orderId: BN; orderIndex: BN; isClientId: number })
js/src/raw_instructions.ts:239
Methodconstructor
()
js/src/raw_instructions.ts:314
Methodconstructor
(obj: { market: Uint8Array; maxOrders: BN })
js/src/raw_instructions.ts:403
Methodconstructor
()
js/src/raw_instructions.ts:458
Methodconstructor
(obj: { maxIterations: BN; noOpErr: BN })
js/src/raw_instructions.ts:559
Methodconstructor
()
js/src/raw_instructions.ts:622
Methodconstructor
(obj: { baseQty: BN; quoteQty: BN; matchLimit: BN; side: number; hasDiscountTokenAccount:
js/src/raw_instructions.ts:709
Methodconstructor
()
js/src/raw_instructions.ts:844
Methodconstructor
(obj: { signerNonce: BN; minBaseOrderSize: BN; tickSize: BN; baseCurrencyMultiplier: BN; q
js/src/raw_instructions.ts:909
Methodconstructor
(obj: { tag: BN; signerNonce: number; baseMint: Uint8Array; quoteMint: Uint8Array; baseVau
js/src/state.ts:75
Methodconstructor
(obj: { id: BN; clientId: BN })
js/src/state.ts:132
Methodconstructor
(obj: { tag: BN; market: Uint8Array; owner: Uint8Array; baseTokenFree: BN; baseTokenLocked
js/src/state.ts:189
Methodconstructor
( address: PublicKey, market: PublicKey, owner: PublicKey, baseTokenFree: BN, baseTokenTot
js/src/openOrders.ts:64
Methodconvert
(p: aaob.Price)
js/src/orderbook.ts:98
FunctiondeployProgram
( payerKeyFile: string, compile: boolean, compileFlag?: string, testBpf?: boolean )
js/tests/utils/validator.ts:45
MethodeventQueueAddress
Returns the event queue address of the market
js/src/market.ts:260
Methodexists
* 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
MethodfindBaseTokenAccountsForOwner
* 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
MethodfindFeeDiscountKeys
* 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
MethodfindQuoteTokenAccountsForOwner
* 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
Methodfrom_buffer
(buf: &'a mut [u8])
program/src/state.rs:232
Methodfrom_buffer_unchecked
(buf: &'a mut [u8])
program/src/state.rs:241
Methodfrom_srm_and_msrm_balances
( dex_state: &DexState, srm_held: u64, msrm_held: u64, )
program/src/state.rs:332
Methodfrom_u8
(tag: u8)
program/src/state.rs:354
MethodgetClientOrderId
(orderId: BN)
js/src/state.ts:236
FunctiongetFeeRates
(feeTier: number)
js/src/fees.ts:45
MethodgetInstruction
( programId: PublicKey, user: PublicKey, userOwner: PublicKey, targetLamportsAccount: PublicKe
js/src/raw_instructions.ts:28
MethodgetInstruction
( programId: PublicKey, splTokenProgram: PublicKey, systemProgram: PublicKey, market: PublicKe
js/src/raw_instructions.ts:118
MethodgetInstruction
( programId: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, bi
js/src/raw_instructions.ts:249
MethodgetInstruction
( programId: PublicKey, splTokenProgram: PublicKey, market: PublicKey, baseVault: PublicKey,
js/src/raw_instructions.ts:320
MethodgetInstruction
( programId: PublicKey, systemProgram: PublicKey, user: PublicKey, userOwner: PublicKey, f
js/src/raw_instructions.ts:411
MethodgetInstruction
( programId: PublicKey, market: PublicKey, baseVault: PublicKey, quoteVault: PublicKey, or
js/src/raw_instructions.ts:464
MethodgetInstruction
( programId: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, re
js/src/raw_instructions.ts:567
MethodgetInstruction
( programId: PublicKey, market: PublicKey, marketSigner: PublicKey, quoteVault: PublicKey,
js/src/raw_instructions.ts:628
MethodgetInstruction
( programId: PublicKey, market: PublicKey, eventQueue: PublicKey, orderbook: PublicKey, to
js/src/raw_instructions.ts:850
MethodgetInstruction
( programId: PublicKey, market: PublicKey, orderbook: PublicKey, baseVault: PublicKey, quo
js/src/raw_instructions.ts:926
MethodgetL2
( depth: number, asks: boolean, uiAmount = false )
js/src/orderbook.ts:93
MethodgetOrderId
(clientOrderId: BN)
js/src/state.ts:232
Methodget_unchecked
(account_info: &'a AccountInfo<'b>)
program/src/state.rs:106
Functionget_verified_creators
(account: &AccountInfo)
program/src/utils.rs:81
Methodload
* * @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
Methodload
* 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
MethodloadFills
* * @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
MethodloadOrdersForOwner
* * @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
Functionmain
()
cranker/src/main.rs:9
MethodmakeCloseAccountTransaction
* * @returns Returns a TransactionInstruction object to close the OpenOrder account
js/src/openOrders.ts:206
← previousnext →101–200 of 259, ranked by callers