const MaxAgents, MaxNameLen, MaxDescLen, MaxCapsLen, MaxReviewLen, ReviewRenderMax, AdminAddress, MaxAgentsPerCreator, MaxDepositorsPerAgent
1const (
2 MaxAgents = 100
3 MaxNameLen = 100
4 MaxDescLen = 1000
5 MaxCapsLen = 2000
6 MaxReviewLen = 500
7 // AR-1 render-DoS bound: reviews are sybil-growable (one per address, no cap), and
8 // renderAgent previously iterated the entire slice — an attacker could make an agent
9 // page unrenderable past the query gas cap. Render only the newest window.
10 ReviewRenderMax = 20
11 AdminAddress = "g1x7k4628w93a7wzdhqc06atzx0v50rnshweuxu0" // samcrew-core-test1 multisig
12
13 // AAA-1 B4 — anti-squat + fund-lock-DoS bounds.
14 // MaxAgentsPerCreator caps how many agents one address can register, so a
15 // single funded address cannot squat the whole MaxAgents global supply.
16 MaxAgentsPerCreator = 10
17 // MaxDepositorsPerAgent bounds the distinct depositor set per agent. RemoveAgent
18 // refunds EVERY depositor in one transaction (the credits prefix scan below); an
19 // unbounded set would make RemoveAgent exceed the block gas budget and become
20 // permanently uncallable, locking all deposited funds. At this cap the full
21 // refund loop measures ≈3M gas in `gno test` — a small fraction of the block
22 // budget, so RemoveAgent stays callable with wide headroom.
23 MaxDepositorsPerAgent = 50
24)