@dzapio/sdk 2.0.11 → 2.0.13
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/chains/definitions/pushTestnet.d.ts +35 -0
- package/dist/constants/chains.d.ts +1 -0
- 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 +7 -1
- package/dist/types/zap/status.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -118,19 +118,25 @@ export type Fee = {
|
|
|
118
118
|
providerFee: FeeDetails[];
|
|
119
119
|
};
|
|
120
120
|
export type QuoteFilter = keyof typeof QuoteFilters;
|
|
121
|
+
export type ProtocolFilter = {
|
|
122
|
+
allow?: string[];
|
|
123
|
+
deny?: string[];
|
|
124
|
+
};
|
|
121
125
|
export type TradeQuotesRequest = {
|
|
122
126
|
fromChain: number;
|
|
123
127
|
gasless?: boolean;
|
|
124
128
|
data: TradeQuotesRequestData[];
|
|
125
129
|
disableEstimation?: boolean;
|
|
126
130
|
account?: string;
|
|
127
|
-
|
|
131
|
+
bridges?: ProtocolFilter;
|
|
132
|
+
dexes?: ProtocolFilter;
|
|
128
133
|
filter?: QuoteFilter;
|
|
129
134
|
timingStrategy?: Partial<{
|
|
130
135
|
minWaitTimeMs: number;
|
|
131
136
|
maxWaitTimeMs: number;
|
|
132
137
|
subsequentDelayMs: number;
|
|
133
138
|
preferredResultCount: number;
|
|
139
|
+
relaxMinSuccessOnDelay: boolean;
|
|
134
140
|
}>;
|
|
135
141
|
};
|
|
136
142
|
export type TradeQuotesRequestData = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProviderDetails } from '..';
|
|
2
2
|
import { ZapPathAsset } from './path';
|
|
3
|
-
export type ZapStatus = 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
3
|
+
export type ZapStatus = 'PENDING' | 'COMPLETED' | 'FAILED' | 'REFUNDED';
|
|
4
4
|
export type ZapStatusAsset = {
|
|
5
5
|
asset: ZapPathAsset;
|
|
6
6
|
amount: string;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -3615,10 +3615,12 @@ export declare const getPublicClient: ({ rpcUrls, chainId }: {
|
|
|
3615
3615
|
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "type" | "fees" | "gas" | "blobVersionedHashes") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "type" | "fees" | "gas" | "blobVersionedHashes") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
3616
3616
|
readContract: <const abi extends Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "pure" | "view">, const args extends import("viem").ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: import("viem").ReadContractParameters<abi, functionName, args>) => Promise<import("viem").ReadContractReturnType<abi, functionName, args>>;
|
|
3617
3617
|
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<import("viem").SendRawTransactionReturnType>;
|
|
3618
|
+
sendRawTransactionSync: (args: import("viem").SendRawTransactionSyncParameters) => Promise<TransactionReceipt>;
|
|
3618
3619
|
simulate: <const calls extends readonly unknown[]>(args: import("viem").SimulateBlocksParameters<calls>) => Promise<import("viem").SimulateBlocksReturnType<calls>>;
|
|
3619
3620
|
simulateBlocks: <const calls extends readonly unknown[]>(args: import("viem").SimulateBlocksParameters<calls>) => Promise<import("viem").SimulateBlocksReturnType<calls>>;
|
|
3620
3621
|
simulateCalls: <const calls extends readonly unknown[]>(args: import("viem").SimulateCallsParameters<calls>) => Promise<import("viem").SimulateCallsReturnType<calls>>;
|
|
3621
3622
|
simulateContract: <const abi extends Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends import("viem").ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends import("viem").Chain | undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(args: import("viem").SimulateContractParameters<abi, functionName, args_1, import("viem").Chain, chainOverride, accountOverride>) => Promise<import("viem").SimulateContractReturnType<abi, functionName, args_1, import("viem").Chain, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
3623
|
+
verifyHash: (args: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>;
|
|
3622
3624
|
verifyMessage: (args: import("viem").VerifyMessageActionParameters) => Promise<import("viem").VerifyMessageActionReturnType>;
|
|
3623
3625
|
verifySiweMessage: (args: import("viem/_types/actions/siwe/verifySiweMessage").VerifySiweMessageParameters) => Promise<import("viem/_types/actions/siwe/verifySiweMessage").VerifySiweMessageReturnType>;
|
|
3624
3626
|
verifyTypedData: (args: import("viem").VerifyTypedDataActionParameters) => Promise<import("viem").VerifyTypedDataActionReturnType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzapio/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"decimal.js": "^10.4.3",
|
|
105
105
|
"node-cache": "^5.1.2",
|
|
106
106
|
"ethers": "5.7.2",
|
|
107
|
-
"viem": "
|
|
107
|
+
"viem": "2.45.1"
|
|
108
108
|
},
|
|
109
109
|
"repository": {
|
|
110
110
|
"type": "git",
|