@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "warp-contracts",
|
"name": "warp-contracts",
|
||||||
"version": "1.3.3",
|
"version": "1.3.4-beta.0",
|
||||||
"description": "An implementation of the SmartWeave smart contract protocol.",
|
"description": "An implementation of the SmartWeave smart contract protocol.",
|
||||||
"types": "./lib/types/index.d.ts",
|
"types": "./lib/types/index.d.ts",
|
||||||
"main": "./lib/cjs/index.js",
|
"main": "./lib/cjs/index.js",
|
||||||
|
|||||||
@@ -200,16 +200,16 @@ export const rustWasmImports = (
|
|||||||
const encodeString =
|
const encodeString =
|
||||||
typeof cachedTextEncoder.encodeInto === 'function'
|
typeof cachedTextEncoder.encodeInto === 'function'
|
||||||
? function (arg, view) {
|
? function (arg, view) {
|
||||||
return cachedTextEncoder.encodeInto(arg, view);
|
return cachedTextEncoder.encodeInto(arg, view);
|
||||||
}
|
}
|
||||||
: function (arg, view) {
|
: function (arg, view) {
|
||||||
const buf = cachedTextEncoder.encode(arg);
|
const buf = cachedTextEncoder.encode(arg);
|
||||||
view.set(buf);
|
view.set(buf);
|
||||||
return {
|
return {
|
||||||
read: arg.length,
|
read: arg.length,
|
||||||
written: buf.length
|
written: buf.length
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
function passStringToWasm0(arg, malloc, realloc) {
|
function passStringToWasm0(arg, malloc, realloc) {
|
||||||
if (typeof arg !== 'string') throw new Error('expected a string argument');
|
if (typeof arg !== 'string') throw new Error('expected a string argument');
|
||||||
@@ -497,7 +497,9 @@ export const rustWasmImports = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
function notDefined(what) {
|
function notDefined(what) {
|
||||||
return () => { throw new Error(`${what} is not defined`); };
|
return () => {
|
||||||
|
throw new Error(`${what} is not defined`);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// mapping from base function names (without mangled suffixes)
|
// mapping from base function names (without mangled suffixes)
|
||||||
@@ -1245,7 +1247,7 @@ export const rustWasmImports = (
|
|||||||
wasm: () => wasmInstance.exports,
|
wasm: () => wasmInstance.exports,
|
||||||
WASM_VECTOR_LEN: () => WASM_VECTOR_LEN,
|
WASM_VECTOR_LEN: () => WASM_VECTOR_LEN,
|
||||||
__wbg_adapter_4: __wbg_adapter_42,
|
__wbg_adapter_4: __wbg_adapter_42,
|
||||||
__wbg_adapter_3: __wbg_adapter_52,
|
__wbg_adapter_3: __wbg_adapter_52
|
||||||
};
|
};
|
||||||
|
|
||||||
function wrapPluginMethod(f: (_: Object) => Object) {
|
function wrapPluginMethod(f: (_: Object) => Object) {
|
||||||
@@ -1253,8 +1255,8 @@ export const rustWasmImports = (
|
|||||||
return logError(function (arg0) {
|
return logError(function (arg0) {
|
||||||
const ret = f(takeObject(arg0));
|
const ret = f(takeObject(arg0));
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
}, arguments)
|
}, arguments);
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function extensionsDefinedImports(swGlobal, helpers) {
|
function extensionsDefinedImports(swGlobal, helpers) {
|
||||||
@@ -1272,7 +1274,6 @@ export const rustWasmImports = (
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const allBaseImports = { ...baseImports, ...extensionsDefinedImports(swGlobal, helpers) };
|
const allBaseImports = { ...baseImports, ...extensionsDefinedImports(swGlobal, helpers) };
|
||||||
const baseImportsKeys = Object.keys(allBaseImports);
|
const baseImportsKeys = Object.keys(allBaseImports);
|
||||||
// assigning functions to "real" import names from the currently
|
// assigning functions to "real" import names from the currently
|
||||||
|
|||||||
Reference in New Issue
Block a user