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

feat: Proxy colonies M1 #311

Merged
merged 19 commits into from
Jan 24, 2025
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0e1d6f3
Feat: Handle disable proxy colony metadataDelta event
mmioana Dec 23, 2024
fd93b00
feat: get colonyAddress when requesting a proxy colony and the initia…
bassgeta Jan 6, 2025
2cbac4d
Feat: Re-enable deployed proxy colony
mmioana Jan 6, 2025
8996fd3
feat: create proxy colony requested motion
bassgeta Jan 7, 2025
d6eeddd
feat: link action that finalized a motion to the motion and the motio…
bassgeta Jan 10, 2025
86556a8
Feat: Allow addition of proxy colonies with multisig
davecreaser Jan 9, 2025
14e0714
Fix multisig connection to finalization action
davecreaser Jan 15, 2025
d8481a2
feat: handle enabling and disabling of a proxy colony via a motion
rumzledz Jan 9, 2025
5cb9ad8
feat: remove redundant operation parsing
rumzledz Jan 14, 2025
53afa66
feat: add support for enabling and disable proxy colonies via multi-sig
rumzledz Jan 13, 2025
75b53b7
feat: remove redundant operation parsing
rumzledz Jan 14, 2025
4fa7a94
Move targetChainId up to the top level of colonyAction
davecreaser Jan 16, 2025
fd28eee
Fixes after rebase
davecreaser Jan 21, 2025
8776d33
update main workflow to build main chain
bogdan-1337 Jan 22, 2025
ca781fe
cicd: add changes to dockerfile and new proxy build workflow
bogdan-1337 Jan 22, 2025
c11d40d
cicd: update dockerfile build target logic
bogdan-1337 Jan 22, 2025
a3cd46d
cicd: declare build target in final stage
bogdan-1337 Jan 22, 2025
ee3deac
cicd: rename cicd workflows and update ecr repo for qa prod proxy cha…
bogdan-1337 Jan 22, 2025
a927a71
Fix: Align generated.ts
mmioana Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add support for enabling and disable proxy colonies via multi-sig
rumzledz authored and mmioana committed Jan 22, 2025

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
commit 53afa668ddd310d5081b6c019255b7a84d68fc05
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@ import { ColonyActionType } from '@joincolony/graphql';
import { ContractEvent } from '@joincolony/blocks';
import {
isAddVerifiedMembersOperation,
isDisableProxyColonyOperation,
isEnableProxyColonyOperation,
isManageTokensOperation,
isRemoveVerifiedMembersOperation,
parseMetadataDeltaOperation,
@@ -51,6 +53,26 @@ export const handleMetadataDeltaMultiSig = async (
operation,
});
}
if (
isDisableProxyColonyOperation(operation) ||
isEnableProxyColonyOperation(operation)
) {
const targetChainId = JSON.parse(desc.args[0]).payload[0];

if (!targetChainId) {
return;
}

await createMultiSigInDB(colonyAddress, event, {
type: isDisableProxyColonyOperation(operation)
? ColonyActionType.RemoveProxyColonyMultisig
: ColonyActionType.AddProxyColonyMultisig,
multiChainInfo: {
completed: false,
targetChainId: Number(targetChainId),
},
});
}
} catch (error) {
verbose('Error while handling metadata delta motion created', error);
}
1 change: 1 addition & 0 deletions packages/graphql/src/generated.ts
Original file line number Diff line number Diff line change
@@ -727,6 +727,7 @@ export enum ColonyActionType {
/** An action related to disabling a proxy colony */
RemoveProxyColony = 'REMOVE_PROXY_COLONY',
RemoveProxyColonyMotion = 'REMOVE_PROXY_COLONY_MOTION',
RemoveProxyColonyMultisig = 'REMOVE_PROXY_COLONY_MULTISIG',
/** An action related to removing verified members */
RemoveVerifiedMembers = 'REMOVE_VERIFIED_MEMBERS',
RemoveVerifiedMembersMotion = 'REMOVE_VERIFIED_MEMBERS_MOTION',