Skip to content

Conversation

dfordivam
Copy link
Contributor

Opening this PR for design-doc review purpose.

type: string
format: date-time
description: |
Expiry time of the proposal. Must be within 7 days from now.
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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:
Copy link
Contributor

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:

  1. We want people to work straight against the Ledger API where possible; and it is possible here.
  2. The proposal does not require fetching extra context. So it is as simple as calling prepare and then execute.

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

Successfully merging this pull request may close these issues.

5 participants