script

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddress

func GetAddress(script memo.Script) wallet.Address

func GetLockHash

func GetLockHash(pkScript []byte) []byte

func GetLockHashForAddress

func GetLockHashForAddress(address wallet.Address) []byte

func GetOutputUTXOs

func GetOutputUTXOs(tx *memo.Tx) []memo.UTXO

func GetOutputs

func GetOutputs(tx *memo.Tx) []*memo.TxInput

func IsBigMemo

func IsBigMemo(outputs []*memo.Output) bool

func Len64

func Len64(b []byte) int64

Types

type Alias

type Alias struct {
	Hash  []byte
	Alias string
}

func (Alias) Get

func (p Alias) Get() ([]byte, error)

func (Alias) Type

func (p Alias) Type() memo.OutputType

type FollowUser

type FollowUser struct {
	UserPkHash []byte
	Unfollow   bool
}

func (FollowUser) Get

func (t FollowUser) Get() ([]byte, error)

func (FollowUser) Type

func (t FollowUser) Type() memo.OutputType

type InOut

type InOut interface {
	Get() [][]byte
	Size() int64
}

type InOutInput

type InOutInput struct {
	TxHash []byte
	Index  uint32
}

func (InOutInput) Get

func (i InOutInput) Get() [][]byte

func (InOutInput) Size

func (i InOutInput) Size() int64

type InOutOutput

type InOutOutput struct {
	Address  wallet.Address
	IsToken  bool
	IsSelf   bool
	Quantity uint64
}

func (InOutOutput) Get

func (i InOutOutput) Get() [][]byte

func (InOutOutput) Size

func (i InOutOutput) Size() int64

type Like

type Like struct {
	TxHash []byte
}

func (Like) Get

func (l Like) Get() ([]byte, error)

func (Like) Type

func (l Like) Type() memo.OutputType

type LinkAccept

type LinkAccept struct {
	RequestTxHash []byte
	Message       string
}

func (LinkAccept) Get

func (l LinkAccept) Get() ([]byte, error)

func (LinkAccept) Type

func (l LinkAccept) Type() memo.OutputType

type LinkRequest

type LinkRequest struct {
	ParentPkHash []byte
	Message      string
}

func (LinkRequest) Get

func (l LinkRequest) Get() ([]byte, error)

func (LinkRequest) Type

func (l LinkRequest) Type() memo.OutputType

type LinkRevoke

type LinkRevoke struct {
	AcceptTxHash []byte
	Message      string
}

func (LinkRevoke) Get

func (l LinkRevoke) Get() ([]byte, error)

func (LinkRevoke) Type

func (l LinkRevoke) Type() memo.OutputType

type MuteUser

type MuteUser struct {
	MutePkHash []byte
	Unmute     bool
}

func (MuteUser) Get

func (m MuteUser) Get() ([]byte, error)

func (MuteUser) Type

func (m MuteUser) Type() memo.OutputType

type P2pk

type P2pk struct {
	PubKey []byte
}

func (P2pk) Get

func (p P2pk) Get() ([]byte, error)

func (P2pk) Type

func (p P2pk) Type() memo.OutputType

type P2pkh

type P2pkh struct {
	PkHash []byte
}

func (P2pkh) Get

func (p P2pkh) Get() ([]byte, error)

func (P2pkh) Type

func (p P2pkh) Type() memo.OutputType

type P2sh

type P2sh struct {
	ScriptHash []byte
}

func (P2sh) Get

func (p P2sh) Get() ([]byte, error)

func (P2sh) Type

func (p P2sh) Type() memo.OutputType

type PollCreate

type PollCreate struct {
	Question    string
	OptionCount int
	PollType    memo.PollType
}

func (PollCreate) Get

func (c PollCreate) Get() ([]byte, error)

func (PollCreate) Type

func (c PollCreate) Type() memo.OutputType

type PollOption

type PollOption struct {
	PollTxHash []byte
	Option     string
}

func (PollOption) Get

func (v PollOption) Get() ([]byte, error)

func (PollOption) Type

func (v PollOption) Type() memo.OutputType

type PollVote

type PollVote struct {
	PollOptionTxHash []byte
	Message          string
}

func (PollVote) Get

func (v PollVote) Get() ([]byte, error)

func (PollVote) Type

func (v PollVote) Type() memo.OutputType

type Post

type Post struct {
	Message string
}

func (Post) Get

func (p Post) Get() ([]byte, error)

func (Post) Type

func (p Post) Type() memo.OutputType

type Profile

type Profile struct {
	Text string
}

func (Profile) Get

func (p Profile) Get() ([]byte, error)

func (Profile) Type

func (p Profile) Type() memo.OutputType

type ProfilePic

type ProfilePic struct {
	Url string
}

func (ProfilePic) Get

func (p ProfilePic) Get() ([]byte, error)

func (ProfilePic) Type

func (p ProfilePic) Type() memo.OutputType

type Reply

type Reply struct {
	TxHash  []byte
	Message string
}

func (Reply) Get

func (r Reply) Get() ([]byte, error)

func (Reply) Type

func (r Reply) Type() memo.OutputType

type Save

type Save struct {
	Filename string
	Filetype string
	Contents []byte
}

func (Save) Get

func (s Save) Get() ([]byte, error)

func (Save) Type

func (s Save) Type() memo.OutputType

type Send

type Send struct {
	Hash    []byte
	Message string
}

func (Send) Get

func (p Send) Get() ([]byte, error)

func (Send) Type

func (p Send) Type() memo.OutputType

type SetName

type SetName struct {
	Name string
}

func (SetName) Get

func (p SetName) Get() ([]byte, error)

func (SetName) Type

func (p SetName) Type() memo.OutputType

type Signature

type Signature struct {
	Sig    []byte
	PkData []byte
}

type TokenCreate

type TokenCreate struct {
	Ticker   string
	Name     string
	SlpType  byte
	Decimals int
	DocUrl   string
	Quantity uint64
}

func (TokenCreate) Get

func (t TokenCreate) Get() ([]byte, error)

func (TokenCreate) Type

func (t TokenCreate) Type() memo.OutputType

type TokenMint

type TokenMint struct {
	TokenHash []byte
	TokenType byte
	Quantity  uint64
}

func (TokenMint) Get

func (t TokenMint) Get() ([]byte, error)

func (TokenMint) Type

func (t TokenMint) Type() memo.OutputType

type TokenOffer

type TokenOffer struct {
	SellTxHash []byte
	InOuts     []InOut
}

func (TokenOffer) Get

func (t TokenOffer) Get() ([]byte, error)

func (TokenOffer) Type

func (t TokenOffer) Type() memo.OutputType

type TokenPin

type TokenPin struct {
	PostTxHash  []byte
	TokenTxHash []byte
	TokenIndex  uint
}

func (TokenPin) Get

func (t TokenPin) Get() ([]byte, error)

func (TokenPin) Type

func (t TokenPin) Type() memo.OutputType

type TokenSell

type TokenSell struct {
	InOuts []InOut
}

func (TokenSell) Get

func (t TokenSell) Get() ([]byte, error)

func (TokenSell) Type

func (t TokenSell) Type() memo.OutputType

type TokenSend

type TokenSend struct {
	TokenHash  []byte
	SlpType    byte
	Quantities []uint64
}

func (TokenSend) Get

func (t TokenSend) Get() ([]byte, error)

func (TokenSend) GetTotalQuantity

func (t TokenSend) GetTotalQuantity() uint64

func (TokenSend) Type

func (t TokenSend) Type() memo.OutputType

type TokenSignature

type TokenSignature struct {
	OfferTxHash []byte
	Signatures  []Signature
}

func (TokenSignature) Get

func (t TokenSignature) Get() ([]byte, error)

func (TokenSignature) Type

func (t TokenSignature) Type() memo.OutputType

type TopicFollow

type TopicFollow struct {
	TopicName string
	Unfollow  bool
}

func (TopicFollow) Get

func (f TopicFollow) Get() ([]byte, error)

func (TopicFollow) Type

func (f TopicFollow) Type() memo.OutputType

type TopicMessage

type TopicMessage struct {
	TopicName string
	Message   string
}

func (TopicMessage) Get

func (p TopicMessage) Get() ([]byte, error)

func (TopicMessage) Type

func (p TopicMessage) Type() memo.OutputType

Jump to

Keyboard shortcuts

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