denomUgnot
untyped stringValue
"ugnot"
wallet
typeValue
agentwallet.wallet
wallets
v0.Tree// owner.String() -> \*wallet
- OID
- 0122b1…8ab8:4
wallets details
byAgent
v0.Tree// agent.String() -> owner.String()
- OID
- 0122b1…8ab8:6
byAgent details
poolUgnot
int64Value
0
poolUnits
int64Value
0
poolShares
int64Value
0
Open
func(agent .uverse.address)Open binds a fresh agent address to the caller's Agent ID. The agent address must be a different key from the owner.
- OID
- 0122b1…8ab8:10
Open details
Fund
func()Fund adds the ugnot attached to this call to the owner's agent wallet.
- OID
- 0122b1…8ab8:12
Fund details
SetPolicy
func(txCap int64, allowance int64, actions string, names string)SetPolicy replaces the per-action cap, the remaining allowance, and the allowlists. actions and names are comma-separated. The owner calls this.
- OID
- 0122b1…8ab8:13
SetPolicy details
Arm
func()Arm lets the agent address submit actions.
- OID
- 0122b1…8ab8:14
Arm details
Disarm
func()Disarm stops the agent address until the owner arms it again.
- OID
- 0122b1…8ab8:15
Disarm details
setArmed
func(armed bool)- OID
- 0122b1…8ab8:16
setArmed details
Act
func(action string, dest string, amount int64)Act moves funds already inside the agent wallet. The caller must be the bound agent address, not the owner.
- OID
- 0122b1…8ab8:17
Act details
Recover
func()Recover returns the owner's agent funds to the owner and disarms the agent.
- OID
- 0122b1…8ab8:18
Recover details
Free
func(owner .uverse.address) int64Free returns the spendable ugnot inside the owner's agent wallet.
- OID
- 0122b1…8ab8:19
Free details
transfer
func(w *agentwallet.wallet, dest string, amount int64)- OID
- 0122b1…8ab8:20
transfer details
swapBuy
func(w *agentwallet.wallet, amount int64)- OID
- 0122b1…8ab8:21
swapBuy details
swapSell
func(w *agentwallet.wallet, amount int64)- OID
- 0122b1…8ab8:22
swapSell details
addLiquidity
func(w *agentwallet.wallet, amount int64)- OID
- 0122b1…8ab8:23
addLiquidity details
removeLiquidity
func(w *agentwallet.wallet, shares int64, capped bool)- OID
- 0122b1…8ab8:24
removeLiquidity details
takeFree
func(w *agentwallet.wallet, amount int64)- OID
- 0122b1…8ab8:25
takeFree details
moveBack
func(w *agentwallet.wallet, bucket *int64, amount int64)- OID
- 0122b1…8ab8:26
moveBack details
quoteOut
func(reserveIn int64, reserveOut int64, amountIn int64) int64- OID
- 0122b1…8ab8:27
quoteOut details
mustOwner
func(caller .uverse.address) *agentwallet.wallet- OID
- 0122b1…8ab8:28
mustOwner details
ownerWallet
func(caller .uverse.address) *agentwallet.wallet- OID
- 0122b1…8ab8:29
ownerWallet details
walletByAgent
func(caller .uverse.address) *agentwallet.wallet- OID
- 0122b1…8ab8:30
walletByAgent details
groupOf
func(action string) string- OID
- 0122b1…8ab8:31
groupOf details
allowed
func(list []string, want string) bool- OID
- 0122b1…8ab8:32
allowed details
cleanActions
func(items []string) []string- OID
- 0122b1…8ab8:33
cleanActions details
cleanNames
func(items []string) []string- OID
- 0122b1…8ab8:34
cleanNames details
splitCSV
func(s string) []string- OID
- 0122b1…8ab8:35