@sodax/sdk 0.0.1-rc.40 → 0.0.1-rc.41

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.mjs CHANGED
@@ -4,7 +4,7 @@ import { SONIC_MAINNET_CHAIN_ID, CHAIN_IDS, ICON_MAINNET_CHAIN_ID, SUI_MAINNET_C
4
4
  export * from '@sodax/types';
5
5
  import { ChainGrpcWasmApi, TxGrpcApi, toBase64, fromBase64 } from '@injectivelabs/sdk-ts';
6
6
  import { getNetworkEndpoints, Network } from '@injectivelabs/networks';
7
- import { IconService, CallBuilder, Converter, CallTransactionBuilder } from 'icon-sdk-js';
7
+ import * as IconSdkRaw from 'icon-sdk-js';
8
8
  import { SorobanRpc, Account, Horizon, Contract, TransactionBuilder, BASE_FEE, nativeToScVal, TimeoutInfinite, rpc, scValToBigInt, Operation, Address, Asset, FeeBumpTransaction } from '@stellar/stellar-sdk';
9
9
  import { bcs } from '@mysten/sui/bcs';
10
10
  import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';
@@ -8713,6 +8713,7 @@ var InjectiveSpokeProvider = class {
8713
8713
  return num.toString();
8714
8714
  }
8715
8715
  };
8716
+ var IconSdk = "default" in IconSdkRaw.default ? IconSdkRaw.default : IconSdkRaw;
8716
8717
  var IconSpokeProvider = class {
8717
8718
  walletProvider;
8718
8719
  chainConfig;
@@ -8721,7 +8722,7 @@ var IconSpokeProvider = class {
8721
8722
  constructor(walletProvider, chainConfig, rpcUrl = "https://ctz.solidwallet.io/api/v3", debugRpcUrl = "https://ctz.solidwallet.io/api/v3d") {
8722
8723
  this.walletProvider = walletProvider;
8723
8724
  this.chainConfig = chainConfig;
8724
- this.iconService = new IconService(new IconService.HttpProvider(rpcUrl));
8725
+ this.iconService = new IconSdk.IconService(new IconSdk.IconService.HttpProvider(rpcUrl));
8725
8726
  this.debugRpcUrl = debugRpcUrl;
8726
8727
  }
8727
8728
  };
@@ -10316,6 +10317,8 @@ async function estimateStepCost(rawTx, debugRpcUrl) {
10316
10317
  }
10317
10318
 
10318
10319
  // src/services/spoke/IconSpokeService.ts
10320
+ var IconSdk2 = "default" in IconSdkRaw.default ? IconSdkRaw.default : IconSdkRaw;
10321
+ var { Converter, CallTransactionBuilder, CallBuilder } = IconSdk2;
10319
10322
  var IconSpokeService = class _IconSpokeService {
10320
10323
  constructor() {
10321
10324
  }
@@ -11775,7 +11778,7 @@ var SpokeService = class _SpokeService {
11775
11778
  }
11776
11779
  if (isEvmSpokeProvider(spokeProvider)) {
11777
11780
  await _SpokeService.verifySimulation(from, payload, spokeProvider, hubProvider, skipSimulation);
11778
- return await EvmSpokeService.callWallet(from, payload, spokeProvider, hubProvider);
11781
+ return await EvmSpokeService.callWallet(from, payload, spokeProvider, hubProvider, raw);
11779
11782
  }
11780
11783
  if (isInjectiveSpokeProvider(spokeProvider)) {
11781
11784
  await _SpokeService.verifySimulation(from, payload, spokeProvider, hubProvider, skipSimulation);
@@ -11807,7 +11810,13 @@ var SpokeService = class _SpokeService {
11807
11810
  }
11808
11811
  if (isStellarSpokeProvider(spokeProvider)) {
11809
11812
  await _SpokeService.verifySimulation(from, payload, spokeProvider, hubProvider, skipSimulation);
11810
- return await StellarSpokeService.callWallet(from, payload, spokeProvider, hubProvider);
11813
+ return await StellarSpokeService.callWallet(
11814
+ from,
11815
+ payload,
11816
+ spokeProvider,
11817
+ hubProvider,
11818
+ raw
11819
+ );
11811
11820
  }
11812
11821
  throw new Error("Invalid spoke provider");
11813
11822
  }