Denom
untyped stringDenom is the only coin this realm accepts: ugnot (GNOT).
Value
"ugnot"
KeeperFeeBPS
untyped bigintKeeperFeeBPS is the keeper's cut of a released vault, in basis points. 200 bps = 2%.
Value
(200 <untyped> bigint)
MinCheckInIntervalSeconds
untyped bigintMinCheckInIntervalSeconds is the shortest check-in window: 60s. It exists so the demo can fast-forward through a full lifecycle in about a minute.
Value
(60 <untyped> bigint)
MaxCheckInIntervalSeconds
untyped bigintMaxCheckInIntervalSeconds is the longest check-in window: 365 days.
Value
(31536000 <untyped> bigint)
vaults
v0.Tree// vault ID (string) -> \*Vault
- OID
- 0e78a5…a348:4
vaults details
nextVault
intValue
2
Vault
typeVault is one inheritance vault.
Value
heirrealm.Vault
CreateVault
func(beneficiary .uverse.address, intervalSeconds int64) intCreateVault opens a vault for beneficiary with a check-in window of intervalSeconds. Attach the initial deposit with -send ugnot. The caller becomes the owner. The beneficiary must not be the owner. The deposit must be more than 0 ugnot.
- OID
- 0e78a5…a348:6
CreateVault details
Deposit
func(id int) int64Deposit tops up an active vault. Only the owner may deposit, and only ugnot is accepted. The check-in timer is NOT reset by a deposit — only CheckIn resets it.
- OID
- 0e78a5…a348:8
Deposit details
CheckIn
func(id int) time.TimeCheckIn resets the vault's deadline to now + the check-in interval. Only the owner may check in, only while the vault is active, and only BEFORE the deadline has passed. After the deadline the vault is claimable and checking in can no longer save it.
- OID
- 0e78a5…a348:9
CheckIn details
TriggerRelease
func(id int) (beneficiaryShare int64, keeperFee int64)TriggerRelease releases an expired vault. Anyone may call it — that is the keeper's job — but the keeper may not be the owner or the beneficiary, and the deadline must have passed. The keeper earns 2% of the balance; the beneficiary receives the remaining 98%. The keeper is paid for doing the work, never a custodian: they cannot release early, change the beneficiary, or touch the funds before expiry.
- OID
- 0e78a5…a348:10
TriggerRelease details
Cancel
func(id int) int64Cancel closes an active vault and refunds the full balance to the owner. Only the owner may cancel, and only BEFORE the deadline. After expiry the funds belong to the beneficiary and the owner can no longer claw them back.
- OID
- 0e78a5…a348:11
Cancel details
GetVault
func(id int) heirrealm.VaultGetVault returns a copy of the vault with the given ID. Read-only: callable as a query, no transaction needed.
- OID
- 0e78a5…a348:12
GetVault details
VaultCount
func() intVaultCount returns the number of vaults ever created.
- OID
- 0e78a5…a348:13
VaultCount details
requireActive
func(v *heirrealm.Vault)requireActive panics unless the vault is still live.
- OID
- 0e78a5…a348:14
requireActive details
mustGetVault
func(id int) *heirrealm.VaultmustGetVault loads a vault by ID or panics.
- OID
- 0e78a5…a348:15
mustGetVault details
Render
func(path string) stringRender is the gnoweb homepage for the realm. It lists every vault with its owner, beneficiary, balance, deadline and status, plus a short how-to. A single vault can be viewed at /\<id>.
- OID
- 0e78a5…a348:16
Render details
renderVault
func(v *heirrealm.Vault) string- OID
- 0e78a5…a348:18