Documentation ¶
Index ¶
- Constants
- type Challenge
- type Contract
- type Currency
- type DisplayAchievement
- type DisplayAchievements
- type DisplayColors
- type DisplayConfig
- type DisplayGroup
- type DisplayInfo
- type DisplayItem
- type FungibleMetadata
- type FungibleToken
- type Interaction
- type NonFungibleMetadata
- type NonFungibleToken
- type Profile
- type Statistic
- type StoreAssets
- type Transaction
- type TransactionData
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 ¶
func NewChallenge ¶
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 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 FungibleMetadata ¶
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 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 Transaction ¶
type Transaction struct { Id string Blockchain common.Blockchain }
Click to show internal directories.
Click to hide internal directories.