From cb1ad03e32285f710bb0c1216b2096b7c8d947a8 Mon Sep 17 00:00:00 2001 From: Timur Ramazanov Date: Mon, 22 Oct 2018 15:35:03 +0300 Subject: [PATCH] fromOperation and toXDRObject methods for Asset --- types/stellar-sdk/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index 68ad432585..d690398d0c 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -4,6 +4,7 @@ // Triston Jones // Paul Selden // Max Bause +// Timur Ramazanov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 @@ -455,6 +456,8 @@ export class AccountResponse implements AccountRecord { export class Asset { static native(): Asset; + static fromOperation(xdr: xdr.Asset): Asset; + constructor(code: string, issuer: string) getCode(): string; @@ -462,6 +465,7 @@ export class Asset { getAssetType(): 'native' | 'credit_alphanum4' | 'credit_alphanum12'; isNative(): boolean; equals(other: Asset): boolean; + toXDRObject(): xdr.Asset; code: string; issuer: string;