@joai/warps-adapter-solana 1.2.0 → 1.2.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.d.cts CHANGED
@@ -155,9 +155,8 @@ declare class WarpSolanaOutput implements AdapterWarpOutput {
155
155
  private readonly chain;
156
156
  private readonly serializer;
157
157
  private readonly connection;
158
- private readonly cache;
159
158
  constructor(config: WarpClientConfig, chain: WarpChainInfo);
160
- getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction): Promise<WarpActionExecutionResult>;
159
+ getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction, injectedInputs?: ResolvedInput[]): Promise<WarpActionExecutionResult>;
161
160
  private createFailedExecution;
162
161
  private handleWarpChainAction;
163
162
  private handleTransactionSignature;
package/dist/index.d.ts CHANGED
@@ -155,9 +155,8 @@ declare class WarpSolanaOutput implements AdapterWarpOutput {
155
155
  private readonly chain;
156
156
  private readonly serializer;
157
157
  private readonly connection;
158
- private readonly cache;
159
158
  constructor(config: WarpClientConfig, chain: WarpChainInfo);
160
- getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction): Promise<WarpActionExecutionResult>;
159
+ getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction, injectedInputs?: ResolvedInput[]): Promise<WarpActionExecutionResult>;
161
160
  private createFailedExecution;
162
161
  private handleWarpChainAction;
163
162
  private handleTransactionSignature;
package/dist/index.js CHANGED
@@ -903,10 +903,9 @@ var WarpSolanaOutput = class {
903
903
  this.serializer = new WarpSolanaSerializer();
904
904
  const providerConfig = (0, import_warps7.getProviderConfig)(this.config, this.chain.name, this.config.env, this.chain.defaultApiUrl);
905
905
  this.connection = new import_web34.Connection(providerConfig.url, "confirmed");
906
- this.cache = new import_warps7.WarpCache(config.env, config.cache);
907
906
  }
908
- async getActionExecution(warp, actionIndex, tx) {
909
- const inputs = await this.cache.get(import_warps7.WarpCacheKey.WarpExecutable(this.config.env, warp.meta?.hash || "", actionIndex)) ?? [];
907
+ async getActionExecution(warp, actionIndex, tx, injectedInputs) {
908
+ const inputs = injectedInputs ?? [];
910
909
  const resolvedInputs = (0, import_warps7.extractResolvedInputValues)(inputs);
911
910
  if (!tx) {
912
911
  return this.createFailedExecution(warp, actionIndex, resolvedInputs);
@@ -2307,7 +2306,7 @@ var NativeTokenSol = {
2307
2306
  var SolanaAdapter = createSolanaAdapter(import_warps13.WarpChainName.Solana, {
2308
2307
  mainnet: {
2309
2308
  name: import_warps13.WarpChainName.Solana,
2310
- displayName: "Solana Mainnet",
2309
+ displayName: "Solana",
2311
2310
  chainId: "101",
2312
2311
  blockTime: 400,
2313
2312
  addressHrp: "",