book_offers returns offers type OfferLedgerEntry (#951)

* rippled-api function book_offers returns offers in the format of OfferLedgerEntry not OfferCreateTransaction
* updated type of account_objects
This commit is contained in:
Cory Perkins
2018-10-02 04:14:17 -05:00
committed by Elliot Lee
parent 37edede728
commit 64745017e9
2 changed files with 18 additions and 4 deletions

View File

@@ -1,4 +1,9 @@
import {CheckLedgerEntry} from '../objects'
import {
CheckLedgerEntry, RippleStateLedgerEntry,
OfferLedgerEntry, SignerListLedgerEntry,
EscrowLedgerEntry, PayChannelLedgerEntry,
DepositPreauthLedgerEntry
} from '../objects'
export interface GetAccountObjectsOptions {
type?: string | (
@@ -44,7 +49,16 @@ export interface AccountObjectsResponse {
account: string,
// Array of objects owned by this account.
account_objects: CheckLedgerEntry | object,
// from the getAccountObjects section of the dev center
account_objects: Array<
CheckLedgerEntry |
RippleStateLedgerEntry |
OfferLedgerEntry |
SignerListLedgerEntry |
EscrowLedgerEntry |
PayChannelLedgerEntry |
DepositPreauthLedgerEntry
>,
// (May be omitted) The identifying hash of the ledger
// that was used to generate this response.

View File

@@ -1,7 +1,7 @@
import {
TakerRequestAmount,
RippledAmount,
OfferCreateTransaction
OfferLedgerEntry
} from '../objects'
export interface BookOffersRequest {
@@ -22,7 +22,7 @@ export interface BookOffersResponse {
marker?: any
}
export interface BookOffer extends OfferCreateTransaction {
export interface BookOffer extends OfferLedgerEntry {
quality?: string
owner_funds?: string,
taker_gets_funded?: RippledAmount,