@dzapio/sdk 2.0.10 → 2.0.12

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.
@@ -19,10 +19,13 @@ export declare const fetchAllSupportedChains: () => Promise<any>;
19
19
  export declare const fetchAllTokens: (chainId: number, source?: string, account?: string) => Promise<any>;
20
20
  export declare const fetchTokenDetails: (tokenAddress: string | string[], chainId: number, account?: string, includeBalance?: boolean, includePrice?: boolean) => Promise<any>;
21
21
  export declare const fetchTokenPrice: (tokenAddresses: string[], chainId: number) => Promise<any>;
22
- export declare const fetchStatus: ({ txHash, txIds, chainId }: {
23
- txHash?: string;
24
- txIds?: string;
25
- chainId?: number;
22
+ export declare const fetchStatus: ({ txHash, chainId }: {
23
+ txHash: string;
24
+ chainId: number;
25
+ }) => Promise<any>;
26
+ export declare const fetchMultiTxStatus: ({ txHashes, chainIds }: {
27
+ txHashes: string;
28
+ chainIds: string;
26
29
  }) => Promise<any>;
27
30
  export declare const fetchCalculatedPoints: (request: CalculatePointsRequest) => Promise<any>;
28
31
  export declare const fetchBalances: (chainId: number, account: string) => Promise<any>;
@@ -43,6 +43,6 @@ export declare const STATUS_RESPONSE: {
43
43
  readonly COMPLETED: "COMPLETED";
44
44
  readonly FAILED: "FAILED";
45
45
  readonly PENDING: "PENDING";
46
- readonly PARTIAL_SUCCESS: "PARTIAL_SUCCESS";
46
+ readonly PARTIAL: "PARTIAL";
47
47
  readonly REFUNDED: "REFUNDED";
48
48
  };
@@ -11,5 +11,6 @@ export declare const GET_ALL_TOKENS_URL = "token/tokens";
11
11
  export declare const GET_TOKEN_DETAILS_URL = "token/details";
12
12
  export declare const GET_TOKEN_PRICE = "token/price";
13
13
  export declare const GET_STATUS = "/status";
14
+ export declare const GET_MULTI_STATUS = "/status/multi";
14
15
  export declare const GET_BALANCES = "token/balance-of";
15
16
  export declare const CALCULATE_POINTS_URL = "user/calculatePoints";
@@ -1,7 +1,7 @@
1
1
  import { Signer } from 'ethers';
2
2
  import { Prettify, TransactionReceipt, WalletClient } from 'viem';
3
3
  import { ContractVersion, StatusCodes, TxnStatus } from '../enums';
4
- import { ApprovalMode, AvailableDZapServices, BroadcastTxParams, BroadcastTxResponse, CalculatePointsRequest, ChainData, EvmTxData, GaslessTradeBuildTxnResponse, GasSignatureParams, HexString, OtherAvailableAbis, PermitMode, SignPermitResponse, TokenInfo, TokenResponse, TradeBuildTxnRequest, TradeBuildTxnResponse, TradeQuotesRequest, TradeQuotesResponse, TradeStatusResponse } from '../types';
4
+ import { ApprovalMode, AvailableDZapServices, BroadcastTxParams, BroadcastTxResponse, CalculatePointsRequest, ChainData, EvmTxData, GasSignatureParams, GaslessTradeBuildTxnResponse, HexString, OtherAvailableAbis, PermitMode, SignPermitResponse, TokenInfo, TokenResponse, TradeBuildTxnRequest, TradeBuildTxnResponse, TradeQuotesRequest, TradeQuotesResponse, TradeStatusResponse } from '../types';
5
5
  import { ZapBuildTxnRequest, ZapBuildTxnResponse, ZapChains, ZapPoolDetails, ZapPoolDetailsRequest, ZapPoolsRequest, ZapPoolsResponse, ZapPositionsRequest, ZapPositionsResponse, ZapProviders, ZapQuoteRequest, ZapQuoteResponse, ZapStatusRequest, ZapStatusResponse, ZapTransactionStep } from '../types/zap';
6
6
  import { BatchCallParams } from '../utils/eip-5792';
7
7
  declare class DZapClient {
@@ -879,11 +879,14 @@ declare class DZapClient {
879
879
  }];
880
880
  getTradeQuotes(request: TradeQuotesRequest): Promise<TradeQuotesResponse>;
881
881
  buildTradeTxn(request: TradeBuildTxnRequest): Promise<TradeBuildTxnResponse>;
882
- getTradeTxnStatus({ txHash, txIds, chainId, }: {
883
- txHash?: string;
884
- txIds?: string;
885
- chainId?: number;
886
- }): Promise<TradeStatusResponse | Record<string, TradeStatusResponse>>;
882
+ getTradeTxnStatus({ txHash, chainId }: {
883
+ txHash: string;
884
+ chainId: number;
885
+ }): Promise<TradeStatusResponse>;
886
+ getTradeMultiTxnStatus({ txHashes, chainIds }: {
887
+ txHashes: string;
888
+ chainIds: string;
889
+ }): Promise<TradeStatusResponse[]>;
887
890
  getAllSupportedChains(): Promise<ChainData>;
888
891
  getAllTokens(chainId: number, source?: string, account?: string): Promise<any>;
889
892
  getTokenDetails(tokenAddress: string, chainId: number, account?: string, includeBalance?: boolean, includePrice?: boolean): Promise<TokenInfo>;