@bluxcc/core 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exports/core/getAccount.d.ts +3 -3
- package/dist/exports/core/getAccounts.d.ts +5 -5
- package/dist/exports/core/getAssets.d.ts +5 -5
- package/dist/exports/core/getBalances.d.ts +3 -2
- package/dist/exports/core/getClaimableBalances.d.ts +5 -5
- package/dist/exports/core/getEffects.d.ts +5 -5
- package/dist/exports/core/getLedgers.d.ts +5 -5
- package/dist/exports/core/getLiquidityPools.d.ts +5 -5
- package/dist/exports/core/getOffers.d.ts +5 -5
- package/dist/exports/core/getOperations.d.ts +5 -5
- package/dist/exports/core/getOrderbook.d.ts +4 -4
- package/dist/exports/core/getPayments.d.ts +1 -1
- package/dist/exports/core/getStrictReceivePaths.d.ts +4 -4
- package/dist/exports/core/getStrictSendPaths.d.ts +4 -4
- package/dist/exports/core/getTradeAggregation.d.ts +3 -3
- package/dist/exports/core/getTrades.d.ts +5 -5
- package/dist/exports/core/getTransactions.d.ts +5 -5
- package/dist/exports/core/index.d.ts +17 -116
- package/dist/exports/index.d.ts +17 -116
- package/dist/index.cjs.js +5 -5
- package/dist/index.d.ts +17 -116
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Horizon } from
|
|
2
|
-
type GetAccountOptions = {
|
|
1
|
+
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
export type GetAccountOptions = {
|
|
3
3
|
address?: string;
|
|
4
4
|
network?: string;
|
|
5
5
|
};
|
|
6
|
-
type GetAccountResult = Horizon.AccountResponse | null;
|
|
6
|
+
export type GetAccountResult = Horizon.AccountResponse | null;
|
|
7
7
|
declare const getAccount: (options: GetAccountOptions) => Promise<GetAccountResult>;
|
|
8
8
|
export default getAccount;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { AccountCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetAccountsOptions = CallBuilderOptions & {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { AccountCallBuilder } from '@stellar/stellar-sdk/lib/horizon/account_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetAccountsOptions = CallBuilderOptions & {
|
|
5
5
|
forSigner?: string;
|
|
6
6
|
forAsset?: Asset;
|
|
7
7
|
sponsor?: string;
|
|
8
8
|
forLiquidityPool?: string;
|
|
9
9
|
};
|
|
10
|
-
type GetAccountsResult = {
|
|
10
|
+
export type GetAccountsResult = {
|
|
11
11
|
builder: AccountCallBuilder;
|
|
12
12
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.AccountRecord>;
|
|
13
13
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Horizon } from
|
|
2
|
-
import { AssetsCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetAssetsOptions = CallBuilderOptions & {
|
|
1
|
+
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { AssetsCallBuilder } from '@stellar/stellar-sdk/lib/horizon/assets_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetAssetsOptions = CallBuilderOptions & {
|
|
5
5
|
forCode?: string;
|
|
6
6
|
forIssuer?: string;
|
|
7
7
|
};
|
|
8
|
-
type GetAssetsResult = {
|
|
8
|
+
export type GetAssetsResult = {
|
|
9
9
|
builder: AssetsCallBuilder;
|
|
10
10
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.AssetRecord>;
|
|
11
11
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
-
type GetBalancesOptions = {
|
|
2
|
+
export type GetBalancesOptions = {
|
|
3
3
|
address?: string;
|
|
4
4
|
network?: string;
|
|
5
5
|
includeZeroBalances?: boolean;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
export type GetBalancesResult = Horizon.HorizonApi.BalanceLine[];
|
|
8
|
+
declare const getBalances: (options: GetBalancesOptions) => Promise<GetBalancesResult>;
|
|
8
9
|
export default getBalances;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { ClaimableBalanceCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetClaimableBalancesOptions = CallBuilderOptions & {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { ClaimableBalanceCallBuilder } from '@stellar/stellar-sdk/lib/horizon/claimable_balances_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetClaimableBalancesOptions = CallBuilderOptions & {
|
|
5
5
|
asset: Asset;
|
|
6
6
|
sponsor?: string;
|
|
7
7
|
claimant: string;
|
|
8
8
|
};
|
|
9
|
-
type GetClaimableBalancesResult = {
|
|
9
|
+
export type GetClaimableBalancesResult = {
|
|
10
10
|
builder: ClaimableBalanceCallBuilder;
|
|
11
11
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.ClaimableBalanceRecord>;
|
|
12
12
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Horizon } from
|
|
2
|
-
import { EffectCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetEffectsOptions = CallBuilderOptions & {
|
|
1
|
+
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { EffectCallBuilder } from '@stellar/stellar-sdk/lib/horizon/effect_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetEffectsOptions = CallBuilderOptions & {
|
|
5
5
|
forAccount?: string;
|
|
6
6
|
forLedger?: string | number;
|
|
7
7
|
forTransaction?: string;
|
|
8
8
|
forOperation?: string;
|
|
9
9
|
forLiquidityPool?: string;
|
|
10
10
|
};
|
|
11
|
-
type GetEffectsResult = {
|
|
11
|
+
export type GetEffectsResult = {
|
|
12
12
|
builder: EffectCallBuilder;
|
|
13
13
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.EffectRecord>;
|
|
14
14
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Horizon } from
|
|
2
|
-
import { LedgerCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetLedgersOptions = CallBuilderOptions & {
|
|
1
|
+
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { LedgerCallBuilder } from '@stellar/stellar-sdk/lib/horizon/ledger_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetLedgersOptions = CallBuilderOptions & {
|
|
5
5
|
ledger?: number | string;
|
|
6
6
|
};
|
|
7
|
-
type GetLedgersResult = {
|
|
7
|
+
export type GetLedgersResult = {
|
|
8
8
|
builder: LedgerCallBuilder;
|
|
9
9
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.LedgerRecord>;
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { LiquidityPoolCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetLiquidityPoolsOptions = CallBuilderOptions & {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { LiquidityPoolCallBuilder } from '@stellar/stellar-sdk/lib/horizon/liquidity_pool_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetLiquidityPoolsOptions = CallBuilderOptions & {
|
|
5
5
|
forAssets?: Array<Asset>;
|
|
6
6
|
forAccount?: string;
|
|
7
7
|
};
|
|
8
|
-
type GetLiquidityPoolsResult = {
|
|
8
|
+
export type GetLiquidityPoolsResult = {
|
|
9
9
|
builder: LiquidityPoolCallBuilder;
|
|
10
10
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.LiquidityPoolRecord>;
|
|
11
11
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { OfferCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetOffersOptions = CallBuilderOptions & {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { OfferCallBuilder } from '@stellar/stellar-sdk/lib/horizon/offer_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetOffersOptions = CallBuilderOptions & {
|
|
5
5
|
forAccount?: string;
|
|
6
6
|
buying?: Asset;
|
|
7
7
|
selling?: Asset;
|
|
8
8
|
sponsor?: string;
|
|
9
9
|
seller?: string;
|
|
10
10
|
};
|
|
11
|
-
type GetOffersResult = {
|
|
11
|
+
export type GetOffersResult = {
|
|
12
12
|
builder: OfferCallBuilder;
|
|
13
13
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.OfferRecord>;
|
|
14
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Horizon } from
|
|
2
|
-
import { OperationCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetOperationsOptions = CallBuilderOptions & {
|
|
1
|
+
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { OperationCallBuilder } from '@stellar/stellar-sdk/lib/horizon/operation_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetOperationsOptions = CallBuilderOptions & {
|
|
5
5
|
forAccount?: string;
|
|
6
6
|
forClaimableBalance?: string;
|
|
7
7
|
forLedger?: string | number;
|
|
@@ -9,7 +9,7 @@ type GetOperationsOptions = CallBuilderOptions & {
|
|
|
9
9
|
forLiquidityPool?: string;
|
|
10
10
|
includeFailed?: boolean;
|
|
11
11
|
};
|
|
12
|
-
type GetOperationsResult = {
|
|
12
|
+
export type GetOperationsResult = {
|
|
13
13
|
builder: OperationCallBuilder;
|
|
14
14
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.OperationRecord>;
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { OrderbookCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetOrderbookResult = {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { OrderbookCallBuilder } from '@stellar/stellar-sdk/lib/horizon/orderbook_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetOrderbookResult = {
|
|
5
5
|
builder: OrderbookCallBuilder;
|
|
6
6
|
response: Horizon.ServerApi.OrderbookRecord;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { PathCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetPaymentPathResult = {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { PathCallBuilder } from '@stellar/stellar-sdk/lib/horizon/path_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetPaymentPathResult = {
|
|
5
5
|
builder: PathCallBuilder;
|
|
6
6
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.PaymentPathRecord>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { PathCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetPaymentPathResult = {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { PathCallBuilder } from '@stellar/stellar-sdk/lib/horizon/path_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetPaymentPathResult = {
|
|
5
5
|
builder: PathCallBuilder;
|
|
6
6
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.PaymentPathRecord>;
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Asset } from
|
|
2
|
-
import { CallBuilderOptions } from
|
|
3
|
-
type GetTradeAggregationResult = any;
|
|
1
|
+
import { Asset } from '@stellar/stellar-sdk';
|
|
2
|
+
import { CallBuilderOptions } from '../utils';
|
|
3
|
+
export type GetTradeAggregationResult = any;
|
|
4
4
|
declare const getTradeAggregation: (args: [base: Asset, counter: Asset, start_time: number, end_time: number, resolution: number, offset: number], options: CallBuilderOptions) => Promise<GetTradeAggregationResult>;
|
|
5
5
|
export default getTradeAggregation;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Asset, Horizon } from
|
|
2
|
-
import { TradesCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetTradesOptions = CallBuilderOptions & {
|
|
1
|
+
import { Asset, Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { TradesCallBuilder } from '@stellar/stellar-sdk/lib/horizon/trades_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetTradesOptions = CallBuilderOptions & {
|
|
5
5
|
forAssetPair?: [base: Asset, counter: Asset];
|
|
6
6
|
forOffer?: string;
|
|
7
7
|
forType?: Horizon.ServerApi.TradeType;
|
|
8
8
|
forAccount?: string;
|
|
9
9
|
forLiquidityPool?: string;
|
|
10
10
|
};
|
|
11
|
-
type GetTradesResult = {
|
|
11
|
+
export type GetTradesResult = {
|
|
12
12
|
builder: TradesCallBuilder;
|
|
13
13
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.TradeRecord>;
|
|
14
14
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Horizon } from
|
|
2
|
-
import { TransactionCallBuilder } from
|
|
3
|
-
import { CallBuilderOptions } from
|
|
4
|
-
type GetTransactionsOptions = CallBuilderOptions & {
|
|
1
|
+
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
+
import { TransactionCallBuilder } from '@stellar/stellar-sdk/lib/horizon/transaction_call_builder';
|
|
3
|
+
import { CallBuilderOptions } from '../utils';
|
|
4
|
+
export type GetTransactionsOptions = CallBuilderOptions & {
|
|
5
5
|
forAccount?: string;
|
|
6
6
|
forClaimableBalance?: string;
|
|
7
7
|
forLedger?: string | number;
|
|
8
8
|
forLiquidityPool?: string;
|
|
9
9
|
includeFailed?: boolean;
|
|
10
10
|
};
|
|
11
|
-
type GetTransactionsResult = {
|
|
11
|
+
export type GetTransactionsResult = {
|
|
12
12
|
builder: TransactionCallBuilder;
|
|
13
13
|
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.TransactionRecord>;
|
|
14
14
|
};
|
|
@@ -1,124 +1,25 @@
|
|
|
1
1
|
declare const core: {
|
|
2
|
-
getAccount: (options:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
forLiquidityPool?: string;
|
|
11
|
-
}) => Promise<{
|
|
12
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/account_call_builder").AccountCallBuilder;
|
|
13
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.AccountRecord>;
|
|
14
|
-
}>;
|
|
15
|
-
getAssets: (options: import("../utils").CallBuilderOptions & {
|
|
16
|
-
forCode?: string;
|
|
17
|
-
forIssuer?: string;
|
|
18
|
-
}) => Promise<{
|
|
19
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/assets_call_builder").AssetsCallBuilder;
|
|
20
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.AssetRecord>;
|
|
21
|
-
}>;
|
|
22
|
-
getBalances: (options: {
|
|
23
|
-
address?: string;
|
|
24
|
-
network?: string;
|
|
25
|
-
includeZeroBalances?: boolean;
|
|
26
|
-
}) => Promise<import("@stellar/stellar-sdk/lib/horizon").HorizonApi.BalanceLine[]>;
|
|
27
|
-
getClaimableBalances: (options: import("../utils").CallBuilderOptions & {
|
|
28
|
-
asset: import("@stellar/stellar-base").Asset;
|
|
29
|
-
sponsor?: string;
|
|
30
|
-
claimant: string;
|
|
31
|
-
}) => Promise<{
|
|
32
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/claimable_balances_call_builder").ClaimableBalanceCallBuilder;
|
|
33
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.ClaimableBalanceRecord>;
|
|
34
|
-
}>;
|
|
35
|
-
getEffects: (options: import("../utils").CallBuilderOptions & {
|
|
36
|
-
forAccount?: string;
|
|
37
|
-
forLedger?: string | number;
|
|
38
|
-
forTransaction?: string;
|
|
39
|
-
forOperation?: string;
|
|
40
|
-
forLiquidityPool?: string;
|
|
41
|
-
}) => Promise<{
|
|
42
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/effect_call_builder").EffectCallBuilder;
|
|
43
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.EffectRecord>;
|
|
44
|
-
}>;
|
|
45
|
-
getLedgers: (options: import("../utils").CallBuilderOptions & {
|
|
46
|
-
ledger?: number | string;
|
|
47
|
-
}) => Promise<{
|
|
48
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/ledger_call_builder").LedgerCallBuilder;
|
|
49
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.LedgerRecord>;
|
|
50
|
-
}>;
|
|
51
|
-
getLiquidityPools: (options: import("../utils").CallBuilderOptions & {
|
|
52
|
-
forAssets?: Array<import("@stellar/stellar-base").Asset>;
|
|
53
|
-
forAccount?: string;
|
|
54
|
-
}) => Promise<{
|
|
55
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/liquidity_pool_call_builder").LiquidityPoolCallBuilder;
|
|
56
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.LiquidityPoolRecord>;
|
|
57
|
-
}>;
|
|
2
|
+
getAccount: (options: import("./getAccount").GetAccountOptions) => Promise<import("./getAccount").GetAccountResult>;
|
|
3
|
+
getAccounts: (options: import("./getAccounts").GetAccountsOptions) => Promise<import("./getAccounts").GetAccountsResult>;
|
|
4
|
+
getAssets: (options: import("./getAssets").GetAssetsOptions) => Promise<import("./getAssets").GetAssetsResult>;
|
|
5
|
+
getBalances: (options: import("./getBalances").GetBalancesOptions) => Promise<import("./getBalances").GetBalancesResult>;
|
|
6
|
+
getClaimableBalances: (options: import("./getClaimableBalances").GetClaimableBalancesOptions) => Promise<import("./getClaimableBalances").GetClaimableBalancesResult>;
|
|
7
|
+
getEffects: (options: import("./getEffects").GetEffectsOptions) => Promise<import("./getEffects").GetEffectsResult>;
|
|
8
|
+
getLedgers: (options: import("./getLedgers").GetLedgersOptions) => Promise<import("./getLedgers").GetLedgersResult>;
|
|
9
|
+
getLiquidityPools: (options: import("./getLiquidityPools").GetLiquidityPoolsOptions) => Promise<import("./getLiquidityPools").GetLiquidityPoolsResult>;
|
|
58
10
|
getNetwork: () => string;
|
|
59
|
-
getOffers: (options: import("
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
sponsor?: string;
|
|
64
|
-
seller?: string;
|
|
65
|
-
}) => Promise<{
|
|
66
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/offer_call_builder").OfferCallBuilder;
|
|
67
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.OfferRecord>;
|
|
68
|
-
}>;
|
|
69
|
-
getOperations: (options: import("../utils").CallBuilderOptions & {
|
|
70
|
-
forAccount?: string;
|
|
71
|
-
forClaimableBalance?: string;
|
|
72
|
-
forLedger?: string | number;
|
|
73
|
-
forTransaction?: string;
|
|
74
|
-
forLiquidityPool?: string;
|
|
75
|
-
includeFailed?: boolean;
|
|
76
|
-
}) => Promise<{
|
|
77
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/operation_call_builder").OperationCallBuilder;
|
|
78
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.OperationRecord>;
|
|
79
|
-
}>;
|
|
80
|
-
getOrderbook: (args: [selling: import("@stellar/stellar-base").Asset, buying: import("@stellar/stellar-base").Asset], options: import("../utils").CallBuilderOptions) => Promise<{
|
|
81
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/orderbook_call_builder").OrderbookCallBuilder;
|
|
82
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.OrderbookRecord;
|
|
83
|
-
}>;
|
|
84
|
-
getPayments: (options: import("../utils").CallBuilderOptions & {
|
|
85
|
-
forAccount?: string;
|
|
86
|
-
forLedger?: string | number;
|
|
87
|
-
forTransaction?: string;
|
|
88
|
-
includeFailed?: boolean;
|
|
89
|
-
}) => Promise<{
|
|
11
|
+
getOffers: (options: import("./getOffers").GetOffersOptions) => Promise<import("./getOffers").GetOffersResult>;
|
|
12
|
+
getOperations: (options: import("./getOperations").GetOperationsOptions) => Promise<import("./getOperations").GetOperationsResult>;
|
|
13
|
+
getOrderbook: (args: [selling: import("@stellar/stellar-base").Asset, buying: import("@stellar/stellar-base").Asset], options: import("../utils").CallBuilderOptions) => Promise<import("./getOrderbook").GetOrderbookResult>;
|
|
14
|
+
getPayments: (options: import("./getPayments").GetPaymentsOptions) => Promise<{
|
|
90
15
|
builder: import("@stellar/stellar-sdk/lib/horizon/payment_call_builder").PaymentCallBuilder;
|
|
91
16
|
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.CreateAccountOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.PaymentOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.PathPaymentOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.AccountMergeOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.PathPaymentStrictSendOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.InvokeHostFunctionOperationRecord>;
|
|
92
17
|
}>;
|
|
93
|
-
getStrictReceivePaths: (args: [source: string | import("@stellar/stellar-base").Asset[], destinationAsset: import("@stellar/stellar-base").Asset, destinationAmount: string], options: import("../utils").CallBuilderOptions) => Promise<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/path_call_builder").PathCallBuilder;
|
|
99
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.PaymentPathRecord>;
|
|
100
|
-
}>;
|
|
101
|
-
getTradeAggregation: (args: [base: import("@stellar/stellar-base").Asset, counter: import("@stellar/stellar-base").Asset, start_time: number, end_time: number, resolution: number, offset: number], options: import("../utils").CallBuilderOptions) => Promise<any>;
|
|
102
|
-
getTrades: (options: import("../utils").CallBuilderOptions & {
|
|
103
|
-
forAssetPair?: [base: import("@stellar/stellar-base").Asset, counter: import("@stellar/stellar-base").Asset];
|
|
104
|
-
forOffer?: string;
|
|
105
|
-
forType?: import("@stellar/stellar-sdk/lib/horizon").ServerApi.TradeType;
|
|
106
|
-
forAccount?: string;
|
|
107
|
-
forLiquidityPool?: string;
|
|
108
|
-
}) => Promise<{
|
|
109
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/trades_call_builder").TradesCallBuilder;
|
|
110
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.TradeRecord>;
|
|
111
|
-
}>;
|
|
112
|
-
getTransactions: (options: import("../utils").CallBuilderOptions & {
|
|
113
|
-
forAccount?: string;
|
|
114
|
-
forClaimableBalance?: string;
|
|
115
|
-
forLedger?: string | number;
|
|
116
|
-
forLiquidityPool?: string;
|
|
117
|
-
includeFailed?: boolean;
|
|
118
|
-
}) => Promise<{
|
|
119
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/transaction_call_builder").TransactionCallBuilder;
|
|
120
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.TransactionRecord>;
|
|
121
|
-
}>;
|
|
18
|
+
getStrictReceivePaths: (args: [source: string | import("@stellar/stellar-base").Asset[], destinationAsset: import("@stellar/stellar-base").Asset, destinationAmount: string], options: import("../utils").CallBuilderOptions) => Promise<import("./getStrictReceivePaths").GetPaymentPathResult>;
|
|
19
|
+
getStrictSendPaths: (args: [sourceAsset: import("@stellar/stellar-base").Asset, sourceAmount: string, destination: string | import("@stellar/stellar-base").Asset[]], options: import("../utils").CallBuilderOptions) => Promise<import("./getStrictSendPaths").GetPaymentPathResult>;
|
|
20
|
+
getTradeAggregation: (args: [base: import("@stellar/stellar-base").Asset, counter: import("@stellar/stellar-base").Asset, start_time: number, end_time: number, resolution: number, offset: number], options: import("../utils").CallBuilderOptions) => Promise<import("./getTradeAggregation").GetTradeAggregationResult>;
|
|
21
|
+
getTrades: (options: import("./getTrades").GetTradesOptions) => Promise<import("./getTrades").GetTradesResult>;
|
|
22
|
+
getTransactions: (options: import("./getTransactions").GetTransactionsOptions) => Promise<import("./getTransactions").GetTransactionsResult>;
|
|
122
23
|
networks: {
|
|
123
24
|
mainnet: import("@stellar/stellar-base").Networks;
|
|
124
25
|
testnet: import("@stellar/stellar-base").Networks;
|
package/dist/exports/index.d.ts
CHANGED
|
@@ -1,125 +1,26 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
core: {
|
|
3
|
-
getAccount: (options:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
forLiquidityPool?: string;
|
|
12
|
-
}) => Promise<{
|
|
13
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/account_call_builder").AccountCallBuilder;
|
|
14
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.AccountRecord>;
|
|
15
|
-
}>;
|
|
16
|
-
getAssets: (options: import("./utils").CallBuilderOptions & {
|
|
17
|
-
forCode?: string;
|
|
18
|
-
forIssuer?: string;
|
|
19
|
-
}) => Promise<{
|
|
20
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/assets_call_builder").AssetsCallBuilder;
|
|
21
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.AssetRecord>;
|
|
22
|
-
}>;
|
|
23
|
-
getBalances: (options: {
|
|
24
|
-
address?: string;
|
|
25
|
-
network?: string;
|
|
26
|
-
includeZeroBalances?: boolean;
|
|
27
|
-
}) => Promise<import("@stellar/stellar-sdk/lib/horizon").HorizonApi.BalanceLine[]>;
|
|
28
|
-
getClaimableBalances: (options: import("./utils").CallBuilderOptions & {
|
|
29
|
-
asset: import("@stellar/stellar-base").Asset;
|
|
30
|
-
sponsor?: string;
|
|
31
|
-
claimant: string;
|
|
32
|
-
}) => Promise<{
|
|
33
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/claimable_balances_call_builder").ClaimableBalanceCallBuilder;
|
|
34
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.ClaimableBalanceRecord>;
|
|
35
|
-
}>;
|
|
36
|
-
getEffects: (options: import("./utils").CallBuilderOptions & {
|
|
37
|
-
forAccount?: string;
|
|
38
|
-
forLedger?: string | number;
|
|
39
|
-
forTransaction?: string;
|
|
40
|
-
forOperation?: string;
|
|
41
|
-
forLiquidityPool?: string;
|
|
42
|
-
}) => Promise<{
|
|
43
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/effect_call_builder").EffectCallBuilder;
|
|
44
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.EffectRecord>;
|
|
45
|
-
}>;
|
|
46
|
-
getLedgers: (options: import("./utils").CallBuilderOptions & {
|
|
47
|
-
ledger?: number | string;
|
|
48
|
-
}) => Promise<{
|
|
49
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/ledger_call_builder").LedgerCallBuilder;
|
|
50
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.LedgerRecord>;
|
|
51
|
-
}>;
|
|
52
|
-
getLiquidityPools: (options: import("./utils").CallBuilderOptions & {
|
|
53
|
-
forAssets?: Array<import("@stellar/stellar-base").Asset>;
|
|
54
|
-
forAccount?: string;
|
|
55
|
-
}) => Promise<{
|
|
56
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/liquidity_pool_call_builder").LiquidityPoolCallBuilder;
|
|
57
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.LiquidityPoolRecord>;
|
|
58
|
-
}>;
|
|
3
|
+
getAccount: (options: import("./core/getAccount").GetAccountOptions) => Promise<import("./core/getAccount").GetAccountResult>;
|
|
4
|
+
getAccounts: (options: import("./core/getAccounts").GetAccountsOptions) => Promise<import("./core/getAccounts").GetAccountsResult>;
|
|
5
|
+
getAssets: (options: import("./core/getAssets").GetAssetsOptions) => Promise<import("./core/getAssets").GetAssetsResult>;
|
|
6
|
+
getBalances: (options: import("./core/getBalances").GetBalancesOptions) => Promise<import("./core/getBalances").GetBalancesResult>;
|
|
7
|
+
getClaimableBalances: (options: import("./core/getClaimableBalances").GetClaimableBalancesOptions) => Promise<import("./core/getClaimableBalances").GetClaimableBalancesResult>;
|
|
8
|
+
getEffects: (options: import("./core/getEffects").GetEffectsOptions) => Promise<import("./core/getEffects").GetEffectsResult>;
|
|
9
|
+
getLedgers: (options: import("./core/getLedgers").GetLedgersOptions) => Promise<import("./core/getLedgers").GetLedgersResult>;
|
|
10
|
+
getLiquidityPools: (options: import("./core/getLiquidityPools").GetLiquidityPoolsOptions) => Promise<import("./core/getLiquidityPools").GetLiquidityPoolsResult>;
|
|
59
11
|
getNetwork: () => string;
|
|
60
|
-
getOffers: (options: import("./
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
sponsor?: string;
|
|
65
|
-
seller?: string;
|
|
66
|
-
}) => Promise<{
|
|
67
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/offer_call_builder").OfferCallBuilder;
|
|
68
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.OfferRecord>;
|
|
69
|
-
}>;
|
|
70
|
-
getOperations: (options: import("./utils").CallBuilderOptions & {
|
|
71
|
-
forAccount?: string;
|
|
72
|
-
forClaimableBalance?: string;
|
|
73
|
-
forLedger?: string | number;
|
|
74
|
-
forTransaction?: string;
|
|
75
|
-
forLiquidityPool?: string;
|
|
76
|
-
includeFailed?: boolean;
|
|
77
|
-
}) => Promise<{
|
|
78
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/operation_call_builder").OperationCallBuilder;
|
|
79
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.OperationRecord>;
|
|
80
|
-
}>;
|
|
81
|
-
getOrderbook: (args: [selling: import("@stellar/stellar-base").Asset, buying: import("@stellar/stellar-base").Asset], options: import("./utils").CallBuilderOptions) => Promise<{
|
|
82
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/orderbook_call_builder").OrderbookCallBuilder;
|
|
83
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.OrderbookRecord;
|
|
84
|
-
}>;
|
|
85
|
-
getPayments: (options: import("./utils").CallBuilderOptions & {
|
|
86
|
-
forAccount?: string;
|
|
87
|
-
forLedger?: string | number;
|
|
88
|
-
forTransaction?: string;
|
|
89
|
-
includeFailed?: boolean;
|
|
90
|
-
}) => Promise<{
|
|
12
|
+
getOffers: (options: import("./core/getOffers").GetOffersOptions) => Promise<import("./core/getOffers").GetOffersResult>;
|
|
13
|
+
getOperations: (options: import("./core/getOperations").GetOperationsOptions) => Promise<import("./core/getOperations").GetOperationsResult>;
|
|
14
|
+
getOrderbook: (args: [selling: import("@stellar/stellar-base").Asset, buying: import("@stellar/stellar-base").Asset], options: import("./utils").CallBuilderOptions) => Promise<import("./core/getOrderbook").GetOrderbookResult>;
|
|
15
|
+
getPayments: (options: import("./core/getPayments").GetPaymentsOptions) => Promise<{
|
|
91
16
|
builder: import("@stellar/stellar-sdk/lib/horizon/payment_call_builder").PaymentCallBuilder;
|
|
92
17
|
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.CreateAccountOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.PaymentOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.PathPaymentOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.AccountMergeOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.PathPaymentStrictSendOperationRecord | import("@stellar/stellar-sdk/lib/horizon").ServerApi.InvokeHostFunctionOperationRecord>;
|
|
93
18
|
}>;
|
|
94
|
-
getStrictReceivePaths: (args: [source: string | import("@stellar/stellar-base").Asset[], destinationAsset: import("@stellar/stellar-base").Asset, destinationAmount: string], options: import("./utils").CallBuilderOptions) => Promise<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/path_call_builder").PathCallBuilder;
|
|
100
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.PaymentPathRecord>;
|
|
101
|
-
}>;
|
|
102
|
-
getTradeAggregation: (args: [base: import("@stellar/stellar-base").Asset, counter: import("@stellar/stellar-base").Asset, start_time: number, end_time: number, resolution: number, offset: number], options: import("./utils").CallBuilderOptions) => Promise<any>;
|
|
103
|
-
getTrades: (options: import("./utils").CallBuilderOptions & {
|
|
104
|
-
forAssetPair?: [base: import("@stellar/stellar-base").Asset, counter: import("@stellar/stellar-base").Asset];
|
|
105
|
-
forOffer?: string;
|
|
106
|
-
forType?: import("@stellar/stellar-sdk/lib/horizon").ServerApi.TradeType;
|
|
107
|
-
forAccount?: string;
|
|
108
|
-
forLiquidityPool?: string;
|
|
109
|
-
}) => Promise<{
|
|
110
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/trades_call_builder").TradesCallBuilder;
|
|
111
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.TradeRecord>;
|
|
112
|
-
}>;
|
|
113
|
-
getTransactions: (options: import("./utils").CallBuilderOptions & {
|
|
114
|
-
forAccount?: string;
|
|
115
|
-
forClaimableBalance?: string;
|
|
116
|
-
forLedger?: string | number;
|
|
117
|
-
forLiquidityPool?: string;
|
|
118
|
-
includeFailed?: boolean;
|
|
119
|
-
}) => Promise<{
|
|
120
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/transaction_call_builder").TransactionCallBuilder;
|
|
121
|
-
response: import("@stellar/stellar-sdk/lib/horizon").ServerApi.CollectionPage<import("@stellar/stellar-sdk/lib/horizon").ServerApi.TransactionRecord>;
|
|
122
|
-
}>;
|
|
19
|
+
getStrictReceivePaths: (args: [source: string | import("@stellar/stellar-base").Asset[], destinationAsset: import("@stellar/stellar-base").Asset, destinationAmount: string], options: import("./utils").CallBuilderOptions) => Promise<import("./core/getStrictReceivePaths").GetPaymentPathResult>;
|
|
20
|
+
getStrictSendPaths: (args: [sourceAsset: import("@stellar/stellar-base").Asset, sourceAmount: string, destination: string | import("@stellar/stellar-base").Asset[]], options: import("./utils").CallBuilderOptions) => Promise<import("./core/getStrictSendPaths").GetPaymentPathResult>;
|
|
21
|
+
getTradeAggregation: (args: [base: import("@stellar/stellar-base").Asset, counter: import("@stellar/stellar-base").Asset, start_time: number, end_time: number, resolution: number, offset: number], options: import("./utils").CallBuilderOptions) => Promise<import("./core/getTradeAggregation").GetTradeAggregationResult>;
|
|
22
|
+
getTrades: (options: import("./core/getTrades").GetTradesOptions) => Promise<import("./core/getTrades").GetTradesResult>;
|
|
23
|
+
getTransactions: (options: import("./core/getTransactions").GetTransactionsOptions) => Promise<import("./core/getTransactions").GetTransactionsResult>;
|
|
123
24
|
networks: {
|
|
124
25
|
mainnet: import("@stellar/stellar-base").Networks;
|
|
125
26
|
testnet: import("@stellar/stellar-base").Networks;
|