models

package
v0.0.0-...-58ab88d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DAO_STATE_PENDING = iota
	DAO_STATE_APPROVED
	DAO_STATE_DENIED
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO struct {
	ID                 int    `json:"id" bson:"displayId,omitempty"`
	Address            string `json:"address" bson:"addr,omitempty"`
	Contract           string `json:"network" bson:"contract,omitempty"`
	Name               string `json:"name" bson:"name,omitempty"`
	Description        string `json:"description" bson:"description,omitempty"`
	Framework          string `json:"framework" bson:"framwork,omitempty"`
	MembersUri         string `json:"membersUri" bson:"membersUri,omitempty"`
	ProposalsUri       string `json:"proposalsUri" bson:"proposalsUri,omitempty"`
	IssuersUri         string `json:"issuersUri" bson:"issuersUri,omitempty"`
	ContractsRegUri    string `json:"contractsRegUri" bson:"contractsRegUri,omitempty"`
	ManagerAddress     string `json:"managerAddress" bson:"managerAddress,omitempty"`
	GovernanceDocument string `json:"governanceDocument" bson:"governanceDocument,omitempty"`
	State              int    `json:"state" bson:"state"`
	TokenId            int    `json:"tokenId" bson:"tokenId,omitempty"`
	Creator            string `json:"creator" bson:"creator,omitempty"`
}

type DAOAddressFilter

type DAOAddressFilter struct {
	Address string `bson:"addr,omitempty"`
}

type DAOExploreParams

type DAOExploreParams struct {
	Search  string `form:"search"`
	State   int    `form:"state"`
	Limit   int    `form:"limit"`
	Offset  int    `form:"offset"`
	Creator string `form:"creator"`
}

type DAOFilter

type DAOFilter struct {
	Name    interface{} `bson:"name,omitempty"`
	State   interface{} `bson:"state,omitempty"`
	Creator string      `bson:"creator,omitempty"`
}

type DAORevokeRequest

type DAORevokeRequest struct {
	TxHash string `json:"opHash" binding:"required"`
}

type DAOVerifyRequest

type DAOVerifyRequest struct {
	Validate bool   `json:"validate"`
	TxHash   string `json:"opHash"`
}

type DAOid

type DAOid struct {
	ID int `json:"id" bson:"id,omitempty"`
}

type DAOsResponse

type DAOsResponse struct {
	DAOs  []DAO `json:"daos"`
	Count int   `json:"count"`
}

type Metadata

type Metadata struct {
	DAOData     DAO    `json:"dao"`
	Description string `json:"description"`
	ExternalURL string `json:"external_url,omitempty"`
	Image       string `json:"image"`
	Name        string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL