type_

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RaydiumSwapKeys

type RaydiumSwapKeys struct {
	AmmAddress                   solana.PublicKey
	AmmOpenOrdersAddress         *solana.PublicKey
	AmmTargetOrdersAddress       *solana.PublicKey
	PoolCoinTokenAccountAddress  solana.PublicKey
	PoolPcTokenAccountAddress    solana.PublicKey
	SerumProgramAddress          *solana.PublicKey
	SerumMarketAddress           *solana.PublicKey
	SerumBidsAddress             *solana.PublicKey
	SerumAsksAddress             *solana.PublicKey
	SerumEventQueueAddress       *solana.PublicKey
	SerumCoinVaultAccountAddress *solana.PublicKey
	SerumPcVaultAccountAddress   *solana.PublicKey
	SerumVaultSignerAddress      *solana.PublicKey
}

type SwapDataType added in v0.1.3

type SwapDataType struct {
	TokenAddress      solana.PublicKey `json:"token_address"`
	SOLAmount         string           `json:"sol_amount"`
	TokenAmount       string           `json:"token_amount"`
	Type              type_.SwapType   `json:"type"`
	UserAddress       solana.PublicKey `json:"user_address"`
	UserBalance       string           `json:"user_balance"`
	BeforeUserBalance string           `json:"before_user_balance"`
	UserTokenBalance  string           `json:"user_token_balance"`
	RaydiumSwapKeys   RaydiumSwapKeys  `json:"raydium_swap_keys,omitempty"`
}

type SwapTxDataType added in v0.1.3

type SwapTxDataType struct {
	Swaps   []*SwapDataType
	FeeInfo *type_.FeeInfo
	TxId    string
}

Jump to

Keyboard shortcuts

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