lib

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 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 HODLerThing added in v0.0.6

type HODLerThing struct {
	HODLerPublicKeyBase58Check  string
	CreatorPublicKeyBase58Check string
	HasPurchased                bool
	BalanceNanos                int64
	ProfileEntryResponse        ProfileEntryResponse
}

type Hodler added in v0.0.9

type Hodler struct {
	HODLerPublicKeyBase58Check string
	BalanceNanos               int64
	ProfileEntryResponse       ProfileEntryResponse
}

type HodlersWrap added in v0.0.9

type HodlersWrap struct {
	Hodlers []Hodler
}

type LikeEntry added in v0.0.7

type LikeEntry struct {
	LikerPubKey   []byte
	LikedPostHash []byte
	// 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              interface{}
	ImageURLs                  []string
	TimestampNanos             uint64
	ProfileEntryResponse       ProfileEntryResponse
	LikeCount                  uint64
	DiamondCount               uint64
	Comments                   []Post
	RecloutedPostEntryResponse *Post
	CommentCount               uint64
	RecloutCount               uint64
	QuoteRecloutCount          uint64
	CreatorBasisPoints         uint64
	StakeMultipleBasisPoints   uint64
	IsHidden                   bool
	ConfirmationBlockHeight    uint64
}

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 PostStateless added in v0.0.11

type PostStateless struct {
	PostFound Post
}

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 PublicKeyToProfileEntry added in v0.0.6

type PublicKeyToProfileEntry struct {
	PublicKeyToProfileEntry map[string]ProfileEntryResponse
	NumFollowers            int64
}

type Rate added in v0.0.6

type Rate struct {
	SatoshisPerBitCloutExchangeRate int64
	NanosSold                       int64
	USDCentsPerBitcoinExchangeRate  int64
}

type RecloutEntry added in v0.0.7

type RecloutEntry struct {
	ReclouterPubKey   []byte
	RecloutPostHash   *BlockHash
	RecloutedPostHash *BlockHash
	// contains filtered or unexported fields
}

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
}

type User added in v0.0.6

type User struct {
	PublicKeyBase58Check string
	ProfileEntryResponse ProfileEntryResponse
	BalanceNanos         int64
	UsersYouHODL         []HODLerThing
}

type UsersStateless added in v0.0.6

type UsersStateless struct {
	UserList []User
}

Jump to

Keyboard shortcuts

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