test1
.uverse.addresstest1 receives the initial mint at construction.
Value
<gnolang.StringValue>
lockDuration
int64lockDuration is the number of blocks that must pass between Unvault and Redeem.
Value
100
Token
*v0.TokenToken and FooVault-equivalent state are exported for reading; privateLedger stays unexported (unrestricted mint/burn/transfer).
- OID
- 085643…0336:22
Token details
privateLedger
*v0.PrivateLedgerToken and FooVault-equivalent state are exported for reading; privateLedger stays unexported (unrestricted mint/burn/transfer).
- OID
- 085643…0336:24
privateLedger details
vaultAddr
.uverse.address// address holding all deposited tokens
Value
<gnolang.StringValue>
vaulted
map[.uverse.address]uint// still-locked deposits per owner
- OID
- 085643…0336:8
vaulted details
pending
map[.uverse.address]uint// amount marked for withdrawal
- OID
- 085643…0336:10
pending details
unlockAt
map[.uverse.address]int64// block height at which pending unlocks
- OID
- 085643…0336:12
unlockAt details
recoverOf
map[.uverse.address].uverse.address// recovery address per depositor
- OID
- 085643…0336:14
recoverOf details
init.9
func()- OID
- 085643…0336:15
init.9 details
MyBalance
func() int64- OID
- 085643…0336:17
MyBalance details
Deposit
func(amount uint, recoverAddress .uverse.address)Deposit moves amount tokens from the caller into the vault, recording a recovery address for later use.
- OID
- 085643…0336:18
Deposit details
Recover
func(target .uverse.address)Recover sends target's still-locked deposit to its recorded recovery address.
- OID
- 085643…0336:19
Recover details
Unvault
func(amount uint)Unvault marks amount of the caller's deposit for withdrawal and starts the lock timer.
- OID
- 085643…0336:20
Unvault details
Redeem
func(amount uint)Redeem transfers amount of the caller's matured pending withdrawal back to the caller.
- OID
- 085643…0336:21