@bluxcc/core 0.1.6 → 0.1.8

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,146 +1,2 @@
1
- import { createConfig as cc } from "./exports/createConfig";
2
- export declare const createConfig: typeof cc;
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
- }>;
60
- 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<{
92
- builder: import("@stellar/stellar-sdk/lib/horizon/payment_call_builder").PaymentCallBuilder;
93
- 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
- }>;
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
- }>;
124
- networks: {
125
- mainnet: import("@stellar/stellar-base").Networks;
126
- testnet: import("@stellar/stellar-base").Networks;
127
- sandbox: import("@stellar/stellar-base").Networks;
128
- futurenet: import("@stellar/stellar-base").Networks;
129
- standalone: import("@stellar/stellar-base").Networks;
130
- };
131
- switchNetwork: (newNetwork: string) => void;
132
- };
133
- export declare const blux: {
134
- login: () => Promise<void>;
135
- logout: () => void;
136
- profile: () => void;
137
- signMessage: (message: string, options?: {
138
- network: string;
139
- }) => Promise<unknown>;
140
- sendTransaction: (xdr: string, options?: {
141
- network: string;
142
- }) => Promise<unknown>;
143
- readonly isReady: boolean;
144
- readonly isAuthenticated: boolean;
145
- readonly user: import("./store").IUser | undefined;
146
- };
1
+ export * from './exports';
2
+ export { createConfig } from './exports/createConfig';