Documentation
¶
Index ¶
- Constants
- func DecodeData[T any](data []byte) (T, error)
- type AdminCancelOrders
- type Compute
- type ConfigArgs
- type Deposit
- type Fees
- type Initialize
- type Initialize2
- type LastOrderDistance
- type MonitorStep
- type PreInitialize
- type PumpFunAnchorSelfCPILogData
- type RaydiumAmmInstructionCoder
- type SetParams
- type SimulateInfo
- type SwapBaseIn
- type SwapBaseOut
- type SystemTransfer
- type TokenTransfer
- type TokenTransferChecked
- type Transfer
- type Withdraw
Constants ¶
View Source
const ( InitializeInstruction = 0 Initialize2Instruction = 1 MonitorStepInstruction = 2 DepositInstruction = 3 WithdrawInstruction = 4 MigrateToOpenBookInstruction = 5 SetParamsInstruction = 6 WithdrawPnlInstruction = 7 WithdrawSrmInstruction = 8 SwapBaseInInstruction = 9 PreInitializeInstruction = 10 SwapBaseOutInstruction = 11 SimulateInfoInstruction = 12 AdminCancelOrdersInstruction = 13 CreateConfigAccountInstruction = 14 UpdateConfigAccountInstruction = 15 )
Variables ¶
This section is empty.
Functions ¶
func DecodeData ¶
Types ¶
type AdminCancelOrders ¶
type AdminCancelOrders struct {
Limit uint16
}
type ConfigArgs ¶
type Initialize ¶
type Initialize2 ¶
type LastOrderDistance ¶
type MonitorStep ¶
type PreInitialize ¶
type PreInitialize struct {
Nonce byte
}
type PumpFunAnchorSelfCPILogData ¶
type PumpFunAnchorSelfCPILogData struct {
Unused1 [16]byte `compare:"-"`
Mint solana.PublicKey `compare:"true"`
SolAmount uint64 `compare:"true"`
TokenAmount uint64 `compare:"true"`
IsBuy bool `compare:"true"`
User solana.PublicKey `compare:"true"`
Timestamp int64 `compare:"true"`
VirtualSolReserves uint64 `compare:"true"`
VirtualTokenReserves uint64 `compare:"true"`
}
func DecodePumpFunCpiLog ¶
func DecodePumpFunCpiLog(data []byte) (PumpFunAnchorSelfCPILogData, error)
type RaydiumAmmInstructionCoder ¶
type RaydiumAmmInstructionCoder struct{}
RaydiumAmmInstructionCoder implements the Coder interface.
func NewRaydiumAmmInstructionCoder ¶
func NewRaydiumAmmInstructionCoder() *RaydiumAmmInstructionCoder
type SetParams ¶
type SetParams struct {
Param uint8
Value *uint64
NewPubkey []byte
Fees *Fees
LastOrderDistance *LastOrderDistance
}
type SimulateInfo ¶
type SimulateInfo struct {
Param uint8
SwapBaseInValue *SwapBaseIn
SwapBaseOutValue *SwapBaseOut
}
type SwapBaseIn ¶
type SwapBaseOut ¶
type SystemTransfer ¶
type TokenTransfer ¶
type TokenTransferChecked ¶
type TokenTransferChecked struct {
Info struct {
Authority string `json:"authority"`
Destination string `json:"destination"`
Mint string `json:"mint"`
Source string `json:"source"`
TokenAmount struct {
Amount string `json:"amount"`
Decimals int `json:"decimals"`
UiAmount float64 `json:"uiAmount"`
UiAmountString string `json:"uiAmountString"`
} `json:"tokenAmount"`
} `json:"info"`
InstructionType string `json:"type"`
}
TODO: A better struct, maybe from anchor generated code
Click to show internal directories.
Click to hide internal directories.