-
Notifications
You must be signed in to change notification settings - Fork 41
WIP: Sketch: API changes for CIP-0073 #2483
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
base: main
Are you sure you want to change the base?
WIP: Sketch: API changes for CIP-0073 #2483
Conversation
Signed-off-by: Divam <[email protected]>
type: string | ||
format: date-time | ||
description: | | ||
Expiry time of the proposal. Must be within 7 days from now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
within 7 days
You mean any time up to 7 days from now?
If you expect a specific value exactly 7 days from now, then it feels a bit weird to even make it an argument. Consider hard-coding server side instead initially.
/v0/admin/minting-delegation-proposals: | ||
get: | ||
description: | | ||
List all MintingDelegationProposal contracts where the delegate is the validator operator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing a limit on the number of responses, and pagination
/v0/admin/minting-delegations: | ||
get: | ||
description: | | ||
List all MintingDelegation contracts where the delegate is the validator operator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also missing limit and pagination
"501": | ||
$ref: "../../../../common/src/main/openapi/common-external.yaml#/components/responses/501" | ||
|
||
/v0/admin/external-party/minting-delegation-proposal/prepare-send: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want to create these endpoints for the following reasons:
- We want people to work straight against the Ledger API where possible; and it is possible here.
- The proposal does not require fetching extra context. So it is as simple as calling
prepare
and thenexecute
.
Opening this PR for design-doc review purpose.