Class: KandelFarm
Title
Repository for Kandel instances.
Constructorsβ
constructorβ
β’ new KandelFarm(mgv
): KandelFarm
Constructor
Parametersβ
Name | Type | Description |
---|---|---|
mgv | Mangrove | The Mangrove to get kandels for. |
Returnsβ
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelFarm.ts:20
Propertiesβ
mgvβ
β’ mgv: Mangrove
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelFarm.ts:11
tradeEventManagementβ
β’ tradeEventManagement: TradeEventManagement
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelFarm.ts:12
aaveKandelSeederβ
β’ aaveKandelSeeder: AaveKandelSeeder
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelFarm.ts:14
kandelSeederβ
β’ kandelSeeder: KandelSeeder
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelFarm.ts:15
Methodsβ
getKandelsβ
βΈ getKandels(filter?
): Promise
<{ kandelAddress
: string
= x.args.kandel; ownerAddress
: string
= x.args.owner; onAave
: boolean
= false; baseAddress
: string
= baseToken.address; base
: Token
= baseToken; quoteAddress
: string
= quoteToken.address; quote
: Token
= quoteToken }[]>
Gets all Kandels matching a given filter.
Parametersβ
Name | Type | Description |
---|---|---|
filter? | Object | The filter to apply. |
filter.owner? | null | string | The Kandel instance owner - the one who invoked sow. |
filter.baseQuoteOlKey? | null | OLKeyStruct | The low-level identifier of the market for the Kandel instance. Takes precedence over baseQuoteOfferList if both are provided. |
filter.baseQuoteOfferList? | null | { base : string ; quote : string ; tickSpacing : number } | The identifier of the market for the Kandel instance using Mangrove token identifiers. |
filter.onAave? | boolean | Whether the Kandel instance uses the Aave router. |
Returnsβ
Promise
<{ kandelAddress
: string
= x.args.kandel; ownerAddress
: string
= x.args.owner; onAave
: boolean
= false; baseAddress
: string
= baseToken.address; base
: Token
= baseToken; quoteAddress
: string
= quoteToken.address; quote
: Token
= quoteToken }[]>
All kandels matching the filter.
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelFarm.ts:51