DenomUgnot
untyped stringValue
"ugnot"
DefaultNormalBondUgnot
int64// 100 GNOT
Value
100000000
DefaultPromoBondUgnot
int64// same unless StartPromo changes it
Value
100000000
DefaultPromoDuration
int64// 10 days (seconds)
Value
864000
StatusNormal
untyped bigintValue
(0 <untyped> bigint)
StatusPromo
untyped bigintValue
(1 <untyped> bigint)
inited
boolValue
true
admin
.uverse.addressValue
<gnolang.StringValue>
normalBondUgnot
int64Value
150000000
promoBondUgnot
int64Value
100000000
promoEndsAt
int64Value
0
promoEnded
bool// admin force-end (or auto after window)
Value
true
promoStartedAt
int64Value
0
Init
func()Init sets admin (deploy EOA) and default bond amounts. Call once.
- OID
- 091891…51d9:10
Init details
requireInit
func()- OID
- 091891…51d9:12
requireInit details
requireAdmin
func()- OID
- 091891…51d9:13
requireAdmin details
Admin
func() stringAdmin returns the admin (deploy) address.
- OID
- 091891…51d9:14
Admin details
TransferAdmin
func(newAdmin .uverse.address)TransferAdmin rotates admin (current admin only).
- OID
- 091891…51d9:15
TransferAdmin details
IsPromoActive
func() boolIsPromoActive reports whether the promo window is currently in force.
- OID
- 091891…51d9:16
IsPromoActive details
CurrentBondUgnot
func() int64CurrentBondUgnot is the create bond pad must require (cross-safe read). Pad: if sent \< CurrentBondUgnot() → panic underpaid.
- OID
- 091891…51d9:17
CurrentBondUgnot details
NormalBondUgnot
func() int64NormalBondUgnot returns the post-promo / default bond.
- OID
- 091891…51d9:18
NormalBondUgnot details
PromoBondUgnot
func() int64PromoBondUgnot returns the promo-period bond amount (may be inactive).
- OID
- 091891…51d9:19
PromoBondUgnot details
PromoEndsAt
func() int64PromoEndsAt returns unix end of promo (0 if never started).
- OID
- 091891…51d9:20
PromoEndsAt details
PromoSecondsLeft
func() int64PromoSecondsLeft returns remaining promo seconds (0 if inactive).
- OID
- 091891…51d9:21
PromoSecondsLeft details
Status
func() intStatus: 0=normal 1=promo active.
- OID
- 091891…51d9:22
Status details
BondInfo
func() stringBondInfo: status|currentUgnot|normalUgnot|promoUgnot|endsAt|secondsLeft|admin
- OID
- 091891…51d9:23
BondInfo details
StartPromo
func(promoUgnot int64, durationSec int64)StartPromo begins a promo window from now. promoUgnot: bond during promo (e.g. 20e6 ≈ $20 at $1/GNOT). 0 → keep current promoBondUgnot. durationSec: window length. 0 → DefaultPromoDuration (10 days).
- OID
- 091891…51d9:24
StartPromo details
EndPromo
func()EndPromo forces normal bond immediately (deploy admin).
- OID
- 091891…51d9:25
EndPromo details
SetNormalBond
func(ugnot int64)SetNormalBond updates the post-promo bond (default 2 GNOT).
- OID
- 091891…51d9:26
SetNormalBond details
SetPromoBond
func(ugnot int64)SetPromoBond updates promo amount without restarting the clock. Use to re-target ~$20 when GNOT price moves during the window.
- OID
- 091891…51d9:27
SetPromoBond details
ExtendPromo
func(extraSec int64)ExtendPromo adds seconds to the current end (or starts from now if inactive).
- OID
- 091891…51d9:28
ExtendPromo details
Render
func(path string) string- OID
- 091891…51d9:29