Namespace: instructions
Last updated
Last updated
▸ Const
burnWriterForQuote(program
, size
, optionMarket
, writerTokenSrc
, writerQuoteDest
): TransactionInstruction
Burn WriterTokens to get the size * OptionMarket.quoteAmountPerContract
from the OptionMarket's quote asset pool. This instruction will fail if no one has exercised or the quote assets in the pool have already been claimed.
Parameters
Name | Type | Description |
---|---|---|
Returns
TransactionInstruction
Defined in
instructions/burnWriterForQuote.ts:18
▸ Const
closePositionInstruction(program
, size
, optionMarket
, writerTokenSrc
, optionTokenSrc
, underlyingAssetDest
): TransactionInstruction
Close size option positions by burning the OptionTokens and WriterTokens.
Parameters
Returns
TransactionInstruction
Defined in
instructions/closePosition.ts:17
▸ Const
closePostExpirationInstruction(program
, size
, optionMarket
, writerTokenSrc
, underlyingAssetDest
): TransactionInstruction
After a market has expired, burn WriterTokens to get the underlying assets back from the contract(s).
Parameters
Returns
TransactionInstruction
Defined in
instructions/closePostExpiration.ts:17
▸ Const
exerciseOptionsInstruction(program
, size
, optionMarket
, exerciserOptionTokenSrc
, underlyingAssetDest
, quoteAssetSrc
, opts?
): Promise
<TransactionInstruction
>
Exercise OptionTokens you're holding
Parameters
Returns
Promise
<TransactionInstruction
>
Defined in
instructions/exerciseOptions.ts:21
▸ Const
exerciseOptionsV2Instruction(program
, size
, optionMarket
, exerciserOptionTokenSrc
, underlyingAssetDest
, quoteAssetSrc
, opts?
): TransactionInstruction
Exercise OptionTokens you're holding without fees!
Parameters
Returns
TransactionInstruction
Defined in
instructions/exerciseOptions.ts:85
▸ Const
initializeMarket(program
, __namedParameters
): Promise
<Object
>
Initialize a new OptionMarket
Parameters
Returns
Promise
<Object
>
Defined in
instructions/initializeMarket.ts:30
▸ Const
initializeSerumMarket(program
, __namedParameters
): Promise
<Object
>
Parameters
Returns
Promise
<Object
>
Defined in
instructions/initializeSerumMarket.ts:22
▸ Const
mintOptionInstruction(program
, minterOptionAcct
, minterWriterAcct
, minterUnderlyingAccount
, size
, optionMarket
): Promise
<Object
>
Create a TransactionInstruction for minting size option contracts
Parameters
Returns
Promise
<Object
>
Defined in
instructions/mintOptions.ts:92
▸ Const
mintOptionV2Instruction(program
, minterOptionAcct
, minterWriterAcct
, minterUnderlyingAccount
, size
, optionMarket
): Promise
<Object
>
Create a TransactionInstruction for minting size option contracts using V2 instruction
Parameters
Returns
Promise
<Object
>
Defined in
instructions/mintOptions.ts:156
▸ Const
mintOptionsTx(program
, minterOptionAcct
, minterWriterAcct
, minterUnderlyingAccount
, size
, optionMarket
): Promise
<Object
>
Execute a transaction to mint size options
Parameters
Returns
Promise
<Object
>
Defined in
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|