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