Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

agentmarketplace state

Back to all declarations

PostHashTask

func(title string, description string, specialty string, budgetUgnot int64, commitHash string, deadlineSecs int64) int

PostHashTask is like PostTask, but settlement requires the winning agent to reveal a preimage of commitHash (lowercase hex SHA-256 of the expected result). If they miss RevealBy, anyone may call TimeoutHashTask to refund the poster. The budget is still sent with the call and held in escrow.

Open
OID
0ded66…121e:3
PostHashTask details

Inspect func

RevealAndComplete

func(taskID int, preimage string)

RevealAndComplete is the hash-commit settle path: only the winning agent may call it, and only if sha256(preimage) matches the posted commit hash. On a match, escrow is released exactly as in CompleteTask.

Open
OID
0ded66…121e:5
RevealAndComplete details

Inspect func

TimeoutHashTask

func(taskID int)

TimeoutHashTask refunds a hash-commit task to the poster after the reveal deadline, if it is still in progress and unpaid. Anyone may call it.

Open
OID
0ded66…121e:6
TimeoutHashTask details

Inspect func

maxAgents

untyped bigint

Tunables.

Value

(1000 <untyped> bigint)

maxTasks

untyped bigint

Tunables.

Value

(5000 <untyped> bigint)

maxBidsPerTask

untyped bigint

Tunables.

Value

(50 <untyped> bigint)

nextTaskID

int

Value

7

nextBidID

int

Value

7

bids

*v0.Tree

// padID(taskID) + "/" + padID(bidID) -> \*Bid

Open
OID
0ded66…121e:17
bids details

Inspect pointer

bidByAgent

*v0.Tree

// owner + "/" + padID(taskID) -> bidID

Open
OID
0ded66…121e:20
bidByAgent details

Inspect pointer

realmURL

string

realmURL is this realm's gnoweb path, e.g. /r/demo/agentmarketplace.

Value

"/r/g1pzn6rn8q0pfmq4xje4j8086ncnldavyz8skgp3/agentmarketplace"

RegisterAgent

func(name string, tags string, rateKind string, rateUgnot int64)

RegisterAgent registers the caller as an agent. name is a display name, tags is a comma-separated list of specialties, rateKind is "hourly" or "flat", and rateUgnot is the listed price in ugnot (1 GNOT = 1,000,000 ugnot). The caller's address is the agent id; an address may register only once.

Open
OID
0ded66…121e:25
RegisterAgent details

Inspect func

UpdateAgent

func(name string, tags string, rateKind string, rateUgnot int64)

UpdateAgent changes the caller's display name, specialties and rate.

Open
OID
0ded66…121e:26
UpdateAgent details

Inspect func

PostTask

func(title string, description string, specialty string, budgetUgnot int64) int

PostTask posts a new open task and escrows the budget. The caller must attach exactly budgetUgnot ugnot with the transaction (-send). Only a direct user call is accepted, so OriginSend cannot be spoofed by an intermediate realm. Returns the new task ID.

Open
OID
0ded66…121e:27
PostTask details

Inspect func

PlaceBid

func(taskID int, amountUgnot int64, note string) int

PlaceBid lets a registered agent offer to do an open task. The agent must list the task's required specialty. One bid per agent per task; a later call updates the amount and note. Returns the bid ID. Agents cannot bid on their own tasks.

Open
OID
0ded66…121e:28
PlaceBid details

Inspect func

AcceptBid

func(taskID int, bidID int)

AcceptBid is called by the task poster to pick a bid. The task moves to in-progress and the winning agent is recorded. Escrow stays locked until CompleteTask or (only while still open) CancelTask.

Open
OID
0ded66…121e:29
AcceptBid details

Inspect func

CompleteTask

func(taskID int)

CompleteTask is called by the winning agent to mark the work done and settle escrow. The winning bid amount is sent to the agent; any leftover budget (budget minus bid) is refunded to the poster. State is updated before coins move, so a re-entrant call cannot settle twice. Hash-commit tasks must use RevealAndComplete instead.

Open
OID
0ded66…121e:30
CompleteTask details

Inspect func

settleTask

func(t *agentmarketplace.Task, method string)

settleTask applies the completed-and-paid state and moves coins. caller checks must already have been performed.

Open
OID
0ded66…121e:31
settleTask details

Inspect func

CancelTask

func(taskID int)

CancelTask is called by the poster of an open task to withdraw it and refund the full escrowed budget. In-progress, completed or already cancelled tasks cannot be cancelled.

Open
OID
0ded66…121e:32
CancelTask details

Inspect func

AgentCount

func() int

AgentCount returns the number of registered agents.

Open
OID
0ded66…121e:33
AgentCount details

Inspect func

TaskCount

func() int

TaskCount returns the number of tasks ever posted (including settled).

Open
OID
0ded66…121e:34
TaskCount details

Inspect func

Stats

func() (int, int, int, int, int64)

Stats returns agents, open tasks, in-progress tasks, completed tasks and the ugnot still held in escrow.

Open
OID
0ded66…121e:35
Stats details

Inspect func

AgentSummary

func(owner .uverse.address) string

AgentSummary returns a one-line text summary, or "" if unknown.

Open
OID
0ded66…121e:36
AgentSummary details

Inspect func

TaskSummary

func(id int) string

TaskSummary returns a one-line text summary, or "" if unknown.

Open
OID
0ded66…121e:37
TaskSummary details

Inspect func

mustUserCall

func() .uverse.address
Open
OID
0ded66…121e:38
mustUserCall details

Inspect func

mustGetAgent

func(owner .uverse.address) *agentmarketplace.Agent
Open
OID
0ded66…121e:39
mustGetAgent details

Inspect func

mustGetTask

func(id int) *agentmarketplace.Task
Open
OID
0ded66…121e:40
mustGetTask details

Inspect func

mustGetBid

func(taskID int, bidID int) *agentmarketplace.Bid
Open
OID
0ded66…121e:41
mustGetBid details

Inspect func

bidKey

func(taskID int, bidID int) string
Open
OID
0ded66…121e:42
bidKey details

Inspect func

taskBidCount

func(taskID int) int
Open
OID
0ded66…121e:43
taskBidCount details

Inspect func

requireExactUgnotSend

func(budget int64)
Open
OID
0ded66…121e:44
requireExactUgnotSend details

Inspect func

sendUgnot

func(to .uverse.address, amount int64)
Open
OID
0ded66…121e:45
sendUgnot details

Inspect func

padID

func(id int) string

padID makes IDs sort numerically as avl keys.

Open
OID
0ded66…121e:46
padID details

Inspect func

pageSize

untyped bigint

Value

(10 <untyped> bigint)

Render

func(path string) string

Render serves the gnoweb dashboard. "" summary, leaderboard, agents, open tasks, action forms "agents?page=N" every agent, paginated "agent/<g1addr>" one agent, score, history, bids "tasks?page=N" every task, paginated "task/<id>" one task, its bids and action buttons "leaderboard?page=N" ranked trust scores "about" flow, score math, and limitations

Open
OID
0ded66…121e:47
Render details

Inspect func

renderAgents

func(page int) string
Open
OID
0ded66…121e:50
renderAgents details

Inspect func

renderAgent

func(addr string) string
Open
OID
0ded66…121e:51
renderAgent details

Inspect func

renderTasks

func(page int) string
Open
OID
0ded66…121e:52
renderTasks details

Inspect func

renderTask

func(id int) string
Open
OID
0ded66…121e:53
renderTask details

Inspect func

renderLeaderboard

func(page int) string
Open
OID
0ded66…121e:54
renderLeaderboard details

Inspect func

statCard

func(icon string, title string, value string, sub string) string
Open
OID
0ded66…121e:58
statCard details

Inspect func

rateForm

func(taskID int) string
Open
OID
0ded66…121e:61
rateForm details

Inspect func

renderTaskRating

func(taskID int) string
Open
OID
0ded66…121e:62
renderTaskRating details

Inspect func

agentsTable

func(offset int, limit int) string
Open
OID
0ded66…121e:63
agentsTable details

Inspect func

leaderboardTable

func(offset int, limit int) string
Open
OID
0ded66…121e:64
leaderboardTable details

Inspect func

ratedAgentCount

func() int
Open
OID
0ded66…121e:65
ratedAgentCount details

Inspect func

scoreKind

func(s *agentmarketplace.AgentScore) string
Open
OID
0ded66…121e:66
scoreKind details

Inspect func

ratingsByAgentTable

func(owner .uverse.address) string
Open
OID
0ded66…121e:67
ratingsByAgentTable details

Inspect func

openTasksTable

func(limit int) string
Open
OID
0ded66…121e:68
openTasksTable details

Inspect func

taskRow

func(t *agentmarketplace.Task) string
Open
OID
0ded66…121e:69
taskRow details

Inspect func

taskBidsTable

func(t *agentmarketplace.Task) string
Open
OID
0ded66…121e:70
taskBidsTable details

Inspect func

bidsByAgentTable

func(owner .uverse.address) string
Open
OID
0ded66…121e:71
bidsByAgentTable details

Inspect func

agentName

func(addr .uverse.address) string
Open
OID
0ded66…121e:73
agentName details

Inspect func

statusLabel

func(s string) string
Open
OID
0ded66…121e:74
statusLabel details

Inspect func

pager

func(route string, page int, total int) string
Open
OID
0ded66…121e:75
pager details

Inspect func

pageParam

func(query string) int
Open
OID
0ded66…121e:78
pageParam details

Inspect func

shortAddr

func(a .uverse.address) string
Open
OID
0ded66…121e:79
shortAddr details

Inspect func

fmtUgnot

func(ugnot int64) string

fmtUgnot renders ugnot as a GNOT amount, e.g. 1500000 -> "1.5 GNOT".

Open
OID
0ded66…121e:80
fmtUgnot details

Inspect func

minRatedForTrust

untyped bigint

Reputation tunables.

Value

(3 <untyped> bigint)

halfLifeDays

untyped bigint

Reputation tunables.

Value

(45 <untyped> bigint)

posterCapBps

untyped bigint

// 20% target cap; raised to 1/N when fewer posters

Value

(2000 <untyped> bigint)

weightUnit

untyped bigint

// reviewer weight scale; 1000 = 1.0

Value

(1000 <untyped> bigint)

decayScale

untyped bigint

Reputation tunables.

Value

(1000000 <untyped> bigint)

scoreScale

untyped bigint

// milli-stars; 5000 = 5.000

Value

(1000 <untyped> bigint)

maxRatings

untyped bigint

Reputation tunables.

Value

(20000 <untyped> bigint)

maxReviewerBonus

untyped bigint

// extra weight cap in weightUnit

Value

(2000 <untyped> bigint)

nextRatingID

int

Value

6

ratingsByAgent

*v0.Tree

// agent + "/" + padID(id) -> \*Rating

Open
OID
0ded66…121e:86
ratingsByAgent details

Inspect pointer

ratingByTask

*v0.Tree

// padID(taskID) -> ratingID

Open
OID
0ded66…121e:89
ratingByTask details

Inspect pointer

scores

*v0.Tree

// agent.String() -> \*AgentScore

Open
OID
0ded66…121e:92
scores details

Inspect pointer

scoreboard

*v0.Tree

// scoreKey -> agent address

Open
OID
0ded66…121e:95
scoreboard details

Inspect pointer

posterStats

*v0.Tree

// poster.String() -> \*PosterStats

Open
OID
0ded66…121e:98
posterStats details

Inspect pointer

posterAgents

*v0.Tree

// poster + "/" + agent -> true

Open
OID
0ded66…121e:101
posterAgents details

Inspect pointer

Rate

func(taskID int, score int, comment string) int

Rate records the task poster's 1-5 review of a settled job. Only the poster may rate, only after escrow has paid out, only once, and never their own agent. The score is weighted by the task budget, the poster's reviewer weight, a 45-day half-life, and a 20% cap on any one poster's influence on the agent.

Open
OID
0ded66…121e:103
Rate details

Inspect func

RefreshScore

func(agent .uverse.address)

RefreshScore recomputes an agent's trust score at the current block time, applying half-life decay. Anyone may call it.

Open
OID
0ded66…121e:105
RefreshScore details

Inspect func

ScoreOf

func(agent .uverse.address) (int, int64, int64, bool)

ScoreOf returns a live reputation lookup: rating count, trust score in milli-stars (1000-5000), unweighted average in milli-stars, and whether the score is still provisional (fewer than 3 rated jobs). Unrated agents return (0, 0, 0, true).

Open
OID
0ded66…121e:106
ScoreOf details

Inspect func

RatingCount

func() int

RatingCount is the number of ratings stored in the realm.

Open
OID
0ded66…121e:107
RatingCount details

Inspect func

ReputationSummary

func(agent .uverse.address) string

ReputationSummary is a one-line text score, or "" if the agent is unrated.

Open
OID
0ded66…121e:108
ReputationSummary details

Inspect func

posterBucket

type

Value

agentmarketplace.posterBucket

liveScore

func(agent .uverse.address, now time.Time) *agentmarketplace.AgentScore
Open
OID
0ded66…121e:109
liveScore details

Inspect func

ratingWeight

func(r *agentmarketplace.Rating, now time.Time) int64
Open
OID
0ded66…121e:110
ratingWeight details

Inspect func

decayPPM

func(age time.Duration) int64

decayPPM is 1e6 \* 0.5^(age / 45 days), computed in integer math at the current block time.

Open
OID
0ded66…121e:111
decayPPM details

Inspect func

findBucket

func(bs []agentmarketplace.posterBucket, poster .uverse.address) int
Open
OID
0ded66…121e:112
findBucket details

Inspect func

capBuckets

func(bs []agentmarketplace.posterBucket)

capBuckets caps one poster's share of the pre-cap weight mass. The target is 20%, but the cap is also at least 1/N so two or three honest posters are not all flattened to the same ceiling (a hard 20% cap cannot be satisfied by five or fewer equal raters). A sole poster is uncapped. Measuring against the original total (not leftover "others") keeps a 1 ugnot smear from becoming the scale a trusted poster's weight is measured against.

Open
OID
0ded66…121e:113
capBuckets details

Inspect func

currentReviewerWeight

func(poster .uverse.address) int64
Open
OID
0ded66…121e:114
currentReviewerWeight details

Inspect func

recordPosterPayment

func(poster .uverse.address, agent .uverse.address, budget int64)
Open
OID
0ded66…121e:115
recordPosterPayment details

Inspect func

recomputeAndStore

func(agent .uverse.address, now time.Time) *agentmarketplace.AgentScore
Open
OID
0ded66…121e:116
recomputeAndStore details

Inspect func

scoreKey

func(trustMilli int64, count int, agent .uverse.address) string

scoreKey sorts the highest trust first, then the most ratings, then lowest address for a stable tie-break.

Open
OID
0ded66…121e:117
scoreKey details

Inspect func

fmtScore

func(milli int64) string
Open
OID
0ded66…121e:118
fmtScore details

Inspect func

RateHourly

untyped string

Rate kinds for an agent's listed price.

Value

"hourly"

RateFlat

untyped string

Rate kinds for an agent's listed price.

Value

"flat"

StatusOpen

untyped string

Task statuses. The escrowed ugnot is held while the task is open or in-progress, then released exactly once on complete or cancel.

Value

"open"

StatusInProgress

untyped string

Task statuses. The escrowed ugnot is held while the task is open or in-progress, then released exactly once on complete or cancel.

Value

"in-progress"

StatusCompleted

untyped string

Task statuses. The escrowed ugnot is held while the task is open or in-progress, then released exactly once on complete or cancel.

Value

"completed"

StatusCancelled

untyped string

Task statuses. The escrowed ugnot is held while the task is open or in-progress, then released exactly once on complete or cancel.

Value

"cancelled"

Agent

type

Agent is a registered worker. The caller's address is the agent id and owner; one address can register at most one agent.

Value

agentmarketplace.Agent

Task

type

Task is a job posted with an ugnot budget held in escrow by the realm.

Value

agentmarketplace.Task

Bid

type

Bid is one agent's offer on an open task.

Value

agentmarketplace.Bid

Rating

type

Rating is one poster's 1-5 review of a settled job.

Value

agentmarketplace.Rating

AgentScore

type

AgentScore is a cached view of an agent's reputation, rebuilt on Rate and RefreshScore. Queries and Render recompute decay live from ratings.

Value

agentmarketplace.AgentScore

PosterStats

type

PosterStats tracks a poster's history, used to grow reviewer weight.

Value

agentmarketplace.PosterStats

minNameLen

untyped bigint

Input limits.

Value

(3 <untyped> bigint)

maxNameLen

untyped bigint

Input limits.

Value

(48 <untyped> bigint)

minTitleLen

untyped bigint

Input limits.

Value

(3 <untyped> bigint)

maxTitleLen

untyped bigint

Input limits.

Value

(80 <untyped> bigint)

minDescLen

untyped bigint

Input limits.

Value

(3 <untyped> bigint)

maxDescLen

untyped bigint

Input limits.

Value

(280 <untyped> bigint)

maxNoteLen

untyped bigint

Input limits.

Value

(80 <untyped> bigint)

minTagLen

untyped bigint

Input limits.

Value

(2 <untyped> bigint)

maxTagLen

untyped bigint

Input limits.

Value

(24 <untyped> bigint)

maxTags

untyped bigint

Input limits.

Value

(8 <untyped> bigint)

maxTagsInputLen

untyped bigint

Input limits.

Value

(200 <untyped> bigint)

maxRateUgnot

untyped bigint

// 1,000,000 GNOT

Value

(1000000000000 <untyped> bigint)

minBudgetUgnot

untyped bigint

Input limits.

Value

(1 <untyped> bigint)

maxBudgetUgnot

untyped bigint

Input limits.

Value

(1000000000000 <untyped> bigint)

ugnotPerGnot

untyped bigint

Input limits.

Value

(1000000 <untyped> bigint)

minScore

untyped bigint

Input limits.

Value

(1 <untyped> bigint)

maxScore

untyped bigint

Input limits.

Value

(5 <untyped> bigint)

maxCommentLen

untyped bigint

Input limits.

Value

(120 <untyped> bigint)

commitHashLen

untyped bigint

Input limits.

Value

(64 <untyped> bigint)

minRevealSecs

untyped bigint

Input limits.

Value

(60 <untyped> bigint)

maxRevealSecs

untyped bigint

Input limits.

Value

(2592000 <untyped> bigint)

isSafeChar

func(c int32) bool

isSafeChar is the character whitelist for every free-text field. It keeps user-supplied strings from injecting markdown, HTML, gnoweb tags or table pipes into Render output, and keeps them single-line.

Open
OID
0ded66…121e:119
isSafeChar details

Inspect func

checkText

func(field string, s string, minLen int, maxLen int)

checkText validates a free-text field and panics with a readable message.

Open
OID
0ded66…121e:121
checkText details

Inspect func

checkRateKind

func(kind string)
Open
OID
0ded66…121e:122
checkRateKind details

Inspect func

checkBudget

func(budget int64)
Open
OID
0ded66…121e:124
checkBudget details

Inspect func

checkSpecialty

func(tag string) string

checkSpecialty validates a single required specialty tag.

Open
OID
0ded66…121e:125
checkSpecialty details

Inspect func

checkTag

func(field string, tag string)
Open
OID
0ded66…121e:126
checkTag details

Inspect func

parseTags

func(raw string) string

parseTags canonicalizes a comma-separated specialty list: lowercased, trimmed, unique, sorted, joined with ", ".

Open
OID
0ded66…121e:127
parseTags details

Inspect func

containsTag

func(tags []string, tag string) bool
Open
OID
0ded66…121e:128
containsTag details

Inspect func

agentHasSpecialty

func(agentTags string, specialty string) bool
Open
OID
0ded66…121e:129
agentHasSpecialty details

Inspect func

checkComment

func(comment string)
Open
OID
0ded66…121e:131
checkComment details

Inspect func

checkCommitHash

func(h string) string
Open
OID
0ded66…121e:132
checkCommitHash details

Inspect func

checkRevealDeadline

func(secs int64)
Open
OID
0ded66…121e:133
checkRevealDeadline details

Inspect func
PostHashTask : func(title string, description string, specialty string, budgetUgnot int64, commitHash string, deadlineSecs int64) int Inspect
RevealAndComplete : func(taskID int, preimage string) Inspect
TimeoutHashTask : func(taskID int) Inspect
sha256Hex : func(s string) string Inspect
maxAgents : untyped bigint =(1000 <untyped> bigint)
maxTasks : untyped bigint =(5000 <untyped> bigint)
maxBidsPerTask : untyped bigint =(50 <untyped> bigint)
nextTaskID : int =7
nextBidID : int =7
agents : *v0.Tree Inspect
tasks : *v0.Tree Inspect
bids : *v0.Tree Inspect
bidByAgent : *v0.Tree Inspect
realmURL : string ="/r/g1pzn6rn8q0pfmq4xje4j8086ncnldavyz8skgp3/agentmarketplace"
init.14 : func() Inspect
RegisterAgent : func(name string, tags string, rateKind string, rateUgnot int64) Inspect
UpdateAgent : func(name string, tags string, rateKind string, rateUgnot int64) Inspect
PostTask : func(title string, description string, specialty string, budgetUgnot int64) int Inspect
PlaceBid : func(taskID int, amountUgnot int64, note string) int Inspect
AcceptBid : func(taskID int, bidID int) Inspect
CompleteTask : func(taskID int) Inspect
settleTask : func(t *agentmarketplace.Task, method string) Inspect
CancelTask : func(taskID int) Inspect
AgentCount : func() int Inspect
TaskCount : func() int Inspect
Stats : func() (int, int, int, int, int64) Inspect
AgentSummary : func(owner .uverse.address) string Inspect
TaskSummary : func(id int) string Inspect
mustUserCall : func() .uverse.address Inspect
mustGetAgent : func(owner .uverse.address) *agentmarketplace.Agent Inspect
mustGetTask : func(id int) *agentmarketplace.Task Inspect
mustGetBid : func(taskID int, bidID int) *agentmarketplace.Bid Inspect
bidKey : func(taskID int, bidID int) string Inspect
taskBidCount : func(taskID int) int Inspect
requireExactUgnotSend : func(budget int64) Inspect
sendUgnot : func(to .uverse.address, amount int64) Inspect
padID : func(id int) string Inspect
pageSize : untyped bigint =(10 <untyped> bigint)
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderAgents : func(page int) string Inspect
renderAgent : func(addr string) string Inspect
renderTasks : func(page int) string Inspect
renderTask : func(id int) string Inspect
renderLeaderboard : func(page int) string Inspect
renderAbout : func() string Inspect
navBar : func() string Inspect
disclaimer : func() string Inspect
statCard : func(icon string, title string, value string, sub string) string Inspect
registerForm : func() string Inspect
postTaskForm : func() string Inspect
rateForm : func(taskID int) string Inspect
renderTaskRating : func(taskID int) string Inspect
agentsTable : func(offset int, limit int) string Inspect
leaderboardTable : func(offset int, limit int) string Inspect
ratedAgentCount : func() int Inspect
scoreKind : func(s *agentmarketplace.AgentScore) string Inspect
ratingsByAgentTable : func(owner .uverse.address) string Inspect
openTasksTable : func(limit int) string Inspect
taskRow : func(t *agentmarketplace.Task) string Inspect
taskBidsTable : func(t *agentmarketplace.Task) string Inspect
bidsByAgentTable : func(owner .uverse.address) string Inspect
agentName : func(addr .uverse.address) string Inspect
statusLabel : func(s string) string Inspect
pager : func(route string, page int, total int) string Inspect
notFound : func() string Inspect
pageParam : func(query string) int Inspect
shortAddr : func(a .uverse.address) string Inspect
fmtUgnot : func(ugnot int64) string Inspect
minRatedForTrust : untyped bigint =(3 <untyped> bigint)
halfLifeDays : untyped bigint =(45 <untyped> bigint)
posterCapBps : untyped bigint =(2000 <untyped> bigint)
weightUnit : untyped bigint =(1000 <untyped> bigint)
decayScale : untyped bigint =(1000000 <untyped> bigint)
scoreScale : untyped bigint =(1000 <untyped> bigint)
maxRatings : untyped bigint =(20000 <untyped> bigint)
maxReviewerBonus : untyped bigint =(2000 <untyped> bigint)
nextRatingID : int =6
ratings : *v0.Tree Inspect
ratingsByAgent : *v0.Tree Inspect
ratingByTask : *v0.Tree Inspect
scores : *v0.Tree Inspect
scoreboard : *v0.Tree Inspect
posterStats : *v0.Tree Inspect
posterAgents : *v0.Tree Inspect
Rate : func(taskID int, score int, comment string) int Inspect
RefreshScore : func(agent .uverse.address) Inspect
ScoreOf : func(agent .uverse.address) (int, int64, int64, bool) Inspect
RatingCount : func() int Inspect
ReputationSummary : func(agent .uverse.address) string Inspect
posterBucket : type =agentmarketplace.posterBucket
liveScore : func(agent .uverse.address, now time.Time) *agentmarketplace.AgentScore Inspect
ratingWeight : func(r *agentmarketplace.Rating, now time.Time) int64 Inspect
decayPPM : func(age time.Duration) int64 Inspect
findBucket : func(bs []agentmarketplace.posterBucket, poster .uverse.address) int Inspect
capBuckets : func(bs []agentmarketplace.posterBucket) Inspect
currentReviewerWeight : func(poster .uverse.address) int64 Inspect
recordPosterPayment : func(poster .uverse.address, agent .uverse.address, budget int64) Inspect
recomputeAndStore : func(agent .uverse.address, now time.Time) *agentmarketplace.AgentScore Inspect
scoreKey : func(trustMilli int64, count int, agent .uverse.address) string Inspect
fmtScore : func(milli int64) string Inspect
RateHourly : untyped string ="hourly"
RateFlat : untyped string ="flat"
StatusOpen : untyped string ="open"
StatusInProgress : untyped string ="in-progress"
StatusCompleted : untyped string ="completed"
StatusCancelled : untyped string ="cancelled"
Agent : type =agentmarketplace.Agent
Task : type =agentmarketplace.Task
Bid : type =agentmarketplace.Bid
Rating : type =agentmarketplace.Rating
AgentScore : type =agentmarketplace.AgentScore
PosterStats : type =agentmarketplace.PosterStats
minNameLen : untyped bigint =(3 <untyped> bigint)
maxNameLen : untyped bigint =(48 <untyped> bigint)
minTitleLen : untyped bigint =(3 <untyped> bigint)
maxTitleLen : untyped bigint =(80 <untyped> bigint)
minDescLen : untyped bigint =(3 <untyped> bigint)
maxDescLen : untyped bigint =(280 <untyped> bigint)
maxNoteLen : untyped bigint =(80 <untyped> bigint)
minTagLen : untyped bigint =(2 <untyped> bigint)
maxTagLen : untyped bigint =(24 <untyped> bigint)
maxTags : untyped bigint =(8 <untyped> bigint)
maxTagsInputLen : untyped bigint =(200 <untyped> bigint)
maxRateUgnot : untyped bigint =(1000000000000 <untyped> bigint)
minBudgetUgnot : untyped bigint =(1 <untyped> bigint)
maxBudgetUgnot : untyped bigint =(1000000000000 <untyped> bigint)
ugnotPerGnot : untyped bigint =(1000000 <untyped> bigint)
minScore : untyped bigint =(1 <untyped> bigint)
maxScore : untyped bigint =(5 <untyped> bigint)
maxCommentLen : untyped bigint =(120 <untyped> bigint)
commitHashLen : untyped bigint =(64 <untyped> bigint)
minRevealSecs : untyped bigint =(60 <untyped> bigint)
maxRevealSecs : untyped bigint =(2592000 <untyped> bigint)
isSafeChar : func(c int32) bool Inspect
checkText : func(field string, s string, minLen int, maxLen int) Inspect
checkRateKind : func(kind string) Inspect
checkRate : func(rate int64) Inspect
checkBudget : func(budget int64) Inspect
checkSpecialty : func(tag string) string Inspect
checkTag : func(field string, tag string) Inspect
parseTags : func(raw string) string Inspect
containsTag : func(tags []string, tag string) bool Inspect
agentHasSpecialty : func(agentTags string, specialty string) bool Inspect
checkScore : func(score int) Inspect
checkComment : func(comment string) Inspect
checkCommitHash : func(h string) string Inspect
checkRevealDeadline : func(secs int64) Inspect