Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions src/api/info/_methods/validatorL1Votes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
4 changes: 4 additions & 0 deletions tests/api/info/validatorL1Votes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]);
},
});