@kaspacom/swap-sdk 1.1.22 → 1.1.24

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/index.cjs CHANGED
@@ -1661,7 +1661,8 @@ var SwapService = class {
1661
1661
  throw new Error("Please connect wallet first");
1662
1662
  }
1663
1663
  try {
1664
- const deadlineTimestamp = Math.floor(Date.now() / 1e3) + deadline * 60;
1664
+ const block = await this.provider.getBlock("latest");
1665
+ const deadlineTimestamp = (block?.timestamp || Math.floor(Date.now() / 1e3)) + deadline * 60;
1665
1666
  let tx;
1666
1667
  const signerAddress = await this.signer.getAddress();
1667
1668
  const iface = this.proxyContract ? this.proxyContract.interface : this.routerContract.interface;
@@ -2097,14 +2098,14 @@ var NETWORKS = {
2097
2098
  defiApiNetworkName: "kasplex"
2098
2099
  },
2099
2100
  "igra-testnet": {
2100
- name: "Igra Caravel",
2101
- chainId: 19416,
2102
- rpcUrl: "https://caravel.igralabs.com:8545",
2101
+ name: "Igra Galleon",
2102
+ chainId: 38836,
2103
+ rpcUrl: "https://galleon-testnet.igralabs.com:8545",
2103
2104
  routerAddress: "0x9a5514828a3c2b36920b7c4fe0d6bd7fe8e8924f",
2104
2105
  factoryAddress: "0x1a8136A6da6CA7fe8960c4d098d90Ba2BA712B9F",
2105
2106
  proxyAddress: "0x47f80b6d7071b7738d6dd9d973d7515ce753e9d9",
2106
2107
  badckendApiUrl: "https://dev-api-defi.kaspa.com",
2107
- blockExplorerUrl: "https://explorer.caravel.igralabs.com",
2108
+ blockExplorerUrl: "https://explorer.galleon-testnet.igralabs.com",
2108
2109
  additionalJsonRpcApiProviderOptionsOptions: {
2109
2110
  batchMaxSize: 0
2110
2111
  },