@bluxcc/core 0.1.0
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/assets/Icons.d.ts +98 -0
- package/dist/assets/Logos.d.ts +24 -0
- package/dist/assets/bluxLogo.d.ts +8 -0
- package/dist/components/Alert/index.d.ts +9 -0
- package/dist/components/AssetsList/index.d.ts +6 -0
- package/dist/components/Button/index.d.ts +17 -0
- package/dist/components/CardItem/index.d.ts +16 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Header/index.d.ts +10 -0
- package/dist/components/Input/OTPInput.d.ts +8 -0
- package/dist/components/Input/index.d.ts +18 -0
- package/dist/components/Modal/Backdrop/index.d.ts +7 -0
- package/dist/components/Modal/index.d.ts +11 -0
- package/dist/components/Provider.d.ts +1 -0
- package/dist/components/QRCode/index.d.ts +10 -0
- package/dist/components/TabBox/index.d.ts +12 -0
- package/dist/components/Transaction/History/index.d.ts +12 -0
- package/dist/components/Transaction/Summary/index.d.ts +10 -0
- package/dist/constants/consts.d.ts +2 -0
- package/dist/constants/explorers.d.ts +9 -0
- package/dist/constants/locales.d.ts +9 -0
- package/dist/constants/networkDetails.d.ts +14 -0
- package/dist/constants/routes.d.ts +9 -0
- package/dist/constants/themes.d.ts +3 -0
- package/dist/enums.d.ts +33 -0
- package/dist/exports/blux.d.ts +15 -0
- package/dist/exports/core/callBuilder.d.ts +59 -0
- package/dist/exports/core/getAccount.d.ts +8 -0
- package/dist/exports/core/getAccounts.d.ts +15 -0
- package/dist/exports/core/getAssets.d.ts +13 -0
- package/dist/exports/core/getBalances.d.ts +8 -0
- package/dist/exports/core/getClaimableBalances.d.ts +14 -0
- package/dist/exports/core/getEffects.d.ts +16 -0
- package/dist/exports/core/getLedgers.d.ts +12 -0
- package/dist/exports/core/getLiquidityPools.d.ts +13 -0
- package/dist/exports/core/getNetwork.d.ts +2 -0
- package/dist/exports/core/getOffers.d.ts +16 -0
- package/dist/exports/core/getOperations.d.ts +17 -0
- package/dist/exports/core/getOrderbook.d.ts +9 -0
- package/dist/exports/core/getPayments.d.ts +12 -0
- package/dist/exports/core/getStrictReceivePaths.d.ts +9 -0
- package/dist/exports/core/getStrictSendPaths.d.ts +9 -0
- package/dist/exports/core/getTradeAggregation.d.ts +5 -0
- package/dist/exports/core/getTrades.d.ts +16 -0
- package/dist/exports/core/getTransactions.d.ts +16 -0
- package/dist/exports/core/index.d.ts +131 -0
- package/dist/exports/core/networks.d.ts +9 -0
- package/dist/exports/core/switchNetwork.d.ts +2 -0
- package/dist/exports/index.d.ts +144 -0
- package/dist/exports/utils.d.ts +14 -0
- package/dist/hooks/useBalances.d.ts +8 -0
- package/dist/hooks/useDynamicHeight.d.ts +4 -0
- package/dist/hooks/useIsMobile.d.ts +1 -0
- package/dist/hooks/useLang.d.ts +2 -0
- package/dist/hooks/useModalAnimation.d.ts +7 -0
- package/dist/hooks/useTransactions.d.ts +11 -0
- package/dist/hooks/useUpdateAccount.d.ts +2 -0
- package/dist/index.cjs.js +6 -0
- package/dist/index.d.ts +149 -0
- package/dist/index.esm.js +6 -0
- package/dist/index.iife.js +6 -0
- package/dist/pages/About/index.d.ts +2 -0
- package/dist/pages/Onboarding/OTP/index.d.ts +2 -0
- package/dist/pages/Onboarding/index.d.ts +2 -0
- package/dist/pages/Profile/Activity/index.d.ts +2 -0
- package/dist/pages/Profile/Balances/AddToken/index.d.ts +2 -0
- package/dist/pages/Profile/Balances/BalanceDetails/index.d.ts +2 -0
- package/dist/pages/Profile/Balances/index.d.ts +2 -0
- package/dist/pages/Profile/Receive/index.d.ts +2 -0
- package/dist/pages/Profile/SelectAsset/index.d.ts +9 -0
- package/dist/pages/Profile/Send/SendForm.d.ts +2 -0
- package/dist/pages/Profile/Send/index.d.ts +2 -0
- package/dist/pages/Profile/Swap/AssetBox/index.d.ts +4 -0
- package/dist/pages/Profile/Swap/index.d.ts +2 -0
- package/dist/pages/Profile/index.d.ts +2 -0
- package/dist/pages/SendTransaction/index.d.ts +2 -0
- package/dist/pages/SignMessage/index.d.ts +2 -0
- package/dist/pages/Successful/index.d.ts +2 -0
- package/dist/pages/Waiting/index.d.ts +2 -0
- package/dist/pages/WrongNetwork/index.d.ts +2 -0
- package/dist/stellar/getTransactionDetails.d.ts +8 -0
- package/dist/stellar/handleTransactionSigning.d.ts +5 -0
- package/dist/stellar/paymentTransaction.d.ts +4 -0
- package/dist/stellar/signTransaction.d.ts +3 -0
- package/dist/stellar/submitTransaction.d.ts +7 -0
- package/dist/store.d.ts +72 -0
- package/dist/types.d.ts +109 -0
- package/dist/utils/animatedGradient.d.ts +18 -0
- package/dist/utils/helpers.d.ts +31 -0
- package/dist/utils/walletLogos.d.ts +2 -0
- package/dist/wallets/albedo.d.ts +2 -0
- package/dist/wallets/freighter.d.ts +2 -0
- package/dist/wallets/hana.d.ts +2 -0
- package/dist/wallets/index.d.ts +3 -0
- package/dist/wallets/lobstr.d.ts +2 -0
- package/dist/wallets/rabet.d.ts +2 -0
- package/dist/wallets/xbull.d.ts +2 -0
- package/package.json +61 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Horizon } from "@stellar/stellar-sdk";
|
|
2
|
+
import { IConfig } from "./types";
|
|
3
|
+
import "./tailwind.css";
|
|
4
|
+
declare function createConfig(config: IConfig): void;
|
|
5
|
+
declare const exs: {
|
|
6
|
+
createConfig: typeof createConfig;
|
|
7
|
+
core: {
|
|
8
|
+
getAccount: (options: {
|
|
9
|
+
address?: string;
|
|
10
|
+
network?: string;
|
|
11
|
+
}) => Promise<Horizon.AccountResponse | null>;
|
|
12
|
+
getAccounts: (options: import("./exports/utils").CallBuilderOptions & {
|
|
13
|
+
forSigner?: string;
|
|
14
|
+
forAsset?: import("@stellar/stellar-base").Asset;
|
|
15
|
+
sponsor?: string;
|
|
16
|
+
forLiquidityPool?: string;
|
|
17
|
+
}) => Promise<{
|
|
18
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/account_call_builder").AccountCallBuilder;
|
|
19
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.AccountRecord>;
|
|
20
|
+
}>;
|
|
21
|
+
getAssets: (options: import("./exports/utils").CallBuilderOptions & {
|
|
22
|
+
forCode?: string;
|
|
23
|
+
forIssuer?: string;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/assets_call_builder").AssetsCallBuilder;
|
|
26
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.AssetRecord>;
|
|
27
|
+
}>;
|
|
28
|
+
getBalances: (options: {
|
|
29
|
+
address?: string;
|
|
30
|
+
network?: string;
|
|
31
|
+
includeZeroBalances?: boolean;
|
|
32
|
+
}) => Promise<Horizon.HorizonApi.BalanceLine[]>;
|
|
33
|
+
getClaimableBalances: (options: import("./exports/utils").CallBuilderOptions & {
|
|
34
|
+
asset: import("@stellar/stellar-base").Asset;
|
|
35
|
+
sponsor?: string;
|
|
36
|
+
claimant: string;
|
|
37
|
+
}) => Promise<{
|
|
38
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/claimable_balances_call_builder").ClaimableBalanceCallBuilder;
|
|
39
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.ClaimableBalanceRecord>;
|
|
40
|
+
}>;
|
|
41
|
+
getEffects: (options: import("./exports/utils").CallBuilderOptions & {
|
|
42
|
+
forAccount?: string;
|
|
43
|
+
forLedger?: string | number;
|
|
44
|
+
forTransaction?: string;
|
|
45
|
+
forOperation?: string;
|
|
46
|
+
forLiquidityPool?: string;
|
|
47
|
+
}) => Promise<{
|
|
48
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/effect_call_builder").EffectCallBuilder;
|
|
49
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.EffectRecord>;
|
|
50
|
+
}>;
|
|
51
|
+
getLedgers: (options: import("./exports/utils").CallBuilderOptions & {
|
|
52
|
+
ledger?: number | string;
|
|
53
|
+
}) => Promise<{
|
|
54
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/ledger_call_builder").LedgerCallBuilder;
|
|
55
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.LedgerRecord>;
|
|
56
|
+
}>;
|
|
57
|
+
getLiquidityPools: (options: import("./exports/utils").CallBuilderOptions & {
|
|
58
|
+
forAssets?: Array<import("@stellar/stellar-base").Asset>;
|
|
59
|
+
forAccount?: string;
|
|
60
|
+
}) => Promise<{
|
|
61
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/liquidity_pool_call_builder").LiquidityPoolCallBuilder;
|
|
62
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.LiquidityPoolRecord>;
|
|
63
|
+
}>;
|
|
64
|
+
getNetwork: () => string;
|
|
65
|
+
getOffers: (options: import("./exports/utils").CallBuilderOptions & {
|
|
66
|
+
forAccount?: string;
|
|
67
|
+
buying?: import("@stellar/stellar-base").Asset;
|
|
68
|
+
selling?: import("@stellar/stellar-base").Asset;
|
|
69
|
+
sponsor?: string;
|
|
70
|
+
seller?: string;
|
|
71
|
+
}) => Promise<{
|
|
72
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/offer_call_builder").OfferCallBuilder;
|
|
73
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.OfferRecord>;
|
|
74
|
+
}>;
|
|
75
|
+
getOperations: (options: import("./exports/utils").CallBuilderOptions & {
|
|
76
|
+
forAccount?: string;
|
|
77
|
+
forClaimableBalance?: string;
|
|
78
|
+
forLedger?: string | number;
|
|
79
|
+
forTransaction?: string;
|
|
80
|
+
forLiquidityPool?: string;
|
|
81
|
+
includeFailed?: boolean;
|
|
82
|
+
}) => Promise<{
|
|
83
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/operation_call_builder").OperationCallBuilder;
|
|
84
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.OperationRecord>;
|
|
85
|
+
}>;
|
|
86
|
+
getOrderbook: (args: [selling: import("@stellar/stellar-base").Asset, buying: import("@stellar/stellar-base").Asset], options: import("./exports/utils").CallBuilderOptions) => Promise<{
|
|
87
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/orderbook_call_builder").OrderbookCallBuilder;
|
|
88
|
+
response: Horizon.ServerApi.OrderbookRecord;
|
|
89
|
+
}>;
|
|
90
|
+
getPayments: (options: import("./exports/utils").CallBuilderOptions & {
|
|
91
|
+
forAccount?: string;
|
|
92
|
+
forLedger?: string | number;
|
|
93
|
+
forTransaction?: string;
|
|
94
|
+
includeFailed?: boolean;
|
|
95
|
+
}) => Promise<{
|
|
96
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/payment_call_builder").PaymentCallBuilder;
|
|
97
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.CreateAccountOperationRecord | Horizon.ServerApi.PaymentOperationRecord | Horizon.ServerApi.PathPaymentOperationRecord | Horizon.ServerApi.AccountMergeOperationRecord | Horizon.ServerApi.PathPaymentStrictSendOperationRecord | Horizon.ServerApi.InvokeHostFunctionOperationRecord>;
|
|
98
|
+
}>;
|
|
99
|
+
getStrictReceivePaths: (args: [source: string | import("@stellar/stellar-base").Asset[], destinationAsset: import("@stellar/stellar-base").Asset, destinationAmount: string], options: import("./exports/utils").CallBuilderOptions) => Promise<{
|
|
100
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/path_call_builder").PathCallBuilder;
|
|
101
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.PaymentPathRecord>;
|
|
102
|
+
}>;
|
|
103
|
+
getStrictSendPaths: (args: [sourceAsset: import("@stellar/stellar-base").Asset, sourceAmount: string, destination: string | import("@stellar/stellar-base").Asset[]], options: import("./exports/utils").CallBuilderOptions) => Promise<{
|
|
104
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/path_call_builder").PathCallBuilder;
|
|
105
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.PaymentPathRecord>;
|
|
106
|
+
}>;
|
|
107
|
+
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>;
|
|
108
|
+
getTrades: (options: import("./exports/utils").CallBuilderOptions & {
|
|
109
|
+
forAssetPair?: [base: import("@stellar/stellar-base").Asset, counter: import("@stellar/stellar-base").Asset];
|
|
110
|
+
forOffer?: string;
|
|
111
|
+
forType?: Horizon.ServerApi.TradeType;
|
|
112
|
+
forAccount?: string;
|
|
113
|
+
forLiquidityPool?: string;
|
|
114
|
+
}) => Promise<{
|
|
115
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/trades_call_builder").TradesCallBuilder;
|
|
116
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.TradeRecord>;
|
|
117
|
+
}>;
|
|
118
|
+
getTransactions: (options: import("./exports/utils").CallBuilderOptions & {
|
|
119
|
+
forAccount?: string;
|
|
120
|
+
forClaimableBalance?: string;
|
|
121
|
+
forLedger?: string | number;
|
|
122
|
+
forLiquidityPool?: string;
|
|
123
|
+
includeFailed?: boolean;
|
|
124
|
+
}) => Promise<{
|
|
125
|
+
builder: import("@stellar/stellar-sdk/lib/horizon/transaction_call_builder").TransactionCallBuilder;
|
|
126
|
+
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.TransactionRecord>;
|
|
127
|
+
}>;
|
|
128
|
+
networks: {
|
|
129
|
+
mainnet: import("@stellar/stellar-base").Networks;
|
|
130
|
+
testnet: import("@stellar/stellar-base").Networks;
|
|
131
|
+
sandbox: import("@stellar/stellar-base").Networks;
|
|
132
|
+
futurenet: import("@stellar/stellar-base").Networks;
|
|
133
|
+
standalone: import("@stellar/stellar-base").Networks;
|
|
134
|
+
};
|
|
135
|
+
switchNetwork: (newNetwork: string) => void;
|
|
136
|
+
};
|
|
137
|
+
blux: {
|
|
138
|
+
login: () => Promise<void>;
|
|
139
|
+
logout: () => void;
|
|
140
|
+
profile: () => void;
|
|
141
|
+
sendTransaction: (xdr: string, options: {
|
|
142
|
+
network: string;
|
|
143
|
+
}) => Promise<unknown>;
|
|
144
|
+
readonly isReady: boolean;
|
|
145
|
+
readonly isAuthenticated: boolean;
|
|
146
|
+
readonly user: import("./store").IUser | undefined;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
export default exs;
|