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.

quillbounty source realm

Constants 3

Functions 10

func ApproveSubmission

crossing Action
1func ApproveSubmission(
2	cur realm,
3	bountyID uint64,
4	submissionID uint64,
5	payoutUgnot int64,
6	reviewNote string,
7)
source

ApproveSubmission approves a submission and atomically releases escrowed ugnot. Pass payoutUgnot == 0 to release the entire remaining bounty balance (100% single-winner payout), or pass 0 < payoutUgnot <= RemainingUgnot for multi-winner split payouts.

func CreateBounty

crossing Action
1func CreateBounty(
2	cur realm,
3	title string,
4	category string,
5	spec string,
6	reviewerAddr string,
7	durationBlocks int64,
8) uint64
source

CreateBounty creates a new ugnot-escrowed bounty on Gno.land. Caller must attach native ugnot via transaction send envelope. Security: enforces runtime.AssertOriginCall() + cur.Previous().IsUserCall() before inspecting unsafe.OriginSend() per Interrealm v2 payment guidelines.

func RefundExpired

crossing Action
1func RefundExpired(cur realm, bountyID uint64) int64
source

RefundExpired returns remaining escrowed ugnot to the sponsor after deadlineHeight passes.

func Render

1func Render(path string) string
source

Render serves both interactive Markdown UI for gnoweb and machine-readable JSON endpoints under /api/* for AI agents and MCP clients via ABCI vm/qrender.

func RequestRevision

crossing Action
1func RequestRevision(cur realm, bountyID uint64, submissionID uint64, feedback string)
source

RequestRevision records an on-chain review note asking the builder to refine their submission.

func Stats

Action
1func Stats() (int, int, int64, int64)
source

Stats returns aggregate protocol metrics (totalBounties, totalCompleted, totalFundedUgnot, totalPaidOutUgnot).

func SubmitWork

crossing Action
1func SubmitWork(
2	cur realm,
3	bountyID uint64,
4	proofURL string,
5	commitHash string,
6	summary string,
7) uint64
source

SubmitWork submits verifiable proof-of-work (PR/repo/gnoweb link + commit hash) on-chain.

func TopUpBounty

crossing Action
1func TopUpBounty(cur realm, bountyID uint64)
source

TopUpBounty allows anyone to add additional ugnot funding to an open bounty.

func GetBounty

Action
1func GetBounty(bountyID uint64) *Bounty
source

GetBounty returns a read-only copy of a bounty for cross-realm composability.

func GetBuilderProfile

Action
1func GetBuilderProfile(addr address) *BuilderProfile
source

GetBuilderProfile returns on-chain reputation stats for a builder address.

Types 5

type Bounty

struct
 1type Bounty struct {
 2	ID             uint64
 3	Sponsor        address
 4	Reviewer       address
 5	Title          string
 6	Category       string
 7	Spec           string
 8	TotalFunded    int64
 9	RemainingUgnot int64
10	CreatedHeight  int64
11	DeadlineHeight int64
12	Status         BountyStatus
13	Submissions    []*Submission
14}
source

type BuilderProfile

struct
1type BuilderProfile struct {
2	Address          address
3	CompletedCount   int
4	TotalEarnedUgnot int64
5	LastBountyID     uint64
6}
source

type Submission

struct
 1type Submission struct {
 2	ID          uint64
 3	BountyID    uint64
 4	Builder     address
 5	ProofURL    string
 6	CommitHash  string
 7	Summary     string
 8	Status      SubmissionStatus
 9	ReviewNote  string
10	PayoutUgnot int64
11	SubmittedAt int64
12	ReviewedAt  int64
13}
source

Dependencies

Source Files 5