Skip to main content

Function: optionDetailsInput()

function optionDetailsInput(d): object;

Defined in: solana-client/src/utils.ts:136

Map the core OptionDetails onto the IDL's camelCase, pubkey/BN layout — the inverse of toOptionDetails, for passing details back into a program call.

Parameters​

ParameterType
dOptionDetails

Returns​

object

borrowAllowed​

borrowAllowed: boolean = d.borrowAllowed;

collateralAmount​

collateralAmount: any;

collateralAsset​

collateralAsset: PublicKey;

domain​

domain: number = d.domain;

endTimestamp​

endTimestamp: any;

premiumAmount​

premiumAmount: any;

premiumAsset​

premiumAsset: PublicKey;

settlementAmount​

settlementAmount: any;

settlementAsset​

settlementAsset: PublicKey;

settlementLayer​

settlementLayer: PublicKey;

startTimestamp​

startTimestamp: any;