MCPcopy Create free account
hub / github.com/DEROFDN/Engram / layoutAssetManager

Function layoutAssetManager

layouts.go:4223–5216  ·  view source on GitHub ↗
(scid string)

Source from the content-addressed store, hash-verified

4221}
4222
4223func layoutAssetManager(scid string) fyne.CanvasObject {
4224 captureDomain := session.Domain
4225 session.Domain = "app.manager"
4226
4227 wSpacer := widget.NewLabel(" ")
4228
4229 frame := &iframe{}
4230
4231 rectBox := canvas.NewRectangle(color.Transparent)
4232 rectBox.SetMinSize(fyne.NewSize(ui.MaxWidth*0.99, ui.MaxHeight*0.58))
4233 rectWidth90 := canvas.NewRectangle(color.Transparent)
4234 rectWidth90.SetMinSize(fyne.NewSize(ui.Width, 10))
4235
4236 heading := canvas.NewText("Asset Manager", colors.Green)
4237 heading.TextSize = 22
4238 heading.Alignment = fyne.TextAlignCenter
4239 heading.TextStyle = fyne.TextStyle{Bold: true}
4240
4241 rectSpacer := canvas.NewRectangle(color.Transparent)
4242 rectSpacer.SetMinSize(fyne.NewSize(6, 5))
4243
4244 labelSigner := canvas.NewText(" SMART CONTRACT AUTHOR", colors.Gray)
4245 labelSigner.TextSize = 14
4246 labelSigner.Alignment = fyne.TextAlignLeading
4247 labelSigner.TextStyle = fyne.TextStyle{Bold: true}
4248
4249 labelOwner := canvas.NewText(" SMART CONTRACT OWNER", colors.Gray)
4250 labelOwner.TextSize = 14
4251 labelOwner.Alignment = fyne.TextAlignLeading
4252 labelOwner.TextStyle = fyne.TextStyle{Bold: true}
4253
4254 labelSCID := canvas.NewText(" SMART CONTRACT ID", colors.Gray)
4255 labelSCID.TextSize = 14
4256 labelSCID.Alignment = fyne.TextAlignLeading
4257 labelSCID.TextStyle = fyne.TextStyle{Bold: true}
4258
4259 labelBalance := canvas.NewText(" ASSET BALANCE", colors.Gray)
4260 labelBalance.TextSize = 14
4261 labelBalance.Alignment = fyne.TextAlignLeading
4262 labelBalance.TextStyle = fyne.TextStyle{Bold: true}
4263
4264 labelTransfer := canvas.NewText(" TRANSFER ASSET", colors.Gray)
4265 labelTransfer.TextSize = 14
4266 labelTransfer.Alignment = fyne.TextAlignLeading
4267 labelTransfer.TextStyle = fyne.TextStyle{Bold: true}
4268
4269 labelExecute := canvas.NewText(" EXECUTE ACTION", colors.Gray)
4270 labelExecute.TextSize = 14
4271 labelExecute.Alignment = fyne.TextAlignLeading
4272 labelExecute.TextStyle = fyne.TextStyle{Bold: true}
4273
4274 var ringsize uint64
4275 var err error
4276
4277 options := []string{"Anonymity Set: 2 (None)", "Anonymity Set: 4 (Low)", "Anonymity Set: 8 (Low)", "Anonymity Set: 16 (Recommended)", "Anonymity Set: 32 (Medium)", "Anonymity Set: 64 (High)", "Anonymity Set: 128 (High)"}
4278
4279 selectRingSize := widget.NewSelect(options, nil)
4280 selectRingSize.OnChanged = func(s string) {

Callers 3

HandleTELALinksFunction · 0.85
layoutAssetExplorerFunction · 0.85
layoutMyAssetsFunction · 0.85

Calls 14

getContractHeaderFunction · 0.85
handleImageURLFunction · 0.85
getTxDataFunction · 0.85
checkUsernameFunction · 0.85
transferAssetFunction · 0.85
StoreEncryptedValueFunction · 0.85
sessionDomainToStringFunction · 0.85
removeOverlaysFunction · 0.85
layoutTransitionFunction · 0.85
layoutAssetExplorerFunction · 0.85
layoutPMFunction · 0.85
executeContractFunctionFunction · 0.85

Tested by

no test coverage detected