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