minca
ApiSchemasVariables

Variable: decision

const decision: object & Typed<{
  ballots: readonly string[];
  outcome: number;
  proposal: string;
}>;

Defined in: packages/core/src/schemas/library/community.ts:147

What a proposal came to, proven: it cites the proposal as first put and enough ballots for one option, from different people, to reach its quorum. Anyone may write it once the ballots are in; every device checks.

Type Declaration

contract

readonly contract: object;

contract.check

readonly check: readonly Contract[] = DECIDES;

description

readonly description: "What a proposal came to, proven by the ballots it cites." = 'What a proposal came to, proven by the ballots it cites.';
readonly links: object;

links.about

readonly about: LinkDeclaration;

name

readonly name: "std.decision" = 'std.decision';

rules

readonly rules: object;

rules.onePer

readonly onePer: readonly ["link:about"];

schema

readonly schema: object;

schema.properties

readonly properties: object;

schema.properties.ballots

readonly ballots: object;

schema.properties.ballots.description

readonly description: "Ids of the ballots it counts" = 'Ids of the ballots it counts';

schema.properties.ballots.items

readonly items: object;

schema.properties.ballots.items.maxLength

maxLength: number = max;

schema.properties.ballots.items.minLength?

minLength?: number = min;

schema.properties.ballots.items.type

type: "string";

schema.properties.ballots.maxItems

readonly maxItems: 256 = 256;

schema.properties.ballots.type

readonly type: "array" = 'array';

schema.properties.outcome

readonly outcome: object;

schema.properties.outcome.description

readonly description: "The option decided on" = 'The option decided on';

schema.properties.outcome.minimum

readonly minimum: 0 = 0;

schema.properties.outcome.type

readonly type: "integer" = 'integer';

schema.properties.outcome.x-choicesFrom

readonly "x-choicesFrom": object;

schema.properties.outcome.x-choicesFrom.field

readonly field: "options" = 'options';

schema.properties.outcome.x-choicesFrom.rel

readonly rel: "about" = 'about';

schema.properties.proposal

readonly proposal: object;

schema.properties.proposal.maxLength

maxLength: number = max;

schema.properties.proposal.minLength?

minLength?: number = min;

schema.properties.proposal.type

type: "string";

schema.required

readonly required: readonly ["outcome", "proposal", "ballots"];

schema.type

readonly type: "object" = 'object';

title

readonly title: "Decision" = 'Decision';

On this page