@joai/warps-adapter-evm 1.3.0 → 1.3.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/dist/index.mjs CHANGED
@@ -1223,9 +1223,7 @@ import {
1223
1223
  getProviderConfig as getProviderConfig2,
1224
1224
  getWarpWalletAddressFromConfig as getWarpWalletAddressFromConfig2,
1225
1225
  parseOutputOutIndex,
1226
- WarpConstants as WarpConstants2,
1227
- WarpCache as WarpCache3,
1228
- WarpCacheKey as WarpCacheKey2
1226
+ WarpConstants as WarpConstants2
1229
1227
  } from "@joai/warps";
1230
1228
  import { ethers as ethers5 } from "ethers";
1231
1229
 
@@ -1394,10 +1392,9 @@ var WarpEvmOutput = class {
1394
1392
  const providerConfig = getProviderConfig2(this.config, this.chain.name, this.config.env, this.chain.defaultApiUrl);
1395
1393
  const network = new ethers5.Network(this.chain.name, parseInt(this.chain.chainId));
1396
1394
  this.provider = new ethers5.JsonRpcProvider(providerConfig.url, network);
1397
- this.cache = new WarpCache3(config.env, config.cache);
1398
1395
  }
1399
- async getActionExecution(warp, actionIndex, tx) {
1400
- const inputs = await this.cache.get(WarpCacheKey2.WarpExecutable(this.config.env, warp.meta?.hash || "", actionIndex)) ?? [];
1396
+ async getActionExecution(warp, actionIndex, tx, injectedInputs) {
1397
+ const inputs = injectedInputs ?? [];
1401
1398
  const resolvedInputs = extractResolvedInputValues(inputs);
1402
1399
  if (!tx) {
1403
1400
  return this.createFailedExecution(warp, actionIndex, resolvedInputs);
@@ -2289,7 +2286,7 @@ var NativeTokenEth = {
2289
2286
  var EthereumAdapter = createEvmAdapter(WarpChainName16.Ethereum, {
2290
2287
  mainnet: {
2291
2288
  name: WarpChainName16.Ethereum,
2292
- displayName: "Ethereum Mainnet",
2289
+ displayName: "Ethereum",
2293
2290
  chainId: "1",
2294
2291
  blockTime: 12e3,
2295
2292
  addressHrp: "0x",
@@ -2404,7 +2401,7 @@ var NativeTokenStt = {
2404
2401
  var SomniaAdapter = createEvmAdapter(WarpChainName18.Somnia, {
2405
2402
  mainnet: {
2406
2403
  name: WarpChainName18.Somnia,
2407
- displayName: "Somnia Mainnet",
2404
+ displayName: "Somnia",
2408
2405
  chainId: "5031",
2409
2406
  blockTime: 100,
2410
2407
  addressHrp: "0x",