From 6394ee4590398b3439090c7599f4f7a44518418a Mon Sep 17 00:00:00 2001 From: JFGHT Date: Thu, 15 Mar 2018 17:02:12 +0100 Subject: [PATCH 1/2] Fixed functions There were some functions missing in OperationCallBuilder and PaymentCallBuilder. --- types/stellar-sdk/index.d.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index e4a6e6a06f..d7e1b0293e 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -739,10 +739,18 @@ export namespace Operation { function fromXDRObject(xdrOperation: xdr.Operation): T; } -export class OperationCallBuilder extends CallBuilder { } +export class OperationCallBuilder extends CallBuilder { + forAccount(accountId: string): this; + forLedger(sequence: string): this; + forTransaction(transactionId: string): this; +} export class OrderbookCallBuilder extends CallBuilder { } export class PathCallBuilder extends CallBuilder { } -export class PaymentCallBuilder extends CallBuilder { } +export class PaymentCallBuilder extends CallBuilder { + forAccount(accountId: string): this; + forLedger(sequence: string): this; + forTransaction(transactionId: string): this; +} export class Server { constructor(serverURL: string, options?: { allowHttp: boolean }) From 841bb34e042ec06ed916508a352ae2c8ed7f8eab Mon Sep 17 00:00:00 2001 From: JFGHT Date: Thu, 15 Mar 2018 20:18:46 +0100 Subject: [PATCH 2/2] Fixed trailing whitespace --- types/stellar-sdk/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index d7e1b0293e..955360d3f0 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -739,14 +739,14 @@ export namespace Operation { function fromXDRObject(xdrOperation: xdr.Operation): T; } -export class OperationCallBuilder extends CallBuilder { +export class OperationCallBuilder extends CallBuilder { forAccount(accountId: string): this; forLedger(sequence: string): this; forTransaction(transactionId: string): this; } export class OrderbookCallBuilder extends CallBuilder { } export class PathCallBuilder extends CallBuilder { } -export class PaymentCallBuilder extends CallBuilder { +export class PaymentCallBuilder extends CallBuilder { forAccount(accountId: string): this; forLedger(sequence: string): this; forTransaction(transactionId: string): this;