type_

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeInfo added in v0.1.3

type FeeInfo struct {
	BaseFeeWithDecimals     uint64 `json:"base_fee_with_decimals"`
	PriorityFeeWithDecimals uint64 `json:"priority_fee_with_decimals"`
	TotalFeeWithDecimals    uint64 `json:"total_fee_with_decimals"`
	ComputeUnitPrice        uint64 `json:"compute_unit_price"`
}

type SwapDataType added in v0.9.9

type SwapDataType struct {
	InputAddress             solana.PublicKey `json:"input_address"`
	OutputAddress            solana.PublicKey `json:"output_address"`
	InputAmountWithDecimals  uint64           `json:"input_amount_with_decimals"`
	OutputAmountWithDecimals uint64           `json:"output_amount_with_decimals"`
	UserAddress              solana.PublicKey `json:"user_address"`

	PairAddress               solana.PublicKey `json:"pair_address"`
	InputVault                solana.PublicKey `json:"input_vault"`
	OutputVault               solana.PublicKey `json:"output_vault"`
	ReserveInputWithDecimals  uint64           `json:"reserve_input_with_decimals"`
	ReserveOutputWithDecimals uint64           `json:"reserve_output_with_decimals"`

	ParsedKeys interface{}        `json:"parsed_keys"`
	Program    solana.PublicKey   `json:"program"`
	Keys       []solana.PublicKey `json:"keys"`
	MethodId   string             `json:"method_id"`
}

type SwapTxDataType added in v0.9.9

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

type SwapType

type SwapType string
const (
	SwapType_Buy  SwapType = "buy"
	SwapType_Sell SwapType = "sell"
)

type TokenAmountInfo added in v0.1.2

type TokenAmountInfo struct {
	AmountWithDecimals uint64 `json:"amount_with_decimals"`
	Decimals           uint64 `json:"decimals"`
}

Jump to

Keyboard shortcuts

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