@bluxcc/core 0.1.7 → 0.1.9
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/package.json +1 -1
- package/dist/assets/Icons.d.ts +0 -107
- package/dist/assets/Logos.d.ts +0 -30
- package/dist/assets/bluxLogo.d.ts +0 -8
- package/dist/components/Alert/index.d.ts +0 -9
- package/dist/components/AssetsList/index.d.ts +0 -6
- package/dist/components/Button/index.d.ts +0 -19
- package/dist/components/CardItem/index.d.ts +0 -16
- package/dist/components/Divider/index.d.ts +0 -2
- package/dist/components/Header/index.d.ts +0 -10
- package/dist/components/Input/OTPInput.d.ts +0 -8
- package/dist/components/Input/index.d.ts +0 -19
- package/dist/components/Modal/index.d.ts +0 -11
- package/dist/components/Provider.d.ts +0 -1
- package/dist/components/QRCode/index.d.ts +0 -11
- package/dist/components/TabBox/index.d.ts +0 -12
- package/dist/components/Transaction/History/index.d.ts +0 -12
- package/dist/components/Transaction/Summary/index.d.ts +0 -10
- package/dist/constants/assets.d.ts +0 -18
- package/dist/constants/consts.d.ts +0 -4
- package/dist/constants/explorers.d.ts +0 -9
- package/dist/constants/locales.d.ts +0 -9
- package/dist/constants/networkDetails.d.ts +0 -14
- package/dist/constants/routes.d.ts +0 -9
- package/dist/constants/themes.d.ts +0 -3
- package/dist/enums.d.ts +0 -39
- package/dist/exports/blux.d.ts +0 -21
- package/dist/exports/core/callBuilder.d.ts +0 -59
- package/dist/exports/core/getAccount.d.ts +0 -8
- package/dist/exports/core/getAccounts.d.ts +0 -15
- package/dist/exports/core/getAssets.d.ts +0 -13
- package/dist/exports/core/getBalances.d.ts +0 -9
- package/dist/exports/core/getClaimableBalances.d.ts +0 -14
- package/dist/exports/core/getEffects.d.ts +0 -16
- package/dist/exports/core/getLedgers.d.ts +0 -12
- package/dist/exports/core/getLiquidityPools.d.ts +0 -13
- package/dist/exports/core/getNetwork.d.ts +0 -2
- package/dist/exports/core/getOffers.d.ts +0 -16
- package/dist/exports/core/getOperations.d.ts +0 -17
- package/dist/exports/core/getOrderbook.d.ts +0 -9
- package/dist/exports/core/getPayments.d.ts +0 -12
- package/dist/exports/core/getStrictReceivePaths.d.ts +0 -9
- package/dist/exports/core/getStrictSendPaths.d.ts +0 -9
- package/dist/exports/core/getTradeAggregation.d.ts +0 -5
- package/dist/exports/core/getTrades.d.ts +0 -16
- package/dist/exports/core/getTransactions.d.ts +0 -16
- package/dist/exports/core/index.d.ts +0 -32
- package/dist/exports/core/networks.d.ts +0 -9
- package/dist/exports/core/switchNetwork.d.ts +0 -2
- package/dist/exports/createConfig.d.ts +0 -3
- package/dist/exports/index.d.ts +0 -48
- package/dist/exports/utils.d.ts +0 -14
- package/dist/hooks/useBalances.d.ts +0 -8
- package/dist/hooks/useCheckWalletNetwork.d.ts +0 -3
- package/dist/hooks/useDynamicHeight.d.ts +0 -5
- package/dist/hooks/useIsMobile.d.ts +0 -1
- package/dist/hooks/useLang.d.ts +0 -2
- package/dist/hooks/useLockBodyScroll.d.ts +0 -1
- package/dist/hooks/useModalAnimation.d.ts +0 -5
- package/dist/hooks/useTransactions.d.ts +0 -11
- package/dist/hooks/useUpdateAccount.d.ts +0 -2
- package/dist/index.cjs.js +0 -27
- package/dist/index.d.ts +0 -47
- package/dist/index.esm.js +0 -27
- package/dist/index.iife.js +0 -35
- package/dist/pages/About/index.d.ts +0 -2
- package/dist/pages/Failed/index.d.ts +0 -2
- package/dist/pages/Onboarding/OTP/index.d.ts +0 -2
- package/dist/pages/Onboarding/index.d.ts +0 -2
- package/dist/pages/Profile/Activity/index.d.ts +0 -2
- package/dist/pages/Profile/Balances/AddToken/index.d.ts +0 -2
- package/dist/pages/Profile/Balances/BalanceDetails/index.d.ts +0 -2
- package/dist/pages/Profile/Balances/index.d.ts +0 -2
- package/dist/pages/Profile/Receive/index.d.ts +0 -2
- package/dist/pages/Profile/SelectAsset/index.d.ts +0 -2
- package/dist/pages/Profile/Send/index.d.ts +0 -2
- package/dist/pages/Profile/Swap/AssetBox/index.d.ts +0 -7
- package/dist/pages/Profile/Swap/index.d.ts +0 -2
- package/dist/pages/Profile/index.d.ts +0 -2
- package/dist/pages/SendTransaction/index.d.ts +0 -2
- package/dist/pages/SignMessage/index.d.ts +0 -2
- package/dist/pages/Successful/index.d.ts +0 -2
- package/dist/pages/Waiting/index.d.ts +0 -2
- package/dist/pages/WalletConnect/index.d.ts +0 -2
- package/dist/pages/WrongNetwork/index.d.ts +0 -2
- package/dist/stellar/getTransactionDetails.d.ts +0 -8
- package/dist/stellar/handleSignMessage.d.ts +0 -3
- package/dist/stellar/handleTransactionSigning.d.ts +0 -3
- package/dist/stellar/paymentTransaction.d.ts +0 -4
- package/dist/stellar/processes/connectWalletProcess.d.ts +0 -4
- package/dist/stellar/processes/sendTransactionProcess.d.ts +0 -3
- package/dist/stellar/processes/signMessageProcess.d.ts +0 -3
- package/dist/stellar/signTransaction.d.ts +0 -3
- package/dist/stellar/submitTransaction.d.ts +0 -5
- package/dist/stellar/swapTransaction.d.ts +0 -4
- package/dist/store.d.ts +0 -87
- package/dist/types.d.ts +0 -114
- package/dist/utils/animatedGradient.d.ts +0 -18
- package/dist/utils/helpers.d.ts +0 -40
- package/dist/utils/initializeWalletConnect.d.ts +0 -7
- package/dist/utils/walletLogos.d.ts +0 -2
- package/dist/wallets/albedo.d.ts +0 -2
- package/dist/wallets/freighter.d.ts +0 -2
- package/dist/wallets/hana.d.ts +0 -2
- package/dist/wallets/hot.d.ts +0 -2
- package/dist/wallets/index.d.ts +0 -3
- package/dist/wallets/klever.d.ts +0 -2
- package/dist/wallets/lobstr.d.ts +0 -2
- package/dist/wallets/rabet.d.ts +0 -2
- package/dist/wallets/walletConnect.d.ts +0 -2
- package/dist/wallets/xbull.d.ts +0 -2
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
forAccount?: string;
|
|
6
|
-
buying?: Asset;
|
|
7
|
-
selling?: Asset;
|
|
8
|
-
sponsor?: string;
|
|
9
|
-
seller?: string;
|
|
10
|
-
};
|
|
11
|
-
export type GetOffersResult = {
|
|
12
|
-
builder: OfferCallBuilder;
|
|
13
|
-
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.OfferRecord>;
|
|
14
|
-
};
|
|
15
|
-
declare const getOffers: (options: GetOffersOptions) => Promise<GetOffersResult>;
|
|
16
|
-
export default getOffers;
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
forAccount?: string;
|
|
6
|
-
forClaimableBalance?: string;
|
|
7
|
-
forLedger?: string | number;
|
|
8
|
-
forTransaction?: string;
|
|
9
|
-
forLiquidityPool?: string;
|
|
10
|
-
includeFailed?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type GetOperationsResult = {
|
|
13
|
-
builder: OperationCallBuilder;
|
|
14
|
-
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.OperationRecord>;
|
|
15
|
-
};
|
|
16
|
-
declare const getOperations: (options: GetOperationsOptions) => Promise<GetOperationsResult>;
|
|
17
|
-
export default getOperations;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
builder: OrderbookCallBuilder;
|
|
6
|
-
response: Horizon.ServerApi.OrderbookRecord;
|
|
7
|
-
};
|
|
8
|
-
declare const getOrderbook: (args: [selling: Asset, buying: Asset], options: CallBuilderOptions) => Promise<GetOrderbookResult>;
|
|
9
|
-
export default getOrderbook;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CallBuilderOptions } from '../utils';
|
|
2
|
-
export type GetPaymentsOptions = CallBuilderOptions & {
|
|
3
|
-
forAccount?: string;
|
|
4
|
-
forLedger?: string | number;
|
|
5
|
-
forTransaction?: string;
|
|
6
|
-
includeFailed?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const getPayments: (options: GetPaymentsOptions) => Promise<{
|
|
9
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/payment_call_builder").PaymentCallBuilder;
|
|
10
|
-
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>;
|
|
11
|
-
}>;
|
|
12
|
-
export default getPayments;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
builder: PathCallBuilder;
|
|
6
|
-
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.PaymentPathRecord>;
|
|
7
|
-
};
|
|
8
|
-
declare const getStrictReceivePaths: (args: [source: string | Asset[], destinationAsset: Asset, destinationAmount: string], options: CallBuilderOptions) => Promise<GetPaymentPathResult>;
|
|
9
|
-
export default getStrictReceivePaths;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
builder: PathCallBuilder;
|
|
6
|
-
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.PaymentPathRecord>;
|
|
7
|
-
};
|
|
8
|
-
declare const getStrictSendPaths: (args: [sourceAsset: Asset, sourceAmount: string, destination: string | Asset[]], options: CallBuilderOptions) => Promise<GetPaymentPathResult>;
|
|
9
|
-
export default getStrictSendPaths;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Asset } from '@stellar/stellar-sdk';
|
|
2
|
-
import { CallBuilderOptions } from '../utils';
|
|
3
|
-
export type GetTradeAggregationResult = any;
|
|
4
|
-
declare const getTradeAggregation: (args: [base: Asset, counter: Asset, start_time: number, end_time: number, resolution: number, offset: number], options: CallBuilderOptions) => Promise<GetTradeAggregationResult>;
|
|
5
|
-
export default getTradeAggregation;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
forAssetPair?: [base: Asset, counter: Asset];
|
|
6
|
-
forOffer?: string;
|
|
7
|
-
forType?: Horizon.ServerApi.TradeType;
|
|
8
|
-
forAccount?: string;
|
|
9
|
-
forLiquidityPool?: string;
|
|
10
|
-
};
|
|
11
|
-
export type GetTradesResult = {
|
|
12
|
-
builder: TradesCallBuilder;
|
|
13
|
-
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.TradeRecord>;
|
|
14
|
-
};
|
|
15
|
-
declare const getTrades: (options: GetTradesOptions) => Promise<GetTradesResult>;
|
|
16
|
-
export default getTrades;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
forAccount?: string;
|
|
6
|
-
forClaimableBalance?: string;
|
|
7
|
-
forLedger?: string | number;
|
|
8
|
-
forLiquidityPool?: string;
|
|
9
|
-
includeFailed?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type GetTransactionsResult = {
|
|
12
|
-
builder: TransactionCallBuilder;
|
|
13
|
-
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.TransactionRecord>;
|
|
14
|
-
};
|
|
15
|
-
declare const getTransactions: (options: GetTransactionsOptions) => Promise<GetTransactionsResult>;
|
|
16
|
-
export default getTransactions;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
declare const core: {
|
|
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>;
|
|
10
|
-
getNetwork: () => string;
|
|
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<{
|
|
15
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/payment_call_builder").PaymentCallBuilder;
|
|
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>;
|
|
17
|
-
}>;
|
|
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>;
|
|
23
|
-
networks: {
|
|
24
|
-
mainnet: import("@stellar/stellar-base").Networks;
|
|
25
|
-
testnet: import("@stellar/stellar-base").Networks;
|
|
26
|
-
sandbox: import("@stellar/stellar-base").Networks;
|
|
27
|
-
futurenet: import("@stellar/stellar-base").Networks;
|
|
28
|
-
standalone: import("@stellar/stellar-base").Networks;
|
|
29
|
-
};
|
|
30
|
-
switchNetwork: (newNetwork: string) => void;
|
|
31
|
-
};
|
|
32
|
-
export default core;
|
package/dist/exports/index.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
core: {
|
|
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>;
|
|
11
|
-
getNetwork: () => string;
|
|
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<{
|
|
16
|
-
builder: import("@stellar/stellar-sdk/lib/horizon/payment_call_builder").PaymentCallBuilder;
|
|
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>;
|
|
18
|
-
}>;
|
|
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>;
|
|
24
|
-
networks: {
|
|
25
|
-
mainnet: import("@stellar/stellar-base").Networks;
|
|
26
|
-
testnet: import("@stellar/stellar-base").Networks;
|
|
27
|
-
sandbox: import("@stellar/stellar-base").Networks;
|
|
28
|
-
futurenet: import("@stellar/stellar-base").Networks;
|
|
29
|
-
standalone: import("@stellar/stellar-base").Networks;
|
|
30
|
-
};
|
|
31
|
-
switchNetwork: (newNetwork: string) => void;
|
|
32
|
-
};
|
|
33
|
-
blux: {
|
|
34
|
-
login: () => Promise<void>;
|
|
35
|
-
logout: () => void;
|
|
36
|
-
profile: () => void;
|
|
37
|
-
signMessage: (message: string, options?: {
|
|
38
|
-
network: string;
|
|
39
|
-
}) => Promise<unknown>;
|
|
40
|
-
sendTransaction: (xdr: string, options?: {
|
|
41
|
-
network: string;
|
|
42
|
-
}) => Promise<unknown>;
|
|
43
|
-
readonly isReady: boolean;
|
|
44
|
-
readonly isAuthenticated: boolean;
|
|
45
|
-
readonly user: import("../store").IUser | undefined;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default _default;
|
package/dist/exports/utils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Horizon, rpc } from '@stellar/stellar-sdk';
|
|
2
|
-
export type CallBuilderOptions = {
|
|
3
|
-
cursor?: string;
|
|
4
|
-
limit?: number;
|
|
5
|
-
network?: string;
|
|
6
|
-
order?: 'asc' | 'desc';
|
|
7
|
-
};
|
|
8
|
-
export declare const checkConfigCreated: () => boolean;
|
|
9
|
-
export declare const getAddress: (address?: string) => string;
|
|
10
|
-
export declare const getNetwork: (network?: string) => {
|
|
11
|
-
horizon: Horizon.Server;
|
|
12
|
-
soroban: rpc.Server;
|
|
13
|
-
networkPassphrase: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useIsMobile: (breakpoint?: number) => boolean;
|
package/dist/hooks/useLang.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useLockBodyScroll(lock: boolean): void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
-
interface TransactionRecordWithOperations extends Omit<Horizon.ServerApi.TransactionRecord, 'operations'> {
|
|
3
|
-
operations: Horizon.ServerApi.OperationRecord[];
|
|
4
|
-
}
|
|
5
|
-
export type UseTransactionsResult = {
|
|
6
|
-
loading: boolean;
|
|
7
|
-
error: Error | null;
|
|
8
|
-
transactions: TransactionRecordWithOperations[];
|
|
9
|
-
};
|
|
10
|
-
declare const useTransactions: () => UseTransactionsResult;
|
|
11
|
-
export default useTransactions;
|