From 2ca3fb3d66a220b5ffe29600732c14b7d33ae520 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Tue, 10 Dec 2024 21:02:46 +0000 Subject: [PATCH] Feat: Add willPunishExpenditureStaker field to colony motion --- amplify/backend/api/colonycdapp/schema/schema.graphql | 6 ++++++ docker/colony-cdapp-dev-env-block-ingestor | 2 +- src/graphql/generated.ts | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/amplify/backend/api/colonycdapp/schema/schema.graphql b/amplify/backend/api/colonycdapp/schema/schema.graphql index 18125a4e405..d3a64038961 100644 --- a/amplify/backend/api/colonycdapp/schema/schema.graphql +++ b/amplify/backend/api/colonycdapp/schema/schema.graphql @@ -3006,6 +3006,12 @@ type ColonyMotion @model { the details of tokens and amounts to be funded """ expenditureFunding: [ExpenditureFundingItem!] + + """ + In case of motions cancelling a staked expenditure, boolean indicating + whether the expenditure staker will be punished by losing their stake + """ + willPunishExpenditureStaker: Boolean } type ExpenditureFundingItem { diff --git a/docker/colony-cdapp-dev-env-block-ingestor b/docker/colony-cdapp-dev-env-block-ingestor index 39dc53ce347..bf6b9f4a773 100644 --- a/docker/colony-cdapp-dev-env-block-ingestor +++ b/docker/colony-cdapp-dev-env-block-ingestor @@ -1,6 +1,6 @@ FROM colony-cdapp-dev-env/base:latest -ENV BLOCK_INGESTOR_HASH=cf932537459fb5e799cc9fa4c373636777f624ce +ENV BLOCK_INGESTOR_HASH=017cb82f9b80c1058dbf077c9a7712828b09c0de # Declare volumes to set up metadata VOLUME [ "/colonyCDapp/amplify/mock-data" ] diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index f97b097a1e2..3d5d383db90 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1120,6 +1120,11 @@ export type ColonyMotion = { /** A list of all of the votes cast within in the motion */ voterRecord: Array; voterRewards?: Maybe; + /** + * In case of motions cancelling a staked expenditure, boolean indicating + * whether the expenditure staker will be punished by losing their stake + */ + willPunishExpenditureStaker?: Maybe; }; @@ -1605,6 +1610,7 @@ export type CreateColonyMotionInput = { userMinStake: Scalars['String']; usersStakes: Array; voterRecord: Array; + willPunishExpenditureStaker?: InputMaybe; }; export type CreateColonyMultiSigInput = { @@ -3261,6 +3267,7 @@ export type ModelColonyMotionConditionInput = { skillRep?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; + willPunishExpenditureStaker?: InputMaybe; }; export type ModelColonyMotionConnection = { @@ -3290,6 +3297,7 @@ export type ModelColonyMotionFilterInput = { skillRep?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; + willPunishExpenditureStaker?: InputMaybe; }; export type ModelColonyMultiSigConditionInput = { @@ -4371,6 +4379,7 @@ export type ModelSubscriptionColonyMotionFilterInput = { skillRep?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; + willPunishExpenditureStaker?: InputMaybe; }; export type ModelSubscriptionColonyMultiSigFilterInput = { @@ -9651,6 +9660,7 @@ export type UpdateColonyMotionInput = { userMinStake?: InputMaybe; usersStakes?: InputMaybe>; voterRecord?: InputMaybe>; + willPunishExpenditureStaker?: InputMaybe; }; export type UpdateColonyMultiSigInput = {