@dzapio/sdk 2.0.10 → 2.0.11
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/api/index.d.ts +7 -4
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/urlConstants.d.ts +1 -0
- package/dist/dZapClient/index.d.ts +9 -6
- package/dist/index.js +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/index.d.ts +27 -12
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -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,
|
|
23
|
-
txHash
|
|
24
|
-
|
|
25
|
-
|
|
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>;
|
|
@@ -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,
|
|
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,
|
|
883
|
-
txHash
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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>;
|