util

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindInnerInstructions

func FindInnerInstructions(meta *rpc.TransactionMeta, index uint64) []solana.CompiledInstruction

func GetComputeUnitPriceFromHelius added in v0.2.2

func GetComputeUnitPriceFromHelius(
	logger i_logger.ILogger,
	key string,
	accountKeys []string,
) (uint64, error)

func GetFeeInfoFromTx

func GetFeeInfoFromTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*type_.FeeInfo, error)

Types

type Stack added in v0.4.5

type Stack struct {
	// contains filtered or unexported fields
}

Stack 定义栈结构

func NewStack added in v0.4.5

func NewStack() *Stack

func (*Stack) IsEmpty added in v0.4.5

func (s *Stack) IsEmpty() bool

IsEmpty 判断栈是否为空

func (*Stack) Peek added in v0.4.5

func (s *Stack) Peek() (interface{}, error)

Peek 查看栈顶元素,但不移除它

func (*Stack) Pop added in v0.4.5

func (s *Stack) Pop() (interface{}, error)

Pop 从栈中移除并返回栈顶元素

func (*Stack) Push added in v0.4.5

func (s *Stack) Push(item interface{})

Push 向栈中添加元素

func (*Stack) Size added in v0.4.5

func (s *Stack) Size() int

Size 获取栈的大小

Jump to

Keyboard shortcuts

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