Documentation ¶
Index ¶
- Constants
- Variables
- func AssetList() fyne.CanvasObject
- func AssetStats() fyne.CanvasObject
- func AuctionInfo() fyne.CanvasObject
- func AuctionListings() fyne.Widget
- func BackgroundRast(tag string) *canvas.Raster
- func BidBuyConfirm(scid string, amt uint64, b int, obj *container.Split, reset fyne.CanvasObject) fyne.CanvasObject
- func BuyNowInfo() fyne.CanvasObject
- func BuyNowListings() fyne.Widget
- func CheckAllNFAs(gc bool, scids map[string]string)
- func CheckNFAListingType(scid string) (list int, addr string)
- func CheckOwner(scid string) bool
- func CheckWalletNames(value string)
- func CloseAppSignal(value bool)
- func ClosingApps() (close bool)
- func CoinDecimal(ticker string) int
- func ConfirmCancelClose(scid string, c int, obj *container.Split, reset fyne.CanvasObject) fyne.CanvasObject
- func Connected() bool
- func CreateNFAContract(...) (contract string)
- func CreateSwapContainer(pair string) (*dwidget.DeroAmts, *fyne.Container)
- func DaemonRpcEntry() fyne.Widget
- func DisableIndexControls(d bool)
- func DisplayRating(i uint64) fyne.Resource
- func EnabledDapps() (enabled int)
- func FetchFilters(check string) (filter []string)
- func FindNfaListings(assets map[string]string)
- func G45Collection(name string) (collection string)
- func G45Index()
- func GetAssetUrl(w int, scid string) (url string)
- func GetAuctionDetails(scid string)
- func GetBuyNowDetails(scid string)
- func GetListingPercents(scid string) (artP float64, royaltyP float64)
- func GetNfaImages(scid string)
- func GetOwnedAssetStats(scid string)
- func GetPrice(coin, tag string) (price float64, display string)
- func GetSCHeaders(scid string) []string
- func GetUnlistedDetails(scid string)
- func GnomonBoltDB(dbType, dbPath string) *storage.BboltStore
- func GnomonEndPoint()
- func GnomonGravDB(dbType, dbPath string) *storage.GravitonStore
- func GnomonScan(config bool) bool
- func GnomonState(config bool, scan func(map[string]string))
- func HowToMintNFA(button *widget.Button) fyne.CanvasObject
- func IconImg(res fyne.Resource) *fyne.Container
- func IndexEntry(window_icon fyne.Resource) fyne.CanvasObject
- func InitLogrusLog(windows bool)
- func IntroTree(intros []IntroText) fyne.CanvasObject
- func IsDreamsG45(check string) bool
- func MarketEntry() fyne.CanvasObject
- func MarketTab(ti *container.TabItem)
- func MenuDisplay() fyne.CanvasObject
- func MyNFAListings() fyne.Widget
- func NFACreationExists(collection string) bool
- func NameEntry() fyne.CanvasObject
- func NfaIcon(res fyne.Resource) fyne.CanvasObject
- func NfaImg(img canvas.Image) fyne.CanvasObject
- func NfaMarketInfo() fyne.CanvasObject
- func NotListedInfo() fyne.CanvasObject
- func PlaceAssets(tag string, assets []fyne.Widget, menu_icon fyne.Resource, w fyne.Window) *container.Split
- func PlaceMarket() *container.Split
- func PlaceNFAMint(tag string, window fyne.Window) fyne.CanvasObject
- func RateConfirm(scid string, tab *container.AppTabs, reset fyne.CanvasObject) fyne.CanvasObject
- func ReadDreamsConfig(tag string) (saved dreams.DreamSave)
- func RefreshNfaImages()
- func ResetAuctionInfo()
- func ResetBuyInfo()
- func ResetNotListedInfo()
- func RestartGif(g *xwidget.AnimatedGif)
- func ReturnAssetCount() (count int)
- func ReturnEnabledG45s(assets map[string]bool) (filter []string)
- func ReturnEnabledNFAs(assets map[string]bool) (filters []string)
- func RunNFAMarket(tag string, quit, done chan struct{}, connect_box *dwidget.DeroRpcEntries)
- func SearchNFAs() fyne.CanvasObject
- func SearchNFAsBy(by int, prefix string) (results []string)
- func SendMessageMenu(dest string, window_icon fyne.Resource)
- func SetUpNFACreation(tag, collection string) (save_path string, sign_path string)
- func StartDreamsIndicators(add []DreamsIndicator) fyne.CanvasObject
- func StartGnomon(tag, dbtype string, filters []string, upper, lower int, custom func())
- func StartIndicators() fyne.CanvasObject
- func StopIndicators(these []DreamsIndicator)
- func StopLabel()
- func ToolsBadge(res fyne.Resource) fyne.CanvasObject
- func TrimStringLen(str string, l int) string
- func ValidNfa(file string) bool
- func WriteDreamsConfig(u dreams.DreamSave)
- type Agent
- type Degen
- type DreamsIndicator
- type IntroText
- type Seal
Constants ¶
const ( Seals_mint = "dero1qyfq8m3rju62tshju60zuc0ymrajwxqajkdh6pw888ejuv94jlfgjqq58px98" Seals_coll = "c6fa9a2c95d97da816eb9689a2fb52be385bb1df9e93abe99373ddbd3407129d" ATeam_mint = "dero1qyx9748k9wrt89a6rm0zzlayxgs3ndkmvg6m20shqp8ynh54zf2rgqq8yn9hn" ATeam_coll = "bbc357bdfe9fc41128fc11ce555eaadbd9b411eca903008396e0de4cc31821c7" Degen_coll = "8edea52b9a8a041e3b579ca2d81ea3d3e87e148ba4409273d53039991afa91be" Degen_mint = "dero1qy4e7jj4jaaj66pc0vg8h7l0hqelqjxj9ya9qgal03v0phjaycv5yqq8aqgyg" )
const ( NFA_SEARCH_FILTER = `` /* 977-byte string literal not displayed */ G45_search_filter = `STORE("type", "G45-NFT")` )
Variables ¶
var ART_NFA_MS1 string
var Assets assetObjects
var Control menuObjects
var Exit exit
var Gnomes gnomon
var Market marketObjects
var Username string
Functions ¶
func AssetList ¶
func AssetList() fyne.CanvasObject
Owned asset list object
- Sets Control.Viewing_asset and asset stats on selected
func AuctionListings ¶
func AuctionListings() fyne.Widget
NFA auction listings object
- Gets images and details for Market objects on selected
func BackgroundRast ¶
Create a new raster from image, looking for holdero.Settings.ThemeImg and will fallback to bundle.ResourceBackgroundPng if err
func BidBuyConfirm ¶
func BidBuyConfirm(scid string, amt uint64, b int, obj *container.Split, reset fyne.CanvasObject) fyne.CanvasObject
Confirm a bid or buy action of listed NFA
- amt of Dero in atomic units
- b defines auction or sale
- Pass main window obj to reset to
func BuyNowListings ¶
func BuyNowListings() fyne.Widget
NFA buy now listings object
- Gets images and details for Market objects on selected
func CheckAllNFAs ¶
Check wallet for all indexed NFAs
- Pass scids from db store, can be nil arg
- Pass false gc for rechecks
func CheckNFAListingType ¶
Check NFA listing type and return owner address
- Auction returns 1
- Sale returns 2
func CoinDecimal ¶
Used for placing coin decimal, default returns 2 decimal place
func ConfirmCancelClose ¶
func ConfirmCancelClose(scid string, c int, obj *container.Split, reset fyne.CanvasObject) fyne.CanvasObject
Confirm a cancel or close action of listed NFA
- c defines close or cancel
- Confirmation string from Market.Tab
- Pass main window obj to reset to
func CreateNFAContract ¶
func CreateNFAContract(art, royalty, update, name, descrip, typeHdr, icon, tags, fileCheckC, fileCheckS, fileUrl, fileSignUrl, coverURl, collection string) (contract string)
Create a new NFA contract string with passed values
func CreateSwapContainer ¶
func DaemonRpcEntry ¶
func DaemonRpcEntry() fyne.Widget
Daemon rpc entry object with default options
- Bound to rpc.Daemon.Rpc
func DisplayRating ¶
func DisplayRating(i uint64) fyne.Resource
Display SCID rating from dReams SCID rating system
func FetchFilters ¶
Get search filters from on chain store
func FindNfaListings ¶
Scan index for any active NFA listings
- Pass assets from db store, can be nil arg
func G45Collection ¶
Returns collection SCID by name
func GetAssetUrl ¶
Get a requested NFA url
- w of 0 returns "fileURL"
- w of 1 returns "iconURLHdr"
- w of 2 returns "coverURLHdr"
func GetAuctionDetails ¶
func GetAuctionDetails(scid string)
Create auction tab info for current asset
func GetBuyNowDetails ¶
func GetBuyNowDetails(scid string)
Create buy now tab info for current asset
func GetListingPercents ¶
Get percentages for a NFA
func GetOwnedAssetStats ¶
func GetOwnedAssetStats(scid string)
Get SCID info and update Asset content
func GetPrice ¶
Main price fetch, returns float and display string
- Average from 3 feeds, if not take average from 2, if not TO value takes priority spot
func GnomonBoltDB ¶
func GnomonBoltDB(dbType, dbPath string) *storage.BboltStore
Create Gnomon bbolt db with dReams tag
- If dbType is not boltdb, will return nil boltdb
func GnomonGravDB ¶
func GnomonGravDB(dbType, dbPath string) *storage.GravitonStore
Create Gnomon graviton db with dReams tag
- If dbType is boltdb, will return nil gravdb
func GnomonScan ¶
Gnomon is ready for dApp to preform initial scan
func GnomonState ¶
Gnomon will scan connected wallet on start up, then ensure sync
- Hold out checking if dReams is in configure
- Pass scan func for initial Gnomon sync
func HowToMintNFA ¶
Tree object containing NFA minting instructions screen
func IconImg ¶
func IconImg(res fyne.Resource) *fyne.Container
Icon image for Holdero tables and asset viewing
- Pass res as frame resource
func IndexEntry ¶
func IndexEntry(window_icon fyne.Resource) fyne.CanvasObject
Index entry and NFA control objects
- Pass window resources for side menu windows
func InitLogrusLog ¶
func InitLogrusLog(windows bool)
func MenuDisplay ¶
func MenuDisplay() fyne.CanvasObject
Set wallet and chain display content for menu
func MyNFAListings ¶
func MyNFAListings() fyne.Widget
NFA listing for connected wallet
- Gets images and details for Market objects on selected
func NFACreationExists ¶
Check that all creation directories exists
func NfaIcon ¶
func NfaIcon(res fyne.Resource) fyne.CanvasObject
NFA market icon image with frame
- Pass res for frame resource
func PlaceAssets ¶
func PlaceAssets(tag string, assets []fyne.Widget, menu_icon fyne.Resource, w fyne.Window) *container.Split
Owned asset tab layout
- tag for log print
- assets is array of widgets used for asset selections
- menu_icon resources for side menus
- w for main window dialog
func PlaceNFAMint ¶
func PlaceNFAMint(tag string, window fyne.Window) fyne.CanvasObject
Place objects for NFA minting of collections or single mint
func RateConfirm ¶
Confirmation for a SCID rating
func ReadDreamsConfig ¶
Read dReams platform config.json file
- tag for log print
- Sets up directory if none exists
func RestartGif ¶
func RestartGif(g *xwidget.AnimatedGif)
Main gif seems to stop when hidden for 5min+ will use this for now to check if running and restart
func ReturnAssetCount ¶
func ReturnAssetCount() (count int)
func ReturnEnabledG45s ¶
func ReturnEnabledNFAs ¶
func RunNFAMarket ¶
func RunNFAMarket(tag string, quit, done chan struct{}, connect_box *dwidget.DeroRpcEntries)
Full routine for NFA market and scanning wallet for NFAs, can use PlaceAssets() and PlaceMarket() layouts
- tag for log print
- quit for exit chan
- connected box for DeroRpcEntries
func SearchNFAsBy ¶
Search NFAs in index by name or collection
func SendMessageMenu ¶
func SendMessageMenu(dest string, window_icon fyne.Resource)
Send Dero message menu
func SetUpNFACreation ¶
Set up NFA-Creation directory with sub directory for collection or single asset, which contains sub directories for asset, bas, icon, cover and sign files
func StartDreamsIndicators ¶
func StartDreamsIndicators(add []DreamsIndicator) fyne.CanvasObject
dReams app status indicators for wallet, daemon, Gnomon and services
- Pass further DreamsIndicators to add
func StartGnomon ¶
Start Gnomon indexer with or without search filters
- End point from rpc.Daemon.Rpc
- tag for log print
- dbtype defines gravdb or boltdb
- Passing nil filters with Gnomes.Trim false will run a full Gnomon index
- custom func() is for adding specific SCID to index on Gnomon start, Gnomes.Trim false will bypass
- lower defines the lower limit of indexed SCIDs from Gnomon search filters before custom adds
- upper defines the higher limit when custom indexed SCIDs exist already
func StartIndicators ¶
func StartIndicators() fyne.CanvasObject
Dero status indicators for wallet, daemon and Gnomon
func StopIndicators ¶
func StopIndicators(these []DreamsIndicator)
Stop dReams app status indicators
func ToolsBadge ¶
func ToolsBadge(res fyne.Resource) fyne.CanvasObject
Badge for dReam Tools enabled assets
- Pass res for frame resource
func TrimStringLen ¶
Trim input string to specified len
func WriteDreamsConfig ¶
Save dReams config.json file for platform wide dApp use
Types ¶
type Agent ¶
type Agent struct { Attributes struct { Color string `json:"Color"` IChing string `json:"I-ching"` } `json:"attributes"` ID int `json:"id"` Image string `json:"image"` Name string `json:"name"` }
Dero A-Team metadata struct
type DreamsIndicator ¶
type IntroText ¶
type IntroText struct {
// contains filtered or unexported fields
}
func MakeMenuIntro ¶
Create menu tree items for dApps
type Seal ¶
type Seal struct { Attributes struct { Eyes string `json:"Eyes"` FacialHair string `json:"Facial Hair"` HairAndHats string `json:"Hair And Hats"` Shirts string `json:"Shirts"` } `json:"attributes"` ID int `json:"id"` Image string `json:"image"` Name string `json:"name"` Score float64 `json:"score"` }
Dero Seals metadata struct