github.com/lino-network/lino@v0.6.11/x/developer/model/developer.go (about) 1 package model 2 3 import ( 4 types "github.com/lino-network/lino/types" 5 ) 6 7 // Developer - developer is account with developer deposit, can get developer inflation 8 type Developer struct { 9 Username types.AccountKey `json:"username"` 10 // Deprecated field, use stakein amount as requirement since upgrade2. 11 Deposit types.Coin `json:"deposit"` 12 AppConsumption types.MiniDollar `json:"app_consumption"` 13 Website string `json:"web_site"` 14 Description string `json:"description"` 15 AppMetaData string `json:"app_meta_data"` 16 IsDeleted bool `json:"is_deleted"` 17 NAffiliated int64 `json:"n_affiliated"` 18 } 19 20 // AppIDA - app issued IDA. 21 type AppIDA struct { 22 App types.AccountKey `json:"app"` 23 Name string `json:"name"` 24 MiniIDAPrice types.MiniDollar `json:"price"` 25 IsRevoked bool `json:"is_revoked"` 26 RevokeCoinPrice types.MiniDollar `json:"revoke_coin_price"` // the price of one coin upon revoke. 27 } 28 29 // AppIDAStats - app ida stats 30 type AppIDAStats struct { 31 Total types.MiniDollar `json:"total"` 32 } 33 34 // Role - User Role 35 type Role struct { 36 AffiliatedApp types.AccountKey `json:"aa"` 37 } 38 39 // IDABank - IDA's bank 40 type IDABank struct { 41 Balance types.MiniDollar `json:"b"` 42 Unauthed bool `json:"unauthed,omitempty"` 43 } 44 45 type ReservePool struct { 46 Total types.Coin `json:"total"` 47 TotalMiniDollar types.MiniDollar `json:"total_minidollar"` 48 }