type_

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 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"`
	SOLAmountWithDecimals              uint64           `json:"sol_amount_with_decimals"`
	TokenAmountWithDecimals            uint64           `json:"token_amount_with_decimals"`
	Type                               type_.SwapType   `json:"type"`
	UserAddress                        solana.PublicKey `json:"user_address"`
	UserBalanceWithDecimals            uint64           `json:"user_balance_with_decimals"`
	BeforeUserBalanceWithDecimals      uint64           `json:"before_user_balance_with_decimals"`
	BeforeUserTokenBalanceWithDecimals uint64           `json:"before_user_token_balance_with_decimals"`
	UserTokenBalanceWithDecimals       uint64           `json:"user_token_balance_with_decimals"`
	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