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.

v1 source realm

Package dao\_sponsor shows how an authorized DAO executor can sponsor a budget.

Overview

Package dao_sponsor shows how an authorized DAO executor can sponsor a budget.

Functions 5

func Contribute

crossing Action
1func Contribute(cur realm, programID, amount int64)
source

Contribute funds any active native program from this realm's balance. The executor can deposit coins into this realm in the same call.

func CreateAndOpen

crossing Action
1func CreateAndOpen(cur realm, title, policyPath string, coordinator address, reviewersCSV string, quorum int, amount int64) int64
source

CreateAndOpen assembles the budget and funds it from this realm's native balance. Send coins to the realm's address before calling it.

func Withdraw

crossing Action
1func Withdraw(cur realm, programID int64, lane string, itemID int64)
source

Withdraw collects an approved claim payable to this realm. For a sponsor refund, pass lane "refund" and item ID 0 after finalization.

Dependencies

Source Files 2