Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeDup ¶
func DeDup[T comparable, TS ~[]T](input TS) []T
Types ¶
type GetMintRet ¶
type GetMintRet struct { TokenAccount web3.PublicKey TokenAccountOwner web3.PublicKey Mint web3.PublicKey TokenProgram web3.PublicKey }
func GetMint ¶
func GetMint(accountOfToken []web3.PublicKey, connection *web3.Connection, commitment *web3.Commitment) ([]GetMintRet, error)
type ParseTransferRet ¶
type ParseTransferRet struct { From web3.PublicKey `json:"from"` To web3.PublicKey `json:"to"` FromOwner web3.PublicKey `json:"fromOwner"` Token web3.PublicKey `json:"token"` TokenType TokenType `json:"tokenType"` Amount uint64 `json:"amount"` InstructionIndex int `json:"instructionIndex"` }
func ParseTransfer ¶
func ParseTransfer(message web3.VersionedMessage, meta *web3.ConfirmedTransactionMeta, signatures []string) (ret []ParseTransferRet, sig string)
func (*ParseTransferRet) IsValid ¶
func (p *ParseTransferRet) IsValid() bool
Click to show internal directories.
Click to hide internal directories.