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

memba_dao_candidature_v3 source realm

Constants 1

Functions 14

func AddAdmin

crossing Action
1func AddAdmin(cur realm, addr address)
source

AddAdmin adds an address to the admin allowlist. Only the owner can call this.

func Apply

crossing Action
1func Apply(cur realm, bio string, skills string)
source

Apply submits a membership application with a deposit. The caller must send at least MinDeposit * (10 ^ previousAttempts) ugnot.

func GetApplication

Action
1func GetApplication(addr string) string
source

GetApplication returns the application for a given address (or empty if none).

func IsAdmin

Action
1func IsAdmin(addr address) bool
source

IsAdmin returns whether an address is in the admin allowlist.

func ListAdmins

Action
1func ListAdmins() string
source

ListAdmins returns all admin addresses as a comma-separated string.

func MarkApproved

crossing Action
1func MarkApproved(cur realm, applicant address)
source

MarkApproved is called by authorized admins to mark an application as approved. Only addresses in the admin allowlist can call this function.

func MarkRejected

crossing Action
1func MarkRejected(cur realm, applicant address)
source

MarkRejected is called by authorized admins to mark an application as rejected. Only addresses in the admin allowlist can call this function.

func RemoveAdmin

crossing Action
1func RemoveAdmin(cur realm, addr address)
source

RemoveAdmin removes an address from the admin allowlist. Only the owner can call this.

func TransferOwnership

crossing Action
1func TransferOwnership(cur realm, newOwner address)
source

TransferOwnership transfers realm ownership to a new address. The new owner is also added as admin. The old owner remains as admin (the new owner can remove them via RemoveAdmin if desired). Only the current owner can call this.

func Withdraw

crossing Action
1func Withdraw(cur realm)
source

Withdraw allows an applicant to withdraw their pending application and reclaim deposit.

Types 1

type Application

struct
1type Application struct {
2	Address    address
3	Bio        string
4	Skills     string
5	Deposit    int64
6	Status     string // "pending", "approved", "rejected", "withdrawn"
7	AppliedAt  int64  // block height
8	ApplyCount int    // number of times applied (for deposit scaling)
9}
source

Imports 8

Source Files 2