Namespace: serum utils

Functions

deriveCoinVault

Const deriveCoinVault(program, optionMarketKey, priceCurrencyKey): Promise<[PublicKey, number]>

Parameters

Returns

Promise<[PublicKey, number]>

Defined in

serumUtils.ts:201

deriveMarketAuthority

Const deriveMarketAuthority(program, dexProgramId, serumMarketKey): Promise<[PublicKey, number]>

Parameters

Returns

Promise<[PublicKey, number]>

Defined in

serumUtils.ts:177

derivePCVault

Const derivePCVault(program, optionMarketKey, priceCurrencyKey): Promise<[PublicKey, number]>

Parameters

Returns

Promise<[PublicKey, number]>

Defined in

serumUtils.ts:215

deriveRequestQueue

Const deriveRequestQueue(program, optionMarketKey, priceCurrencyKey): Promise<[PublicKey, number]>

Parameters

Returns

Promise<[PublicKey, number]>

Defined in

serumUtils.ts:187

deriveSerumMarketAddress

Const deriveSerumMarketAddress(program, optionMarketKey, priceCurrencyKey): Promise<[PublicKey, number]>

Parameters

Returns

Promise<[PublicKey, number]>

Defined in

serumUtils.ts:162

findOpenOrdersAccountsForOwner

Const findOpenOrdersAccountsForOwner(program, dexProgramId, serumMarketAddress): Promise<OpenOrders[]>

Load the open orders for a user based on the Serum DEX and Serum Market address.

Parameters

Returns

Promise<OpenOrders[]>

Defined in

serumUtils.ts:19

findOpenOrdersForOptionMarkets

Const findOpenOrdersForOptionMarkets(program, serumProgramId, optionMarketKeys, priceCurrencyKey, optionMetaList?): Promise<Record<string, OpenOrders>>

Load all the open orders for a user based on the Serum DEX and the option market keys.

Parameters

Returns

Promise<Record<string, OpenOrders>>

Defined in

serumUtils.ts:74

getMarketAndAuthorityInfo

Const getMarketAndAuthorityInfo(program, optionMarketKey, dexProgramId, priceCurrencyKey): Promise<Object>

Given an OptionMarket address and DEX program, generate the Serum market key, market authority, and authority bump seed.

Parameters

Returns

Promise<Object>

Defined in

serumUtils.ts:237

Last updated