Migrate CCF governance API calls to versioned API 2024-07-01#368
Merged
Migrate CCF governance API calls to versioned API 2024-07-01#368
Conversation
Update all Python code using legacy /gov/ endpoints to the new versioned
governance API:
- POST /gov/proposals → POST /gov/members/proposals:create
- POST /gov/proposals/{id}/ballots → POST /gov/members/proposals/{id}/ballots/{memberId}:submit
- GET /gov/recovery_share → GET /gov/recovery/encrypted-shares/{memberId}
- POST /gov/recovery_share → POST /gov/recovery/members/{memberId}:recover
- POST /gov/ack/update_state_digest → POST /gov/members/state-digests/{memberId}:update
- POST /gov/ack → POST /gov/members/state-digests/{memberId}:ack
- GET /gov/kv/constitution → GET /gov/service/constitution
All calls include api-version=2024-07-01 query parameter.
Response field names updated from snake_case to camelCase.
cose_protected_headers() updated for new URL patterns.
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
…e.py Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update legacy CCF governance API calls to latest version
Migrate CCF governance API calls to versioned API 2024-07-01
Feb 23, 2026
Member
|
@copilot run |
…cert Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Contributor
Author
Ran |
achamayou
approved these changes
Feb 26, 2026
ivarprudnikov
approved these changes
Feb 26, 2026
andpiccione
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pyscitt/pyscitt/governance.py- Migrate all governance API calls to new versioned endpoints:POST /gov/proposals→POST /gov/members/proposals:create?api-version=2024-07-01POST /gov/proposals/{id}/ballots→POST /gov/members/proposals/{id}/ballots/{memberId}:submit?api-version=2024-07-01GET /gov/recovery_share→GET /gov/recovery/encrypted-shares/{memberId}?api-version=2024-07-01POST /gov/recovery_share→POST /gov/recovery/members/{memberId}:recover?api-version=2024-07-01POST /gov/ack/update_state_digest→POST /gov/members/state-digests/{memberId}:update?api-version=2024-07-01POST /gov/ack→POST /gov/members/state-digests/{memberId}:ack?api-version=2024-07-01proposal_id→proposalId,state→proposalState,encrypted_share→encryptedShare)member_idproperty and_gov_params()helper toGovernanceClientpyscitt/pyscitt/client.py:GET /gov/kv/constitution→GET /gov/service/constitution?api-version=2024-07-01(response changes from JSON to raw text)cose_protected_headers()URL pattern matching for new endpoint pathsCCF_GOV_API_VERSIONfromgovernance.py(single source of truth)member_auth is not Noneinmember_idpropertyci-checks.shchecks pass (mypy, isort, black, copyright, release notes)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.