schema

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

THIS IS GENERATED CODE. SPECIFICALLY, THIS IS ANCHOR BINDINGS FOR THE RAYDIUM V4 CONTRACTS GENERATED VIA solana-go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmmInfo

type AmmInfo struct {
	Status             uint64
	Nonce              uint64
	OrderNum           uint64
	Depth              uint64
	CoinDecimals       uint64
	PcDecimals         uint64
	State              uint64
	ResetFlag          uint64
	MinSize            uint64
	VolMaxCutRatio     uint64
	AmountWave         uint64
	CoinLotSize        uint64
	PcLotSize          uint64
	MinPriceMultiplier uint64
	MaxPriceMultiplier uint64
	SysDecimalValue    uint64
	Fees               Fees
	OutPut             OutPutData
	TokenCoin          ag_solanago.PublicKey
	TokenPc            ag_solanago.PublicKey
	CoinMint           ag_solanago.PublicKey
	PcMint             ag_solanago.PublicKey
	LpMint             ag_solanago.PublicKey
	OpenOrders         ag_solanago.PublicKey
	Market             ag_solanago.PublicKey
	SerumDex           ag_solanago.PublicKey
	TargetOrders       ag_solanago.PublicKey
	WithdrawQueue      ag_solanago.PublicKey
	TokenTempLp        ag_solanago.PublicKey
	AmmOwner           ag_solanago.PublicKey
	LpAmount           uint64
	ClientOrderId      uint64 //nolint:all
	Padding            [2]uint64
}

func (AmmInfo) MarshalWithEncoder

func (obj AmmInfo) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*AmmInfo) UnmarshalWithDecoder

func (obj *AmmInfo) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type Fees

type Fees struct {
	MinSeparateNumerator   uint64
	MinSeparateDenominator uint64
	TradeFeeNumerator      uint64
	TradeFeeDenominator    uint64
	PnlNumerator           uint64
	PnlDenominator         uint64
	SwapFeeNumerator       uint64
	SwapFeeDenominator     uint64
}

func (Fees) MarshalWithEncoder

func (obj Fees) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Fees) UnmarshalWithDecoder

func (obj *Fees) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type OutPutData

type OutPutData struct {
	NeedTakePnlCoin     uint64
	NeedTakePnlPc       uint64
	TotalPnlPc          uint64
	TotalPnlCoin        uint64
	PoolOpenTime        uint64
	PunishPcAmount      uint64
	PunishCoinAmount    uint64
	OrderbookToInitTime uint64
	SwapCoinInAmount    ag_binary.Uint128
	SwapPcOutAmount     ag_binary.Uint128
	SwapTakePcFee       uint64
	SwapPcInAmount      ag_binary.Uint128
	SwapCoinOutAmount   ag_binary.Uint128
	SwapTakeCoinFee     uint64
}

func (OutPutData) MarshalWithEncoder

func (obj OutPutData) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*OutPutData) UnmarshalWithDecoder

func (obj *OutPutData) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL