Documentation ¶
Index ¶
- Constants
- Variables
- func InstructionIDToName(id ag_binary.TypeID) string
- func SetProgramID(pubkey ag_solanago.PublicKey)
- type BurnWriterForQuote
- func (inst BurnWriterForQuote) Build() *Instruction
- func (inst *BurnWriterForQuote) EncodeToTree(parent ag_treeout.Branches)
- func (inst *BurnWriterForQuote) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *BurnWriterForQuote) GetQuoteAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *BurnWriterForQuote) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *BurnWriterForQuote) GetUserAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *BurnWriterForQuote) GetWriterQuoteDestAccount() *ag_solanago.AccountMeta
- func (inst *BurnWriterForQuote) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
- func (inst *BurnWriterForQuote) GetWriterTokenSrcAccount() *ag_solanago.AccountMeta
- func (obj BurnWriterForQuote) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *BurnWriterForQuote) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *BurnWriterForQuote
- func (inst *BurnWriterForQuote) SetQuoteAssetPoolAccount(quoteAssetPool ag_solanago.PublicKey) *BurnWriterForQuote
- func (inst *BurnWriterForQuote) SetSize(size uint64) *BurnWriterForQuote
- func (inst *BurnWriterForQuote) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *BurnWriterForQuote
- func (inst *BurnWriterForQuote) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *BurnWriterForQuote
- func (inst *BurnWriterForQuote) SetWriterQuoteDestAccount(writerQuoteDest ag_solanago.PublicKey) *BurnWriterForQuote
- func (inst *BurnWriterForQuote) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *BurnWriterForQuote
- func (inst *BurnWriterForQuote) SetWriterTokenSrcAccount(writerTokenSrc ag_solanago.PublicKey) *BurnWriterForQuote
- func (obj *BurnWriterForQuote) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *BurnWriterForQuote) Validate() error
- func (inst BurnWriterForQuote) ValidateAndBuild() (*Instruction, error)
- type CloseOptionPosition
- func (inst CloseOptionPosition) Build() *Instruction
- func (inst *CloseOptionPosition) EncodeToTree(parent ag_treeout.Branches)
- func (inst *CloseOptionPosition) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetOptionTokenMintAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetOptionTokenSrcAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetUnderlyingAssetDestAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetUserAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
- func (inst *CloseOptionPosition) GetWriterTokenSrcAccount() *ag_solanago.AccountMeta
- func (obj CloseOptionPosition) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *CloseOptionPosition) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetOptionTokenMintAccount(optionTokenMint ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetOptionTokenSrcAccount(optionTokenSrc ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetSize(size uint64) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetUnderlyingAssetDestAccount(underlyingAssetDest ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *CloseOptionPosition
- func (inst *CloseOptionPosition) SetWriterTokenSrcAccount(writerTokenSrc ag_solanago.PublicKey) *CloseOptionPosition
- func (obj *CloseOptionPosition) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *CloseOptionPosition) Validate() error
- func (inst CloseOptionPosition) ValidateAndBuild() (*Instruction, error)
- type ClosePostExpiration
- func (inst ClosePostExpiration) Build() *Instruction
- func (inst *ClosePostExpiration) EncodeToTree(parent ag_treeout.Branches)
- func (inst *ClosePostExpiration) GetClockAccount() *ag_solanago.AccountMeta
- func (inst *ClosePostExpiration) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *ClosePostExpiration) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *ClosePostExpiration) GetUnderlyingAssetDestAccount() *ag_solanago.AccountMeta
- func (inst *ClosePostExpiration) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *ClosePostExpiration) GetUserAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *ClosePostExpiration) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
- func (inst *ClosePostExpiration) GetWriterTokenSrcAccount() *ag_solanago.AccountMeta
- func (obj ClosePostExpiration) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *ClosePostExpiration) SetClockAccount(clock ag_solanago.PublicKey) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetSize(size uint64) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetUnderlyingAssetDestAccount(underlyingAssetDest ag_solanago.PublicKey) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *ClosePostExpiration
- func (inst *ClosePostExpiration) SetWriterTokenSrcAccount(writerTokenSrc ag_solanago.PublicKey) *ClosePostExpiration
- func (obj *ClosePostExpiration) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *ClosePostExpiration) Validate() error
- func (inst ClosePostExpiration) ValidateAndBuild() (*Instruction, error)
- type ExerciseOption
- func (inst ExerciseOption) Build() *Instruction
- func (inst *ExerciseOption) EncodeToTree(parent ag_treeout.Branches)
- func (inst *ExerciseOption) GetClockAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetExerciserOptionTokenSrcAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetFeeOwnerAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetOptionAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetOptionMintAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetQuoteAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetQuoteAssetSrcAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetUnderlyingAssetDestAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *ExerciseOption) GetUserAuthorityAccount() *ag_solanago.AccountMeta
- func (obj ExerciseOption) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *ExerciseOption) SetClockAccount(clock ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetExerciserOptionTokenSrcAccount(exerciserOptionTokenSrc ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetFeeOwnerAccount(feeOwner ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetOptionAuthorityAccount(optionAuthority ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetQuoteAssetPoolAccount(quoteAssetPool ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetQuoteAssetSrcAccount(quoteAssetSrc ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetSize(size uint64) *ExerciseOption
- func (inst *ExerciseOption) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetUnderlyingAssetDestAccount(underlyingAssetDest ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *ExerciseOption
- func (inst *ExerciseOption) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *ExerciseOption
- func (obj *ExerciseOption) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *ExerciseOption) Validate() error
- func (inst ExerciseOption) ValidateAndBuild() (*Instruction, error)
- type InitSerumMarket
- func (inst InitSerumMarket) Build() *Instruction
- func (inst *InitSerumMarket) EncodeToTree(parent ag_treeout.Branches)
- func (inst *InitSerumMarket) GetAsksAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetBidsAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetCoinVaultAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetDexProgramAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetEventQueueAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetMarketAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetOptionMintAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetPcMintAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetPcVaultAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetRequestQueueAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetSerumMarketAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetUserAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *InitSerumMarket) GetVaultSignerAccount() *ag_solanago.AccountMeta
- func (obj InitSerumMarket) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *InitSerumMarket) SetAsksAccount(asks ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetBidsAccount(bids ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetCoinLotSize(coinLotSize uint64) *InitSerumMarket
- func (inst *InitSerumMarket) SetCoinVaultAccount(coinVault ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetDexProgramAccount(dexProgram ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetEventQueueAccount(eventQueue ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetMarketAuthorityAccount(marketAuthority ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetMarketSpace(marketSpace uint64) *InitSerumMarket
- func (inst *InitSerumMarket) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetPcDustThreshold(pcDustThreshold uint64) *InitSerumMarket
- func (inst *InitSerumMarket) SetPcLotSize(pcLotSize uint64) *InitSerumMarket
- func (inst *InitSerumMarket) SetPcMintAccount(pcMint ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetPcVaultAccount(pcVault ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetRentAccount(rent ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetRequestQueueAccount(requestQueue ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetSerumMarketAccount(serumMarket ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetVaultSignerAccount(vaultSigner ag_solanago.PublicKey) *InitSerumMarket
- func (inst *InitSerumMarket) SetVaultSignerNonce(vaultSignerNonce uint64) *InitSerumMarket
- func (obj *InitSerumMarket) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *InitSerumMarket) Validate() error
- func (inst InitSerumMarket) ValidateAndBuild() (*Instruction, error)
- type InitializeMarket
- func (inst InitializeMarket) Build() *Instruction
- func (inst *InitializeMarket) EncodeToTree(parent ag_treeout.Branches)
- func (inst *InitializeMarket) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetClockAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetFeeOwnerAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetOptionMintAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetQuoteAssetMintAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetQuoteAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetUnderlyingAssetMintAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *InitializeMarket) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
- func (obj InitializeMarket) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *InitializeMarket) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetAuthorityAccount(authority ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetBumpSeed(bumpSeed uint8) *InitializeMarket
- func (inst *InitializeMarket) SetClockAccount(clock ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetExpirationUnixTimestamp(expirationUnixTimestamp int64) *InitializeMarket
- func (inst *InitializeMarket) SetFeeOwnerAccount(feeOwner ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetQuoteAmountPerContract(quoteAmountPerContract uint64) *InitializeMarket
- func (inst *InitializeMarket) SetQuoteAssetMintAccount(quoteAssetMint ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetQuoteAssetPoolAccount(quoteAssetPool ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetRentAccount(rent ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetUnderlyingAmountPerContract(underlyingAmountPerContract uint64) *InitializeMarket
- func (inst *InitializeMarket) SetUnderlyingAssetMintAccount(underlyingAssetMint ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *InitializeMarket
- func (inst *InitializeMarket) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *InitializeMarket
- func (obj *InitializeMarket) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *InitializeMarket) Validate() error
- func (inst InitializeMarket) ValidateAndBuild() (*Instruction, error)
- type Instruction
- func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta)
- func (inst *Instruction) Data() ([]byte, error)
- func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches)
- func (inst *Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error
- func (inst *Instruction) ProgramID() ag_solanago.PublicKey
- func (inst *Instruction) TextEncode(encoder *ag_text.Encoder, option *ag_text.Option) error
- func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error
- type MintOption
- func (inst MintOption) Build() *Instruction
- func (inst *MintOption) EncodeToTree(parent ag_treeout.Branches)
- func (inst *MintOption) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetClockAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetFeeOwnerAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetMintedOptionDestAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetMintedWriterTokenDestAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetOptionMintAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetUnderlyingAssetMintAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetUnderlyingAssetSrcAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetUserAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *MintOption) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
- func (obj MintOption) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *MintOption) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetClockAccount(clock ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetFeeOwnerAccount(feeOwner ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetMintedOptionDestAccount(mintedOptionDest ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetMintedWriterTokenDestAccount(mintedWriterTokenDest ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetRentAccount(rent ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetSize(size uint64) *MintOption
- func (inst *MintOption) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetUnderlyingAssetMintAccount(underlyingAssetMint ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetUnderlyingAssetSrcAccount(underlyingAssetSrc ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *MintOption
- func (inst *MintOption) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *MintOption
- func (obj *MintOption) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *MintOption) Validate() error
- func (inst MintOption) ValidateAndBuild() (*Instruction, error)
- type MintOptionV2
- func (inst MintOptionV2) Build() *Instruction
- func (inst *MintOptionV2) EncodeToTree(parent ag_treeout.Branches)
- func (inst *MintOptionV2) GetMintedOptionDestAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetMintedWriterTokenDestAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetOptionMarketAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetOptionMintAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetUnderlyingAssetMintAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetUnderlyingAssetSrcAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetUserAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *MintOptionV2) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
- func (obj MintOptionV2) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *MintOptionV2) SetMintedOptionDestAccount(mintedOptionDest ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetMintedWriterTokenDestAccount(mintedWriterTokenDest ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetSize(size uint64) *MintOptionV2
- func (inst *MintOptionV2) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetUnderlyingAssetMintAccount(underlyingAssetMint ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetUnderlyingAssetSrcAccount(underlyingAssetSrc ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *MintOptionV2
- func (inst *MintOptionV2) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *MintOptionV2
- func (obj *MintOptionV2) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *MintOptionV2) Validate() error
- func (inst MintOptionV2) ValidateAndBuild() (*Instruction, error)
- type OptionMarket
Constants ¶
const ProgramName = "PsyAmerican"
Variables ¶
var ( Instruction_InitializeMarket = ag_binary.TypeID([8]byte{35, 35, 189, 193, 155, 48, 170, 203}) Instruction_MintOption = ag_binary.TypeID([8]byte{76, 112, 32, 89, 147, 85, 222, 43}) Instruction_MintOptionV2 = ag_binary.TypeID([8]byte{20, 245, 159, 113, 247, 53, 69, 233}) Instruction_ExerciseOption = ag_binary.TypeID([8]byte{231, 98, 131, 183, 245, 93, 122, 48}) Instruction_ClosePostExpiration = ag_binary.TypeID([8]byte{115, 203, 223, 108, 122, 150, 229, 92}) Instruction_CloseOptionPosition = ag_binary.TypeID([8]byte{225, 84, 101, 195, 235, 136, 55, 95}) Instruction_BurnWriterForQuote = ag_binary.TypeID([8]byte{217, 231, 245, 248, 97, 254, 198, 120}) Instruction_InitSerumMarket = ag_binary.TypeID([8]byte{55, 157, 44, 90, 69, 81, 148, 175}) )
var InstructionImplDef = ag_binary.NewVariantDefinition( ag_binary.AnchorTypeIDEncoding, []ag_binary.VariantType{ { "initialize_market", (*InitializeMarket)(nil), }, { "mint_option", (*MintOption)(nil), }, { "mint_option_v_2", (*MintOptionV2)(nil), }, { "exercise_option", (*ExerciseOption)(nil), }, { "close_post_expiration", (*ClosePostExpiration)(nil), }, { "close_option_position", (*CloseOptionPosition)(nil), }, { "burn_writer_for_quote", (*BurnWriterForQuote)(nil), }, { "init_serum_market", (*InitSerumMarket)(nil), }, }, )
var OptionMarketDiscriminator = [8]byte{175, 238, 162, 97, 53, 122, 16, 29}
var ProgramID ag_solanago.PublicKey = ag_solanago.MustPublicKeyFromBase58("R2y9ip6mxmWUj4pt54jP2hz2dgvMozy9VTSwMWE7evs")
Functions ¶
func InstructionIDToName ¶
InstructionIDToName returns the name of the instruction given its ID.
func SetProgramID ¶
func SetProgramID(pubkey ag_solanago.PublicKey)
Types ¶
type BurnWriterForQuote ¶
type BurnWriterForQuote struct { Size *uint64 // [0] = [SIGNER] userAuthority // // [1] = [] optionMarket // // [2] = [WRITE] writerTokenMint // // [3] = [WRITE] writerTokenSrc // // [4] = [WRITE] quoteAssetPool // // [5] = [WRITE] writerQuoteDest // // [6] = [] tokenProgram ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
BurnWriterForQuote is the `burnWriterForQuote` instruction.
func NewBurnWriterForQuoteInstruction ¶
func NewBurnWriterForQuoteInstruction( size uint64, userAuthority ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, writerTokenMint ag_solanago.PublicKey, writerTokenSrc ag_solanago.PublicKey, quoteAssetPool ag_solanago.PublicKey, writerQuoteDest ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey) *BurnWriterForQuote
NewBurnWriterForQuoteInstruction declares a new BurnWriterForQuote instruction with the provided parameters and accounts.
func NewBurnWriterForQuoteInstructionBuilder ¶
func NewBurnWriterForQuoteInstructionBuilder() *BurnWriterForQuote
NewBurnWriterForQuoteInstructionBuilder creates a new `BurnWriterForQuote` instruction builder.
func (BurnWriterForQuote) Build ¶
func (inst BurnWriterForQuote) Build() *Instruction
func (*BurnWriterForQuote) EncodeToTree ¶
func (inst *BurnWriterForQuote) EncodeToTree(parent ag_treeout.Branches)
func (*BurnWriterForQuote) GetOptionMarketAccount ¶
func (inst *BurnWriterForQuote) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*BurnWriterForQuote) GetQuoteAssetPoolAccount ¶
func (inst *BurnWriterForQuote) GetQuoteAssetPoolAccount() *ag_solanago.AccountMeta
GetQuoteAssetPoolAccount gets the "quoteAssetPool" account.
func (*BurnWriterForQuote) GetTokenProgramAccount ¶
func (inst *BurnWriterForQuote) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*BurnWriterForQuote) GetUserAuthorityAccount ¶
func (inst *BurnWriterForQuote) GetUserAuthorityAccount() *ag_solanago.AccountMeta
GetUserAuthorityAccount gets the "userAuthority" account.
func (*BurnWriterForQuote) GetWriterQuoteDestAccount ¶
func (inst *BurnWriterForQuote) GetWriterQuoteDestAccount() *ag_solanago.AccountMeta
GetWriterQuoteDestAccount gets the "writerQuoteDest" account.
func (*BurnWriterForQuote) GetWriterTokenMintAccount ¶
func (inst *BurnWriterForQuote) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
GetWriterTokenMintAccount gets the "writerTokenMint" account.
func (*BurnWriterForQuote) GetWriterTokenSrcAccount ¶
func (inst *BurnWriterForQuote) GetWriterTokenSrcAccount() *ag_solanago.AccountMeta
GetWriterTokenSrcAccount gets the "writerTokenSrc" account.
func (BurnWriterForQuote) MarshalWithEncoder ¶
func (obj BurnWriterForQuote) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*BurnWriterForQuote) SetOptionMarketAccount ¶
func (inst *BurnWriterForQuote) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *BurnWriterForQuote
SetOptionMarketAccount sets the "optionMarket" account.
func (*BurnWriterForQuote) SetQuoteAssetPoolAccount ¶
func (inst *BurnWriterForQuote) SetQuoteAssetPoolAccount(quoteAssetPool ag_solanago.PublicKey) *BurnWriterForQuote
SetQuoteAssetPoolAccount sets the "quoteAssetPool" account.
func (*BurnWriterForQuote) SetSize ¶
func (inst *BurnWriterForQuote) SetSize(size uint64) *BurnWriterForQuote
SetSize sets the "size" parameter.
func (*BurnWriterForQuote) SetTokenProgramAccount ¶
func (inst *BurnWriterForQuote) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *BurnWriterForQuote
SetTokenProgramAccount sets the "tokenProgram" account.
func (*BurnWriterForQuote) SetUserAuthorityAccount ¶
func (inst *BurnWriterForQuote) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *BurnWriterForQuote
SetUserAuthorityAccount sets the "userAuthority" account.
func (*BurnWriterForQuote) SetWriterQuoteDestAccount ¶
func (inst *BurnWriterForQuote) SetWriterQuoteDestAccount(writerQuoteDest ag_solanago.PublicKey) *BurnWriterForQuote
SetWriterQuoteDestAccount sets the "writerQuoteDest" account.
func (*BurnWriterForQuote) SetWriterTokenMintAccount ¶
func (inst *BurnWriterForQuote) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *BurnWriterForQuote
SetWriterTokenMintAccount sets the "writerTokenMint" account.
func (*BurnWriterForQuote) SetWriterTokenSrcAccount ¶
func (inst *BurnWriterForQuote) SetWriterTokenSrcAccount(writerTokenSrc ag_solanago.PublicKey) *BurnWriterForQuote
SetWriterTokenSrcAccount sets the "writerTokenSrc" account.
func (*BurnWriterForQuote) UnmarshalWithDecoder ¶
func (obj *BurnWriterForQuote) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*BurnWriterForQuote) Validate ¶
func (inst *BurnWriterForQuote) Validate() error
func (BurnWriterForQuote) ValidateAndBuild ¶
func (inst BurnWriterForQuote) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type CloseOptionPosition ¶
type CloseOptionPosition struct { Size *uint64 // [0] = [SIGNER] userAuthority // // [1] = [] optionMarket // // [2] = [WRITE] writerTokenMint // // [3] = [WRITE] writerTokenSrc // // [4] = [WRITE] optionTokenMint // // [5] = [WRITE] optionTokenSrc // // [6] = [WRITE] underlyingAssetPool // // [7] = [WRITE] underlyingAssetDest // // [8] = [] tokenProgram ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
CloseOptionPosition is the `closeOptionPosition` instruction.
func NewCloseOptionPositionInstruction ¶
func NewCloseOptionPositionInstruction( size uint64, userAuthority ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, writerTokenMint ag_solanago.PublicKey, writerTokenSrc ag_solanago.PublicKey, optionTokenMint ag_solanago.PublicKey, optionTokenSrc ag_solanago.PublicKey, underlyingAssetPool ag_solanago.PublicKey, underlyingAssetDest ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey) *CloseOptionPosition
NewCloseOptionPositionInstruction declares a new CloseOptionPosition instruction with the provided parameters and accounts.
func NewCloseOptionPositionInstructionBuilder ¶
func NewCloseOptionPositionInstructionBuilder() *CloseOptionPosition
NewCloseOptionPositionInstructionBuilder creates a new `CloseOptionPosition` instruction builder.
func (CloseOptionPosition) Build ¶
func (inst CloseOptionPosition) Build() *Instruction
func (*CloseOptionPosition) EncodeToTree ¶
func (inst *CloseOptionPosition) EncodeToTree(parent ag_treeout.Branches)
func (*CloseOptionPosition) GetOptionMarketAccount ¶
func (inst *CloseOptionPosition) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*CloseOptionPosition) GetOptionTokenMintAccount ¶
func (inst *CloseOptionPosition) GetOptionTokenMintAccount() *ag_solanago.AccountMeta
GetOptionTokenMintAccount gets the "optionTokenMint" account.
func (*CloseOptionPosition) GetOptionTokenSrcAccount ¶
func (inst *CloseOptionPosition) GetOptionTokenSrcAccount() *ag_solanago.AccountMeta
GetOptionTokenSrcAccount gets the "optionTokenSrc" account.
func (*CloseOptionPosition) GetTokenProgramAccount ¶
func (inst *CloseOptionPosition) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*CloseOptionPosition) GetUnderlyingAssetDestAccount ¶
func (inst *CloseOptionPosition) GetUnderlyingAssetDestAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetDestAccount gets the "underlyingAssetDest" account.
func (*CloseOptionPosition) GetUnderlyingAssetPoolAccount ¶
func (inst *CloseOptionPosition) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetPoolAccount gets the "underlyingAssetPool" account.
func (*CloseOptionPosition) GetUserAuthorityAccount ¶
func (inst *CloseOptionPosition) GetUserAuthorityAccount() *ag_solanago.AccountMeta
GetUserAuthorityAccount gets the "userAuthority" account.
func (*CloseOptionPosition) GetWriterTokenMintAccount ¶
func (inst *CloseOptionPosition) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
GetWriterTokenMintAccount gets the "writerTokenMint" account.
func (*CloseOptionPosition) GetWriterTokenSrcAccount ¶
func (inst *CloseOptionPosition) GetWriterTokenSrcAccount() *ag_solanago.AccountMeta
GetWriterTokenSrcAccount gets the "writerTokenSrc" account.
func (CloseOptionPosition) MarshalWithEncoder ¶
func (obj CloseOptionPosition) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*CloseOptionPosition) SetOptionMarketAccount ¶
func (inst *CloseOptionPosition) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *CloseOptionPosition
SetOptionMarketAccount sets the "optionMarket" account.
func (*CloseOptionPosition) SetOptionTokenMintAccount ¶
func (inst *CloseOptionPosition) SetOptionTokenMintAccount(optionTokenMint ag_solanago.PublicKey) *CloseOptionPosition
SetOptionTokenMintAccount sets the "optionTokenMint" account.
func (*CloseOptionPosition) SetOptionTokenSrcAccount ¶
func (inst *CloseOptionPosition) SetOptionTokenSrcAccount(optionTokenSrc ag_solanago.PublicKey) *CloseOptionPosition
SetOptionTokenSrcAccount sets the "optionTokenSrc" account.
func (*CloseOptionPosition) SetSize ¶
func (inst *CloseOptionPosition) SetSize(size uint64) *CloseOptionPosition
SetSize sets the "size" parameter.
func (*CloseOptionPosition) SetTokenProgramAccount ¶
func (inst *CloseOptionPosition) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *CloseOptionPosition
SetTokenProgramAccount sets the "tokenProgram" account.
func (*CloseOptionPosition) SetUnderlyingAssetDestAccount ¶
func (inst *CloseOptionPosition) SetUnderlyingAssetDestAccount(underlyingAssetDest ag_solanago.PublicKey) *CloseOptionPosition
SetUnderlyingAssetDestAccount sets the "underlyingAssetDest" account.
func (*CloseOptionPosition) SetUnderlyingAssetPoolAccount ¶
func (inst *CloseOptionPosition) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *CloseOptionPosition
SetUnderlyingAssetPoolAccount sets the "underlyingAssetPool" account.
func (*CloseOptionPosition) SetUserAuthorityAccount ¶
func (inst *CloseOptionPosition) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *CloseOptionPosition
SetUserAuthorityAccount sets the "userAuthority" account.
func (*CloseOptionPosition) SetWriterTokenMintAccount ¶
func (inst *CloseOptionPosition) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *CloseOptionPosition
SetWriterTokenMintAccount sets the "writerTokenMint" account.
func (*CloseOptionPosition) SetWriterTokenSrcAccount ¶
func (inst *CloseOptionPosition) SetWriterTokenSrcAccount(writerTokenSrc ag_solanago.PublicKey) *CloseOptionPosition
SetWriterTokenSrcAccount sets the "writerTokenSrc" account.
func (*CloseOptionPosition) UnmarshalWithDecoder ¶
func (obj *CloseOptionPosition) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*CloseOptionPosition) Validate ¶
func (inst *CloseOptionPosition) Validate() error
func (CloseOptionPosition) ValidateAndBuild ¶
func (inst CloseOptionPosition) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type ClosePostExpiration ¶
type ClosePostExpiration struct { Size *uint64 // [0] = [SIGNER] userAuthority // // [1] = [] optionMarket // // [2] = [WRITE] writerTokenMint // // [3] = [WRITE] writerTokenSrc // // [4] = [WRITE] underlyingAssetPool // // [5] = [WRITE] underlyingAssetDest // // [6] = [] tokenProgram // // [7] = [] clock ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
ClosePostExpiration is the `closePostExpiration` instruction.
func NewClosePostExpirationInstruction ¶
func NewClosePostExpirationInstruction( size uint64, userAuthority ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, writerTokenMint ag_solanago.PublicKey, writerTokenSrc ag_solanago.PublicKey, underlyingAssetPool ag_solanago.PublicKey, underlyingAssetDest ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, clock ag_solanago.PublicKey) *ClosePostExpiration
NewClosePostExpirationInstruction declares a new ClosePostExpiration instruction with the provided parameters and accounts.
func NewClosePostExpirationInstructionBuilder ¶
func NewClosePostExpirationInstructionBuilder() *ClosePostExpiration
NewClosePostExpirationInstructionBuilder creates a new `ClosePostExpiration` instruction builder.
func (ClosePostExpiration) Build ¶
func (inst ClosePostExpiration) Build() *Instruction
func (*ClosePostExpiration) EncodeToTree ¶
func (inst *ClosePostExpiration) EncodeToTree(parent ag_treeout.Branches)
func (*ClosePostExpiration) GetClockAccount ¶
func (inst *ClosePostExpiration) GetClockAccount() *ag_solanago.AccountMeta
GetClockAccount gets the "clock" account.
func (*ClosePostExpiration) GetOptionMarketAccount ¶
func (inst *ClosePostExpiration) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*ClosePostExpiration) GetTokenProgramAccount ¶
func (inst *ClosePostExpiration) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*ClosePostExpiration) GetUnderlyingAssetDestAccount ¶
func (inst *ClosePostExpiration) GetUnderlyingAssetDestAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetDestAccount gets the "underlyingAssetDest" account.
func (*ClosePostExpiration) GetUnderlyingAssetPoolAccount ¶
func (inst *ClosePostExpiration) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetPoolAccount gets the "underlyingAssetPool" account.
func (*ClosePostExpiration) GetUserAuthorityAccount ¶
func (inst *ClosePostExpiration) GetUserAuthorityAccount() *ag_solanago.AccountMeta
GetUserAuthorityAccount gets the "userAuthority" account.
func (*ClosePostExpiration) GetWriterTokenMintAccount ¶
func (inst *ClosePostExpiration) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
GetWriterTokenMintAccount gets the "writerTokenMint" account.
func (*ClosePostExpiration) GetWriterTokenSrcAccount ¶
func (inst *ClosePostExpiration) GetWriterTokenSrcAccount() *ag_solanago.AccountMeta
GetWriterTokenSrcAccount gets the "writerTokenSrc" account.
func (ClosePostExpiration) MarshalWithEncoder ¶
func (obj ClosePostExpiration) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*ClosePostExpiration) SetClockAccount ¶
func (inst *ClosePostExpiration) SetClockAccount(clock ag_solanago.PublicKey) *ClosePostExpiration
SetClockAccount sets the "clock" account.
func (*ClosePostExpiration) SetOptionMarketAccount ¶
func (inst *ClosePostExpiration) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *ClosePostExpiration
SetOptionMarketAccount sets the "optionMarket" account.
func (*ClosePostExpiration) SetSize ¶
func (inst *ClosePostExpiration) SetSize(size uint64) *ClosePostExpiration
SetSize sets the "size" parameter.
func (*ClosePostExpiration) SetTokenProgramAccount ¶
func (inst *ClosePostExpiration) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ClosePostExpiration
SetTokenProgramAccount sets the "tokenProgram" account.
func (*ClosePostExpiration) SetUnderlyingAssetDestAccount ¶
func (inst *ClosePostExpiration) SetUnderlyingAssetDestAccount(underlyingAssetDest ag_solanago.PublicKey) *ClosePostExpiration
SetUnderlyingAssetDestAccount sets the "underlyingAssetDest" account.
func (*ClosePostExpiration) SetUnderlyingAssetPoolAccount ¶
func (inst *ClosePostExpiration) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *ClosePostExpiration
SetUnderlyingAssetPoolAccount sets the "underlyingAssetPool" account.
func (*ClosePostExpiration) SetUserAuthorityAccount ¶
func (inst *ClosePostExpiration) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *ClosePostExpiration
SetUserAuthorityAccount sets the "userAuthority" account.
func (*ClosePostExpiration) SetWriterTokenMintAccount ¶
func (inst *ClosePostExpiration) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *ClosePostExpiration
SetWriterTokenMintAccount sets the "writerTokenMint" account.
func (*ClosePostExpiration) SetWriterTokenSrcAccount ¶
func (inst *ClosePostExpiration) SetWriterTokenSrcAccount(writerTokenSrc ag_solanago.PublicKey) *ClosePostExpiration
SetWriterTokenSrcAccount sets the "writerTokenSrc" account.
func (*ClosePostExpiration) UnmarshalWithDecoder ¶
func (obj *ClosePostExpiration) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*ClosePostExpiration) Validate ¶
func (inst *ClosePostExpiration) Validate() error
func (ClosePostExpiration) ValidateAndBuild ¶
func (inst ClosePostExpiration) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type ExerciseOption ¶
type ExerciseOption struct { Size *uint64 // [0] = [WRITE, SIGNER] userAuthority // // [1] = [WRITE, SIGNER] optionAuthority // // [2] = [] optionMarket // // [3] = [WRITE] optionMint // // [4] = [WRITE] exerciserOptionTokenSrc // // [5] = [WRITE] underlyingAssetPool // // [6] = [WRITE] underlyingAssetDest // // [7] = [WRITE] quoteAssetPool // // [8] = [WRITE] quoteAssetSrc // // [9] = [WRITE] feeOwner // // [10] = [] tokenProgram // // [11] = [] systemProgram // // [12] = [] clock ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
ExerciseOption is the `exerciseOption` instruction.
func NewExerciseOptionInstruction ¶
func NewExerciseOptionInstruction( size uint64, userAuthority ag_solanago.PublicKey, optionAuthority ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, optionMint ag_solanago.PublicKey, exerciserOptionTokenSrc ag_solanago.PublicKey, underlyingAssetPool ag_solanago.PublicKey, underlyingAssetDest ag_solanago.PublicKey, quoteAssetPool ag_solanago.PublicKey, quoteAssetSrc ag_solanago.PublicKey, feeOwner ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, clock ag_solanago.PublicKey) *ExerciseOption
NewExerciseOptionInstruction declares a new ExerciseOption instruction with the provided parameters and accounts.
func NewExerciseOptionInstructionBuilder ¶
func NewExerciseOptionInstructionBuilder() *ExerciseOption
NewExerciseOptionInstructionBuilder creates a new `ExerciseOption` instruction builder.
func (ExerciseOption) Build ¶
func (inst ExerciseOption) Build() *Instruction
func (*ExerciseOption) EncodeToTree ¶
func (inst *ExerciseOption) EncodeToTree(parent ag_treeout.Branches)
func (*ExerciseOption) GetClockAccount ¶
func (inst *ExerciseOption) GetClockAccount() *ag_solanago.AccountMeta
GetClockAccount gets the "clock" account.
func (*ExerciseOption) GetExerciserOptionTokenSrcAccount ¶
func (inst *ExerciseOption) GetExerciserOptionTokenSrcAccount() *ag_solanago.AccountMeta
GetExerciserOptionTokenSrcAccount gets the "exerciserOptionTokenSrc" account.
func (*ExerciseOption) GetFeeOwnerAccount ¶
func (inst *ExerciseOption) GetFeeOwnerAccount() *ag_solanago.AccountMeta
GetFeeOwnerAccount gets the "feeOwner" account.
func (*ExerciseOption) GetOptionAuthorityAccount ¶
func (inst *ExerciseOption) GetOptionAuthorityAccount() *ag_solanago.AccountMeta
GetOptionAuthorityAccount gets the "optionAuthority" account.
func (*ExerciseOption) GetOptionMarketAccount ¶
func (inst *ExerciseOption) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*ExerciseOption) GetOptionMintAccount ¶
func (inst *ExerciseOption) GetOptionMintAccount() *ag_solanago.AccountMeta
GetOptionMintAccount gets the "optionMint" account.
func (*ExerciseOption) GetQuoteAssetPoolAccount ¶
func (inst *ExerciseOption) GetQuoteAssetPoolAccount() *ag_solanago.AccountMeta
GetQuoteAssetPoolAccount gets the "quoteAssetPool" account.
func (*ExerciseOption) GetQuoteAssetSrcAccount ¶
func (inst *ExerciseOption) GetQuoteAssetSrcAccount() *ag_solanago.AccountMeta
GetQuoteAssetSrcAccount gets the "quoteAssetSrc" account.
func (*ExerciseOption) GetSystemProgramAccount ¶
func (inst *ExerciseOption) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*ExerciseOption) GetTokenProgramAccount ¶
func (inst *ExerciseOption) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*ExerciseOption) GetUnderlyingAssetDestAccount ¶
func (inst *ExerciseOption) GetUnderlyingAssetDestAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetDestAccount gets the "underlyingAssetDest" account.
func (*ExerciseOption) GetUnderlyingAssetPoolAccount ¶
func (inst *ExerciseOption) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetPoolAccount gets the "underlyingAssetPool" account.
func (*ExerciseOption) GetUserAuthorityAccount ¶
func (inst *ExerciseOption) GetUserAuthorityAccount() *ag_solanago.AccountMeta
GetUserAuthorityAccount gets the "userAuthority" account.
func (ExerciseOption) MarshalWithEncoder ¶
func (obj ExerciseOption) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*ExerciseOption) SetClockAccount ¶
func (inst *ExerciseOption) SetClockAccount(clock ag_solanago.PublicKey) *ExerciseOption
SetClockAccount sets the "clock" account.
func (*ExerciseOption) SetExerciserOptionTokenSrcAccount ¶
func (inst *ExerciseOption) SetExerciserOptionTokenSrcAccount(exerciserOptionTokenSrc ag_solanago.PublicKey) *ExerciseOption
SetExerciserOptionTokenSrcAccount sets the "exerciserOptionTokenSrc" account.
func (*ExerciseOption) SetFeeOwnerAccount ¶
func (inst *ExerciseOption) SetFeeOwnerAccount(feeOwner ag_solanago.PublicKey) *ExerciseOption
SetFeeOwnerAccount sets the "feeOwner" account.
func (*ExerciseOption) SetOptionAuthorityAccount ¶
func (inst *ExerciseOption) SetOptionAuthorityAccount(optionAuthority ag_solanago.PublicKey) *ExerciseOption
SetOptionAuthorityAccount sets the "optionAuthority" account.
func (*ExerciseOption) SetOptionMarketAccount ¶
func (inst *ExerciseOption) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *ExerciseOption
SetOptionMarketAccount sets the "optionMarket" account.
func (*ExerciseOption) SetOptionMintAccount ¶
func (inst *ExerciseOption) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *ExerciseOption
SetOptionMintAccount sets the "optionMint" account.
func (*ExerciseOption) SetQuoteAssetPoolAccount ¶
func (inst *ExerciseOption) SetQuoteAssetPoolAccount(quoteAssetPool ag_solanago.PublicKey) *ExerciseOption
SetQuoteAssetPoolAccount sets the "quoteAssetPool" account.
func (*ExerciseOption) SetQuoteAssetSrcAccount ¶
func (inst *ExerciseOption) SetQuoteAssetSrcAccount(quoteAssetSrc ag_solanago.PublicKey) *ExerciseOption
SetQuoteAssetSrcAccount sets the "quoteAssetSrc" account.
func (*ExerciseOption) SetSize ¶
func (inst *ExerciseOption) SetSize(size uint64) *ExerciseOption
SetSize sets the "size" parameter.
func (*ExerciseOption) SetSystemProgramAccount ¶
func (inst *ExerciseOption) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ExerciseOption
SetSystemProgramAccount sets the "systemProgram" account.
func (*ExerciseOption) SetTokenProgramAccount ¶
func (inst *ExerciseOption) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ExerciseOption
SetTokenProgramAccount sets the "tokenProgram" account.
func (*ExerciseOption) SetUnderlyingAssetDestAccount ¶
func (inst *ExerciseOption) SetUnderlyingAssetDestAccount(underlyingAssetDest ag_solanago.PublicKey) *ExerciseOption
SetUnderlyingAssetDestAccount sets the "underlyingAssetDest" account.
func (*ExerciseOption) SetUnderlyingAssetPoolAccount ¶
func (inst *ExerciseOption) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *ExerciseOption
SetUnderlyingAssetPoolAccount sets the "underlyingAssetPool" account.
func (*ExerciseOption) SetUserAuthorityAccount ¶
func (inst *ExerciseOption) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *ExerciseOption
SetUserAuthorityAccount sets the "userAuthority" account.
func (*ExerciseOption) UnmarshalWithDecoder ¶
func (obj *ExerciseOption) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*ExerciseOption) Validate ¶
func (inst *ExerciseOption) Validate() error
func (ExerciseOption) ValidateAndBuild ¶
func (inst ExerciseOption) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type InitSerumMarket ¶
type InitSerumMarket struct { MarketSpace *uint64 VaultSignerNonce *uint64 CoinLotSize *uint64 PcLotSize *uint64 PcDustThreshold *uint64 // [0] = [WRITE, SIGNER] userAuthority // // [1] = [WRITE] optionMarket // // [2] = [WRITE] serumMarket // // [3] = [] systemProgram // // [4] = [] tokenProgram // // [5] = [] dexProgram // // [6] = [] rent // // [7] = [] pcMint // // [8] = [] optionMint // // [9] = [WRITE] requestQueue // // [10] = [WRITE] eventQueue // // [11] = [WRITE] bids // // [12] = [WRITE] asks // // [13] = [WRITE] coinVault // // [14] = [WRITE] pcVault // // [15] = [] vaultSigner // // [16] = [] marketAuthority ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
InitSerumMarket is the `initSerumMarket` instruction.
func NewInitSerumMarketInstruction ¶
func NewInitSerumMarketInstruction( marketSpace uint64, vaultSignerNonce uint64, coinLotSize uint64, pcLotSize uint64, pcDustThreshold uint64, userAuthority ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, serumMarket ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, dexProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey, pcMint ag_solanago.PublicKey, optionMint ag_solanago.PublicKey, requestQueue ag_solanago.PublicKey, eventQueue ag_solanago.PublicKey, bids ag_solanago.PublicKey, asks ag_solanago.PublicKey, coinVault ag_solanago.PublicKey, pcVault ag_solanago.PublicKey, vaultSigner ag_solanago.PublicKey, marketAuthority ag_solanago.PublicKey) *InitSerumMarket
NewInitSerumMarketInstruction declares a new InitSerumMarket instruction with the provided parameters and accounts.
func NewInitSerumMarketInstructionBuilder ¶
func NewInitSerumMarketInstructionBuilder() *InitSerumMarket
NewInitSerumMarketInstructionBuilder creates a new `InitSerumMarket` instruction builder.
func (InitSerumMarket) Build ¶
func (inst InitSerumMarket) Build() *Instruction
func (*InitSerumMarket) EncodeToTree ¶
func (inst *InitSerumMarket) EncodeToTree(parent ag_treeout.Branches)
func (*InitSerumMarket) GetAsksAccount ¶
func (inst *InitSerumMarket) GetAsksAccount() *ag_solanago.AccountMeta
GetAsksAccount gets the "asks" account.
func (*InitSerumMarket) GetBidsAccount ¶
func (inst *InitSerumMarket) GetBidsAccount() *ag_solanago.AccountMeta
GetBidsAccount gets the "bids" account.
func (*InitSerumMarket) GetCoinVaultAccount ¶
func (inst *InitSerumMarket) GetCoinVaultAccount() *ag_solanago.AccountMeta
GetCoinVaultAccount gets the "coinVault" account.
func (*InitSerumMarket) GetDexProgramAccount ¶
func (inst *InitSerumMarket) GetDexProgramAccount() *ag_solanago.AccountMeta
GetDexProgramAccount gets the "dexProgram" account.
func (*InitSerumMarket) GetEventQueueAccount ¶
func (inst *InitSerumMarket) GetEventQueueAccount() *ag_solanago.AccountMeta
GetEventQueueAccount gets the "eventQueue" account.
func (*InitSerumMarket) GetMarketAuthorityAccount ¶
func (inst *InitSerumMarket) GetMarketAuthorityAccount() *ag_solanago.AccountMeta
GetMarketAuthorityAccount gets the "marketAuthority" account.
func (*InitSerumMarket) GetOptionMarketAccount ¶
func (inst *InitSerumMarket) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*InitSerumMarket) GetOptionMintAccount ¶
func (inst *InitSerumMarket) GetOptionMintAccount() *ag_solanago.AccountMeta
GetOptionMintAccount gets the "optionMint" account.
func (*InitSerumMarket) GetPcMintAccount ¶
func (inst *InitSerumMarket) GetPcMintAccount() *ag_solanago.AccountMeta
GetPcMintAccount gets the "pcMint" account.
func (*InitSerumMarket) GetPcVaultAccount ¶
func (inst *InitSerumMarket) GetPcVaultAccount() *ag_solanago.AccountMeta
GetPcVaultAccount gets the "pcVault" account.
func (*InitSerumMarket) GetRentAccount ¶
func (inst *InitSerumMarket) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*InitSerumMarket) GetRequestQueueAccount ¶
func (inst *InitSerumMarket) GetRequestQueueAccount() *ag_solanago.AccountMeta
GetRequestQueueAccount gets the "requestQueue" account.
func (*InitSerumMarket) GetSerumMarketAccount ¶
func (inst *InitSerumMarket) GetSerumMarketAccount() *ag_solanago.AccountMeta
GetSerumMarketAccount gets the "serumMarket" account.
func (*InitSerumMarket) GetSystemProgramAccount ¶
func (inst *InitSerumMarket) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*InitSerumMarket) GetTokenProgramAccount ¶
func (inst *InitSerumMarket) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*InitSerumMarket) GetUserAuthorityAccount ¶
func (inst *InitSerumMarket) GetUserAuthorityAccount() *ag_solanago.AccountMeta
GetUserAuthorityAccount gets the "userAuthority" account.
func (*InitSerumMarket) GetVaultSignerAccount ¶
func (inst *InitSerumMarket) GetVaultSignerAccount() *ag_solanago.AccountMeta
GetVaultSignerAccount gets the "vaultSigner" account.
func (InitSerumMarket) MarshalWithEncoder ¶
func (obj InitSerumMarket) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*InitSerumMarket) SetAsksAccount ¶
func (inst *InitSerumMarket) SetAsksAccount(asks ag_solanago.PublicKey) *InitSerumMarket
SetAsksAccount sets the "asks" account.
func (*InitSerumMarket) SetBidsAccount ¶
func (inst *InitSerumMarket) SetBidsAccount(bids ag_solanago.PublicKey) *InitSerumMarket
SetBidsAccount sets the "bids" account.
func (*InitSerumMarket) SetCoinLotSize ¶
func (inst *InitSerumMarket) SetCoinLotSize(coinLotSize uint64) *InitSerumMarket
SetCoinLotSize sets the "coinLotSize" parameter.
func (*InitSerumMarket) SetCoinVaultAccount ¶
func (inst *InitSerumMarket) SetCoinVaultAccount(coinVault ag_solanago.PublicKey) *InitSerumMarket
SetCoinVaultAccount sets the "coinVault" account.
func (*InitSerumMarket) SetDexProgramAccount ¶
func (inst *InitSerumMarket) SetDexProgramAccount(dexProgram ag_solanago.PublicKey) *InitSerumMarket
SetDexProgramAccount sets the "dexProgram" account.
func (*InitSerumMarket) SetEventQueueAccount ¶
func (inst *InitSerumMarket) SetEventQueueAccount(eventQueue ag_solanago.PublicKey) *InitSerumMarket
SetEventQueueAccount sets the "eventQueue" account.
func (*InitSerumMarket) SetMarketAuthorityAccount ¶
func (inst *InitSerumMarket) SetMarketAuthorityAccount(marketAuthority ag_solanago.PublicKey) *InitSerumMarket
SetMarketAuthorityAccount sets the "marketAuthority" account.
func (*InitSerumMarket) SetMarketSpace ¶
func (inst *InitSerumMarket) SetMarketSpace(marketSpace uint64) *InitSerumMarket
SetMarketSpace sets the "marketSpace" parameter.
func (*InitSerumMarket) SetOptionMarketAccount ¶
func (inst *InitSerumMarket) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *InitSerumMarket
SetOptionMarketAccount sets the "optionMarket" account.
func (*InitSerumMarket) SetOptionMintAccount ¶
func (inst *InitSerumMarket) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *InitSerumMarket
SetOptionMintAccount sets the "optionMint" account.
func (*InitSerumMarket) SetPcDustThreshold ¶
func (inst *InitSerumMarket) SetPcDustThreshold(pcDustThreshold uint64) *InitSerumMarket
SetPcDustThreshold sets the "pcDustThreshold" parameter.
func (*InitSerumMarket) SetPcLotSize ¶
func (inst *InitSerumMarket) SetPcLotSize(pcLotSize uint64) *InitSerumMarket
SetPcLotSize sets the "pcLotSize" parameter.
func (*InitSerumMarket) SetPcMintAccount ¶
func (inst *InitSerumMarket) SetPcMintAccount(pcMint ag_solanago.PublicKey) *InitSerumMarket
SetPcMintAccount sets the "pcMint" account.
func (*InitSerumMarket) SetPcVaultAccount ¶
func (inst *InitSerumMarket) SetPcVaultAccount(pcVault ag_solanago.PublicKey) *InitSerumMarket
SetPcVaultAccount sets the "pcVault" account.
func (*InitSerumMarket) SetRentAccount ¶
func (inst *InitSerumMarket) SetRentAccount(rent ag_solanago.PublicKey) *InitSerumMarket
SetRentAccount sets the "rent" account.
func (*InitSerumMarket) SetRequestQueueAccount ¶
func (inst *InitSerumMarket) SetRequestQueueAccount(requestQueue ag_solanago.PublicKey) *InitSerumMarket
SetRequestQueueAccount sets the "requestQueue" account.
func (*InitSerumMarket) SetSerumMarketAccount ¶
func (inst *InitSerumMarket) SetSerumMarketAccount(serumMarket ag_solanago.PublicKey) *InitSerumMarket
SetSerumMarketAccount sets the "serumMarket" account.
func (*InitSerumMarket) SetSystemProgramAccount ¶
func (inst *InitSerumMarket) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *InitSerumMarket
SetSystemProgramAccount sets the "systemProgram" account.
func (*InitSerumMarket) SetTokenProgramAccount ¶
func (inst *InitSerumMarket) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *InitSerumMarket
SetTokenProgramAccount sets the "tokenProgram" account.
func (*InitSerumMarket) SetUserAuthorityAccount ¶
func (inst *InitSerumMarket) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *InitSerumMarket
SetUserAuthorityAccount sets the "userAuthority" account.
func (*InitSerumMarket) SetVaultSignerAccount ¶
func (inst *InitSerumMarket) SetVaultSignerAccount(vaultSigner ag_solanago.PublicKey) *InitSerumMarket
SetVaultSignerAccount sets the "vaultSigner" account.
func (*InitSerumMarket) SetVaultSignerNonce ¶
func (inst *InitSerumMarket) SetVaultSignerNonce(vaultSignerNonce uint64) *InitSerumMarket
SetVaultSignerNonce sets the "vaultSignerNonce" parameter.
func (*InitSerumMarket) UnmarshalWithDecoder ¶
func (obj *InitSerumMarket) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*InitSerumMarket) Validate ¶
func (inst *InitSerumMarket) Validate() error
func (InitSerumMarket) ValidateAndBuild ¶
func (inst InitSerumMarket) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type InitializeMarket ¶
type InitializeMarket struct { UnderlyingAmountPerContract *uint64 QuoteAmountPerContract *uint64 ExpirationUnixTimestamp *int64 BumpSeed *uint8 // [0] = [WRITE, SIGNER] authority // // [1] = [] underlyingAssetMint // // [2] = [] quoteAssetMint // // [3] = [WRITE] optionMint // // [4] = [WRITE] writerTokenMint // // [5] = [WRITE] quoteAssetPool // // [6] = [WRITE] underlyingAssetPool // // [7] = [WRITE] optionMarket // // [8] = [] feeOwner // // [9] = [] tokenProgram // // [10] = [] associatedTokenProgram // // [11] = [] rent // // [12] = [] systemProgram // // [13] = [] clock ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
InitializeMarket is the `initializeMarket` instruction.
func NewInitializeMarketInstruction ¶
func NewInitializeMarketInstruction( underlyingAmountPerContract uint64, quoteAmountPerContract uint64, expirationUnixTimestamp int64, bumpSeed uint8, authority ag_solanago.PublicKey, underlyingAssetMint ag_solanago.PublicKey, quoteAssetMint ag_solanago.PublicKey, optionMint ag_solanago.PublicKey, writerTokenMint ag_solanago.PublicKey, quoteAssetPool ag_solanago.PublicKey, underlyingAssetPool ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, feeOwner ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, associatedTokenProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, clock ag_solanago.PublicKey) *InitializeMarket
NewInitializeMarketInstruction declares a new InitializeMarket instruction with the provided parameters and accounts.
func NewInitializeMarketInstructionBuilder ¶
func NewInitializeMarketInstructionBuilder() *InitializeMarket
NewInitializeMarketInstructionBuilder creates a new `InitializeMarket` instruction builder.
func (InitializeMarket) Build ¶
func (inst InitializeMarket) Build() *Instruction
func (*InitializeMarket) EncodeToTree ¶
func (inst *InitializeMarket) EncodeToTree(parent ag_treeout.Branches)
func (*InitializeMarket) GetAssociatedTokenProgramAccount ¶
func (inst *InitializeMarket) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.
func (*InitializeMarket) GetAuthorityAccount ¶
func (inst *InitializeMarket) GetAuthorityAccount() *ag_solanago.AccountMeta
GetAuthorityAccount gets the "authority" account.
func (*InitializeMarket) GetClockAccount ¶
func (inst *InitializeMarket) GetClockAccount() *ag_solanago.AccountMeta
GetClockAccount gets the "clock" account.
func (*InitializeMarket) GetFeeOwnerAccount ¶
func (inst *InitializeMarket) GetFeeOwnerAccount() *ag_solanago.AccountMeta
GetFeeOwnerAccount gets the "feeOwner" account.
func (*InitializeMarket) GetOptionMarketAccount ¶
func (inst *InitializeMarket) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*InitializeMarket) GetOptionMintAccount ¶
func (inst *InitializeMarket) GetOptionMintAccount() *ag_solanago.AccountMeta
GetOptionMintAccount gets the "optionMint" account.
func (*InitializeMarket) GetQuoteAssetMintAccount ¶
func (inst *InitializeMarket) GetQuoteAssetMintAccount() *ag_solanago.AccountMeta
GetQuoteAssetMintAccount gets the "quoteAssetMint" account.
func (*InitializeMarket) GetQuoteAssetPoolAccount ¶
func (inst *InitializeMarket) GetQuoteAssetPoolAccount() *ag_solanago.AccountMeta
GetQuoteAssetPoolAccount gets the "quoteAssetPool" account.
func (*InitializeMarket) GetRentAccount ¶
func (inst *InitializeMarket) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*InitializeMarket) GetSystemProgramAccount ¶
func (inst *InitializeMarket) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*InitializeMarket) GetTokenProgramAccount ¶
func (inst *InitializeMarket) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*InitializeMarket) GetUnderlyingAssetMintAccount ¶
func (inst *InitializeMarket) GetUnderlyingAssetMintAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetMintAccount gets the "underlyingAssetMint" account.
func (*InitializeMarket) GetUnderlyingAssetPoolAccount ¶
func (inst *InitializeMarket) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetPoolAccount gets the "underlyingAssetPool" account.
func (*InitializeMarket) GetWriterTokenMintAccount ¶
func (inst *InitializeMarket) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
GetWriterTokenMintAccount gets the "writerTokenMint" account.
func (InitializeMarket) MarshalWithEncoder ¶
func (obj InitializeMarket) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*InitializeMarket) SetAssociatedTokenProgramAccount ¶
func (inst *InitializeMarket) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *InitializeMarket
SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.
func (*InitializeMarket) SetAuthorityAccount ¶
func (inst *InitializeMarket) SetAuthorityAccount(authority ag_solanago.PublicKey) *InitializeMarket
SetAuthorityAccount sets the "authority" account.
func (*InitializeMarket) SetBumpSeed ¶
func (inst *InitializeMarket) SetBumpSeed(bumpSeed uint8) *InitializeMarket
SetBumpSeed sets the "bumpSeed" parameter.
func (*InitializeMarket) SetClockAccount ¶
func (inst *InitializeMarket) SetClockAccount(clock ag_solanago.PublicKey) *InitializeMarket
SetClockAccount sets the "clock" account.
func (*InitializeMarket) SetExpirationUnixTimestamp ¶
func (inst *InitializeMarket) SetExpirationUnixTimestamp(expirationUnixTimestamp int64) *InitializeMarket
SetExpirationUnixTimestamp sets the "expirationUnixTimestamp" parameter.
func (*InitializeMarket) SetFeeOwnerAccount ¶
func (inst *InitializeMarket) SetFeeOwnerAccount(feeOwner ag_solanago.PublicKey) *InitializeMarket
SetFeeOwnerAccount sets the "feeOwner" account.
func (*InitializeMarket) SetOptionMarketAccount ¶
func (inst *InitializeMarket) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *InitializeMarket
SetOptionMarketAccount sets the "optionMarket" account.
func (*InitializeMarket) SetOptionMintAccount ¶
func (inst *InitializeMarket) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *InitializeMarket
SetOptionMintAccount sets the "optionMint" account.
func (*InitializeMarket) SetQuoteAmountPerContract ¶
func (inst *InitializeMarket) SetQuoteAmountPerContract(quoteAmountPerContract uint64) *InitializeMarket
SetQuoteAmountPerContract sets the "quoteAmountPerContract" parameter.
func (*InitializeMarket) SetQuoteAssetMintAccount ¶
func (inst *InitializeMarket) SetQuoteAssetMintAccount(quoteAssetMint ag_solanago.PublicKey) *InitializeMarket
SetQuoteAssetMintAccount sets the "quoteAssetMint" account.
func (*InitializeMarket) SetQuoteAssetPoolAccount ¶
func (inst *InitializeMarket) SetQuoteAssetPoolAccount(quoteAssetPool ag_solanago.PublicKey) *InitializeMarket
SetQuoteAssetPoolAccount sets the "quoteAssetPool" account.
func (*InitializeMarket) SetRentAccount ¶
func (inst *InitializeMarket) SetRentAccount(rent ag_solanago.PublicKey) *InitializeMarket
SetRentAccount sets the "rent" account.
func (*InitializeMarket) SetSystemProgramAccount ¶
func (inst *InitializeMarket) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *InitializeMarket
SetSystemProgramAccount sets the "systemProgram" account.
func (*InitializeMarket) SetTokenProgramAccount ¶
func (inst *InitializeMarket) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *InitializeMarket
SetTokenProgramAccount sets the "tokenProgram" account.
func (*InitializeMarket) SetUnderlyingAmountPerContract ¶
func (inst *InitializeMarket) SetUnderlyingAmountPerContract(underlyingAmountPerContract uint64) *InitializeMarket
SetUnderlyingAmountPerContract sets the "underlyingAmountPerContract" parameter.
func (*InitializeMarket) SetUnderlyingAssetMintAccount ¶
func (inst *InitializeMarket) SetUnderlyingAssetMintAccount(underlyingAssetMint ag_solanago.PublicKey) *InitializeMarket
SetUnderlyingAssetMintAccount sets the "underlyingAssetMint" account.
func (*InitializeMarket) SetUnderlyingAssetPoolAccount ¶
func (inst *InitializeMarket) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *InitializeMarket
SetUnderlyingAssetPoolAccount sets the "underlyingAssetPool" account.
func (*InitializeMarket) SetWriterTokenMintAccount ¶
func (inst *InitializeMarket) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *InitializeMarket
SetWriterTokenMintAccount sets the "writerTokenMint" account.
func (*InitializeMarket) UnmarshalWithDecoder ¶
func (obj *InitializeMarket) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*InitializeMarket) Validate ¶
func (inst *InitializeMarket) Validate() error
func (InitializeMarket) ValidateAndBuild ¶
func (inst InitializeMarket) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type Instruction ¶
type Instruction struct {
ag_binary.BaseVariant
}
func DecodeInstruction ¶
func DecodeInstruction(accounts []*ag_solanago.AccountMeta, data []byte) (*Instruction, error)
func (*Instruction) Accounts ¶
func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta)
func (*Instruction) Data ¶
func (inst *Instruction) Data() ([]byte, error)
func (*Instruction) EncodeToTree ¶
func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches)
func (*Instruction) MarshalWithEncoder ¶
func (inst *Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error
func (*Instruction) ProgramID ¶
func (inst *Instruction) ProgramID() ag_solanago.PublicKey
func (*Instruction) TextEncode ¶
func (*Instruction) UnmarshalWithDecoder ¶
func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error
type MintOption ¶
type MintOption struct { Size *uint64 // [0] = [WRITE, SIGNER] userAuthority // // [1] = [] underlyingAssetMint // // [2] = [WRITE] underlyingAssetPool // // [3] = [WRITE] underlyingAssetSrc // // [4] = [WRITE] optionMint // // [5] = [WRITE] mintedOptionDest // // [6] = [WRITE] writerTokenMint // // [7] = [WRITE] mintedWriterTokenDest // // [8] = [] optionMarket // // [9] = [WRITE] feeOwner // // [10] = [] tokenProgram // // [11] = [] associatedTokenProgram // // [12] = [] clock // // [13] = [] rent // // [14] = [] systemProgram ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
MintOption is the `mintOption` instruction.
func NewMintOptionInstruction ¶
func NewMintOptionInstruction( size uint64, userAuthority ag_solanago.PublicKey, underlyingAssetMint ag_solanago.PublicKey, underlyingAssetPool ag_solanago.PublicKey, underlyingAssetSrc ag_solanago.PublicKey, optionMint ag_solanago.PublicKey, mintedOptionDest ag_solanago.PublicKey, writerTokenMint ag_solanago.PublicKey, mintedWriterTokenDest ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, feeOwner ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, associatedTokenProgram ag_solanago.PublicKey, clock ag_solanago.PublicKey, rent ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey) *MintOption
NewMintOptionInstruction declares a new MintOption instruction with the provided parameters and accounts.
func NewMintOptionInstructionBuilder ¶
func NewMintOptionInstructionBuilder() *MintOption
NewMintOptionInstructionBuilder creates a new `MintOption` instruction builder.
func (MintOption) Build ¶
func (inst MintOption) Build() *Instruction
func (*MintOption) EncodeToTree ¶
func (inst *MintOption) EncodeToTree(parent ag_treeout.Branches)
func (*MintOption) GetAssociatedTokenProgramAccount ¶
func (inst *MintOption) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.
func (*MintOption) GetClockAccount ¶
func (inst *MintOption) GetClockAccount() *ag_solanago.AccountMeta
GetClockAccount gets the "clock" account.
func (*MintOption) GetFeeOwnerAccount ¶
func (inst *MintOption) GetFeeOwnerAccount() *ag_solanago.AccountMeta
GetFeeOwnerAccount gets the "feeOwner" account.
func (*MintOption) GetMintedOptionDestAccount ¶
func (inst *MintOption) GetMintedOptionDestAccount() *ag_solanago.AccountMeta
GetMintedOptionDestAccount gets the "mintedOptionDest" account.
func (*MintOption) GetMintedWriterTokenDestAccount ¶
func (inst *MintOption) GetMintedWriterTokenDestAccount() *ag_solanago.AccountMeta
GetMintedWriterTokenDestAccount gets the "mintedWriterTokenDest" account.
func (*MintOption) GetOptionMarketAccount ¶
func (inst *MintOption) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*MintOption) GetOptionMintAccount ¶
func (inst *MintOption) GetOptionMintAccount() *ag_solanago.AccountMeta
GetOptionMintAccount gets the "optionMint" account.
func (*MintOption) GetRentAccount ¶
func (inst *MintOption) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*MintOption) GetSystemProgramAccount ¶
func (inst *MintOption) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*MintOption) GetTokenProgramAccount ¶
func (inst *MintOption) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*MintOption) GetUnderlyingAssetMintAccount ¶
func (inst *MintOption) GetUnderlyingAssetMintAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetMintAccount gets the "underlyingAssetMint" account.
func (*MintOption) GetUnderlyingAssetPoolAccount ¶
func (inst *MintOption) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetPoolAccount gets the "underlyingAssetPool" account.
func (*MintOption) GetUnderlyingAssetSrcAccount ¶
func (inst *MintOption) GetUnderlyingAssetSrcAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetSrcAccount gets the "underlyingAssetSrc" account.
func (*MintOption) GetUserAuthorityAccount ¶
func (inst *MintOption) GetUserAuthorityAccount() *ag_solanago.AccountMeta
GetUserAuthorityAccount gets the "userAuthority" account.
func (*MintOption) GetWriterTokenMintAccount ¶
func (inst *MintOption) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
GetWriterTokenMintAccount gets the "writerTokenMint" account.
func (MintOption) MarshalWithEncoder ¶
func (obj MintOption) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*MintOption) SetAssociatedTokenProgramAccount ¶
func (inst *MintOption) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *MintOption
SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.
func (*MintOption) SetClockAccount ¶
func (inst *MintOption) SetClockAccount(clock ag_solanago.PublicKey) *MintOption
SetClockAccount sets the "clock" account.
func (*MintOption) SetFeeOwnerAccount ¶
func (inst *MintOption) SetFeeOwnerAccount(feeOwner ag_solanago.PublicKey) *MintOption
SetFeeOwnerAccount sets the "feeOwner" account.
func (*MintOption) SetMintedOptionDestAccount ¶
func (inst *MintOption) SetMintedOptionDestAccount(mintedOptionDest ag_solanago.PublicKey) *MintOption
SetMintedOptionDestAccount sets the "mintedOptionDest" account.
func (*MintOption) SetMintedWriterTokenDestAccount ¶
func (inst *MintOption) SetMintedWriterTokenDestAccount(mintedWriterTokenDest ag_solanago.PublicKey) *MintOption
SetMintedWriterTokenDestAccount sets the "mintedWriterTokenDest" account.
func (*MintOption) SetOptionMarketAccount ¶
func (inst *MintOption) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *MintOption
SetOptionMarketAccount sets the "optionMarket" account.
func (*MintOption) SetOptionMintAccount ¶
func (inst *MintOption) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *MintOption
SetOptionMintAccount sets the "optionMint" account.
func (*MintOption) SetRentAccount ¶
func (inst *MintOption) SetRentAccount(rent ag_solanago.PublicKey) *MintOption
SetRentAccount sets the "rent" account.
func (*MintOption) SetSize ¶
func (inst *MintOption) SetSize(size uint64) *MintOption
SetSize sets the "size" parameter.
func (*MintOption) SetSystemProgramAccount ¶
func (inst *MintOption) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *MintOption
SetSystemProgramAccount sets the "systemProgram" account.
func (*MintOption) SetTokenProgramAccount ¶
func (inst *MintOption) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *MintOption
SetTokenProgramAccount sets the "tokenProgram" account.
func (*MintOption) SetUnderlyingAssetMintAccount ¶
func (inst *MintOption) SetUnderlyingAssetMintAccount(underlyingAssetMint ag_solanago.PublicKey) *MintOption
SetUnderlyingAssetMintAccount sets the "underlyingAssetMint" account.
func (*MintOption) SetUnderlyingAssetPoolAccount ¶
func (inst *MintOption) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *MintOption
SetUnderlyingAssetPoolAccount sets the "underlyingAssetPool" account.
func (*MintOption) SetUnderlyingAssetSrcAccount ¶
func (inst *MintOption) SetUnderlyingAssetSrcAccount(underlyingAssetSrc ag_solanago.PublicKey) *MintOption
SetUnderlyingAssetSrcAccount sets the "underlyingAssetSrc" account.
func (*MintOption) SetUserAuthorityAccount ¶
func (inst *MintOption) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *MintOption
SetUserAuthorityAccount sets the "userAuthority" account.
func (*MintOption) SetWriterTokenMintAccount ¶
func (inst *MintOption) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *MintOption
SetWriterTokenMintAccount sets the "writerTokenMint" account.
func (*MintOption) UnmarshalWithDecoder ¶
func (obj *MintOption) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*MintOption) Validate ¶
func (inst *MintOption) Validate() error
func (MintOption) ValidateAndBuild ¶
func (inst MintOption) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type MintOptionV2 ¶
type MintOptionV2 struct { Size *uint64 // [0] = [WRITE, SIGNER] userAuthority // // [1] = [] underlyingAssetMint // // [2] = [WRITE] underlyingAssetPool // // [3] = [WRITE] underlyingAssetSrc // // [4] = [WRITE] optionMint // // [5] = [WRITE] mintedOptionDest // // [6] = [WRITE] writerTokenMint // // [7] = [WRITE] mintedWriterTokenDest // // [8] = [] optionMarket // // [9] = [] tokenProgram ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
MintOptionV2 is the `mintOptionV2` instruction.
func NewMintOptionV2Instruction ¶
func NewMintOptionV2Instruction( size uint64, userAuthority ag_solanago.PublicKey, underlyingAssetMint ag_solanago.PublicKey, underlyingAssetPool ag_solanago.PublicKey, underlyingAssetSrc ag_solanago.PublicKey, optionMint ag_solanago.PublicKey, mintedOptionDest ag_solanago.PublicKey, writerTokenMint ag_solanago.PublicKey, mintedWriterTokenDest ag_solanago.PublicKey, optionMarket ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey) *MintOptionV2
NewMintOptionV2Instruction declares a new MintOptionV2 instruction with the provided parameters and accounts.
func NewMintOptionV2InstructionBuilder ¶
func NewMintOptionV2InstructionBuilder() *MintOptionV2
NewMintOptionV2InstructionBuilder creates a new `MintOptionV2` instruction builder.
func (MintOptionV2) Build ¶
func (inst MintOptionV2) Build() *Instruction
func (*MintOptionV2) EncodeToTree ¶
func (inst *MintOptionV2) EncodeToTree(parent ag_treeout.Branches)
func (*MintOptionV2) GetMintedOptionDestAccount ¶
func (inst *MintOptionV2) GetMintedOptionDestAccount() *ag_solanago.AccountMeta
GetMintedOptionDestAccount gets the "mintedOptionDest" account.
func (*MintOptionV2) GetMintedWriterTokenDestAccount ¶
func (inst *MintOptionV2) GetMintedWriterTokenDestAccount() *ag_solanago.AccountMeta
GetMintedWriterTokenDestAccount gets the "mintedWriterTokenDest" account.
func (*MintOptionV2) GetOptionMarketAccount ¶
func (inst *MintOptionV2) GetOptionMarketAccount() *ag_solanago.AccountMeta
GetOptionMarketAccount gets the "optionMarket" account.
func (*MintOptionV2) GetOptionMintAccount ¶
func (inst *MintOptionV2) GetOptionMintAccount() *ag_solanago.AccountMeta
GetOptionMintAccount gets the "optionMint" account.
func (*MintOptionV2) GetTokenProgramAccount ¶
func (inst *MintOptionV2) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (*MintOptionV2) GetUnderlyingAssetMintAccount ¶
func (inst *MintOptionV2) GetUnderlyingAssetMintAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetMintAccount gets the "underlyingAssetMint" account.
func (*MintOptionV2) GetUnderlyingAssetPoolAccount ¶
func (inst *MintOptionV2) GetUnderlyingAssetPoolAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetPoolAccount gets the "underlyingAssetPool" account.
func (*MintOptionV2) GetUnderlyingAssetSrcAccount ¶
func (inst *MintOptionV2) GetUnderlyingAssetSrcAccount() *ag_solanago.AccountMeta
GetUnderlyingAssetSrcAccount gets the "underlyingAssetSrc" account.
func (*MintOptionV2) GetUserAuthorityAccount ¶
func (inst *MintOptionV2) GetUserAuthorityAccount() *ag_solanago.AccountMeta
GetUserAuthorityAccount gets the "userAuthority" account.
func (*MintOptionV2) GetWriterTokenMintAccount ¶
func (inst *MintOptionV2) GetWriterTokenMintAccount() *ag_solanago.AccountMeta
GetWriterTokenMintAccount gets the "writerTokenMint" account.
func (MintOptionV2) MarshalWithEncoder ¶
func (obj MintOptionV2) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*MintOptionV2) SetMintedOptionDestAccount ¶
func (inst *MintOptionV2) SetMintedOptionDestAccount(mintedOptionDest ag_solanago.PublicKey) *MintOptionV2
SetMintedOptionDestAccount sets the "mintedOptionDest" account.
func (*MintOptionV2) SetMintedWriterTokenDestAccount ¶
func (inst *MintOptionV2) SetMintedWriterTokenDestAccount(mintedWriterTokenDest ag_solanago.PublicKey) *MintOptionV2
SetMintedWriterTokenDestAccount sets the "mintedWriterTokenDest" account.
func (*MintOptionV2) SetOptionMarketAccount ¶
func (inst *MintOptionV2) SetOptionMarketAccount(optionMarket ag_solanago.PublicKey) *MintOptionV2
SetOptionMarketAccount sets the "optionMarket" account.
func (*MintOptionV2) SetOptionMintAccount ¶
func (inst *MintOptionV2) SetOptionMintAccount(optionMint ag_solanago.PublicKey) *MintOptionV2
SetOptionMintAccount sets the "optionMint" account.
func (*MintOptionV2) SetSize ¶
func (inst *MintOptionV2) SetSize(size uint64) *MintOptionV2
SetSize sets the "size" parameter.
func (*MintOptionV2) SetTokenProgramAccount ¶
func (inst *MintOptionV2) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *MintOptionV2
SetTokenProgramAccount sets the "tokenProgram" account.
func (*MintOptionV2) SetUnderlyingAssetMintAccount ¶
func (inst *MintOptionV2) SetUnderlyingAssetMintAccount(underlyingAssetMint ag_solanago.PublicKey) *MintOptionV2
SetUnderlyingAssetMintAccount sets the "underlyingAssetMint" account.
func (*MintOptionV2) SetUnderlyingAssetPoolAccount ¶
func (inst *MintOptionV2) SetUnderlyingAssetPoolAccount(underlyingAssetPool ag_solanago.PublicKey) *MintOptionV2
SetUnderlyingAssetPoolAccount sets the "underlyingAssetPool" account.
func (*MintOptionV2) SetUnderlyingAssetSrcAccount ¶
func (inst *MintOptionV2) SetUnderlyingAssetSrcAccount(underlyingAssetSrc ag_solanago.PublicKey) *MintOptionV2
SetUnderlyingAssetSrcAccount sets the "underlyingAssetSrc" account.
func (*MintOptionV2) SetUserAuthorityAccount ¶
func (inst *MintOptionV2) SetUserAuthorityAccount(userAuthority ag_solanago.PublicKey) *MintOptionV2
SetUserAuthorityAccount sets the "userAuthority" account.
func (*MintOptionV2) SetWriterTokenMintAccount ¶
func (inst *MintOptionV2) SetWriterTokenMintAccount(writerTokenMint ag_solanago.PublicKey) *MintOptionV2
SetWriterTokenMintAccount sets the "writerTokenMint" account.
func (*MintOptionV2) UnmarshalWithDecoder ¶
func (obj *MintOptionV2) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*MintOptionV2) Validate ¶
func (inst *MintOptionV2) Validate() error
func (MintOptionV2) ValidateAndBuild ¶
func (inst MintOptionV2) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type OptionMarket ¶
type OptionMarket struct { OptionMint ag_solanago.PublicKey WriterTokenMint ag_solanago.PublicKey UnderlyingAssetMint ag_solanago.PublicKey QuoteAssetMint ag_solanago.PublicKey UnderlyingAmountPerContract uint64 QuoteAmountPerContract uint64 ExpirationUnixTimestamp int64 UnderlyingAssetPool ag_solanago.PublicKey QuoteAssetPool ag_solanago.PublicKey MintFeeAccount ag_solanago.PublicKey ExerciseFeeAccount ag_solanago.PublicKey Expired bool BumpSeed uint8 }
func (OptionMarket) MarshalWithEncoder ¶
func (obj OptionMarket) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*OptionMarket) UnmarshalWithDecoder ¶
func (obj *OptionMarket) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)