add VoteSlots as optional param in AMMInfoResponse

This commit is contained in:
Omar Khan
2022-09-05 14:35:19 -04:00
parent c0e0c15fc1
commit 56b70aa845

View File

@@ -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.