From 56b70aa8453e4d9485dee782e9eecae8eff5aa4d Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Mon, 5 Sep 2022 14:35:19 -0400 Subject: [PATCH] add VoteSlots as optional param in AMMInfoResponse --- packages/xrpl/src/models/methods/ammInfo.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/xrpl/src/models/methods/ammInfo.ts b/packages/xrpl/src/models/methods/ammInfo.ts index 0fb1e60d..529c2a86 100644 --- a/packages/xrpl/src/models/methods/ammInfo.ts +++ b/packages/xrpl/src/models/methods/ammInfo.ts @@ -29,6 +29,14 @@ export interface AMMInfoRequest extends BaseRequest { asset2?: Amount } +interface VoteEntry { + VoteEntry: { + Account: string + FeeVal: number + VoteWeight: number + } +} + /** * Response expected from an {@link AMMInfoRequest}. * @@ -73,6 +81,11 @@ export interface AMMInfoResponse extends BaseResponse { */ AMMID?: string + /** + * Keeps a track of up to eight active votes for the instance. + */ + VoteSlots?: VoteEntry[] + /** * The ledger index of the current in-progress ledger, which was used when * retrieving this information.