@swapkit/core 1.0.0-rc.80 → 1.0.0-rc.81

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
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "type": "module",
51
51
  "types": "./dist/index.d.ts",
52
- "version": "1.0.0-rc.80",
52
+ "version": "1.0.0-rc.81",
53
53
  "scripts": {
54
54
  "build": "NODE_OPTIONS=--max_old_space_size=16384 vite build",
55
55
  "clean": "rm -rf dist vite.config.ts.* .turbo node_modules",
@@ -89,7 +89,7 @@ export class SwapKitCore<T = ''> {
89
89
  swap = async ({ streamSwap, recipient, route, feeOptionKey }: SwapParams) => {
90
90
  const {
91
91
  meta: { quoteMode },
92
- evmTransactionDetails: contractCallParams,
92
+ // evmTransactionDetails: contractCallParams,
93
93
  } = route;
94
94
  const evmChain = quoteMode.startsWith('ERC20-')
95
95
  ? Chain.Ethereum
@@ -102,27 +102,28 @@ export class SwapKitCore<T = ''> {
102
102
  if (!route.complete) throw new SwapKitError('core_swap_route_not_complete');
103
103
 
104
104
  try {
105
- if (contractCallParams && evmChain) {
106
- const walletMethods = this.connectedWallets[evmChain];
107
-
108
- if (!walletMethods?.call) {
109
- throw new SwapKitError('core_wallet_connection_not_found');
110
- }
111
-
112
- const { contractAddress, contractMethod, contractParams, contractParamsStreaming } =
113
- contractCallParams;
114
-
115
- if (!(streamSwap ? contractParamsStreaming : contractParams)) {
116
- throw new SwapKitError('core_swap_route_transaction_not_found');
117
- }
118
-
119
- return await walletMethods.call<string>({
120
- contractAddress,
121
- abi: lowercasedContractAbiMapping[contractAddress.toLowerCase()],
122
- funcName: contractMethod,
123
- funcParams: streamSwap ? contractParamsStreaming : contractParams,
124
- });
125
- }
105
+ // TODO enable when BE is ready
106
+ // if (contractCallParams && evmChain) {
107
+ // const walletMethods = this.connectedWallets[evmChain];
108
+
109
+ // if (!walletMethods?.call) {
110
+ // throw new SwapKitError('core_wallet_connection_not_found');
111
+ // }
112
+
113
+ // const { contractAddress, contractMethod, contractParams, contractParamsStreaming } =
114
+ // contractCallParams;
115
+
116
+ // if (!(streamSwap ? contractParamsStreaming : contractParams)) {
117
+ // throw new SwapKitError('core_swap_route_transaction_not_found');
118
+ // }
119
+
120
+ // return await walletMethods.call<string>({
121
+ // contractAddress,
122
+ // abi: lowercasedContractAbiMapping[contractAddress.toLowerCase()],
123
+ // funcName: contractMethod,
124
+ // funcParams: streamSwap ? contractParamsStreaming : contractParams,
125
+ // });
126
+ // }
126
127
 
127
128
  if (AGG_SWAP.includes(quoteMode) && evmChain) {
128
129
  const walletMethods = this.connectedWallets[evmChain];