@dzapio/sdk 2.0.11 → 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.
- package/dist/types/index.d.ts +7 -1
- 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 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzapio/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
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",
|