@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.
Files changed (98) hide show
  1. package/dist/assets/Icons.d.ts +98 -0
  2. package/dist/assets/Logos.d.ts +24 -0
  3. package/dist/assets/bluxLogo.d.ts +8 -0
  4. package/dist/components/Alert/index.d.ts +9 -0
  5. package/dist/components/AssetsList/index.d.ts +6 -0
  6. package/dist/components/Button/index.d.ts +17 -0
  7. package/dist/components/CardItem/index.d.ts +16 -0
  8. package/dist/components/Divider/index.d.ts +2 -0
  9. package/dist/components/Header/index.d.ts +10 -0
  10. package/dist/components/Input/OTPInput.d.ts +8 -0
  11. package/dist/components/Input/index.d.ts +18 -0
  12. package/dist/components/Modal/Backdrop/index.d.ts +7 -0
  13. package/dist/components/Modal/index.d.ts +11 -0
  14. package/dist/components/Provider.d.ts +1 -0
  15. package/dist/components/QRCode/index.d.ts +10 -0
  16. package/dist/components/TabBox/index.d.ts +12 -0
  17. package/dist/components/Transaction/History/index.d.ts +12 -0
  18. package/dist/components/Transaction/Summary/index.d.ts +10 -0
  19. package/dist/constants/consts.d.ts +2 -0
  20. package/dist/constants/explorers.d.ts +9 -0
  21. package/dist/constants/locales.d.ts +9 -0
  22. package/dist/constants/networkDetails.d.ts +14 -0
  23. package/dist/constants/routes.d.ts +9 -0
  24. package/dist/constants/themes.d.ts +3 -0
  25. package/dist/enums.d.ts +33 -0
  26. package/dist/exports/blux.d.ts +15 -0
  27. package/dist/exports/core/callBuilder.d.ts +59 -0
  28. package/dist/exports/core/getAccount.d.ts +8 -0
  29. package/dist/exports/core/getAccounts.d.ts +15 -0
  30. package/dist/exports/core/getAssets.d.ts +13 -0
  31. package/dist/exports/core/getBalances.d.ts +8 -0
  32. package/dist/exports/core/getClaimableBalances.d.ts +14 -0
  33. package/dist/exports/core/getEffects.d.ts +16 -0
  34. package/dist/exports/core/getLedgers.d.ts +12 -0
  35. package/dist/exports/core/getLiquidityPools.d.ts +13 -0
  36. package/dist/exports/core/getNetwork.d.ts +2 -0
  37. package/dist/exports/core/getOffers.d.ts +16 -0
  38. package/dist/exports/core/getOperations.d.ts +17 -0
  39. package/dist/exports/core/getOrderbook.d.ts +9 -0
  40. package/dist/exports/core/getPayments.d.ts +12 -0
  41. package/dist/exports/core/getStrictReceivePaths.d.ts +9 -0
  42. package/dist/exports/core/getStrictSendPaths.d.ts +9 -0
  43. package/dist/exports/core/getTradeAggregation.d.ts +5 -0
  44. package/dist/exports/core/getTrades.d.ts +16 -0
  45. package/dist/exports/core/getTransactions.d.ts +16 -0
  46. package/dist/exports/core/index.d.ts +131 -0
  47. package/dist/exports/core/networks.d.ts +9 -0
  48. package/dist/exports/core/switchNetwork.d.ts +2 -0
  49. package/dist/exports/index.d.ts +144 -0
  50. package/dist/exports/utils.d.ts +14 -0
  51. package/dist/hooks/useBalances.d.ts +8 -0
  52. package/dist/hooks/useDynamicHeight.d.ts +4 -0
  53. package/dist/hooks/useIsMobile.d.ts +1 -0
  54. package/dist/hooks/useLang.d.ts +2 -0
  55. package/dist/hooks/useModalAnimation.d.ts +7 -0
  56. package/dist/hooks/useTransactions.d.ts +11 -0
  57. package/dist/hooks/useUpdateAccount.d.ts +2 -0
  58. package/dist/index.cjs.js +6 -0
  59. package/dist/index.d.ts +149 -0
  60. package/dist/index.esm.js +6 -0
  61. package/dist/index.iife.js +6 -0
  62. package/dist/pages/About/index.d.ts +2 -0
  63. package/dist/pages/Onboarding/OTP/index.d.ts +2 -0
  64. package/dist/pages/Onboarding/index.d.ts +2 -0
  65. package/dist/pages/Profile/Activity/index.d.ts +2 -0
  66. package/dist/pages/Profile/Balances/AddToken/index.d.ts +2 -0
  67. package/dist/pages/Profile/Balances/BalanceDetails/index.d.ts +2 -0
  68. package/dist/pages/Profile/Balances/index.d.ts +2 -0
  69. package/dist/pages/Profile/Receive/index.d.ts +2 -0
  70. package/dist/pages/Profile/SelectAsset/index.d.ts +9 -0
  71. package/dist/pages/Profile/Send/SendForm.d.ts +2 -0
  72. package/dist/pages/Profile/Send/index.d.ts +2 -0
  73. package/dist/pages/Profile/Swap/AssetBox/index.d.ts +4 -0
  74. package/dist/pages/Profile/Swap/index.d.ts +2 -0
  75. package/dist/pages/Profile/index.d.ts +2 -0
  76. package/dist/pages/SendTransaction/index.d.ts +2 -0
  77. package/dist/pages/SignMessage/index.d.ts +2 -0
  78. package/dist/pages/Successful/index.d.ts +2 -0
  79. package/dist/pages/Waiting/index.d.ts +2 -0
  80. package/dist/pages/WrongNetwork/index.d.ts +2 -0
  81. package/dist/stellar/getTransactionDetails.d.ts +8 -0
  82. package/dist/stellar/handleTransactionSigning.d.ts +5 -0
  83. package/dist/stellar/paymentTransaction.d.ts +4 -0
  84. package/dist/stellar/signTransaction.d.ts +3 -0
  85. package/dist/stellar/submitTransaction.d.ts +7 -0
  86. package/dist/store.d.ts +72 -0
  87. package/dist/types.d.ts +109 -0
  88. package/dist/utils/animatedGradient.d.ts +18 -0
  89. package/dist/utils/helpers.d.ts +31 -0
  90. package/dist/utils/walletLogos.d.ts +2 -0
  91. package/dist/wallets/albedo.d.ts +2 -0
  92. package/dist/wallets/freighter.d.ts +2 -0
  93. package/dist/wallets/hana.d.ts +2 -0
  94. package/dist/wallets/index.d.ts +3 -0
  95. package/dist/wallets/lobstr.d.ts +2 -0
  96. package/dist/wallets/rabet.d.ts +2 -0
  97. package/dist/wallets/xbull.d.ts +2 -0
  98. package/package.json +61 -0
@@ -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;