@xswap-link/sdk 0.0.11 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @xswap-link/xswap-sdk
2
2
 
3
+ ## 0.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - f5225bc: make Route.transactions.approve optional
8
+
9
+ ## 0.0.12
10
+
11
+ ### Patch Changes
12
+
13
+ - 1c756ea: make Route fees mandatory
14
+
3
15
  ## 0.0.11
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -114,13 +114,13 @@ type Protocol = {
114
114
  };
115
115
 
116
116
  type XSwapFee = {
117
- tokenFee?: string;
118
- nativeFee?: string;
117
+ tokenFee: string;
118
+ nativeFee: string;
119
119
  };
120
120
 
121
121
  type XSwapFees = {
122
122
  ccipFee?: string;
123
- xSwapFee?: XSwapFee;
123
+ xSwapFee: XSwapFee;
124
124
  expressDeliveryFee?: string;
125
125
  };
126
126
 
@@ -128,10 +128,10 @@ type Route = {
128
128
  estAmountOut: string;
129
129
  minAmountOut: string;
130
130
  transactions: {
131
- approve: TransactionRequest;
131
+ approve?: TransactionRequest;
132
132
  swap: TransactionRequest;
133
133
  };
134
- xSwapFees?: XSwapFees;
134
+ xSwapFees: XSwapFees;
135
135
  message?: string;
136
136
  };
137
137
 
package/dist/index.d.ts CHANGED
@@ -114,13 +114,13 @@ type Protocol = {
114
114
  };
115
115
 
116
116
  type XSwapFee = {
117
- tokenFee?: string;
118
- nativeFee?: string;
117
+ tokenFee: string;
118
+ nativeFee: string;
119
119
  };
120
120
 
121
121
  type XSwapFees = {
122
122
  ccipFee?: string;
123
- xSwapFee?: XSwapFee;
123
+ xSwapFee: XSwapFee;
124
124
  expressDeliveryFee?: string;
125
125
  };
126
126
 
@@ -128,10 +128,10 @@ type Route = {
128
128
  estAmountOut: string;
129
129
  minAmountOut: string;
130
130
  transactions: {
131
- approve: TransactionRequest;
131
+ approve?: TransactionRequest;
132
132
  swap: TransactionRequest;
133
133
  };
134
- xSwapFees?: XSwapFees;
134
+ xSwapFees: XSwapFees;
135
135
  message?: string;
136
136
  };
137
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xswap-link/sdk",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "JavaScript SDK for XSwap platform",
5
5
  "homepage": "https://github.com/xswap-link/xswap-sdk",
6
6
  "repository": {
@@ -5,9 +5,9 @@ export type Route = {
5
5
  estAmountOut: string;
6
6
  minAmountOut: string;
7
7
  transactions: {
8
- approve: TransactionRequest;
8
+ approve?: TransactionRequest;
9
9
  swap: TransactionRequest;
10
10
  };
11
- xSwapFees?: XSwapFees;
11
+ xSwapFees: XSwapFees;
12
12
  message?: string;
13
13
  };
@@ -1,4 +1,4 @@
1
1
  export type XSwapFee = {
2
- tokenFee?: string;
3
- nativeFee?: string;
2
+ tokenFee: string;
3
+ nativeFee: string;
4
4
  };
@@ -2,6 +2,6 @@ import { XSwapFee } from "./XSwapFee";
2
2
 
3
3
  export type XSwapFees = {
4
4
  ccipFee?: string;
5
- xSwapFee?: XSwapFee;
5
+ xSwapFee: XSwapFee;
6
6
  expressDeliveryFee?: string;
7
7
  };