Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal query should not return duplicate votes #583

Open
dkent600 opened this issue Jul 23, 2020 · 7 comments
Open

proposal query should not return duplicate votes #583

dkent600 opened this issue Jul 23, 2020 · 7 comments

Comments

@dkent600
Copy link

This query is returning proposals with their votes arrays containing votes each duplicated once. This is the query executed by the Alchemy DAO History page.

query ProposalsSearchAllData {
  proposals(where: {stage_in: ["ExpiredInQueue", "Executed", "Queued"], closingAt_lte: "1595521087", dao: "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"}, first: 50, orderBy: closingAt, orderDirection: desc) {
    ...ProposalFields
    votes {
      id
      __typename
    }
    stakes {
      id
      __typename
    }
    __typename
  }
}

fragment ProposalFields on Proposal {
  id
  accountsWithUnclaimedRewards
  boostedAt
  closingAt
  confidenceThreshold
  createdAt
  dao {
    id
    schemes {
      id
      address
      __typename
    }
    __typename
  }
  description
  descriptionHash
  executedAt
  executionState
  expiresInQueueAt
  genesisProtocolParams {
    id
    activationTime
    boostedVotePeriodLimit
    daoBountyConst
    limitExponentValue
    minimumDaoBounty
    preBoostedVotePeriodLimit
    proposingRepReward
    queuedVotePeriodLimit
    queuedVoteRequiredPercentage
    quietEndingPeriod
    thresholdConst
    votersReputationLossRatio
    __typename
  }
  gpRewards {
    id
    __typename
  }
  scheme {
    ...PluginFields
    __typename
  }
  gpQueue {
    id
    threshold
    votingMachine
    __typename
  }
  organizationId
  preBoostedAt
  proposer
  quietEndingPeriodBeganAt
  stage
  stakesFor
  stakesAgainst
  tags {
    id
    __typename
  }
  totalRepWhenCreated
  totalRepWhenExecuted
  title
  url
  votes {
    id
    __typename
  }
  votesAgainst
  votesFor
  votingMachine
  winningOutcome
  ...GenericPluginProposalFields
  ...ContributionRewardProposalFields
  ...CompetitionProposalFields
  ...FundingRequestProposalFields
  ...JoinAndQuitProposalFields
  ...SchemeRegistrarProposalFields
  ...SchemeRegistrarProposalFields
  ...SchemeRegistrarProposalFields
  ...PluginManagerProposalFields
  __typename
}

fragment GenericPluginProposalFields on Proposal {
  genericScheme {
    id
    contractToCall
    callData
    executed
    returnValue
    value
    __typename
  }
  __typename
}

fragment ContributionRewardProposalFields on Proposal {
  contributionReward {
    id
    beneficiary
    ethReward
    ethRewardLeft
    externalToken
    externalTokenReward
    externalTokenRewardLeft
    nativeTokenReward
    nativeTokenRewardLeft
    periods
    periodLength
    reputationReward
    reputationChangeLeft
    alreadyRedeemedReputationPeriods
    alreadyRedeemedExternalTokenPeriods
    alreadyRedeemedNativeTokenPeriods
    alreadyRedeemedEthPeriods
    __typename
  }
  __typename
}

fragment CompetitionProposalFields on Proposal {
  competition {
    id
    admin
    endTime
    contract
    suggestionsEndTime
    createdAt
    numberOfWinningSuggestions
    numberOfVotesPerVoters
    numberOfWinners
    rewardSplit
    snapshotBlock
    startTime
    totalSuggestions
    totalVotes
    votingStartTime
    __typename
  }
  __typename
}

fragment FundingRequestProposalFields on Proposal {
  fundingRequest {
    id
    dao {
      id
      __typename
    }
    beneficiary
    amount
    executed
    amountRedeemed
    __typename
  }
  __typename
}

fragment JoinAndQuitProposalFields on Proposal {
  joinAndQuit {
    id
    dao {
      id
      __typename
    }
    proposedMember
    funding
    executed
    reputationMinted
    __typename
  }
  __typename
}

fragment SchemeRegistrarProposalFields on Proposal {
  schemeRegistrar {
    id
    schemeToRegister
    schemeToRegisterPermission
    schemeToRemove
    decision
    schemeRegistered
    schemeRemoved
    __typename
  }
  __typename
}

fragment PluginManagerProposalFields on Proposal {
  schemeFactory {
    id
    dao {
      id
      schemes {
        id
        address
        __typename
      }
      __typename
    }
    schemeToRegisterName
    schemeToRegisterData
    schemeToRegisterPackageVersion
    schemeToRegisterPermission
    schemeToRemove
    decision
    schemeRegistered
    schemeRemoved
    __typename
  }
  __typename
}

fragment PluginFields on ControllerScheme {
  id
  address
  name
  dao {
    id
    __typename
  }
  canDelegateCall
  canRegisterSchemes
  canUpgradeController
  canManageGlobalConstraints
  numberOfQueuedProposals
  numberOfPreBoostedProposals
  numberOfBoostedProposals
  version
  ...FundingRequestParams
  ...JoinAndQuitParams
  ...GenericpluginParams
  ...SchemeRegistrarParams
  ...ContributionRewardParams
  ...ContributionRewardExtParams
  ...PluginManagerParams
  __typename
}

fragment FundingRequestParams on ControllerScheme {
  fundingRequestParams {
    id
    votingMachine
    voteParams {
      id
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    fundingToken
    __typename
  }
  __typename
}

fragment JoinAndQuitParams on ControllerScheme {
  joinAndQuitParams {
    id
    votingMachine
    voteParams {
      id
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    fundingToken
    minFeeToJoin
    memberReputation
    fundingGoal
    fundingGoalDeadline
    __typename
  }
  __typename
}

fragment GenericpluginParams on ControllerScheme {
  genericSchemeParams {
    votingMachine
    contractToCall
    voteParams {
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    __typename
  }
  __typename
}

fragment SchemeRegistrarParams on ControllerScheme {
  schemeRegistrarParams {
    votingMachine
    voteRemoveParams {
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    voteRegisterParams {
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    __typename
  }
  __typename
}

fragment ContributionRewardParams on ControllerScheme {
  contributionRewardParams {
    id
    votingMachine
    voteParams {
      id
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    __typename
  }
  __typename
}

fragment ContributionRewardExtParams on ControllerScheme {
  contributionRewardExtParams {
    id
    votingMachine
    voteParams {
      id
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    rewarder
    __typename
  }
  __typename
}

fragment PluginManagerParams on ControllerScheme {
  schemeFactoryParams {
    votingMachine
    daoFactory
    voteParams {
      queuedVoteRequiredPercentage
      queuedVotePeriodLimit
      boostedVotePeriodLimit
      preBoostedVotePeriodLimit
      thresholdConst
      limitExponentValue
      quietEndingPeriod
      proposingRepReward
      votersReputationLossRatio
      minimumDaoBounty
      daoBountyConst
      activationTime
      voteOnBehalf
      __typename
    }
    __typename
  }
  __typename
}

The results (when run locally against ganache, but note this happens on kovan as well):

{
  "data": {
    "proposals": [
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595512213",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": {
          "__typename": "ContributionRewardProposal",
          "alreadyRedeemedEthPeriods": null,
          "alreadyRedeemedExternalTokenPeriods": null,
          "alreadyRedeemedNativeTokenPeriods": null,
          "alreadyRedeemedReputationPeriods": null,
          "beneficiary": "0x5fb320886af629122736c0e1a5c94dce841ea37b",
          "ethReward": "617000000000000000000",
          "ethRewardLeft": null,
          "externalToken": "0xd833215cbcc3f914bd1c9ece3ee7bf8b14f841bb",
          "externalTokenReward": "0",
          "externalTokenRewardLeft": null,
          "id": "0xe8fd6012df9f1d05faa0db28094cc3aedb99d263d3f3a1089dc9fe4e5e9e09fb",
          "nativeTokenReward": "0",
          "nativeTokenRewardLeft": null,
          "periodLength": "0",
          "periods": "1",
          "reputationChangeLeft": null,
          "reputationReward": "954000000000000000000"
        },
        "createdAt": "1595510413",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/urlffd362ee-0bb6-4863-8e29-531117c82ed7",
        "descriptionHash": "QmYH2DXbLWvxovEaAjqaBb8AWrbsVrjuc6RVL95HkLwnrL",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595512213",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
          "threshold": "2199023255552",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0xe8fd6012df9f1d05faa0db28094cc3aedb99d263d3f3a1089dc9fe4e5e9e09fb",
        "joinAndQuit": null,
        "organizationId": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
          "canDelegateCall": false,
          "canManageGlobalConstraints": false,
          "canRegisterSchemes": false,
          "canUpgradeController": false,
          "contributionRewardExtParams": null,
          "contributionRewardParams": {
            "__typename": "ContributionRewardParam",
            "id": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
            "voteParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267",
          "joinAndQuitParams": null,
          "name": "ContributionReward",
          "numberOfBoostedProposals": "1",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "3",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": null,
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": null,
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "97b06786-bd5b-460f-a056-c24e1d683aa6",
        "totalRepWhenCreated": "5945399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [
          {
            "__typename": "ProposalVote",
            "id": "0x924781afabffb65ffbbc3753d0e655b0a738b98e05c955431c99a37e1ed2d7c2"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x924781afabffb65ffbbc3753d0e655b0a738b98e05c955431c99a37e1ed2d7c2"
          }
        ],
        "votesAgainst": "0",
        "votesFor": "995000000000000000000",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Pass"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [
          "0xffcf8fdee72ac11b5c542428b35eef5769c409f0",
          "0x22d491bde2303f2f43325b2108d26f1eaba1e32b"
        ],
        "boostedAt": "1594999543",
        "closingAt": "1595502767",
        "competition": null,
        "confidenceThreshold": "1099511627776",
        "contributionReward": {
          "__typename": "ContributionRewardProposal",
          "alreadyRedeemedEthPeriods": null,
          "alreadyRedeemedExternalTokenPeriods": null,
          "alreadyRedeemedNativeTokenPeriods": "1",
          "alreadyRedeemedReputationPeriods": "1",
          "beneficiary": "0xffcf8fdee72ac11b5c542428b35eef5769c409f0",
          "ethReward": "10000000000000000000",
          "ethRewardLeft": null,
          "externalToken": "0x69774e9a4a003b3576e27bb0ba687b4267657604",
          "externalTokenReward": "10000000000000000000",
          "externalTokenRewardLeft": null,
          "id": "0x9f0478cb25d0d58aa7c4db85ea3490a0e51e0375a5dbf9d84e0a18eeb4abcf05",
          "nativeTokenReward": "10000000000000000000",
          "nativeTokenRewardLeft": null,
          "periodLength": "0",
          "periods": "1",
          "reputationChangeLeft": null,
          "reputationReward": "10000000000000000000"
        },
        "createdAt": "1594740243",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "",
        "descriptionHash": "0x000000000000000000000000000000000000000000000000000000000000ijkl",
        "executedAt": "1595502767",
        "executionState": "BoostedTimeOut",
        "expiresInQueueAt": "1594742043",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
          "threshold": "2199023255552",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [
          {
            "__typename": "GPReward",
            "id": "0x0bbc0310318cdc6813f4642cbdcb9bf282d77f2634d1519ba229443d218aed1d"
          },
          {
            "__typename": "GPReward",
            "id": "0xf9b45380a7c29cabc4f5ae336a59aa050f5568c07d6ac388508f5276b160703c"
          }
        ],
        "id": "0x9f0478cb25d0d58aa7c4db85ea3490a0e51e0375a5dbf9d84e0a18eeb4abcf05",
        "joinAndQuit": null,
        "organizationId": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
        "preBoostedAt": "1594740243",
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
          "canDelegateCall": false,
          "canManageGlobalConstraints": false,
          "canRegisterSchemes": false,
          "canUpgradeController": false,
          "contributionRewardExtParams": null,
          "contributionRewardParams": {
            "__typename": "ContributionRewardParam",
            "id": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
            "voteParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267",
          "joinAndQuitParams": null,
          "name": "ContributionReward",
          "numberOfBoostedProposals": "1",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "3",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": null,
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": null,
        "stage": "Executed",
        "stakes": [
          {
            "__typename": "ProposalStake",
            "id": "0x939e2e76468e395e57f3166a337f45adbb8a9a79fe05d5b62ef8dce023b46b27"
          }
        ],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "1000000000000000000000",
        "tags": [],
        "title": "",
        "totalRepWhenCreated": "5980000000000000000000",
        "totalRepWhenExecuted": "5980000000000000000000",
        "url": "",
        "votes": [
          {
            "__typename": "ProposalVote",
            "id": "0x420a98e58b9dd4df0ff6f4670a4d1c5dbf72dc64767292b057c36685f751bef0"
          },
          {
            "__typename": "ProposalVote",
            "id": "0xdf2bf583cd0fa56366a364c439a396b74bfbe81d7a96c6ee13e4810df0c312fe"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x420a98e58b9dd4df0ff6f4670a4d1c5dbf72dc64767292b057c36685f751bef0"
          },
          {
            "__typename": "ProposalVote",
            "id": "0xdf2bf583cd0fa56366a364c439a396b74bfbe81d7a96c6ee13e4810df0c312fe"
          }
        ],
        "votesAgainst": "0",
        "votesFor": "1990000000000000000000",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Pass"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595464568",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": {
          "__typename": "ContributionRewardProposal",
          "alreadyRedeemedEthPeriods": null,
          "alreadyRedeemedExternalTokenPeriods": null,
          "alreadyRedeemedNativeTokenPeriods": null,
          "alreadyRedeemedReputationPeriods": null,
          "beneficiary": "0x5fb320886af629122736c0e1a5c94dce841ea37b",
          "ethReward": "910000000000000000000",
          "ethRewardLeft": null,
          "externalToken": "0xd833215cbcc3f914bd1c9ece3ee7bf8b14f841bb",
          "externalTokenReward": "0",
          "externalTokenRewardLeft": null,
          "id": "0xf654045b0c7ae0ebb60e8297958afc4bdb6356e92f9035ca53595e2e590bcb88",
          "nativeTokenReward": "0",
          "nativeTokenRewardLeft": null,
          "periodLength": "0",
          "periods": "1",
          "reputationChangeLeft": null,
          "reputationReward": "325000000000000000000"
        },
        "createdAt": "1595462768",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/url1f7fddd1-5235-4478-8289-7b13ee457a5e",
        "descriptionHash": "QmPmWeVW61HE3ad5MsG8pghzvA48eWE2urHM18Efp8bjuN",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595464568",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
          "threshold": "2199023255552",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0xf654045b0c7ae0ebb60e8297958afc4bdb6356e92f9035ca53595e2e590bcb88",
        "joinAndQuit": null,
        "organizationId": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
          "canDelegateCall": false,
          "canManageGlobalConstraints": false,
          "canRegisterSchemes": false,
          "canUpgradeController": false,
          "contributionRewardExtParams": null,
          "contributionRewardParams": {
            "__typename": "ContributionRewardParam",
            "id": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
            "voteParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267",
          "joinAndQuitParams": null,
          "name": "ContributionReward",
          "numberOfBoostedProposals": "1",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "3",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": null,
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": null,
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "96d4aa77-b6c3-4f40-94f8-0460cc5fb2d1",
        "totalRepWhenCreated": "5930399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [],
        "votesAgainst": "0",
        "votesFor": "0",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595464545",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": null,
        "createdAt": "1595462745",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/url805ce5c2-0e22-4879-8372-58ce4ef93cb5",
        "descriptionHash": "QmaLHT4ruY8PTQViHBSHkgiajGx7jgMuRdbriLtBNUk2zV",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595464545",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
          "threshold": "1099511627776",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0x5ae0e775858427ed687642a16cfc78ebad94819159ba3eb104e9285f56cdc266",
        "joinAndQuit": null,
        "organizationId": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
          "canDelegateCall": true,
          "canManageGlobalConstraints": true,
          "canRegisterSchemes": true,
          "canUpgradeController": true,
          "contributionRewardExtParams": null,
          "contributionRewardParams": null,
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd",
          "joinAndQuitParams": null,
          "name": "SchemeRegistrar",
          "numberOfBoostedProposals": "0",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "4",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": {
            "__typename": "SchemeRegistrarParam",
            "voteRegisterParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "voteRemoveParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": {
          "__typename": "SchemeRegistrarProposal",
          "decision": null,
          "id": "0x5ae0e775858427ed687642a16cfc78ebad94819159ba3eb104e9285f56cdc266",
          "schemeRegistered": null,
          "schemeRemoved": null,
          "schemeToRegister": null,
          "schemeToRegisterPermission": null,
          "schemeToRemove": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0"
        },
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "0d8b438d-e1ce-4814-8b91-6c213f549fba",
        "totalRepWhenCreated": "5930399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [],
        "votesAgainst": "0",
        "votesFor": "0",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595464533",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": null,
        "createdAt": "1595462733",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/url52d623fa-dec6-4ffb-ad9e-17427ce5ab75",
        "descriptionHash": "QmVUXvwC6qEymp421tfs5dQW2MrP1h9M9cUyegSzYDgUSV",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595464533",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
          "threshold": "1099511627776",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0xebfb14d64965ce4c6ea1aee66e05d236ead130dbd575263d5e29803f9cf250ab",
        "joinAndQuit": null,
        "organizationId": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
          "canDelegateCall": true,
          "canManageGlobalConstraints": true,
          "canRegisterSchemes": true,
          "canUpgradeController": true,
          "contributionRewardExtParams": null,
          "contributionRewardParams": null,
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd",
          "joinAndQuitParams": null,
          "name": "SchemeRegistrar",
          "numberOfBoostedProposals": "0",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "4",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": {
            "__typename": "SchemeRegistrarParam",
            "voteRegisterParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "voteRemoveParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": {
          "__typename": "SchemeRegistrarProposal",
          "decision": null,
          "id": "0xebfb14d64965ce4c6ea1aee66e05d236ead130dbd575263d5e29803f9cf250ab",
          "schemeRegistered": null,
          "schemeRemoved": null,
          "schemeToRegister": "0x5fb320886af629122736c0e1a5c94dce841ea37b",
          "schemeToRegisterPermission": "0x00000001",
          "schemeToRemove": null
        },
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "bfe6b920-a1a7-4ce3-b197-34dcf4cee5fe",
        "totalRepWhenCreated": "5930399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [],
        "votesAgainst": "0",
        "votesFor": "0",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595464362",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": null,
        "createdAt": "1595462562",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/urlba7d19dd-f0b5-4f09-a758-3b402c1fe28a",
        "descriptionHash": "QmQJWALW5ZnKW885sKZ7687XBmAoivLqfK6hbUH7HtZpRT",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595464362",
        "fundingRequest": null,
        "genericScheme": {
          "__typename": "GenericSchemeProposal",
          "callData": "0x5fb320886af629122736c0e1a5c94dce841ea37b",
          "contractToCall": "0xf51b62641d4c472e6ec0db7ea50382ae66ff092e",
          "executed": false,
          "id": "0x17a966af50ac76137d426d2b117ccf4db0184d13e6f075d0843a6dc7c1563696",
          "returnValue": null,
          "value": "1"
        },
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0x65b67c442c81d7739c7eee83507b26f04a04303f7f3071378f758692d9ff9c9e",
          "threshold": "1099511627776",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0x17a966af50ac76137d426d2b117ccf4db0184d13e6f075d0843a6dc7c1563696",
        "joinAndQuit": null,
        "organizationId": "0x65b67c442c81d7739c7eee83507b26f04a04303f7f3071378f758692d9ff9c9e",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
          "canDelegateCall": true,
          "canManageGlobalConstraints": false,
          "canRegisterSchemes": false,
          "canUpgradeController": false,
          "contributionRewardExtParams": null,
          "contributionRewardParams": null,
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": {
            "__typename": "GenericSchemeParam",
            "contractToCall": "0xf51b62641d4c472e6ec0db7ea50382ae66ff092e",
            "voteParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef",
          "joinAndQuitParams": null,
          "name": "GenericScheme",
          "numberOfBoostedProposals": "0",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "2",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": null,
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": null,
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "f315708a-84b6-4420-a869-3f2cb6b60415",
        "totalRepWhenCreated": "5930399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [],
        "votesAgainst": "0",
        "votesFor": "0",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595450242",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": null,
        "createdAt": "1595448442",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/urlebe5e186-1f71-4045-95af-6584974207d7",
        "descriptionHash": "Qmcje6amahghnQtnVJs9GdBtCNvZ4fUkqcqYyS7RdDGkKt",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595450242",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
          "threshold": "1099511627776",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0xbcc9ca35f9f664dca150e21ad5eb955697b42be9f6e589f818d722d1805d12d3",
        "joinAndQuit": null,
        "organizationId": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
          "canDelegateCall": true,
          "canManageGlobalConstraints": true,
          "canRegisterSchemes": true,
          "canUpgradeController": true,
          "contributionRewardExtParams": null,
          "contributionRewardParams": null,
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd",
          "joinAndQuitParams": null,
          "name": "SchemeRegistrar",
          "numberOfBoostedProposals": "0",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "4",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": {
            "__typename": "SchemeRegistrarParam",
            "voteRegisterParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "voteRemoveParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": {
          "__typename": "SchemeRegistrarProposal",
          "decision": null,
          "id": "0xbcc9ca35f9f664dca150e21ad5eb955697b42be9f6e589f818d722d1805d12d3",
          "schemeRegistered": null,
          "schemeRemoved": null,
          "schemeToRegister": null,
          "schemeToRegisterPermission": null,
          "schemeToRemove": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0"
        },
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "99e46966-96f7-47e0-8b56-8f7c039a7bab",
        "totalRepWhenCreated": "5930399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [],
        "votesAgainst": "0",
        "votesFor": "0",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595450231",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": null,
        "createdAt": "1595448431",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/url0f559a95-3944-4807-af96-36d9794c9012",
        "descriptionHash": "QmcXyAFmypvYVfAUDhgFYVXZTKdSvHeED9aA74EQN9e49U",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595450231",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
          "threshold": "1099511627776",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0x95de961d53dde8023b769756aa28c59d9dbca5c6b6fb3b141f0c5181078005b7",
        "joinAndQuit": null,
        "organizationId": "0xe37ec98e4b2cf902113793d5af7c1effa6cc0c085c8c8b76d94a2f235eb46b3c",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
          "canDelegateCall": true,
          "canManageGlobalConstraints": true,
          "canRegisterSchemes": true,
          "canUpgradeController": true,
          "contributionRewardExtParams": null,
          "contributionRewardParams": null,
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd",
          "joinAndQuitParams": null,
          "name": "SchemeRegistrar",
          "numberOfBoostedProposals": "0",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "4",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": {
            "__typename": "SchemeRegistrarParam",
            "voteRegisterParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "voteRemoveParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": {
          "__typename": "SchemeRegistrarProposal",
          "decision": null,
          "id": "0x95de961d53dde8023b769756aa28c59d9dbca5c6b6fb3b141f0c5181078005b7",
          "schemeRegistered": null,
          "schemeRemoved": null,
          "schemeToRegister": "0x5fb320886af629122736c0e1a5c94dce841ea37b",
          "schemeToRegisterPermission": "0x00000001",
          "schemeToRemove": null
        },
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "2be2797c-1786-403d-9557-623b8921f422",
        "totalRepWhenCreated": "5930399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [],
        "votesAgainst": "0",
        "votesFor": "0",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1595445303",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": null,
        "createdAt": "1595443503",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "https://this.must.be/a/valid/urld666b5d0-f495-44bb-8d10-0da07959ada4",
        "descriptionHash": "Qma6BJnyVKeVxqeFn6sVjdvjpcQF54Bx16ENUEPSoGRupN",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1595445303",
        "fundingRequest": null,
        "genericScheme": {
          "__typename": "GenericSchemeProposal",
          "callData": "0x5fb320886af629122736c0e1a5c94dce841ea37b",
          "contractToCall": "0xf51b62641d4c472e6ec0db7ea50382ae66ff092e",
          "executed": false,
          "id": "0xc146d3c4409dd86f41352fdd05f98196e92bd8eaa4db1d5c5ca8b69094a1a375",
          "returnValue": null,
          "value": "1"
        },
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0x65b67c442c81d7739c7eee83507b26f04a04303f7f3071378f758692d9ff9c9e",
          "threshold": "1099511627776",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0xc146d3c4409dd86f41352fdd05f98196e92bd8eaa4db1d5c5ca8b69094a1a375",
        "joinAndQuit": null,
        "organizationId": "0x65b67c442c81d7739c7eee83507b26f04a04303f7f3071378f758692d9ff9c9e",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
          "canDelegateCall": true,
          "canManageGlobalConstraints": false,
          "canRegisterSchemes": false,
          "canUpgradeController": false,
          "contributionRewardExtParams": null,
          "contributionRewardParams": null,
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": {
            "__typename": "GenericSchemeParam",
            "contractToCall": "0xf51b62641d4c472e6ec0db7ea50382ae66ff092e",
            "voteParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef",
          "joinAndQuitParams": null,
          "name": "GenericScheme",
          "numberOfBoostedProposals": "0",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "2",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": null,
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": null,
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "da7a10a3-e2d9-4f84-8f4f-42c7bb69ce11",
        "totalRepWhenCreated": "5930399000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [],
        "votesAgainst": "0",
        "votesFor": "0",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [
          "0xffcf8fdee72ac11b5c542428b35eef5769c409f0",
          "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
          "0x22d491bde2303f2f43325b2108d26f1eaba1e32b",
          "0xe11ba2b4d45eaed5996cd0823791e0c93114882d"
        ],
        "boostedAt": null,
        "closingAt": "1594999544",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": {
          "__typename": "ContributionRewardProposal",
          "alreadyRedeemedEthPeriods": null,
          "alreadyRedeemedExternalTokenPeriods": null,
          "alreadyRedeemedNativeTokenPeriods": null,
          "alreadyRedeemedReputationPeriods": null,
          "beneficiary": "0xffcf8fdee72ac11b5c542428b35eef5769c409f0",
          "ethReward": "10000000000000000000",
          "ethRewardLeft": null,
          "externalToken": "0x69774e9a4a003b3576e27bb0ba687b4267657604",
          "externalTokenReward": "10000000000000000000",
          "externalTokenRewardLeft": null,
          "id": "0xdd451a3e21353016c2022998dc4cedc16488c4627597f1b9cad2e7fcdc01acd5",
          "nativeTokenReward": "10000000000000000000",
          "nativeTokenRewardLeft": null,
          "periodLength": "0",
          "periods": "1",
          "reputationChangeLeft": null,
          "reputationReward": "10000000000000000000"
        },
        "createdAt": "1594999543",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "",
        "descriptionHash": "0x000000000000000000000000000000000000000000000000000000000000ijkl",
        "executedAt": "1594999544",
        "executionState": "QueueBarCrossed",
        "expiresInQueueAt": "1595001343",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
          "threshold": "2199023255552",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [
          {
            "__typename": "GPReward",
            "id": "0x1a3f1e95ae838684be4ca698290ddb841a16ca8594244b760618f6dd4ae83668"
          },
          {
            "__typename": "GPReward",
            "id": "0x8bc9b68bf250c332526f7611591cfaf0d9c471ce1a40ff4a768395331ae2b5f2"
          },
          {
            "__typename": "GPReward",
            "id": "0x9a948dedeb6b5e8165b7ec5aec2356d2a27778dc8eac3c502d087d2d3cf05245"
          },
          {
            "__typename": "GPReward",
            "id": "0xa7f1dad708e46fe555657d9f7175ffe5e0da1608fe2a509911c9a90bdb24dba8"
          }
        ],
        "id": "0xdd451a3e21353016c2022998dc4cedc16488c4627597f1b9cad2e7fcdc01acd5",
        "joinAndQuit": null,
        "organizationId": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
          "canDelegateCall": false,
          "canManageGlobalConstraints": false,
          "canRegisterSchemes": false,
          "canUpgradeController": false,
          "contributionRewardExtParams": null,
          "contributionRewardParams": {
            "__typename": "ContributionRewardParam",
            "id": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
            "voteParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267",
          "joinAndQuitParams": null,
          "name": "ContributionReward",
          "numberOfBoostedProposals": "1",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "3",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": null,
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": null,
        "stage": "Executed",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "",
        "totalRepWhenCreated": "5970100000000000000000",
        "totalRepWhenExecuted": "5970100000000000000000",
        "url": "",
        "votes": [
          {
            "__typename": "ProposalVote",
            "id": "0x08983004ed930947954c041d208421c784258d2d3bd1a1ddffcf838bade0801a"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x1f0b971f3f5a5d095b9ed79d2f104d39e6039e3b32841fd36bbc349d47ac3a23"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x3345db28f4a6af520a52278465893c7835ffd10717b7ca16277a9aa30408c3c1"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x4d77c5b3e96ad6b9c955c15ce082b905f78dd3742c2f68715c877fbdbb54dcad"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x08983004ed930947954c041d208421c784258d2d3bd1a1ddffcf838bade0801a"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x1f0b971f3f5a5d095b9ed79d2f104d39e6039e3b32841fd36bbc349d47ac3a23"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x3345db28f4a6af520a52278465893c7835ffd10717b7ca16277a9aa30408c3c1"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x4d77c5b3e96ad6b9c955c15ce082b905f78dd3742c2f68715c877fbdbb54dcad"
          }
        ],
        "votesAgainst": "0",
        "votesFor": "3970100000000000000000",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Pass"
      },
      {
        "__typename": "Proposal",
        "accountsWithUnclaimedRewards": [],
        "boostedAt": null,
        "closingAt": "1594742042",
        "competition": null,
        "confidenceThreshold": "0",
        "contributionReward": {
          "__typename": "ContributionRewardProposal",
          "alreadyRedeemedEthPeriods": null,
          "alreadyRedeemedExternalTokenPeriods": null,
          "alreadyRedeemedNativeTokenPeriods": null,
          "alreadyRedeemedReputationPeriods": null,
          "beneficiary": "0xffcf8fdee72ac11b5c542428b35eef5769c409f0",
          "ethReward": "10000000000000000000",
          "ethRewardLeft": null,
          "externalToken": "0x69774e9a4a003b3576e27bb0ba687b4267657604",
          "externalTokenReward": "10000000000000000000",
          "externalTokenRewardLeft": null,
          "id": "0xa16a8dee2b09d48473a481d2dbf13a1eaa6f95a436ffa16babfe3217a4f877ae",
          "nativeTokenReward": "10000000000000000000",
          "nativeTokenRewardLeft": null,
          "periodLength": "0",
          "periods": "1",
          "reputationChangeLeft": null,
          "reputationReward": "10000000000000000000"
        },
        "createdAt": "1594740242",
        "dao": {
          "__typename": "DAO",
          "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4",
          "schemes": [
            {
              "__typename": "ControllerScheme",
              "address": "0xfaae950ec8e519390efc99d034ccbb78f6c59c30",
              "id": "0x08b814cdebdd3ff1cc75920bc3c898af28637df9f922e0c231a54d151ac04fef"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0x9e1847312c051198681e2a1bfdbc95ce1fdab6e0",
              "id": "0x5fb3f295a346becef521a11c25be63dea58f64c428f3fd5165faca61f5522fdd"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xfc059abd0407c6cbf2bd76c940fda27b51f1187d",
              "id": "0x8ced9452770931a464455e5d84d83580b090af95992262d8bac354344eec41d9"
            },
            {
              "__typename": "ControllerScheme",
              "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
              "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267"
            }
          ]
        },
        "description": "",
        "descriptionHash": "0x000000000000000000000000000000000000000000000000000000000000abcd",
        "executedAt": null,
        "executionState": "None",
        "expiresInQueueAt": "1594742042",
        "fundingRequest": null,
        "genericScheme": null,
        "genesisProtocolParams": {
          "__typename": "GenesisProtocolParam",
          "activationTime": "0",
          "boostedVotePeriodLimit": "600",
          "daoBountyConst": "10",
          "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
          "limitExponentValue": "172",
          "minimumDaoBounty": "100000000000000000000",
          "preBoostedVotePeriodLimit": "600",
          "proposingRepReward": "5000000000000000000",
          "queuedVotePeriodLimit": "1800",
          "queuedVoteRequiredPercentage": "50",
          "quietEndingPeriod": "300",
          "thresholdConst": "2199023255552",
          "votersReputationLossRatio": "1"
        },
        "gpQueue": {
          "__typename": "GPQueue",
          "id": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
          "threshold": "2199023255552",
          "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
        },
        "gpRewards": [],
        "id": "0xa16a8dee2b09d48473a481d2dbf13a1eaa6f95a436ffa16babfe3217a4f877ae",
        "joinAndQuit": null,
        "organizationId": "0xc66df163fa68691aeb8d73a6a9b15a85124f12fb96a3e0b422a906e90cef57e8",
        "preBoostedAt": null,
        "proposer": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1",
        "quietEndingPeriodBeganAt": null,
        "scheme": {
          "__typename": "ControllerScheme",
          "address": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
          "canDelegateCall": false,
          "canManageGlobalConstraints": false,
          "canRegisterSchemes": false,
          "canUpgradeController": false,
          "contributionRewardExtParams": null,
          "contributionRewardParams": {
            "__typename": "ContributionRewardParam",
            "id": "0xb6254187d39d5d5c445d85c5be0b4b68690b76d8",
            "voteParams": {
              "__typename": "GenesisProtocolParam",
              "activationTime": "0",
              "boostedVotePeriodLimit": "600",
              "daoBountyConst": "10",
              "id": "0x62f2af6100a7374bcea52cbc2b654eb4dce056d52ea41eda08aea55e1a871ee2",
              "limitExponentValue": "172",
              "minimumDaoBounty": "100000000000000000000",
              "preBoostedVotePeriodLimit": "600",
              "proposingRepReward": "5000000000000000000",
              "queuedVotePeriodLimit": "1800",
              "queuedVoteRequiredPercentage": "50",
              "quietEndingPeriod": "300",
              "thresholdConst": "2199023255552",
              "voteOnBehalf": "0x0000000000000000000000000000000000000000",
              "votersReputationLossRatio": "1"
            },
            "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612"
          },
          "dao": {
            "__typename": "DAO",
            "id": "0xc2381a8ad96327b58bbfec46fec2f490023a34b4"
          },
          "fundingRequestParams": null,
          "genericSchemeParams": null,
          "id": "0x956cf291c8c7006da8d4ffad2647fb7735d96fbf5ecbabf74955587df0fb8267",
          "joinAndQuitParams": null,
          "name": "ContributionReward",
          "numberOfBoostedProposals": "1",
          "numberOfPreBoostedProposals": "0",
          "numberOfQueuedProposals": "3",
          "schemeFactoryParams": null,
          "schemeRegistrarParams": null,
          "version": "0.1.2-rc.2"
        },
        "schemeFactory": null,
        "schemeRegistrar": null,
        "stage": "Queued",
        "stakes": [],
        "stakesAgainst": "100000000000000000000",
        "stakesFor": "0",
        "tags": [],
        "title": "",
        "totalRepWhenCreated": "6000000000000000000000",
        "totalRepWhenExecuted": null,
        "url": "",
        "votes": [
          {
            "__typename": "ProposalVote",
            "id": "0x986bc539b6ab718a33f35550189a966577aa5a9c93dd5b1b55ed7b51fcee11dc"
          },
          {
            "__typename": "ProposalVote",
            "id": "0xc3ff2dc990185ed163636cbb41f497dfa924925cfb9c622fd983bcf31664a55e"
          },
          {
            "__typename": "ProposalVote",
            "id": "0x986bc539b6ab718a33f35550189a966577aa5a9c93dd5b1b55ed7b51fcee11dc"
          },
          {
            "__typename": "ProposalVote",
            "id": "0xc3ff2dc990185ed163636cbb41f497dfa924925cfb9c622fd983bcf31664a55e"
          }
        ],
        "votesAgainst": "1000000000000000000000",
        "votesFor": "1000000000000000000000",
        "votingMachine": "0x988b6cfbf3332ff98ffbded665b1f53a61f92612",
        "winningOutcome": "Fail"
      }
    ]
  }
}
@dkent600
Copy link
Author

@ben-kaufman Maybe this is a malformed query, by arc.js. Maybe you can let us know? Thanks!

@ben-kaufman
Copy link
Contributor

Hi @dkent600, it's quite hard to understand what is the issue you have from such a long query... can you please remove everything but the relevant part, or specify where is the issue you are having?

@dkent600
Copy link
Author

@ben-kaufman It is easy to observe the issue if you simply run the query and see the votes arrays containing duplicate votes.

@ben-kaufman
Copy link
Contributor

@dkent600 it is not easy to see what you are doing in this query at all. Anyway if I just run a simple query like so I get no duplicated votes. So I assume that something is wrong with the query.

{
proposals {
    votes {
      id
    }
    stakes {
      id
    }
  }
}

@dkent600
Copy link
Author

dkent600 commented Jul 26, 2020

@ben-kaufman Or something is wrong with the engine that is running the query. Suggestions welcome. If you don't get to figuring it out by tomorrow (Monday), I will take a look.

@dkent600
Copy link
Author

@ben-kaufman OK, it is unclear to me where is the bug because I am not very familiar with GraphQL:

This produces duplicates:

query ProposalsSearchAllData {
  proposals {
    id
    ...ProposalFields
    votes {
      id
    }
  }
}

fragment ProposalFields on Proposal {
  votes {
    id
  }
}

This does not:

query ProposalsSearchAllData {
  proposals {
    id
    
  votes {
    id
  }

    votes {
      id
    }
  }
}

My naive opinion is that these should return identical results, one way or the other.

@dkent600
Copy link
Author

I created a ticket against subgraph: graphprotocol/graph-node#1816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants