entities

package
v0.0.0-...-7c2ba20 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CHALLENGE_MESSAGE string = `` /* 144-byte string literal not displayed */

the message that will be presented to the user in their wallet when signing

View Source
const CHALLENGE_TTL = time.Hour * 24

how long a signature will ultimately be valid for

Variables

This section is empty.

Functions

This section is empty.

Types

type Challenge

type Challenge struct {
	Address string
	Message string
	TTL     time.Duration
	Expires time.Time
}

func NewChallenge

func NewChallenge(address string) *Challenge

type Contract

type Contract struct {
	Blockchain common.Blockchain
	Address    string
	Interface  common.Interface
}

type Currency

type Currency struct {
	Blockchain common.Blockchain
	Balance    *string // balance can be nil
}

type DisplayAchievement

type DisplayAchievement struct {
	Id    string
	Index uint64
	Type  common.AchievementType
}

type DisplayAchievements

type DisplayAchievements struct {
	Text  string
	Items *[]DisplayAchievement
}

type DisplayColors

type DisplayColors struct {
	Primary       string
	Secondary     string
	PrimaryText   string
	SecondaryText string
	Shadow        string
	Accent        string
}

type DisplayConfig

type DisplayConfig struct {
	Colors       *DisplayColors
	Info         *DisplayInfo
	Achievements *DisplayAchievements
	Groups       *[]DisplayGroup
}

type DisplayGroup

type DisplayGroup struct {
	Id    string
	Text  string
	Items *[]DisplayItem
}

type DisplayInfo

type DisplayInfo struct {
	Title         string
	Description   string
	TwitterHandle string
}

type DisplayItem

type DisplayItem struct {
	Id    string
	Index uint64
	Type  common.BadgeType
}

type FungibleMetadata

type FungibleMetadata struct {
	Name     *string // name can be nil
	Symbol   *string // symbol can be nil
	Decimals *uint8  // decimals can be nil
}

type FungibleToken

type FungibleToken struct {
	Contract *Contract
	Balance  *string // balance can be nil
	Metadata *FungibleMetadata
}

type Interaction

type Interaction struct {
	Transaction     *Transaction
	Type            common.Interaction
	Timestamp       uint64
	TransactionData *TransactionData
}

type NonFungibleMetadata

type NonFungibleMetadata struct {
	Name        string
	Description string
	Image       string
	Attributes  *[]map[string]interface{}
}

type NonFungibleToken

type NonFungibleToken struct {
	Contract *Contract
	TokenId  string
	Balance  *string              // Balance can be nil
	Metadata *NonFungibleMetadata // Metadata can be nil
}

type Profile

type Profile struct {
	Address           string
	Banned            bool
	LastModified      *time.Time // LastModified can be nil if this is a defaul profile
	ENSName           string
	StoreAssets       *StoreAssets
	DisplayConfig     *DisplayConfig      // DisplayConfig can be nil if this is a default profile
	ProfilePicture    *NonFungibleToken   // ProfilePicture can be nil if this is a default profile with no NFTs or they have simply removed their profile picture
	NonFungibleTokens *[]NonFungibleToken // NonFungibleTokens can ve nil if this is a light hydrated profile
	FungibleTokens    *[]FungibleToken    // FungibleTokens can ve nil if this is a light hydrated profile
	Statistics        *[]Statistic        // Statistics can ve nil if this is a light hydrated profile
	Interactions      *[]Interaction      // Interactions can ve nil if this is a light hydrated profile
	Currencies        *[]Currency         // Currencies can ve nil if this is a light hydrated profile
}

type Statistic

type Statistic struct {
	Type     common.StatisticType
	Contract *Contract
	Data     interface{}
}

type StoreAssets

type StoreAssets struct {
	Premium    bool
	BetaTester bool
}

type Transaction

type Transaction struct {
	Id         string
	Blockchain common.Blockchain
}

type TransactionData

type TransactionData struct {
	Timestamp uint64
	From      string
	To        *string
	Data      []byte
	Value     string
}

Jump to

Keyboard shortcuts

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