Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Proposal

import type { Proposal } from "https://aws-api.deno.dev/v0.4/services/managedblockchain.ts?docs=full";

Properties of a proposal on a Managed Blockchain network.

Applies only to Hyperledger Fabric.

interface Proposal {
Actions?: ProposalActions | null;
Arn?: string | null;
CreationDate?: Date | number | null;
Description?: string | null;
ExpirationDate?: Date | number | null;
NetworkId?: string | null;
NoVoteCount?: number | null;
OutstandingVoteCount?: number | null;
ProposalId?: string | null;
ProposedByMemberId?: string | null;
ProposedByMemberName?: string | null;
Status?: ProposalStatus | null;
Tags?: {
[key: string]: string | null | undefined;
}
| null;
YesVoteCount?: number | null;
}

§Properties

§
Actions?: ProposalActions | null
[src]

The actions to perform on the network if the proposal is APPROVED.

§
Arn?: string | null
[src]

The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

§
CreationDate?: Date | number | null
[src]

The date and time that the proposal was created.

§
Description?: string | null
[src]

The description of the proposal.

§
ExpirationDate?: Date | number | null
[src]

The date and time that the proposal expires. This is the CreationDate plus the ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal is EXPIRED and Actions aren't carried out.

§
NetworkId?: string | null
[src]

The unique identifier of the network for which the proposal is made.

§
NoVoteCount?: number | null
[src]

The current total of NO votes cast on the proposal by members.

§
OutstandingVoteCount?: number | null
[src]

The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of YES votes and NO votes.

§
ProposalId?: string | null
[src]

The unique identifier of the proposal.

§
ProposedByMemberId?: string | null
[src]

The unique identifier of the member that created the proposal.

§
ProposedByMemberName?: string | null
[src]

The name of the member that created the proposal.

§
Status?: ProposalStatus | null
[src]

The status of the proposal. Values are as follows:

  • IN_PROGRESS - The proposal is active and open for member voting.
  • APPROVED - The proposal was approved with sufficient YES votes among members according to the VotingPolicy specified for the Network. The specified proposal actions are carried out.
  • REJECTED - The proposal was rejected with insufficient YES votes among members according to the VotingPolicy specified for the Network. The specified ProposalActions aren't carried out.
  • EXPIRED - Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specified ProposalActions aren't carried out.
  • ACTION_FAILED - One or more of the specified ProposalActions in a proposal that was approved couldn't be completed because of an error. The ACTION_FAILED status occurs even if only one ProposalAction fails and other actions are successful.
§
Tags?: {
[key: string]: string | null | undefined;
}
| null
[src]

Tags assigned to the proposal. Each tag consists of a key and optional value.

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

§
YesVoteCount?: number | null
[src]

The current total of YES votes cast on the proposal by members.