@vleap/warps 3.0.0-alpha.27 → 3.0.0-alpha.28
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/WarpInterpolator-N3TC7RPK.mjs +1 -0
- package/dist/WarpUtils-BJJV6B4S.mjs +1 -0
- package/dist/{chunk-FW52KEUA.mjs → chunk-MJ5T5ZEU.mjs} +1 -1
- package/dist/chunk-VCBS5KDH.mjs +1 -0
- package/dist/index.js +37 -27
- package/dist/index.mjs +37 -27
- package/package.json +2 -2
- package/dist/WarpInterpolator-KC2E52JI.mjs +0 -1
- package/dist/WarpUtils-KXHUMJ3D.mjs +0 -1
- package/dist/chunk-SD7PGGEZ.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vleap/warps",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vleap/warps-adapter-multiversx": "^0.2.0-alpha.
|
|
33
|
+
"@vleap/warps-adapter-multiversx": "^0.2.0-alpha.1",
|
|
34
34
|
"@vleap/warps-core": "^0.2.0-alpha.0",
|
|
35
35
|
"ajv": "^8.17.1"
|
|
36
36
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-FW52KEUA.mjs";import"./chunk-SD7PGGEZ.mjs";export{a as WarpInterpolator};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as a}from"./chunk-SD7PGGEZ.mjs";export{a as WarpUtils};
|
package/dist/chunk-SD7PGGEZ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var I=Object.create;var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var v=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(n,r)=>(typeof require<"u"?require:n)[r]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')}),x=i=>n=>{var r=i[n];if(r)return r();throw new Error("Module not found in bundle: "+n)};var F=(i,n)=>()=>(i&&(n=i(i=0)),n);var P=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports),z=(i,n)=>{for(var r in n)o(i,r,{get:n[r],enumerable:!0})},h=(i,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of W(n))!l.call(i,t)&&t!==r&&o(i,t,{get:()=>n[t],enumerable:!(a=u(n,t))||a.enumerable});return i};var E=(i,n,r)=>(r=i!=null?I(g(i)):{},h(n||!i||!i.__esModule?o(r,"default",{value:i,enumerable:!0}):r,i)),D=i=>h(o({},"__esModule",{value:!0}),i);import{WarpMultiversxRegistry as p}from"@vleap/warps-adapter-multiversx";import{getMainChainInfo as w,WarpSerializer as m,CacheTtl as y}from"@vleap/warps-core";var c=class{static async getChainInfoForAction(n,r,a){if(a){let t=await this.tryGetChainFromInputs(n,r,a);if(t)return t}return this.getDefaultChainInfo(n,r)}static async tryGetChainFromInputs(n,r,a){let t=r.inputs?.findIndex(C=>C.position==="chain");if(t===-1||t===void 0)return null;let e=a[t];if(!e)throw new Error("WarpUtils: Chain input not found");let s=new m().stringToNative(e)[1],f=await new p(n).getChainInfo(s);if(!f)throw new Error(`WarpUtils: Chain info not found for ${s}`);return f}static async getDefaultChainInfo(n,r){if(!r.chain)return w(n);let t=await new p(n).getChainInfo(r.chain,{ttl:y.OneWeek});if(!t)throw new Error(`WarpUtils: Chain info not found for ${r.chain}`);return t}};export{v as a,x as b,F as c,P as d,z as e,E as f,D as g,c as h};
|