lib

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const HashSizeBytes = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockHash

type BlockHash [HashSizeBytes]byte

func (*BlockHash) Bytes

func (b *BlockHash) Bytes() []byte

type CoinEntry

type CoinEntry struct {
	CreatorBasisPoints      uint64
	BitCloutLockedNanos     uint64
	NumberOfHolders         uint64
	CoinsInCirculationNanos uint64
	CoinWatermarkNanos      uint64
}

type DiamondEntry

type DiamondEntry struct {
	SenderPKID      *PKID
	ReceiverPKID    *PKID
	DiamondPostHash *BlockHash
	DiamondLevel    int64
	// contains filtered or unexported fields
}

type Message added in v0.0.5

type Message struct {
	SenderPublicKeyBase58Check    string
	RecipientPublicKeyBase58Check string
	EncryptedText                 string
	TstampNanos                   int64
	IsSender                      bool
}

type MessageList added in v0.0.5

type MessageList struct {
	NumberOfUnreadThreads       int64
	OrderedContactsWithMessages []MessageThing
	PublicKeyToProfileEntry     map[string]ProfileEntryResponse
	UnreadStateByContact        map[string]bool
}

type MessageThing added in v0.0.5

type MessageThing struct {
	PublicKeyBase58Check string
	Messages             []Message
}

type PKID

type PKID [33]byte

type Post

type Post struct {
	PostHashHex                string
	PosterPublicKeyBase58Check string
	ParentStakeID              string
	Body                       string
	PostExtraData              PostExtraData
	ImageURLs                  []string
	TimestampNanos             int64
	ProfileEntryResponse       ProfileEntryResponse
	LikeCount                  int64
	Comments                   []Post
	RecloutedPostEntryResponse *Post
	CommentCount               int64
	RecloutCount               int64
}

type PostEntry

type PostEntry struct {
	PostHash                 *BlockHash
	PosterPublicKey          []byte
	ParentStakeID            []byte
	Body                     []byte
	RecloutedPostHash        *BlockHash
	IsQuotedReclout          bool
	CreatorBasisPoints       uint64
	StakeMultipleBasisPoints uint64
	ConfirmationBlockHeight  uint32
	TimestampNanos           uint64
	IsHidden                 bool
	StakeEntry               *StakeEntry
	LikeCount                uint64
	RecloutCount             uint64
	QuoteRecloutCount        uint64
	DiamondCount             uint64

	CommentCount  uint64
	IsPinned      bool
	PostExtraData map[string][]byte
	// contains filtered or unexported fields
}

type PostExtraData

type PostExtraData struct {
	EmbedVideoURL string
}

type PostsStateless

type PostsStateless struct {
	PostsFound []Post
}

type ProfileEntry

type ProfileEntry struct {
	PublicKey   []byte
	Username    []byte
	Description []byte
	ProfilePic  []byte
	IsHidden    bool
	CoinEntry

	StakeMultipleBasisPoints uint64
	StakeEntry               *StakeEntry
	// contains filtered or unexported fields
}

type ProfileEntryResponse

type ProfileEntryResponse struct {
	PublicKeyBase58Check   string
	Username               string
	Description            string
	CoinEntry              CoinEntry
	CoinPriceBitCloutNanos int64
}

type SingleProfile

type SingleProfile struct {
	Profile ProfileEntryResponse
}

type StakeEntry

type StakeEntry struct {
}

type StakeEntryStats

type StakeEntryStats struct {
}

type TxReady added in v0.0.4

type TxReady struct {
	TstampNanos                      int64
	TransactionHex                   string
	ExpectedBitCloutReturnedNanos    int64
	ExpectedCreatorCoinReturnedNanos int64
	SpendAmountNanos                 int64
	TotalInputNanos                  int64
	ChangeAmountNanos                int64
	FeeNanos                         int64
}

Jump to

Keyboard shortcuts

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