mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-07-30 02:20:24 +00:00
add VoteSlots as optional param in AMMInfoResponse
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user