@joai/warps-adapter-evm 1.2.1 → 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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -993,6 +993,9 @@ var _WarpEvmDataLoader = class _WarpEvmDataLoader {
|
|
|
993
993
|
return null;
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
+
async getAccountNfts(address, options) {
|
|
997
|
+
return [];
|
|
998
|
+
}
|
|
996
999
|
async getAccountActions(address, options) {
|
|
997
1000
|
return [];
|
|
998
1001
|
}
|
|
@@ -1220,9 +1223,7 @@ import {
|
|
|
1220
1223
|
getProviderConfig as getProviderConfig2,
|
|
1221
1224
|
getWarpWalletAddressFromConfig as getWarpWalletAddressFromConfig2,
|
|
1222
1225
|
parseOutputOutIndex,
|
|
1223
|
-
WarpConstants as WarpConstants2
|
|
1224
|
-
WarpCache as WarpCache3,
|
|
1225
|
-
WarpCacheKey as WarpCacheKey2
|
|
1226
|
+
WarpConstants as WarpConstants2
|
|
1226
1227
|
} from "@joai/warps";
|
|
1227
1228
|
import { ethers as ethers5 } from "ethers";
|
|
1228
1229
|
|
|
@@ -1391,10 +1392,9 @@ var WarpEvmOutput = class {
|
|
|
1391
1392
|
const providerConfig = getProviderConfig2(this.config, this.chain.name, this.config.env, this.chain.defaultApiUrl);
|
|
1392
1393
|
const network = new ethers5.Network(this.chain.name, parseInt(this.chain.chainId));
|
|
1393
1394
|
this.provider = new ethers5.JsonRpcProvider(providerConfig.url, network);
|
|
1394
|
-
this.cache = new WarpCache3(config.env, config.cache);
|
|
1395
1395
|
}
|
|
1396
|
-
async getActionExecution(warp, actionIndex, tx) {
|
|
1397
|
-
const inputs =
|
|
1396
|
+
async getActionExecution(warp, actionIndex, tx, injectedInputs) {
|
|
1397
|
+
const inputs = injectedInputs ?? [];
|
|
1398
1398
|
const resolvedInputs = extractResolvedInputValues(inputs);
|
|
1399
1399
|
if (!tx) {
|
|
1400
1400
|
return this.createFailedExecution(warp, actionIndex, resolvedInputs);
|
|
@@ -2286,7 +2286,7 @@ var NativeTokenEth = {
|
|
|
2286
2286
|
var EthereumAdapter = createEvmAdapter(WarpChainName16.Ethereum, {
|
|
2287
2287
|
mainnet: {
|
|
2288
2288
|
name: WarpChainName16.Ethereum,
|
|
2289
|
-
displayName: "Ethereum
|
|
2289
|
+
displayName: "Ethereum",
|
|
2290
2290
|
chainId: "1",
|
|
2291
2291
|
blockTime: 12e3,
|
|
2292
2292
|
addressHrp: "0x",
|
|
@@ -2401,7 +2401,7 @@ var NativeTokenStt = {
|
|
|
2401
2401
|
var SomniaAdapter = createEvmAdapter(WarpChainName18.Somnia, {
|
|
2402
2402
|
mainnet: {
|
|
2403
2403
|
name: WarpChainName18.Somnia,
|
|
2404
|
-
displayName: "Somnia
|
|
2404
|
+
displayName: "Somnia",
|
|
2405
2405
|
chainId: "5031",
|
|
2406
2406
|
blockTime: 100,
|
|
2407
2407
|
addressHrp: "0x",
|