@xswap-link/sdk 0.0.5 → 0.0.7

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.7
4
+
5
+ ### Patch Changes
6
+
7
+ - cabadbe: update Chain model
8
+
9
+ ## 0.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - f8a43e2: add optional Route.message property
14
+
3
15
  ## 0.0.5
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -27,11 +27,17 @@ type Chain = {
27
27
  chainId: string;
28
28
  name: string;
29
29
  displayName: string;
30
+ image: string;
30
31
  web3Environment: Web3Environment;
31
- transactionExplorer: string;
32
- rpcUrls?: Array<string>;
32
+ tokenSymbol: string;
33
33
  ccipChainId: string;
34
+ transactionExplorer: string;
35
+ bridgeSupported: boolean;
36
+ swapSupported: boolean;
34
37
  tokens: Token[];
38
+ publicRpcUrls: string[];
39
+ privateRpcUrls?: string[];
40
+ scanApiURL?: string;
35
41
  };
36
42
 
37
43
  type CoinTypeAddress = {
@@ -130,6 +136,7 @@ type Route = {
130
136
  swap: TransactionRequest;
131
137
  };
132
138
  xSwapFees: XSwapFees;
139
+ message?: string;
133
140
  };
134
141
 
135
142
  type Referral = {
package/dist/index.d.ts CHANGED
@@ -27,11 +27,17 @@ type Chain = {
27
27
  chainId: string;
28
28
  name: string;
29
29
  displayName: string;
30
+ image: string;
30
31
  web3Environment: Web3Environment;
31
- transactionExplorer: string;
32
- rpcUrls?: Array<string>;
32
+ tokenSymbol: string;
33
33
  ccipChainId: string;
34
+ transactionExplorer: string;
35
+ bridgeSupported: boolean;
36
+ swapSupported: boolean;
34
37
  tokens: Token[];
38
+ publicRpcUrls: string[];
39
+ privateRpcUrls?: string[];
40
+ scanApiURL?: string;
35
41
  };
36
42
 
37
43
  type CoinTypeAddress = {
@@ -130,6 +136,7 @@ type Route = {
130
136
  swap: TransactionRequest;
131
137
  };
132
138
  xSwapFees: XSwapFees;
139
+ message?: string;
133
140
  };
134
141
 
135
142
  type Referral = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xswap-link/sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "JavaScript SDK for XSwap platform",
5
5
  "homepage": "https://github.com/xswap-link/xswap-sdk",
6
6
  "repository": {
@@ -6,9 +6,15 @@ export type Chain = {
6
6
  chainId: string;
7
7
  name: string;
8
8
  displayName: string;
9
+ image: string;
9
10
  web3Environment: Web3Environment;
10
- transactionExplorer: string;
11
- rpcUrls?: Array<string>;
11
+ tokenSymbol: string;
12
12
  ccipChainId: string;
13
+ transactionExplorer: string;
14
+ bridgeSupported: boolean;
15
+ swapSupported: boolean;
13
16
  tokens: Token[];
17
+ publicRpcUrls: string[];
18
+ privateRpcUrls?: string[];
19
+ scanApiURL?: string;
14
20
  };
@@ -20,4 +20,5 @@ export type Route = {
20
20
  swap: TransactionRequest;
21
21
  };
22
22
  xSwapFees: XSwapFees;
23
+ message?: string;
23
24
  };