diff --git a/src/api/info/_methods/validatorL1Votes.ts b/src/api/info/_methods/validatorL1Votes.ts index 456eb98a..f530685e 100644 --- a/src/api/info/_methods/validatorL1Votes.ts +++ b/src/api/info/_methods/validatorL1Votes.ts @@ -73,6 +73,27 @@ export type ValidatorL1VotesResponse = { /** Settlement details. */ details: string; }; + } | { + /** Settle a question across its named outcomes. */ + settleQuestion: { + /** Question identifier. */ + question: number; + /** Settlement fraction and details per outcome. */ + settleFractionsAndDetails: [ + /** Outcome identifier. */ + outcome: number, + /** Settlement fraction and details. */ + fractionAndDetails: [ + /** + * Settlement fraction. + * @pattern ^[0-9]+(\.[0-9]+)?$ + */ + settleFraction: string, + /** Settlement details. */ + details: string, + ], + ][]; + }; }; } | { /** Token and treasury governance action. */ diff --git a/tests/api/info/validatorL1Votes.test.ts b/tests/api/info/validatorL1Votes.test.ts index 2b346874..eaba8583 100644 --- a/tests/api/info/validatorL1Votes.test.ts +++ b/tests/api/info/validatorL1Votes.test.ts @@ -15,6 +15,10 @@ runTest({ "#/items/properties/action/anyOf/0", "#/items/properties/action/anyOf/1", "#/items/properties/action/anyOf/2/properties/O/anyOf/0", + "#/items/properties/action/anyOf/2/properties/O/anyOf/1", + "#/items/properties/action/anyOf/2/properties/O/anyOf/2", + "#/items/properties/action/anyOf/2/properties/O/anyOf/3", + "#/items/properties/action/anyOf/3", ]); }, });