@xswap-link/sdk 0.11.0 → 0.11.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xswap-link/sdk",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "JavaScript SDK for XSwap platform",
5
5
  "homepage": "https://github.com/xswap-link/xswap-sdk",
6
6
  "repository": {
@@ -179,6 +179,22 @@ export const ADDRESSES: Addresses = {
179
179
  [ContractName.XSwapRouterSingleChain]:
180
180
  "0x0bb24c4302889ea0fb22dfacbb845e5602f35972",
181
181
  },
182
+ // 0G
183
+ "16661": {
184
+ [ContractName.BatchQuery]: "0x73d73d323452505518a898066529c01D4c3eF15b",
185
+ [ContractName.FeeCollector]: "0x01CF9356668e94B4efd16842851a7c805199b3F5",
186
+ [ContractName.XSwapRouter]: "0x543F4Ae34DB4d5d11B564b578a2E79221a48CcC2",
187
+ [ContractName.XSwapRouterSingleChain]:
188
+ "0xf6ce7dbdd78A4589A4526278d3f88bd66E040d0d",
189
+ },
190
+ // plasma
191
+ "9745": {
192
+ [ContractName.BatchQuery]: "0x73d73d323452505518a898066529c01D4c3eF15b",
193
+ [ContractName.FeeCollector]: "0x01CF9356668e94B4efd16842851a7c805199b3F5",
194
+ [ContractName.XSwapRouter]: "0x543F4Ae34DB4d5d11B564b578a2E79221a48CcC2",
195
+ [ContractName.XSwapRouterSingleChain]:
196
+ "0xf6ce7dbdd78A4589A4526278d3f88bd66E040d0d",
197
+ },
182
198
  // solana
183
199
  "mainnet-beta": {
184
200
  [ContractName.FeeCollector]: "XSwapfFzSz84kkGk5PCYzLrntPfLubFRJGbJRQjC7th",
@@ -1,7 +1,6 @@
1
- import { CoinTypeAddress, CollectFees, ContractCall } from "@src/models";
1
+ import { ContractCall } from "@src/models";
2
2
 
3
3
  export type GetRoutePayload = {
4
- integratorId: string;
5
4
  fromChain: string;
6
5
  toChain: string;
7
6
  fromToken: string;
@@ -10,17 +9,15 @@ export type GetRoutePayload = {
10
9
  fromAddress: string;
11
10
  toAddress: string;
12
11
  paymentToken: string;
12
+ integratorId: string;
13
13
  slippage: number;
14
14
  expressDelivery: boolean;
15
- quoteOnly?: boolean;
16
- enableExpress?: boolean;
15
+ infiniteApproval?: boolean;
17
16
  customContractCalls?: ContractCall[];
18
17
  sourceChainDexes?: string[];
19
18
  destinationChainDexes?: string[];
20
- receiveGasOnDestination?: boolean;
21
- collectFees?: CollectFees;
22
- fallbackAddresses?: CoinTypeAddress[];
23
- infiniteApproval: boolean;
24
19
  integratorFee?: number;
25
20
  integratorFeeReceiverAddress?: string;
21
+ gasLimit?: number;
22
+ swapRouteProviders?: string[];
26
23
  };
@@ -88,7 +88,7 @@ export function parseWeb3Error(error: any): string {
88
88
  case ethers.errors.UNPREDICTABLE_GAS_LIMIT:
89
89
  return "Unable to estimate gas limit. The transaction might fail.";
90
90
  default:
91
- return "An error occurred: " + error.message;
91
+ return "An unexpected error occurred.";
92
92
  }
93
93
  }
94
94