@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.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -256,9 +256,8 @@ declare class WarpEvmOutput implements AdapterWarpOutput {
|
|
|
256
256
|
private readonly chain;
|
|
257
257
|
private readonly serializer;
|
|
258
258
|
private readonly provider;
|
|
259
|
-
private readonly cache;
|
|
260
259
|
constructor(config: WarpClientConfig, chain: WarpChainInfo);
|
|
261
|
-
getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction): Promise<WarpActionExecutionResult>;
|
|
260
|
+
getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction, injectedInputs?: ResolvedInput[]): Promise<WarpActionExecutionResult>;
|
|
262
261
|
private createFailedExecution;
|
|
263
262
|
private handleWarpChainAction;
|
|
264
263
|
private handleTransactionReceipt;
|
package/dist/index.d.ts
CHANGED
|
@@ -256,9 +256,8 @@ declare class WarpEvmOutput implements AdapterWarpOutput {
|
|
|
256
256
|
private readonly chain;
|
|
257
257
|
private readonly serializer;
|
|
258
258
|
private readonly provider;
|
|
259
|
-
private readonly cache;
|
|
260
259
|
constructor(config: WarpClientConfig, chain: WarpChainInfo);
|
|
261
|
-
getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction): Promise<WarpActionExecutionResult>;
|
|
260
|
+
getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction, injectedInputs?: ResolvedInput[]): Promise<WarpActionExecutionResult>;
|
|
262
261
|
private createFailedExecution;
|
|
263
262
|
private handleWarpChainAction;
|
|
264
263
|
private handleTransactionReceipt;
|
package/dist/index.js
CHANGED
|
@@ -1426,10 +1426,9 @@ var WarpEvmOutput = class {
|
|
|
1426
1426
|
const providerConfig = (0, import_warps18.getProviderConfig)(this.config, this.chain.name, this.config.env, this.chain.defaultApiUrl);
|
|
1427
1427
|
const network = new import_ethers5.ethers.Network(this.chain.name, parseInt(this.chain.chainId));
|
|
1428
1428
|
this.provider = new import_ethers5.ethers.JsonRpcProvider(providerConfig.url, network);
|
|
1429
|
-
this.cache = new import_warps18.WarpCache(config.env, config.cache);
|
|
1430
1429
|
}
|
|
1431
|
-
async getActionExecution(warp, actionIndex, tx) {
|
|
1432
|
-
const inputs =
|
|
1430
|
+
async getActionExecution(warp, actionIndex, tx, injectedInputs) {
|
|
1431
|
+
const inputs = injectedInputs ?? [];
|
|
1433
1432
|
const resolvedInputs = (0, import_warps18.extractResolvedInputValues)(inputs);
|
|
1434
1433
|
if (!tx) {
|
|
1435
1434
|
return this.createFailedExecution(warp, actionIndex, resolvedInputs);
|
|
@@ -2319,7 +2318,7 @@ var NativeTokenEth = {
|
|
|
2319
2318
|
var EthereumAdapter = createEvmAdapter(import_warps24.WarpChainName.Ethereum, {
|
|
2320
2319
|
mainnet: {
|
|
2321
2320
|
name: import_warps24.WarpChainName.Ethereum,
|
|
2322
|
-
displayName: "Ethereum
|
|
2321
|
+
displayName: "Ethereum",
|
|
2323
2322
|
chainId: "1",
|
|
2324
2323
|
blockTime: 12e3,
|
|
2325
2324
|
addressHrp: "0x",
|
|
@@ -2434,7 +2433,7 @@ var NativeTokenStt = {
|
|
|
2434
2433
|
var SomniaAdapter = createEvmAdapter(import_warps26.WarpChainName.Somnia, {
|
|
2435
2434
|
mainnet: {
|
|
2436
2435
|
name: import_warps26.WarpChainName.Somnia,
|
|
2437
|
-
displayName: "Somnia
|
|
2436
|
+
displayName: "Somnia",
|
|
2438
2437
|
chainId: "5031",
|
|
2439
2438
|
blockTime: 100,
|
|
2440
2439
|
addressHrp: "0x",
|