denom
untyped stringValue
"ugnot"
kindInstant
untyped stringValue
"instant"
kindPlan
untyped stringValue
"plan"
version
untyped stringValue
"warmpocket:v1"
Gift
typeGift is the persisted record of one envelope or one recurring plan.
Value
warmpocket.Gift
gifts
map[string]*warmpocket.Gift- OID
- 0b2c44…dad0:4
gifts details
codes
map[string]string- OID
- 0b2c44…dad0:6
codes details
order
[]string- OID
- 0b2c44…dad0:69
order details
seq
int64Value
13
requireUser
func() .uverse.address- OID
- 0b2c44…dad0:9
requireUser details
requireSend
func(amount int64)requireSend verifies that the transaction attached exactly the expected amount.
- OID
- 0b2c44…dad0:11
requireSend details
pay
func(to .uverse.address, amount int64)pay sends ugnot from the realm balance to the given address.
- OID
- 0b2c44…dad0:12
pay details
validateCode
func(code string)- OID
- 0b2c44…dad0:13
validateCode details
parseRecipient
func(recipient string) .uverse.address- OID
- 0b2c44…dad0:14
parseRecipient details
makeCode
func(seed string) string- OID
- 0b2c44…dad0:15
makeCode details
save
func(g *warmpocket.Gift) string- OID
- 0b2c44…dad0:16
save details
CreateInstant
func(code string, title string, theme string, recipient string, amount int64) stringCreateInstant funds a single-use envelope. A recipient address restricts the claim to one wallet; leaving it empty turns the code into a bearer link.
- OID
- 0b2c44…dad0:17
CreateInstant details
CreatePlan
func(code string, title string, theme string, recipient string, amount int64, periodMonths int, installments int, startUnix int64) stringCreatePlan funds a recurring allowance. Funds are held by the realm and released one installment at a time when the recipient calls Claim.
- OID
- 0b2c44…dad0:18
CreatePlan details
addMonths
func(unix int64, months int) int64- OID
- 0b2c44…dad0:19
addMonths details
Claim
func(code string) stringClaim pays one installment to the caller. For an instant gift the envelope is marked claimed; for a plan the next due date is advanced by its period.
- OID
- 0b2c44…dad0:20
Claim details
Cancel
func(id string) stringCancel refunds all unclaimed funds to the original sender.
- OID
- 0b2c44…dad0:21
Cancel details
Ping
func() string- OID
- 0b2c44…dad0:22
Ping details
Count
func() int- OID
- 0b2c44…dad0:23
Count details
IDAt
func(i int) string- OID
- 0b2c44…dad0:24
IDAt details
clean
func(s string) string- OID
- 0b2c44…dad0:25
clean details
flag
func(v bool) string- OID
- 0b2c44…dad0:26
flag details
recipientText
func(a .uverse.address) string- OID
- 0b2c44…dad0:27
recipientText details
GetGift
func(id string) stringGetGift returns pipe-separated fields: id|kind|sender|recipient|code|title|theme|amount|remaining|period|installments|paid|nextDue|createdAt|claimed|canceled
- OID
- 0b2c44…dad0:28
GetGift details
GetByCode
func(code string) string- OID
- 0b2c44…dad0:29
GetByCode details
Render
func(path string) stringRender gives gnoweb a usable, text-only dashboard for the realm.
- OID
- 0b2c44…dad0:30