@xswap-link/sdk 0.0.11 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @xswap-link/xswap-sdk
2
2
 
3
+ ## 0.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 1c756ea: make Route fees mandatory
8
+
3
9
  ## 0.0.11
4
10
 
5
11
  ### 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
 
@@ -131,7 +131,7 @@ type Route = {
131
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
 
@@ -131,7 +131,7 @@ type Route = {
131
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.12",
4
4
  "description": "JavaScript SDK for XSwap platform",
5
5
  "homepage": "https://github.com/xswap-link/xswap-sdk",
6
6
  "repository": {
@@ -8,6 +8,6 @@ export type Route = {
8
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
  };