Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

agentwallet state

Back to all declarations

denomUgnot

untyped string

Value

"ugnot"

wallet

type

Value

agentwallet.wallet

wallets

v0.Tree

// owner.String() -> \*wallet

Open
OID
0122b1…8ab8:4
wallets details

Inspect ref

byAgent

v0.Tree

// agent.String() -> owner.String()

Open
OID
0122b1…8ab8:6
byAgent details

Inspect ref

poolUgnot

int64

Value

0

poolUnits

int64

Value

0

poolShares

int64

Value

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.

Open
OID
0122b1…8ab8:10
Open details

Inspect func

Fund

func()

Fund adds the ugnot attached to this call to the owner's agent wallet.

Open
OID
0122b1…8ab8:12
Fund details

Inspect func

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.

Open
OID
0122b1…8ab8:13
SetPolicy details

Inspect func

Arm

func()

Arm lets the agent address submit actions.

Open
OID
0122b1…8ab8:14
Arm details

Inspect func

Disarm

func()

Disarm stops the agent address until the owner arms it again.

Open
OID
0122b1…8ab8:15
Disarm details

Inspect func

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.

Open
OID
0122b1…8ab8:17
Act details

Inspect func

Recover

func()

Recover returns the owner's agent funds to the owner and disarms the agent.

Open
OID
0122b1…8ab8:18
Recover details

Inspect func

Free

func(owner .uverse.address) int64

Free returns the spendable ugnot inside the owner's agent wallet.

Open
OID
0122b1…8ab8:19
Free details

Inspect func

transfer

func(w *agentwallet.wallet, dest string, amount int64)
Open
OID
0122b1…8ab8:20
transfer details

Inspect func

swapBuy

func(w *agentwallet.wallet, amount int64)
Open
OID
0122b1…8ab8:21
swapBuy details

Inspect func

swapSell

func(w *agentwallet.wallet, amount int64)
Open
OID
0122b1…8ab8:22
swapSell details

Inspect func

addLiquidity

func(w *agentwallet.wallet, amount int64)
Open
OID
0122b1…8ab8:23
addLiquidity details

Inspect func

removeLiquidity

func(w *agentwallet.wallet, shares int64, capped bool)
Open
OID
0122b1…8ab8:24
removeLiquidity details

Inspect func

takeFree

func(w *agentwallet.wallet, amount int64)
Open
OID
0122b1…8ab8:25
takeFree details

Inspect func

moveBack

func(w *agentwallet.wallet, bucket *int64, amount int64)
Open
OID
0122b1…8ab8:26
moveBack details

Inspect func

quoteOut

func(reserveIn int64, reserveOut int64, amountIn int64) int64
Open
OID
0122b1…8ab8:27
quoteOut details

Inspect func

mustOwner

func(caller .uverse.address) *agentwallet.wallet
Open
OID
0122b1…8ab8:28
mustOwner details

Inspect func

ownerWallet

func(caller .uverse.address) *agentwallet.wallet
Open
OID
0122b1…8ab8:29
ownerWallet details

Inspect func

walletByAgent

func(caller .uverse.address) *agentwallet.wallet
Open
OID
0122b1…8ab8:30
walletByAgent details

Inspect func

groupOf

func(action string) string
Open
OID
0122b1…8ab8:31
groupOf details

Inspect func

allowed

func(list []string, want string) bool
Open
OID
0122b1…8ab8:32
allowed details

Inspect func

cleanActions

func(items []string) []string
Open
OID
0122b1…8ab8:33
cleanActions details

Inspect func

cleanNames

func(items []string) []string
Open
OID
0122b1…8ab8:34
cleanNames details

Inspect func

splitCSV

func(s string) []string
Open
OID
0122b1…8ab8:35
splitCSV details

Inspect func
denomUgnot : untyped string ="ugnot"
wallet : type =agentwallet.wallet
wallets : v0.Tree Inspect
byAgent : v0.Tree Inspect
poolUgnot : int64 =0
poolUnits : int64 =0
poolShares : int64 =0
Open : func(agent .uverse.address) Inspect
Fund : func() Inspect
SetPolicy : func(txCap int64, allowance int64, actions string, names string) Inspect
Arm : func() Inspect
Disarm : func() Inspect
setArmed : func(armed bool) Inspect
Act : func(action string, dest string, amount int64) Inspect
Recover : func() Inspect
Free : func(owner .uverse.address) int64 Inspect
transfer : func(w *agentwallet.wallet, dest string, amount int64) Inspect
swapBuy : func(w *agentwallet.wallet, amount int64) Inspect
swapSell : func(w *agentwallet.wallet, amount int64) Inspect
addLiquidity : func(w *agentwallet.wallet, amount int64) Inspect
removeLiquidity : func(w *agentwallet.wallet, shares int64, capped bool) Inspect
takeFree : func(w *agentwallet.wallet, amount int64) Inspect
moveBack : func(w *agentwallet.wallet, bucket *int64, amount int64) Inspect
quoteOut : func(reserveIn int64, reserveOut int64, amountIn int64) int64 Inspect
mustOwner : func(caller .uverse.address) *agentwallet.wallet Inspect
ownerWallet : func(caller .uverse.address) *agentwallet.wallet Inspect
walletByAgent : func(caller .uverse.address) *agentwallet.wallet Inspect
groupOf : func(action string) string Inspect
allowed : func(list []string, want string) bool Inspect
cleanActions : func(items []string) []string Inspect
cleanNames : func(items []string) []string Inspect
splitCSV : func(s string) []string Inspect