fix: ASSET_TYPE

This commit is contained in:
Kalvis Kalniņš
2018-12-28 15:13:03 +02:00
parent 72a40070b0
commit a19c1e5cda
+6 -6
View File
@@ -19,6 +19,11 @@ export namespace StellarBase {
incrementSequenceNumber(): void;
}
enum ASSET_TYPE {
native = 'native',
credit4 = 'credit_alphanum4',
credit12 = 'credit_alphanum12',
}
class Asset {
static native(): Asset;
static fromOperation(xdr: xdr.Asset): Asset;
@@ -414,6 +419,7 @@ export namespace StellarBase {
// Re-StellarBase
export import Account = StellarBase.Account;
export import ASSET_TYPE = StellarBase.ASSET_TYPE;
export import Asset = StellarBase.Asset;
export import FastSigning = StellarBase.FastSigning;
export import Keypair = StellarBase.Keypair;
@@ -532,12 +538,6 @@ export namespace Server {
type CallCollectionFunction<T extends Record> =
(options?: CallFunctionTemplateOptions) => Promise<CollectionRecord<T>>;
enum ASSET_TYPE {
native = 'native',
credit4 = 'credit_alphanum4',
credit12 = 'credit_alphanum12',
}
interface BalanceLineNative {
balance: string;
asset_type: ASSET_TYPE.native;