Skip to main content

Class: ChromaticMarketFactory

Represents the Chromatic Market Factory and provides methods to interact with it.

Constructors​

constructor​

• new ChromaticMarketFactory(_client)

Creates a new instance of ChromaticMarketFactory.

Parameters​

NameTypeDescription
_clientClientThe Chromatic Client instance.

Defined in​

packages/sdk-ethers-v5/src/entities/ChromaticMarketFactory.ts:24

Methods​

contracts​

▸ contracts(): Object

Retrieves the contract instances associated with the Chromatic Market Factory.

Returns​

Object

An object containing the contract instance of the Market Factory.

NameType
marketFactoryChromaticMarketFactory

Defined in​

packages/sdk-ethers-v5/src/entities/ChromaticMarketFactory.ts:42


currentInterestRate​

▸ currentInterestRate(settlementToken): Promise<BigNumber>

Retrieves the current interest rate for a specific settlement token.

Parameters​

NameTypeDescription
settlementTokenstringThe address of the settlement token.

Returns​

Promise<BigNumber>

A promise that resolves to the current interest rate.

Defined in​

packages/sdk-ethers-v5/src/entities/ChromaticMarketFactory.ts:78


getMarkets​

▸ getMarkets(settlementToken): Promise<{ address: string ; description: string ; oracleValue: OracleVersionStructOutput = value }[]>

Retrieves the markets associated with a specific settlement token.

Parameters​

NameTypeDescription
settlementTokenstringThe address of the settlement token.

Returns​

Promise<{ address: string ; description: string ; oracleValue: OracleVersionStructOutput = value }[]>

A promise that resolves to an array of market information.

Defined in​

packages/sdk-ethers-v5/src/entities/ChromaticMarketFactory.ts:89


getOracleProviderProperties​

▸ getOracleProviderProperties(oracleProvider): Promise<OracleProviderPropertiesStructOutput>

Retrieves the oracle provider properties for a specific oracle provider

Parameters​

NameTypeDescription
oracleProviderstringThe address of the oracle provider

Returns​

Promise<OracleProviderPropertiesStructOutput>

A Promise that resolves to an object containing the oracle properties

Defined in​

packages/sdk-ethers-v5/src/entities/ChromaticMarketFactory.ts:115


registeredSettlementTokens​

▸ registeredSettlementTokens(): Promise<{ address: string ; decimals: number ; name: string }[]>

Retrieves the registered settlement tokens.

Returns​

Promise<{ address: string ; decimals: number ; name: string }[]>

A promise that resolves to an array of settlement tokens.

Defined in​

packages/sdk-ethers-v5/src/entities/ChromaticMarketFactory.ts:52